/* =============================================================================
   CHUNKFORGE — Landing page stylesheet
   -----------------------------------------------------------------------------
   Layout of this file:
     01. Tokens & themes
     02. Reset & base
     03. Atmosphere (grid, aurora, noise, scanline)
     04. Primitives (buttons, badges, panels, kickers)
     05. Navigation
     06. Hero
     07. Forge canvas / voxel field
     08. Marquee
     09. Architecture diagram
     10. Feature grid
     11. Product tour (mock app window)
     12. Server matrix + add-on sources
     13. Downloads
     14. Docker images
     15. Install / code tabs / timeline
     16. DNS
     17. Themes showcase
     18. FAQ
     19. CTA + footer
     20. Motion & reveal
     21. Responsive
   ========================================================================== */

/* -----------------------------------------------------------------------------
   01. TOKENS & THEMES
   Themes mirror the eight built into the Chunkforge app.
-------------------------------------------------------------------------- */
:root {
  --bg: #06050a;
  --bg-deep: #030207;
  --bg-soft: #0c0a13;
  --panel: rgba(20, 17, 30, 0.62);
  --panel-2: rgba(26, 22, 38, 0.78);
  --panel-solid: #110f19;
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-strong: rgba(255, 255, 255, 0.14);

  --text: #f6f3ff;
  --muted: #a49cb8;
  --faint: #6c6580;

  --accent: #a855f7;
  --accent-2: #6d28d9;
  --accent-3: #e9d5ff;
  --accent-ink: #ffffff;
  --glow: rgba(168, 85, 247, 0.5);
  --tint: rgba(168, 85, 247, 0.12);
  --tint-strong: rgba(168, 85, 247, 0.22);

  --ok: #4ade80;
  --warn: #fbbf24;
  --info: #60a5fa;

  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --max: 1200px;
  --nav-h: 68px;

  --shadow-sm: 0 4px 18px rgba(0, 0, 0, 0.32);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 44px 120px rgba(0, 0, 0, 0.6);

  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", "Fira Code",
    Menlo, Consolas, monospace;
  --sans: "Inter var", Inter, ui-sans-serif, system-ui, -apple-system,
    "Segoe UI Variable Text", "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="midnight"] {
  --accent: #60a5fa; --accent-2: #1d4ed8; --accent-3: #dbeafe;
  --glow: rgba(96, 165, 250, 0.5);
  --tint: rgba(96, 165, 250, 0.12); --tint-strong: rgba(96, 165, 250, 0.22);
  --bg: #04070f; --bg-deep: #020409; --bg-soft: #090e1a;
  --panel: rgba(15, 22, 38, 0.62); --panel-2: rgba(20, 29, 48, 0.78); --panel-solid: #0d1424;
}
[data-theme="nebula"] {
  --accent: #c084fc; --accent-2: #7c3aed; --accent-3: #f3e8ff;
  --glow: rgba(192, 132, 252, 0.5);
  --tint: rgba(192, 132, 252, 0.13); --tint-strong: rgba(192, 132, 252, 0.24);
  --bg: #0a0616; --bg-deep: #060310; --bg-soft: #120b26;
  --panel: rgba(30, 19, 54, 0.62); --panel-2: rgba(39, 25, 68, 0.78); --panel-solid: #18102c;
}
[data-theme="forest"] {
  --accent: #4ade80; --accent-2: #15803d; --accent-3: #dcfce7;
  --glow: rgba(74, 222, 128, 0.45);
  --tint: rgba(74, 222, 128, 0.11); --tint-strong: rgba(74, 222, 128, 0.2);
  --bg: #04090a; --bg-deep: #020606; --bg-soft: #081312;
  --panel: rgba(14, 30, 26, 0.62); --panel-2: rgba(19, 40, 34, 0.78); --panel-solid: #0c1a17;
}
[data-theme="ember"] {
  --accent: #fb923c; --accent-2: #c2410c; --accent-3: #ffedd5;
  --glow: rgba(251, 146, 60, 0.45);
  --tint: rgba(251, 146, 60, 0.12); --tint-strong: rgba(251, 146, 60, 0.22);
  --bg: #0a0605; --bg-deep: #060302; --bg-soft: #150b06;
  --panel: rgba(38, 21, 14, 0.62); --panel-2: rgba(50, 28, 18, 0.78); --panel-solid: #1c1009;
}
[data-theme="slate"] {
  --accent: #94a3b8; --accent-2: #475569; --accent-3: #e2e8f0;
  --glow: rgba(148, 163, 184, 0.38);
  --tint: rgba(148, 163, 184, 0.11); --tint-strong: rgba(148, 163, 184, 0.2);
  --bg: #07090c; --bg-deep: #040507; --bg-soft: #0d1116;
  --panel: rgba(22, 28, 36, 0.62); --panel-2: rgba(30, 38, 48, 0.78); --panel-solid: #131920;
}
[data-theme="light"] {
  --bg: #f4f2f8; --bg-deep: #eae7f1; --bg-soft: #ffffff;
  --panel: rgba(255, 255, 255, 0.74); --panel-2: rgba(255, 255, 255, 0.92); --panel-solid: #ffffff;
  --hairline: rgba(26, 18, 38, 0.1); --hairline-strong: rgba(26, 18, 38, 0.18);
  --text: #16111f; --muted: #5e5570; --faint: #8b8298;
  --accent: #7c3aed; --accent-2: #5b21b6; --accent-3: #4c1d95;
  --glow: rgba(124, 58, 237, 0.3);
  --tint: rgba(124, 58, 237, 0.09); --tint-strong: rgba(124, 58, 237, 0.16);
  --shadow-sm: 0 4px 16px rgba(30, 20, 45, 0.08);
  --shadow: 0 22px 60px rgba(30, 20, 45, 0.12);
  --shadow-lg: 0 40px 100px rgba(30, 20, 45, 0.16);
}
[data-theme="parchment"] {
  --bg: #f3ead7; --bg-deep: #e8dcc2; --bg-soft: #fbf6ea;
  --panel: rgba(255, 252, 244, 0.76); --panel-2: rgba(255, 253, 247, 0.92); --panel-solid: #fffdf7;
  --hairline: rgba(74, 54, 28, 0.14); --hairline-strong: rgba(74, 54, 28, 0.24);
  --text: #2f2413; --muted: #6d5c40; --faint: #94825f;
  --accent: #b45309; --accent-2: #7c2d12; --accent-3: #78350f;
  --glow: rgba(180, 83, 9, 0.28);
  --tint: rgba(180, 83, 9, 0.1); --tint-strong: rgba(180, 83, 9, 0.18);
  --shadow-sm: 0 4px 16px rgba(80, 60, 25, 0.1);
  --shadow: 0 22px 60px rgba(80, 60, 25, 0.14);
  --shadow-lg: 0 40px 100px rgba(80, 60, 25, 0.18);
}

/* -----------------------------------------------------------------------------
   02. RESET & BASE
-------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(var(--max), calc(100% - 44px));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}
.skip-link:focus { left: 16px; }

section { padding: 104px 0; position: relative; }
section.tight { padding: 64px 0; }

h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.045em; line-height: 1.06; }
p { margin: 0; }

/* -----------------------------------------------------------------------------
   03. ATMOSPHERE
-------------------------------------------------------------------------- */
.atmosphere { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.atmo-base {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 120% 70% at 50% -18%, var(--tint), transparent 62%),
    radial-gradient(ellipse 70% 50% at 88% 12%, var(--tint), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 58%, var(--bg) 100%);
}

.atmo-grid {
  position: absolute; inset: -2px;
  opacity: 0.5;
  background-image:
    linear-gradient(var(--hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 20%, transparent 78%);
}

.atmo-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.32;
  will-change: transform;
}
.atmo-blob.b1 {
  width: 620px; height: 620px; left: -140px; top: -160px;
  background: radial-gradient(circle, var(--accent), transparent 68%);
  animation: drift1 26s var(--ease) infinite alternate;
}
.atmo-blob.b2 {
  width: 520px; height: 520px; right: -120px; top: 22vh;
  background: radial-gradient(circle, var(--accent-2), transparent 68%);
  animation: drift2 32s var(--ease) infinite alternate;
}
.atmo-blob.b3 {
  width: 700px; height: 700px; left: 32%; top: 78vh;
  background: radial-gradient(circle, var(--accent), transparent 72%);
  opacity: 0.16;
  animation: drift3 38s var(--ease) infinite alternate;
}
@keyframes drift1 { to { transform: translate3d(140px, 90px, 0) scale(1.16); } }
@keyframes drift2 { to { transform: translate3d(-120px, 130px, 0) scale(0.88); } }
@keyframes drift3 { to { transform: translate3d(90px, -110px, 0) scale(1.1); } }

.atmo-noise {
  position: absolute; inset: 0;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Cursor-following spotlight, driven by --mx/--my from main.js */
.atmo-spot {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    380px circle at var(--mx, 50%) var(--my, 30%),
    var(--tint),
    transparent 70%
  );
  opacity: 0.55;
  transition: opacity 0.4s var(--ease);
}

/* Scroll progress rail */
.progress-rail {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120;
  background: transparent; pointer-events: none;
}
.progress-rail span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent), var(--accent-3));
  box-shadow: 0 0 16px var(--glow);
  transition: width 0.12s linear;
}

/* -----------------------------------------------------------------------------
   04. PRIMITIVES
-------------------------------------------------------------------------- */
.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
}
.kicker::before {
  content: ""; width: 22px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}

.section-head {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: end;
  margin-bottom: 46px;
}
.section-head h2 { margin-top: 14px; font-size: clamp(32px, 4.4vw, 54px); }
.section-head .lede {
  color: var(--muted); line-height: 1.72; font-size: 16.5px; max-width: 56ch;
}
.section-head.center {
  grid-template-columns: 1fr; text-align: center; justify-items: center; max-width: 780px; margin-inline: auto;
}
.section-head.center .kicker::before { display: none; }

.gradient-text {
  background: linear-gradient(112deg, var(--text) 6%, var(--accent) 52%, var(--accent-3) 96%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.panel {
  position: relative;
  border-radius: var(--r-lg);
  background: var(--panel);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow);
}

/* Gradient hairline that lights up on hover */
.panel::after {
  content: "";
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  padding: 1px;
  background: linear-gradient(150deg, var(--hairline-strong), transparent 42%, transparent 62%, var(--tint-strong));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.9;
}

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 20px;
  border-radius: var(--r-sm);
  border: 1px solid var(--hairline-strong);
  background: var(--panel-2);
  font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
    border-color 0.22s var(--ease), background 0.22s var(--ease), color 0.22s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .ico { width: 16px; height: 16px; flex: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: var(--accent-ink);
  box-shadow: 0 10px 34px -10px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-primary:hover { box-shadow: 0 18px 46px -12px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.3); }

.btn-ghost { background: var(--panel); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); background: var(--tint); }

.btn-sm { padding: 9px 14px; font-size: 13px; border-radius: var(--r-xs); }
.btn[disabled], .btn[aria-disabled="true"] {
  opacity: 0.45; cursor: not-allowed; transform: none !important;
}

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--panel);
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
}
.pill.accent { color: var(--accent); border-color: var(--tint-strong); background: var(--tint); }
.pill.ok { color: var(--ok); border-color: rgba(74, 222, 128, 0.28); background: rgba(74, 222, 128, 0.1); }

.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 0 0 var(--ok);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.divider {
  height: 1px; border: 0; margin: 0;
  background: linear-gradient(90deg, transparent, var(--hairline-strong), transparent);
}

/* -----------------------------------------------------------------------------
   05. NAVIGATION
-------------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom-color: var(--hairline);
}
.nav-inner {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 34px; height: 34px; flex: none;
  border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 26px -8px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.4s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-mark svg { width: 19px; height: 19px; }
.brand-text {
  font-weight: 850; letter-spacing: -0.04em; font-size: 17px;
}
.brand-text small {
  display: block; font-size: 9.5px; letter-spacing: 0.22em; font-weight: 700;
  color: var(--faint); text-transform: uppercase; margin-top: 1px;
}

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  position: relative;
  padding: 8px 12px; border-radius: 9px;
  font-size: 14px; font-weight: 600; color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--tint); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
  border-radius: 2px; background: var(--accent); box-shadow: 0 0 10px var(--glow);
}

.nav-actions { display: flex; align-items: center; gap: 10px; }

.theme-picker { position: relative; }
.theme-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--hairline); background: var(--panel);
  font-size: 13px; font-weight: 650; color: var(--muted); cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.theme-btn:hover { color: var(--text); border-color: var(--hairline-strong); }
.theme-swatch {
  width: 13px; height: 13px; border-radius: 4px; flex: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 1px var(--hairline);
}
.theme-menu {
  position: absolute; right: 0; top: calc(100% + 10px);
  width: 218px; padding: 7px;
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--panel-solid) 92%, transparent);
  border: 1px solid var(--hairline-strong);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  display: grid; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(0.97);
  transform-origin: top right;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  z-index: 110;
}
.theme-picker.open .theme-menu { opacity: 1; visibility: visible; transform: none; }
.theme-opt {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 10px; border-radius: 9px; border: 0; background: transparent;
  font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; text-align: left;
  transition: background 0.15s, color 0.15s;
}
.theme-opt:hover { background: var(--tint); color: var(--text); }
.theme-opt[aria-checked="true"] { color: var(--text); background: var(--tint); }
.theme-opt[aria-checked="true"]::after { content: "✓"; margin-left: auto; color: var(--accent); font-weight: 800; }
.opt-swatch {
  width: 15px; height: 15px; border-radius: 5px; flex: none;
  box-shadow: 0 0 0 1px var(--hairline), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.nav-toggle {
  display: none; width: 40px; height: 38px;
  border-radius: 10px; border: 1px solid var(--hairline); background: var(--panel);
  cursor: pointer; place-items: center;
}
.nav-toggle span {
  display: block; width: 17px; height: 1.6px; border-radius: 2px; background: var(--text);
  position: relative; transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1.6px;
  border-radius: 2px; background: var(--text);
  transition: transform 0.25s var(--ease);
}
.nav-toggle span::before { top: -5.5px; }
.nav-toggle span::after { top: 5.5px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-5.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(20px);
}
.mobile-menu.open { display: block; }
.mobile-menu .container { padding-block: 14px 22px; display: grid; gap: 2px; }
.mobile-menu a {
  padding: 12px 12px; border-radius: 10px; font-weight: 650; color: var(--muted);
}
.mobile-menu a:hover { background: var(--tint); color: var(--text); }
.mobile-menu .btn { margin-top: 10px; }

/* -----------------------------------------------------------------------------
   06. HERO
-------------------------------------------------------------------------- */
.hero { padding: 92px 0 70px; text-align: center; position: relative; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 8px 7px 12px; border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  background: var(--panel);
  backdrop-filter: blur(14px);
  font-size: 12.5px; font-weight: 650; color: var(--muted);
  box-shadow: var(--shadow-sm);
}
.hero-badge b { color: var(--text); font-weight: 750; }
.hero-badge .tag {
  padding: 3px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--tint); color: var(--accent);
}

.hero h1 {
  margin: 26px auto 0;
  font-size: clamp(48px, 8.4vw, 104px);
  font-weight: 850;
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.hero h1 .line { display: block; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(112deg, var(--accent-3) 0%, var(--accent) 46%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  position: relative;
}

.hero-sub {
  margin: 26px auto 0; max-width: 62ch;
  color: var(--muted); font-size: clamp(16px, 1.9vw, 19px); line-height: 1.72;
}
.hero-sub strong { color: var(--text); font-weight: 650; }

.hero-actions {
  margin-top: 34px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
}
.hero-actions .btn { padding: 15px 26px; font-size: 15px; }

.hero-note {
  margin-top: 18px; font-size: 13px; color: var(--faint);
  display: flex; justify-content: center; gap: 18px; flex-wrap: wrap;
}
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note svg { width: 14px; height: 14px; color: var(--accent); }

/* Stat strip */
.stats {
  margin-top: 62px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat { padding: 26px 22px; text-align: left; border-right: 1px solid var(--hairline); }
.stat:last-child { border-right: 0; }
.stat .num {
  font-size: clamp(26px, 3.4vw, 38px); font-weight: 850; letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--text), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .label {
  margin-top: 6px; font-size: 12.5px; color: var(--muted); line-height: 1.5; font-weight: 550;
}

/* -----------------------------------------------------------------------------
   07. FORGE CANVAS
-------------------------------------------------------------------------- */
.forge-stage {
  position: relative;
  margin-top: 66px;
  border-radius: var(--r-xl);
  overflow: hidden;
  isolation: isolate;
}
.forge-stage canvas {
  display: block; width: 100%; height: 340px;
  background: linear-gradient(180deg, transparent, var(--tint));
}
.forge-stage .forge-fade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 70%, transparent) 0%, transparent 26%, transparent 62%, var(--bg) 100%);
}
.forge-caption {
  position: absolute; left: 0; right: 0; bottom: 22px;
  text-align: center; font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 750; color: var(--faint);
}

/* -----------------------------------------------------------------------------
   08. MARQUEE
-------------------------------------------------------------------------- */
.marquee-wrap {
  padding: 34px 0;
  border-block: 1px solid var(--hairline);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  position: relative; z-index: 1;
}
.marquee-label {
  text-align: center; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 800; color: var(--faint); margin-bottom: 22px;
}
.marquee { display: flex; width: max-content; animation: slide 42s linear infinite; }
.marquee-wrap:hover .marquee { animation-play-state: paused; }
.marquee-track { display: flex; align-items: center; gap: 52px; padding-right: 52px; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 11px;
  font-size: 18px; font-weight: 750; letter-spacing: -0.03em; color: var(--muted);
  opacity: 0.72; transition: opacity 0.25s, color 0.25s;
  white-space: nowrap;
}
.marquee-item:hover { opacity: 1; color: var(--text); }
.marquee-item .chip {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  font-size: 12px; font-weight: 900; color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
@keyframes slide { to { transform: translateX(-50%); } }

/* -----------------------------------------------------------------------------
   09. ARCHITECTURE
-------------------------------------------------------------------------- */
.arch-stage { padding: 0; border-radius: var(--r-xl); overflow: hidden; }

.arch-toolbar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 16px 20px; border-bottom: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--bg-soft) 60%, transparent);
}
.arch-play {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 16px; border-radius: 11px; cursor: pointer;
  border: 1px solid var(--tint-strong); background: var(--tint);
  color: var(--text); font-size: 13.5px; font-weight: 700;
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.arch-play:hover { background: var(--tint-strong); transform: translateY(-1px); }
.arch-play svg { width: 14px; height: 14px; color: var(--accent); }

.arch-stepchips { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.step-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--hairline); background: transparent;
  color: var(--faint); font-size: 12px; font-weight: 650;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.step-chip:hover { color: var(--muted); border-color: var(--hairline-strong); }
.step-chip b {
  display: grid; place-items: center; width: 17px; height: 17px; border-radius: 5px;
  background: var(--panel-2); color: var(--faint); font-size: 10px; font-weight: 850;
  transition: background 0.25s, color 0.25s;
}
.step-chip.on { color: var(--text); border-color: var(--tint-strong); background: var(--tint); }
.step-chip.on b { background: var(--accent); color: var(--accent-ink); }

.arch-canvas { padding: 26px 22px 6px; }
.arch-svg { width: 100%; height: auto; overflow: visible; display: block; }

/* --- components ------------------------------------------------------- */
.comp { cursor: pointer; outline: none; }
.comp-bg {
  fill: var(--panel-2); stroke: var(--hairline-strong); stroke-width: 1;
  transition: stroke 0.3s var(--ease), fill 0.3s var(--ease);
}
.comp-title { fill: var(--text); font-size: 15px; font-weight: 750; letter-spacing: -0.02em; }
.comp-sub   { fill: var(--muted); font-size: 11.5px; font-weight: 500; }
.comp-tag   { fill: var(--faint); font-size: 9.5px; font-weight: 800; letter-spacing: 0.13em; }
.comp-plate { fill: var(--tint); transition: fill 0.3s var(--ease); }
.comp-icon  { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.comp-ghost { fill: var(--panel-2); stroke: var(--hairline); stroke-width: 1; }

/* the whole group softens when something else is the subject */
.comp { transition: opacity 0.3s var(--ease); }
.arch-svg.has-focus .comp:not(.on) { opacity: 0.3; }
.arch-svg.has-focus .wire:not(.on) { opacity: 0.22; }
.arch-svg.has-focus .wire-chip:not(.on) { opacity: 0.22; }

.comp.on .comp-bg { stroke: var(--accent); fill: var(--panel-2); }
.comp.on .comp-plate { fill: var(--tint-strong); }
.comp:focus-visible .comp-bg { stroke: var(--accent); }
.comp-halo {
  fill: none; stroke: var(--accent); stroke-width: 1;
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.comp.on .comp-halo { opacity: 0.35; }

/* --- wires ------------------------------------------------------------ */
.wire {
  fill: none; stroke: var(--hairline-strong); stroke-width: 1.6;
  transition: stroke 0.3s var(--ease), opacity 0.3s var(--ease);
}
.wire.dashed { stroke-dasharray: 4 7; }
.wire.on { stroke: var(--accent); }

/* ambient traffic — a short dash sliding along the two live sockets */
.wire-flow {
  fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 6 1000; filter: drop-shadow(0 0 6px var(--glow));
  opacity: 0.85;
  animation: wireflow 4.2s linear infinite;
}
.wire-flow.b { animation-delay: -1.4s; }
.wire-flow.c { animation-delay: -2.8s; }
.arch-svg.tracing .wire-flow { opacity: 0; }
@keyframes wireflow { from { stroke-dashoffset: 1006; } to { stroke-dashoffset: 0; } }

.port {
  fill: var(--bg-soft); stroke: var(--hairline-strong); stroke-width: 1.5;
  transition: fill 0.3s var(--ease), stroke 0.3s var(--ease);
}
.port.on { fill: var(--accent); stroke: var(--accent); }

/* labels that sit on the wire instead of floating beside it */
.wire-chip { transition: opacity 0.3s var(--ease); }
.wire-chip rect { fill: var(--panel-solid); stroke: var(--hairline); stroke-width: 1; }
.wire-chip text {
  fill: var(--faint); font-size: 9.5px; font-weight: 800; letter-spacing: 0.13em;
  text-anchor: middle;
}
.wire-chip.on rect { stroke: var(--tint-strong); fill: var(--panel-solid); }
.wire-chip.on text { fill: var(--accent); }

/* --- the traced packet ------------------------------------------------ */
.packet { opacity: 0; transition: opacity 0.25s var(--ease); }
.arch-svg.tracing .packet { opacity: 1; }
.packet-core { fill: var(--accent); filter: drop-shadow(0 0 8px var(--glow)); }
.packet-ring { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: 0.6; }

/* --- readout ---------------------------------------------------------- */
.arch-readout {
  display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start;
  margin: 8px 22px 22px; padding: 16px 18px;
  border-radius: var(--r-md); border: 1px solid var(--hairline);
  background: var(--bg-soft);
  min-height: 86px;
}
.arch-readout .ro-mark {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: var(--tint); color: var(--accent); font-size: 12px; font-weight: 850;
}
.arch-readout .ro-mark svg { width: 16px; height: 16px; }
.arch-readout h4 { font-size: 14.5px; margin-bottom: 6px; letter-spacing: -0.02em; }
.arch-readout p { color: var(--muted); font-size: 13.4px; line-height: 1.65; max-width: 82ch; }
.ro-swap { animation: roIn 0.35s var(--ease-out); }
@keyframes roIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.arch-legend {
  margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center;
  font-size: 12.5px; color: var(--muted);
}
.arch-legend span { display: inline-flex; align-items: center; gap: 8px; }
.arch-legend i {
  width: 22px; height: 2px; border-radius: 2px; background: var(--hairline-strong); display: inline-block;
}
.arch-legend i.live { background: var(--accent); box-shadow: 0 0 8px var(--glow); }
.arch-legend i.dash {
  background: repeating-linear-gradient(90deg, var(--hairline-strong) 0 4px, transparent 4px 8px);
}

.arch-points {
  margin-top: 34px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.arch-point { padding: 22px; border-radius: var(--r-md); background: var(--panel); border: 1px solid var(--hairline); }
.arch-point h4 { font-size: 15px; margin-bottom: 8px; letter-spacing: -0.02em; }
.arch-point p { color: var(--muted); font-size: 13.5px; line-height: 1.65; }
.arch-point .step {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 8px;
  background: var(--tint); color: var(--accent); font-size: 11.5px; font-weight: 850; margin-bottom: 12px;
}

/* Path line used in the "player path" strip — hops light up during a trace */
.path-strip {
  margin-top: 20px; padding: 16px 20px; border-radius: var(--r-md);
  background: var(--bg-soft); border: 1px solid var(--hairline);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12.5px; color: var(--faint);
  overflow-x: auto;
}
.path-strip .hop {
  padding: 4px 9px; border-radius: 7px; color: var(--muted);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
  white-space: nowrap;
}
.path-strip .hop.on { background: var(--tint); color: var(--text); font-weight: 650; }
.path-strip .arrow { color: var(--accent); opacity: 0.6; }

/* -----------------------------------------------------------------------------
   10. FEATURE GRID
-------------------------------------------------------------------------- */
.feature-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px;
}
.feature {
  position: relative; overflow: hidden;
  grid-column: span 4;
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--panel);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(16px);
  transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s;
}
.feature::before {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(420px circle at var(--px, 50%) var(--py, 0%), var(--tint), transparent 62%);
  transition: opacity 0.35s var(--ease); pointer-events: none;
}
.feature:hover { transform: translateY(-4px); border-color: var(--tint-strong); }
.feature:hover::before { opacity: 1; }
.feature.wide { grid-column: span 6; }
.feature.full { grid-column: span 12; }

.feature .f-icon {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: var(--tint); color: var(--accent); margin-bottom: 20px;
  border: 1px solid var(--tint-strong);
}
.feature .f-icon svg { width: 21px; height: 21px; }
.feature h3 { font-size: 17.5px; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 14.2px; line-height: 1.68; }
.feature .f-meta {
  margin-top: 18px; display: flex; flex-wrap: wrap; gap: 7px;
}
.feature .f-meta span {
  font-family: var(--mono); font-size: 11px; padding: 4px 8px; border-radius: 6px;
  background: var(--bg-soft); color: var(--faint); border: 1px solid var(--hairline);
}

/* -----------------------------------------------------------------------------
   11. PRODUCT TOUR
-------------------------------------------------------------------------- */
.tour-layout { display: grid; grid-template-columns: 300px 1fr; gap: 22px; align-items: start; }

.tour-nav { display: grid; gap: 6px; position: sticky; top: calc(var(--nav-h) + 24px); }
.tour-tab {
  display: flex; gap: 13px; align-items: flex-start; text-align: left;
  padding: 15px 16px; border-radius: var(--r-md);
  border: 1px solid transparent; background: transparent; cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.tour-tab:hover { background: var(--panel); }
.tour-tab[aria-selected="true"] {
  background: var(--panel-2); border-color: var(--tint-strong);
  box-shadow: var(--shadow-sm);
}
.tour-tab .t-icon {
  width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center;
  background: var(--bg-soft); color: var(--muted); transition: background 0.25s, color 0.25s;
}
.tour-tab[aria-selected="true"] .t-icon { background: var(--tint); color: var(--accent); }
.tour-tab .t-icon svg { width: 16px; height: 16px; }
.tour-tab .t-title { display: block; font-size: 14.5px; font-weight: 700; letter-spacing: -0.02em; }
.tour-tab .t-desc { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }

.tour-panels { position: relative; }
.tour-panel { display: none; }
.tour-panel.active { display: block; animation: fadeUp 0.45s var(--ease-out); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Mock application window */
.app-window {
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--hairline-strong);
  background: var(--panel-solid);
  box-shadow: var(--shadow-lg);
}
.app-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 15px; border-bottom: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--bg-soft) 80%, transparent);
}
.app-dots { display: flex; gap: 6px; }
.app-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--hairline-strong); display: block; }
.app-dots i:first-child { background: #ff5f57; }
.app-dots i:nth-child(2) { background: #febc2e; }
.app-dots i:nth-child(3) { background: #28c840; }
.app-crumb {
  font-size: 12.5px; color: var(--muted); font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.app-crumb b { color: var(--text); font-weight: 700; }
.app-crumb .sep { color: var(--faint); }
.app-bar .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.app-chip {
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 6px; background: var(--tint); color: var(--accent);
}
.app-chip.ok { background: rgba(74, 222, 128, 0.12); color: var(--ok); }

.app-body { display: grid; grid-template-columns: 176px 1fr; min-height: 396px; }
.app-side {
  border-right: 1px solid var(--hairline); padding: 14px 10px;
  background: color-mix(in srgb, var(--bg-deep) 45%, transparent);
  display: grid; gap: 2px; align-content: start;
}
.app-side .grp {
  font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 800;
  color: var(--faint); padding: 12px 10px 6px;
}
.app-side .item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: 8px; font-size: 12.8px; color: var(--muted); font-weight: 600;
}
.app-side .item.on { background: var(--tint); color: var(--text); }
.app-side .item .bullet {
  width: 6px; height: 6px; border-radius: 2px; background: currentColor; opacity: 0.6; flex: none;
}
.app-main { padding: 18px 20px; overflow: hidden; }

/* console */
.console {
  font-family: var(--mono); font-size: 12.3px; line-height: 1.85;
  background: var(--bg-deep); border-radius: var(--r-sm);
  border: 1px solid var(--hairline);
  padding: 14px 16px; height: 300px; overflow: hidden;
  position: relative;
}
.console .ln { display: flex; gap: 10px; white-space: pre-wrap; word-break: break-word; }
.console .time { color: var(--faint); flex: none; }
.console .lvl { flex: none; font-weight: 700; }
.console .lvl.info { color: var(--info); }
.console .lvl.ok { color: var(--ok); }
.console .lvl.warn { color: var(--warn); }
.console .msg { color: var(--muted); }
.console .msg b { color: var(--text); font-weight: 600; }
.console .msg .hl { color: var(--accent); }
.console-input {
  margin-top: 12px; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--hairline); background: var(--bg-soft);
  font-family: var(--mono); font-size: 12.5px; color: var(--faint);
}
.console-input .caret {
  width: 7px; height: 15px; background: var(--accent); border-radius: 1px;
  animation: blink 1.1s steps(2) infinite; margin-left: -2px;
}
@keyframes blink { 50% { opacity: 0; } }

/* file browser */
.filelist { border: 1px solid var(--hairline); border-radius: var(--r-sm); overflow: hidden; }
.filelist .row {
  display: grid; grid-template-columns: 1fr 92px 118px; gap: 12px; align-items: center;
  padding: 10px 14px; font-size: 12.8px; border-bottom: 1px solid var(--hairline);
  color: var(--muted);
}
.filelist .row:last-child { border-bottom: 0; }
.filelist .row.head {
  background: var(--bg-soft); font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 800; color: var(--faint);
}
.filelist .row:not(.head):hover { background: var(--tint); }
.filelist .name { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 550; }
.filelist .name svg { width: 15px; height: 15px; color: var(--accent); flex: none; }
.filelist .name.dir svg { color: var(--warn); }
.filelist .mono { font-family: var(--mono); font-size: 11.5px; }

/* addon cards */
.addon-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
.addon {
  display: flex; gap: 12px; padding: 13px; border-radius: var(--r-sm);
  border: 1px solid var(--hairline); background: var(--bg-soft);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.addon:hover { border-color: var(--tint-strong); transform: translateY(-2px); }
.addon .thumb {
  width: 42px; height: 42px; flex: none; border-radius: 10px;
  display: grid; place-items: center; font-weight: 900; font-size: 15px;
  color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.addon .n { font-size: 13.5px; font-weight: 700; letter-spacing: -0.02em; }
.addon .d { font-size: 11.8px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.addon .s {
  margin-top: 7px; display: flex; gap: 6px; flex-wrap: wrap;
  font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}
.addon .s em { font-style: normal; padding: 2px 6px; border-radius: 5px; background: var(--tint); color: var(--accent); }
.addon .s u { text-decoration: none; padding: 2px 6px; border-radius: 5px; background: var(--panel-2); color: var(--faint); }

.search-bar {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  padding: 10px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--hairline); background: var(--bg-soft);
  color: var(--faint); font-size: 13px;
}
.search-bar svg { width: 15px; height: 15px; color: var(--accent); }
.search-bar .filters { margin-left: auto; display: flex; gap: 6px; }
.search-bar .filters span {
  font-size: 10.5px; font-weight: 750; padding: 3px 8px; border-radius: 5px;
  background: var(--panel-2); color: var(--muted);
}

/* players */
.player-row {
  display: flex; align-items: center; gap: 12px; padding: 11px 13px;
  border: 1px solid var(--hairline); border-radius: var(--r-sm);
  background: var(--bg-soft); margin-bottom: 8px;
}
.player-row .head-img {
  width: 34px; height: 34px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; font-weight: 900; color: var(--accent-ink); font-size: 13px;
}
.player-row .pn { font-size: 13.5px; font-weight: 650; }
.player-row .pm { font-size: 11.5px; color: var(--faint); font-family: var(--mono); margin-top: 2px; }
.player-row .acts { margin-left: auto; display: flex; gap: 6px; }
.player-row .acts b {
  font-size: 10.5px; font-weight: 750; padding: 4px 9px; border-radius: 6px;
  background: var(--panel-2); color: var(--muted); border: 1px solid var(--hairline);
}

/* backups */
.bk { display: grid; gap: 8px; }
.bk-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center;
  padding: 12px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--hairline); background: var(--bg-soft); font-size: 13px;
}
.bk-row .t { font-weight: 650; }
.bk-row .sub { font-size: 11.5px; color: var(--faint); margin-top: 3px; font-family: var(--mono); }
.bk-row .sz { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.progress-bar {
  height: 5px; border-radius: 3px; background: var(--panel-2); overflow: hidden; margin-top: 8px;
}
.progress-bar i {
  display: block; height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 10px var(--glow);
}

/* wizard */
.wizard { display: grid; grid-template-columns: 200px 1fr; gap: 20px; }
.wizard-steps { display: grid; gap: 3px; align-content: start; }
.wz {
  display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 9px;
  font-size: 12.6px; color: var(--faint); font-weight: 600;
}
.wz i {
  width: 21px; height: 21px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-size: 10.5px; font-weight: 850; font-style: normal;
  border: 1px solid var(--hairline); color: var(--faint);
}
.wz.done { color: var(--muted); }
.wz.done i { background: var(--tint); color: var(--accent); border-color: var(--tint-strong); }
.wz.on { color: var(--text); background: var(--tint); }
.wz.on i { background: var(--accent); color: var(--accent-ink); border-color: transparent; }

.wizard-body { display: grid; gap: 12px; align-content: start; }
.opt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.opt-card {
  padding: 14px; border-radius: var(--r-sm); border: 1px solid var(--hairline);
  background: var(--bg-soft); text-align: center;
}
.opt-card.sel { border-color: var(--accent); background: var(--tint); box-shadow: 0 0 0 1px var(--tint-strong); }
.opt-card .on-name { font-size: 13px; font-weight: 750; }
.opt-card .on-sub { font-size: 10.8px; color: var(--faint); margin-top: 4px; }
.field {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--hairline); background: var(--bg-soft); font-size: 13px;
}
.field .k { color: var(--muted); font-weight: 600; }
.field .v { font-family: var(--mono); font-size: 12.2px; color: var(--text); }

/* -----------------------------------------------------------------------------
   12. SERVER MATRIX / SOURCES
-------------------------------------------------------------------------- */
.matrix { border-radius: var(--r-lg); overflow: hidden; }
.matrix table { width: 100%; border-collapse: collapse; font-size: 14px; }
.matrix thead th {
  text-align: left; padding: 15px 20px;
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 850;
  color: var(--faint); background: color-mix(in srgb, var(--bg-soft) 70%, transparent);
  border-bottom: 1px solid var(--hairline);
}
.matrix tbody td { padding: 15px 20px; border-bottom: 1px solid var(--hairline); color: var(--muted); }
.matrix tbody tr:last-child td { border-bottom: 0; }
.matrix tbody tr { transition: background 0.2s; }
.matrix tbody tr:hover { background: var(--tint); }
.matrix .srv { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 700; }
.matrix .srv .sq {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  font-size: 12px; font-weight: 900; color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); flex: none;
}
.matrix .rec {
  font-size: 10px; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 5px; background: var(--tint); color: var(--accent);
}
.matrix .mono { font-family: var(--mono); font-size: 12.5px; }

.sources { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.source {
  padding: 20px; border-radius: var(--r-md); border: 1px solid var(--hairline);
  background: var(--panel); text-align: center;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.source:hover { transform: translateY(-3px); border-color: var(--tint-strong); }
.source .sq {
  width: 40px; height: 40px; margin: 0 auto 13px; border-radius: 12px; display: grid; place-items: center;
  font-size: 15px; font-weight: 900; color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.source .n { font-size: 14.5px; font-weight: 750; }
.source .d { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.5; }

/* -----------------------------------------------------------------------------
   13. DOWNLOADS
-------------------------------------------------------------------------- */
.dl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.dl-card {
  display: flex; flex-direction: column; gap: 20px; padding: 28px;
  border-radius: var(--r-lg); border: 1px solid var(--hairline);
  background: var(--panel); backdrop-filter: blur(16px);
  position: relative; overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.dl-card:hover { transform: translateY(-4px); border-color: var(--tint-strong); }
.dl-card.featured { border-color: var(--tint-strong); }
.dl-card.featured::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px circle at 100% 0%, var(--tint), transparent 60%);
}
.dl-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.dl-id { display: flex; gap: 15px; align-items: center; }
.dl-logo {
  width: 52px; height: 52px; flex: none; border-radius: 15px; display: grid; place-items: center;
  background: var(--tint); border: 1px solid var(--tint-strong); color: var(--accent);
}
.dl-logo svg { width: 25px; height: 25px; }
.dl-card h3 { font-size: 19px; }
.dl-card .plat {
  margin-top: 6px; font-size: 12.5px; color: var(--muted);
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.dl-card .plat .sep { color: var(--faint); }
.dl-card > p { color: var(--muted); font-size: 14px; line-height: 1.68; }
.dl-facts { display: grid; gap: 7px; }
.dl-fact {
  display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted);
}
.dl-fact svg { width: 15px; height: 15px; color: var(--accent); flex: none; }
.dl-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: auto; }
.dl-actions .btn { flex: 1 1 auto; min-width: 148px; }
.dl-hash {
  font-family: var(--mono); font-size: 11px; color: var(--faint);
  padding-top: 14px; border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

.notice {
  margin-top: 18px; padding: 15px 18px; border-radius: var(--r-md);
  background: var(--tint); border: 1px solid var(--tint-strong);
  color: var(--muted); font-size: 13.5px; line-height: 1.6;
  display: flex; gap: 12px; align-items: flex-start;
}
.notice svg { width: 17px; height: 17px; color: var(--accent); flex: none; margin-top: 1px; }
.notice b { color: var(--text); }
.notice code {
  font-family: var(--mono); font-size: 12px; padding: 2px 6px; border-radius: 5px;
  background: var(--bg-soft); color: var(--accent);
}

/* -----------------------------------------------------------------------------
   14. DOCKER IMAGES
-------------------------------------------------------------------------- */
.img-list { display: grid; gap: 11px; }
.img-row {
  display: grid; grid-template-columns: 210px 1fr auto; gap: 20px; align-items: center;
  padding: 18px 20px; border-radius: var(--r-md);
  border: 1px solid var(--hairline); background: var(--panel);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.img-row:hover { border-color: var(--tint-strong); transform: translateX(3px); }
.img-id { display: flex; align-items: center; gap: 12px; }
.img-id .sq {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--tint); color: var(--accent); flex: none;
}
.img-id .sq svg { width: 17px; height: 17px; }
.img-id .n { font-size: 14.5px; font-weight: 750; letter-spacing: -0.02em; }
.img-id .r { font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.img-ref {
  font-family: var(--mono); font-size: 12.5px; color: var(--muted);
  padding: 9px 13px; border-radius: var(--r-xs);
  background: var(--bg-deep); border: 1px solid var(--hairline);
  overflow-x: auto; white-space: nowrap;
}
.img-ref .tag { color: var(--accent); }

/* -----------------------------------------------------------------------------
   15. INSTALL
-------------------------------------------------------------------------- */
.install-layout { display: grid; grid-template-columns: 1fr; gap: 26px; }

.mode-switch {
  display: inline-flex; padding: 5px; gap: 4px; border-radius: 14px;
  border: 1px solid var(--hairline); background: var(--panel); margin-bottom: 26px;
}
.mode-switch button {
  padding: 10px 18px; border-radius: 10px; border: 0; background: transparent;
  font-size: 13.5px; font-weight: 700; color: var(--muted); cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.mode-switch button[aria-selected="true"] {
  background: var(--tint); color: var(--text); box-shadow: inset 0 0 0 1px var(--tint-strong);
}

.code-shell {
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--hairline-strong); background: var(--panel-solid);
  box-shadow: var(--shadow);
}
.code-tabs {
  display: flex; gap: 2px; padding: 8px 8px 0; overflow-x: auto;
  background: color-mix(in srgb, var(--bg-soft) 80%, transparent);
  border-bottom: 1px solid var(--hairline);
  scrollbar-width: thin;
}
.code-tab {
  padding: 10px 15px; border: 0; border-radius: 10px 10px 0 0; background: transparent;
  font-family: var(--mono); font-size: 12.3px; font-weight: 600; color: var(--faint);
  cursor: pointer; white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.code-tab:hover { color: var(--muted); background: var(--tint); }
.code-tab[aria-selected="true"] {
  background: var(--panel-solid); color: var(--text);
  box-shadow: inset 0 1px 0 var(--accent);
}
.code-head {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--bg-deep) 40%, transparent);
}
.code-head .fname { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.code-head .fname b { color: var(--text); font-weight: 650; }
.code-head .right { margin-left: auto; display: flex; gap: 8px; }
.code-desc {
  padding: 14px 18px; font-size: 13.2px; color: var(--muted); line-height: 1.65;
  border-bottom: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--bg-soft) 40%, transparent);
}
.code-desc b { color: var(--text); font-weight: 650; }
.code-body { position: relative; max-height: 560px; overflow: auto; }
.code-body pre {
  margin: 0; padding: 20px 22px;
  font-family: var(--mono); font-size: 12.6px; line-height: 1.75;
  color: var(--text); tab-size: 2;
}
.code-body code { font: inherit; }

/* syntax colors */
.tk-com { color: var(--faint); font-style: italic; }
.tk-key { color: var(--accent); }
.tk-str { color: var(--ok); }
.tk-num { color: var(--warn); }
.tk-var { color: var(--info); }
.tk-punc { color: var(--faint); }
.tk-dash { color: var(--muted); }
.tk-cmd { color: var(--text); font-weight: 600; }
.tk-flag { color: var(--info); }
.tk-prompt { color: var(--accent); font-weight: 700; user-select: none; }

.copied-toast {
  position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 18px);
  padding: 12px 20px; border-radius: 12px;
  background: var(--panel-solid); border: 1px solid var(--tint-strong);
  box-shadow: var(--shadow-lg); color: var(--text); font-size: 13.5px; font-weight: 650;
  display: flex; align-items: center; gap: 10px;
  opacity: 0; pointer-events: none; z-index: 200;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.copied-toast.show { opacity: 1; transform: translate(-50%, 0); }
.copied-toast svg { width: 16px; height: 16px; color: var(--ok); }

/* Timeline */
.timeline { display: grid; gap: 0; margin-top: 34px; }
.tl-item {
  display: grid; grid-template-columns: 54px 1fr; gap: 20px;
  padding-bottom: 28px; position: relative;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: 26px; top: 44px; bottom: -4px; width: 1px;
  background: linear-gradient(180deg, var(--tint-strong), transparent);
}
.tl-item:last-child::before { display: none; }
.tl-num {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  font-size: 17px; font-weight: 850; letter-spacing: -0.03em;
  background: var(--panel-2); border: 1px solid var(--tint-strong); color: var(--accent);
  position: relative; z-index: 1;
}
.tl-body h4 { font-size: 16.5px; margin-bottom: 8px; padding-top: 12px; }
.tl-body p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.tl-body p + p { margin-top: 9px; }
.tl-body code {
  font-family: var(--mono); font-size: 12.2px; padding: 2px 7px; border-radius: 5px;
  background: var(--bg-soft); border: 1px solid var(--hairline); color: var(--accent);
}
.tl-cmd {
  margin-top: 12px; padding: 12px 15px; border-radius: var(--r-sm);
  background: var(--bg-deep); border: 1px solid var(--hairline);
  font-family: var(--mono); font-size: 12.4px; color: var(--muted);
  display: flex; align-items: center; gap: 12px; overflow-x: auto;
}
.tl-cmd .tk-prompt { flex: none; }

/* -----------------------------------------------------------------------------
   16. DNS
-------------------------------------------------------------------------- */
.dns-table { border-radius: var(--r-lg); overflow: hidden; }
.dns-table table { width: 100%; border-collapse: collapse; }
.dns-table th {
  text-align: left; padding: 14px 18px; font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 850; color: var(--faint);
  background: color-mix(in srgb, var(--bg-soft) 70%, transparent);
  border-bottom: 1px solid var(--hairline);
}
.dns-table td {
  padding: 14px 18px; border-bottom: 1px solid var(--hairline);
  font-family: var(--mono); font-size: 12.4px; color: var(--muted); word-break: break-all;
}
.dns-table tr:last-child td { border-bottom: 0; }
.dns-table td.type { font-weight: 700; color: var(--accent); font-family: var(--sans); font-size: 12.5px; }
.dns-table td.when { font-family: var(--sans); font-size: 12.5px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.info-card { padding: 26px; border-radius: var(--r-lg); border: 1px solid var(--hairline); background: var(--panel); }
.info-card h4 { font-size: 16px; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.info-card h4 svg { width: 18px; height: 18px; color: var(--accent); }
.info-card p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.info-card ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 13.8px; line-height: 1.8; }
.info-card ul li::marker { color: var(--accent); }
.info-card code {
  font-family: var(--mono); font-size: 12px; padding: 2px 6px; border-radius: 5px;
  background: var(--bg-soft); color: var(--accent);
}

/* -----------------------------------------------------------------------------
   16b. FILEHUB — companion product
-------------------------------------------------------------------------- */
.fh-band {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl); border: 1px solid var(--hairline);
  background: linear-gradient(155deg, var(--panel-2), transparent 58%), var(--panel);
  box-shadow: var(--shadow);
  padding: 44px;
}
.fh-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(620px circle at 88% -10%, var(--tint), transparent 62%);
}
.fh-layout {
  position: relative;
  display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 40px; align-items: center;
}
.fh-copy h2 { font-size: clamp(30px, 3.8vw, 46px); margin-top: 14px; }
.fh-copy .lede { color: var(--muted); line-height: 1.72; font-size: 16px; margin-top: 18px; }
.fh-copy .lede strong { color: var(--text); font-weight: 650; }

.fh-link {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 22px; padding: 14px 16px;
  border-radius: var(--r-md); border: 1px solid var(--tint-strong); background: var(--tint);
  font-size: 13.4px; color: var(--muted); line-height: 1.55;
}
.fh-link svg { width: 17px; height: 17px; color: var(--accent); flex: none; }
.fh-link b { color: var(--text); font-weight: 700; }

.fh-list { margin-top: 22px; display: grid; gap: 10px; }
.fh-list div { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.6; }
.fh-list svg { width: 15px; height: 15px; color: var(--accent); flex: none; margin-top: 3px; }
.fh-list b { color: var(--text); font-weight: 650; }

.fh-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-bottom: 12px; }
.fh-tile {
  border-radius: 10px; border: 1px solid var(--hairline); background: var(--bg-soft);
  overflow: hidden;
}
.fh-tile .art {
  height: 62px; display: grid; place-items: center;
  font-size: 18px; font-weight: 900; color: var(--accent-ink);
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  opacity: 0.9;
}
.fh-tile .art.alt { background: linear-gradient(140deg, var(--accent-2), var(--accent)); }
.fh-tile .cap { padding: 8px 9px; }
.fh-tile .cap .n { font-size: 11.5px; font-weight: 700; letter-spacing: -0.01em; }
.fh-tile .cap .m { font-size: 10px; color: var(--faint); margin-top: 2px; font-family: var(--mono); }

.fh-points { position: relative; margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.fh-point {
  padding: 20px; border-radius: var(--r-md);
  border: 1px solid var(--hairline); background: var(--bg-soft);
}
.fh-point .ic {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: var(--tint); color: var(--accent); margin-bottom: 14px;
}
.fh-point .ic svg { width: 17px; height: 17px; }
.fh-point h4 { font-size: 14px; margin-bottom: 7px; letter-spacing: -0.02em; }
.fh-point p { font-size: 12.8px; color: var(--muted); line-height: 1.6; }

/* -----------------------------------------------------------------------------
   17. THEMES SHOWCASE
-------------------------------------------------------------------------- */
.theme-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.theme-card {
  padding: 0; border-radius: var(--r-md); overflow: hidden; cursor: pointer;
  border: 1px solid var(--hairline); background: var(--panel);
  transition: transform 0.3s var(--ease), border-color 0.3s;
  text-align: left;
}
.theme-card:hover { transform: translateY(-4px); border-color: var(--tint-strong); }
.theme-card[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.theme-prev { height: 82px; position: relative; overflow: hidden; }
.theme-prev .bar {
  position: absolute; left: 14px; height: 7px; border-radius: 4px;
}
.theme-prev .bar.a { top: 18px; width: 56%; }
.theme-prev .bar.b { top: 33px; width: 38%; opacity: 0.55; }
.theme-prev .bar.c { top: 48px; width: 46%; opacity: 0.3; }
.theme-prev .orb {
  position: absolute; right: -18px; top: -18px; width: 76px; height: 76px; border-radius: 50%;
  filter: blur(14px); opacity: 0.85;
}
.theme-meta { padding: 13px 15px; border-top: 1px solid var(--hairline); }
.theme-meta .n { font-size: 13.5px; font-weight: 750; }
.theme-meta .d { font-size: 11.5px; color: var(--faint); margin-top: 3px; }

/* -----------------------------------------------------------------------------
   18. FAQ
-------------------------------------------------------------------------- */
.faq { display: grid; gap: 10px; max-width: 900px; margin-inline: auto; }
.faq-item {
  border-radius: var(--r-md); border: 1px solid var(--hairline);
  background: var(--panel); overflow: hidden;
  transition: border-color 0.25s, background 0.25s;
}
.faq-item.open { border-color: var(--tint-strong); background: var(--panel-2); }
.faq-q {
  width: 100%; display: flex; align-items: center; gap: 16px; text-align: left;
  padding: 20px 22px; border: 0; background: transparent; cursor: pointer;
  font-size: 15.5px; font-weight: 700; letter-spacing: -0.02em; color: var(--text);
}
.faq-q .mk {
  margin-left: auto; flex: none; width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center; background: var(--tint); color: var(--accent);
  transition: transform 0.3s var(--ease);
}
.faq-q .mk svg { width: 13px; height: 13px; }
.faq-item.open .faq-q .mk { transform: rotate(45deg); }
.faq-a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p {
  padding: 0 22px 22px; color: var(--muted); font-size: 14.3px; line-height: 1.75; max-width: 78ch;
}
.faq-a p + p { padding-top: 12px; }
.faq-a code {
  font-family: var(--mono); font-size: 12.2px; padding: 2px 6px; border-radius: 5px;
  background: var(--bg-soft); color: var(--accent);
}

/* -----------------------------------------------------------------------------
   19. CTA + FOOTER
-------------------------------------------------------------------------- */
.cta {
  position: relative; overflow: hidden;
  padding: 76px 44px; border-radius: var(--r-xl); text-align: center;
  border: 1px solid var(--tint-strong);
  background: linear-gradient(160deg, var(--panel-2), transparent 62%), var(--panel);
  box-shadow: var(--shadow-lg);
}
.cta::before {
  content: ""; position: absolute; inset: -1px; pointer-events: none;
  background: radial-gradient(700px circle at 50% -10%, var(--tint-strong), transparent 62%);
}
.cta h2 { font-size: clamp(34px, 5.2vw, 62px); position: relative; }
.cta p {
  position: relative; margin: 22px auto 0; max-width: 58ch;
  color: var(--muted); font-size: 17px; line-height: 1.7;
}
.cta .hero-actions { position: relative; }

footer {
  margin-top: 96px; border-top: 1px solid var(--hairline);
  padding: 56px 0 40px; position: relative; z-index: 1;
}
.foot-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px;
}
.foot-brand .brand { margin-bottom: 16px; }
.foot-brand p { color: var(--muted); font-size: 13.8px; line-height: 1.7; max-width: 36ch; }
.foot-col h5 {
  margin: 0 0 15px; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 850; color: var(--faint);
}
.foot-col a, .foot-col span {
  display: block; padding: 5px 0; font-size: 13.8px; color: var(--muted);
  transition: color 0.2s;
}
.foot-col a:hover { color: var(--accent); }
.foot-bottom {
  padding-top: 26px; border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
  font-size: 12.8px; color: var(--faint);
}
.foot-bottom .tagline { display: inline-flex; align-items: center; gap: 9px; }

.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--hairline-strong); background: var(--panel-2);
  backdrop-filter: blur(14px); box-shadow: var(--shadow);
  color: var(--muted);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s, color 0.2s, border-color 0.2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--accent); border-color: var(--accent); }
.to-top svg { width: 17px; height: 17px; }

/* -----------------------------------------------------------------------------
   20. MOTION & REVEAL
-------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* -----------------------------------------------------------------------------
   21. RESPONSIVE
-------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .tour-layout { grid-template-columns: 1fr; }
  .tour-nav { position: static; grid-template-columns: repeat(2, 1fr); display: grid; }
  .theme-grid { grid-template-columns: repeat(3, 1fr); }
  .sources { grid-template-columns: repeat(2, 1fr); }
  .img-row { grid-template-columns: 1fr; gap: 14px; }
  .fh-points { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  section { padding: 78px 0; }
  .container { width: min(var(--max), calc(100% - 32px)); }
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
  .section-head { grid-template-columns: 1fr; gap: 16px; align-items: start; }
  .feature { grid-column: span 6; }
  .feature.wide, .feature.full { grid-column: span 12; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--hairline); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3), .stat:nth-child(4) { border-bottom: 0; }
  .dl-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .arch-points { grid-template-columns: 1fr; }
  .wizard { grid-template-columns: 1fr; }
  .app-body { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .cta { padding: 54px 26px; }
  .matrix { overflow-x: auto; }
  .matrix table { min-width: 620px; }
  .dns-table { overflow-x: auto; }
  .dns-table table { min-width: 640px; }

  .fh-layout { grid-template-columns: 1fr; gap: 30px; }
  .fh-band { padding: 28px 22px; }
  .arch-stepchips { margin-left: 0; width: 100%; }
  .arch-canvas { padding: 20px 14px 4px; }
  .arch-readout { margin-inline: 14px; }
}

@media (max-width: 620px) {
  .hero { padding-top: 66px; }
  .feature { grid-column: span 12; }
  .theme-grid { grid-template-columns: repeat(2, 1fr); }
  .sources { grid-template-columns: 1fr; }
  .addon-grid { grid-template-columns: 1fr; }
  .opt-grid { grid-template-columns: repeat(2, 1fr); }
  .tour-nav { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .dl-actions .btn { min-width: 0; width: 100%; flex: 1 1 100%; }
  .forge-stage canvas { height: 240px; }
  .filelist .row { grid-template-columns: 1fr 80px; }
  .filelist .row > :nth-child(3) { display: none; }
  .to-top { right: 14px; bottom: 14px; }
  .fh-points { grid-template-columns: 1fr; }
  .fh-tiles { grid-template-columns: repeat(2, 1fr); }
  .arch-toolbar { padding: 14px; }
  .arch-play { width: 100%; justify-content: center; }
  .step-chip { flex: 1 1 auto; justify-content: center; }
}
