/* Vững Lái — landing page. Vanilla CSS, no framework. Dark by default; light when the system
   asks for it (or ?theme=light). Motion is transform/opacity only and is switched off under
   prefers-reduced-motion. */

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  --bg: #050c1f;
  --bg-2: #071431;
  --bg-elev: #0b1838;
  --card: rgba(14, 30, 70, .52);
  --card-strong: rgba(16, 34, 78, .78);
  --line: rgba(120, 160, 235, .15);
  --line-hi: rgba(110, 200, 255, .38);
  --text: #eaf1fd;
  --text-dim: #a6b7d8;
  --text-mute: #8193b8;
  --eyebrow: #4fd8ff;
  --grad: linear-gradient(100deg, #2fb4ff 0%, #00d5ff 34%, #00d99b 68%, #5cf23a 100%);
  --grad-text: linear-gradient(100deg, #49b9ff 0%, #00d5ff 32%, #19e0a0 70%, #6ef24c 100%);
  --ic-a: #3cb8ff; --ic-b: #00d5ff; --ic-c: #3fe58c;
  --ic-bg: linear-gradient(145deg, rgba(0, 157, 255, .16), rgba(0, 217, 155, .08));
  --header-bg: rgba(5, 12, 31, .66);
  --ok: #1fe0a2; --warn: #ffb21f; --bad: #ff4b5c;
  --badge-bg: #000; --badge-border: rgba(255, 255, 255, .22);
  --warn-bg: rgba(255, 178, 31, .08); --warn-border: rgba(255, 178, 31, .34); --warn-text: #f5dea6;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .75);
  --orb-a: rgba(0, 120, 255, .38); --orb-b: rgba(0, 213, 200, .24); --orb-c: rgba(80, 240, 60, .13);
  --grid-line: rgba(80, 170, 255, .16);
  --radius: 22px;
  --maxw: 1200px;
  --header-h: 68px;
  --ease-out: cubic-bezier(.2, .75, .2, 1);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f5f8fe; --bg-2: #eaf1fc; --bg-elev: #ffffff;
    --card: rgba(255, 255, 255, .78); --card-strong: #ffffff;
    --line: #d9e3f3; --line-hi: rgba(0, 110, 230, .35);
    --text: #0a1838; --text-dim: #44557a; --text-mute: #5d6f96; --eyebrow: #0067d8;
    --grad-text: linear-gradient(100deg, #0060e4 0%, #0084d6 40%, #00957a 100%);
    --ic-a: #0062e6; --ic-b: #008fd6; --ic-c: #00a079;
    --ic-bg: linear-gradient(145deg, rgba(0, 120, 255, .10), rgba(0, 200, 150, .07));
    --header-bg: rgba(245, 248, 254, .74);
    --warn-bg: #fff6e0; --warn-border: #e8b649; --warn-text: #5a4100;
    --shadow: 0 30px 70px -30px rgba(20, 50, 110, .35);
    --orb-a: rgba(0, 130, 255, .20); --orb-b: rgba(0, 210, 200, .16); --orb-c: rgba(90, 230, 70, .12);
    --grid-line: rgba(0, 100, 220, .12);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f8fe; --bg-2: #eaf1fc; --bg-elev: #ffffff;
  --card: rgba(255, 255, 255, .78); --card-strong: #ffffff;
  --line: #d9e3f3; --line-hi: rgba(0, 110, 230, .35);
  --text: #0a1838; --text-dim: #44557a; --text-mute: #5d6f96; --eyebrow: #0067d8;
  --grad-text: linear-gradient(100deg, #0060e4 0%, #0084d6 40%, #00957a 100%);
  --ic-a: #0062e6; --ic-b: #008fd6; --ic-c: #00a079;
  --ic-bg: linear-gradient(145deg, rgba(0, 120, 255, .10), rgba(0, 200, 150, .07));
  --header-bg: rgba(245, 248, 254, .74);
  --warn-bg: #fff6e0; --warn-border: #e8b649; --warn-text: #5a4100;
  --shadow: 0 30px 70px -30px rgba(20, 50, 110, .35);
  --orb-a: rgba(0, 130, 255, .20); --orb-b: rgba(0, 210, 200, .16); --orb-c: rgba(90, 230, 70, .12);
  --grid-line: rgba(0, 100, 220, .12);
}


/* Always-dark islands (hero, header while it floats over the hero, privacy band). */
.scheme-dark, .site-header.over-hero {
  color-scheme: dark;
  --bg: #050c1f; --bg-2: #071431; --bg-elev: #0b1838;
  --card: rgba(14, 30, 70, .52); --card-strong: rgba(16, 34, 78, .78);
  --line: rgba(120, 160, 235, .15); --line-hi: rgba(110, 200, 255, .38);
  --text: #eaf1fd; --text-dim: #a6b7d8; --text-mute: #8193b8; --eyebrow: #4fd8ff;
  --grad-text: linear-gradient(100deg, #49b9ff 0%, #00d5ff 32%, #19e0a0 70%, #6ef24c 100%);
  --ic-a: #3cb8ff; --ic-b: #00d5ff; --ic-c: #3fe58c;
  --ic-bg: linear-gradient(145deg, rgba(0, 157, 255, .16), rgba(0, 217, 155, .08));
  --header-bg: rgba(5, 12, 31, .66);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .75);
  --orb-a: rgba(0, 120, 255, .38); --orb-b: rgba(0, 213, 200, .24); --orb-c: rgba(80, 240, 60, .13);
  --grid-line: rgba(80, 170, 255, .13);
  color: var(--text);
}
.scheme-dark { background-color: var(--bg); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px; line-height: 1.65; overflow-x: clip;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--eyebrow); outline-offset: 3px; border-radius: 6px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
#ig .s1 { stop-color: var(--ic-a); } #ig .s2 { stop-color: var(--ic-b); } #ig .s3 { stop-color: var(--ic-c); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--bg-elev); color: var(--text); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 16px; }

.grad-text {
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--eyebrow);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad); }
.h2 { font-size: clamp(2rem, 1.15rem + 3.1vw, 3.35rem); line-height: 1.13; font-weight: 800; letter-spacing: -.025em; text-wrap: balance; }
.sub { margin-top: 18px; color: var(--text-dim); font-size: clamp(1.02rem, .95rem + .3vw, 1.16rem); text-wrap: pretty; }
/* Tight enough that the next section is always in view: big empty bands read as a broken page. */
.section { position: relative; padding: clamp(48px, 6vw, 96px) 0; }
.section-head { max-width: 760px; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; }
.section-head.left { margin: 0; text-align: left; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--ease-out), background-color .3s, border-color .3s, box-shadow .35s;
}
.btn:hover { transform: translateY(-2px); }
.btn-ghost { color: var(--text); border: 1px solid var(--line-hi); background: var(--card); }
.btn-ghost:hover { border-color: var(--eyebrow); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14.5px; gap: 8px; }
.btn-glow { color: #04122e; background: var(--grad); box-shadow: 0 8px 24px -10px rgba(0, 213, 255, .7); }
.btn-glow:hover { box-shadow: 0 12px 30px -10px rgba(0, 213, 255, .9); }
.ic-inline { width: 18px; height: 18px; }
.play-glyph { width: 14px; height: 14px; fill: currentColor; }

.play-badge {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 0 22px 0 18px; border-radius: 14px;
  background: var(--badge-bg); color: #fff; text-decoration: none;
  border: 1px solid var(--badge-border);
  box-shadow: 0 14px 34px -16px rgba(0, 160, 255, .65);
  transition: transform .35s var(--ease-out), box-shadow .35s;
  isolation: isolate;
}
.play-badge::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: -1;
  background: var(--grad); opacity: 0; transition: opacity .35s;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.play-badge:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(0, 200, 255, .8); }
.play-badge:hover::before { opacity: 1; }
.play-mark { width: 26px; height: 26px; flex: none; }
.pb-text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.pb-text small { font-size: 11.5px; font-weight: 500; letter-spacing: .02em; opacity: .85; }
.pb-text span { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.play-badge-lg { min-height: 64px; padding: 0 28px 0 22px; }
.play-badge-lg .pb-text span { font-size: 22px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  transition: background-color .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: var(--header-bg); border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
}
.header-row { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: none; }
/* The transparent road-V mark, bright on both themes (the dark-backed app icon vanished on the dark header). */
.brand img { width: 50px; height: 32px; object-fit: contain; filter: drop-shadow(0 2px 10px rgba(0, 157, 255, .35)); }
.wordmark { font-weight: 800; font-style: italic; font-size: 21px; letter-spacing: -.01em; }
.wordmark .lai { background: linear-gradient(90deg, #00a0b8, #00c796 50%, #48e41a); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 2px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { position: relative; color: var(--text-dim); text-decoration: none; font-size: 15px; font-weight: 600; padding: 8px 12px; border-radius: 10px; transition: color .25s, background-color .25s; }
.nav a:hover { color: var(--text); background: var(--card); }
.header-cta { flex: none; }
.scroll-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--grad);
  transform-origin: 0 50%; transform: scaleX(var(--progress, 0));
}
@supports (animation-timeline: scroll()) {
  .scroll-progress { animation: progress linear both; animation-timeline: scroll(root); }
  @keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(90svh, 880px); display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + clamp(28px, 5vw, 60px)) 0 clamp(72px, 9vw, 110px);
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; will-change: transform; }
.orb-a { width: 62vmax; height: 62vmax; left: -18vmax; top: -26vmax; background: radial-gradient(closest-side, var(--orb-a), transparent); animation: drift-a 22s ease-in-out infinite alternate; }
.orb-b { width: 52vmax; height: 52vmax; right: -16vmax; top: -6vmax; background: radial-gradient(closest-side, var(--orb-b), transparent); animation: drift-b 26s ease-in-out infinite alternate; }
.orb-c { width: 40vmax; height: 40vmax; right: 8vmax; bottom: -22vmax; background: radial-gradient(closest-side, var(--orb-c), transparent); animation: drift-a 30s ease-in-out infinite alternate-reverse; }
@keyframes drift-a { to { transform: translate3d(6vmax, 4vmax, 0) scale(1.08); } }
@keyframes drift-b { to { transform: translate3d(-5vmax, 5vmax, 0) scale(.94); } }

.hero-grid {
  position: absolute; left: -20%; right: -20%; bottom: 0; height: 30%;
  perspective: 420px; perspective-origin: 50% 0%; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 45%, #000 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 45%, #000 70%, transparent 100%);
}
.hero-grid::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 240%;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  transform-origin: 50% 0;
  transform: rotateX(64deg) translate3d(0, 0, 0);
  animation: grid-run 3.2s linear infinite;
}
@keyframes grid-run { to { transform: rotateX(64deg) translate3d(0, 64px, 0); } }
.horizon {
  position: absolute; left: 0; right: 0; bottom: 30%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 213, 255, .55) 30%, rgba(0, 217, 155, .55) 70%, transparent);
  box-shadow: 0 0 24px 2px rgba(0, 213, 255, .25);
  opacity: .45;
}

.hero-inner { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: center; gap: clamp(24px, 4vw, 56px); }
.eyebrow-pill {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 8px;
  padding: 7px 16px 7px 12px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; color: var(--text-dim); line-height: 1.4;
}
.eyebrow-pill em { font-style: italic; color: var(--text); }
.eyebrow-pill .sep { opacity: .5; }
.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.pulse-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ok); animation: ping 2.2s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2.8); opacity: 0; } }

.hero-title {
  margin-top: 26px;
  font-size: clamp(2.35rem, 1.2rem + 3.9vw, 4.35rem);
  line-height: 1.1; font-weight: 800; letter-spacing: -.035em; text-wrap: balance;
}
.hero-title .grad-text { padding-bottom: .04em; }
.br-lg { display: none; }
@media (min-width: 961px) { .br-lg { display: inline; } }
.hero .lead { margin-top: 24px; max-width: 34em; font-size: clamp(1.05rem, .98rem + .35vw, 1.22rem); color: var(--text-dim); text-wrap: pretty; }
.hero .lead strong { color: var(--text); font-weight: 700; }
.cta-row { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.trust { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--text-dim); font-size: 15px; font-weight: 500; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust li::before {
  content: ""; width: 16px; height: 16px; flex: none; background: var(--grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Hero mark */
.hero-visual { position: relative; aspect-ratio: 1000 / 700; --px: 0; --py: 0; }
.hero-mark { position: relative; z-index: 2; display: block; width: 128%; margin-left: -10%; height: auto; overflow: visible; animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translate3d(0, -10px, 0); } }
.hero-mark .layer { transition: none; will-change: transform; }
.layer-back { transform: translate3d(calc(var(--px) * -14px), calc(var(--py) * -10px), 0); }
.layer-road { transform: translate3d(calc(var(--px) * 10px), calc(var(--py) * 8px), 0); }
.layer-arm { transform: translate3d(calc(var(--px) * 24px), calc(var(--py) * 16px), 0); }
.sweep-wrap { transform: translate3d(calc(var(--px) * 24px), calc(var(--py) * 16px), 0); }
.lanes path { opacity: .92; animation: lane-flow 2.6s ease-in-out infinite; animation-delay: calc(var(--i) * .13s); }
@keyframes lane-flow { 0%, 55%, 100% { opacity: .5; } 18% { opacity: 1; } }
.sweep { transform: translate3d(0, 0, 0); animation: sweep 6.5s cubic-bezier(.55, 0, .25, 1) 1.2s infinite; }
@keyframes sweep { 0% { transform: translate3d(0, 0, 0); } 40%, 100% { transform: translate3d(820px, 0, 0); } }
.comet { opacity: 0; }
.mark-halo {
  position: absolute; inset: -6% 4% 0 10%; z-index: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 170, 255, .38), rgba(0, 217, 155, .12) 55%, transparent);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.08); opacity: .75; } }
.mark-ring {
  position: absolute; left: 50%; top: 52%; width: 92%; aspect-ratio: 1; z-index: 1;
  translate: -50% -50%; border-radius: 50%; opacity: .5;
  background: conic-gradient(from 0deg, transparent 0 10%, rgba(0, 213, 255, .9) 22%, transparent 34% 58%, rgba(66, 244, 51, .7) 72%, transparent 84%);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px));
  mask: radial-gradient(closest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px));
  animation: spin 26s linear infinite;
}
@keyframes spin { to { transform: rotate(1turn); } }
.mark-floor {
  position: absolute; left: 18%; right: 8%; bottom: -2%; height: 14%; z-index: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 200, 255, .30), transparent);
}

.scroll-cue { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; width: 26px; height: 42px; border-radius: 14px; border: 1.5px solid var(--line-hi); display: block; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--eyebrow); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

/* Intro choreography (only with JS, so no-JS never hides content). */
.js .intro { animation: rise 1s var(--ease-out) both; animation-delay: calc(var(--d, 0) * .1s + .25s); }
.js .hero-title { animation: rise 1s var(--ease-out) both; }
.js .hero-mark { animation: mark-in 1.4s var(--ease-out) both .15s, float 7s ease-in-out 1.6s infinite; }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 22px, 0); } }
@keyframes mark-in { from { opacity: 0; transform: translate3d(0, 24px, 0) scale(.94); } }

/* ---------- Reveal on scroll ---------- */
/* Content is revealed just before it scrolls in (see landing.js), never left as a blank band. */
.js [data-reveal] { opacity: 0; }
.js [data-reveal].is-in { opacity: 1; animation: reveal .7s var(--ease-out) backwards; animation-delay: calc(var(--s, 0) * 70ms); }
@keyframes reveal { from { opacity: 0; transform: translate3d(0, 16px, 0); } }

/* ---------- Live demo ---------- */
.demo { background: linear-gradient(180deg, transparent, var(--bg-2) 30%, var(--bg-2) 70%, transparent); }
.demo-grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
.states { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 8px; }
.state {
  display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 16px;
  border: 1px solid transparent; color: var(--text-dim); font-size: 15.5px; line-height: 1.55;
  transition: background-color .45s, border-color .45s, color .45s;
}
.state strong { color: var(--text); font-weight: 700; font-size: 16.5px; }
.state-dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 7px; flex: none; position: relative; }
.state[data-state="safe"] { --c: var(--ok); }
.state[data-state="near"] { --c: var(--warn); }
.state[data-state="close"] { --c: var(--bad); }
.state-dot { background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent); }
.state.is-active { background: var(--card); border-color: color-mix(in srgb, var(--c) 45%, transparent); color: var(--text); }
.state.is-active .state-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--c); animation: ping 1.6s cubic-bezier(0, 0, .2, 1) infinite; }

.demo-stage { margin: 0; position: relative; padding-top: 64px; }
@media (max-width: 720px) { .demo-stage { padding-top: 0; } }
.phone {
  --c: var(--ok); --ring: 2px;
  position: relative; aspect-ratio: 2.16 / 1; --tx: 0; --ty: 0;
  transform: perspective(1600px) rotateY(calc(var(--tx) * 5deg - 3deg)) rotateX(calc(var(--ty) * -4deg + 2deg));
  transform-style: preserve-3d;
}
.phone[data-state="near"] { --c: var(--warn); --ring: 3px; }
.phone[data-state="close"] { --c: var(--bad); --ring: 5px; }
.phone-glow { position: absolute; inset: -10% -6%; z-index: -1; pointer-events: none; }
.phone-glow::before, .phone-glow::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; transition: opacity .6s;
  background: radial-gradient(closest-side, rgba(31, 224, 162, .30), transparent);
}
.phone-glow::after { background: radial-gradient(closest-side, rgba(255, 75, 92, .42), transparent); opacity: 0; }
.phone[data-state="near"] .phone-glow::before { background: radial-gradient(closest-side, rgba(255, 178, 31, .32), transparent); }
.phone[data-state="close"] .phone-glow::before { opacity: 0; }
.phone[data-state="close"] .phone-glow::after { opacity: 1; animation: glow-pulse 1s ease-in-out infinite; }
@keyframes glow-pulse { 50% { opacity: .45; } }
.phone-body {
  position: absolute; inset: 0; padding: 1.6%; border-radius: clamp(20px, 3.4vw, 40px);
  background: linear-gradient(150deg, #2a3248 0%, #0b0f1a 40%, #05070d 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10), inset 0 1px 0 rgba(255, 255, 255, .18), var(--shadow), 0 60px 90px -50px rgba(0, 60, 160, .55);
}
.phone.is-buzz .phone-body { animation: buzz .09s linear 6; }
@keyframes buzz { 0%, 100% { transform: translate3d(0, 0, 0); } 25% { transform: translate3d(-2px, 0, 0) rotate(-.25deg); } 75% { transform: translate3d(2px, 0, 0) rotate(.25deg); } }
.phone-cam { position: absolute; left: .55%; top: 50%; width: .9%; aspect-ratio: 1; border-radius: 50%; translate: 0 -50%; background: radial-gradient(circle at 35% 35%, #3c4a70, #05070c 60%); }
.screen {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  border-radius: clamp(12px, 2.4vw, 30px); background: #050b1a;
  container-type: inline-size;
}
.scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.frame-ring { position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 var(--ring) var(--c); transition: box-shadow .45s; pointer-events: none; }
.frame-pulse { position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 6cqw 1cqw rgba(255, 60, 80, .75); opacity: 0; pointer-events: none; }
.phone[data-state="close"] .frame-pulse { animation: glow-pulse-in 1s ease-in-out infinite; }
@keyframes glow-pulse-in { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

.hud { position: absolute; inset: 0; padding: 3.2cqw 3.6cqw; color: #fff; font-size: clamp(9.5px, 2.1cqw, 15px); line-height: 1.25; pointer-events: none; }
.hud-top { display: flex; justify-content: space-between; gap: 1em; }
.chip { display: inline-flex; align-items: center; gap: .45em; padding: .5em .95em; border-radius: 999px; background: rgba(3, 10, 28, .66); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); font-weight: 700; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.chip svg { width: 1.1em; height: 1.1em; color: #6cd8ff; }
.chip-min { color: #cfe0ff; font-weight: 600; }
.gap-card {
  position: absolute; left: 3.6cqw; bottom: 3.4cqw; width: 14.2em;
  display: flex; flex-direction: column; gap: .2em;
  padding: .8em 1.1em 1em; border-radius: 1.1em;
  background: rgba(3, 10, 28, .72); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 70%, transparent), 0 10px 30px -10px rgba(0, 0, 0, .6);
  transition: box-shadow .45s;
}
.gap-headline { font-size: .78em; font-weight: 800; letter-spacing: .08em; color: var(--c); min-height: 1.25em; transition: color .45s; }
.gap-num { font-size: 4.3em; line-height: .95; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: #fff; }
.gap-num small { font-size: .38em; font-weight: 700; letter-spacing: 0; margin-left: .12em; color: #cfe0ff; }
.gap-status { font-size: .95em; font-weight: 700; color: var(--c); transition: color .45s; }
.gap-bar { position: relative; display: block; height: .42em; margin-top: .45em; border-radius: 1em; background: rgba(255, 255, 255, .14); overflow: visible; }
.gap-fill { position: absolute; inset: 0; border-radius: inherit; background: var(--c); transform-origin: 0 50%; transform: scaleX(.65); transition: background-color .45s; }
.gap-min { position: absolute; left: 45.83%; top: -.35em; bottom: -.35em; width: 2px; margin-left: -1px; background: #fff; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .4); }

.bubble {
  position: absolute; z-index: 3; right: -3%; bottom: calc(100% - 4%); width: min(62%, 420px);
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px 18px 16px; border-radius: 20px 20px 6px 20px;
  background: rgba(255, 255, 255, .97); color: #0a1838; box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .04);
  font-size: 15.5px; font-weight: 600; line-height: 1.45;
  opacity: 0; transform: translate3d(0, 10px, 0) scale(.94); transform-origin: 85% 100%;
  transition: opacity .35s ease, transform .55s cubic-bezier(.2, .9, .3, 1.25);
}
.bubble.is-on { opacity: 1; transform: none; }
@media (max-width: 720px) {
  .bubble { bottom: auto; opacity: .62; transform: none; }
  .bubble:not(.is-on) .bubble-tag { color: #0a7d5c; }
}
.bubble-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #d12a3c; }
.eq { display: inline-flex; align-items: center; gap: 2px; height: 14px; }
.eq i { width: 3px; height: 100%; border-radius: 2px; background: currentColor; transform: scaleY(.3); }
.bubble.is-on .eq i { animation: eq .8s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.2s !important; } .eq i:nth-child(3) { animation-delay: -.45s !important; } .eq i:nth-child(4) { animation-delay: -.1s !important; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

.demo-caption { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; font-size: 14px; color: var(--text-mute); }
.toggle-motion {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-hi); background: var(--card); color: var(--text); font: inherit; font-weight: 600; cursor: pointer;
}
.toggle-motion svg { width: 16px; height: 16px; }
.toggle-motion .i-play { display: none; }
.toggle-motion[aria-pressed="true"] .i-play { display: block; }
.toggle-motion[aria-pressed="true"] .i-pause { display: none; }
.no-js .toggle-motion { display: none; }

/* ---------- Features (bento) ---------- */
.bento { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 26px 24px 28px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
  transition: transform .5s var(--ease-out), border-color .4s, box-shadow .5s;
  --mx: 50%; --my: 0%;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .45s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(0, 200, 255, .13), transparent 45%);
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .45s;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(0, 213, 255, .85), rgba(0, 217, 155, .35) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card:hover::before, .card:hover::after { opacity: 1; }
.ic {
  display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; flex: none;
  background: var(--ic-bg); box-shadow: inset 0 0 0 1px var(--line);
}
.ic svg { width: 26px; height: 26px; fill: none; stroke: url(#ig); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.ic-text { fill: url(#ig); stroke: none; font-family: "Be Vietnam Pro", system-ui, sans-serif; font-size: 7.6px; font-weight: 800; letter-spacing: -.02em; }
.card h3 { margin-top: 20px; font-size: 1.12rem; line-height: 1.35; font-weight: 700; letter-spacing: -.01em; }
.card p { margin-top: 8px; color: var(--text-dim); font-size: .96rem; line-height: 1.6; }
.card-xl { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; padding: 34px 32px; background:
  radial-gradient(120% 90% at 100% 0%, rgba(0, 157, 255, .16), transparent 55%), var(--card); }
.card-xl .ic { width: 60px; height: 60px; border-radius: 18px; }
.card-xl .ic svg { width: 32px; height: 32px; }
.card-xl h3 { font-size: clamp(1.45rem, 1.1rem + 1vw, 1.9rem); margin-top: 26px; letter-spacing: -.02em; }
.card-xl p { font-size: 1.04rem; max-width: 34em; }
.mini-hud { margin-top: auto; padding-top: 30px; }
.mini-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mini-row b { font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem); line-height: 1; font-weight: 800; letter-spacing: -.04em; color: var(--ok); font-variant-numeric: tabular-nums; }
:root[data-theme="light"] .mini-row b { color: #009466; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .mini-row b { color: #009466; } }
.mini-row span { color: var(--text-dim); font-weight: 600; font-size: .95rem; }
.mini-bar { position: relative; height: 10px; margin-top: 14px; border-radius: 10px; background: var(--line); }
.mini-bar i { position: absolute; inset: 0; width: 51.6%; border-radius: inherit; background: var(--grad); transform-origin: 0 50%; }
.mini-bar em { position: absolute; left: 45.83%; top: -5px; bottom: -5px; width: 2px; background: var(--text); border-radius: 2px; }
.js .card-xl .mini-bar i { transform: scaleX(0); transition: transform 1.4s var(--ease-out) .5s; }
.js .card-xl.is-in .mini-bar i { transform: scaleX(1); }
.mini-scale { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12.5px; color: var(--text-mute); font-variant-numeric: tabular-nums; }

/* ---------- Distance chart ---------- */
.dist-grid { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
.callout-soft { margin-top: 28px; display: flex; gap: 14px; padding: 18px 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); color: var(--text-dim); font-size: 15.5px; }
.ic-rain { width: 26px; height: 26px; flex: none; fill: none; stroke: url(#ig); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.chart { margin: 0; padding: clamp(22px, 3vw, 36px); border-radius: 26px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); --label-w: 186px; --val-w: 72px; }
.bars { margin: 0; }
.bar-row { display: grid; grid-template-columns: var(--label-w) minmax(0, 1fr); align-items: center; gap: 18px; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.bar-row dt { font-weight: 600; color: var(--text-dim); font-size: 15.5px; }
.bar-row dd { margin: 0; display: flex; align-items: center; gap: 14px; }
.bar { position: relative; flex: 1; height: 16px; border-radius: 999px; background: rgba(127, 160, 220, .10); overflow: hidden; }
.bar i {
  position: absolute; top: 0; bottom: 0; left: 0; width: calc(var(--v) * 1%); border-radius: inherit;
  background:
    repeating-linear-gradient(90deg, transparent 0 14px, rgba(255, 255, 255, .55) 14px 24px) center / 100% 2px no-repeat,
    var(--grad);
  transform-origin: 0 50%;
  box-shadow: 0 0 18px -2px rgba(0, 213, 255, .55);
}
.bar-val { width: var(--val-w); text-align: right; font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar-row.is-demo dt { color: var(--text); }
.bars-note { margin-top: 10px; border-top: 1px dashed var(--line); }
.bar-row-text { border-bottom: 0; padding-bottom: 4px; }
.bar-row-text dd { display: block; color: var(--text-dim); font-size: 15px; }
.axis { display: flex; justify-content: space-between; margin: 10px calc(var(--val-w) + 14px) 0 calc(var(--label-w) + 18px); font-size: 12px; color: var(--text-mute); font-variant-numeric: tabular-nums; }
.chart figcaption { margin-top: 18px; font-size: 13.5px; color: var(--text-mute); }
.js .chart .bar i { transform: scaleX(0); }
.js .chart.is-in .bar i { transform: scaleX(1); transition: transform 1.3s var(--ease-out); transition-delay: calc(var(--s) * .12s + .2s); }

/* ---------- Privacy band (dark in both themes) ---------- */
.privacy-band {
  position: relative; isolation: isolate; overflow: hidden; color: var(--text);
  padding: clamp(48px, 6vw, 96px) 0;
}
.band-bg { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 80% at 15% 50%, rgba(0, 120, 255, .28), transparent 60%),
    radial-gradient(50% 70% at 90% 20%, rgba(0, 217, 155, .14), transparent 60%),
    linear-gradient(180deg, #061436, #030a1c);
}
.privacy-band .ic svg { stroke: url(#pig); }
.priv-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.priv-visual { position: relative; width: min(100%, 440px); aspect-ratio: 1; margin: 0 auto; }
.rings, .rings i { position: absolute; inset: 0; border-radius: 50%; }
.rings i { border: 1px solid rgba(0, 213, 255, .35); animation: ripple 5.4s cubic-bezier(.2, .6, .3, 1) infinite; opacity: 0; }
.rings i:nth-child(2) { animation-delay: 1.8s; } .rings i:nth-child(3) { animation-delay: 3.6s; }
@keyframes ripple { 0% { transform: scale(.32); opacity: 0; } 15% { opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
.rings::before { content: ""; position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 190, 255, .28), transparent); }
.shield { position: absolute; inset: 30%; display: grid; place-items: center; filter: drop-shadow(0 0 24px rgba(0, 213, 255, .45)); }
.shield svg { width: 100%; height: 100%; }
.js .shield .check { stroke-dasharray: 40; stroke-dashoffset: 40; }
.js .priv-visual.is-in .shield .check { stroke-dashoffset: 0; transition: stroke-dashoffset 1s var(--ease-out) .5s; }
.orbit-chip { position: absolute; padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 700; white-space: nowrap;
  background: rgba(8, 22, 58, .85); border: 1px solid var(--line-hi); color: #d9ecff; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .7);
  animation: bob 6s ease-in-out infinite; }
.orbit-chip.c1 { left: 2%; top: 22%; }
.orbit-chip.c2 { right: 0; top: 40%; animation-delay: -2s; }
.orbit-chip.c3 { left: 12%; bottom: 14%; animation-delay: -4s; }
@keyframes bob { 50% { transform: translate3d(0, -10px, 0); } }
.priv-list { list-style: none; margin: 36px 0 30px; padding: 0; display: grid; gap: 26px; }
.priv-list li { display: flex; gap: 18px; align-items: flex-start; }
.priv-list h3 { font-size: 1.15rem; font-weight: 700; }
.priv-list p { margin-top: 4px; color: var(--text-dim); }
.link-arrow { font-weight: 700; color: #7fd8ff; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; padding-bottom: 2px; transition: background-size .4s var(--ease-out); }
.link-arrow:hover { background-size: 100% 2px; }

/* ---------- Steps ---------- */
.step-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; position: relative; }
.step { position: relative; z-index: 1; overflow: hidden; padding: 34px 28px 32px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); text-align: left; }
.step::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--ic-a), var(--ic-b), var(--ic-c)); transform-origin: 0 50%; }
.js .step-list .step::before { transform: scaleX(0); }
.js .step-list.is-in .step::before { transform: scaleX(1); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--s) * .25s + .35s); }
.step .ic { width: 56px; height: 56px; border-radius: 16px; }
.step h3 { margin-top: 22px; font-size: 1.25rem; font-weight: 800; }
.step p { margin-top: 10px; color: var(--text-dim); font-size: .98rem; }
.step-num { position: absolute; right: 22px; top: 18px; font-size: 64px; font-weight: 800; line-height: 1; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px var(--line-hi); opacity: .8; }
.js .step-list .step { opacity: 0; }
.js .step-list.is-in .step { opacity: 1; animation: reveal .9s var(--ease-out) backwards; animation-delay: calc(var(--s) * .18s + .2s); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 5vw, 80px); align-items: start; }
.faq-grid .btn { margin-top: 28px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4px; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.08rem; transition: color .25s; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--eyebrow); }
.faq-list summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat;
  box-shadow: inset 0 0 0 1px var(--line-hi); transition: transform .4s var(--ease-out);
}
.faq-list details[open] summary::after { transform: rotate(135deg); }
.faq-list .ans { padding: 0 4px 24px; color: var(--text-dim); max-width: 46em; }
@supports (interpolate-size: allow-keywords) {
  .faq-list { interpolate-size: allow-keywords; }
  .faq-list details::details-content { height: 0; overflow: clip; transition: height .45s var(--ease-out), content-visibility .45s allow-discrete; }
  .faq-list details[open]::details-content { height: auto; }
}

/* ---------- Closing ---------- */
.closing { padding-top: 0; }
.callout { display: flex; gap: 16px; align-items: flex-start; padding: 22px 26px; border-radius: 20px; background: var(--warn-bg); border: 1px solid var(--warn-border); color: var(--warn-text); font-size: 15.5px; }
.callout strong { color: inherit; }
.callout-ic { width: 26px; height: 26px; flex: none; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.final-cta { position: relative; isolation: isolate; overflow: hidden; margin-top: clamp(56px, 7vw, 96px); padding: clamp(56px, 8vw, 104px) 24px; border-radius: 32px; text-align: center; border: 1px solid var(--line); background: var(--card); }
.final-glow { position: absolute; left: 50%; top: 50%; width: 140%; aspect-ratio: 1; z-index: -1; translate: -50% -50%;
  background: conic-gradient(from 90deg, rgba(0, 157, 255, .22), rgba(0, 213, 255, .06), rgba(0, 217, 155, .2), rgba(66, 244, 51, .06), rgba(0, 157, 255, .22));
  -webkit-mask: radial-gradient(closest-side, #000 20%, transparent 70%); mask: radial-gradient(closest-side, #000 20%, transparent 70%);
  animation: spin 30s linear infinite; }
.final-cta .sub { margin: 18px auto 34px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 48px; font-size: 15px; color: var(--text-mute); }
.footer-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.footer-brand img { display: block; width: 150px; height: 150px; }
.logo-on-light { display: none !important; }
:root[data-theme="light"] .logo-on-dark { display: none !important; }
:root[data-theme="light"] .logo-on-light { display: block !important; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .logo-on-dark { display: none !important; }
  :root:not([data-theme="dark"]) .logo-on-light { display: block !important; }
}
.footer-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.footer-meta nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 22px; }
.footer-meta a { color: var(--text-dim); text-decoration: none; }
.footer-meta a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-xl { grid-row: auto; }
}
@media (max-width: 960px) {
  .nav-anchor { display: none; }
  .hero { min-height: 0; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; width: min(92%, 500px); margin: 0 auto -4px; }
  .hero-mark { width: 100%; margin-left: 0; }
  .hero-copy { text-align: left; }
  .scroll-cue { display: none; }
  .demo-grid, .dist-grid, .priv-grid, .faq-grid { grid-template-columns: 1fr; }
  .phone { transform: none; }
  .demo-grid { row-gap: 0; }
  .demo-copy { display: contents; }
  .demo-copy .eyebrow { justify-self: start; }
  .demo-stage { order: 1; margin-top: 40px; }
  .demo-stage.is-in, .demo-stage { opacity: 1; }
  .states { order: 2; margin-top: 28px; }
  .priv-visual { width: min(80%, 360px); }
}
@media (max-width: 720px) {
  .step-list { grid-template-columns: 1fr; }
  .bubble { position: relative; right: auto; top: auto; width: auto; margin-top: 18px; border-radius: 6px 20px 20px 20px; transform-origin: 20% 0; }
  .phone { aspect-ratio: auto; }
  .phone-body { position: relative; inset: auto; aspect-ratio: 2.16 / 1; }
  .phone-glow { inset: -6% -4% auto; height: 70%; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .bento { grid-template-columns: 1fr; }
  .card-xl { grid-column: auto; padding: 28px 24px; }
  .card:not(.card-xl) { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; padding: 20px 20px 22px; }
  .card:not(.card-xl) .ic { width: 44px; height: 44px; border-radius: 13px; grid-row: span 2; }
  .card:not(.card-xl) .ic svg { width: 23px; height: 23px; }
  .card:not(.card-xl) h3 { margin-top: 0; align-self: center; font-size: 1.05rem; }
  .card:not(.card-xl) p { margin-top: 4px; font-size: .95rem; }
  .bento { gap: 12px; }
  .chart { --label-w: 1fr; }
  .bar-row { grid-template-columns: 1fr; gap: 8px; padding: 14px 0; }
  .axis { margin-left: 0; }
  .footer-meta { align-items: flex-start; }
  .footer-meta nav { justify-content: flex-start; }
  .orbit-chip { font-size: 12px; padding: 6px 11px; }
  .header-row { gap: 12px; }
  .nav a { padding: 8px 6px; }
  .cta-row .btn, .cta-row .play-badge { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 420px) {
  .hide-sm { display: none; }
  .wordmark { font-size: 19px; }
  .eyebrow-pill { font-size: 13px; }
  .trust { gap: 8px 16px; font-size: 14px; }
}

/* ---------- Reduced motion: everything static, content always visible ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js .step-list .step { opacity: 1 !important; }
  .js .chart .bar i, .js .card-xl .mini-bar i, .js .step-list .step::before { transform: none !important; }
  .js .shield .check { stroke-dashoffset: 0 !important; }
  .rings i:first-child { opacity: .6; transform: scale(.7); }
  .phone, .layer, .sweep-wrap { transform: none !important; }
  .scroll-progress { transform: scaleX(var(--progress, 0)) !important; }
}
