/* =========================================================
   MeshCore Prescott — Hub stylesheet
   Brand: deep navy with luminous blue mesh links + red node accents.
   ========================================================= */

:root {
  /* Brand palette — derived from the v3 mesh logo */
  --navy-950: #050E20;
  --navy-900: #071429;
  --navy-800: #0B1D3A;
  --navy-700: #102A58;
  --navy-600: #163A7A;
  --blue-500: #236BCE;
  --blue-400: #3A87E6;
  --blue-300: #65B8FF;
  --blue-200: #9CD2FF;
  --blue-100: #DDF3FF;
  --red-500: #E83245;
  --red-400: #FF5566;
  --red-300: #FF8E99;
  --ink-100: #F2FBFF;
  --ink-200: #D8E6F4;
  --ink-300: #A6B7CD;
  --ink-400: #6F809A;
  --ink-500: #4A5A75;

  --bg: var(--navy-900);
  --bg-elevated: rgba(255, 255, 255, 0.035);
  --bg-card: linear-gradient(160deg, rgba(35, 107, 206, 0.07), rgba(7, 20, 41, 0.55));
  --border: rgba(101, 184, 255, 0.16);
  --border-strong: rgba(101, 184, 255, 0.32);

  --text: var(--ink-100);
  --text-muted: var(--ink-300);
  --text-faint: var(--ink-400);

  --accent: var(--blue-300);
  --accent-strong: var(--blue-400);
  --hot: var(--red-500);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --font-display: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --container: 1180px;
  --gap: clamp(16px, 2.4vw, 28px);
  --section-y: clamp(64px, 8vw, 112px);

  color-scheme: dark;
}

/* Light mode: subtle, opt-in. Site is dark by default to match brand. */
@media (prefers-color-scheme: light) {
  :root.allow-light {
    --bg: #F4F7FB;
    --bg-elevated: #FFFFFF;
    --bg-card: linear-gradient(160deg, #FFFFFF, #EDF3FB);
    --border: rgba(16, 42, 88, 0.14);
    --border-strong: rgba(16, 42, 88, 0.28);
    --text: #0B1D3A;
    --text-muted: #36507A;
    --text-faint: #6B7E9B;
    --accent: #1F5FB8;
    --accent-strong: #0F4A98;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(900px 600px at 110% -10%, rgba(35, 107, 206, 0.18), transparent 60%),
    radial-gradient(700px 500px at -10% 0%, rgba(232, 50, 69, 0.10), transparent 60%);
  background-attachment: fixed;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.005em; }

p { margin: 0 0 1em; color: var(--text-muted); }

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(101, 184, 255, 0.35);
  transition: color .15s ease, border-color .15s ease;
}
a:hover { color: var(--ink-100); border-bottom-color: var(--ink-100); }

::selection { background: rgba(101, 184, 255, 0.35); color: var(--ink-100); }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

section { padding: var(--section-y) 0; position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-300);
  padding: 6px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(35, 107, 206, 0.08);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue-300);
  box-shadow: 0 0 0 4px rgba(101, 184, 255, 0.18);
}

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  color: var(--ink-200);
  max-width: 62ch;
  line-height: 1.6;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(5, 14, 32, 0.85), rgba(5, 14, 32, 0.55));
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--text);
  border: none;
  font-weight: 600;
}
.brand:hover { color: var(--text); }
.brand .brand-mark {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--navy-950);
  display: grid; place-items: center;
  border: 1px solid var(--border-strong);
  overflow: hidden;
}
.brand .brand-mark img { width: 100%; height: 100%; }
.brand .brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 1.02rem;
}
.brand .brand-text span {
  color: var(--red-400);
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  font-weight: 700;
  margin-left: 8px;
  text-transform: uppercase;
}

.nav { display: flex; gap: 22px; align-items: center; }
.nav a {
  font-size: 0.92rem;
  color: var(--ink-200);
  border: none;
  font-weight: 500;
}
.nav a:hover { color: var(--ink-100); }
.nav a { white-space: nowrap; }
@media (max-width: 1240px) {
  .nav { gap: 8px 16px; flex-wrap: wrap; justify-content: flex-end; }
  .nav a { font-size: 0.86rem; }
}
@media (max-width: 720px) {
  .nav { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(72px, 9vw, 128px);
  padding-bottom: clamp(60px, 7vw, 96px);
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
@media (max-width: 880px) {
  .hero .container { grid-template-columns: 1fr; }
}
.hero h1 .accent { color: var(--blue-300); }
.hero h1 .hot { color: var(--red-400); }
.hero .cta-row {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 28px;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary {
  background: var(--blue-300);
  color: var(--navy-950);
  border-bottom: none;
}
.btn-primary:hover { background: var(--ink-100); color: var(--navy-950); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink-100);
  border-color: var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: rgba(101, 184, 255, 0.08); color: var(--ink-100); }

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 20px 28px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.hero-meta div { display: flex; flex-direction: column; gap: 2px; }
.hero-meta div strong {
  color: var(--ink-100);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

/* Hero visual — logo with breathing radio arcs */
.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  margin-left: auto;
  justify-self: end;
}
.hero-visual::before, .hero-visual::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(101, 184, 255, 0.18);
  pointer-events: none;
}
.hero-visual::before { transform: scale(1.1); animation: pulse 6s ease-out infinite; }
.hero-visual::after { transform: scale(1.3); animation: pulse 6s ease-out 2s infinite; border-color: rgba(232, 50, 69, 0.16); }
@keyframes pulse {
  0%   { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(1.55); opacity: 0; }
}
.hero-visual .logo-frame {
  position: absolute; inset: 8%;
  border-radius: 30px;
  background: linear-gradient(160deg, #0D2354, #061533 80%);
  display: grid; place-items: center;
  box-shadow:
    0 30px 80px -30px rgba(35, 107, 206, 0.55),
    0 0 0 1px rgba(101, 184, 255, 0.22) inset;
  overflow: hidden;
}
.hero-visual .logo-frame img { width: 88%; height: auto; }
@media (prefers-reduced-motion: reduce) {
  .hero-visual::before, .hero-visual::after { animation: none; opacity: 0.4; }
}

/* ---------- Announcement ---------- */
.announcement {
  padding: clamp(28px, 4vw, 44px) 0 0;
}
.announcement-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 32px);
  align-items: center;
  background:
    linear-gradient(135deg, rgba(232, 50, 69, 0.14), rgba(101, 184, 255, 0.08)),
    var(--bg-card);
  border: 1px solid rgba(232, 50, 69, 0.38);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: clamp(20px, 3vw, 30px);
}
.announcement-card + .announcement-card {
  margin-top: 14px;
}
@media (max-width: 760px) {
  .announcement-card { grid-template-columns: 1fr; }
}
.announcement-label {
  width: fit-content;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-300);
  background: rgba(232, 50, 69, 0.10);
  border: 1px solid rgba(232, 50, 69, 0.30);
  border-radius: 999px;
  padding: 9px 12px;
}
.announcement-card h2 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
}
.announcement-card p {
  margin: 0;
  max-width: 78ch;
  color: var(--ink-200);
}

/* ---------- Section heading ---------- */
.section-head {
  max-width: 720px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head .eyebrow { margin-bottom: 16px; }

/* ---------- Coverage ---------- */
.coverage-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(20px, 3vw, 36px);
  align-items: stretch;
}
@media (max-width: 880px) { .coverage-grid { grid-template-columns: 1fr; } }

.coverage-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 32px);
}
.coverage-card ul {
  margin: 0; padding: 0; list-style: none;
  display: grid; gap: 14px;
}
.coverage-card li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.95rem;
  color: var(--ink-200);
}
.coverage-card li::before {
  content: "";
  width: 12px; height: 12px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--blue-300);
  box-shadow: 0 0 0 4px rgba(101, 184, 255, 0.16);
  grid-column: 1;
}

/* Terrain SVG decorative */
.terrain-card {
  position: relative;
  background:
    radial-gradient(60% 80% at 50% 100%, rgba(35, 107, 206, 0.28), transparent 70%),
    linear-gradient(180deg, #0A1D40 0%, #050E20 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 280px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px;
}
.terrain-card svg { width: 100%; height: auto; }
.terrain-card .terrain-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-300);
  margin-top: 16px;
}

/* ---------- Join steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap);
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .2s ease, transform .2s ease;
}
.step:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.step .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--blue-300);
  text-transform: uppercase;
}
.step h3 { margin-top: 8px; }
.step p { font-size: 0.94rem; margin: 0; }
.step code {
  color: var(--ink-100);
  background: rgba(101, 184, 255, 0.10);
  border: 1px solid rgba(101, 184, 255, 0.22);
  border-radius: 8px;
  padding: 0.1em 0.38em;
}

/* ---------- Hardware ---------- */
.hw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
}
.hw-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .2s ease, transform .2s ease;
}
.hw-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.hw-card .hw-head {
  display: flex; align-items: center; gap: 12px;
}
.hw-card .hw-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(101, 184, 255, 0.10);
  border: 1px solid var(--border-strong);
  color: var(--blue-300);
}
.hw-card h3 { margin: 0; font-size: 1.05rem; }
.hw-card .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-300);
}
.hw-card p { font-size: 0.92rem; margin: 0; }
.hw-card .hw-links {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  display: flex; flex-wrap: wrap; gap: 14px;
  font-size: 0.85rem;
}
.hw-card .hw-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.caveat {
  margin-top: 28px;
  padding: 16px 18px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--ink-300);
  background: rgba(232, 50, 69, 0.04);
}
.caveat strong { color: var(--red-400); }

/* ---------- PRCBot ---------- */
.bot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: var(--gap);
}
@media (max-width: 820px) { .bot-grid { grid-template-columns: 1fr; } }
.bot-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 32px);
  min-height: 210px;
}
.bot-card::after {
  content: "";
  position: absolute;
  inset: auto -60px -90px auto;
  width: 210px;
  height: 210px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(101, 184, 255, 0.18), transparent 65%);
  pointer-events: none;
}
.bot-card-primary {
  background:
    linear-gradient(135deg, rgba(101, 184, 255, 0.16), rgba(232, 50, 69, 0.08)),
    var(--bg-card);
  border-color: var(--border-strong);
}
.bot-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-300);
  margin-bottom: 12px;
}
.bot-card h3 {
  position: relative;
  margin: 0 0 12px;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}
.bot-card p {
  position: relative;
  max-width: 58ch;
  margin: 0;
}
.bot-card code {
  color: var(--ink-100);
  background: rgba(101, 184, 255, 0.10);
  border: 1px solid rgba(101, 184, 255, 0.22);
  border-radius: 8px;
  padding: 0.12em 0.42em;
}

/* ---------- Status ---------- */
.status-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.status-summary .stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.status-summary .stat .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-300);
}
.status-summary .stat .val {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ink-100);
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  margin-top: 4px;
  font-variant-numeric: tabular-nums lining-nums;
}
.status-summary .stat .sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.node-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gap);
}
.node {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex; flex-direction: column; gap: 8px;
}
.node header {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
}
.node h3 { margin: 0; font-size: 1.02rem; line-height: 1.3; }
.node .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-300);
}
.node .notes { font-size: 0.92rem; color: var(--ink-200); margin: 6px 0 0; }
.node .grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.node .grid span { color: var(--ink-200); }
.node .radio-settings {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}
.node .radio-settings-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--blue-300);
  margin-bottom: 8px;
}
.node .radio-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.node .radio-settings-grid div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: baseline;
}
.node .radio-settings-grid span {
  color: var(--ink-100);
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
}
@media (max-width: 420px) {
  .node .grid,
  .node .radio-settings-grid { grid-template-columns: 1fr; }
}

/* Status pills */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid transparent;
}
.pill::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}
.pill.online      { color: #6DDF7A; background: rgba(63, 196, 89, 0.10); border-color: rgba(109, 223, 122, 0.35); }
.pill.testing     { color: #FFD37A; background: rgba(255, 191, 79, 0.10); border-color: rgba(255, 191, 79, 0.35); }
.pill.planned     { color: var(--blue-300); background: rgba(101, 184, 255, 0.08); border-color: rgba(101, 184, 255, 0.35); }
.pill.onboarding  { color: #C8A7FF; background: rgba(178, 132, 255, 0.10); border-color: rgba(178, 132, 255, 0.35); }
.pill.offline     { color: var(--red-300); background: rgba(232, 50, 69, 0.08); border-color: rgba(232, 50, 69, 0.35); }
.pill.unknown     { color: var(--ink-300); background: rgba(255, 255, 255, 0.04); border-color: var(--border-strong); }

.pill.online::before {
  animation: blip 2.4s ease-in-out infinite;
}
@keyframes blip {
  0%, 100% { box-shadow: 0 0 0 0 rgba(109, 223, 122, 0.5); }
  50%      { box-shadow: 0 0 0 6px rgba(109, 223, 122, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .pill.online::before { animation: none; }
}

.last-updated {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-300);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.status-empty, .status-error {
  padding: 28px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  text-align: center;
}
.status-error { color: var(--red-300); }
.status-skeleton {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gap);
}
.status-skeleton .skel {
  height: 180px;
  border-radius: var(--radius);
  background: linear-gradient(110deg, rgba(255,255,255,0.03) 8%, rgba(255,255,255,0.06) 18%, rgba(255,255,255,0.03) 33%);
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
  border: 1px solid var(--border);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .status-skeleton .skel { animation: none; } }

/* ---------- CTA ---------- */
.cta {
  margin-top: var(--section-y);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(35, 107, 206, 0.22), transparent 60%),
    radial-gradient(60% 100% at 0% 100%, rgba(232, 50, 69, 0.18), transparent 60%),
    linear-gradient(160deg, #0B1D3A, #050E20);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(24px, 3vw, 40px);
  align-items: center;
}
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }
.cta h2 { margin: 0; }
.cta .channel-card {
  background: rgba(5, 14, 32, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-200);
  display: grid; gap: 8px;
}
.cta .channel-card .row {
  display: flex; justify-content: space-between;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 6px;
}
.cta .channel-card .row:last-child { border: none; padding-bottom: 0; }
.cta .channel-card .row strong { color: var(--ink-100); font-weight: 500; }
.cta .channel-card a { color: var(--accent); border-bottom: 1px solid rgba(99, 183, 255, 0.35); }
.cta .channel-card a:hover { color: var(--ink-100); border-bottom-color: var(--ink-100); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: var(--section-y);
  padding: 40px 0 64px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.site-footer .container {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 760px) { .site-footer .container { grid-template-columns: 1fr; } }
.site-footer h4 {
  color: var(--ink-100);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink-200); border: none; }
.site-footer a:hover { color: var(--ink-100); border-bottom: 1px solid var(--ink-100); }
.colophon {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* ---------- Utility ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
:focus-visible {
  outline: 2px solid var(--blue-300);
  outline-offset: 3px;
  border-radius: 6px;
}
