/* ==========================================================================
   CoreNodeX design system
   Bare-metal precision, gamer energy. Graphite + core amber. No neon soup.
   ========================================================================== */

/* ---- Fonts (self-hosted) ---- */
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/ibm-plex-mono-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/ibm-plex-mono-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ---- Tokens ----
   Dark is the default theme. Light overrides live in [data-theme="light"];
   a head script sets data-theme from localStorage or prefers-color-scheme
   before first paint. */
:root {
  color-scheme: dark;
  --scanline: rgba(255, 255, 255, .012);
  --header-bg: rgba(10, 14, 19, .82);
  --header-solid: rgba(10, 14, 19, .97);
  --bg: #0a0e13;
  --bg-raise: #0e141b;
  --panel: #121a23;
  --panel-2: #16202b;
  --line: rgba(148, 170, 192, 0.13);
  --line-strong: rgba(148, 170, 192, 0.24);
  --text: #e9eef4;
  --muted: #94a3b3;
  --faint: #5d6b7a;

  --amber: #ffb03c;
  --amber-deep: #ff7a2f;
  --amber-ink: #1a1206;
  --green: #3fe081;      /* status/live ONLY */
  --red: #ff5d5d;
  --cyan: #55c8d8;       /* sparse data accent */

  --grad-cta: linear-gradient(135deg, #ffb03c 0%, #ff7a2f 100%);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;

  --shadow-1: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  --shadow-2: 0 2px 6px rgba(0,0,0,.5), 0 20px 48px rgba(0,0,0,.5);
  --glow-amber: 0 0 24px rgba(255, 176, 60, .18);

  --wrap: 1160px;
  --pad: clamp(20px, 4vw, 40px);
}

[data-theme="light"] {
  color-scheme: light;
  --scanline: rgba(15, 30, 45, .015);
  --header-bg: rgba(243, 245, 248, .85);
  --header-solid: rgba(243, 245, 248, .98);
  --bg: #f3f5f8;
  --bg-raise: #e9edf2;
  --panel: #ffffff;
  --panel-2: #f7f9fc;
  --line: rgba(20, 40, 60, .12);
  --line-strong: rgba(20, 40, 60, .25);
  --text: #14212d;
  --muted: #45596b;
  --faint: #6e8093;
  --amber: #b45309;
  --amber-deep: #c2410c;
  --green: #0f8a4c;
  --red: #d33c3c;
  --cyan: #0e7490;
  --shadow-1: 0 1px 2px rgba(20,30,40,.06), 0 8px 24px rgba(20,30,40,.08);
  --shadow-2: 0 2px 6px rgba(20,30,40,.08), 0 20px 48px rgba(20,30,40,.12);
  --glow-amber: 0 0 24px rgba(217, 119, 6, .18);
}

/* Illustration panels drawn with dark fills (charts, terminals, the map)
   stay dark in light mode — deliberate "hardware window" look. */
[data-theme="light"] .stage-dark {
  background: linear-gradient(180deg, #16202b, #121a23);
  border-color: rgba(148, 170, 192, .25);
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
/* Inline SVGs with only a viewBox default to height:100% of an auto parent
   and collapse to 0 — force width-driven sizing for the big artwork. */
.hero-visual svg, .panel svg { width: 100%; height: auto; }
a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 62ch; }
.mono { font-family: var(--font-mono); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }
::selection { background: rgba(255,176,60,.28); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* Subtle global texture: vertical scanline sheen on body */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, var(--scanline) 0 1px, transparent 1px 3px);
}
main, header, footer { position: relative; z-index: 1; }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-bar {
  display: flex; align-items: center; gap: 28px;
  min-height: 66px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.16rem;
  color: var(--text); letter-spacing: -.01em;
}
.brand:hover { text-decoration: none; }
.brand .x { color: var(--amber); }
.brand-mark { width: 26px; height: 26px; flex: none; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  margin-left: auto; list-style: none; padding: 0;
}
.nav-links a {
  display: block; padding: 8px 13px;
  color: var(--muted); font-size: .93rem; font-weight: 500;
  border-radius: var(--r-sm);
  white-space: nowrap;            /* labels must never break mid-word */
  transition: color .15s, background .15s;
}
.nav-links > li { flex: none; }   /* don't squeeze items into wrapping */
.nav-links a:hover { color: var(--text); background: rgba(148,170,192,.08); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--amber); }
.nav-cta {
  margin-left: 8px;
}

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; flex: none;
  margin-left: 14px;
  background: transparent; border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); color: var(--muted); cursor: pointer;
  transition: color .15s, border-color .15s;
}
.theme-toggle:hover { color: var(--amber); border-color: var(--amber); }
.theme-toggle .tt-moon { display: none; }
[data-theme="light"] .theme-toggle .tt-sun { display: none; }
[data-theme="light"] .theme-toggle .tt-moon { display: block; }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  color: var(--text); padding: 8px 10px; cursor: pointer;
  font-family: var(--font-mono); font-size: .8rem;
}

@media (max-width: 1120px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .theme-toggle { margin-left: 12px; }
  .nav-links {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    margin: 0; padding: 10px var(--pad) 18px;
    background: var(--header-solid);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 1rem; }
  .nav-cta { margin: 8px 0 0; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  padding: 12px 22px; border-radius: var(--r-md);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .15s, border-color .15s;
  text-decoration: none !important;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
  background: var(--grad-cta); color: var(--amber-ink);
  box-shadow: var(--glow-amber);
}
.btn-primary:hover { box-shadow: 0 0 34px rgba(255,150,50,.32); }
.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn-lg { padding: 15px 30px; font-size: 1.04rem; }
.btn-sm { padding: 8px 16px; font-size: .86rem; }
.btn-block { width: 100%; }

/* ==========================================================================
   Rack-unit section framing — the signature motif
   ========================================================================== */
.section { padding-block: clamp(56px, 9vw, 104px); }
.section-alt { background: var(--bg-raise); border-block: 1px solid var(--line); }

.rack-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: clamp(26px, 4vw, 44px);
}
.rack-head::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}
.rack-head .led {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 10px var(--amber);
  flex: none;
}
.rack-head .label {
  font-family: var(--font-mono); font-size: .78rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap;
}
.section-title { max-width: 26ch; }
.section-sub { color: var(--muted); max-width: 60ch; margin-top: -6px; margin-bottom: 34px; }

/* LED status dots (green reserved for live) */
.led-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; vertical-align: middle; }
.led-live { background: var(--green); box-shadow: 0 0 8px rgba(63,224,129,.7); animation: led-pulse 2.4s infinite; }
.led-soon { background: var(--amber); box-shadow: 0 0 8px rgba(255,176,60,.6); }
.led-planned { background: var(--faint); }
@keyframes led-pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(56px, 9vw, 110px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(1000px 480px at 78% -10%, rgba(255,140,50,.09), transparent 60%),
    radial-gradient(700px 420px at -8% 110%, rgba(85,200,216,.05), transparent 60%);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .78rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--amber);
  border: 1px solid rgba(255,176,60,.3); border-radius: 100px;
  padding: 6px 14px; margin-bottom: 22px;
  background: rgba(255,176,60,.06);
}
.hero h1 .accent { color: var(--amber); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-note { margin-top: 18px; font-family: var(--font-mono); font-size: .8rem; color: var(--faint); }
.hero-visual { min-width: 0; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 440px; margin-inline: auto; }
}

/* Sub-page hero (compact) */
.page-hero { padding-block: clamp(44px, 7vw, 80px); }

/* ==========================================================================
   Trust strip (config-driven stats)
   ========================================================================== */
.trust-strip {
  border-block: 1px solid var(--line);
  background: var(--bg-raise);
}
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.trust-cell {
  padding: 22px 18px; text-align: center;
  border-left: 1px solid var(--line);
}
.trust-cell:first-child { border-left: none; }
.trust-cell .v {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem); color: var(--amber);
}
.trust-cell .l { font-size: .84rem; color: var(--muted); margin-top: 2px; }
@media (max-width: 720px) {
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-cell:nth-child(odd) { border-left: none; }
  .trust-cell:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ==========================================================================
   Cards & panels
   ========================================================================== */
.panel {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}
.card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 30px);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-2); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }

/* Product trio cards (home) */
.product-card { display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.product-card .icon-slot { width: 44px; height: 44px; color: var(--amber); }
.product-card .from-line { font-family: var(--font-mono); font-size: .85rem; color: var(--faint); margin-top: auto; }
.product-card .from-line strong { color: var(--text); font-size: 1.05rem; font-weight: 600; }
.product-card .card-cta { margin-top: 4px; }

/* ==========================================================================
   Pricing
   ========================================================================== */
.term-toggle {
  display: inline-flex; gap: 4px; padding: 4px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 100px;
  margin-bottom: 34px;
}
.term-toggle button {
  border: 0; background: transparent; color: var(--muted);
  font-family: var(--font-display); font-weight: 500; font-size: .88rem;
  padding: 8px 18px; border-radius: 100px; cursor: pointer;
  transition: background .15s, color .15s;
}
.term-toggle button[aria-pressed="true"] { background: var(--grad-cta); color: var(--amber-ink); font-weight: 700; }
.term-toggle .save { font-size: .74rem; opacity: .85; margin-left: 4px; }

.plans-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: stretch;
}
.plan-card {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 24px;
  position: relative;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.plan-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.plan-card.featured {
  border-color: rgba(255,176,60,.5);
  box-shadow: var(--glow-amber), var(--shadow-1);
}
.plan-tag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--grad-cta); color: var(--amber-ink);
  font-family: var(--font-mono); font-weight: 600; font-size: .68rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 100px; white-space: nowrap;
}
.plan-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.plan-for { color: var(--muted); font-size: .86rem; min-height: 2.6em; margin: 2px 0 14px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.plan-price .amount { font-family: var(--font-display); font-weight: 700; font-size: 2.1rem; letter-spacing: -.02em; }
.plan-price .unit { color: var(--faint); font-size: .8rem; font-family: var(--font-mono); }
.plan-was { font-family: var(--font-mono); font-size: .76rem; color: var(--faint); text-decoration: line-through; min-height: 1.2em; }
/* Annually-billed plans: monthly equivalent + billing note (same slot as .plan-was) */
.plan-permonth { font-family: var(--font-mono); font-size: .76rem; color: var(--faint); min-height: 1.2em; }
.plan-permonth strong { color: var(--muted); font-weight: 600; }
.plan-specs { list-style: none; margin: 16px 0 20px; padding: 0; border-top: 1px solid var(--line); }
.plan-specs li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid var(--line);
  font-size: .88rem;
}
.plan-specs .k { color: var(--faint); font-family: var(--font-mono); font-size: .78rem; }
.plan-specs .v { color: var(--text); font-weight: 500; text-align: right; }
.plan-card .btn { margin-top: auto; }

.shared-features { margin-top: 30px; }
.shared-features ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 26px;
}
.shared-features li {
  position: relative; padding-left: 24px;
  color: var(--muted); font-size: .92rem;
}
.shared-features li::before {
  content: ''; position: absolute; left: 0; top: .42em;
  width: 13px; height: 13px;
  background: var(--amber);
  clip-path: polygon(14% 44%, 0 60%, 40% 100%, 100% 16%, 84% 2%, 38% 68%);
}
@media (max-width: 900px) { .shared-features ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .shared-features ul { grid-template-columns: 1fr; } }

/* Add-ons table */
.addons-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.addons-table th, .addons-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.addons-table th { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.addons-table .price { font-family: var(--font-mono); color: var(--amber); white-space: nowrap; }
.addons-table .applies { color: var(--faint); font-size: .8rem; }

/* ==========================================================================
   Datasheet / comparison tables
   ========================================================================== */
.datasheet {
  width: 100%; border-collapse: collapse;
  font-size: .92rem;
  background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden;
}
.table-scroll { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); }
.table-scroll .datasheet { border: 0; }
.datasheet th, .datasheet td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.datasheet thead th {
  font-family: var(--font-mono); font-size: .74rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--faint);
  background: var(--bg-raise);
}
.datasheet tbody tr:last-child td { border-bottom: 0; }
.datasheet td:first-child { color: var(--muted); font-family: var(--font-mono); font-size: .82rem; }
.datasheet .yes { color: var(--green); }
.datasheet .no { color: var(--faint); }
.datasheet .hl { color: var(--amber); font-weight: 600; }

/* ==========================================================================
   Game grid
   ========================================================================== */
.game-filters {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; align-items: center;
}
.game-filters .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line-strong); background: transparent; color: var(--muted);
  font-family: var(--font-mono); font-size: .78rem; font-weight: 600;
  padding: 7px 14px; border-radius: 100px; cursor: pointer;
  transition: all .15s;
}
.chip:hover { color: var(--text); border-color: var(--text); }
.chip[aria-pressed="true"] { background: var(--grad-cta); border-color: transparent; color: var(--amber-ink); }
.game-search {
  margin-left: auto; min-width: 220px;
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--r-md);
  color: var(--text); padding: 9px 14px; font-size: .9rem; font-family: var(--font-body);
}
.game-search::placeholder { color: var(--faint); }
@media (max-width: 720px) { .game-search { margin-left: 0; width: 100%; } }

.games-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
}
.game-card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 18px 16px 16px;
  transition: transform .16s, border-color .16s;
}
.game-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.game-card::before {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: var(--game-accent, var(--amber));
  opacity: .85;
}
.game-card .g-name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1.25; }
.game-card .g-cat {
  font-family: var(--font-mono); font-size: .68rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--faint);
  display: block; margin-bottom: 6px;
}
.game-card .g-note { color: var(--muted); font-size: .82rem; margin: 6px 0 0; }
.game-card .g-pop {
  position: absolute; top: 12px; right: 12px;
  font-size: .62rem; font-family: var(--font-mono); font-weight: 600;
  letter-spacing: .1em; color: var(--amber);
  border: 1px solid rgba(255,176,60,.4); border-radius: 100px; padding: 2px 8px;
}
.games-count { font-family: var(--font-mono); font-size: .8rem; color: var(--faint); margin-bottom: 16px; }

/* ==========================================================================
   Regions / network
   ========================================================================== */
.map-panel { padding: clamp(14px, 2.5vw, 28px); }
.map-panel svg { width: 100%; height: auto; }

.regions-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  margin-top: 26px;
}
.region-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 20px;
}
.region-card .r-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.region-card .r-code {
  font-family: var(--font-mono); font-weight: 600; font-size: .78rem;
  color: var(--amber); letter-spacing: .1em;
}
.region-card .r-city { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.region-card .r-status { margin-left: auto; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.region-card .r-country { color: var(--faint); font-size: .84rem; margin-bottom: 12px; }
.latency-rows { display: flex; flex-direction: column; gap: 7px; margin-bottom: 12px; }
.latency-row { display: flex; align-items: center; gap: 10px; font-size: .82rem; }
.latency-row .m { color: var(--muted); flex: 1; }
.latency-row .ms { font-family: var(--font-mono); color: var(--cyan); font-size: .78rem; white-space: nowrap; }
.latency-row .bar { flex: 1.4; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.latency-row .bar i { display: block; height: 100%; border-radius: 2px; background: var(--cyan); opacity: .8; }
.region-card .r-feats { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); padding-top: 10px; }
.region-card .r-feats li { color: var(--faint); font-size: .78rem; padding: 2px 0; }

/* ==========================================================================
   Deploy flow (3 steps)
   ========================================================================== */
.deploy-flow {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  counter-reset: step;
}
.deploy-step {
  position: relative; padding: 26px 28px 26px 30px;
  border-left: 1px solid var(--line);
}
.deploy-step:first-child { border-left: 0; }
.deploy-step .n {
  font-family: var(--font-mono); font-weight: 600; font-size: .78rem;
  color: var(--amber); letter-spacing: .16em; display: block; margin-bottom: 10px;
}
.deploy-step h3 { font-size: 1.12rem; }
.deploy-step p { color: var(--muted); font-size: .9rem; margin: 0; }
@media (max-width: 820px) {
  .deploy-flow { grid-template-columns: 1fr; }
  .deploy-step { border-left: 0; border-top: 1px solid var(--line); }
  .deploy-step:first-child { border-top: 0; }
}

/* ==========================================================================
   FAQ (native details)
   ========================================================================== */
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 780px; }
.faq-item {
  background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .15s;
}
.faq-item[open] { border-color: var(--line-strong); }
.faq-item summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  font-family: var(--font-display); font-weight: 500; font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; margin-left: auto; flex: none;
  font-family: var(--font-mono); font-size: 1.1rem; color: var(--amber);
  transition: transform .18s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .a { padding: 0 20px 18px; color: var(--muted); font-size: .94rem; }

/* ==========================================================================
   Forms (contact / quote)
   ========================================================================== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label {
  display: block; font-family: var(--font-mono); font-size: .74rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg-raise);
  border: 1px solid var(--line-strong); border-radius: var(--r-md);
  color: var(--text); padding: 12px 14px;
  font-size: .95rem; font-family: var(--font-body);
  transition: border-color .15s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(255,176,60,.15);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-status { margin-top: 16px; font-size: .92rem; display: none; padding: 12px 16px; border-radius: var(--r-md); }
.form-status.ok { display: block; background: rgba(63,224,129,.1); border: 1px solid rgba(63,224,129,.35); color: var(--green); }
.form-status.err { display: block; background: rgba(255,93,93,.08); border: 1px solid rgba(255,93,93,.3); color: var(--red); }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  position: relative; overflow: hidden;
  border-block: 1px solid var(--line);
  background:
    radial-gradient(700px 300px at 85% 120%, rgba(255,140,50,.13), transparent 60%),
    var(--bg-raise);
  padding-block: clamp(48px, 7vw, 84px);
  text-align: center;
}
.cta-band h2 { max-width: 22ch; margin-inline: auto; }
.cta-band p { color: var(--muted); max-width: 52ch; margin-inline: auto; }
.cta-band .hero-ctas { justify-content: center; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-raise);
  padding: clamp(40px, 6vw, 64px) 0 28px;
  font-size: .9rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px; margin-bottom: 40px;
}
.footer-grid h4 {
  font-family: var(--font-mono); font-size: .74rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--faint);
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--amber); }
.footer-brand p { color: var(--faint); font-size: .86rem; max-width: 30ch; }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  color: var(--faint); font-size: .8rem; font-family: var(--font-mono);
}
.footer-status { display: inline-flex; align-items: center; gap: 8px; }

/* Language selector (footer). Options are populated by app.js. */
.lang-wrap { display: inline-flex; align-items: center; gap: 8px; }

/* Currency selector: injected next to billing-term toggles + footer slot */
.cur-inline { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 34px 14px; vertical-align: top; }
.cur-inline .lang-select { padding: 9px 10px; }
.cur-note { color: var(--faint); font-family: var(--font-mono); font-size: .72rem; }
@media (max-width: 620px) { .cur-inline { margin-left: 0; display: flex; } }
.lang-select {
  background: transparent; color: var(--muted);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  font-family: var(--font-mono); font-size: .78rem;
  padding: 5px 8px; cursor: pointer; max-width: 180px;
}
.lang-select:hover { color: var(--text); border-color: var(--text); }
.lang-select option { background: var(--panel); color: var(--text); }

/* Google Translate chrome suppression: keep the page layout untouched */
body { top: 0 !important; }
.skiptranslate iframe.skiptranslate, #goog-gt-tt, .goog-te-balloon-frame,
.goog-te-spinner-pos, div[id^="goog-gt-"],
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf, .VIpgJd-ZVi9od-aZ2wEe-OiiCO { display: none !important; }
#cnx-gt { position: absolute; left: -9999px; height: 0; overflow: hidden; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   SVG visuals: rack, map, charts
   ========================================================================== */
.rack-visual .led-a { animation: led-pulse 1.8s infinite; }
.rack-visual .led-b { animation: led-pulse 2.6s .4s infinite; }
.rack-visual .led-c { animation: led-pulse 2.1s .9s infinite; }
.rack-visual .traffic { animation: traffic-flow 2.8s linear infinite; }
@keyframes traffic-flow { to { stroke-dashoffset: -40; } }

.route-line {
  stroke-dasharray: 6 7;
  animation: traffic-flow 3.2s linear infinite;
}
.map-dot-live { animation: led-pulse 2.4s infinite; }

/* Perf bars chart */
.perf-bar { transition: height .6s ease, y .6s ease; }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }

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

/* ==========================================================================
   Announcement bar
   ========================================================================== */
.announce {
  display: none;
  background: var(--grad-cta); color: var(--amber-ink);
  text-align: center; font-size: .86rem; font-weight: 600;
  padding: 8px var(--pad);
}
.announce.on { display: block; }
.announce a { color: inherit; text-decoration: underline; }

/* ==========================================================================
   Page-specific helpers
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding: 7px 0 7px 28px; color: var(--muted); }
.check-list li strong { color: var(--text); }
.check-list li::before {
  content: ''; position: absolute; left: 0; top: .85em;
  width: 14px; height: 14px;
  background: var(--amber);
  clip-path: polygon(14% 44%, 0 60%, 40% 100%, 100% 16%, 84% 2%, 38% 68%);
}

.kbd-line {
  font-family: var(--font-mono); font-size: .82rem; color: var(--muted);
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 10px 14px; overflow-x: auto; white-space: nowrap;
}
.kbd-line .prompt { color: var(--green); }

.support-channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .support-channels { grid-template-columns: 1fr; } }

/* ==========================================================================
   SEO / conversion additions (reuse existing tokens & components)
   ========================================================================== */

/* Clickable game tiles: a.game-card must read like the article version */
a.game-card { text-decoration: none; color: inherit; cursor: pointer; }
a.game-card:hover { text-decoration: none; }
a.game-card::after {
  content: '→'; position: absolute; right: 14px; bottom: 12px;
  font-family: var(--font-mono); color: var(--game-accent, var(--amber));
  opacity: 0; transform: translateX(-4px); transition: opacity .16s, transform .16s;
}
a.game-card:hover::after { opacity: 1; transform: none; }

/* Homepage intro line: keyword-rich positioning statement under the hero */
.hero-intro { border-bottom: 1px solid var(--line); background: var(--bg-raise); }
.hero-intro p { margin: 0; color: var(--muted); max-width: 90ch; padding-block: 20px; font-size: .98rem; }
.hero-intro strong { color: var(--text); font-weight: 600; }

/* Popular game quick-links row */
.game-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* Comparison table emphasis (reuses .datasheet) */
.datasheet td.col-cnx { color: var(--text); font-weight: 600; }
.datasheet td.col-cnx::before { content: '✓ '; color: var(--green); }
.datasheet td.col-budget { color: var(--faint); }
.datasheet td.col-budget::before { content: '✕ '; color: var(--faint); }

/* Testimonials (only rendered when real quotes exist in config) */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .testimonials-grid { grid-template-columns: 1fr; } }
.testimonial { display: flex; flex-direction: column; gap: 14px; }
.testimonial blockquote { margin: 0; font-size: 1.02rem; line-height: 1.55; }
.testimonial figcaption { color: var(--faint); font-family: var(--font-mono); font-size: .82rem; }
.testimonial figcaption span { color: var(--muted); }

/* Live upstream availability on plan cards */
.plan-avail { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.stock-badge {
  font-family: var(--font-mono); font-size: .64rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 100px; border: 1px solid; white-space: nowrap;
}
.stock-badge.in { color: var(--green); border-color: rgba(63, 224, 129, .4); background: rgba(63, 224, 129, .08); }
.stock-badge.order { color: var(--muted); border-color: var(--line-strong); }
.avail-regions { font-family: var(--font-mono); font-size: .72rem; color: var(--faint); }

/* ---- "Available now" live machine catalogue ---- */
.catalogue-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  margin: 26px 0 22px;
}
.catalogue-count {
  margin-left: auto; font-family: var(--font-mono); font-size: .78rem; color: var(--faint);
}
.catalogue-count strong { color: var(--green); font-weight: 600; }
@media (max-width: 620px) { .catalogue-count { margin-left: 0; } }

.machines-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
}
.machine-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px 20px 18px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.machine-card:hover {
  transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-2);
}
.machine-card::before {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: var(--grad-cta); opacity: .9;
}
.mc-top { display: flex; align-items: center; gap: 10px; }
.mc-region {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 600;
  letter-spacing: .12em; color: var(--amber);
}
.mc-top .stock-badge { margin-left: auto; }
.mc-cpu {
  font-family: var(--font-display); font-weight: 700; font-size: 1.08rem;
  line-height: 1.25; margin: 0; letter-spacing: -.01em;
}
.mc-specs { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.mc-spec {
  font-family: var(--font-mono); font-size: .76rem; color: var(--muted);
}
.mc-spec b { color: var(--text); font-weight: 600; }
.mc-foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line);
}
.mc-price { display: flex; align-items: baseline; gap: 3px; }
.mc-price .amount {
  font-family: var(--font-display); font-weight: 700; font-size: 1.45rem;
  letter-spacing: -.02em; color: var(--text);
}
.mc-price .unit { font-family: var(--font-mono); font-size: .72rem; color: var(--faint); }
.machine-card .btn { flex: none; }
.catalogue-empty { color: var(--muted); }

/* Live stock signal on product cards + region cards */
.card-stock { display: block; margin-top: -4px; }
.r-stock { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.r-stock-note { font-family: var(--font-mono); font-size: .7rem; color: var(--faint); }

/* Hosting feature comparison table (live from the reseller API) */
.cmp-table th[scope="row"] { color: var(--muted); font-weight: 500; text-align: left; }
.cmp-table td { text-align: center; }
.cmp-table thead th:not(:first-child) { text-align: center; color: var(--text); }
.cmp-table .cmp-group th {
  background: var(--bg-raise); color: var(--faint);
  font-family: var(--font-mono); font-size: .72rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; text-align: left;
}
.cmp-table .yes { color: var(--green); font-weight: 600; }
.cmp-table .no  { color: var(--faint); }

/* Footer game-hosting links row */
.footer-games {
  border-top: 1px solid var(--line); padding-top: 20px; margin-bottom: 22px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
}
.footer-games .fg-label {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--faint);
}
.footer-games a { color: var(--muted); font-size: .88rem; }
.footer-games a:hover { color: var(--amber); }
