/* ==========================================================================
   Motion Steady — marketing site styles
   Brand tokens mirror the product (scripts/generate-store-assets.mjs, src CSS):
   deep navy base, panel navy, cyan horizon accent, wide-tracked display type.
   One theme: dark (brand-locked). Radius system: cards 12px, inner boxes 8px,
   buttons and chips full pill.
   ========================================================================== */

:root {
  --bg: #0b0f14;
  --bg-2: #0f1a2e;
  --bg-3: #131f33;
  --panel: #0f172a;
  --panel-2: #121d31;
  --cyan: #22d3ee;
  --cyan-soft: rgba(34, 211, 238, 0.14);
  --cyan-2: #67e8f9;
  --text: #e8fbff;
  --text-2: #b3c2d4;
  --text-3: #8296ad;
  --line: rgba(151, 189, 224, 0.14);
  --line-soft: rgba(151, 189, 224, 0.08);
  --on-cyan: #062430;
  --radius: 12px;
  --radius-sm: 8px;
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "Consolas", monospace;
  --nav-h: 68px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

/* Base color lives on html so the fixed body::backdrop below can show. */
html {
  color-scheme: dark;
  scroll-behavior: smooth;
  background: var(--bg);
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text-2);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Ambient page backdrop: brand gradient + faint cyan glow, static and cheap. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 520px at 50% -140px, rgba(34, 211, 238, 0.09), transparent 70%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 46%);
  pointer-events: none;
}

/* Anchor targets clear the fixed nav. */
section[id] { scroll-margin-top: calc(var(--nav-h) + 14px); }

::selection { background: var(--cyan); color: var(--on-cyan); }

img { max-width: 100%; display: block; }

a { color: var(--cyan-2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--cyan);
  color: var(--on-cyan);
  font-weight: 600;
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease-out);
}
.skip-link:focus { transform: none; text-decoration: none; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

/* ==========================================================================
   Buttons, chips, tags
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out),
    background-color 0.18s var(--ease-out), border-color 0.18s var(--ease-out);
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--cyan);
  color: var(--on-cyan);
}
.btn-primary:hover {
  background: var(--cyan-2);
  box-shadow: 0 6px 24px rgba(34, 211, 238, 0.22);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: rgba(151, 189, 224, 0.34);
  background: rgba(151, 189, 224, 0.06);
  text-decoration: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-2);
  background: rgba(15, 23, 42, 0.55);
  white-space: nowrap;
}
.chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18);
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(11, 15, 20, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.nav-inner {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
}
.brand:hover { text-decoration: none; }

.brand-mark { width: 30px; height: 30px; flex: none; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.14em;
}
.brand-name b { color: var(--cyan); font-weight: 700; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  list-style: none;
  padding: 0;
}

.nav-links a {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 14.5px;
  transition: color 0.15s, background-color 0.15s;
}
.nav-links a:hover { color: var(--text); background: rgba(151, 189, 224, 0.08); text-decoration: none; }

.nav-cta { margin-left: auto; }
.nav .btn { padding: 10px 20px; font-size: 14.5px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s var(--ease-out), top 0.2s var(--ease-out);
}
.nav-toggle::before { top: 16px; }
.nav-toggle::after { top: 24px; }
.nav-open .nav-toggle::before { top: 20px; transform: rotate(45deg); }
.nav-open .nav-toggle::after { top: 20px; transform: rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding-top: calc(var(--nav-h) + 58px);
  padding-bottom: 72px;
  position: relative;
  overflow: hidden;
}

/* The horizon motif from the brand assets: glow + line at ~62% of the hero. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 340px at 72% 62%, rgba(34, 211, 238, 0.10), transparent 70%),
    radial-gradient(1100px 700px at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.30) 100%);
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 62%;
  height: 1px;
  background: rgba(34, 211, 238, 0.20);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.92fr;
  gap: 56px;
  align-items: center;
}

.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }

.hero h1 {
  font-size: clamp(2.35rem, 3.7vw, 3.3rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  max-width: 16ch;
}

.hero-sub {
  margin-top: 22px;
  font-size: 18.5px;
  line-height: 1.6;
  max-width: 46ch;
  color: var(--text-2);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

/* Hero load-in. Keyed by .anim elements; staggered with nth-child. */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero .anim { opacity: 0; animation: rise 0.7s var(--ease-out) forwards; }
  .hero .anim:nth-child(1) { animation-delay: 0.05s; }
  .hero .anim:nth-child(2) { animation-delay: 0.12s; }
  .hero .anim:nth-child(3) { animation-delay: 0.19s; }
  .hero .anim:nth-child(4) { animation-delay: 0.26s; }
  .hero-demo { opacity: 0; animation: rise 0.8s var(--ease-out) 0.25s forwards; }
}

/* ==========================================================================
   Interactive overlay demo (a real re-creation of the product's overlay:
   same elements, same rendering approach as src/elements/ElementLayer.tsx)
   ========================================================================== */

.demo {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: #0a121f;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

/* The stylized "game": dusk sky, sun glow, mountain ridges, moving ground grid.
   The whole scene rolls gently to show why a fixed horizon reference helps. */
.demo-scene {
  position: absolute;
  inset: -6%;
  transform-origin: 50% 60%;
}

.demo-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(340px 220px at 30% 34%, rgba(103, 232, 249, 0.16), transparent 70%),
    linear-gradient(180deg, #16233c 0%, #101a2e 52%, #0b1322 58%, #080d16 100%);
}

.demo-ridge {
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: 42%;
  height: 26%;
  width: 108%;
  background:
    radial-gradient(52% 145% at 22% 100%, #17233a 98%, transparent 100%),
    radial-gradient(46% 120% at 55% 100%, #121c30 98%, transparent 100%),
    radial-gradient(60% 100% at 88% 100%, #0e1728 98%, transparent 100%);
}

.demo-ground {
  position: absolute;
  inset: 0;
  top: 58%;
  overflow: hidden;
}

.demo-grid {
  position: absolute;
  inset: -60% -20% -20%;
  background-image:
    linear-gradient(rgba(103, 232, 249, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 232, 249, 0.10) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(560px) rotateX(58deg);
}

/* Product-accurate overlay elements. */
.demo-overlay { position: absolute; inset: 0; pointer-events: none; }

.o-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(2, 4, 10, 0) 52%, rgba(2, 4, 10, 0.55) 100%);
}
.o-frame {
  position: absolute;
  inset: 16px;
  border: 2px solid rgba(232, 251, 255, 0.35);
  border-radius: 10px;
}
.o-horizon {
  position: absolute;
  left: 12%;
  width: 76%;
  top: 56%;
  height: 3px;
  border-radius: 3px;
  background: rgba(103, 232, 249, 0.85);
  box-shadow: 0 0 14px rgba(103, 232, 249, 0.35);
}
.o-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(232, 251, 255, 0.92);
}
.o-crosshair span {
  position: absolute;
  background: rgba(232, 251, 255, 0.65);
}
.o-crosshair .r { left: calc(50% + 9px); top: calc(50% - 1px); width: 16px; height: 2px; }
.o-crosshair .l { right: calc(50% + 9px); top: calc(50% - 1px); width: 16px; height: 2px; }
.o-crosshair .d { top: calc(50% + 9px); left: calc(50% - 1px); height: 16px; width: 2px; }
.o-crosshair .u { bottom: calc(50% + 9px); left: calc(50% - 1px); height: 16px; width: 2px; }
.o-nose {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 17%;
  height: 20%;
  transform: translateX(-50%);
  background: rgba(232, 251, 255, 0.10);
  border-radius: 50% 50% 0 0 / 90% 90% 0 0;
  filter: blur(7px);
}

.demo-tag {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: rgba(232, 251, 255, 0.4);
}

/* Break reminder banner, same shape as the in-game one. */
.demo-break {
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translateX(-50%) translateY(-16px);
  width: min(78%, 420px);
  padding: 14px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(103, 232, 249, 0.4);
  background: rgba(9, 17, 28, 0.92);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.demo-break b {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--cyan-2);
  letter-spacing: 0.02em;
}
.demo-break span { font-size: 13.5px; color: var(--text-2); }
.demo.break-on .demo-break { opacity: 1; transform: translateX(-50%); }

/* Per-element visibility, driven by data attributes on the demo root. */
.demo[data-el-vignette="0"] .o-vignette { display: none; }
.demo[data-el-frame="0"] .o-frame { display: none; }
.demo[data-el-horizon="0"] .o-horizon { display: none; }
.demo[data-el-dot="0"] .o-dot { display: none; }
.demo[data-el-crosshair="0"] .o-crosshair { display: none; }
.demo[data-el-nose="0"] .o-nose { display: none; }
.demo[data-el-overlay="0"] .demo-overlay { display: none; }

/* Scene motion: ground slides toward you, ridges drift, scene gently rolls.
   The overlay elements stay put. That contrast is the whole point. */
@media (prefers-reduced-motion: no-preference) {
  .demo-scene { animation: scene-roll 14s ease-in-out infinite alternate; }
  .demo-grid { animation: grid-slide 2.6s linear infinite; }
  .demo-ridge { animation: ridge-drift 26s linear infinite; }
}
@keyframes scene-roll {
  from { transform: rotate(-1.3deg); }
  to { transform: rotate(1.3deg); }
}
@keyframes grid-slide {
  from { background-position: 0 0; }
  to { background-position: 0 64px; }
}
@keyframes ridge-drift {
  from { transform: translateX(0); }
  to { transform: translateX(-64px); }
}

/* Demo controls */
.demo-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  align-items: center;
}

.tog {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}
.tog:hover { color: var(--text-2); border-color: rgba(151, 189, 224, 0.3); }
.tog[aria-pressed="true"] {
  color: var(--cyan-2);
  border-color: rgba(34, 211, 238, 0.45);
  background: var(--cyan-soft);
}
.tog-master { margin-left: auto; }

.demo-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-3);
}

/* ==========================================================================
   Section shells
   ========================================================================== */

.section { padding: 96px 0; }
.section-tight { padding: 72px 0; }

.sec-head { max-width: 640px; margin-bottom: 48px; }
.sec-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.sec-head .lead { margin-top: 16px; font-size: 17.5px; max-width: 58ch; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .lead { margin-inline: auto; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

/* Scroll reveal (applied only when JS is present, via html.js) */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transform: translateY(20px); }
  html.js .reveal.in {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  }
}

/* ==========================================================================
   Problem
   ========================================================================== */

.problem { border-block: 1px solid var(--line-soft); }

.statement {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.8vw, 2.3rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  max-width: 24ch;
}

.problem-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  margin-top: 44px;
}

.problem-grid h3 {
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 500;
  margin-bottom: 12px;
}
.problem-grid p { font-size: 16px; }
.problem-grid p + p { margin-top: 10px; }

/* ==========================================================================
   How it works
   ========================================================================== */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px 26px 26px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel) 0%, rgba(15, 23, 42, 0.35) 100%);
}
.step-num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(34, 211, 238, 0.65);
  line-height: 1;
}
.step h3 { font-size: 19px; margin-top: 18px; }
.step p { margin-top: 10px; font-size: 15.5px; }

/* ==========================================================================
   Comfort elements (bento)
   ========================================================================== */

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-areas:
    "vig vig dot hor"
    "vig vig xhai nose"
    "frame frame frame frame";
  gap: 18px;
}
.cell {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}
.cell-vig { grid-area: vig; }
.cell-dot { grid-area: dot; }
.cell-hor { grid-area: hor; }
.cell-xhai { grid-area: xhai; }
.cell-nose { grid-area: nose; }
.cell-frame { grid-area: frame; flex-direction: row; align-items: center; gap: 22px; }

.cell h3 { font-size: 17.5px; }
.cell p { font-size: 14.5px; color: var(--text-3); }
.cell-frame p { color: var(--text-2); max-width: 56ch; }

.el-view {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background:
    radial-gradient(220% 160% at 30% 20%, rgba(103, 232, 249, 0.10), transparent 55%),
    linear-gradient(180deg, #16233c 0%, #101a2e 55%, #0a111e 100%);
  border: 1px solid rgba(151, 189, 224, 0.10);
  aspect-ratio: 16 / 9;
}
.cell-vig .el-view { flex: 1; min-height: 260px; aspect-ratio: auto; }
.cell-frame .el-view { width: 300px; flex: none; aspect-ratio: 16 / 10; }

/* Shared mini-scene: ground seam + drift lines. */
.el-view::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 58%;
  height: 1px;
  background: rgba(103, 232, 249, 0.22);
}
.el-view .streak {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 251, 255, 0.16), transparent);
  opacity: 0.6;
}
.el-view .streak.s1 { top: 68%; }
.el-view .streak.s2 { top: 78%; right: 30%; }
.el-view .streak.s3 { top: 86%; right: 55%; }

/* The elements themselves, scaled down but faithful. */
.el-view .o-vignette { background: radial-gradient(ellipse at center, rgba(2, 4, 10, 0) 42%, rgba(2, 4, 10, 0.72) 100%); }
.el-view .o-frame { inset: 9px; border-width: 1.5px; border-radius: 6px; }
.el-view .o-horizon { top: 55%; height: 2px; }
.el-view .o-dot { width: 6px; height: 6px; }
.el-view .o-crosshair .r { width: 11px; height: 1.5px; }
.el-view .o-crosshair .l { width: 11px; height: 1.5px; }
.el-view .o-crosshair .d { height: 11px; width: 1.5px; }
.el-view .o-crosshair .u { height: 11px; width: 1.5px; }
.el-view .o-nose { width: 22%; height: 24%; filter: blur(5px); }

/* ==========================================================================
   Features
   ========================================================================== */

.features-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr);
  gap: 64px;
  align-items: start;
}

.features-side { position: sticky; top: calc(var(--nav-h) + 32px); }

.hotkey-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}
.hotkey-row .chip { font-size: 11.5px; }
.hotkey-row kbd {
  font-family: var(--font-mono);
  color: var(--cyan-2);
  font-weight: 500;
}

.feat-group + .feat-group { margin-top: 42px; }
.feat-group h3 {
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 500;
  margin-bottom: 6px;
}
.feat-item {
  padding: 18px 0;
  border-top: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: minmax(150px, 210px) 1fr;
  gap: 18px;
}
.feat-item:last-child { border-bottom: 1px solid var(--line-soft); }
.feat-item b {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16.5px;
  color: var(--text);
}
.feat-item p { font-size: 15px; color: var(--text-3); }

/* ==========================================================================
   Safety
   ========================================================================== */

.safety { border-block: 1px solid var(--line-soft); background: rgba(15, 23, 42, 0.35); }

.safety-head { max-width: 760px; }
.safety-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.safety-head .lead { margin-top: 18px; font-size: 17.5px; }

.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 52px;
}
.proof {
  padding: 26px 28px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel);
}
.proof .tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--cyan);
}
.proof p { margin-top: 12px; font-size: 16px; color: var(--text-2); }
.proof p b { color: var(--text); font-weight: 600; }

.safety-cta { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ==========================================================================
   Early Access
   ========================================================================== */

.ea-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.25fr);
  gap: 56px;
  align-items: start;
}

.price-card {
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: var(--radius);
  background:
    radial-gradient(340px 220px at 85% 0%, rgba(34, 211, 238, 0.10), transparent 70%),
    var(--panel);
  padding: 34px 32px 30px;
}
.price-card .price {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.price-card .price small {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-3);
  margin-left: 6px;
}
.price-card .later {
  margin-top: 10px;
  font-size: 15px;
  color: var(--text-3);
}
.price-card .later b { color: var(--text-2); }
.price-card ul {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.price-card li {
  display: flex;
  gap: 12px;
  padding: 9px 0;
  font-size: 15.5px;
  color: var(--text-2);
  border-top: 1px solid var(--line-soft);
}
.price-card li:first-child { border-top: 0; }
.tick {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  border: 1.5px solid var(--cyan);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tick svg { width: 10px; height: 10px; }
.price-card .btn { width: 100%; margin-top: 28px; }
.price-card .fine {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--text-3);
  text-align: center;
}

.ea-copy h3 {
  font-size: 20px;
  margin-bottom: 14px;
}
.ea-copy h3 + ul { margin-top: 0; }
.ea-copy ul { list-style: none; margin: 0; padding: 0; }
.ea-copy li {
  position: relative;
  padding: 7px 0 7px 26px;
  font-size: 15.5px;
}
.ea-copy li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--cyan);
}
.ea-copy .muted { color: var(--text-3); }
.ea-copy .muted::before { border-color: var(--text-3); opacity: 0.55; }
.ea-note {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--text-3);
}
.ea-copy .divider { border: 0; border-top: 1px solid var(--line-soft); margin: 28px 0; }

/* ==========================================================================
   Specs
   ========================================================================== */

.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.spec {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 22px 24px;
}
.spec .label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}
.spec .value {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}
.spec .why { margin-top: 6px; font-size: 13.5px; color: var(--text-3); }
.spec-wide { grid-column: span 2; }
.spec-wide .value { font-size: 16.5px; font-weight: 500; }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-list { max-width: 780px; margin: 0 auto; }

.faq-item {
  border-top: 1px solid var(--line-soft);
}
.faq-item:last-child { border-bottom: 1px solid var(--line-soft); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 22px 6px;
  font-family: var(--font-display);
  font-size: 17.5px;
  font-weight: 600;
  color: var(--text);
  transition: color 0.15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  margin-left: auto;
  flex: none;
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--cyan);
  transform: rotate(0deg);
  transition: transform 0.2s var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--cyan-2); }
.faq-item .faq-body {
  padding: 0 6px 24px;
  max-width: 62ch;
  font-size: 15.5px;
  color: var(--text-2);
}
.faq-item .faq-body p + p { margin-top: 10px; }

/* ==========================================================================
   Closing CTA
   ========================================================================== */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: 130px 0;
  text-align: center;
  background:
    radial-gradient(720px 300px at 50% 62%, rgba(34, 211, 238, 0.14), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--panel) 62%, var(--bg) 100%);
}
.cta-band::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 62%;
  height: 1px;
  background: rgba(34, 211, 238, 0.35);
}
.cta-band h2 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 600;
  position: relative;
}
.cta-band p {
  position: relative;
  margin-top: 16px;
  font-size: 17.5px;
  color: var(--text-2);
}
.cta-band .btn { position: relative; margin-top: 34px; }

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  border-top: 1px solid var(--line-soft);
  padding: 64px 0 44px;
  background: rgba(9, 13, 19, 0.6);
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.7fr)) minmax(0, 1.2fr);
  gap: 40px;
}

.foot-brand .brand-name { font-size: 16px; }
.foot-brand p { margin-top: 16px; font-size: 14.5px; max-width: 34ch; }
.foot-contact { margin-top: 18px; font-size: 14.5px; }

.foot-col h4 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
  margin-bottom: 16px;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { padding: 5px 0; }
.foot-col a { color: var(--text-2); font-size: 14.5px; }
.foot-col a:hover { color: var(--cyan-2); }

.foot-notices {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: 10px;
}
.foot-notices p { font-size: 12.5px; color: var(--text-3); line-height: 1.6; max-width: 92ch; }
.foot-bottom {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-3);
}

/* ==========================================================================
   Doc pages (privacy, terms)
   ========================================================================== */

.doc-hero {
  padding-top: calc(var(--nav-h) + 64px);
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-soft);
}
.doc-hero h1 {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 600;
}
.doc-meta {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--text-3);
}

.doc-body { padding: 56px 0 96px; max-width: 760px; }
.doc-body h2 {
  font-size: 21px;
  margin: 48px 0 14px;
  padding-top: 14px;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.doc-body h2:first-child { margin-top: 0; padding-top: 0; }
.doc-body h2::before {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  background: var(--cyan);
  margin-bottom: 16px;
  border-radius: 2px;
}
.doc-body p + p { margin-top: 12px; }
.doc-body ul { margin: 12px 0 0; padding-left: 22px; }
.doc-body li { padding: 4px 0; font-size: 15.5px; }
.doc-body li ul { margin-top: 4px; }
.doc-body strong { color: var(--text); font-weight: 600; }
.doc-body .path {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--cyan-2);
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 2px 7px;
}

.callout {
  margin-top: 22px;
  padding: 18px 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(34, 211, 238, 0.3);
  background: rgba(34, 211, 238, 0.06);
  font-size: 15px;
}
.callout b { color: var(--text); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1020px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }

  .nav-panel {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(9, 13, 19, 0.97);
    border-bottom: 1px solid var(--line-soft);
    padding: 12px 24px 20px;
  }
  .nav-open .nav-panel { display: block; }
  .nav-panel a {
    display: block;
    padding: 12px 4px;
    color: var(--text-2);
    font-size: 16px;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-panel a:last-of-type { border-bottom: 0; }
  .nav-panel .btn {
    display: flex;
    width: 100%;
    margin-top: 14px;
    border-bottom: 0;
  }
}

@media (min-width: 1021px) {
  .nav-panel { display: none !important; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { max-width: 18ch; }
  .problem-grid { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr; }
  .bento {
    grid-template-areas:
      "vig vig"
      "dot hor"
      "xhai nose"
      "frame frame";
    grid-template-columns: 1fr 1fr;
  }
  .features-grid { grid-template-columns: 1fr; gap: 40px; }
  .features-side { position: static; }
  .proof-grid { grid-template-columns: 1fr; }
  .ea-grid { grid-template-columns: 1fr; gap: 44px; }
  .specs-grid { grid-template-columns: 1fr 1fr; }
  .spec-wide { grid-column: span 2; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .bento {
    grid-template-areas:
      "vig"
      "dot"
      "hor"
      "xhai"
      "nose"
      "frame";
    grid-template-columns: 1fr;
  }
  .cell-frame { flex-direction: column; align-items: stretch; gap: 16px; }
  .cell-frame .el-view { width: 100%; }
  .specs-grid { grid-template-columns: 1fr; }
  .spec-wide { grid-column: auto; }
  .feat-item { grid-template-columns: 1fr; gap: 6px; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .demo-controls .tog-master { margin-left: 0; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .wrap { padding-inline: 20px; }
}