/* ==========================================================================
   WANSINN — shared stylesheet
   Design tokens sourced from wansinn-styleguide.html (paper/ink terminal
   system). Day is default; [data-theme="night"] flips to dark ink-paper.
   ========================================================================== */

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-500.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-600.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-700.woff2') format('woff2');
}

/* Equipment-nameplate display face — condensed industrial stencil for
   section headings; IBM Plex Mono stays for code/data/readouts. */
@font-face {
  font-family: 'Big Shoulders';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/big-shoulders-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Big Shoulders';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/big-shoulders-800.woff2') format('woff2');
}
@font-face {
  font-family: 'Big Shoulders';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/assets/fonts/big-shoulders-900.woff2') format('woff2');
}

:root {
  --paper: #F7F7F7;
  --paper-raised: #FFFFFF;
  --bone: #E8E8E8;
  --ink: #2B2B29;
  --ink-soft: #6B6862;
  --line: rgba(43, 43, 41, 0.14);

  --g-cyan: #4DDEFB;
  --g-mint: #66EDDE;
  --g-blue: #70AFF6;
  --g-violet: #9D96F6;
  --g-amber: #E8A23D;

  --accent: var(--g-cyan);
  --accent2: var(--g-violet);
  --accent-grad: linear-gradient(90deg, var(--g-cyan), var(--g-mint), var(--g-blue), var(--g-violet));

  --danger: #E8664F;
  --ok: var(--g-mint);

  --font-mono: 'IBM Plex Mono', 'JetBrains Mono', 'Courier New', monospace;
  --font-display: 'Big Shoulders', 'Arial Narrow', sans-serif;

  --max-w: 1040px;
}

[data-theme="night"] {
  --paper: #16181A;
  --paper-raised: #1E2022;
  --bone: #262A2D;
  --ink: #EDEDEA;
  --ink-soft: #94978F;
  --line: rgba(237, 237, 234, 0.14);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'IBM Plex Mono', 'JetBrains Mono', 'Courier New', monospace;
  transition: background 0.35s ease, color 0.35s ease;
}

/* Smooth in-page scrolling for anchor jumps (nav, "Get WANSINN" -> #download,
   the skip link, etc). Gated behind prefers-reduced-motion so it never
   overrides a user's OS-level motion setting — same rule the rest of the
   site's animation follows. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body { min-height: 100vh; }

/* film-grain texture over the whole page, for depth on the flat paper/ink
   surfaces — static, no animation, so it costs nothing and never distracts */
body::after {
  content: '';
  position: fixed; inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="night"] body::after { opacity: 0.05; mix-blend-mode: soft-light; }

a { color: inherit; }

::selection { background: var(--g-violet); color: #12131A; }

/* focus visibility (kept even though most controls are custom) */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.track:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--g-cyan);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============ CABLE-MOTIF BORDER FRAME ============ */
.frame {
  position: fixed;
  inset: 14px;
  border: 1.5px solid var(--line);
  pointer-events: none;
  z-index: 50;
}
.frame::before, .frame::after,
.frame .c2, .frame .c3 {
  content: '';
  position: absolute;
  width: 22px; height: 22px;
  border: 2px solid var(--ink);
  opacity: 0.45;
}
.frame::before { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.frame::after   { top: -2px; right: -2px; border-left: none; border-bottom: none; }
.frame .c2 { bottom: -2px; left: -2px; border-right: none; border-top: none; }
.frame .c3 { bottom: -2px; right: -2px; border-left: none; border-top: none; }
.frame .ticks-top, .frame .ticks-bottom {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.frame .ticks-top { top: -1px; }
.frame .ticks-bottom { bottom: -1px; }
.frame .ticks-top span, .frame .ticks-bottom span {
  width: 2px; height: 6px; background: var(--ink); opacity: 0.3;
}
@media (max-width: 640px) { .frame { display: none; } }

/* ============ SIGNAL RAIN + CRT SYSTEM ============ */
#waterfallCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}
[data-theme="night"] #waterfallCanvas { opacity: 0.85; }
@media (prefers-reduced-motion: reduce) { #waterfallCanvas { display: none; } }

.crt-overlay {
  position: fixed;
  inset: 0;
  z-index: 61;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.05) 0px,
    rgba(0, 0, 0, 0.05) 1px,
    transparent 1px,
    transparent 3px
  );
}
[data-theme="night"] .crt-overlay {
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.16) 0px,
    rgba(0, 0, 0, 0.16) 1px,
    transparent 1px,
    transparent 3px
  );
}
.crt-overlay::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: -12%;
  height: 12%;
  background: linear-gradient(to bottom, transparent, rgba(77, 222, 251, 0.05), transparent);
  animation: crt-scan 9s linear infinite;
}
[data-theme="night"] .crt-overlay::after {
  background: linear-gradient(to bottom, transparent, rgba(77, 222, 251, 0.09), transparent);
}
@keyframes crt-scan {
  0% { top: -12%; }
  100% { top: 100%; }
}
@media (prefers-reduced-motion: reduce) { .crt-overlay::after { animation: none; display: none; } }

/* status lamps */
.lamp {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.lamp-ok  { background: var(--g-mint);  box-shadow: 0 0 6px 1px rgba(102, 237, 222, 0.65); animation: lamp-breathe 2.6s ease-in-out infinite; }
.lamp-live{ background: var(--g-cyan);  box-shadow: 0 0 6px 1px rgba(77, 222, 251, 0.65); }
.lamp-warn{ background: var(--g-amber); box-shadow: 0 0 6px 1px rgba(232, 162, 61, 0.65);  animation: lamp-blink 1.1s steps(1) infinite; }
@keyframes lamp-breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
@keyframes lamp-blink   { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .lamp-ok, .lamp-warn { animation: none; } }

.content { position: relative; z-index: 1; padding: 40px 48px 100px; max-width: var(--max-w); margin: 0 auto; }
@media (max-width: 640px) { .content { padding: 32px 20px 90px; } }

/* ============ NAV ============ */
.site-nav {
  position: relative; z-index: 1;
  max-width: var(--max-w); margin: 0 auto;
  padding: 26px 48px 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
@media (max-width: 640px) { .site-nav { padding: 26px 20px 0; } }

.nav-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.nav-brand img { width: 22px; height: auto; display: block; }
.nav-brand .bracket { color: var(--ink-soft); font-weight: 400; }
.nav-brand .word {
  font-weight: 700; font-size: 16px;
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block;
}
.nav-brand:hover .word,
.logo-line:hover .word {
  animation: glitch-shift 0.32s steps(2, end) 1;
}
@keyframes glitch-shift {
  0%   { text-shadow: none; transform: translate(0, 0); }
  20%  { text-shadow: -2px 0 var(--g-cyan), 2px 0 var(--g-violet); transform: translate(-1px, 0); }
  40%  { text-shadow: 2px 0 var(--g-mint), -2px 0 var(--g-blue); transform: translate(1px, 0); }
  60%  { text-shadow: -1px 0 var(--g-violet), 1px 0 var(--g-cyan); transform: translate(-1px, 0); }
  80%  { text-shadow: 1px 0 var(--g-blue), -1px 0 var(--g-mint); transform: translate(1px, 0); }
  100% { text-shadow: none; transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .nav-brand:hover .word, .logo-line:hover .word { animation: none; }
}

.nav-links { display: flex; gap: 4px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  border: 1.5px solid transparent;
}
.nav-links a:hover { color: var(--ink); border-color: var(--line); }
.nav-links a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--paper-raised);
}

/* ============ HERO / LOGO ============ */
header.hero { margin-bottom: 56px; position: relative; }
header.hero::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  width: 900px; height: 480px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(77, 222, 251, 0.12), rgba(157, 150, 246, 0.07) 45%, transparent 72%);
  filter: blur(50px);
  pointer-events: none;
  z-index: -1;
}
[data-theme="night"] header.hero::before {
  background: radial-gradient(ellipse at center, rgba(77, 222, 251, 0.18), rgba(157, 150, 246, 0.12) 45%, transparent 72%);
}

.term-window {
  border: 1.5px solid var(--ink);
  background: var(--paper-raised);
  box-shadow: 0 2px 0 var(--line), 0 14px 34px -20px rgba(20, 20, 18, 0.35);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
[data-theme="night"] .term-window { box-shadow: 0 2px 0 var(--line), 0 18px 40px -18px rgba(0, 0, 0, 0.55); }

/* cursor-reactive spotlight glow, set via JS custom properties --mx/--my */
.term-window::after,
.feature::after,
.card::after,
.dl-card::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(77, 222, 251, 0.09), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.term-window:hover::after,
.feature:hover::after,
.card:hover::after,
.dl-card:hover::after { opacity: 1; }
[data-theme="night"] .term-window::after,
[data-theme="night"] .feature::after,
[data-theme="night"] .card::after,
[data-theme="night"] .dl-card::after {
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(157, 150, 246, 0.14), transparent 70%);
}
.term-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1.5px solid var(--ink);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.term-titlebar .dot {
  width: 8px; height: 8px; border: 1.5px solid var(--ink); opacity: 0.35;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}
.term-titlebar .dot:hover { opacity: 1; }
.term-titlebar .dot:nth-child(1):hover { background: #FF5F57; border-color: #FF5F57; }
.term-titlebar .dot:nth-child(2):hover { background: #FEBC2E; border-color: #FEBC2E; }
.term-titlebar .dot:nth-child(3):hover { background: #28C840; border-color: #28C840; }
.term-titlebar .path { margin-left: auto; opacity: 0.6; }

.term-body { padding: 40px; display: flex; align-items: center; gap: 30px; }
@media (max-width: 640px) { .term-body { flex-direction: column; align-items: flex-start; gap: 18px; padding: 28px 24px; } }

.logo-mark { width: 74px; height: auto; flex-shrink: 0; }
.logo-mark img { width: 100%; display: block; }

.logo-text-col { min-width: 0; }

.logo-line {
  font-size: clamp(30px, 5.5vw, 52px);
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.logo-line .bracket { color: var(--ink-soft); font-weight: 400; }
.logo-line .word {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cursor-block {
  display: inline-block;
  align-self: flex-end;
  width: 0.36em;
  height: 0.72em;
  background: var(--g-violet);
  border-radius: 1px;
  margin-left: 9px;
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.tagline {
  margin-top: 14px;
  font-size: clamp(13px, 1.8vw, 15px);
  color: var(--ink-soft);
  max-width: 46ch;
  line-height: 1.6;
}

.term-footer-line {
  margin-top: 22px;
  font-size: 11.5px;
  color: var(--ink-soft);
  letter-spacing: 0.5px;
}
.term-footer-line .ok { color: var(--g-mint); }

.eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--g-mint); }

/* ============ SECTIONS ============ */
section { margin-bottom: 84px; }
h2.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4.4vw, 42px);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  line-height: 1;
  color: var(--ink);
  margin: 0 0 20px;
  text-shadow: 0 0 24px rgba(77, 222, 251, 0.18);
}
[data-theme="night"] h2.section-title { text-shadow: 0 0 30px rgba(77, 222, 251, 0.36); }
h2.section-title::after {
  content: '';
  display: inline-block;
  width: 0.42em; height: 0.58em;
  margin-left: 0.14em;
  background: var(--g-mint);
  box-shadow: 0 0 10px 1px rgba(102, 237, 222, 0.7);
  vertical-align: -0.04em;
  animation: blink 1.1s steps(1) infinite;
}
@media (prefers-reduced-motion: reduce) { h2.section-title::after { animation: none; opacity: 0.7; } }

p.lede { font-size: 14px; line-height: 1.75; color: var(--ink); max-width: 68ch; }
p.lede + p.lede { margin-top: 14px; }

/* ============ BUTTONS ============ */
.row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  font-family: inherit;
  font-size: 11.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 22px;
  border: 1.5px solid var(--ink);
  background: var(--paper-raised);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  will-change: transform;
}
.btn:active { opacity: 0.85; }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.accent {
  background: var(--accent-grad);
  color: #12131A;
  border-color: transparent;
  font-weight: 700;
}
.btn[disabled], .btn.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}
.btn .arrow { opacity: 0.6; }

/* ============ DOWNLOAD CARDS ============ */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 420px));
  gap: 16px;
}

.dl-card {
  border: 1.5px solid var(--ink);
  background: var(--paper-raised);
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
/* lift/tilt on hover is handled by GSAP (initTilt in index.js) so it can
   compose with the 3D rotation without fighting an inline transform */
.dl-card:hover { box-shadow: 0 12px 26px -16px rgba(20, 20, 18, 0.4); }
[data-theme="night"] .dl-card:hover { box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.55); }
.feature:hover, .card:hover { box-shadow: 0 12px 26px -18px rgba(20, 20, 18, 0.45); }
[data-theme="night"] .feature:hover, [data-theme="night"] .card:hover { box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.6); }
.dl-card .os {
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
  color: var(--ink-soft);
}
.dl-card .os .icon {
  width: 8px; height: 8px;
  background: var(--accent-grad);
}
.dl-card .filename {
  font-size: 12px;
  color: var(--ink-soft);
  word-break: break-all;
  min-height: 1.4em;
}
.is-loading {
  animation: pulse-op 1.3s ease-in-out infinite;
}
@keyframes pulse-op { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.9; } }
.dl-card .btn { width: 100%; justify-content: center; }

/* status cards */
.card {
  border: 1.5px solid var(--ink);
  background: var(--paper-raised);
  padding: 18px 20px;
  width: 240px;
  position: relative;
  transition: box-shadow 0.25s ease;
}
.card::before {
  content: '';
  position: absolute; top: 10px; right: 10px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--g-mint);
}
.card .k { font-size: 9.5px; letter-spacing: 2px; color: var(--ink-soft); text-transform: uppercase; }
.card .v { font-size: 21px; font-weight: 700; margin: 6px 0 8px; }
.card .d { font-size: 11.5px; color: var(--ink-soft); }

.card-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card-row .card { width: auto; }
@media (max-width: 780px) { .card-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .card-row { grid-template-columns: 1fr; } }

/* ============ FEATURE GRID (bento) ============ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense;
  gap: 1px;
  background: var(--line);
  border: 1.5px solid var(--ink);
}
/* two tiles get top billing and span two columns; dense packing fills the
   rest around them so there's no leftover gap in the last row */
.feature:nth-child(1), .feature:nth-child(5) { grid-column: span 2; }
.feature:nth-child(1) .f-icon, .feature:nth-child(5) .f-icon {
  width: 32px; height: 32px; font-size: 13px;
}
.feature:nth-child(1) h3, .feature:nth-child(5) h3 { font-size: 15px; }
@media (max-width: 780px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature:nth-child(1), .feature:nth-child(5) { grid-column: span 1; }
}

.feature {
  background: var(--paper-raised);
  padding: 22px 20px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}
.feature .f-icon {
  width: 26px; height: 26px;
  border: 1.5px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  margin-bottom: 14px;
  background: var(--paper-raised);
}
.feature h3 {
  font-size: 13px; letter-spacing: 0.5px;
  margin: 0 0 8px;
}
.feature p {
  font-size: 12.5px; color: var(--ink-soft); line-height: 1.6; margin: 0;
}


/* ============ VIDEO FRAME ============ */
.video-frame { overflow: hidden; }
.video-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  overflow: hidden;
}
[data-theme="night"] .video-stage { background: #0B0C0D; }
.video-stage::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    to bottom, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 3px
  );
  animation: flicker 6s linear infinite;
  pointer-events: none;
}
.video-stage video {
  position: relative;
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
}
.video-placeholder {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--paper);
}
.video-play-ring {
  width: 60px; height: 60px;
  border: 1.5px solid rgba(247,247,247,0.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  animation: video-pulse 2.4s ease-in-out infinite;
}
.video-play-icon {
  width: 0; height: 0;
  margin-left: 4px;
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--g-mint);
}
@keyframes video-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(102, 237, 222, 0.25); }
  50% { box-shadow: 0 0 0 10px rgba(102, 237, 222, 0); }
}
.video-placeholder-text {
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
}
@media (prefers-reduced-motion: reduce) {
  .video-play-ring { animation: none; }
}

/* custom themed video controls — native <video controls> can't be styled
   consistently (Firefox exposes no hooks at all; Chromium's are limited),
   so this hand-builds a minimal bar matching the rest of the site's UI
   chrome (same pattern as the theme/lang switches). */
.video-stage.has-custom-controls video { cursor: pointer; }

.video-controls {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  background: linear-gradient(to top, rgba(11, 12, 13, 0.92), rgba(11, 12, 13, 0.7) 70%, transparent);
  border-top: 1px solid rgba(247, 247, 247, 0.12);
  color: var(--paper);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
/* JS toggles .vc-active on .video-stage: on while paused/idle-timer-armed
   (i.e. always, except a couple seconds after the mouse stops moving
   during active playback — see showBar() in index.js) */
.video-stage.vc-active .video-controls {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.vc-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border: none;
  background: transparent;
  color: var(--paper);
  opacity: 0.85;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.vc-btn:hover { opacity: 1; }

.vc-time {
  flex-shrink: 0;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: rgba(247, 247, 247, 0.75);
  font-variant-numeric: tabular-nums;
}

.vc-seek {
  flex: 1;
  height: 20px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}
.vc-seek-track {
  position: relative;
  width: 100%;
  height: 3px;
  background: rgba(247, 247, 247, 0.22);
}
.vc-seek-buffered,
.vc-seek-progress {
  position: absolute;
  top: 0; left: 0; height: 100%;
}
.vc-seek-buffered { background: rgba(247, 247, 247, 0.3); width: 0%; }
.vc-seek-progress { background: var(--accent-grad); width: 0%; }
.vc-seek-knob {
  /* child of .vc-seek-progress, so it naturally tracks the fill's end
     without needing a second percentage synced from JS */
  position: absolute;
  top: 50%; right: -5px;
  width: 10px; height: 10px;
  background: var(--paper);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.3);
}
.vc-seek:focus-visible { outline: 2px solid var(--g-cyan); outline-offset: 2px; }

/* ============ TERMINAL BLOCK ============ */
.terminal {
  background: var(--ink);
  color: var(--paper);
  padding: 18px 20px;
  font-size: 12.5px;
  border: 1.5px solid var(--ink);
  position: relative;
  overflow: hidden;
  line-height: 1.7;
}
[data-theme="night"] .terminal { background: #0B0C0D; }
.terminal::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    to bottom, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 3px
  );
  animation: flicker 6s linear infinite;
  pointer-events: none;
}
@keyframes flicker { 0%,100% { opacity: 0.6; } 50% { opacity: 0.9; } }
.terminal .prompt { color: var(--g-mint); }
.terminal .out { color: #D6D6D2; }
.terminal .cmd-out { color: #ABABA6; }
.terminal .blink-cursor { display: inline-block; width: 7px; height: 13px; background: var(--g-violet); margin-left: 4px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
.terminal .line { min-height: 1.2em; }
.terminal-replay {
  position: absolute; top: 10px; right: 12px; z-index: 2;
  font-family: inherit;
  background: transparent;
  border: 1px solid rgba(247, 247, 247, 0.25);
  color: #D6D6D2;
  width: 22px; height: 22px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.3s ease;
}
.terminal-replay:hover { border-color: var(--g-mint); color: var(--g-mint); }
.terminal-replay:active { transform: rotate(-90deg); }

/* ============ CHANGELOG ============ */
.release-list { border-top: 1.5px solid var(--ink); }
.release {
  border-bottom: 1.5px solid var(--line);
  padding: 26px 0;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
}
@media (max-width: 640px) { .release { grid-template-columns: 1fr; gap: 10px; } }

.release .r-meta { display: flex; flex-direction: column; gap: 8px; }
.release .r-version {
  font-size: 20px; font-weight: 700;
}
.release.is-latest .r-version {
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.release .r-date { font-size: 11px; color: var(--ink-soft); letter-spacing: 0.5px; }
.release .r-tag {
  display: inline-flex; align-items: center; gap: 6px;
  width: fit-content;
  font-size: 9.5px; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
.release .r-tag.stable { border-color: var(--g-mint); color: var(--ink); }
.release .r-tag.testing { border-color: var(--g-blue); color: var(--ink); }
.release .r-tag.development { border-color: var(--g-violet); color: var(--ink); }
.release .r-tag.repack { border-color: var(--ink-soft); }

.release .r-body p { margin: 0 0 14px; font-size: 13px; line-height: 1.8; color: var(--ink); }
.release .r-body p:last-child { margin-bottom: 0; }

.release ul.r-notes,
.release ol.r-notes { margin: 0 0 14px; padding-left: 18px; font-size: 13px; line-height: 1.8; color: var(--ink); }
.release ul.r-notes li::marker { color: var(--g-mint); }
.release ol.r-notes li::marker { color: var(--g-blue); font-weight: 700; }

.release .r-heading {
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--ink-soft);
  margin: 22px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.release .r-heading:first-child { margin-top: 0; }

.release .r-body strong { color: var(--ink); font-weight: 700; }
.release .r-body em { font-style: italic; }
.release .r-body code {
  font-size: 0.92em;
  background: var(--bone);
  border: 1px solid var(--line);
  padding: 1px 5px;
  border-radius: 3px;
  /* an inline code chip breaking mid-span across a line wrap looks broken
     (background/border split awkwardly) — keep each span on one line and
     let the whole thing wrap as a unit instead */
  white-space: nowrap;
}
.release .r-body pre.r-code {
  margin: 0 0 14px;
  padding: 14px 16px;
  background: var(--ink);
  color: #D6D6D2;
  font-size: 12px;
  line-height: 1.6;
  overflow-x: auto;
  border: 1.5px solid var(--ink);
}
[data-theme="night"] .release .r-body pre.r-code { background: #0B0C0D; }
.release .r-body pre.r-code code { background: none; border: none; padding: 0; color: inherit; white-space: pre; }

.release .r-body a { color: var(--g-blue); text-decoration: underline; text-underline-offset: 2px; }
[data-theme="night"] .release .r-body a { color: var(--g-cyan); }

.release .r-hr { border: none; border-top: 1px solid var(--line); margin: 18px 0; }

.release .r-dl { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
.release .r-dl a {
  font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase;
  text-decoration: none; color: var(--ink-soft);
  border-bottom: 1px dashed var(--line);
  padding-bottom: 1px;
}
.release .r-dl a:hover { color: var(--ink); border-color: var(--ink); }

.release .r-gh-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
}
.release .r-gh-link::before { content: '↗ '; }
.release .r-gh-link:hover { color: var(--ink); }
.release .r-empty-notes { font-style: normal; }

/* ============ ROUTER / ADDON DISCOVERY ============ */
.router-search {
  display: block;
  width: 100%;
  font-family: inherit;
  font-size: 13px;
  padding: 12px 16px;
  margin-bottom: 20px;
  border: 1.5px solid var(--ink);
  background: var(--paper-raised);
  color: var(--ink);
  box-shadow: 0 2px 0 var(--line);
}
.router-search::placeholder { color: var(--ink-soft); }
.router-search::-webkit-search-cancel-button { cursor: pointer; }

/* Each addon is discovered live from its manifest.json on GitHub (see
   /api/routers, initRouters in index.js) — vendor/name/version/description
   plus a fixed capability list, rendered as one card per addon. */
.addon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 640px) { .addon-grid { grid-template-columns: 1fr; } }

.addon-card {
  border: 1.5px solid var(--ink);
  background: var(--paper-raised);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}
.addon-card:hover { box-shadow: 0 12px 26px -16px rgba(20, 20, 18, 0.4); }
[data-theme="night"] .addon-card:hover { box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.55); }

.addon-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.addon-card-vendor {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.addon-card-version {
  font-size: 11px;
  color: var(--ink-soft);
  white-space: nowrap;
}
.addon-card h3 {
  font-size: 15px;
  margin: 0;
}
.addon-card p.addon-desc {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}
.addon-caps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.addon-cap {
  font-size: 10px;
  letter-spacing: 0.5px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: var(--bone);
  white-space: nowrap;
}
[data-theme="night"] .addon-cap { background: rgba(255,255,255,0.05); }
.addon-empty {
  border: 1.5px dashed var(--line);
  padding: 22px;
  color: var(--ink-soft);
  font-size: 12.5px;
  grid-column: 1 / -1;
}

/* ============ ROUTER PAGE FILTER / SORT CONTROLS ============ */
.router-filter-row {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.router-filter {
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1.5px solid var(--line);
  border-right: none;
  background: var(--paper-raised);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.router-filter:last-child { border-right: 1.5px solid var(--line); }
.router-filter.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.router-filter.active + .router-filter { border-left-color: var(--ink); }
.router-filter:hover:not(.active) { color: var(--ink); border-color: var(--ink); }

/* ============ TESTED HARDWARE SECTION ============ */
.hw-section { margin-bottom: 44px; }

.subsection-label {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 16px;
  font-weight: 400;
}
.subsection-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.subsection-head .subsection-label { margin-bottom: 0; }

/* Network topology visualization */
.network-vis {
  height: 200px;
  width: 100%;
  margin: 24px 0 0;
  overflow: hidden;
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Hardware compatibility list */
.hw-table {
  border: 1.5px solid var(--ink);
  margin-bottom: 40px;
  overflow: hidden;
}
.hw-row {
  border-top: 1px solid var(--line);
  position: relative;
}
.hw-row-summary {
  display: grid;
  grid-template-columns: 1fr 160px 100px 24px;
  gap: 0 16px;
  padding: 13px 16px;
  width: 100%;
  text-align: left;
  font-family: inherit;
  border: none;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  transition: background 0.15s ease;
  position: relative;
}
.hw-row-summary::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: transparent;
  transition: background 0.2s ease;
}
.hw-row[data-status="tested"] .hw-row-summary::before { background: var(--g-mint); }
.hw-row-summary:hover { background: rgba(77, 222, 251, 0.04); }
[data-theme="night"] .hw-row-summary:hover { background: rgba(77, 222, 251, 0.06); }

.hw-row-model {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hw-row-meta {
  font-size: 10.5px;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hw-row-status {
  font-size: 9.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.hw-row-status::before {
  content: '';
  flex-shrink: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
}
.hw-row-status.tested { color: var(--g-mint); }
.hw-row-status.tested::before {
  background: var(--g-mint);
  animation: hw-pulse 2.2s ease-in-out infinite;
}
.hw-row-status.compatible { color: var(--ink-soft); }
.hw-row-status.compatible::before { border: 1.5px solid var(--ink-soft); }
@keyframes hw-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(102, 237, 222, 0.5); }
  60% { box-shadow: 0 0 0 5px rgba(102, 237, 222, 0); }
}
.hw-row-chevron {
  font-size: 10px;
  color: var(--ink-soft);
  text-align: center;
  transition: transform 0.25s ease;
  display: block;
}
.hw-row.is-open .hw-row-chevron { transform: rotate(180deg); }

/* Smooth height reveal — max-height is reliable across all browsers */
.hw-row-detail {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}
.hw-row.is-open .hw-row-detail { max-height: 400px; }
.hw-row-detail-inner {
  padding: 14px 16px 18px;
  border-top: 1px solid var(--line);
}

@media (max-width: 640px) {
  .hw-row-summary { grid-template-columns: 1fr 92px 20px; }
  .hw-row-meta { display: none; }
}

.hw-note {
  font-size: 11.5px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin: 8px 0 0;
  padding: 9px 12px;
  border-left: 2px solid var(--line);
}
.hw-note-warn { border-left-color: var(--danger); color: var(--danger); }
[data-theme="night"] .hw-note-warn { color: #f08070; border-left-color: #f08070; }

/* Compact add-on chip summary */
.addon-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}
.addon-chip {
  border: 1.5px solid var(--line);
  background: var(--paper-raised);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 180px;
  max-width: 360px;
  transition: border-color 0.2s ease;
}
.addon-chip:hover { border-color: var(--ink); }
.addon-chip-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.addon-chip-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.addon-chip-version { font-size: 10px; color: var(--ink-soft); }
.addon-chip-desc {
  font-size: 11.5px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0;
}
.addon-chip-caps { font-size: 10px; color: var(--ink-soft); letter-spacing: 0.5px; }

/* ============ DISTRO PICKER (quickstart) ============ */
.distro-picker {
  border: 1.5px solid var(--ink);
  background: var(--paper-raised);
  margin-bottom: 18px;
  box-shadow: 0 2px 0 var(--line);
  overflow: hidden;
}
.distro-tabs {
  display: flex;
  border-bottom: 1.5px solid var(--ink);
  overflow-x: auto;
  scrollbar-width: none;
}
.distro-tabs::-webkit-scrollbar { display: none; }

.distro-tab {
  font-family: inherit;
  font-size: 10.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 9px 18px;
  border: none;
  border-right: 1.5px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
}
.distro-tab:last-child { border-right: none; }
.distro-tab.active { background: var(--ink); color: var(--paper); }
.distro-tab:hover:not(.active) { color: var(--ink); background: var(--bone); }

.distro-cmd-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  background: var(--ink);
  color: var(--paper);
}
[data-theme="night"] .distro-cmd-row { background: #0B0C0D; }

.distro-prompt {
  color: var(--g-mint);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  user-select: none;
}
.distro-cmd {
  flex: 1;
  font-family: inherit;
  font-size: 12.5px;
  color: #ABABA6;
  background: transparent;
  border: none;
  padding: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.distro-copy-btn {
  flex-shrink: 0;
  font-family: inherit;
  font-size: 12px;
  background: transparent;
  border: 1px solid rgba(247, 247, 247, 0.25);
  color: #D6D6D2;
  width: 26px; height: 26px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.distro-copy-btn:hover { border-color: var(--g-mint); color: var(--g-mint); }

/* Copy button sits inside the terminal, right of the replay button */
.terminal-copy-btn {
  position: absolute; top: 10px; right: 38px; z-index: 2;
  font-family: inherit;
  font-size: 12px;
  background: transparent;
  border: 1px solid rgba(247, 247, 247, 0.25);
  color: #D6D6D2;
  width: 22px; height: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.terminal-copy-btn:hover { border-color: var(--g-mint); color: var(--g-mint); }

/* ============ LEGAL PAGES ============ */
.legal h2 { font-size: 15px; margin: 34px 0 10px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { font-size: 13px; line-height: 1.8; color: var(--ink); }
.legal ul { padding-left: 20px; }
.legal a.inline-link { color: var(--g-blue); text-decoration: underline; text-underline-offset: 3px; }
[data-theme="night"] .legal a.inline-link { color: var(--g-cyan); }

/* ============ 404 ============ */
.error-page .term-body { flex-direction: column; align-items: flex-start; }
.error-code {
  font-size: clamp(60px, 12vw, 120px);
  font-weight: 700; line-height: 1;
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ============ FOOTER ============ */
footer.page-footer {
  position: relative; z-index: 1;
  border-top: 1.5px solid var(--ink);
  max-width: var(--max-w); margin: 0 auto;
  padding: 26px 48px 40px;
  font-size: 10.5px; color: var(--ink-soft); letter-spacing: 1px; text-transform: uppercase;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px 28px;
}
@media (max-width: 640px) { footer.page-footer { padding: 24px 20px 36px; flex-direction: column; align-items: flex-start; } }
footer.page-footer .foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
footer.page-footer a { text-decoration: none; color: var(--ink-soft); }
footer.page-footer a:hover { color: var(--ink); }

.foot-right {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
@media (max-width: 640px) { .foot-right { flex-direction: column; align-items: flex-start; gap: 14px; } }
.page-footer--minimal { justify-content: flex-end; }
@media (max-width: 640px) { .page-footer--minimal { align-items: flex-start; } }

/* ============ CONTROLS (theme + lang) ============ */
.controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.switch {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--paper-raised);
  border: 1.5px solid var(--ink);
  padding: 7px 13px 7px 7px;
  box-shadow: 0 2px 0 var(--line);
}
.switch .label { font-size: 9.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-soft); user-select: none; }
.track { width: 40px; height: 20px; background: var(--bone); position: relative; cursor: pointer; border: 1px solid var(--ink); flex-shrink: 0; }
.knob { position: absolute; top: 1px; left: 1px; width: 16px; height: 16px; background: var(--ink); transition: transform 0.22s ease, background 0.35s ease; }
.track.on .knob { transform: translateX(19px); background: var(--paper); }

.lang-switch {
  display: flex;
  background: var(--paper-raised);
  border: 1.5px solid var(--ink);
  box-shadow: 0 2px 0 var(--line);
  overflow: hidden;
}
.lang-switch button {
  font-family: inherit;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-size: 10.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 12px;
  cursor: pointer;
}
.lang-switch button.active { background: var(--ink); color: var(--paper); }

/* ============ BOOT OVERLAY ============ */
.boot-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.boot-overlay.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-box { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.boot-brand {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.boot-brand .bracket { color: var(--ink-soft); font-weight: 400; }
.boot-brand .word {
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.boot-bar { width: 180px; height: 3px; background: var(--bone); overflow: hidden; }
.boot-bar-fill {
  height: 100%; width: 0%;
  background: var(--accent-grad);
  animation: boot-fill 900ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes boot-fill { from { width: 0%; } to { width: 100%; } }
.boot-status {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-soft);
}
.boot-log {
  width: 260px;
  min-height: 80px;
  font-size: 10px;
  line-height: 1.7;
  text-align: left;
  color: var(--ink-soft);
}
.boot-log div { opacity: 0; animation: boot-log-in 0.2s ease forwards; }
.boot-log .ok { color: var(--g-mint); text-shadow: 0 0 6px rgba(102, 237, 222, 0.6); }
@keyframes boot-log-in { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .boot-overlay { display: none; } }

/* ============ SCROLL REVEAL ============ */
/* Initial hidden state only — GSAP (see index.js) animates these to
   visible on scroll/load. Kept as plain CSS so content doesn't flash
   visible before JS attaches, and so a no-JS load fails safe via the
   reduced-motion override below. */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal .feature,
.reveal .card { opacity: 0; transform: translateY(14px); }

.hero-anim { opacity: 0; transform: translateY(16px); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal .feature, .reveal .card, .hero-anim {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
}

/* ============ UTILITY ============ */
.mono-dim { color: var(--ink-soft); }
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 14px; top: 14px; }

[data-i18n], [data-i18n-html] { }
