:root {
  color-scheme: light dark;
  --surface: #fffbff;
  --surface-strong: #f4eff8;
  --ink: #1d1b20;
  --muted: #625f66;
  --primary: #6750a4;
  --primary-strong: #4f378b;
  --on-primary: #ffffff;
  --outline: #cbc4d0;
  --shadow: 0 18px 44px rgba(52, 42, 72, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 80% 8%, rgba(103, 80, 164, 0.12), transparent 30rem),
    var(--surface);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

a { color: var(--primary); }

a:hover { color: var(--primary-strong); }

.shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 750;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  box-shadow: 0 5px 14px rgba(45, 36, 62, 0.18);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover { color: var(--primary); }

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  min-height: calc(100vh - 76px);
  padding: 4rem 0 6rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.8rem);
}

.hero-copy {
  max-width: 680px;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.2rem;
  border: 1px solid var(--primary);
  border-radius: 999px;
  color: var(--on-primary);
  background: var(--primary);
  font-weight: 750;
  text-decoration: none;
}

.button.secondary {
  color: var(--primary);
  background: transparent;
}

.beta-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.phone-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
}

.phone-stage::before {
  position: absolute;
  width: min(86%, 430px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(103, 80, 164, 0.28), rgba(103, 80, 164, 0.05));
  content: "";
}

.phone {
  position: relative;
  width: min(310px, 76vw);
  padding: 13px;
  border: 8px solid #27232d;
  border-radius: 46px;
  background: #27232d;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.phone img {
  display: block;
  width: 100%;
  border-radius: 29px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 0 0 6rem;
}

.feature {
  padding: 1.5rem;
  border: 1px solid var(--outline);
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface-strong) 86%, transparent);
}

.feature h2 {
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

.document {
  width: min(780px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0 5rem;
}

.document h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
}

.document h2 {
  margin: 2.25rem 0 0.7rem;
  font-size: 1.35rem;
}

.document h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.05rem;
}

.document .updated,
.document .lede { color: var(--muted); }

.document li + li { margin-top: 0.65rem; }

.callout {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  border-inline-start: 4px solid var(--primary);
  border-radius: 0 14px 14px 0;
  background: var(--surface-strong);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--outline);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer a { color: inherit; }

[dir="rtl"] .site-nav,
[dir="rtl"] .site-footer nav { justify-content: flex-start; }

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 3rem;
  }

  .hero h1 { font-size: clamp(3rem, 15vw, 4.7rem); }

  .phone-stage { min-height: 500px; }

  .features { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-header {
    align-items: flex-start;
    padding: 1rem 0;
  }

  .site-nav { gap: 0.6rem 0.9rem; }

  .site-nav .optional { display: none; }

  .hero { padding-top: 2.4rem; }

  .phone-stage { min-height: 440px; }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #151217;
    --surface-strong: #252027;
    --ink: #e9e2eb;
    --muted: #cbc3cc;
    --primary: #d0bcff;
    --primary-strong: #e8ddff;
    --on-primary: #381e72;
    --outline: #4e4751;
    --shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
