/* Zelicra PC Emulator — site styles. Dark-only brand; tokens first, then layout, then sections. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-var.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #05070c;
  --bg-raise: #090e17;
  --surface: #0d1420;
  --surface-2: #121b2b;
  --line: rgba(183, 196, 217, 0.12);
  --line-strong: rgba(183, 196, 217, 0.24);
  --text: #eaf1fb;
  --text-2: #b7c4d9;
  --text-3: #8a97ae;
  --cyan: #3fd6ff;
  --cyan-ink: #03141b;
  --cyan-soft: rgba(63, 214, 255, 0.1);
  --cyan-line: rgba(63, 214, 255, 0.35);
  --cyan-glow: rgba(63, 214, 255, 0.28);
  --amber: #ffb547;
  --amber-soft: rgba(255, 181, 71, 0.1);
  --amber-line: rgba(255, 181, 71, 0.35);

  --font-sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --dur-instant: 100ms;
  --dur-fast: 180ms;
  --dur-base: 240ms;
  --dur-slow: 400ms;
  --dur-reveal: 520ms;
  --ease-out: cubic-bezier(0.05, 0.7, 0.1, 1);
  --ease-in: cubic-bezier(0.3, 0, 0.8, 0.15);
  --ease-move: cubic-bezier(0.2, 0, 0, 1);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 64px;
  --radius: 18px;
  --radius-sm: 10px;
  --section-pad: clamp(72px, 10vw, 144px);

  --z-grain: 90;
  --z-header: 50;
  --z-skip: 100;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--bg);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
::selection { background: rgba(63, 214, 255, 0.3); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--font-mono); }
.tnum { font-variant-numeric: tabular-nums; }

.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: var(--z-skip);
  padding: 10px 16px; border-radius: 10px; background: var(--cyan); color: var(--cyan-ink);
  font-weight: 600; text-decoration: none; transform: translateY(-160%);
  transition: transform var(--dur-fast) var(--ease-out);
}
.skip-link:focus { transform: none; }

.grain {
  position: fixed; inset: 0; z-index: var(--z-grain); pointer-events: none;
  background: url("/assets/img/grain.svg") repeat; opacity: 0.022;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color var(--dur-base) var(--ease-move), border-color var(--dur-base) var(--ease-move);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, .page-doc .site-header {
  background: rgba(5, 7, 12, 0.93);
  border-bottom-color: var(--line);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; margin-right: auto; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 0 1px var(--line), 0 6px 24px -8px var(--cyan-glow); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 800; font-stretch: 125%; letter-spacing: 0.02em; font-size: 1.02rem; }
.brand-sub { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin-top: 4px; }
.nav-desktop ul { list-style: none; display: flex; gap: 4px; }
.nav-desktop a, .nav-mobile-panel a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 999px;
  color: var(--text-2); text-decoration: none; font-size: 0.93rem; font-weight: 500;
  transition: color var(--dur-fast) var(--ease-move), background-color var(--dur-fast) var(--ease-move);
}
.nav-desktop a:hover, .nav-desktop a[aria-current="page"] { color: var(--text); background: rgba(183, 196, 217, 0.08); }
.header-status, .nav-mobile-status {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--text-2);
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.04em; white-space: nowrap;
}
.pulse-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.pulse-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--amber); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .pulse-dot::after { animation: pulse 2.4s var(--ease-out) infinite; }
}
@keyframes pulse { 0% { transform: scale(1); opacity: 0.55; } 70%, 100% { transform: scale(3.3); opacity: 0; } }

.nav-mobile { display: none; position: relative; }
.nav-mobile summary {
  list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 12px; border: 1px solid var(--line-strong); color: var(--text);
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile .icon { width: 22px; height: 22px; }
.nav-mobile .icon-close, .nav-mobile[open] .icon-open { display: none; }
.nav-mobile[open] .icon-close { display: block; }
.nav-mobile-panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, calc(100vw - 32px));
  padding: 10px; border-radius: 16px; background: rgba(13, 20, 32, 0.97);
  border: 1px solid var(--line-strong); box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.7);
}
.nav-mobile-panel ul { list-style: none; display: grid; gap: 2px; }
.nav-mobile-panel a { display: flex; width: 100%; min-height: 48px; border-radius: 10px; font-size: 1rem; color: var(--text); }
.nav-mobile-panel a:hover, .nav-mobile-panel a[aria-current="page"] { background: rgba(183, 196, 217, 0.08); }
.nav-mobile-status { margin: 10px 4px 4px; }
@media (prefers-reduced-motion: no-preference) {
  .nav-mobile[open] .nav-mobile-panel { animation: menu-in var(--dur-base) var(--ease-out); transform-origin: top right; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(0.97); } }

@media (max-width: 1080px) { .header-status { display: none; } }
@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .nav-mobile { display: block; }
}

.scroll-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--cyan), var(--amber)); opacity: 0.9; pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .scroll-progress { animation: progress-grow linear both; animation-timeline: scroll(root); }
}
@keyframes progress-grow { to { transform: scaleX(1); } }

/* ---------- Buttons & chips ---------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  background: var(--btn-bg); color: var(--text); font-weight: 600; font-size: 1rem; text-decoration: none;
  cursor: pointer; touch-action: manipulation;
  transition: transform var(--dur-fast) var(--ease-move), background-color var(--dur-fast) var(--ease-move), border-color var(--dur-fast) var(--ease-move), color var(--dur-fast) var(--ease-move);
}
.btn .icon { width: 20px; height: 20px; }
.btn-ghost { border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--cyan-line); background: var(--cyan-soft); transform: translateY(-1px); }
.btn:active { transform: scale(0.97); transition-duration: var(--dur-instant); }
.btn-ghost:hover .icon-arrow { transform: translateX(3px); }
.icon-arrow { transition: transform var(--dur-fast) var(--ease-move); }

.btn-primary { --btn-bg: var(--cyan); color: var(--cyan-ink); box-shadow: 0 10px 40px -14px var(--cyan-glow); }
.btn-primary:hover { --btn-bg: #74e2ff; transform: translateY(-1px); }
.btn-primary:hover .icon-arrow { transform: translateX(3px); }

/* "Coming soon" Play status: plain text with an icon. Not a link and not shaped like a button, so it never looks tappable. */
.store-status { display: flex; align-items: flex-start; gap: 10px; color: var(--text-2); font-size: 0.95rem; line-height: 1.45; }
.store-status b { color: var(--text); font-weight: 650; }
.store-status .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--amber); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.04em; font-weight: 500;
  border: 1px solid var(--line-strong); color: var(--text-2); white-space: nowrap;
}
.chip .icon { width: 14px; height: 14px; }
.chip-verified { border-color: var(--cyan-line); color: var(--cyan); background: var(--cyan-soft); }
.chip-dev { border-color: var(--amber-line); color: var(--amber); background: var(--amber-soft); }
.chip-untested { color: var(--text-2); }

/* ---------- Section scaffolding ---------- */
.section { position: relative; padding-block: var(--section-pad); }
.section + .section { border-top: 1px solid rgba(183, 196, 217, 0.06); }
.section-head { max-width: 820px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan);
}
.kicker-num { color: var(--text-3); }
.kicker::before { content: ""; width: 24px; height: 1px; background: currentColor; opacity: 0.6; }
.section-head.center .kicker::before { display: none; }
.h2 {
  font-size: clamp(2rem, 1.2rem + 3.6vw, 3.9rem); font-weight: 760; font-stretch: 112%;
  line-height: 1.02; letter-spacing: -0.025em;
}
.h2 .dim { color: var(--text-3); }
.lede { margin-top: 20px; font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem); color: var(--text-2); line-height: 1.55; max-width: 64ch; }
.section-head.center .lede { margin-inline: auto; }
.h3 { font-size: 1.25rem; font-weight: 700; font-stretch: 108%; letter-spacing: -0.01em; }
.muted { color: var(--text-2); }
.fineprint { font-size: 0.85rem; color: var(--text-3); }

.card {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(22px, 2.6vw, 32px); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(183, 196, 217, 0.05), rgba(183, 196, 217, 0.015));
  border: 1px solid var(--line);
}
.card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 0%, rgba(63, 214, 255, 0.09), transparent 60%);
  transition: opacity var(--dur-base) var(--ease-move);
}
.card:hover::after { opacity: 1; }
.card:hover { border-color: rgba(63, 214, 255, 0.22); }
.card { transition: border-color var(--dur-base) var(--ease-move); }
.card-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  color: var(--cyan); background: var(--cyan-soft); border: 1px solid rgba(63, 214, 255, 0.2);
}
.card-icon .icon { width: 22px; height: 22px; }
.card-icon.amber { color: var(--amber); background: var(--amber-soft); border-color: rgba(255, 181, 71, 0.22); }
.card .h3 + p { margin-top: 10px; color: var(--text-2); }

/* Reveal on scroll: hidden only when JS is running, so no-JS readers see everything. */
.js .reveal { opacity: 0; transform: translateY(28px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); }
.js .stagger > .reveal.is-in:nth-child(2) { transition-delay: 60ms; }
.js .stagger > .reveal.is-in:nth-child(3) { transition-delay: 120ms; }
.js .stagger > .reveal.is-in:nth-child(4) { transition-delay: 180ms; }
.js .stagger > .reveal.is-in:nth-child(5) { transition-delay: 240ms; }
.js .stagger > .reveal.is-in:nth-child(6) { transition-delay: 300ms; }
.js .stagger > .reveal.is-in:nth-child(n+7) { transition-delay: 340ms; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: clip; padding-bottom: clamp(56px, 8vw, 120px); margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + clamp(40px, 7vw, 96px)); }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg::before {
  content: ""; position: absolute; inset: -10% -20% auto; height: 120%;
  background:
    radial-gradient(50% 42% at 50% 62%, rgba(63, 214, 255, 0.22), transparent 70%),
    radial-gradient(22% 18% at 74% 48%, rgba(255, 181, 71, 0.12), transparent 70%),
    radial-gradient(60% 50% at 50% 0%, rgba(26, 52, 92, 0.55), transparent 70%);
}
.hero-floor {
  position: absolute; left: -25%; right: -25%; bottom: -8%; height: 62%;
  background-image:
    linear-gradient(rgba(63, 214, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 214, 255, 0.16) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(600px) rotateX(62deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  opacity: 0.55;
}
.hero-copy { text-align: center; max-width: 1040px; margin-inline: auto; }
.eyebrow {
  display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 12px;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: rgba(13, 20, 32, 0.6); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; color: var(--text-2);
}
.eyebrow .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--cyan); opacity: 0.8; }
.display {
  margin-top: 26px;
  font-size: clamp(2.35rem, 0.9rem + 6.6vw, 6.4rem);
  font-weight: 820; font-stretch: 118%; line-height: 0.96; letter-spacing: -0.035em;
}
.display .line { display: block; }
/* Gradient sits on each word: clipping it on the parent would not paint through the animated inline-blocks. */
.display .accent, .display .accent .word {
  background: linear-gradient(92deg, #8fe9ff 0%, var(--cyan) 45%, #a7c8ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.display .accent:has(.word) { background: none; }
.display .word { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .display .word { animation: word-in 500ms var(--ease-out) both; }
  .display .line:nth-child(1) .word { animation-name: word-rise; }
  .display .line:nth-child(1) .word:nth-child(2) { animation-delay: 30ms; }
  .display .line:nth-child(1) .word:nth-child(3) { animation-delay: 60ms; }
  .display .line:nth-child(1) .word:nth-child(4) { animation-delay: 90ms; }
  .display .line:nth-child(2) .word:nth-child(1) { animation-delay: 140ms; }
  .display .line:nth-child(2) .word:nth-child(2) { animation-delay: 170ms; }
  .display .line:nth-child(2) .word:nth-child(3) { animation-delay: 200ms; }
  .hero-sub, .hero-actions, .hero .store-status, .hero-meta { animation: fade-up 560ms var(--ease-out) 240ms both; }
  .hero-actions { animation-delay: 290ms; }
  .hero .store-status { animation-delay: 320ms; }
  .hero-meta { animation-delay: 350ms; }
}
@keyframes word-in { from { opacity: 0; transform: translateY(0.35em); } }
@keyframes word-rise { from { transform: translateY(0.25em); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } }
.hero-sub { margin: 26px auto 0; max-width: 60ch; font-size: clamp(1.05rem, 0.98rem + 0.45vw, 1.3rem); color: var(--text-2); line-height: 1.55; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero .store-status { display: block; margin-top: 22px; text-align: center; }
.hero .store-status .icon { display: inline-block; vertical-align: -3px; margin: 0 8px 0 0; }
.hero-meta { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; color: var(--text-3); font-size: 0.9rem; list-style: none; }
.hero-meta li { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta .icon { width: 16px; height: 16px; color: var(--cyan); }

/* Hero device: a landscape phone running a PC desktop. All inner sizes use cqw so it scales as one object. */
.hero-stage { margin-top: clamp(48px, 7vw, 88px); display: flex; flex-direction: column; align-items: center; perspective: 1400px; }
.device-wrap { container-type: inline-size; width: min(100%, 1040px); }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-stage { animation: stage-out linear both; animation-timeline: view(); animation-range: exit -10% exit 90%; }
  }
}
@keyframes stage-out { to { transform: translateY(8%) scale(0.9) rotateX(14deg); opacity: 0.3; } }

.phone {
  position: relative; margin: 0; aspect-ratio: 2.13; border-radius: 6.2cqw; padding: 1.35cqw;
  background: linear-gradient(160deg, #2a3446 0%, #121a28 30%, #0b111c 70%, #1c2638 100%);
  box-shadow:
    0 0 0 0.12cqw rgba(183, 196, 217, 0.25),
    inset 0 0 0 0.25cqw rgba(0, 0, 0, 0.6),
    0 4cqw 8cqw -2cqw rgba(0, 0, 0, 0.8),
    0 0 12cqw -2cqw rgba(63, 214, 255, 0.28);
}
@media (prefers-reduced-motion: no-preference) {
  .phone { animation: phone-in 900ms var(--ease-out) 120ms both; }
}
@keyframes phone-in { from { opacity: 0; transform: translateY(10%) rotateX(32deg) scale(0.92); } }
.phone::before { /* side buttons */
  content: ""; position: absolute; top: -0.35cqw; left: 22%; width: 9%; height: 0.4cqw; border-radius: 0.3cqw 0.3cqw 0 0; background: #2a3446;
  box-shadow: 13cqw 0 0 -0.02cqw #2a3446;
}
.screen {
  position: relative; height: 100%; border-radius: 4.9cqw; overflow: hidden; background: #060a12;
  font-family: var(--font-mono); font-size: 1.12cqw; color: #cfe2f5; isolation: isolate;
}
.screen::after { /* glass reflection */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 5;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.07) 0%, transparent 32%, transparent 70%, rgba(255, 255, 255, 0.03) 100%);
}
.punch-hole { position: absolute; left: 1.9cqw; top: 50%; width: 1.25cqw; height: 1.25cqw; margin-top: -0.62cqw; border-radius: 50%; background: #000; box-shadow: 0 0 0 0.15cqw #111824; z-index: 6; }

.desk {
  position: absolute; inset: 0; padding-left: 4.6cqw;
  background:
    radial-gradient(60% 70% at 70% 30%, rgba(63, 214, 255, 0.18), transparent 70%),
    radial-gradient(40% 50% at 15% 85%, rgba(255, 181, 71, 0.1), transparent 70%),
    linear-gradient(160deg, #0c1a2e, #070d18 60%, #0a1322);
  transition: opacity 500ms var(--ease-out);
}
.desk-panel {
  position: absolute; left: 4.6cqw; right: 0; top: 0; height: 2.9cqw; display: flex; align-items: center; justify-content: space-between;
  padding-inline: 1.4cqw; background: rgba(4, 8, 14, 0.7); border-bottom: 0.08cqw solid rgba(183, 196, 217, 0.15); color: #b7c4d9; font-size: 0.95cqw;
}
.desk-panel span { display: inline-flex; align-items: center; gap: 0.6cqw; }
.desk-panel .dot { width: 0.7cqw; height: 0.7cqw; border-radius: 50%; background: var(--cyan); }
.win {
  position: absolute; border-radius: 1cqw; overflow: hidden;
  background: rgba(9, 15, 26, 0.92); border: 0.08cqw solid rgba(183, 196, 217, 0.2);
  box-shadow: 0 1.6cqw 3.2cqw -0.8cqw rgba(0, 0, 0, 0.7);
  transition: transform 700ms var(--ease-out), opacity 500ms var(--ease-out);
}
.win-title { display: flex; align-items: center; gap: 0.55cqw; height: 2.4cqw; padding-inline: 1cqw; background: rgba(183, 196, 217, 0.07); color: #8a97ae; font-size: 0.9cqw; }
.win-title i { width: 0.75cqw; height: 0.75cqw; border-radius: 50%; background: #2a3548; }
.win-title i:first-child { background: #ff6b6b; } .win-title i:nth-child(2) { background: var(--amber); } .win-title i:nth-child(3) { background: #4ce0a0; }
.win-title b { font-weight: 500; margin-left: 0.6cqw; }
.win-body { padding: 1.2cqw 1.4cqw; line-height: 1.65; white-space: pre; }
.term-lines { display: block; }
.win-term { left: 7.4cqw; top: 5.2cqw; width: 45cqw; height: 26cqw; }
.win-term .p { color: var(--cyan); }
.win-term .ok { color: #4ce0a0; }
.win-about { left: 55cqw; top: 13.2cqw; width: 36cqw; }
.win-about .win-body { white-space: normal; display: grid; grid-template-columns: auto 1fr; gap: 0.5cqw 1.4cqw; font-size: 1cqw; }
.win-about dt { color: #8a97ae; } .win-about dd { margin: 0; color: #eaf1fb; }
.caret { display: inline-block; width: 0.65em; height: 1.05em; vertical-align: -0.15em; background: var(--cyan); }
@media (prefers-reduced-motion: no-preference) { .caret { animation: blink 1.1s steps(1) infinite; } }
@keyframes blink { 50% { opacity: 0; } }

.hud {
  position: absolute; right: 1.6cqw; top: 4cqw; display: flex; align-items: center; gap: 1.2cqw;
  padding: 0.7cqw 1.1cqw; border-radius: 0.9cqw; background: rgba(3, 8, 14, 0.78);
  border: 0.08cqw solid rgba(63, 214, 255, 0.35); font-size: 0.92cqw; color: #b7c4d9;
}
.hud b { color: #eaf1fb; font-weight: 600; font-variant-numeric: tabular-nums; }
.hud-cores { display: flex; align-items: flex-end; gap: 0.22cqw; height: 1.7cqw; }
.hud-cores i { width: 0.45cqw; height: 100%; border-radius: 0.1cqw; background: var(--cyan); transform-origin: 50% 100%; transform: scaleY(var(--v, 0.5)); transition: transform 600ms var(--ease-move); }
.hud-temp { color: var(--amber); }

.xkeys {
  position: absolute; left: 4.6cqw; right: 0; bottom: 0; height: 4.4cqw; display: flex; align-items: center; gap: 0.6cqw;
  padding-inline: 1.2cqw; background: rgba(4, 8, 14, 0.88); border-top: 0.08cqw solid rgba(183, 196, 217, 0.15);
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.xkeys span {
  display: grid; place-items: center; min-width: 3.4cqw; height: 2.8cqw; padding-inline: 0.7cqw; border-radius: 0.6cqw;
  background: #141e2e; border: 0.08cqw solid rgba(183, 196, 217, 0.18); color: #dbe6f4; font-size: 0.95cqw;
}
.xkeys span.on { background: rgba(63, 214, 255, 0.2); border-color: var(--cyan); color: #fff; }
.xkeys svg, .keycap svg { width: 1.3em; height: 1.3em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.r180 { transform: rotate(180deg); } .r-90 { transform: rotate(-90deg); } .r90 { transform: rotate(90deg); }

.desk-cursor { position: absolute; left: 30cqw; top: 22cqw; width: 1.6cqw; height: 1.6cqw; z-index: 3; color: #fff; filter: drop-shadow(0 0.2cqw 0.3cqw rgba(0, 0, 0, 0.6)); }
.desk-cursor svg { width: 100%; height: 100%; fill: #fff; stroke: #05070c; stroke-width: 1.2; }
@media (prefers-reduced-motion: no-preference) { .desk-cursor { animation: cursor-wander 9s var(--ease-move) infinite; } }
@keyframes cursor-wander {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(14cqw, -6cqw); }
  50% { transform: translate(30cqw, 2cqw); }
  75% { transform: translate(8cqw, 6cqw); }
}

/* Boot layer: hidden by default (final state = desktop). JS adds .is-booting to play the sequence. */
.boot {
  position: absolute; inset: 0; padding: 2.4cqw 3cqw 2.4cqw 6cqw; background: #020408; color: #b7c4d9;
  font-size: 1.45cqw; line-height: 1.55; opacity: 0; visibility: hidden; z-index: 4;
  transition: opacity 450ms var(--ease-in), visibility 0s linear 450ms;
}
.boot p { white-space: pre; }
.boot .hi { color: var(--cyan); }
.boot .warn { color: var(--amber); }
.boot .ok { color: #4ce0a0; }
.phone.is-booting .boot { opacity: 1; visibility: visible; transition: none; }
.phone.is-booting .win { opacity: 0; transform: translateY(2cqw) scale(0.96); }
.phone.is-booting .hud, .phone.is-booting .desk-cursor { opacity: 0; }
.hud, .desk-cursor { transition: opacity 500ms var(--ease-out) 400ms; }
.win-about { transition-delay: 120ms; }

.hero-caption { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; color: var(--text-3); font-size: 0.85rem; text-align: center; }
.replay {
  display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-strong); background: rgba(13, 20, 32, 0.7); color: var(--text-2); font-family: var(--font-mono); font-size: 0.78rem;
  transition: color var(--dur-fast) var(--ease-move), border-color var(--dur-fast) var(--ease-move), transform var(--dur-fast) var(--ease-move);
}
.js .replay { display: inline-flex; }
.replay:hover { color: var(--text); border-color: var(--cyan-line); }
.replay:active { transform: scale(0.96); }
.replay .icon { width: 16px; height: 16px; }

/* Phones: the whole device fits on screen with its outline visible. Inside, just the terminal and the keys bar, at a readable size. */
@media (max-width: 640px) {
  .hero-stage { margin-top: 40px; }
  .phone { aspect-ratio: 2; }
  .screen { font-size: 11px; }
  .desk-panel, .win-about, .hud, .desk-cursor { display: none; }
  .win-term { left: 6.6cqw; right: 2.2cqw; top: 1.4cqw; bottom: 8cqw; width: auto; height: auto; border-radius: 2.2cqw; }
  .win-title { height: 15px; gap: 4px; padding-inline: 8px; font-size: 11px; }
  .win-title i { width: 6px; height: 6px; }
  .win-term { display: flex; flex-direction: column; }
  .win-body { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 2px 9px; line-height: 1.36; }
  .xkeys { height: 7cqw; gap: 4px; padding-inline: 8px; }
  .xkeys span { flex: none; min-width: 0; height: 5.2cqw; padding-inline: 6px; border-radius: 4px; font-size: 11px; }
  .boot { overflow: hidden; padding: 10px 12px 10px 7cqw; font-size: 11px; line-height: 1.4; }
  .boot p { white-space: pre-wrap; }
}

/* ---------- Proof stats ---------- */
.proof { padding-block: clamp(48px, 7vw, 88px); border-top: 1px solid rgba(183, 196, 217, 0.06); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: rgba(13, 20, 32, 0.4); }
.stat { padding: clamp(22px, 3vw, 36px); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat-value { display: flex; align-items: baseline; gap: 4px; font-size: clamp(2.4rem, 1.6rem + 2.6vw, 3.8rem); font-weight: 800; font-stretch: 120%; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-value small { font-size: 0.42em; font-weight: 600; color: var(--text-2); letter-spacing: 0; }
.stat-value .pre { font-size: 0.6em; color: var(--text-2); }
.stat-label { margin-top: 12px; color: var(--text-2); font-size: 0.95rem; line-height: 1.45; }
.stat:nth-child(-n+2) .stat-value { color: var(--cyan); }
.stats-note { margin-top: 16px; display: flex; gap: 8px; align-items: flex-start; color: var(--text-3); font-size: 0.88rem; }
.stats-note .icon { width: 16px; height: 16px; margin-top: 3px; }
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- How it works (sticky phone + steps) ---------- */
.how-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.how-device { position: sticky; top: calc(var(--header-h) + 5vh); display: grid; justify-items: center; }
.pframe {
  position: relative; width: min(100%, 330px); aspect-ratio: 600 / 1326; padding: 10px; border-radius: 46px;
  background: linear-gradient(160deg, #2a3446, #0d141f 40%, #1a2436);
  box-shadow: 0 0 0 1px rgba(183, 196, 217, 0.22), 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 120px -30px rgba(63, 214, 255, 0.35);
}
.pframe-screen { position: relative; height: 100%; border-radius: 37px; overflow: hidden; background: #0a0d13; }
.pframe-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pframe-screen::before { content: ""; position: absolute; top: 12px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #000; z-index: 2; box-shadow: 0 0 0 2px #121a26; }
html:not(.js) .how-device .pframe-screen img:not(:first-child) { display: none; }
.js .how-device .pframe-screen img { opacity: 0; transform: scale(1.03); transition: opacity 500ms var(--ease-out), transform 700ms var(--ease-out); }
.js .how-device .pframe-screen img.is-active { opacity: 1; transform: none; }
.how-device-label { margin-top: 18px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-3); letter-spacing: 0.06em; }
.steps { list-style: none; counter-reset: step; }
.step { position: relative; padding: clamp(28px, 4vw, 40px) 0 clamp(28px, 4vw, 40px) 64px; min-height: 62vh; display: flex; flex-direction: column; justify-content: center; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-3);
  border: 1px solid var(--line-strong); background: var(--bg); transition: color var(--dur-base) var(--ease-move), border-color var(--dur-base) var(--ease-move), box-shadow var(--dur-base) var(--ease-move);
}
.step::after { content: ""; position: absolute; left: 21.5px; top: 0; bottom: 0; width: 1px; background: var(--line); z-index: -1; }
.step.is-active::before { color: var(--cyan-ink); background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 0 6px var(--cyan-soft); }
.step h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); font-weight: 760; font-stretch: 112%; letter-spacing: -0.02em; }
.step p { margin-top: 14px; color: var(--text-2); font-size: 1.08rem; max-width: 46ch; }
.step .chips { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.step-shot { display: none; }
.js .step { opacity: 0.65; transition: opacity var(--dur-slow) var(--ease-move); }
.js .step.is-active { opacity: 1; }
@media (max-width: 900px) {
  .how-grid { grid-template-columns: 1fr; }
  .how-device { display: none; }
  .step { min-height: 0; padding-left: 0; padding-top: 0; }
  .step::before { position: static; transform: none; margin-bottom: 16px; }
  .step::after { display: none; }
  .js .step { opacity: 1; }
  .step-shot { display: block; margin-top: 28px; width: min(64%, 250px); border-radius: 30px; border: 7px solid #1a2436; box-shadow: 0 0 0 1px rgba(183, 196, 217, 0.22), 0 30px 60px -24px rgba(0, 0, 0, 0.9), 0 0 80px -30px rgba(63, 214, 255, 0.35); }
  .step + .step { margin-top: 56px; }
}

/* ---------- Features bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.b-input { grid-column: span 4; }
.b-hud { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
.b-keys { grid-column: span 4; }
.b-sm { grid-column: span 2; }
.b-md { grid-column: span 3; }
@media (max-width: 1023px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-input, .b-keys { grid-column: span 2; }
  .b-hud { grid-column: span 2; grid-row: auto; }
  .b-sm, .b-md { grid-column: span 1; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .b-input, .b-keys, .b-hud, .b-sm, .b-md { grid-column: auto; }
}
.b-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px; align-items: center; }
@media (max-width: 760px) { .b-split { grid-template-columns: 1fr; } }

.seg { display: grid; gap: 8px; margin-top: 22px; }
.seg button {
  display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; text-align: left; cursor: pointer;
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(5, 7, 12, 0.4);
  transition: border-color var(--dur-fast) var(--ease-move), background-color var(--dur-fast) var(--ease-move), transform var(--dur-instant) var(--ease-move);
}
.seg button:hover { border-color: var(--line-strong); }
.seg button:active { transform: scale(0.985); }
.seg button[aria-pressed="true"] { border-color: var(--cyan-line); background: var(--cyan-soft); }
.seg button .icon { grid-row: span 2; width: 22px; height: 22px; color: var(--text-3); }
.seg button[aria-pressed="true"] .icon { color: var(--cyan); }
.seg b { font-weight: 650; font-size: 0.98rem; }
.seg span { color: var(--text-2); font-size: 0.88rem; line-height: 1.4; }

/* Input-mode demo */
.demo {
  position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, #0b1524, #070c16); border: 1px solid var(--line);
}
.demo-screen { position: absolute; left: 8%; right: 8%; top: 8%; height: 50%; border-radius: 8px; background: radial-gradient(80% 90% at 70% 20%, rgba(63, 214, 255, 0.16), transparent), #0a1322; border: 1px solid rgba(183, 196, 217, 0.18); }
.demo-screen::before { content: ""; position: absolute; left: 8%; top: 18%; width: 38%; height: 52%; border-radius: 4px; border: 1px solid rgba(183, 196, 217, 0.2); background: rgba(5, 9, 16, 0.7); }
.demo-pad { position: absolute; left: 22%; right: 22%; bottom: 8%; height: 28%; border-radius: 10px; border: 1px dashed rgba(183, 196, 217, 0.3); display: grid; place-items: center; color: var(--text-3); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; transition: opacity var(--dur-base) var(--ease-move); }
.demo-pad .pad-label-mouse { display: none; }
.demo-cursor { position: absolute; left: 30%; top: 26%; width: 18px; height: 18px; transition: opacity var(--dur-base); }
.demo-cursor svg { width: 100%; height: 100%; fill: #fff; stroke: #05070c; stroke-width: 1.2; }
.demo-finger { position: absolute; left: 44%; top: 74%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: rgba(255, 181, 71, 0.35); border: 2px solid var(--amber); box-shadow: 0 0 18px rgba(255, 181, 71, 0.45); transition: opacity var(--dur-base); }
.demo-mouse { position: absolute; left: 50%; bottom: 10%; width: 30px; height: 42px; margin-left: -15px; color: var(--amber); opacity: 0; transition: opacity var(--dur-base); }
.demo-mouse .icon { width: 100%; height: 100%; }
.demo[data-mode="direct"] .demo-pad { opacity: 0; }
.demo[data-mode="direct"] .demo-finger { left: 30%; top: 26%; margin: -6px 0 0 -6px; }
.demo[data-mode="mouse"] .demo-finger, .demo[data-mode="mouse"] .demo-pad { opacity: 0; }
.demo[data-mode="mouse"] .demo-mouse { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .demo[data-mode="trackpad"] .demo-finger { animation: tp-finger 3.2s var(--ease-move) infinite; }
  .demo[data-mode="trackpad"] .demo-cursor { animation: tp-cursor 3.2s var(--ease-move) infinite; }
  .demo[data-mode="direct"] .demo-finger { animation: dt-finger 3.2s var(--ease-move) infinite; }
  .demo[data-mode="direct"] .demo-cursor { animation: dt-finger 3.2s var(--ease-move) infinite; }
  .demo[data-mode="mouse"] .demo-mouse { animation: ms-mouse 3.2s var(--ease-move) infinite; }
  .demo[data-mode="mouse"] .demo-cursor { animation: tp-cursor 3.2s var(--ease-move) infinite; }
}
@keyframes tp-finger { 0%, 100% { transform: translate(0, 0); } 35% { transform: translate(44px, -10px); } 65% { transform: translate(-24px, 8px); } }
@keyframes tp-cursor { 0%, 100% { transform: translate(0, 0); } 35% { transform: translate(110px, -22px); } 65% { transform: translate(-50px, 30px); } }
@keyframes dt-finger { 0%, 100% { transform: translate(0, 0) scale(1); } 35% { transform: translate(110px, -22px) scale(1); } 45% { transform: translate(110px, -22px) scale(0.8); } 65% { transform: translate(-50px, 30px) scale(1); } }
@keyframes ms-mouse { 0%, 100% { transform: translate(0, 0); } 35% { transform: translate(30px, -6px); } 65% { transform: translate(-16px, 6px); } }

/* Keycaps */
.keyrow { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.keycap {
  display: inline-grid; place-items: center; min-width: 48px; height: 44px; padding: 0 12px; border-radius: 10px;
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--text);
  background: linear-gradient(180deg, #1a2538, #111a29); border: 1px solid rgba(183, 196, 217, 0.2);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform var(--dur-instant) var(--ease-move), border-color var(--dur-fast), color var(--dur-fast);
}
.keycap:hover { border-color: var(--cyan-line); color: var(--cyan); }
.keycap.wide { min-width: 64px; }
.keycap.mod { color: var(--amber); }
@media (prefers-reduced-motion: no-preference) {
  .js .keyrow.is-in .keycap { animation: key-tap 4.8s var(--ease-move) infinite; }
  .keyrow .keycap:nth-child(3) { animation-delay: 0.6s; }
  .keyrow .keycap:nth-child(4) { animation-delay: 0.7s; }
  .keyrow .keycap:nth-child(1) { animation-delay: 2.2s; }
  .keyrow .keycap:nth-child(6) { animation-delay: 3.1s; }
  .keyrow .keycap:nth-child(n+9) { animation: none !important; }
}
@keyframes key-tap { 0%, 8%, 100% { transform: none; } 3% { transform: translateY(2px) scale(0.95); } }

/* HUD card */
.hudcard { margin-top: 22px; padding: 18px; border-radius: 14px; background: #04080f; border: 1px solid rgba(63, 214, 255, 0.25); font-family: var(--font-mono); }
.hudcard-row { display: flex; justify-content: space-between; align-items: baseline; color: var(--text-3); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.hudcard-row b { color: var(--text); font-size: 1.6rem; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; text-transform: none; }
.hudcard-row + .hudcard-row { margin-top: 14px; }
.cores { margin-top: 10px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; height: 76px; align-items: end; }
.cores i { height: 100%; border-radius: 3px; background: linear-gradient(180deg, var(--cyan), rgba(63, 214, 255, 0.35)); transform-origin: 50% 100%; transform: scaleY(var(--v, 0.5)); transition: transform 700ms var(--ease-move); }
.thermal { margin-top: 10px; height: 8px; border-radius: 99px; background: rgba(183, 196, 217, 0.12); overflow: hidden; }
.thermal i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, #4ce0a0, var(--amber)); transform-origin: 0 50%; transform: scaleX(var(--v, 0.6)); transition: transform 900ms var(--ease-move); }
.hudcard-note { margin-top: 12px; font-size: 0.75rem; color: var(--text-3); letter-spacing: 0.02em; }
.b-hud .seg { margin-top: 16px; }

.formats { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.notif {
  margin-top: 20px; display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: center;
  padding: 14px 16px; border-radius: 16px; background: #141d2c; border: 1px solid var(--line-strong);
}
.notif .card-icon { margin: 0; width: 36px; height: 36px; grid-row: span 2; }
.notif b { font-size: 0.95rem; }
.notif span { color: var(--text-2); font-size: 0.85rem; grid-column: 2; }
.notif em { grid-row: 1 / span 2; grid-column: 3; font-style: normal; font-family: var(--font-mono); font-size: 0.78rem; color: var(--cyan); padding: 8px 12px; border-radius: 999px; border: 1px solid var(--cyan-line); }

/* ---------- Systems ---------- */
.os-group + .os-group { margin-top: 48px; }
.os-group-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 18px; }
.os-group-head h3 { font-size: 1.15rem; font-weight: 700; font-stretch: 108%; }
.os-group-head p { color: var(--text-3); font-size: 0.92rem; }
.os-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; list-style: none; }
.os { display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.os-top { display: flex; align-items: center; gap: 14px; }
.mono-tile {
  width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em;
  background: #0a121f; border: 1px solid var(--line-strong); color: var(--text);
}
.os.verified .mono-tile { color: var(--cyan); border-color: var(--cyan-line); }
.os.dev .mono-tile { color: var(--amber); border-color: var(--amber-line); }
.os h3 { font-size: 1.08rem; font-weight: 700; }
.os .arch { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.os .arch span { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-3); border: 1px solid var(--line); padding: 2px 7px; border-radius: 6px; }
.os p { color: var(--text-2); font-size: 0.95rem; line-height: 1.5; }
.os .result { margin-top: auto; display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.82rem; color: var(--text); }
.os .result .icon { width: 16px; height: 16px; color: var(--cyan); }
.os.dev .result .icon { color: var(--amber); }
.os.untested .result .icon { color: var(--text-3); }
.os.dev, .os.untested { background: linear-gradient(180deg, rgba(183, 196, 217, 0.03), rgba(183, 196, 217, 0.01)); }

/* ---------- Performance ---------- */
.perf-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 960px) { .perf-grid { grid-template-columns: 1fr; } }
.perf-points { list-style: none; display: grid; gap: 26px; }
.perf-points li { display: grid; grid-template-columns: auto 1fr; gap: 14px; }
.perf-points .card-icon { margin: 0; width: 40px; height: 40px; }
.perf-points b { display: block; font-weight: 650; }
.perf-points span { color: var(--text-2); }

.pipeline { padding: clamp(18px, 3vw, 30px); border-radius: 22px; background: #060b14; border: 1px solid var(--line); font-family: var(--font-mono); }
.pipe-cols { display: grid; grid-template-columns: 1fr auto 0.85fr auto 1.25fr; gap: 12px; align-items: center; }
.pipe-label { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.asm { display: grid; gap: 6px; font-size: 0.75rem; }
.asm span { padding: 6px 8px; border-radius: 6px; background: rgba(183, 196, 217, 0.06); border: 1px solid var(--line); color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pipe-arrow { color: var(--cyan); opacity: 0.7; }
.pipe-arrow .icon { width: 22px; height: 22px; }
.jit { position: relative; display: grid; place-items: center; text-align: center; gap: 6px; padding: 20px 10px; border-radius: 14px; border: 1px solid var(--cyan-line); background: var(--cyan-soft); color: var(--cyan); font-size: 0.78rem; }
.jit .icon { width: 30px; height: 30px; }
.jit::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; box-shadow: 0 0 40px rgba(63, 214, 255, 0.35); opacity: 0.4; }
@media (prefers-reduced-motion: no-preference) { .jit::after { animation: glow 2.4s ease-in-out infinite alternate; } }
@keyframes glow { to { opacity: 1; } }
.lanes { display: grid; gap: 6px; }
.lane { position: relative; height: 16px; border-radius: 4px; background: rgba(183, 196, 217, 0.05); overflow: hidden; }
.lane i { position: absolute; top: 3px; bottom: 3px; left: 0; width: 34%; border-radius: 3px; background: linear-gradient(90deg, rgba(63, 214, 255, 0.15), var(--cyan)); transform: translateX(var(--x, 60%)); }
.lane:nth-child(odd) i { width: 22%; }
.lane:nth-child(3n) i { background: linear-gradient(90deg, rgba(255, 181, 71, 0.15), var(--amber)); }
@media (prefers-reduced-motion: no-preference) {
  .lane i { animation: lane 2.6s linear infinite; }
  .lane:nth-child(2) i { animation-duration: 2.1s; animation-delay: -0.6s; }
  .lane:nth-child(3) i { animation-duration: 3s; animation-delay: -1.2s; }
  .lane:nth-child(4) i { animation-duration: 2.4s; animation-delay: -0.3s; }
  .lane:nth-child(5) i { animation-duration: 2.8s; animation-delay: -1.8s; }
  .lane:nth-child(6) i { animation-duration: 2.2s; animation-delay: -0.9s; }
  .lane:nth-child(7) i { animation-duration: 3.2s; animation-delay: -2.1s; }
  .lane:nth-child(8) i { animation-duration: 2.5s; animation-delay: -1.4s; }
}
@keyframes lane { from { transform: translateX(-110%); } to { transform: translateX(310%); } }
.pipe-foot { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 0.8rem; color: var(--text-3); line-height: 1.5; }
@media (max-width: 640px) {
  .eyebrow { font-size: 0.75rem; gap: 6px 8px; padding: 7px 12px; }
  .zero { max-width: 320px; }
  .pipe-cols { grid-template-columns: 1fr; }
  .pipe-arrow { transform: rotate(90deg); justify-self: center; }
}

.expect { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; list-style: none; }
@media (max-width: 860px) { .expect { grid-template-columns: 1fr; } }
.expect .card { padding: 24px; }
.meter { display: flex; gap: 4px; margin-bottom: 16px; }
.meter i { flex: 1; height: 6px; border-radius: 3px; background: rgba(183, 196, 217, 0.12); }
.meter.m4 i:nth-child(-n+4), .meter.m2 i:nth-child(-n+2), .meter.mv i:nth-child(-n+3) { background: var(--cyan); }
.meter.m2 i:nth-child(-n+2) { background: var(--amber); }
.meter.mv i:nth-child(-n+3) { background: linear-gradient(90deg, var(--cyan), var(--amber)); }
.expect h3 { font-size: 1.1rem; font-weight: 700; }
.expect p { margin-top: 8px; color: var(--text-2); font-size: 0.95rem; }

/* ---------- Privacy promise ---------- */
.privacy-band { position: relative; overflow: clip; }
.privacy-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 60% at 15% 40%, rgba(63, 214, 255, 0.09), transparent 70%); }
.priv-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
@media (max-width: 960px) { .priv-grid { grid-template-columns: 1fr; } }
.zero { position: relative; aspect-ratio: 1; max-width: 440px; width: 100%; margin-inline: auto; display: grid; place-items: center; }
.zero-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(63, 214, 255, 0.35); }
.zero-ring.r2 { inset: 12%; border-style: solid; border-color: var(--line); }
.zero-ring.r3 { inset: 24%; border-color: rgba(255, 181, 71, 0.25); }
@media (prefers-reduced-motion: no-preference) { .zero-ring { animation: spin 40s linear infinite; } .zero-ring.r3 { animation-duration: 60s; animation-direction: reverse; } }
@keyframes spin { to { transform: rotate(360deg); } }
.zero-core { position: relative; text-align: center; }
.zero-core b { display: block; font-size: clamp(5rem, 4rem + 6vw, 9rem); font-weight: 850; font-stretch: 125%; line-height: 0.9; letter-spacing: -0.05em; color: var(--cyan); text-shadow: 0 0 60px rgba(63, 214, 255, 0.45); }
.zero-core span { display: block; margin-top: 12px; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }
.priv-list { margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; list-style: none; }
@media (max-width: 560px) { .priv-list { grid-template-columns: 1fr; } }
.priv-list li { display: grid; grid-template-columns: auto 1fr; gap: 12px; }
.priv-list .icon { width: 22px; height: 22px; color: var(--cyan); margin-top: 2px; }
.priv-list b { display: block; font-weight: 650; }
.priv-list span { color: var(--text-2); font-size: 0.95rem; }
.priv-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Coming next ---------- */
.next-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; list-style: none; }
.n-pro { grid-column: span 6; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 32px; align-items: center; border-color: var(--amber-line); background: radial-gradient(80% 120% at 100% 0%, rgba(255, 181, 71, 0.1), transparent 60%), linear-gradient(180deg, rgba(183, 196, 217, 0.05), rgba(183, 196, 217, 0.015)); }
.n-big { grid-column: span 3; }
.n-sm { grid-column: span 2; }
@media (max-width: 960px) {
  .next-grid { grid-template-columns: 1fr 1fr; }
  .n-pro { grid-column: span 2; grid-template-columns: 1fr; }
  .n-big { grid-column: span 2; }
  .n-sm { grid-column: span 1; }
}
@media (max-width: 560px) { .next-grid { grid-template-columns: 1fr; } .n-pro, .n-big, .n-sm { grid-column: auto; } }
.next-grid .chip { margin-bottom: 16px; }
.price { margin-top: 20px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price b { font-size: clamp(2.2rem, 1.8rem + 1.6vw, 3rem); font-weight: 820; font-stretch: 118%; letter-spacing: -0.03em; }
.price span { color: var(--text-2); }
.stream { position: relative; display: flex; align-items: center; justify-content: center; gap: clamp(12px, 3vw, 28px); padding: 24px 8px; }
.stream .s-phone { width: 54px; height: 96px; border-radius: 12px; border: 2px solid var(--text-2); position: relative; background: #0a1322; }
.stream .s-phone::after { content: ""; position: absolute; inset: 22% 10%; border-radius: 3px; background: linear-gradient(160deg, rgba(63, 214, 255, 0.5), rgba(63, 214, 255, 0.1)); }
.stream .s-waves { display: flex; gap: 6px; }
.stream .s-waves i { width: 10px; height: 10px; border-radius: 50%; background: var(--amber); opacity: 0.3; }
@media (prefers-reduced-motion: no-preference) {
  .stream .s-waves i { animation: wave 1.6s ease-in-out infinite; }
  .stream .s-waves i:nth-child(2) { animation-delay: 0.2s; }
  .stream .s-waves i:nth-child(3) { animation-delay: 0.4s; }
}
@keyframes wave { 50% { opacity: 1; transform: scale(1.25); } }
.stream .s-tv { width: clamp(150px, 22vw, 220px); aspect-ratio: 16 / 10; border-radius: 10px; border: 2px solid var(--text-2); position: relative; background: radial-gradient(70% 80% at 60% 30%, rgba(63, 214, 255, 0.3), transparent), #0a1322; }
.stream .s-tv::after { content: ""; position: absolute; left: 35%; right: 35%; bottom: -12px; height: 4px; border-radius: 2px; background: var(--text-2); }
.stream .s-tv::before { content: ""; position: absolute; left: 10%; top: 14%; width: 45%; height: 50%; border-radius: 4px; border: 1px solid rgba(183, 196, 217, 0.35); background: rgba(5, 9, 16, 0.6); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: rgba(13, 20, 32, 0.45); transition: border-color var(--dur-fast) var(--ease-move), background-color var(--dur-fast) var(--ease-move); }
.faq details[open] { border-color: rgba(63, 214, 255, 0.25); background: rgba(13, 20, 32, 0.8); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 60px; padding: 16px 20px; font-weight: 650; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2);
  transform: translateY(-3px) rotate(45deg); transition: transform var(--dur-base) var(--ease-move);
}
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); border-color: var(--cyan); }
.faq .answer { padding: 0 20px 20px; color: var(--text-2); }
.faq .answer p + p, .faq .answer p + ul, .faq .answer ul + p { margin-top: 10px; }
.faq .answer ul { padding-left: 1.2em; }
.faq .answer li + li { margin-top: 4px; }
@media (prefers-reduced-motion: no-preference) { .faq details[open] .answer { animation: fade-up var(--dur-base) var(--ease-out); } }
.faq-more { margin-top: 28px; text-align: center; }

/* ---------- Final CTA ---------- */
.final { position: relative; overflow: clip; }
.final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(45% 60% at 70% 50%, rgba(63, 214, 255, 0.14), transparent 70%), radial-gradient(30% 40% at 20% 80%, rgba(255, 181, 71, 0.07), transparent 70%); }
.final-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 860px) { .final-grid { grid-template-columns: 1fr; } }
.final .display { font-size: clamp(2.2rem, 1rem + 5vw, 5rem); margin-top: 0; }
.final .store-status { margin-top: 20px; }
.final-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.final-device { display: grid; justify-items: center; }
.final-device .pframe { width: min(78%, 300px); transform: rotate(6deg); }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .final-device .pframe { animation: tilt-in linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
  }
}
@keyframes tilt-in { from { transform: rotate(-4deg) translateY(12%); opacity: 0.4; } to { transform: rotate(6deg); opacity: 1; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-raise); padding-block: 64px calc(40px + env(safe-area-inset-bottom, 0px)); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr; } }
.footer-tagline { margin-top: 16px; color: var(--text-2); max-width: 34ch; }
.footer-contact { margin-top: 16px; display: flex; align-items: center; gap: 8px; }
.footer-contact .icon { color: var(--text-3); width: 18px; height: 18px; }
.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 560px) { .footer-nav { grid-template-columns: 1fr 1fr; } }
.footer-heading { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.footer-nav ul { list-style: none; display: grid; gap: 2px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 40px; color: var(--text-2); text-decoration: none; }
.footer-nav a:hover { color: var(--text); text-decoration: underline; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 8px; color: var(--text-3); font-size: 0.85rem; }

/* ---------- Document pages (legal, support, source) ---------- */
.doc-hero { position: relative; overflow: clip; padding-block: clamp(56px, 8vw, 104px) clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.doc-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 120% at 85% 0%, rgba(63, 214, 255, 0.12), transparent 70%); }
.doc-hero h1 { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4rem); font-weight: 800; font-stretch: 114%; letter-spacing: -0.03em; line-height: 1; }
.doc-hero .lede { margin-top: 18px; }
.doc-meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding-block: clamp(40px, 6vw, 72px) var(--section-pad); }
@media (max-width: 960px) { .doc-layout { grid-template-columns: minmax(0, 1fr); } }
.toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; font-size: 0.9rem; }
.toc h2 { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.toc ol { list-style: none; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 1px solid transparent; color: var(--text-2); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--text); border-left-color: var(--text-3); }
.toc a.is-current { color: var(--cyan); border-left-color: var(--cyan); }
@media (max-width: 960px) {
  .toc { position: static; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(13, 20, 32, 0.45); }
  .toc a { padding-block: 11px; }
}
.prose { max-width: 72ch; color: var(--text-2); }
.prose > * + * { margin-top: 16px; }
.prose h2 { margin-top: 56px; color: var(--text); font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.85rem); font-weight: 750; font-stretch: 110%; letter-spacing: -0.015em; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 32px; color: var(--text); font-size: 1.15rem; font-weight: 700; }
.prose strong { color: var(--text); font-weight: 650; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--cyan); }
.prose code { font-family: var(--font-mono); font-size: 0.88em; padding: 2px 6px; border-radius: 6px; background: rgba(183, 196, 217, 0.08); color: var(--text); word-break: break-word; }
.summary-box { padding: clamp(20px, 3vw, 30px); border-radius: var(--radius); border: 1px solid var(--cyan-line); background: linear-gradient(180deg, rgba(63, 214, 255, 0.08), rgba(63, 214, 255, 0.02)); color: var(--text); }
.summary-box h2 { margin-top: 0; font-size: 1.15rem; }
.summary-box ul { margin-top: 14px; list-style: none; padding: 0; display: grid; gap: 10px; }
.summary-box li { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.summary-box li::before { content: ""; width: 16px; height: 16px; margin-top: 5px; border-radius: 50%; background: var(--cyan-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233FD6FF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 10px no-repeat; border: 1px solid var(--cyan-line); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); background: rgba(183, 196, 217, 0.04); }
td { color: var(--text-2); }
td:first-child { color: var(--text); font-weight: 600; }
td code { white-space: nowrap; }
table.wide { min-width: 640px; }
/* Phones: each row becomes a block (first cell on top, the rest labelled underneath), so nothing scrolls sideways or clips. */
@media (max-width: 640px) {
  .table-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .table-stack, .table-stack tbody, .table-stack tr, .table-stack td { display: block; }
  table.wide.table-stack { min-width: 0; }
  .table-stack tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .table-stack tr:last-child { border-bottom: 0; }
  .table-stack td { padding: 0; border: 0; }
  .table-stack td + td { margin-top: 6px; }
  .table-stack td code { white-space: normal; overflow-wrap: anywhere; }
  .table-stack td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
}
.callout { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--amber-line); background: var(--amber-soft); color: var(--text); }
.callout .icon { color: var(--amber); width: 20px; height: 20px; margin-top: 2px; }
.dl-list { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.dl-list li { margin: 0 !important; }
.dl-list a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(13, 20, 32, 0.5); text-decoration: none; color: var(--text); transition: border-color var(--dur-fast) var(--ease-move), background-color var(--dur-fast) var(--ease-move); }
.dl-list a:hover { border-color: var(--cyan-line); background: var(--cyan-soft); }
.dl-list .icon { color: var(--cyan); width: 22px; height: 22px; }
.dl-list span { display: grid; gap: 2px; min-width: 0; }
.dl-list code { background: none; padding: 0; color: var(--text); font-size: 0.9rem; overflow-wrap: anywhere; }
.dl-list small { color: var(--text-3); font-size: 0.82rem; }
.doc-contact { margin-top: 48px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(13, 20, 32, 0.5); color: var(--text-2); }
.doc-contact b { color: var(--text); }

/* ---------- 404 ---------- */
.nf { min-height: calc(100dvh - var(--header-h) - 200px); display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; padding-block: 80px; text-align: center; }
.nf-code { font-size: clamp(6rem, 4rem + 14vw, 14rem); font-weight: 850; font-stretch: 125%; line-height: 0.85; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 2px var(--cyan); }
.nf-log { margin: 28px auto 0; max-width: 560px; padding: 18px 20px; border-radius: 14px; background: #020408; border: 1px solid var(--line); text-align: left; font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-2); line-height: 1.7; overflow-x: auto; }
.nf-log .warn { color: var(--amber); }
.nf .hero-actions { margin-top: 32px; }

/* Decorative loops run only while their block is on screen (site.js toggles .in-view); without JS they just run. */
.js [data-anim]:not(.in-view) *, .js [data-anim]:not(.in-view) *::before, .js [data-anim]:not(.in-view) *::after { animation-play-state: paused !important; }

/* ---------- Motion floor ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
.prose .faq { margin-inline: 0; max-width: none; }
.prose .faq summary { font-size: 1rem; color: var(--text); }
.nf .lede { margin-inline: auto; }
