/* ==========================================================================
   Moon5 — design tokens
   ========================================================================== */
:root {
  --color-bg: #f6f7fb;
  --color-bg-alt: #ffffff;
  --color-bg-elev: #ffffff;
  --color-border: #e1e5ee;
  --color-text: #0d1322;
  --color-text-muted: #4a5366;
  --color-text-dim: #768196;
  --color-accent: #3b5bdb;
  --color-accent-hover: #2a44b3;
  --color-accent-soft: rgba(59, 91, 219, 0.10);
  --color-accent-glow: rgba(59, 91, 219, 0.18);
  --color-success: #0a9068;
  --color-danger: #c0392b;
  --color-code-bg: #0d1322;
  --color-code-text: #e6e8ee;
  --color-code-prompt: #3ddc97;
  --color-code-comment: #5b6478;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(13, 19, 34, 0.05);
  --shadow-md: 0 8px 24px rgba(13, 19, 34, 0.08);
  --shadow-lg: 0 24px 48px -12px rgba(13, 19, 34, 0.12);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
  --container-max: 1140px;
  --z-nav: 50;
  --focus-ring: 0 0 0 3px rgba(59, 91, 219, 0.45);
}

:root[data-theme="dark"] {
  --color-bg: #0b0d12;
  --color-bg-alt: #0f1219;
  --color-bg-elev: #131722;
  --color-border: #222a3a;
  --color-text: #e6e8ee;
  --color-text-muted: #9aa3b8;
  --color-text-dim: #5b6478;
  --color-accent: #7c9cff;
  --color-accent-hover: #95afff;
  --color-accent-soft: rgba(124, 156, 255, 0.14);
  --color-accent-glow: rgba(124, 156, 255, 0.22);
  --color-success: #3ddc97;
  --color-danger: #ff6b6b;
  --color-code-bg: #060810;
  --color-code-text: #e6e8ee;
  --color-code-prompt: #3ddc97;
  --color-code-comment: #5b6478;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.5);
  --focus-ring: 0 0 0 3px rgba(124, 156, 255, 0.55);
}

:root { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

/* ==========================================================================
   Base reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body, h1, h2, h3, h4, h5, h6,
p, ul, ol, dl, dd, figure, blockquote, pre {
  margin: 0;
}

ul, ol {
  padding: 0;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 150ms ease;
}
a:hover { color: var(--color-accent-hover); }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

p { color: var(--color-text); }

small { font-size: 0.85em; color: var(--color-text-muted); }

code, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

pre {
  font-family: var(--font-mono);
  white-space: pre;
}

/* ==========================================================================
   Focus
   ========================================================================== */
:focus { outline: none; }
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Skip link
   ========================================================================== */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  z-index: 100;
  padding: 10px 16px;
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 500;
  text-decoration: none;
  transition: top 150ms ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: var(--space-4);
  color: #fff;
}

/* ==========================================================================
   Site header / nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 64px;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--color-text); }

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--color-accent);
  flex-shrink: 0;
}
.brand__mark svg { width: 28px; height: 28px; }

.brand__wordmark {
  display: inline-block;
}

/* Mobile menu toggle (hamburger) */
.site-header__menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text);
  transition: background 150ms ease;
}
.site-header__menu-toggle:hover {
  background: var(--color-bg-alt);
}
.site-header__menu-bars {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.site-header__menu-bars::before,
.site-header__menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.site-header__menu-bars::before { top: -6px; }
.site-header__menu-bars::after  { top:  6px; }

/* Site nav */
.site-nav > ul {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
}
.site-nav a {
  display: inline-block;
  padding: 8px 12px;
  color: var(--color-text-muted);
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease;
}
.site-nav a:hover {
  background: var(--color-bg-alt);
  color: var(--color-text);
}

/* Header actions */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Theme toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-text-muted);
  transition: background 150ms ease, color 150ms ease;
}
.theme-toggle:hover {
  background: var(--color-bg-alt);
  color: var(--color-text);
}
.theme-toggle__icon {
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.theme-toggle__icon svg {
  width: 20px;
  height: 20px;
}
[data-theme="dark"] .theme-toggle__icon--sun  { display: inline-flex; }
[data-theme="dark"] .theme-toggle__icon--moon { display: none; }
[data-theme="light"] .theme-toggle__icon--sun  { display: none; }
[data-theme="light"] .theme-toggle__icon--moon { display: inline-flex; }
/* Fallback if no data-theme attribute is set */
:root:not([data-theme]) .theme-toggle__icon--sun { display: inline-flex; }
:root:not([data-theme]) .theme-toggle__icon--moon { display: none; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.2;
  border: 1px solid transparent;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease,
              transform 150ms ease, box-shadow 150ms ease;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn--primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn--ghost:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-accent);
  color: var(--color-text);
}

.btn--sm { padding: 6px 12px; font-size: 0.85rem; border-radius: 8px; }
.btn--lg { padding: 14px 24px; font-size: 1.05rem; border-radius: 12px; }
.btn--block { display: flex; width: 100%; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding-block: clamp(5rem, 10vh, 8rem);
}
.hero__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.hero__copy { min-width: 0; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-bottom: var(--space-5);
}

.hero__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  flex-shrink: 0;
}

.hero__title {
  margin: 0;
}
.hero__lede {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  max-width: 540px;
  margin-block: 1.5rem;
  line-height: 1.6;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block: 2rem;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  margin-top: 2rem;
}
.hero__chips li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--color-bg-elev);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.hero__art {
  position: relative;
  min-width: 0;
}
.hero__art-svg {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
}

/* ==========================================================================
   Trusted strip
   ========================================================================== */
.trusted {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding-block: 2.5rem;
}
.trusted__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}
.trusted__label {
  text-align: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-dim);
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.trusted__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  list-style: none;
  padding: 0;
}
.trusted__row li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  color: var(--color-text-dim);
  transition: opacity 150ms ease;
}
.trusted__row li:hover { opacity: 0.9; }
.trusted__row svg {
  height: 28px;
  width: auto;
  fill: currentColor;
}

/* ==========================================================================
   Section primitives
   ========================================================================== */
.section {
  padding-block: clamp(4rem, 8vh, 6rem);
}
.section--alt { background: var(--color-bg-alt); }

.section__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.section__head {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 3rem;
}
.section__eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-dim);
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.section__heading {
  margin: 0;
}
.section__subheading {
  color: var(--color-text-muted);
  margin-top: 1rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ==========================================================================
   Features
   ========================================================================== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  list-style: none;
  padding: 0;
}
.feature-card {
  background: var(--color-bg-elev);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.feature-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  margin-bottom: 1rem;
}
.feature-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}
.feature-card h3 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   Network
   ========================================================================== */
.network {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: center;
}
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 0;
}
.stat {
  padding: 1rem 1.25rem;
  border-left: 2px solid var(--color-accent);
  background: var(--color-bg-elev);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.stat__value {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}
.stat__unit {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
}
.stat__label {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 4px 0 0;
}

.network__map {
  margin: 0;
  aspect-ratio: 800 / 360;
  background: var(--color-bg-elev);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.network__map svg {
  width: 100%;
  height: 100%;
  display: block;
}

.network__status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 1rem 0 0;
}
.network__status a { color: var(--color-accent); }
.network__status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  flex-shrink: 0;
}
.network__status-dot--offline,
.network__status.is-offline .network__status-dot { background: var(--color-danger); }

/* ==========================================================================
   Plans / pricing
   ========================================================================== */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  align-items: stretch;
}
.plan {
  position: relative;
  background: var(--color-bg-elev);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}
.plan--featured {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}
.plan__badge {
  position: absolute;
  top: -12px;
  left: 2rem;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.plan__name { margin: 0; font-size: 1.25rem; }
.plan__tagline {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}
.plan__price {
  margin-block: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.plan__amount {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  line-height: 1;
}
.plan__period {
  color: var(--color-text-muted);
  font-size: 1rem;
  font-weight: 500;
}
.plan__features {
  list-style: none;
  padding: 0;
  margin-block: 1.5rem 2rem;
  flex-grow: 1;
}
.plan__features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  line-height: 1.4;
}
.plan__features li:last-child { border-bottom: 0; }
.plan__features li::before {
  content: "✓";
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.9em;
  flex-shrink: 0;
  width: 1em;
}

/* ==========================================================================
   Steps / get started
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.step__num {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-accent);
  opacity: 0.4;
  line-height: 1;
}
.step__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.step__body h3 { margin: 0; font-size: 1.1rem; }
.step__body p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Code blocks */
.code-block {
  position: relative;
  padding-top: 2.5rem;
  margin: 0;
  background: var(--color-code-bg);
  color: var(--color-code-text);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding-inline: 1.5rem;
  padding-bottom: 1.25rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  line-height: 1.7;
  border: 1px solid var(--color-border);
}
.code-block code {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: transparent;
  padding: 0;
  display: block;
}
.c-line {
  display: block;
}
.c-prompt  { color: var(--color-code-prompt); font-weight: 600; }
.c-out     { color: var(--color-text-muted); }
.c-comment { color: var(--color-code-comment); font-style: italic; }
.code-block em {
  color: var(--color-text-dim);
  font-style: italic;
}

/* Copy button (added by another subagent) */
.code-block__copy {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--color-bg-elev);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 0.75rem;
  font-family: var(--font-sans);
  cursor: pointer;
  opacity: 0;
  transition: opacity 150ms ease;
}
.code-block:hover .code-block__copy,
.code-block__copy:focus-visible { opacity: 1; }
.code-block.is-copied .code-block__copy {
  background: var(--color-success);
  color: #fff;
  border-color: var(--color-success);
  opacity: 1;
}

.steps__docs {
  margin-top: 2rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 800px;
  margin-inline: auto;
}
.faq details {
  background: var(--color-bg-elev);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 150ms ease;
}
.faq details[open] {
  border-color: var(--color-accent);
}
.faq summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--color-text);
  font-size: 1rem;
  transition: color 150ms ease;
}
.faq summary:hover { color: var(--color-accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--color-text-dim);
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 150ms ease;
  flex-shrink: 0;
}
.faq details[open] summary::after {
  content: "−";
  color: var(--color-accent);
}
.faq__body {
  padding: 0 1.25rem 1.25rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}
.faq__body p { margin: 0; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  background: var(--color-bg-alt);
  padding-block: clamp(4rem, 8vh, 6rem);
  text-align: center;
  border-top: 1px solid var(--color-border);
}
.cta-band__inner {
  max-width: 720px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}
.cta-band__heading {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}
.cta-band__lede {
  color: var(--color-text-muted);
  margin-block: 1rem 2rem;
  font-size: 1.05rem;
  line-height: 1.6;
}
.cta-band__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding-block: 4rem 2rem;
}
.site-footer__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 3rem;
}
.site-footer__brand {
  display: flex;
  flex-direction: column;
}
.brand--footer { /* same as .brand; explicit for selector coverage */ }
.site-footer__tagline {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 320px;
  line-height: 1.6;
}
.site-footer__nav {
  display: contents;
}
.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.site-footer__heading {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-dim);
  margin: 0 0 0.75rem;
  font-weight: 600;
}
.site-footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.site-footer__col a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 150ms ease;
}
.site-footer__col a:hover { color: var(--color-accent); }

.site-footer__base {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  margin-top: 3rem;
  border-top: 1px solid var(--color-border);
  gap: 1rem;
  flex-wrap: wrap;
}
.site-footer__legal {
  color: var(--color-text-dim);
  font-size: 0.85rem;
  margin: 0;
}
.site-footer__legal small { color: inherit; }
.site-footer__status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0;
}
.site-footer__status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  flex-shrink: 0;
}
.site-footer__social {
  display: flex;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--color-text-muted);
  transition: color 150ms ease, background 150ms ease;
}
.site-footer__social a:hover {
  color: var(--color-accent);
  background: var(--color-bg-elev);
}
.site-footer__social svg { width: 20px; height: 20px; }

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes pulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.3); }
}
.hero__dot,
.network__status-dot,
.site-footer__status-dot {
  animation: pulse 2s ease-in-out infinite;
  transform-origin: center;
}

/* ==========================================================================
   Responsive — tablet
   ========================================================================== */
@media (max-width: 960px) {
  .site-header__menu-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem clamp(1rem, 4vw, 2rem);
    box-shadow: var(--shadow-md);
  }
  .site-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .site-nav a {
    display: block;
    padding: 10px 12px;
  }
  .site-header[data-mobile-open] .site-nav { display: block; }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .hero__art { display: none; }

  .features { grid-template-columns: repeat(2, 1fr); }

  .network {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .network__map { order: -1; }

  .plans { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .plan--featured { order: -1; }

  .steps { grid-template-columns: 1fr; gap: 2.5rem; }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .site-footer__nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* ==========================================================================
   Responsive — mobile
   ========================================================================== */
@media (max-width: 640px) {
  .features { grid-template-columns: 1fr; }

  .stats { grid-template-columns: 1fr; }

  .hero__title { font-size: clamp(2rem, 8vw, 2.5rem); }

  .site-footer__nav { grid-template-columns: 1fr; gap: 1.5rem; }
  .site-footer__base {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .site-footer__status { justify-content: center; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Print
   ========================================================================== */
@media print {
  .site-header,
  .site-header__menu-toggle,
  .theme-toggle,
  .hero__art,
  .cta-band,
  .site-footer__base,
  .site-footer__social { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
  .section { padding-block: 1rem; }
  .feature-card,
  .plan,
  .stat { break-inside: avoid; }
}
