:root {
  color-scheme: dark;
  --background: #0c0e1b;
  --surface: #14182a;
  --line: #2a3048;
  --text: #f5f5ff;
  --muted: #acb5d3;
  --accent: #b4baff;
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: var(--background);
  color: var(--text);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
a { color: var(--accent); text-underline-offset: .24em; }
a:hover { color: var(--text); }
a:focus-visible, summary:focus-visible { outline: 2px solid #bfc5ff; outline-offset: 5px; }
img { display: block; }
h1, h2, h3 { line-height: 1.12; margin: 0; }
p { margin: 0; }
.shell { width: min(73rem, calc(100% - 5rem)); margin-inline: auto; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}
.header-inner { min-height: 4.75rem; padding-block: .85rem; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: .66rem;
  color: var(--text);
  font-size: 1.18rem;
  font-weight: 760;
  letter-spacing: -.04em;
  text-decoration: none;
  white-space: nowrap;
}
.brand img { width: 2.25rem; height: 2.25rem; border-radius: .57rem; }
.brand-suffix { color: var(--accent); }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; }
nav a { color: var(--muted); font-size: .925rem; font-weight: 550; text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(.35rem, 3vw, 3.5rem);
  padding-block: clamp(2.25rem, 4.7vw, 4.75rem) 2.8rem;
}
.eyebrow { color: var(--accent); font-size: .9rem; font-weight: 650; }
.hero h1 {
  margin-block: .8rem 1.25rem;
  font-size: clamp(2.5rem, 5.4vw, 5.45rem);
  letter-spacing: -.065em;
  line-height: .99;
}
.hero h1 span { color: #b0b6ff; }
.hero-description {
  max-width: 30rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.23rem);
  line-height: 1.55;
}
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .9rem 1.25rem; margin-top: 1.85rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: .68rem 1.13rem;
  border-radius: .7rem;
  background: #bbc1ff;
  color: #111432;
  font-weight: 730;
  text-decoration: none;
}
.button:hover { background: #d7daff; color: #111432; }
.text-link { font-weight: 620; font-size: .96rem; }

.device-preview {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 1.07;
  margin: 0;
  background: radial-gradient(ellipse at 52% 47%, #34386d 0%, #1b2048 38%, transparent 70%);
}
.device-preview::before, .device-preview::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid #a4afff2c;
  border-radius: 50%;
  transform: rotate(-21deg);
  pointer-events: none;
}
.device-preview::before { inset: 20% 9% 18%; }
.device-preview::after { inset: 13% 10% 12%; }
.phone {
  position: absolute;
  width: 38.8%;
  overflow: hidden;
  border: clamp(3px, .5vw, 6px) solid #444f76;
  border-radius: clamp(1.25rem, 3vw, 2.5rem);
  background: #121526;
  box-shadow: 0 1.25rem 3rem #04050dd6;
}
.phone img { width: 100%; height: auto; }
.phone-light { left: 14%; top: 1%; transform: rotate(-9deg); }
.phone-dark { left: 47%; top: 6%; transform: rotate(11deg); }

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: var(--surface);
}
.features article { padding: clamp(1.05rem, 2.5vw, 1.9rem); }
.features article + article { border-left: 1px solid var(--line); }
.features h2 { margin-bottom: .5rem; font-size: 1.14rem; letter-spacing: -.025em; }
.features p, .section-intro p, .steps p, .questions p { color: var(--muted); }

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 1rem clamp(2rem, 7vw, 6rem);
  margin-block: clamp(3rem, 7.8vw, 6.7rem);
  scroll-margin-top: 2rem;
}
.section-intro h2 {
  margin-bottom: .75rem;
  font-size: clamp(1.85rem, 3.45vw, 3.25rem);
  letter-spacing: -.055em;
}
.section-intro p { max-width: 21rem; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: .95rem 0;
  border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.step-number {
  display: grid;
  place-items: center;
  width: 2rem;
  aspect-ratio: 1;
  border-radius: .5rem;
  background: #262d51;
  color: var(--accent);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.steps h3 { margin: .13rem 0 .38rem; font-size: 1.05rem; }
.questions { border-top: 1px solid var(--line); }
.questions details { border-bottom: 1px solid var(--line); }
.questions summary {
  position: relative;
  list-style: none;
  padding: .95rem 2rem .95rem 0;
  cursor: pointer;
  font-weight: 650;
}
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after {
  content: "";
  position: absolute;
  top: 1.36rem;
  right: .35rem;
  width: .47rem;
  aspect-ratio: 1;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
}
.questions details[open] summary::after { top: 1.58rem; transform: rotate(225deg); }
.questions p { padding-bottom: 1rem; }

.document {
  max-width: 47rem;
  padding-block: clamp(2rem, 6.8vw, 5rem);
  margin-inline: auto;
}
.document h1 {
  max-width: 45rem;
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 5.2vw, 4rem);
  letter-spacing: -.06em;
  overflow-wrap: anywhere;
}
.document h2 { margin: 1.8rem 0 .45rem; font-size: clamp(1.2rem, 2.55vw, 1.65rem); letter-spacing: -.025em; }
.document p, .document li { color: var(--muted); }
.document .eyebrow { margin-bottom: .65rem; color: var(--accent); }
.document ol { padding-left: 1.45rem; }
.document li + li { margin-top: .5rem; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { padding-block: 1.4rem; color: var(--muted); font-size: .9rem; }

@media (max-width: 55rem) {
  .shell { width: min(73rem, calc(100% - 3rem)); }
  .hero { gap: .25rem; }
  .hero-actions { align-items: start; flex-direction: column; }
}

@media (max-width: 43rem) {
  .shell { width: min(73rem, calc(100% - 2rem)); }
  .header-inner { min-height: 0; gap: .85rem; }
  .header-inner nav { column-gap: .92rem; }
  .header-inner nav a { font-size: .875rem; }
  .hero { grid-template-columns: 1fr; padding-block: 2.2rem 1.4rem; }
  .hero h1 { font-size: clamp(2.25rem, 8.5vw, 4.1rem); }
  .hero-actions { flex-direction: row; align-items: center; margin-top: 1.4rem; }
  .device-preview { width: min(100%, 27rem); justify-self: center; margin-top: .9rem; }
  .features { grid-template-columns: 1fr; }
  .features article + article { border-top: 1px solid var(--line); border-left: 0; }
  .section-grid { grid-template-columns: 1fr; gap: 1.4rem; }
}

@media (max-width: 24rem) {
  .header-inner nav { width: 100%; }
  .hero-actions .text-link { width: 100%; }
}
