/* RDM — Retro Download Manager · site styles
   Design language: docs/CONTRACT.md §3 (synthwave cockpit: neon on near-black). */

/* ------------------------------------------------------------------ fonts */
@font-face {
  font-family: "Orbitron";
  src: url("/fonts/orbitron-latin-700-normal.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Orbitron";
  src: url("/fonts/orbitron-latin-900-normal.woff2") format("woff2");
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-latin-600-normal.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------------ tokens */
:root {
  --bg: #07060f;
  --bg-2: #0d0b1d;
  --panel: rgba(22, 18, 48, .72);
  --panel-solid: #141030;
  --line: rgba(120, 110, 255, .18);
  --line-2: rgba(120, 110, 255, .32);
  --text: #e9e6ff;
  --text-2: #c3bfe6;
  --muted: #8d88b8;
  --cyan: #2de2e6;
  --magenta: #ff3cac;
  --violet: #7b5cff;
  --amber: #f9c80e;
  --green: #3cffa0;
  --red: #ff4d6d;
  --glow-cyan: 0 0 12px rgba(45, 226, 230, .55);
  --radius: 10px;
  --radius-lg: 16px;
  --grad: linear-gradient(90deg, var(--cyan), var(--violet) 55%, var(--magenta));
  --grad-diag: linear-gradient(135deg, var(--cyan), var(--violet) 55%, var(--magenta));

  --f-display: "Orbitron", "Segoe UI", system-ui, sans-serif;
  --f-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --gutter: 24px;
  --maxw: 1180px;
  --nav-h: 68px;
  color-scheme: dark;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--f-body);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}
/* faint CRT scanlines over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .018) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #7ff0f2; }
strong { color: var(--text); font-weight: 650; }
em { font-style: normal; color: var(--text); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 700; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
::selection { background: rgba(255, 60, 172, .4); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
  box-shadow: 0 0 0 6px rgba(45, 226, 230, .18);
}

.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--cyan); color: var(--bg); padding: 10px 16px; border-radius: 8px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; color: var(--bg); }
.center { text-align: center; }
.mt-lg { margin-top: 40px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 860px; }
@media (max-width: 640px) { :root { --gutter: 16px; } }

/* ------------------------------------------------------------------ type */
.h-display { font-family: var(--f-display); font-weight: 700; letter-spacing: .01em; }
.h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.12; text-wrap: balance; }
.eyebrow {
  font: 600 12px/1 var(--f-mono);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 18px;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; box-shadow: var(--glow-cyan); }
.section-lede { color: var(--muted); font-size: clamp(16px, 1.4vw, 18px); max-width: 640px; margin: 18px auto 0; text-wrap: pretty; }
.fineprint { color: var(--muted); font-size: 13px; margin: 14px 0 0; }

/* ------------------------------------------------------------------ buttons */
.btn {
  --b-pad: 12px 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: var(--b-pad);
  border-radius: 12px;
  border: 1px solid transparent;
  font: 650 15px/1.2 var(--f-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s;
  white-space: nowrap;
  position: relative;
}
.btn .ico { width: 20px; height: 20px; flex: none; }
.btn-primary {
  color: #08060f;
  background: var(--grad-diag);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 10px 30px -10px rgba(255, 60, 172, .6), 0 0 24px -6px rgba(45, 226, 230, .6);
}
.btn-primary:hover { color: #08060f; transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset, 0 14px 36px -10px rgba(255, 60, 172, .75), 0 0 30px -4px rgba(45, 226, 230, .7); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  color: var(--text);
  background: rgba(22, 18, 48, .55);
  border-color: var(--line-2);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { color: #fff; border-color: rgba(45, 226, 230, .6); box-shadow: 0 0 20px -6px rgba(45, 226, 230, .6); }
.btn-sm { --b-pad: 8px 16px; font-size: 14px; border-radius: 10px; }
.btn-xs { --b-pad: 6px 12px; font-size: 13px; border-radius: 8px; gap: 6px; }
.btn-xs .ico { width: 15px; height: 15px; }
.btn-lg { --b-pad: 14px 24px 14px 20px; border-radius: 14px; text-align: left; }
.btn-stack { display: flex; flex-direction: column; gap: 3px; }
.btn-label { font-size: 16px; font-weight: 700; }
.btn-meta { font: 500 12px/1.2 var(--f-mono); opacity: .78; letter-spacing: .01em; }
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  color: var(--muted);
  background: rgba(22, 18, 48, .6);
  border-color: var(--line-2);
  box-shadow: none;
  transform: none;
}
.btn[aria-disabled="true"] .btn-meta { opacity: 1; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: transparent; border: 1px solid var(--line); color: var(--text-2);
  cursor: pointer;
}
.icon-btn:hover { color: var(--cyan); border-color: rgba(45, 226, 230, .5); }
.icon-btn svg { width: 14px; height: 14px; }
.icon-btn .i-play { display: none; }
.icon-btn[aria-pressed="true"] .i-play { display: block; }
.icon-btn[aria-pressed="true"] .i-pause { display: none; }

/* ------------------------------------------------------------------ nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(7, 6, 15, .55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(7, 6, 15, .82); }
.nav-row { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: none; }
.brand img { border-radius: 8px; }
.brand-word {
  font: 900 21px/1 var(--f-display);
  letter-spacing: .06em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.brand-sub { font: 500 13px/1 var(--f-body); color: var(--muted); padding-left: 10px; border-left: 1px solid var(--line-2); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
}
.nav-links a:hover { color: #fff; background: rgba(123, 92, 255, .12); }
.nav-row > .btn { margin-left: 8px; }
@media (max-width: 900px) { .brand-sub { display: none; } }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-row > .btn { margin-left: auto; }
}

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  padding-top: clamp(48px, 8vw, 96px);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(1200px 520px at 50% -8%, rgba(123, 92, 255, .30), transparent 65%),
    radial-gradient(700px 360px at 85% 12%, rgba(255, 60, 172, .14), transparent 70%),
    radial-gradient(700px 360px at 10% 20%, rgba(45, 226, 230, .10), transparent 70%);
}
.sky { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 23px 41px, rgba(255, 255, 255, .7), transparent 60%),
    radial-gradient(1px 1px at 111px 160px, rgba(255, 255, 255, .5), transparent 60%),
    radial-gradient(1.5px 1.5px at 190px 72px, rgba(45, 226, 230, .8), transparent 60%),
    radial-gradient(1px 1px at 260px 210px, rgba(255, 255, 255, .45), transparent 60%),
    radial-gradient(1px 1px at 330px 30px, rgba(255, 255, 255, .6), transparent 60%),
    radial-gradient(1.5px 1.5px at 70px 260px, rgba(255, 60, 172, .7), transparent 60%);
  background-size: 360px 300px;
  mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 75%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 75%);
  opacity: .8;
}
.stars-2 { background-size: 520px 420px; background-position: 130px 90px; opacity: .5; animation: twinkle 6s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .25; } to { opacity: .6; } }

.hero-copy { text-align: center; position: relative; }
.pill {
  display: flex; width: fit-content; margin-left: auto !important; margin-right: auto !important; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(22, 18, 48, .6);
  color: var(--text-2);
  font: 500 13px/1 var(--f-mono);
  letter-spacing: .02em;
  margin: 0 0 30px;
}
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }

.logo-xl { display: flex; width: fit-content; flex-direction: column; align-items: center; margin: 0 auto 18px; }
.logo-letters {
  font: 900 clamp(64px, 11vw, 132px)/.9 var(--f-display);
  letter-spacing: .08em;
  padding-left: .08em; /* optically re-centre the tracking */
  background: linear-gradient(90deg, var(--cyan) 0%, #7f9cff 45%, var(--magenta) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(123, 92, 255, .45)) drop-shadow(0 0 2px rgba(45, 226, 230, .5));
}
.logo-chevron { width: clamp(70px, 9vw, 110px); height: auto; margin-top: clamp(6px, 1vw, 12px); filter: drop-shadow(0 0 10px rgba(255, 60, 172, .6)); }
@media (prefers-reduced-motion: no-preference) {
  .logo-chevron { animation: chev 2.4s ease-in-out infinite; }
  @keyframes chev { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
}

.hero-title {
  font: 700 clamp(28px, 4.4vw, 54px)/1.1 var(--f-display);
  letter-spacing: .01em;
  margin: 10px auto 0;
  text-shadow: 0 0 28px rgba(123, 92, 255, .35);
}
.lede {
  max-width: 660px; margin: 22px auto 0;
  color: var(--text-2);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
  text-wrap: pretty;
}
.lede em { color: #fff; font-weight: 600; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.trust {
  display: flex; justify-content: center; gap: 22px; flex-wrap: wrap;
  margin: 22px 0 0; color: var(--muted); font: 500 13px/1 var(--f-mono);
}
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust span::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--cyan); box-shadow: var(--glow-cyan); transform: rotate(45deg); }

@media (max-width: 520px) {
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { justify-content: flex-start; }
}

/* ---- stage: sun + horizon + grid floor behind the console */
.stage { position: relative; margin-top: clamp(96px, 12vw, 150px); padding-bottom: clamp(64px, 9vw, 120px); }
.stage-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; --hz: 150px; }
.sun-clip { position: absolute; left: 0; right: 0; top: -320px; height: calc(var(--hz) + 320px); overflow: hidden; }
.sun {
  position: absolute; left: 50%; bottom: 0;
  width: min(560px, 96vw); aspect-ratio: 2 / 1;
  transform: translateX(-50%);
  border-radius: 999px 999px 0 0;
  background: linear-gradient(to bottom, #ffd65a 0%, #ff8a5c 38%, var(--magenta) 72%, #b0249a 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0 26%, transparent 26% 29%, #000 29% 37%, transparent 37% 41%, #000 41% 49%, transparent 49% 54%, #000 54% 62%, transparent 62% 68%, #000 68% 76%, transparent 76% 83%, #000 83%);
  mask-image: linear-gradient(to bottom, #000 0 26%, transparent 26% 29%, #000 29% 37%, transparent 37% 41%, #000 41% 49%, transparent 49% 54%, #000 54% 62%, transparent 62% 68%, #000 68% 76%, transparent 76% 83%, #000 83%);
  opacity: .92;
}
.sun-glow {
  position: absolute; left: 50%; bottom: -40%;
  width: min(900px, 140vw); aspect-ratio: 1.6 / 1;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 60, 172, .45), rgba(255, 60, 172, .12) 55%, transparent 75%);
  filter: blur(10px);
}
.horizon {
  position: absolute; left: 0; right: 0; top: var(--hz); height: 2px;
  background: linear-gradient(90deg, transparent, var(--magenta) 20%, #ffb3dc 50%, var(--magenta) 80%, transparent);
  box-shadow: 0 0 18px 3px rgba(255, 60, 172, .7), 0 0 60px 8px rgba(255, 60, 172, .25);
}
.floor-canvas { position: absolute; left: 0; top: var(--hz); width: 100%; height: calc(100% - var(--hz)); }

/* ---- the console (live segmentation sim) */
.console {
  position: relative;
  margin: 0 auto;
  max-width: 980px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(24, 19, 52, .95), rgba(13, 11, 29, .96));
  border: 1px solid var(--line-2);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .03) inset,
    0 30px 80px -20px rgba(0, 0, 0, .8),
    0 0 80px -20px rgba(123, 92, 255, .5);
  padding: 0 0 6px;
}
.console::before { /* neon rim on the top edge */
  content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 1px;
  background: var(--grad); box-shadow: 0 0 14px rgba(45, 226, 230, .7);
}
.console-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.win-dots { display: inline-flex; gap: 6px; flex: none; }
.win-dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a2450; }
.win-dots i:nth-child(1) { background: var(--magenta); opacity: .8; }
.win-dots i:nth-child(2) { background: var(--amber); opacity: .7; }
.win-dots i:nth-child(3) { background: var(--cyan); opacity: .7; }
.console-file { display: flex; align-items: baseline; gap: 12px; min-width: 0; flex: 1; color: var(--text); }
.console-file .mono:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.console-size { color: var(--muted); font-size: 12px; flex: none; }
.live-chip {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  font: 600 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--magenta); padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(255, 60, 172, .35);
  background: rgba(255, 60, 172, .08);
}
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--magenta); box-shadow: 0 0 8px var(--magenta); }
@media (prefers-reduced-motion: no-preference) {
  .live-dot { animation: blink 1.2s steps(2, jump-none) infinite; }
  @keyframes blink { 50% { opacity: .25; } }
}

.sim { padding: 14px 18px 4px; }
.seg-canvas { width: 100%; height: 150px; }

.sim-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: 6px 18px 0;
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(7, 6, 15, .45);
}
.stat { padding: 12px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-k { font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stat-v { font-size: 20px; font-weight: 600; color: var(--text); white-space: nowrap; }
#sim-speed { color: var(--cyan); text-shadow: var(--glow-cyan); }

.lanes {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin: 12px 18px 0;
}
.lane-chip {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(22, 18, 48, .5);
  font: 500 12px/1 var(--f-mono);
  color: var(--text-2);
  min-width: 0;
  transition: border-color .3s, background-color .3s, opacity .3s;
}
.lane-chip .sw { width: 8px; height: 8px; border-radius: 2px; background: var(--c); box-shadow: 0 0 8px var(--c); }
.lane-chip .ln { color: var(--text); }
.lane-chip .sp { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lane-chip.is-idle { opacity: .45; }
.lane-chip.is-steal { border-color: var(--magenta); background: rgba(255, 60, 172, .12); }
.lane-chip.is-done .sp { color: var(--green); }

.sim-log {
  display: flex; align-items: center; gap: 12px;
  margin: 12px 18px 12px;
  padding: 10px 14px; border-radius: 10px;
  background: rgba(7, 6, 15, .5); border: 1px dashed var(--line-2);
  font-size: 14px; color: var(--text-2); min-height: 44px;
}
.sim-log-tag { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--magenta); flex: none; }
.sim-log-text { min-width: 0; }
.sim-log-text b { color: #fff; font-weight: 600; }

@media (max-width: 720px) {
  .seg-canvas { height: 120px; }
  .sim-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); }
  .stat-v { font-size: 17px; }
  .lanes { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .lane-chip { padding: 7px 9px; font-size: 11px; }
  .console-bar { gap: 10px; padding: 12px 14px; }
  .sim { padding: 12px 14px 2px; }
  .sim-stats, .lanes { margin-left: 14px; margin-right: 14px; }
  .sim-log { margin-left: 14px; margin-right: 14px; font-size: 13px; }
  .live-chip { display: none; }
}
@media (max-width: 420px) {
  .console-size { display: none; }
  .win-dots { display: none; }
}

/* steps under the console */
.steps3 {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  max-width: 980px; margin: 40px auto 0;
}
.steps3 li {
  padding: 22px 22px 20px;
  border-radius: 14px;
  background: rgba(13, 11, 29, .86);
  border: 1px solid var(--line);
}
.steps3 h3 { font: 700 18px/1.2 var(--f-display); letter-spacing: .03em; margin: 10px 0 8px; }
.steps3 p { margin: 0; color: var(--muted); font-size: 15px; }
.steps3 strong { color: var(--text); }
.step-n { font-size: 12px; color: var(--magenta); letter-spacing: .14em; }
@media (max-width: 820px) { .steps3 { grid-template-columns: 1fr; gap: 12px; } }

/* ------------------------------------------------------------------ sections */
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section-alt {
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(123, 92, 255, .10), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); }

.cards { display: grid; gap: 18px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards-3 { grid-template-columns: 1fr; } }
.card {
  position: relative;
  padding: 26px 24px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(26, 21, 58, .65), rgba(13, 11, 29, .65));
  border: 1px solid var(--line);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.card:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: 0 20px 40px -20px rgba(123, 92, 255, .35); }
.card h3 { font-size: 18px; font-weight: 700; margin: 18px 0 10px; letter-spacing: -.005em; }
.card p { color: var(--muted); margin: 0; font-size: 15px; }
.card-ico {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  color: var(--cyan);
  background: rgba(45, 226, 230, .08);
  border: 1px solid rgba(45, 226, 230, .25);
  box-shadow: 0 0 20px -6px rgba(45, 226, 230, .5);
}
.card-ico svg { width: 22px; height: 22px; }
.card-hl { border-color: rgba(255, 60, 172, .35); background: linear-gradient(180deg, rgba(60, 20, 70, .55), rgba(13, 11, 29, .7)); }
.card-hl .card-ico { color: var(--magenta); background: rgba(255, 60, 172, .1); border-color: rgba(255, 60, 172, .35); box-shadow: 0 0 20px -6px rgba(255, 60, 172, .6); }

/* ------------------------------------------------------------------ race */
.race {
  max-width: 900px; margin: 0 auto;
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--line-2);
  background: rgba(7, 6, 15, .6);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
}
.race-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.race-file { color: var(--muted); font-size: 12px; }
.lane { margin-top: 18px; }
.lane-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 9px; }
.lane-name { font-weight: 650; font-size: 15px; }
.lane-sub { color: var(--muted); font-weight: 500; font-size: 13px; margin-left: 6px; }
.lane-num { font-size: 13px; color: var(--text-2); white-space: nowrap; }
.lane-rdm .lane-num { color: var(--cyan); }
.lane-track {
  position: relative; height: 18px; border-radius: 6px; overflow: hidden;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
}
.lane-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0%; border-radius: 5px 0 0 5px; }
.lane-browser .lane-fill { background: linear-gradient(90deg, #4b456f, #8d88b8); }
.lane-rdm .lane-fill {
  background: var(--grad);
  box-shadow: 0 0 18px rgba(45, 226, 230, .6);
}
.lane-track-seg::after { /* 16 segment ticks */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 calc(6.25% - 2px), rgba(7, 6, 15, .85) calc(6.25% - 2px) 6.25%);
}
.race-result { margin: 20px 0 0; font-weight: 600; color: var(--text); min-height: 1.6em; }
.race .fineprint { margin-top: 6px; }
@media (max-width: 560px) {
  .race { padding: 18px 16px; }
  .lane-top { flex-direction: column; gap: 4px; }
}

.table-wrap { max-width: 900px; margin: 28px auto 0; overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; background: rgba(13, 11, 29, .6); }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font: 600 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.compare thead th.col-rdm { color: var(--cyan); }
.compare tbody th { font-weight: 500; color: var(--text-2); }
.compare .col-rdm { background: rgba(45, 226, 230, .05); }
.compare td { white-space: nowrap; }
.yes, .no, .meh { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.yes { color: var(--green); }
.yes::before { content: ""; width: 14px; height: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translate(1px, -2px); }
.no { color: var(--muted); font-weight: 500; }
.no::before { content: "—"; }
.meh { color: var(--amber); font-weight: 500; }
@media (max-width: 560px) { .compare th, .compare td { padding: 12px 12px; font-size: 14px; } }

/* ------------------------------------------------------------------ app mock */
.mock-frame {
  position: relative;
  max-width: 1100px; margin: 0 auto;
  overflow: hidden;
  border-radius: 16px;
}
.mock-frame::before { /* glow behind the window */
  content: ""; position: absolute; inset: 10% 8%; z-index: -1;
  background: radial-gradient(closest-side, rgba(123, 92, 255, .45), transparent);
  filter: blur(40px);
}
.mock {
  --mw: 1100px;
  width: var(--mw);
  transform-origin: 0 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: #0b0919;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .03) inset;
  font: 400 13px/1.3 var(--f-body);
  color: var(--text-2);
  user-select: none;
}
.mock * { font-style: normal; text-decoration: none; }
.m-title { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px; background: #0f0c24; border-bottom: 1px solid var(--line); }
.m-logo { display: inline-flex; align-items: center; gap: 7px; }
.m-logo img { border-radius: 4px; }
.m-logo b { font: 900 13px/1 var(--f-display); letter-spacing: .08em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.m-title-text { color: var(--muted); font-size: 12px; }
.m-winbtns { margin-left: auto; display: inline-flex; gap: 14px; }
.m-winbtns i { width: 10px; height: 10px; border: 1.5px solid #4a4478; border-radius: 2px; }
.m-winbtns i:first-child { border-width: 0 0 1.5px; border-radius: 0; height: 6px; }
.m-toolbar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #0d0b1d; }
.m-btn { padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line); color: var(--text-2); font-size: 12px; font-weight: 600; background: rgba(22, 18, 48, .6); }
.m-btn-primary { background: var(--cyan); color: #06121a; border-color: transparent; box-shadow: 0 0 14px rgba(45, 226, 230, .45); }
.m-spacer { flex: 1; }
.m-pill { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.m-pill b { color: var(--text); }
.m-search { width: 200px; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line); color: #5d5888; font-size: 12px; background: #090716; }
.m-body { display: grid; grid-template-columns: 190px 1fr; min-height: 440px; }
.m-side { display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; border-right: 1px solid var(--line); background: #0d0b1d; }
.m-side-h { font: 600 10px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: #5d5888; margin: 10px 8px 8px; }
.m-side-h:first-child { margin-top: 2px; }
.m-nav { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px; color: var(--text-2); font-size: 13px; }
.m-nav em { margin-left: auto; font: 500 11px/1 var(--f-mono); color: var(--muted); }
.m-nav.is-active { background: rgba(45, 226, 230, .1); color: #fff; box-shadow: inset 2px 0 0 var(--cyan); }
.m-nav i, .m-name i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.c-video { background: var(--magenta); }
.c-audio { background: var(--amber); }
.c-arch { background: var(--violet); }
.c-doc { background: var(--cyan); }
.c-prog { background: var(--green); }
.m-main { display: flex; flex-direction: column; min-width: 0; }
.m-row {
  display: grid; grid-template-columns: minmax(0, 2.3fr) 80px 1.6fr 92px 54px 112px;
  align-items: center; gap: 14px;
  padding: 0 16px; height: 42px;
  border-bottom: 1px solid rgba(120, 110, 255, .09);
  font-size: 13px;
}
.m-row > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--f-mono); font-size: 12px; }
.m-row > .m-name { font-family: var(--f-body); font-size: 13px; color: var(--text); display: flex; align-items: center; gap: 9px; }
.m-head { height: 34px; background: #0d0b1d; }
.m-head > span { font: 600 10px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #5d5888; }
.m-row.is-sel { background: linear-gradient(90deg, rgba(45, 226, 230, .10), rgba(123, 92, 255, .06)); box-shadow: inset 2px 0 0 var(--cyan); }
.m-prog { display: flex !important; align-items: center; gap: 10px; }
.m-prog b { position: relative; flex: 1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.m-prog b::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 0%); border-radius: 3px; background: var(--grad); box-shadow: 0 0 8px rgba(45, 226, 230, .6); }
.m-prog em { width: 34px; text-align: right; color: var(--text-2); }
.m-done b::after { background: var(--green); box-shadow: 0 0 8px rgba(60, 255, 160, .5); }
.m-paused b::after { background: var(--amber); box-shadow: none; }
.w0 { --w: 0%; } .w14 { --w: 14%; } .w31 { --w: 31%; } .w62 { --w: 62%; } .w100 { --w: 100%; }
.m-spd { color: var(--cyan); }
.st { display: inline-block; padding: 4px 8px; border-radius: 6px; font: 600 11px/1 var(--f-mono); }
.st-dl { color: var(--cyan); background: rgba(45, 226, 230, .1); }
.st-ok { color: var(--green); background: rgba(60, 255, 160, .1); }
.st-pause { color: var(--amber); background: rgba(249, 200, 14, .1); }
.st-q { color: #b3a3ff; background: rgba(123, 92, 255, .14); }
.m-detail { margin-top: auto; padding: 14px 16px 16px; border-top: 1px solid var(--line); background: #0d0b1d; }
.m-detail-head { display: flex; align-items: center; gap: 22px; font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.m-detail-head > span:first-child { margin-right: auto; }
.m-detail-head b { color: var(--text); font-weight: 600; }
.m-kv em { color: var(--muted); margin-right: 4px; }
.m-kv b { font-family: var(--f-mono); }
.ok { color: var(--green) !important; }
.m-segmap { display: grid; grid-template-columns: repeat(128, 1fr); gap: 2px; }
.m-segmap i { height: 16px; border-radius: 1.5px; background: #1a1636; }
.m-segmap i.d { background: var(--cyan); opacity: .85; }
.m-segmap i.d2 { background: #7f9cff; opacity: .85; }
.m-segmap i.a { background: var(--magenta); box-shadow: 0 0 6px var(--magenta); }
.m-status { display: flex; gap: 28px; padding: 9px 16px; border-top: 1px solid var(--line); background: #0f0c24; font: 500 11px/1.2 var(--f-mono); color: var(--muted); }
.m-status b { color: var(--text); }
.m-status span:first-child b { color: var(--cyan); }
.m-status span:last-child { margin-left: auto; }
@media (prefers-reduced-motion: no-preference) {
  .m-segmap i.a { animation: pulse 1.1s ease-in-out infinite alternate; }
  @keyframes pulse { from { opacity: .55; } to { opacity: 1; } }
}

/* ------------------------------------------------------------------ browser integration visuals */
.card-visual { padding-top: 18px; display: flex; flex-direction: column; }
.viz {
  position: relative; height: 190px; border-radius: 12px; overflow: hidden;
  background:
    linear-gradient(rgba(120, 110, 255, .06) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(120, 110, 255, .06) 1px, transparent 1px) 0 0 / 22px 22px,
    #0a0818;
  border: 1px solid var(--line);
  display: grid; place-items: center;
}
.card-visual h3 { margin-top: 20px; }

.vz-browser { width: 84%; border-radius: 10px; border: 1px solid var(--line-2); background: #120f2a; overflow: hidden; transform: translateY(-14px); }
.vz-bar { display: flex; align-items: center; gap: 5px; padding: 7px 9px; background: #19153a; border-bottom: 1px solid var(--line); }
.vz-bar i { width: 7px; height: 7px; border-radius: 50%; background: #3a3366; }
.vz-bar span { margin-left: 6px; flex: 1; padding: 3px 8px; border-radius: 999px; background: #0d0b1d; font: 500 10px/1.2 var(--f-mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vz-page { position: relative; padding: 18px 14px 22px; }
.vz-link { font-size: 12px; color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.vz-cursor {
  position: absolute; left: 62%; top: 28px; width: 14px; height: 18px;
  background: #fff;
  clip-path: polygon(0 0, 0 100%, 28% 76%, 48% 100%, 62% 94%, 44% 70%, 80% 70%);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6));
}
.vz-toast {
  position: absolute; right: 7%; bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 10px;
  background: rgba(22, 18, 48, .95); border: 1px solid rgba(255, 60, 172, .45);
  box-shadow: 0 0 22px -4px rgba(255, 60, 172, .6);
  font: 600 11px/1 var(--f-mono); color: var(--text);
}
.vz-toast img { border-radius: 4px; }

.vz-player {
  position: relative; width: 86%; aspect-ratio: 16 / 9; max-height: 150px; border-radius: 10px; overflow: hidden;
  background:
    radial-gradient(circle at 30% 80%, rgba(255, 60, 172, .5), transparent 50%),
    radial-gradient(circle at 75% 25%, rgba(45, 226, 230, .4), transparent 50%),
    linear-gradient(160deg, #241a52, #0d0b1d);
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
}
.vz-play { width: 44px; height: 44px; border-radius: 50%; background: rgba(7, 6, 15, .55); border: 1px solid rgba(255, 255, 255, .2); position: relative; }
.vz-play::after { content: ""; position: absolute; left: 17px; top: 13px; border-left: 14px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.vz-float {
  position: absolute; right: 8px; top: 8px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px 6px 8px; border-radius: 999px;
  background: var(--grad-diag); color: #08060f;
  font: 700 11px/1 var(--f-body);
  box-shadow: 0 0 18px rgba(255, 60, 172, .65);
}
.vz-float svg { width: 13px; height: 13px; }
.vz-scrub { position: absolute; left: 10px; right: 10px; bottom: 8px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .2); }
.vz-scrub b { position: absolute; left: 0; top: 0; bottom: 0; width: 38%; background: var(--magenta); border-radius: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .vz-float { animation: float 3s ease-in-out infinite; }
  @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
}

.vz-picker {
  width: 78%; padding: 10px; border-radius: 12px;
  background: #141030; border: 1px solid var(--line-2);
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .8);
  display: flex; flex-direction: column; gap: 4px;
}
.vz-picker-h { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px 6px; font-size: 12px; }
.vz-picker-h b { color: var(--text); }
.vz-picker-h em { font: 500 10px/1 var(--f-mono); color: var(--muted); }
.vz-opt { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 7px; font: 600 11px/1 var(--f-mono); color: var(--text-2); }
.vz-opt i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #4a4478; }
.vz-opt em { margin-left: auto; color: var(--muted); font-weight: 400; }
.vz-opt.is-on { background: rgba(45, 226, 230, .1); color: #fff; }
.vz-opt.is-on i { border-color: var(--cyan); background: radial-gradient(circle, var(--cyan) 0 3px, transparent 3.5px); box-shadow: 0 0 8px rgba(45, 226, 230, .7); }
.vz-go { margin-top: 4px; text-align: center; padding: 7px; border-radius: 8px; background: var(--cyan); color: #06121a; font: 700 11px/1 var(--f-body); }

/* ------------------------------------------------------------------ features */
.features { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.feat { background: var(--bg); padding: 26px 22px 24px; transition: background-color .25s; }
.feat:hover { background: #0c0a1c; }
.feat h3 { font-size: 16px; margin: 16px 0 6px; }
.feat p { margin: 0; color: var(--muted); font-size: 14px; }
.feat-ico { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--magenta); background: rgba(255, 60, 172, .08); border: 1px solid rgba(255, 60, 172, .25); }
.feat:nth-child(even) .feat-ico { color: var(--cyan); background: rgba(45, 226, 230, .08); border-color: rgba(45, 226, 230, .25); }
.feat-ico svg { width: 20px; height: 20px; }
@media (max-width: 980px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } .feat { padding: 20px 18px; } }

/* ------------------------------------------------------------------ FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details {
  border-radius: 14px; border: 1px solid var(--line);
  background: rgba(13, 11, 29, .7);
  transition: border-color .2s, background-color .2s;
}
.faq details[open] { border-color: var(--line-2); background: rgba(22, 18, 48, .6); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; font-weight: 600; font-size: 16px; color: var(--text);
  border-radius: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px;
  border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq summary:hover { color: #fff; }
.faq-a { padding: 0 20px 18px; color: var(--text-2); }
.faq-a p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ final CTA */
.final { position: relative; overflow: hidden; padding: clamp(80px, 11vw, 140px) 0; text-align: center; isolation: isolate; }
.final::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(700px 300px at 50% 100%, rgba(255, 60, 172, .28), transparent 70%),
              radial-gradient(900px 400px at 50% 0%, rgba(123, 92, 255, .18), transparent 70%);
}
.final-grid {
  position: absolute; left: -50%; right: -50%; bottom: -10%; height: 70%; z-index: -1;
  background-image:
    linear-gradient(to bottom, rgba(255, 60, 172, .8) 2px, transparent 2px),
    linear-gradient(to right, rgba(123, 92, 255, .8) 2px, transparent 2px);
  background-size: 64px 64px;
  transform: perspective(400px) rotateX(62deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000, transparent 85%);
  mask-image: linear-gradient(to top, #000, transparent 85%);
}
.final-inner .section-lede { margin-bottom: 0; }

/* ------------------------------------------------------------------ footer */
.footer { border-top: 1px solid var(--line); background: #05040b; padding: 40px 0 28px; }
.footer-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.footer-brand p { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-links a { color: var(--text-2); text-decoration: none; font-size: 14px; padding: 4px 0; }
.footer-links a:hover { color: var(--cyan); }
.footer-fine { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(120, 110, 255, .1); }
.footer-fine p { margin: 0; color: #6c6797; font-size: 13px; }

/* ================================================================== inner pages */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 5vw, 60px);
  text-align: center;
  background:
    radial-gradient(900px 380px at 50% -10%, rgba(123, 92, 255, .28), transparent 70%),
    radial-gradient(600px 300px at 80% 10%, rgba(255, 60, 172, .12), transparent 70%);
}
.page-hero::after {
  content: ""; position: absolute; left: -50%; right: -50%; bottom: -1px; height: 140px; z-index: -1;
  background-image:
    linear-gradient(to bottom, rgba(255, 60, 172, .35) 1.5px, transparent 1.5px),
    linear-gradient(to right, rgba(123, 92, 255, .35) 1.5px, transparent 1.5px);
  background-size: 56px 56px;
  transform: perspective(300px) rotateX(60deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, .9), transparent);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, .9), transparent);
}
.page-title { font: 700 clamp(30px, 5vw, 52px)/1.1 var(--f-display); letter-spacing: .01em; text-wrap: balance; }
.page-lede { color: var(--text-2); font-size: clamp(16px, 1.5vw, 19px); max-width: 640px; margin: 18px auto 0; text-wrap: pretty; }
.page-body { padding: clamp(40px, 6vw, 72px) 0 clamp(72px, 9vw, 112px); }

/* status card on /download and /extension */
.dl-card {
  max-width: 760px; margin: 0 auto;
  padding: 26px;
  border-radius: 18px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(26, 21, 58, .8), rgba(13, 11, 29, .9));
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9), 0 0 60px -30px rgba(123, 92, 255, .6);
  position: relative;
}
.dl-card::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 1px; background: var(--grad); box-shadow: 0 0 14px rgba(45, 226, 230, .7); }
.dl-status { display: flex; align-items: center; gap: 16px; }
.dl-status-ico {
  flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(45, 226, 230, .1); border: 1px solid rgba(45, 226, 230, .35); color: var(--cyan);
  box-shadow: 0 0 22px -6px rgba(45, 226, 230, .7);
}
.dl-status-ico svg { width: 26px; height: 26px; }
.dl-status h2 { font-size: 20px; }
.dl-status p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.dl-card.is-soon .dl-status-ico { color: var(--amber); background: rgba(249, 200, 14, .08); border-color: rgba(249, 200, 14, .35); box-shadow: none; }
.dl-meta { display: grid; grid-template-columns: repeat(3, auto) 1fr; gap: 10px 28px; margin: 22px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); }
.dl-meta div { min-width: 0; }
.dl-meta dt { font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.dl-meta dd { margin: 0; font: 600 14px/1.3 var(--f-mono); color: var(--text); overflow-wrap: anywhere; }
.dl-meta .dl-sha { grid-column: 1 / -1; }
.dl-sha dd { display: flex; align-items: center; gap: 10px; font-weight: 400; font-size: 12px; color: var(--text-2); }
.dl-sha code { overflow-wrap: anywhere; word-break: break-all; }
.dl-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.dl-progress { height: 3px; border-radius: 2px; margin-top: 18px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.dl-progress b { display: block; height: 100%; width: 35%; background: var(--grad); box-shadow: 0 0 10px rgba(45, 226, 230, .7); }
@media (prefers-reduced-motion: no-preference) {
  .dl-progress b { animation: indet 1.4s ease-in-out infinite; }
  @keyframes indet { from { transform: translateX(-100%); } to { transform: translateX(290%); } }
}
.dl-card.is-ready .dl-progress, .dl-card.is-soon .dl-progress { display: none; }
@media (max-width: 560px) {
  .dl-card { padding: 20px 18px; }
  .dl-meta { grid-template-columns: 1fr 1fr; }
  .dl-actions .btn { flex: 1 1 100%; }
}
.copy-btn {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 7px; border: 1px solid var(--line-2); background: transparent;
  font: 600 11px/1 var(--f-mono); color: var(--text-2); cursor: pointer;
}
.copy-btn:hover { color: var(--cyan); border-color: rgba(45, 226, 230, .5); }
.copy-btn.is-copied { color: var(--green); border-color: rgba(60, 255, 160, .5); }

/* numbered install steps with visuals */
.steps-h { text-align: center; margin: clamp(56px, 8vw, 88px) 0 32px; }
.steps-h h2 { font: 700 clamp(22px, 3vw, 32px)/1.2 var(--f-display); }
.steps-h p { color: var(--muted); margin: 10px 0 0; }
.isteps { list-style: none; display: grid; gap: 18px; max-width: 980px; margin: 0 auto; counter-reset: st; }
.istep {
  counter-increment: st;
  display: grid; grid-template-columns: 1fr minmax(0, 380px); gap: 28px; align-items: center;
  padding: 22px 24px 22px 22px;
  border-radius: 18px; border: 1px solid var(--line);
  background: rgba(13, 11, 29, .7);
}
.istep-text { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: start; }
.istep-text::before {
  content: counter(st);
  grid-row: span 2;
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font: 900 18px/1 var(--f-display);
  color: #08060f; background: var(--grad-diag);
  box-shadow: 0 0 22px -4px rgba(255, 60, 172, .6);
}
.istep h3 { font-size: 19px; margin-top: 2px; }
.istep p { margin: 0; color: var(--muted); font-size: 15px; }
.istep p + p, .istep .btn, .istep .kbd-row { margin-top: 12px; }
.istep-text > :not(h3) { grid-column: 2; }
.istep-viz {
  min-height: 150px; border-radius: 12px; border: 1px solid var(--line);
  background:
    linear-gradient(rgba(120, 110, 255, .06) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(90deg, rgba(120, 110, 255, .06) 1px, transparent 1px) 0 0 / 20px 20px,
    #0a0818;
  display: grid; place-items: center; overflow: hidden; position: relative;
  padding: 16px;
}
@media (max-width: 820px) {
  .istep { grid-template-columns: 1fr; gap: 18px; padding: 18px; }
  .istep-viz { min-height: 130px; }
}
@media (max-width: 420px) {
  .istep-text { grid-template-columns: 1fr; }
  .istep-text::before { grid-row: auto; width: 38px; height: 38px; font-size: 16px; }
  .istep-text > :not(h3) { grid-column: 1; }
}
kbd, .kbd {
  display: inline-block; padding: 2px 7px; border-radius: 6px;
  border: 1px solid var(--line-2); border-bottom-width: 2px;
  background: #141030; font: 600 13px/1.4 var(--f-mono); color: var(--text);
}
.kbd-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* visual widgets for install steps */
.v-file { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #141030; border: 1px solid var(--line-2); font: 600 12px/1.3 var(--f-mono); color: var(--text); max-width: 100%; }
.v-file small { display: block; color: var(--muted); font-weight: 400; }
.v-zip { width: 34px; height: 42px; flex: none; border-radius: 6px; background: linear-gradient(160deg, var(--violet), #3a2a99); position: relative; }
.v-zip::after { content: ""; position: absolute; left: 15px; top: 4px; width: 4px; height: 20px; background: repeating-linear-gradient(to bottom, #fff 0 3px, transparent 3px 6px); opacity: .7; }
.v-folder { width: 40px; height: 32px; flex: none; border-radius: 4px 8px 8px 8px; background: linear-gradient(180deg, #ffd65a, var(--amber)); position: relative; margin-top: 6px; }
.v-folder::before { content: ""; position: absolute; left: 0; top: -6px; width: 16px; height: 8px; border-radius: 4px 4px 0 0; background: #e0b10c; }
.v-arrow { color: var(--magenta); font: 700 18px/1 var(--f-mono); }
.v-unzip { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.v-address { width: 100%; max-width: 340px; border-radius: 10px; background: #141030; border: 1px solid var(--line-2); overflow: hidden; }
.v-address-top { display: flex; gap: 5px; padding: 8px 10px; background: #19153a; }
.v-address-top i { width: 7px; height: 7px; border-radius: 50%; background: #3a3366; }
.v-address-url { display: flex; align-items: center; gap: 8px; margin: 10px; padding: 8px 12px; border-radius: 999px; background: #0a0818; border: 1px solid rgba(45, 226, 230, .5); box-shadow: 0 0 14px -4px rgba(45, 226, 230, .6); font: 600 12px/1 var(--f-mono); color: #fff; }
.v-address-url::after { content: ""; width: 1.5px; height: 14px; background: var(--cyan); }
@media (prefers-reduced-motion: no-preference) { .v-address-url::after { animation: blink 1s steps(2, jump-none) infinite; } }
.v-toggle-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: #141030; border: 1px solid var(--line-2); font-size: 14px; font-weight: 600; color: var(--text); }
.v-toggle { width: 40px; height: 22px; border-radius: 999px; background: var(--cyan); position: relative; box-shadow: 0 0 14px rgba(45, 226, 230, .6); }
.v-toggle::after { content: ""; position: absolute; right: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.v-buttons { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.v-buttons span { padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line-2); font-size: 12px; font-weight: 600; color: var(--muted); background: #141030; }
.v-buttons span.is-hl { color: #06121a; background: var(--cyan); border-color: transparent; box-shadow: 0 0 16px rgba(45, 226, 230, .6); }
.v-pin { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #141030; border: 1px solid var(--line-2); font-size: 13px; color: var(--text); }
.v-pin img { border-radius: 5px; }
.v-pin .v-pin-ico { color: var(--cyan); font-family: var(--f-mono); font-size: 12px; margin-left: 8px; }

/* SmartScreen illustration */
.v-smart { width: 100%; max-width: 340px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); background: #141030; font-size: 12px; text-align: left; }
.v-smart-top { padding: 10px 12px 6px; background: linear-gradient(180deg, #1d1850, #141030); }
.v-smart-top b { display: block; font-size: 13px; color: #fff; }
.v-smart-top span { color: var(--muted); font-size: 11px; }
.v-smart-link { display: inline-block; margin: 4px 12px 0; color: var(--cyan); text-decoration: underline; font-weight: 600; }
.v-smart-btns { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 12px 12px; }
.v-smart-btns span { padding: 6px 12px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--text-2); font-weight: 600; }
.v-smart-btns span.is-hl { color: #06121a; background: var(--cyan); border-color: transparent; box-shadow: 0 0 14px rgba(45, 226, 230, .6); }

.callout {
  max-width: 980px; margin: 24px auto 0;
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px; border-radius: 14px;
  border: 1px solid rgba(45, 226, 230, .3); background: rgba(45, 226, 230, .05);
  color: var(--text-2); font-size: 15px;
}
.callout p { margin: 0; }
.callout-ico { flex: none; width: 22px; height: 22px; color: var(--cyan); margin-top: 1px; }
.callout-warn { border-color: rgba(249, 200, 14, .35); background: rgba(249, 200, 14, .05); }
.callout-warn .callout-ico { color: var(--amber); }

.store-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.next-card { max-width: 980px; margin: 40px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 24px; border-radius: 18px; border: 1px solid rgba(255, 60, 172, .35); background: linear-gradient(90deg, rgba(255, 60, 172, .10), rgba(123, 92, 255, .08)); }
.next-card h2 { font: 700 20px/1.2 var(--f-display); }
.next-card p { margin: 6px 0 0; color: var(--text-2); }

.code-block { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #0a0818; border: 1px solid var(--line); }
.code-block code { flex: 1; min-width: 0; font: 500 12.5px/1.5 var(--f-mono); color: var(--text); overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ prose (privacy / terms) */
.prose { max-width: 760px; margin: 0 auto; color: var(--text-2); font-size: 16.5px; line-height: 1.75; }
.prose h2 { font: 700 20px/1.3 var(--f-display); letter-spacing: .01em; color: var(--text); margin: 44px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--magenta); }
.prose code { font: 500 .88em var(--f-mono); color: var(--cyan); background: rgba(45, 226, 230, .08); padding: 1px 6px; border-radius: 5px; }
.prose .tldr { padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(22, 18, 48, .6); margin-bottom: 36px; }
.prose .tldr p:last-child, .prose .tldr ul:last-child { margin-bottom: 0; }
.prose .updated { font: 500 13px/1 var(--f-mono); color: var(--muted); }

/* ------------------------------------------------------------------ 404 / status pages */
.nf { min-height: calc(100vh - var(--nav-h)); display: grid; place-items: center; text-align: center; position: relative; overflow: hidden; isolation: isolate; padding: 60px 0; }
.nf::after {
  content: ""; position: absolute; left: -50%; right: -50%; bottom: 0; height: 45%; z-index: -1;
  background-image:
    linear-gradient(to bottom, rgba(255, 60, 172, .45) 1.5px, transparent 1.5px),
    linear-gradient(to right, rgba(123, 92, 255, .45) 1.5px, transparent 1.5px);
  background-size: 60px 60px;
  transform: perspective(300px) rotateX(62deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000, transparent);
  mask-image: linear-gradient(to top, #000, transparent);
}
.nf .nf-code {
  display: inline-block; margin: 0;
  font: 900 clamp(96px, 22vw, 220px)/.9 var(--f-display);
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 30px rgba(255, 60, 172, .45));
  letter-spacing: .04em;
}
.nf h1 { font: 700 clamp(22px, 3vw, 32px)/1.2 var(--f-display); margin-top: 10px; }
.nf p:not(.nf-code) { color: var(--muted); margin: 12px auto 0; max-width: 480px; }
.nf .cta-row { margin-top: 28px; }

.page-plain { background: radial-gradient(900px 400px at 50% -10%, rgba(123, 92, 255, .25), transparent 70%), var(--bg); }
.status-page { padding-top: 12vh; padding-bottom: 12vh; text-align: center; max-width: 720px; }
.status-page .h-display { font-size: clamp(32px, 6vw, 56px); margin-bottom: 18px; }
.status-page p:not(.eyebrow) { color: var(--text-2); font-size: 18px; }
.status-page .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* ------------------------------------------------------------------ reveal on scroll */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
