/* ==========================================================================
   Desic Terminal — landing page
   Phosphor command deck: near-black surfaces, violet phosphor accent, hairline
   instrument rules. Palette tracks the app's own tokens (src/styles.css) so the
   site and the product read as one object.

   Token names are load-bearing: docs.css consumes them. Add, don't rename.
   ========================================================================== */

:root {
  /* brand, mirrored from the app */
  --bg: #020305;
  --panel: #080a0e;
  --panel-2: #0d1016;
  --text: #f5f7fb;
  --muted: #aab1c0;
  /* The app uses --weak #626b7c for de-emphasised labels, but at 3.7:1 on
     these surfaces it fails WCAG AA for body copy. Lifted to 6.4:1+ for the
     web while staying clearly subordinate to --muted. */
  --weak: #8a93a3;
  --purple: #955cff;
  --purple-2: #7138e8;
  --focus: #b89aff;
  --up: #f6465d;
  --down: #0ecb81;
  --warn: #f5a524;
  --line: rgba(174, 186, 210, 0.17);
  --line-soft: rgba(174, 186, 210, 0.085);

  /* phosphor layer — the accent used as light, not just as ink */
  --tint-1: rgba(149, 92, 255, 0.06);
  --tint-2: rgba(149, 92, 255, 0.12);
  --tint-3: rgba(149, 92, 255, 0.22);
  --rim: rgba(149, 92, 255, 0.34);
  --glow-sm: 0 0 12px rgba(149, 92, 255, 0.3);
  --glow-md: 0 0 26px rgba(149, 92, 255, 0.22);
  --glow-lg: 0 0 60px rgba(149, 92, 255, 0.18);
  --glass: rgba(9, 11, 18, 0.72);

  --font-sans: "Inter", "Segoe UI", system-ui, sans-serif;
  /* System CJK faces only — no webfont, so switching language costs nothing. */
  --font-sans-zh: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans SC", system-ui, sans-serif;
  --font-display: "BubbledotICG-FinePos", ui-monospace, "SFMono-Regular", monospace;
  --font-mono: ui-monospace, "SFMono-Regular", "Menlo", monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}

/* Self-hosted so the page does not depend on the CDN staying up.
   244 glyphs, covers A-Z a-z 0-9 and the < % * # symbols. CC BY 4.0. */
@font-face {
  font-family: "BubbledotICG-FinePos";
  src: url("fonts/BubbledotICG-FinePos.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

:where(a, button):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 14px;
  z-index: 40;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--purple);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 14px;
}

/* ==========================================================================
   1. Header — fixed, so it stays over the pinned stage
   ========================================================================== */

.header {
  position: fixed;
  top: clamp(10px, 1.8vh, 20px);
  left: 50%;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 26px);
  width: calc(100% - 2 * clamp(14px, 3vw, 32px));
  max-width: 1180px;
  padding: 7px 8px 7px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  transform: translateX(-50%);
  animation: slideDown 0.7s var(--ease) both;
}

/* The app icon, as-is: it carries its own dark rounded square and glow. */
.logo {
  display: block;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  transition: transform 0.25s var(--ease), filter 0.25s var(--ease);
}

.logo:hover {
  transform: scale(1.06);
  filter: drop-shadow(0 0 10px rgba(149, 92, 255, 0.55));
}

.logo img {
  width: 100%;
  height: 100%;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1vw, 14px);
  margin-right: auto;
}

.nav-link {
  position: relative;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
  color: var(--text);
  background: var(--tint-1);
}

.nav-link.is-active {
  color: var(--text);
}

/* a lit phosphor underscore under the active label */
.nav-link.is-active::after {
  content: "";
  position: absolute;
  bottom: 1px;
  left: 12px;
  right: 12px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--purple);
  box-shadow: var(--glow-sm);
}

.header-end {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 8px;
}

.ghost-cta {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  height: 36px;
  padding: 0 clamp(14px, 1.7vw, 19px);
  border-radius: 999px;
  border: 1px solid var(--rim);
  background: linear-gradient(180deg, rgba(149, 92, 255, 0.2), rgba(113, 56, 232, 0.1));
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background 0.2s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.ghost-cta:hover {
  background: linear-gradient(180deg, rgba(149, 92, 255, 0.34), rgba(113, 56, 232, 0.2));
  box-shadow: var(--glow-sm);
  transform: translateY(-1px);
}

.lang-toggle {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(174, 186, 210, 0.05);
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.lang-toggle:hover {
  border-color: var(--rim);
  background: var(--tint-1);
  color: var(--text);
}

.burger {
  display: none;
}

/* ==========================================================================
   2. The one shot
   One grid cell holds the canyon and everything printed over it. Without
   stage.js the terminal sits in a second row below; with it (.is-cinema)
   the whole thing pins and the terminal joins the first cell.
   ========================================================================== */

.shot {
  position: relative;
}

.shot-anchor {
  position: absolute;
  top: max(620px, 100vh);
  top: max(620px, 100svh);
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

/* stage.js POSES: the overview beat settles at 2.42 viewports */
.shot.is-cinema .shot-anchor {
  top: 245vh;
}

.shot-pin {
  position: relative;
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: minmax(620px, 100vh) auto;
  grid-template-rows: minmax(620px, 100svh) auto;
  isolation: isolate;
  background: var(--bg);
}

.canyon,
.hero,
.stats,
.scroll-hint {
  grid-row: 1;
  grid-column: 1;
}

.canyon {
  position: relative;
  z-index: 0;
  overflow: hidden;
  /* Shown until WebGL draws, and instead of it when WebGL is unavailable. */
  background: var(--bg) url("assets/canyon-poster.webp") center / cover no-repeat;
}

.has-canyon .canyon {
  background: var(--bg);
}

.canyon-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Darkness held behind the headline, the status strip and the header. The
   scene's own fog does most of the work; this only guarantees contrast. */
.canyon-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(58% 44% at 50% 30%, rgba(2, 3, 5, 0.74), transparent 74%),
    radial-gradient(34% 22% at 50% 62%, rgba(2, 3, 5, 0.66), transparent 100%),
    linear-gradient(
      180deg,
      rgba(2, 3, 5, 0.6) 0%,
      transparent 20%,
      transparent 72%,
      rgba(2, 3, 5, 0.9) 100%
    );
}

/* --- hero copy ----------------------------------------------------------- */

.hero {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: start;
  justify-self: center;
  width: 100%;
  max-width: 1240px;
  padding: clamp(104px, 16vh, 176px) clamp(16px, 4vw, 40px) 0;
  text-align: center;
}

/* trust row — a live status readout rather than a stack of white badges */
.trust {
  --trust-size: clamp(30px, 3.6vw, 34px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(18px, 3vh, 34px);
  padding: 5px 16px 5px 6px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(8, 10, 16, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--trust-size);
  height: var(--trust-size);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel-2);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

.avatar svg {
  position: relative;
  z-index: 1;
  width: calc(var(--trust-size) * 0.52);
  height: calc(var(--trust-size) * 0.52);
  color: var(--muted);
  transition: color 0.35s var(--ease);
}

.avatar.a1 {
  z-index: 3;
}

.avatar.a2 {
  z-index: 2;
  margin-left: calc(var(--trust-size) * -0.38);
}

.avatar.a3 {
  z-index: 1;
  margin-left: calc(var(--trust-size) * -0.38);
}

.trust:hover .avatar {
  border-color: var(--rim);
}

.trust:hover .avatar svg {
  color: var(--focus);
}

.trust:hover .a1 {
  transform: translateY(-2px);
}

.trust:hover .a2 {
  transform: translateY(-4px);
}

.trust:hover .a3 {
  transform: translateY(-2px);
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: clamp(11.5px, 1.3vw, 12.5px);
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* the live dot: a pulsing phosphor ring, the app's own "stream is live" cue */
.trust-pill::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--down);
  box-shadow: 0 0 8px rgba(14, 203, 129, 0.75);
  animation: livePulse 2.4s ease-in-out infinite;
}

/* The headline is the largest thing on the page, by a distance. */
.headline {
  margin: 0;
  color: #f4f1ff;
  font-family: var(--font-display);
  font-size: clamp(34px, 8.2vw, 128px);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1;
  white-space: nowrap;
  text-shadow:
    0 0 26px rgba(149, 92, 255, 0.36),
    0 0 80px rgba(149, 92, 255, 0.18);
}

.headline span {
  display: block;
  opacity: 0;
  transform: translateY(16px);
  animation: headlineFade 0.9s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}

/* The second line is the payoff: lit in the brand phosphor, not a gradient. */
.headline span:last-child {
  color: #c3adff;
}

.subhead {
  max-width: min(560px, 92%);
  margin: clamp(18px, 2.8vh, 30px) 0 0;
  color: #b9c0cd;
  font-size: clamp(14.5px, 1.5vw, 17px);
  font-weight: 400;
  line-height: 1.62;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 18px);
  margin-top: clamp(20px, 3.4vh, 36px);
}

/* Primary CTA: lit phosphor. */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  padding: clamp(12px, 1.7vh, 14px) clamp(24px, 3.2vw, 32px);
  border: 1px solid var(--rim);
  background: linear-gradient(180deg, #a06fff 0%, #7c3ce6 100%);
  color: #fff;
  font-size: clamp(14px, 1.5vw, 15px);
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow:
    0 0 0 1px rgba(149, 92, 255, 0.2),
    0 8px 30px rgba(113, 56, 232, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}

/* a specular sweep that crosses on hover */
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, 0.3) 50%, transparent 68%);
  transform: translateX(-120%);
  transition: transform 0.65s var(--ease);
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(149, 92, 255, 0.34),
    0 12px 40px rgba(113, 56, 232, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.cta:hover::after {
  transform: translateX(120%);
}

.cta-alt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: clamp(12px, 1.7vh, 14px) clamp(18px, 2.4vw, 22px);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(2, 3, 5, 0.5);
  color: var(--muted);
  font-size: clamp(13px, 1.4vw, 14px);
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.cta-alt:hover {
  color: var(--text);
  border-color: var(--rim);
  background: var(--tint-1);
}

.cta-alt .mini {
  width: 15px;
  height: 15px;
}

/* --- status strip -------------------------------------------------------- *
 * The four product numbers read like the app's bottom status bar: one
 * hairline, dot-matrix figures, no tiles.                                    */

.stats {
  position: relative;
  z-index: 2;
  align-self: end;
  display: flex;
  align-items: baseline;
  gap: clamp(18px, 3.4vw, 54px);
  width: 100%;
  padding: 16px clamp(18px, 4vw, 48px) clamp(16px, 2.6vh, 24px);
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(0deg, rgba(2, 3, 5, 0.86), rgba(2, 3, 5, 0.32));
}

.stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
}

.stat-value {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  color: var(--weak);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.scene-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 0 auto;
  color: var(--weak);
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
}

/* --- scroll hint --------------------------------------------------------- */

.scroll-hint {
  position: relative;
  z-index: 2;
  align-self: end;
  justify-self: center;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-bottom: clamp(74px, 10vh, 92px);
  opacity: 0;
  animation: reveal 0.85s var(--ease) 1s forwards;
}

.scroll-hint span {
  width: 9px;
  height: 9px;
  border-right: 1.5px solid rgba(255, 255, 255, 0.5);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.5);
  transform: rotate(45deg) translate(-1px, -1px);
  animation: nudge 1.9s ease-in-out infinite;
}

.scroll-hint:hover span {
  border-color: var(--focus);
}

/* --- overhead caption (pinned layout only) ------------------------------- */

.shot-caption {
  display: none;
}

.shot.is-cinema .shot-caption {
  position: relative;
  z-index: 2;
  grid-row: 1;
  grid-column: 1;
  align-self: end;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(92vw, 1000px);
  margin: 0 0 clamp(28px, 6vh, 56px);
  padding: 11px 18px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(2, 3, 5, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #c9cfda;
  font-size: clamp(13px, 1.1vw, 14.5px);
  line-height: 1.45;
  opacity: 0;
  visibility: hidden;
}

/* --- the terminal (flat layout: an ordinary section) --------------------- */

.cinema {
  position: relative;
  z-index: 3;
  grid-row: 2;
  grid-column: 1;
  display: grid;
  gap: clamp(36px, 6vh, 64px);
  padding: clamp(72px, 11vh, 128px) clamp(18px, 4vw, 40px);
}

.plane-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.plane {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}

.plane-poster {
  width: 100%;
  height: auto;
}

.plane-frame {
  display: none;
}

.plane-focus {
  display: none;
}

.plane-label {
  display: none;
}

/* Flat: the copy column dissolves into the section grid so the overview
   heading can lead, ahead of the picture. */
.cinema-copy {
  display: contents;
}

.cue {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.cue.is-overview {
  order: -1;
}

.cue h3 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.cue > p:not(.eyebrow):not(.cue-idx):not(.section-lead) {
  max-width: 54ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(14.5px, 1.3vw, 16.5px);
  line-height: 1.7;
}

/* Section index in the display face: the one decorative numeral per block. */
.cue-idx {
  margin: 0 0 18px;
  color: var(--purple);
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1;
  letter-spacing: -0.04em;
  text-shadow: var(--glow-sm);
}

/* --- the terminal (pinned layout) ----------------------------------------- */

.shot.is-cinema .shot-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  grid-template-rows: 100vh;
  overflow: hidden;
}

.shot.is-cinema .cinema {
  grid-row: 1;
  display: block;
  padding: 0;
  pointer-events: none;
}

/* Legibility scrim for the copy column; stage.js drives --scrim. */
.shot.is-cinema .cinema::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: var(--scrim, 0);
  background: linear-gradient(
    90deg,
    rgba(2, 3, 5, 0.97) 0%,
    rgba(2, 3, 5, 0.9) 30%,
    rgba(2, 3, 5, 0.35) 44%,
    transparent 56%
  );
}

/* A faint phosphor pool under the plane, so it never floats on flat black. */
.shot.is-cinema .cinema::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--label, 0);
  background: radial-gradient(40% 50% at 70% 52%, rgba(149, 92, 255, 0.12), transparent 72%);
}

.shot.is-cinema .plane-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  max-width: none;
  margin: 0;
  perspective: 1800px;
  perspective-origin: 50% 40%;
}

.shot.is-cinema .plane {
  position: absolute;
  top: 0;
  left: 0;
  width: 1600px;
  height: 1000px;
  border-color: rgba(174, 186, 210, 0.22);
  transform-origin: 800px 500px;
  opacity: 0;
  visibility: hidden;
  will-change: transform, opacity;
  box-shadow:
    0 0 0 1px rgba(149, 92, 255, 0.12),
    0 50px 140px rgba(0, 0, 0, 0.75),
    0 0 120px rgba(149, 92, 255, 0.1);
}

.shot.is-cinema .plane-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.shot.is-cinema .plane-frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 1600px;
  height: 1000px;
  border: 0;
  pointer-events: none;
  background: transparent;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Spotlight: everything outside the focused panel dims. stage.js moves it. */
.shot.is-cinema .plane-focus {
  position: absolute;
  display: block;
  border-radius: 8px;
  pointer-events: none;
  opacity: var(--focus, 0);
  box-shadow:
    0 0 0 1px rgba(184, 154, 255, 0.7),
    0 0 26px rgba(149, 92, 255, 0.35),
    0 0 0 3000px rgba(2, 3, 5, 0.66);
}

.shot.is-cinema .plane-label {
  position: absolute;
  right: clamp(18px, 3vw, 40px);
  bottom: clamp(16px, 2.6vh, 26px);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--weak);
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: var(--label, 0);
}

.shot.is-cinema .cinema-copy {
  position: absolute;
  top: 0;
  bottom: 0;
  left: clamp(24px, 6vw, 104px);
  z-index: 3;
  display: block;
  width: min(32vw, 470px);
  max-width: none;
  margin: 0;
}

.shot.is-cinema .cue {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(-50%);
}

.shot.is-cinema .cue.is-overview .section-title {
  font-size: clamp(30px, 3.4vw, 54px);
}


/* ==========================================================================
   3. Sections
   ========================================================================== */

.section {
  position: relative;
  padding: clamp(96px, 15vh, 180px) clamp(18px, 4vw, 40px);
}

/* A lit hairline at the top of each section, brightest at centre — the seam
   between two instrument panels. */
.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--line) 22%,
    rgba(149, 92, 255, 0.42) 50%,
    var(--line) 78%,
    transparent
  );
}

.section.is-tight {
  padding-top: clamp(72px, 10vh, 120px);
  padding-bottom: clamp(72px, 10vh, 120px);
}

.wrap {
  margin: 0 auto;
  width: 100%;
  max-width: 1180px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--focus);
  font-family: var(--font-display);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* a short lit rule leading into the eyebrow label */
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple));
  box-shadow: var(--glow-sm);
}

.section-title {
  max-width: 20ch;
  margin: 0;
  color: #f1f3f8;
  font-size: clamp(32px, 4.8vw, 68px);
  font-weight: 600;
  letter-spacing: -0.042em;
  line-height: 1.04;
}

.section-lead {
  max-width: 62ch;
  margin: clamp(18px, 2.4vw, 26px) 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 17.5px);
  line-height: 1.66;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(149, 92, 255, 0.06);
  color: #cfd4de;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}

/* --- live instrument chrome ---------------------------------------------- */

.rig-label {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  background: rgba(2, 3, 5, 0.72);
  border-bottom-left-radius: 10px;
  border-bottom: 1px solid rgba(149, 92, 255, 0.18);
  border-left: 1px solid rgba(149, 92, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--weak);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.01em;
  max-width: 340px;
  white-space: nowrap;
}

.rig-label span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rig-dot {
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 8px rgba(149, 92, 255, 0.9);
  animation: livePulse 2.4s ease-in-out infinite;
}

.rig-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.proto-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* A still of each prototype stands in until stage.js starts the live one. */
.proto-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

.proto-frame.is-live,
.shot.is-cinema .plane-frame.is-live {
  opacity: 1;
}

/* ==========================================================================
   4. The deck
   Flat: each figure above its own copy. Staged (.is-staged, wide screens):
   one sticky stage on the right, the list drives it.
   ========================================================================== */

.deck {
  position: relative;
  padding: clamp(110px, 16vh, 200px) 0 clamp(60px, 8vh, 100px);
  background:
    radial-gradient(60% 40% at 70% 0%, rgba(149, 92, 255, 0.07), transparent 70%),
    var(--bg);
}

.deck-head {
  padding: 0 clamp(18px, 4vw, 40px);
}

.deck-head .section-title {
  max-width: 17ch;
}

.deck-body {
  position: relative;
  margin-top: clamp(48px, 8vh, 96px);
}

.deck-stage {
  display: none;
}

.deck-list {
  display: grid;
  gap: clamp(64px, 10vh, 110px);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 40px);
  max-width: 1180px;
  list-style: none;
}

.deck-vis {
  position: relative;
  margin: 0 0 clamp(22px, 3vh, 32px);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #020305;
}

.deck-vis.is-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

.deck-copy h3 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.deck-copy p:not(.cue-idx) {
  max-width: 52ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(14.5px, 1.3vw, 16.5px);
  line-height: 1.7;
}

/* staged */
.deck.is-staged .deck-body {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  max-width: none;
}

.deck.is-staged .deck-list {
  grid-row: 1;
  grid-column: 1;
  display: block;
  max-width: none;
  margin: 0;
  padding: 0 clamp(20px, 3vw, 48px) 0 clamp(24px, 6vw, 104px);
}

.deck.is-staged .deck-item {
  display: flex;
  align-items: center;
  min-height: 86vh;
  opacity: 0.24;
  transition: opacity 0.5s var(--ease);
}

.deck.is-staged .deck-item.is-on {
  opacity: 1;
}

.deck.is-staged .deck-item .deck-vis {
  display: none;
}

.deck.is-staged .deck-stage {
  grid-row: 1;
  grid-column: 2;
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  align-items: center;
  height: 100vh;
  padding: clamp(78px, 11vh, 110px) 0 clamp(24px, 4vh, 48px);
}

.deck-frame {
  position: relative;
  width: 100%;
  max-height: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(174, 186, 210, 0.2);
  border-right: 0;
  border-radius: 16px 0 0 16px;
  background: #020305;
  box-shadow:
    0 0 0 1px rgba(149, 92, 255, 0.08),
    0 40px 120px rgba(0, 0, 0, 0.6);
}

.deck-frame .deck-vis {
  position: absolute;
  inset: 0;
  margin: 0;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  opacity: 0;
  transition: opacity 0.55s var(--ease);
}

.deck-frame .deck-vis.is-on {
  opacity: 1;
}

/* Prototypes render at a desktop size and are scaled to the frame
   (stage.js sets --proto-k), instead of reflowing into a cramped one. */
.deck-vis.is-frame .proto-frame {
  right: auto;
  bottom: auto;
  width: 1280px;
  height: 800px;
  transform: scale(var(--proto-k, 1));
  transform-origin: 0 0;
}

.deck-frame .is-shot img {
  object-position: left top;
}

/* A slim progress rail on the stage edge: which of the eight is on. */
.deck-rail {
  position: absolute;
  top: 50%;
  left: -22px;
  z-index: 5;
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  transform: translateY(-50%);
}

.deck-rail li {
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background: rgba(174, 186, 210, 0.22);
  transition: background 0.3s ease, box-shadow 0.3s ease, height 0.3s var(--ease);
}

.deck-rail li.is-on {
  height: 30px;
  background: var(--purple);
  box-shadow: var(--glow-sm);
}

/* ==========================================================================
   5. Safety, download, contact, footer
   ========================================================================== */

.gate {
  padding-bottom: clamp(80px, 12vh, 140px);
}

.gate-title {
  max-width: 13ch;
  margin: 0;
  color: #f4f5f9;
  font-size: clamp(44px, 8.6vw, 136px);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

/* Full-bleed: the chain runs edge to edge, like a bus. */
.gate-rig {
  position: relative;
  margin: clamp(40px, 7vh, 72px) calc(-1 * clamp(18px, 4vw, 40px)) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 15, 40, 0.42), rgba(5, 6, 11, 0.9));
}

.gate-rig .rig-label {
  position: static;
  max-width: none;
  border-bottom: 1px solid var(--line-soft);
  border-left: 0;
  border-bottom-left-radius: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding-left: clamp(18px, 4vw, 40px);
}

.gate-rig .rig-canvas {
  height: clamp(110px, 13vw, 168px);
}

.matrix {
  margin-top: clamp(36px, 5vh, 56px);
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(168deg, rgba(23, 18, 44, 0.5), rgba(8, 10, 14, 0.94));
}

.matrix table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: clamp(13px, 1.2vw, 14.5px);
}

.matrix th,
.matrix td {
  padding: 16px 20px;
  text-align: left;
  vertical-align: middle;
}

.matrix thead th {
  border-bottom: 1px solid var(--line);
  background: rgba(149, 92, 255, 0.05);
  color: var(--weak);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.matrix tbody tr + tr th,
.matrix tbody tr + tr td {
  border-top: 1px solid var(--line-soft);
}

.matrix tbody tr {
  transition: background 0.22s ease;
}

.matrix tbody tr:hover {
  background: rgba(149, 92, 255, 0.045);
}

.matrix tbody th {
  font-weight: 500;
}

.matrix code {
  padding: 4px 9px;
  border: 1px solid rgba(149, 92, 255, 0.22);
  border-radius: 6px;
  background: rgba(149, 92, 255, 0.11);
  color: var(--focus);
  font-family: var(--font-mono);
  font-size: 0.92em;
}

.matrix td {
  color: var(--muted);
}

/* status dots, not filled row backgrounds */
.yes,
.no {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.yes::before,
.no::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.yes::before {
  background: var(--down);
  box-shadow: 0 0 9px rgba(14, 203, 129, 0.6);
}

.no::before {
  background: var(--weak);
}

.matrix-note {
  max-width: 68ch;
  margin: clamp(20px, 2.6vw, 26px) 0 0;
  color: var(--weak);
  font-size: 13.5px;
  line-height: 1.66;
}

/* --- downloads ----------------------------------------------------------- */

.dl-title {
  max-width: 15ch;
  margin: 0;
  color: #f4f5f9;
  font-size: clamp(40px, 6.8vw, 108px);
  font-weight: 650;
  letter-spacing: -0.052em;
  line-height: 0.96;
}

.dl-leads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 3vw, 48px);
  max-width: 1000px;
}

.dl-leads .section-lead a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--rim);
  text-underline-offset: 3px;
}

.downloads {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(40px, 6vh, 64px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--line);
}

.dl {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 6px;
  min-height: clamp(180px, 24vh, 240px);
  padding: clamp(22px, 2.6vw, 32px);
  background: linear-gradient(170deg, rgba(14, 11, 28, 0.98), rgba(6, 7, 11, 1));
  transition: background 0.3s ease;
}

/* a phosphor wash that rises from the bottom edge on hover */
.dl::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(149, 92, 255, 0.18), transparent 70%);
  opacity: 0;
  transition: opacity 0.32s ease;
}

.dl:hover::before,
.dl:focus-visible::before {
  opacity: 1;
}

.dl-icon {
  position: relative;
  width: 24px;
  height: 24px;
  color: var(--muted);
  transition: color 0.28s ease;
}

.dl:hover .dl-icon {
  color: var(--focus);
}

.dl-name {
  position: relative;
  align-self: end;
  font-size: clamp(19px, 1.9vw, 26px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.dl-kind {
  position: relative;
  color: var(--weak);
  font-size: 13px;
}

.dl-arrow {
  position: absolute;
  top: clamp(20px, 2.4vw, 30px);
  right: clamp(22px, 2.6vw, 32px);
  color: var(--weak);
  font-size: 20px;
  line-height: 1;
  transition: color 0.25s ease, transform 0.35s var(--ease);
}

.dl:hover .dl-arrow {
  color: var(--text);
  transform: translateY(4px);
}

/* the visitor's own platform, marked by main.js */
.dl.is-current {
  background: linear-gradient(170deg, rgba(40, 26, 84, 0.9), rgba(10, 8, 20, 1));
}

.dl.is-current .dl-arrow {
  color: var(--focus);
  text-shadow: var(--glow-sm);
}

.notice {
  margin-top: clamp(22px, 3vh, 30px);
  padding: 18px 20px;
  border: 1px solid rgba(245, 165, 36, 0.26);
  border-radius: 12px;
  background: rgba(245, 165, 36, 0.05);
}

.notice p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.66;
}

.notice p + p {
  margin-top: 8px;
}

.notice strong {
  color: var(--warn);
  font-weight: 600;
}

.release-link {
  margin: clamp(20px, 2.6vw, 26px) 0 0;
  font-size: 14px;
}

.release-link a {
  color: var(--focus);
  font-weight: 500;
  transition: color 0.2s ease;
}

.release-link a:hover {
  color: #d3c2ff;
  text-shadow: var(--glow-sm);
}

/* --- contact ------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 4vw, 52px);
  margin-top: clamp(30px, 4vh, 42px);
}

.qq-card {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 24px);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(170deg, rgba(18, 14, 36, 0.55), rgba(8, 10, 14, 0.92));
}

.qq-card img {
  width: clamp(104px, 13vw, 132px);
  height: auto;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
}

.qq-meta {
  min-width: 0;
}

.qq-label {
  margin: 0;
  color: var(--weak);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.qq-number {
  margin: 5px 0 0;
  color: #fff;
  font-family: var(--font-mono);
  font-size: clamp(19px, 2.1vw, 24px);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.qq-hint {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.qq-join {
  display: inline-block;
  margin-top: 12px;
  color: var(--focus);
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.qq-join:hover {
  color: #d3c2ff;
  text-shadow: var(--glow-sm);
}

.contact-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line-soft);
}

.contact-list li:first-child {
  border-top: 1px solid var(--line-soft);
}

.ct-label {
  flex-shrink: 0;
  width: 62px;
  color: var(--weak);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.ct-value {
  color: var(--text);
  font-size: 14.5px;
  font-weight: 500;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

a.ct-value:hover {
  color: var(--focus);
}

/* --- footer -------------------------------------------------------------- */

.footer {
  position: relative;
  padding: clamp(46px, 7vh, 72px) clamp(18px, 4vw, 40px) clamp(30px, 4vh, 44px);
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(8, 10, 16, 0.6), rgba(2, 3, 5, 1));
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(24px, 3.4vh, 34px);
  border-bottom: 1px solid var(--line-soft);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.footer-mark {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

.footer-name {
  margin: 0;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.footer-tag {
  margin: 4px 0 0;
  max-width: 44ch;
  color: var(--weak);
  font-size: 13px;
  line-height: 1.58;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px clamp(16px, 2.2vw, 26px);
  padding-top: 4px;
}

.footer-links a {
  color: var(--muted);
  font-size: 13.5px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text);
}

.disclaimer,
.credits {
  max-width: 88ch;
  margin: clamp(20px, 2.6vh, 26px) 0 0;
  color: var(--weak);
  font-size: 12.5px;
  line-height: 1.7;
}

.credits {
  margin-top: 12px;
}

.credits a {
  color: #a5adbb;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ==========================================================================
   6. Chinese typography
   Negative tracking tuned for Latin makes CJK cramped, and CJK needs a little
   more leading. The headline is unaffected — it stays English in both
   languages because the dot-matrix face has no CJK glyphs.
   ========================================================================== */

.lang-zh {
  font-family: var(--font-sans-zh);
}

.lang-zh .section-title,
.lang-zh .gate-title,
.lang-zh .dl-title,
.lang-zh .cue h3,
.lang-zh .deck-copy h3,
.lang-zh .dl-name,
.lang-zh .footer-name {
  letter-spacing: -0.01em;
}

.lang-zh .gate-title,
.lang-zh .dl-title {
  max-width: none;
  font-size: clamp(36px, 5.6vw, 88px);
  line-height: 1.12;
}

.lang-zh .subhead,
.lang-zh .section-lead,
.lang-zh .cue p,
.lang-zh .deck-copy p,
.lang-zh .matrix-note,
.lang-zh .notice p,
.lang-zh .disclaimer,
.lang-zh .credits,
.lang-zh .qq-hint {
  line-height: 1.8;
}

.lang-zh .nav-link,
.lang-zh .ghost-cta,
.lang-zh .cta,
.lang-zh .sheet-link,
.lang-zh .trust-pill {
  letter-spacing: 0;
}

.lang-zh .eyebrow {
  font-family: var(--font-sans-zh);
  font-weight: 500;
  letter-spacing: 0.06em;
}

/* CJK in an uppercase-transformed slot gains nothing and loses the tracking. */
.lang-zh .stat-label,
.lang-zh .ct-label,
.lang-zh .qq-label {
  letter-spacing: 0.02em;
  text-transform: none;
}

/* ==========================================================================
   7. Animation
   ========================================================================== */

.anim {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  filter: blur(6px);
  animation: reveal 0.85s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}

.cta-row.anim {
  animation-name: revealPulse;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes revealPulse {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
    filter: blur(6px);
  }
  72% {
    opacity: 1;
    transform: translateY(0) scale(1.015);
    filter: none;
  }
  100% {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translate(-50%, -18px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%);
  }
}

@keyframes headlineFade {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes livePulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 8px rgba(14, 203, 129, 0.75);
  }
  50% {
    opacity: 0.55;
    box-shadow: 0 0 3px rgba(14, 203, 129, 0.4);
  }
}

@keyframes nudge {
  0%,
  100% {
    transform: rotate(45deg) translate(-1px, -1px);
  }
  50% {
    transform: rotate(45deg) translate(2px, 2px);
  }
}

@keyframes overlayIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes linkIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   8. Responsive
   ========================================================================== */

/* mobile menu chrome */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 28;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  animation: overlayIn 0.28s ease both;
}

.mobile-menu {
  position: fixed;
  top: calc(clamp(10px, 1.8vh, 20px) + 62px);
  right: clamp(14px, 3vw, 32px);
  left: clamp(14px, 3vw, 32px);
  z-index: 29;
}

.sheet {
  display: grid;
  gap: 2px;
  padding: 18px 14px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(170deg, rgba(20, 16, 40, 0.97), rgba(6, 8, 13, 0.98));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.66), var(--glow-md);
  animation: menuIn 0.38s var(--ease) both;
}

.sheet-link {
  position: relative;
  padding: 14px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 15.5px;
  font-weight: 500;
  text-align: center;
  opacity: 0;
  animation: linkIn 0.34s var(--ease) both;
}

.sheet-link:nth-child(1) {
  animation-delay: 0.06s;
}

.sheet-link:nth-child(2) {
  animation-delay: 0.11s;
}

.sheet-link:nth-child(3) {
  animation-delay: 0.16s;
}

.sheet-link:nth-child(4) {
  animation-delay: 0.21s;
}

.sheet-link.is-active {
  background: var(--tint-1);
  color: var(--text);
}

.sheet-link.is-active::after {
  content: "";
  position: absolute;
  bottom: 7px;
  left: 50%;
  width: 18px;
  height: 1.5px;
  margin-left: -9px;
  border-radius: 2px;
  background: var(--purple);
  box-shadow: var(--glow-sm);
}

.sheet-cta {
  margin-top: 8px;
  padding: 15px 10px;
  border: 1px solid var(--rim);
  border-radius: 999px;
  background: linear-gradient(180deg, #a06fff 0%, #7c3ce6 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 8px 26px rgba(113, 56, 232, 0.4);
  opacity: 0;
  animation: linkIn 0.34s var(--ease) 0.26s both;
}

@media (max-width: 980px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .downloads {
    grid-template-columns: minmax(0, 1fr);
  }

  .dl {
    min-height: 0;
  }

  .dl-leads {
    grid-template-columns: minmax(0, 1fr);
  }

  .scene-label {
    display: none;
  }
}

@media (max-width: 720px) {
  .header {
    justify-content: space-between;
    padding: 6px 8px;
  }

  .nav,
  .ghost-cta {
    display: none;
  }

  .burger {
    display: grid;
    place-items: center;
    gap: 4.5px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(174, 186, 210, 0.05);
    cursor: pointer;
    transition: background 0.24s ease, border-color 0.24s ease;
  }

  .burger span {
    width: 16px;
    height: 1.5px;
    border-radius: 2px;
    background: var(--muted);
    transition: transform 0.28s var(--ease), opacity 0.2s ease, background 0.24s ease;
  }

  .burger[aria-expanded="true"] {
    border-color: var(--rim);
    background: var(--tint-2);
  }

  .burger[aria-expanded="true"] span {
    background: var(--text);
  }

  .burger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .burger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .hero {
    padding-top: clamp(96px, 15vh, 130px);
  }

  .headline {
    font-size: clamp(34px, 10.2vw, 56px);
    letter-spacing: -0.075em;
    line-height: 1.02;
  }

  .stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
  }

  .stat {
    flex-direction: column;
    gap: 6px;
  }

  .scroll-hint {
    display: none;
  }

  .cta-row {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 320px;
  }

  .cta,
  .cta-alt {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .footer-top {
    flex-direction: column;
  }

  .qq-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .rig-label {
    max-width: calc(100% - 24px);
  }

  .gate-rig .rig-canvas {
    height: clamp(96px, 26vw, 130px);
  }
}

@media (max-width: 420px) {
  .trust {
    --trust-size: 28px;
    padding-right: 13px;
  }

  .trust-pill {
    font-size: 11.5px;
  }

  .headline {
    font-size: clamp(27px, 9.4vw, 42px);
    letter-spacing: -0.085em;
  }
}

/* ==========================================================================
   9. Reduced motion
   stage.js never pins or tours under reduced motion; the canyon draws one
   still frame. What is left here is the CSS-driven entrance motion.
   ========================================================================== */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-delay: 0s !important;
    transition-duration: 0.001s !important;
    transition-delay: 0s !important;
  }

  .anim,
  .headline span,
  .scroll-hint,
  .sheet-link,
  .sheet-cta {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .scroll-hint span,
  .trust-pill::before,
  .rig-dot {
    animation: none;
  }

  .cta::after {
    display: none;
  }
}
