*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

.site-body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(217, 70, 239, 0.28), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(34, 211, 238, 0.14), transparent 50%),
    radial-gradient(ellipse 60% 40% at 0% 80%, rgba(217, 70, 239, 0.12), transparent 45%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-base) 40%, #12061f 100%);
  background-attachment: fixed;
}

html.grid-boot-lock,
html.grid-boot-lock body {
  overflow: hidden;
  height: 100%;
}

.grid-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  color: var(--text);
  pointer-events: auto;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.grid-loader-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.grid-loader-bar {
  display: flex;
  gap: 3px;
  align-items: center;
}

.grid-loader-segment {
  width: 9px;
  height: 9px;
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.12s ease;
}

.grid-loader-segment.is-lit {
  background: #ffffff;
}

body:not(.effects-ready) .site-header,
body:not(.effects-ready) .site-main,
body:not(.effects-ready) .site-footer,
body:not(.effects-ready) .cyber-city-root,
body:not(.effects-ready) .grid-corridor-hud,
body:not(.effects-ready) .floating-cta,
body:not(.effects-ready) .scanline-overlay {
  visibility: hidden;
}

.grid-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.grid-loader-pct {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.grid-loader-label {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.grid-corridor-hud {
  position: fixed;
  left: 1rem;
  top: 5.5rem;
  z-index: 35;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: min(16rem, 42vw);
  padding: 0.7rem 0.85rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(217, 70, 239, 0.2);
  background: rgba(5, 1, 13, 0.74);
  backdrop-filter: blur(8px);
  pointer-events: auto;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

body:not(.effects-ready) .grid-corridor-hud {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.grid-corridor-hud-kicker {
  margin: 0;
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.grid-corridor-hud-sector {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--glow-cyan);
}

.grid-corridor-hud-context {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.68);
}

.grid-corridor-hud-action {
  margin-top: 0.15rem;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: #22d3ee;
  text-decoration: none;
}

.grid-corridor-hud-action:hover {
  color: #d946ef;
}

.grid-corridor-hud-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.grid-corridor-hud-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.72);
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}

.grid-corridor-hud-chip:hover,
.grid-corridor-hud-chip.is-active {
  border-color: rgba(34, 211, 238, 0.45);
  color: #a5f3fc;
  background: rgba(34, 211, 238, 0.08);
}

.grid-corridor-hud-chip--deck {
  border-color: rgba(217, 70, 239, 0.35);
}

@media (max-width: 720px) {
  .grid-corridor-hud {
    top: auto;
    bottom: 4.5rem;
    max-width: calc(100vw - 2rem);
  }
}

.cyber-city-root {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #000000;
}

body.has-grid-layer .site-main {
  background: transparent;
}

/* Homepage scroll runway — drives corridor camera through all signs. */
body.has-corridor-home .site-main {
  padding-bottom: min(240vh, 3000px);
}

.cyber-city-root::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(220, 230, 255, var(--lightning-flash, 0));
  mix-blend-mode: screen;
  transition: background 0.08s ease-out;
}

.cyber-city-static {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
}

/* Static poster when WebGL is unavailable or corridor GLBs fail after boot. */
body.corridor-load-failed.effects-ready .cyber-city-static,
body[data-grid-mode="static"].effects-ready .cyber-city-static {
  opacity: 1;
  visibility: visible;
}

.cyber-city-static-poster,
.cyber-city-static-poster-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

body[data-grid-mode="webgl"]:not(.corridor-load-failed) .cyber-city-static {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.corridor-load-failed[data-grid-mode="webgl"] .cyber-city-webgl {
  visibility: hidden;
  pointer-events: none;
}

.cyber-city-webgl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  z-index: 2;
  isolation: isolate;
}

/**
 * Minimal edge feather — inner vignette + inset halo so the viewport
 * dissolves into black instead of reading as a hard rectangle.
 * Intensity follows --corridor-edge-feather (scroll-linked).
 */
body.has-grid-layer .cyber-city-webgl::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: var(--corridor-edge-feather, 0.48);
  background: radial-gradient(
    ellipse 94% 88% at 50% 46%,
    transparent 52%,
    rgba(0, 0, 0, 0.42) 78%,
    rgba(0, 0, 0, 0.88) 100%
  );
  box-shadow: inset 0 0 120px 56px rgba(0, 0, 0, 0.22);
}

@media (prefers-reduced-motion: reduce) {
  body.has-grid-layer .cyber-city-webgl::after {
    opacity: 0.42;
  }
}

body[data-grid-mode="webgl"] .cyber-city-webgl {
  pointer-events: auto;
}

body:not([data-grid-mode="webgl"]) .cyber-city-webgl {
  visibility: hidden;
  pointer-events: none;
}

.cyber-city-root canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-height: 100vh;
  min-height: 100dvh;
}

body[data-grid-mode="webgl"] .site-main {
  pointer-events: none;
}

body[data-grid-mode="webgl"] .site-main a,
body[data-grid-mode="webgl"] .site-main button,
body[data-grid-mode="webgl"] .site-main input,
body[data-grid-mode="webgl"] .site-main select,
body[data-grid-mode="webgl"] .site-main textarea,
body[data-grid-mode="webgl"] .site-main [tabindex]:not([tabindex="-1"]),
body[data-grid-mode="webgl"] .site-main .neon-billboard,
body[data-grid-mode="webgl"] .floating-cta {
  pointer-events: auto;
}

.cyber-city-static-vignette {
  position: absolute;
  inset: 0;
  opacity: var(--corridor-edge-feather, 0.48);
  background: radial-gradient(
    ellipse 94% 88% at 50% 46%,
    transparent 52%,
    rgba(0, 0, 0, 0.42) 78%,
    rgba(0, 0, 0, 0.88) 100%
  );
  box-shadow: inset 0 0 120px 56px rgba(0, 0, 0, 0.22);
  pointer-events: none;
}

body.has-grid-layer {
  background: #000000 !important;
  background-image: none !important;
  background-attachment: scroll;
}

body.has-grid-layer.site-body::before {
  display: none !important;
}

/* Synthwave hero deco must not compete with the corridor — hide entirely on grid routes. */
body.has-grid-layer .hero-stars,
body.has-grid-layer .hero-sun,
body.has-grid-layer .hero-horizon,
body.has-grid-layer .hero-grid-floor,
body.has-grid-layer .hero-glow,
body.has-cyber-city .hero-stars,
body.has-cyber-city .hero-sun,
body.has-cyber-city .hero-horizon,
body.has-cyber-city .hero-grid-floor,
body.has-cyber-city .hero-glow {
  display: none !important;
  animation: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

body.has-grid-layer .hero--corridor,
body.has-cyber-city .hero--corridor {
  background: transparent;
  min-height: min(42vh, 28rem);
  padding-bottom: 1.5rem;
  pointer-events: none;
}

body.has-grid-layer .hero--corridor .hero-content,
body.has-cyber-city .hero--corridor .hero-content {
  pointer-events: auto;
}

body[data-grid-mode="webgl"] .site-main {
  background: transparent !important;
}

body[data-grid-mode="webgl"] .scanline-overlay {
  opacity: 0.12;
}

body.has-grid-layer .scanline-overlay,
body.has-cyber-city .scanline-overlay {
  opacity: 0.45;
  mix-blend-mode: screen;
}

body.has-grid-layer .vision-card,
body.has-grid-layer .content-card,
body.has-grid-layer .price-card,
body.has-grid-layer .deck-card,
body.has-grid-layer .district-teaser,
body.has-grid-layer .manifesto-strip,
body.has-grid-layer .signal-pulse,
body.has-grid-layer .faq-item,
body.has-grid-layer .page-hero,
body.has-cyber-city .vision-card,
body.has-cyber-city .content-card,
body.has-cyber-city .price-card,
body.has-cyber-city .deck-card,
body.has-cyber-city .district-teaser,
body.has-cyber-city .manifesto-strip,
body.has-cyber-city .signal-pulse,
body.has-cyber-city .faq-item,
body.has-cyber-city .page-hero {
  background: rgba(13, 2, 33, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body.has-grid-layer .vision-card,
body.has-cyber-city .vision-card {
  border-color: rgba(34, 211, 238, 0.22);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 16px 48px rgba(0, 0, 0, 0.35);
}

/* Marketing buttons — kill default white UA chrome */
button.manifesto-chip,
button.neon-billboard-face,
button.district-chip {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  font: inherit;
  line-height: 1.3;
  text-align: center;
  box-sizing: border-box;
}

/* HTML + 3D neon billboards */
.neon-billboard {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  min-width: 0;
}

.neon-billboard-face {
  position: relative;
  width: 100%;
  border: 2px solid rgba(34, 211, 238, 0.45);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  box-shadow:
    0 0 12px rgba(217, 70, 239, 0.25),
    inset 0 0 18px rgba(34, 211, 238, 0.08);
  transition:
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    filter 0.3s ease;
}

.neon-billboard--primary .neon-billboard-face {
  border-color: rgba(217, 70, 239, 0.55);
  box-shadow:
    0 0 16px rgba(217, 70, 239, 0.35),
    0 0 32px rgba(34, 211, 238, 0.15),
    inset 0 0 20px rgba(255, 255, 255, 0.06);
}

.neon-billboard.is-lit .neon-billboard-face,
.neon-billboard.is-open .neon-billboard-face {
  border-color: var(--magenta-bright);
  box-shadow:
    0 0 28px rgba(217, 70, 239, 0.55),
    0 0 48px rgba(34, 211, 238, 0.28),
    inset 0 0 28px rgba(255, 255, 255, 0.14);
}

.neon-billboard-panel {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: rgba(5, 1, 13, 0.88);
  text-align: left;
  max-width: 18rem;
  box-shadow: 0 0 32px rgba(217, 70, 239, 0.2);
}

.neon-billboard-panel p {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.neon-billboard-panel .btn {
  margin-right: 0.5rem;
}

.neon-billboard-dismiss {
  appearance: none;
  font: inherit;
  cursor: pointer;
  margin-top: 0.35rem;
  padding: 0.25rem 0.5rem;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 0.75rem;
  text-decoration: underline;
}

.neon-billboard--chip .neon-billboard-face,
.neon-billboard--pillar .neon-billboard-face {
  cursor: pointer;
}

.neon-billboard-panel--chip,
.neon-billboard-panel--pillar {
  position: absolute;
  z-index: 5;
  top: calc(100% + 0.4rem);
  left: 50%;
  transform: translateX(-50%);
  width: min(16rem, calc(100vw - 2.5rem));
}

.neon-billboard--chip.is-open,
.neon-billboard--pillar.is-open {
  z-index: 6;
}

/* Homepage lore fold — districts + manifesto */
.homepage-lore-fold {
  display: grid;
  gap: var(--section-gap);
  max-width: var(--content-max);
  margin: var(--section-gap) auto 0;
  padding: 0 clamp(0.5rem, 3vw, 1rem);
  width: 100%;
}

.homepage-lore-fold .district-teaser,
.homepage-lore-fold .manifesto-strip {
  margin-top: 0;
}

.hero-cta-row .neon-billboard {
  flex: 1 1 12rem;
  max-width: 20rem;
}

.cyber-city-root .cyber-sign-html {
  pointer-events: auto !important;
}

.cyber-sign-btn {
  appearance: none;
  font: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  background: rgba(5, 1, 13, 0.82);
  backdrop-filter: blur(6px);
  min-width: 5.5rem;
  max-width: 9rem;
  text-align: center;
  transition:
    box-shadow 0.25s ease,
    filter 0.25s ease,
    transform 0.25s ease;
}

.cyber-sign-btn.is-lit,
.cyber-sign-btn.is-open {
  box-shadow:
    0 0 20px rgba(217, 70, 239, 0.55),
    0 0 36px rgba(34, 211, 238, 0.35);
  filter: brightness(1.35) saturate(1.3);
  transform: scale(1.04);
}

.cyber-sign-btn--anchored {
  min-width: 4.5rem;
  max-width: 7.5rem;
  padding: 0.28rem 0.4rem;
  background: rgba(5, 1, 13, 0.62);
  border-color: rgba(255, 255, 255, 0.14);
  opacity: 0.88;
}

.cyber-sign-btn--anchored.is-near,
.cyber-sign-btn--anchored.is-lit,
.cyber-sign-btn--anchored.is-open {
  opacity: 1;
  background: rgba(5, 1, 13, 0.88);
  border-color: rgba(255, 255, 255, 0.32);
}

.cyber-sign-btn--anchored:not(.is-near):not(.is-lit):not(.is-open) .cyber-sign-title {
  filter: saturate(0.75) brightness(0.9);
}

.cyber-sign-btn--anchored:not(.is-near):not(.is-lit):not(.is-open) .cyber-sign-hint {
  font-size: 0.46rem;
  opacity: 0.55;
}

.cyber-sign-title {
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.cyber-sign-hint {
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.cyber-sign-body {
  display: block;
  margin-top: 0.25rem;
  padding-top: 0.25rem;
  border-top: 1px solid;
  font-size: 0.48rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.82);
}

.cyber-sign-link {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: 0.48rem;
  letter-spacing: 0.06em;
  color: #22d3ee;
  text-decoration: none;
}

.cyber-sign-link:hover {
  color: #d946ef;
}

/* Corridor — abandoned-Tokyo neon signage (3D Html labels + tube frames) */
.cyber-city-root .corridor-neon-html {
  pointer-events: none !important;
}

.corridor-neon-sign {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  padding: 0.2rem 0.35rem;
  border-radius: 2px;
  background: rgba(5, 1, 13, 0.55);
  box-shadow:
    0 0 12px color-mix(in srgb, var(--neon-color) 65%, transparent),
    0 0 28px color-mix(in srgb, var(--neon-accent) 35%, transparent),
    inset 0 0 8px rgba(255, 255, 255, 0.06);
}

.corridor-neon-sign--vertical {
  writing-mode: vertical-rl;
  text-orientation: upright;
  padding: 0.35rem 0.2rem;
}

.corridor-neon-sign-label {
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.1;
  color: var(--neon-color);
  text-shadow:
    0 0 6px var(--neon-color),
    0 0 14px var(--neon-color),
    0 0 24px color-mix(in srgb, var(--neon-accent) 80%, transparent),
    0 0 40px color-mix(in srgb, var(--neon-accent) 45%, transparent);
  white-space: nowrap;
}

.corridor-neon-sign--vertical .corridor-neon-sign-label {
  letter-spacing: 0.08em;
}

.corridor-neon-sign-sub {
  font-size: 0.44rem;
  letter-spacing: 0.06em;
  color: var(--neon-accent);
  opacity: 0.92;
  text-shadow:
    0 0 8px var(--neon-accent),
    0 0 18px color-mix(in srgb, var(--neon-color) 50%, transparent);
}

.founders-plaque-html {
  pointer-events: auto !important;
}

.founders-plaque-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.3rem 0.45rem;
  border: 1px solid rgba(212, 165, 116, 0.35);
  border-radius: 3px;
  background: rgba(20, 14, 10, 0.88);
  text-decoration: none;
  text-align: center;
  transition:
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.founders-plaque-link:hover {
  border-color: rgba(251, 191, 36, 0.55);
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.35);
}

.founders-plaque-kicker {
  font-size: 0.42rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(212, 165, 116, 0.85);
}

.founders-plaque-title {
  font-family: var(--font-display);
  font-size: 0.52rem;
  letter-spacing: 0.1em;
  color: #fde68a;
}

.site-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black, transparent 75%);
}

.scanline-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    var(--scanline) 2px,
    var(--scanline) 4px
  );
  opacity: 0.75;
}

@media (prefers-reduced-motion: no-preference) {
  .scanline-overlay {
    animation: scan-drift 10s linear infinite;
  }
}

@keyframes scan-drift {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(100%);
  }
}

.site-header,
.site-main,
.site-footer,
.floating-cta {
  position: relative;
  z-index: 1;
}

.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.65rem clamp(1rem, 4vw, 2rem);
  min-height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: rgba(13, 2, 33, 0.92);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.text-muted {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.4rem, 1.2vw, 0.65rem);
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
  min-width: 0;
}

.brand-word {
  font-family: var(--font-display);
  font-size: clamp(0.8rem, 2vw, 1.05rem);
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
}

.brand-horizontal {
  display: block;
  height: 2.25rem;
  width: auto;
  max-width: min(13rem, 42vw);
  object-fit: contain;
}

.brand-mark {
  display: block;
  width: clamp(2rem, 5vw, 2.75rem);
  height: clamp(2rem, 5vw, 2.75rem);
  object-fit: contain;
  flex-shrink: 0;
  image-rendering: auto;
}

.brand-mark--full {
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 18px rgba(217, 70, 239, 0.22);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}

.header-social {
  display: none;
}

.site-header[data-header-mode="minimal"] {
  gap: 0.5rem;
}

.site-header[data-brand-variant="mark-only"] .brand-lockup {
  gap: 0;
}

body.mobile-nav-open {
  overflow: hidden;
}

.site-nav--desktop {
  display: none;
  gap: 1.25rem;
}

.mobile-nav {
  position: relative;
  flex-shrink: 0;
}

.mobile-nav-trigger {
  appearance: none;
  font: inherit;
  cursor: pointer;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(26, 10, 46, 0.6);
  user-select: none;
}

.mobile-nav-trigger:hover {
  color: var(--text);
  border-color: var(--magenta);
}

.mobile-nav-panel {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  position: fixed;
  left: 0;
  right: 0;
  top: var(--header-h);
  z-index: 40;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  padding: 1rem clamp(1rem, 4vw, 2rem) 1.25rem;
  border-bottom: 1px solid var(--border);
  background: rgba(13, 2, 33, 0.98);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.mobile-nav-panel[hidden] {
  display: none !important;
}

.mobile-nav.is-open .mobile-nav-panel {
  display: flex;
}

.mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 35;
  background: rgba(0, 0, 0, 0.45);
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.mobile-nav.is-open .mobile-nav-backdrop {
  display: block;
}

.mobile-nav-panel a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.35rem 0.25rem;
}

.mobile-nav-panel a:hover {
  color: var(--cyan);
}

.site-nav {
  display: none;
  gap: 1.25rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--magenta-bright), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-nav a:hover {
  color: var(--cyan);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.header-cta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

@media (max-width: 1099px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .site-nav.site-nav--desktop {
    display: none !important;
  }
}

@media (min-width: 1100px) {
  .site-nav.site-nav--desktop {
    display: flex;
    justify-content: center;
    justify-self: center;
    min-width: 0;
    flex-wrap: wrap;
  }

  .site-header .mobile-nav {
    display: none !important;
  }

  .site-header[data-header-social="true"] .header-social {
    display: flex;
  }

  .header-social .social-icon-link {
    width: 2.1rem;
    height: 2.1rem;
  }

  .header-social .social-icon-link img {
    width: 1rem;
    height: 1rem;
  }

  .brand-mark {
    width: 2.75rem;
    height: 2.75rem;
  }
}

@media (min-width: 1100px) and (max-width: 1280px) {
  .site-header[data-header-mode="conversion"] .site-nav--desktop {
    gap: 0.85rem;
  }

  .site-header[data-header-mode="conversion"] .site-nav--desktop a {
    font-size: 0.82rem;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--magenta), var(--magenta-bright));
  color: #fff;
  box-shadow:
    0 0 24px var(--glow-magenta),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 40px var(--glow-magenta),
    0 0 60px rgba(34, 211, 238, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

@media (prefers-reduced-motion: no-preference) {
  .btn-primary.btn-lg {
    animation: cta-pulse 3s ease-in-out infinite;
  }
}

@keyframes cta-pulse {
  0%,
  100% {
    box-shadow:
      0 0 24px var(--glow-magenta),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow:
      0 0 36px var(--glow-magenta),
      0 0 48px rgba(34, 211, 238, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
}

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

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn-lg {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
}

.site-main {
  width: min(var(--content-max), 100% - 2rem);
  margin: 0 auto;
  padding: var(--section-gap) 0 4rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem clamp(1rem, 4vw, 2rem) 2rem;
  background: rgba(13, 2, 33, 0.9);
  box-shadow: inset 0 1px 0 rgba(217, 70, 239, 0.12);
}

.site-footer::before {
  content: "";
  display: block;
  height: 1px;
  margin: -2.5rem 0 2.5rem;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(34, 211, 238, 0.35) 20%,
    rgba(217, 70, 239, 0.45) 50%,
    rgba(34, 211, 238, 0.35) 80%,
    transparent
  );
  opacity: 0.85;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
  max-width: var(--content-max);
  margin: 0 auto 1.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 0.8fr;
  }
}

.footer-tagline {
  font-family: var(--font-display);
  margin: 0 0 0.35rem;
  color: var(--cyan);
}

.footer-copy,
.footer-fine {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.875rem;
}

.footer-links,
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--magenta-bright);
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.social-icon-link:hover {
  transform: translateY(-1px);
}

.social-icon-link--discord:hover {
  border-color: #5865f2;
  background: rgba(88, 101, 242, 0.2);
  box-shadow: 0 0 20px rgba(88, 101, 242, 0.35);
}

.social-icon-link--x:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.12);
}

.social-icon-link img {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  pointer-events: none;
  user-select: none;
}

.floating-cta {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 20;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--magenta), var(--cyan-deep));
  color: #fff;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    0 0 24px var(--glow-magenta);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

@media (prefers-reduced-motion: no-preference) {
  .floating-cta {
    animation: cta-pulse 3.5s ease-in-out infinite;
  }
}

@media (min-width: 768px) {
  .floating-cta {
    display: none;
  }
}

/* Hero */
.hero {
  text-align: center;
  padding: clamp(2rem, 8vw, 4rem) 0 3rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-stars {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 20%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1px 1px at 30% 65%, rgba(34, 211, 238, 0.95), transparent),
    radial-gradient(2px 2px at 55% 15%, rgba(217, 70, 239, 1), transparent),
    radial-gradient(1px 1px at 72% 42%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 88% 78%, rgba(34, 211, 238, 0.85), transparent),
    radial-gradient(1px 1px at 18% 88%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(2px 2px at 45% 38%, rgba(217, 70, 239, 0.8), transparent),
    radial-gradient(1px 1px at 63% 92%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1px 1px at 5% 45%, rgba(34, 211, 238, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 92% 12%, rgba(236, 72, 153, 0.75), transparent),
    radial-gradient(1px 1px at 38% 8%, rgba(255, 255, 255, 0.65), transparent);
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-stars {
    animation: star-twinkle 8s ease-in-out infinite alternate;
  }
}

@keyframes star-twinkle {
  from {
    opacity: 0.55;
    filter: brightness(0.9);
  }
  to {
    opacity: 1;
    filter: brightness(1.15);
  }
}

.hero-glow {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  filter: blur(48px);
}

.hero-glow--magenta {
  left: 50%;
  top: 32%;
  width: min(640px, 95vw);
  height: 240px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(217, 70, 239, 0.55), transparent 68%);
}

.hero-glow--cyan {
  left: 50%;
  top: 48%;
  width: min(480px, 80vw);
  height: 160px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(34, 211, 238, 0.35), transparent 70%);
}

.hero-sun {
  position: absolute;
  left: 50%;
  bottom: clamp(80px, 14vw, 130px);
  width: min(320px, 55vw);
  height: clamp(60px, 10vw, 90px);
  transform: translateX(-50%);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: linear-gradient(
    180deg,
    rgba(253, 224, 71, 0.95) 0%,
    rgba(236, 72, 153, 0.9) 38%,
    rgba(217, 70, 239, 0.55) 72%,
    transparent 100%
  );
  box-shadow:
    0 0 50px rgba(236, 72, 153, 0.55),
    0 0 100px rgba(217, 70, 239, 0.35);
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}

.hero-horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(72px, 12vw, 118px);
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(34, 211, 238, 0.5) 20%,
    rgba(236, 72, 153, 0.9) 50%,
    rgba(34, 211, 238, 0.5) 80%,
    transparent
  );
  box-shadow: 0 0 24px rgba(236, 72, 153, 0.6);
  pointer-events: none;
  z-index: 1;
}

.hero-grid-floor {
  position: absolute;
  left: 50%;
  bottom: -20px;
  width: min(1100px, 140%);
  height: clamp(200px, 28vw, 280px);
  transform: translateX(-50%) perspective(320px) rotateX(72deg);
  background:
    linear-gradient(var(--grid-line-bright) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-bright) 1px, transparent 1px),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size:
    48px 48px,
    48px 48px,
    24px 24px,
    24px 24px;
  mask-image: linear-gradient(to top, black 15%, transparent 95%);
  opacity: 0.95;
  pointer-events: none;
  z-index: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-grid-floor {
    animation: grid-scroll 14s linear infinite;
  }
}

@keyframes grid-scroll {
  from {
    background-position: 0 0, 0 0, 0 0, 0 0;
  }
  to {
    background-position: 0 48px, 48px 0, 0 24px, 24px 0;
  }
}

.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {
  .hero-particles {
    display: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-sun {
    animation: sun-pulse 5s ease-in-out infinite;
  }

  .hero-glow--magenta {
    animation: glow-drift-magenta 7s ease-in-out infinite alternate;
  }

  .hero-glow--cyan {
    animation: glow-drift-cyan 6s ease-in-out infinite alternate-reverse;
  }

  .hero-horizon {
    animation: horizon-flicker 4s ease-in-out infinite;
  }
}

@keyframes sun-pulse {
  0%,
  100% {
    transform: translateX(-50%) scaleX(1);
    opacity: 0.82;
    filter: brightness(1);
  }
  50% {
    transform: translateX(-50%) scaleX(1.04);
    opacity: 1;
    filter: brightness(1.12);
  }
}

@keyframes glow-drift-magenta {
  from {
    transform: translate(-52%, -48%) scale(0.95);
    opacity: 0.75;
  }
  to {
    transform: translate(-48%, -52%) scale(1.08);
    opacity: 1;
  }
}

@keyframes glow-drift-cyan {
  from {
    transform: translate(-48%, -46%) scale(0.92);
    opacity: 0.65;
  }
  to {
    transform: translate(-52%, -54%) scale(1.05);
    opacity: 0.95;
  }
}

@keyframes horizon-flicker {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 24px rgba(236, 72, 153, 0.6);
  }
  45% {
    opacity: 0.85;
    box-shadow: 0 0 36px rgba(34, 211, 238, 0.45);
  }
  70% {
    opacity: 1;
    box-shadow: 0 0 28px rgba(217, 70, 239, 0.7);
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-rise-group > * {
    animation: hero-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  }

  .hero-rise-group > *:nth-child(1) {
    animation-delay: 0.08s;
  }
  .hero-rise-group > *:nth-child(2) {
    animation-delay: 0.18s;
  }
  .hero-rise-group > *:nth-child(3) {
    animation-delay: 0.28s;
  }
  .hero-rise-group > *:nth-child(4) {
    animation-delay: 0.38s;
  }
  .hero-rise-group > *:nth-child(5) {
    animation-delay: 0.48s;
  }
  .hero-rise-group > *:nth-child(6) {
    animation-delay: 0.58s;
  }
}

.glitch-text {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  position: relative;
  color: var(--text);
  text-shadow: 0 0 20px var(--glow-magenta);
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  overflow: hidden;
  clip-path: inset(0 0 0 0);
}

.glitch-text::before {
  color: var(--cyan);
  z-index: -1;
  text-shadow: -2px 0 var(--cyan);
}

.glitch-text::after {
  color: var(--magenta);
  z-index: -2;
  text-shadow: 2px 0 var(--magenta);
}

@media (prefers-reduced-motion: no-preference) {
  .glitch-text::before {
    animation: glitch-cyan 3.5s infinite linear alternate-reverse;
  }

  .glitch-text::after {
    animation: glitch-magenta 2.8s infinite linear alternate-reverse;
  }
}

@keyframes glitch-cyan {
  0%,
  68%,
  100% {
    transform: translate(0);
    opacity: 0.12;
  }
  70% {
    transform: translate(-4px, 1px);
    opacity: 0.9;
    clip-path: inset(12% 0 58% 0);
  }
  72% {
    transform: translate(3px, -2px);
    opacity: 0.75;
    clip-path: inset(48% 0 22% 0);
  }
  74% {
    transform: translate(-2px, 0);
    opacity: 0.5;
    clip-path: inset(28% 0 42% 0);
  }
}

@keyframes glitch-magenta {
  0%,
  64%,
  100% {
    transform: translate(0);
    opacity: 0.1;
  }
  66% {
    transform: translate(4px, 0);
    opacity: 0.85;
    clip-path: inset(8% 0 72% 0);
  }
  69% {
    transform: translate(-3px, 2px);
    opacity: 0.7;
    clip-path: inset(62% 0 8% 0);
  }
  71% {
    transform: translate(2px, -1px);
    opacity: 0.45;
    clip-path: inset(35% 0 35% 0);
  }
}

h2.glitch-text {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  margin: 2rem 0 0.75rem;
  color: var(--cyan);
}

.hero-lede {
  max-width: 42rem;
  margin: 0 auto 1.75rem;
  color: var(--text-muted);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  line-height: 1.6;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--cyan);
  letter-spacing: 0.08em;
  text-shadow: 0 0 18px var(--glow-cyan);
}

/* Product vision */
.section-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 0.5rem;
  text-shadow: 0 0 24px var(--glow-magenta);
}

.section-heading p {
  margin: 0;
  color: var(--text-muted);
  max-width: 36rem;
  margin-inline: auto;
}

.vision-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.vision-card {
  position: relative;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  backdrop-filter: blur(8px);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
  box-shadow:
    0 0 16px rgba(217, 70, 239, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.vision-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(217, 70, 239, 0.5),
    rgba(34, 211, 238, 0.35),
    rgba(217, 70, 239, 0.5)
  );
  background-size: 200% 200%;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0.45;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .vision-card::before {
    animation: card-border-shift 6s ease-in-out infinite;
  }
}

@keyframes card-border-shift {
  0%,
  100% {
    background-position: 0% 50%;
    opacity: 0.35;
  }
  50% {
    background-position: 100% 50%;
    opacity: 0.65;
  }
}

.vision-card:hover {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow:
    0 0 32px var(--glow-cyan),
    0 0 48px rgba(217, 70, 239, 0.2);
  transform: translateY(-2px);
}

.vision-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.65rem;
  color: var(--magenta-bright);
}

.vision-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.vision-lore {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  font-style: italic;
}

/* Page hero band (inner routes) */
.page-hero {
  position: relative;
  text-align: center;
  margin: calc(-1 * var(--section-gap)) auto var(--section-gap);
  padding: clamp(2rem, 6vw, 3.25rem) clamp(1rem, 4vw, 2rem);
  max-width: min(var(--content-max), 100%);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 80% 120% at 50% 0%, rgba(217, 70, 239, 0.14), transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(34, 211, 238, 0.08), transparent 55%),
    rgba(13, 2, 33, 0.55);
}

.page-hero--compact {
  padding: clamp(1.5rem, 4vw, 2.25rem) clamp(1rem, 4vw, 2rem);
  margin-bottom: 1.75rem;
}

.page-hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  pointer-events: none;
  opacity: 0.55;
}

.page-hero-glow--magenta {
  width: 280px;
  height: 280px;
  top: -40%;
  left: 15%;
  background: rgba(217, 70, 239, 0.35);
}

.page-hero-glow--cyan {
  width: 220px;
  height: 220px;
  top: -30%;
  right: 10%;
  background: rgba(34, 211, 238, 0.25);
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  margin: 0 auto;
}

.page-hero-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4.5vw, 2.35rem);
  margin: 0 0 0.85rem;
  line-height: 1.15;
}

.page-hero--glitch .glitch-text {
  margin: 0 0 0.85rem;
  font-size: clamp(1.65rem, 4.5vw, 2.35rem);
}

.page-hero-lede {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
}

.page-hero-grid {
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: min(900px, 130%);
  height: clamp(100px, 18vw, 160px);
  transform: translateX(-50%) perspective(280px) rotateX(74deg);
  background:
    linear-gradient(var(--grid-line-bright) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-bright) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to top, black 10%, transparent 92%);
  opacity: 0.55;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .page-hero--animated .page-hero-grid {
    animation: grid-scroll 12s linear infinite;
  }

  .page-hero--animated .page-hero-glow--magenta {
    animation: glow-drift-magenta 8s ease-in-out infinite alternate;
  }

  .page-hero--animated .page-hero-glow--cyan {
    animation: glow-drift-cyan 7s ease-in-out infinite alternate-reverse;
  }
}

.page-shell {
  max-width: 720px;
  margin: 0 auto;
}

.page-shell--wide {
  max-width: 960px;
}

.page-shell--narrow {
  max-width: 640px;
}

/* Prose pages */
.prose-page {
  max-width: 720px;
  margin: 0 auto;
}

.prose-page--inset h1:first-child {
  display: none;
}

.prose-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 1rem;
}

.prose-page h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 2rem 0 0.75rem;
  color: var(--cyan);
}

.prose-page p,
.prose-page li {
  color: var(--text-muted);
  line-height: 1.65;
}

.billing-error {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(236, 72, 153, 0.45);
  border-radius: var(--radius-sm);
  background: rgba(217, 70, 239, 0.08);
  color: var(--text);
  font-size: 0.9rem;
}

.prose-page ul {
  padding-left: 1.25rem;
}

/* Deck */
.deck-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .deck-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

.deck-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02) inset,
    0 12px 40px rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.deck-card:hover {
  border-color: rgba(34, 211, 238, 0.28);
}

.deck-card--span {
  grid-column: 1 / -1;
}

.deck-card-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  line-height: 1.85;
}

.deck-card-list a {
  color: var(--cyan);
  text-decoration: none;
}

.deck-card-list a:hover {
  color: var(--magenta-bright);
}

.deck-referral-code {
  display: block;
  margin-top: 0.65rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(34, 211, 238, 0.35);
  background: rgba(13, 2, 33, 0.65);
  font-size: 0.82rem;
  word-break: break-all;
  color: var(--cyan);
}

.deck-card h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
}

.page-hero .deck-enrollment-badge {
  margin: 0.85rem auto 0;
}

.deck-enrollment-badge {
  display: inline-block;
  margin: 0.5rem 0 1.25rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.08);
}

.deck-timeline {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.deck-timeline-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  opacity: 0.45;
}

.deck-timeline-step.is-active {
  opacity: 1;
}

.deck-timeline-step.is-current .deck-timeline-dot {
  box-shadow: 0 0 14px var(--glow-cyan);
  background: var(--cyan);
}

.deck-timeline-dot {
  width: 10px;
  height: 10px;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid var(--border);
}

.deck-timeline-step strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.15rem;
}

.deck-timeline-step p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.45;
}

.founders-wall {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.founders-wall h2 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
}

.founders-wall-lede {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 40rem;
}

.founders-wall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
}

.founders-wall-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.85rem 0.5rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
}

.founders-wall-glyph {
  color: var(--magenta-bright);
  font-size: 1.1rem;
  opacity: 0.6;
}

.founders-wall-name {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-align: center;
}

/* Signal pulse strip */
.signal-pulse {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding: 0.85rem 1.25rem;
  margin-bottom: var(--section-gap);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(13, 2, 33, 0.75);
  backdrop-filter: blur(8px);
  box-shadow:
    0 0 24px rgba(217, 70, 239, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

@media (prefers-reduced-motion: no-preference) {
  .signal-pulse.is-visible {
    animation: signal-strip-pulse 3s ease-in-out infinite;
  }
}

@keyframes signal-strip-pulse {
  0%,
  100% {
    box-shadow:
      0 0 24px rgba(217, 70, 239, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }
  50% {
    box-shadow:
      0 0 36px rgba(34, 211, 238, 0.22),
      0 0 48px rgba(217, 70, 239, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }
}

.signal-pulse-label,
.signal-pulse-status {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.signal-pulse-status {
  color: var(--cyan);
}

.signal-pulse-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 28px;
}

.signal-pulse-bars span {
  display: block;
  width: 5px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--magenta-bright), var(--cyan-deep));
  opacity: 0.55;
}

@media (prefers-reduced-motion: no-preference) {
  .signal-pulse-bars span:nth-child(1) {
    animation: pulse-bar 1.1s ease-in-out infinite;
  }
  .signal-pulse-bars span:nth-child(2) {
    animation: pulse-bar 1.3s ease-in-out 0.1s infinite;
  }
  .signal-pulse-bars span:nth-child(3) {
    animation: pulse-bar 0.95s ease-in-out 0.2s infinite;
  }
  .signal-pulse-bars span:nth-child(4) {
    animation: pulse-bar 1.2s ease-in-out 0.05s infinite;
  }
  .signal-pulse-bars span:nth-child(5) {
    animation: pulse-bar 1.05s ease-in-out 0.15s infinite;
  }
  .signal-pulse-bars span:nth-child(6) {
    animation: pulse-bar 1.25s ease-in-out 0.25s infinite;
  }
  .signal-pulse-bars span:nth-child(7) {
    animation: pulse-bar 0.9s ease-in-out 0.08s infinite;
  }
  .signal-pulse-bars span:nth-child(8) {
    animation: pulse-bar 1.15s ease-in-out 0.18s infinite;
  }
}

@keyframes pulse-bar {
  0%,
  100% {
    height: 8px;
    opacity: 0.4;
  }
  50% {
    height: 26px;
    opacity: 1;
    box-shadow: 0 0 12px var(--glow-cyan);
  }
}

/* District teaser */
.district-teaser {
  text-align: center;
  margin-top: var(--section-gap);
  padding: 2rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  box-shadow: 0 0 32px rgba(34, 211, 238, 0.1);
}

.district-teaser-kicker {
  margin: 0 0 1.25rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.district-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 42rem;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 720px) {
  .district-teaser-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 400px) {
  .district-teaser-grid {
    grid-template-columns: 1fr;
  }
}

.district-chip {
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  white-space: normal;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .district-teaser-grid > .neon-billboard:nth-child(odd) .district-chip {
    animation: chip-float 4.2s ease-in-out infinite;
  }

  .district-teaser-grid > .neon-billboard:nth-child(even) .district-chip {
    animation: chip-float 4.8s ease-in-out infinite reverse;
  }
}

.district-chip:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.2);
  animation-play-state: paused;
}

@keyframes chip-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.district-chip--lumen {
  border-color: rgba(250, 204, 21, 0.35);
  color: #fde68a;
}
.district-chip--magenta {
  border-color: rgba(217, 70, 239, 0.4);
  color: var(--magenta-bright);
}
.district-chip--cyan,
.district-chip--cyan-deep {
  border-color: rgba(34, 211, 238, 0.35);
  color: var(--cyan);
}
.district-chip--nova {
  border-color: rgba(244, 114, 182, 0.35);
  color: #f9a8d4;
}
.district-chip--eclipse {
  border-color: rgba(129, 140, 248, 0.35);
  color: #a5b4fc;
}

/* Manifesto strip */
.manifesto-strip {
  text-align: center;
  margin-top: var(--section-gap);
  padding: 2rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(
    180deg,
    rgba(26, 10, 46, 0.85) 0%,
    rgba(13, 2, 33, 0.65) 100%
  );
  box-shadow: 0 0 36px rgba(217, 70, 239, 0.12);
}

.manifesto-strip-kicker {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  letter-spacing: 0.06em;
  color: var(--text);
  text-shadow: 0 0 20px var(--glow-magenta);
}

.manifesto-strip-lede {
  margin: -0.5rem auto 1.25rem;
  max-width: 28rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.manifesto-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 48rem;
  margin: 0 auto 1.25rem;
  width: 100%;
}

@media (max-width: 720px) {
  .manifesto-strip-grid {
    grid-template-columns: 1fr;
    max-width: 22rem;
  }
}

.manifesto-chip {
  padding: 0.85rem 0.75rem;
  min-height: 3.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(34, 211, 238, 0.4);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.manifesto-chip:hover {
  border-color: var(--magenta-bright);
  color: var(--magenta-bright);
  box-shadow: 0 0 20px var(--glow-cyan);
  transform: translateY(-2px) scale(1.02);
}

@media (prefers-reduced-motion: no-preference) {
  .manifesto-chip.is-visible {
    animation: chip-shimmer 3.5s ease-in-out infinite;
  }
}

@keyframes chip-shimmer {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(34, 211, 238, 0);
  }
  50% {
    box-shadow: 0 0 18px rgba(217, 70, 239, 0.25);
  }
}

.manifesto-strip-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.manifesto-strip-link:hover {
  color: var(--cyan);
}

.manifesto-dialog {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0;
  max-width: min(32rem, calc(100vw - 2rem));
  background: rgba(13, 2, 33, 0.98);
  color: var(--text);
  box-shadow:
    0 0 48px rgba(217, 70, 239, 0.35),
    0 24px 64px rgba(0, 0, 0, 0.55);
}

.manifesto-dialog::backdrop {
  background: rgba(5, 2, 12, 0.72);
  backdrop-filter: blur(4px);
}

.manifesto-dialog-inner {
  padding: 1.5rem;
}

@media (prefers-reduced-motion: no-preference) {
  .manifesto-dialog-inner.is-glitching {
    animation: dialog-glitch-in 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  }
}

@keyframes dialog-glitch-in {
  0% {
    opacity: 0;
    transform: translateY(12px) skewX(-2deg);
    filter: hue-rotate(0deg) blur(2px);
  }
  35% {
    opacity: 1;
    transform: translateY(0) skewX(1deg);
    filter: hue-rotate(12deg) blur(0);
  }
  55% {
    transform: translateX(-3px);
    filter: hue-rotate(-8deg);
  }
  75% {
    transform: translateX(2px);
  }
  100% {
    transform: none;
    filter: none;
  }
}

.manifesto-dialog-inner h3 {
  font-family: var(--font-display);
  margin: 0 0 0.75rem;
  color: var(--magenta-bright);
  font-size: 1.15rem;
}

.manifesto-dialog-inner p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.manifesto-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

/* Scroll reveal — visible by default; hidden only after effects.js runs */
.reveal-on-scroll {
  opacity: 1;
  transform: none;
}

body.effects-ready .reveal-on-scroll:not(.is-visible) {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  filter: blur(3px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.65s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  body.effects-ready .reveal-on-scroll:not(.is-visible) {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.signal-meter {
  margin-top: 1rem;
}

.signal-meter-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.signal-meter-kicker {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.signal-meter-tier-badge {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.08);
}

.signal-meter-track {
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: visible;
  position: relative;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.35);
}

.signal-meter-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--magenta), var(--cyan));
  width: 0;
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 16px var(--glow-magenta);
}

.signal-meter-fill--animated {
  /* width set inline; animation class triggers transition on load */
}

.signal-meter-marker {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: #fff;
  transform: translateY(-50%);
  box-shadow:
    0 0 12px var(--cyan),
    0 0 24px var(--magenta);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .signal-meter-marker {
    animation: marker-pulse 2s ease-in-out infinite;
  }
}

@keyframes marker-pulse {
  0%,
  100% {
    transform: translateY(-50%) scale(1);
  }
  50% {
    transform: translateY(-50%) scale(1.2);
  }
}

.signal-meter-notch-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  margin-top: 0.85rem;
}

@media (max-width: 520px) {
  .signal-meter-notch-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.signal-meter-notch {
  font-size: 0.68rem;
  color: var(--text-dim);
}

.signal-meter-notch:not([open]) .signal-meter-perks {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .signal-meter-notch.is-glitching summary {
    animation: notch-unlock 0.45s ease;
  }

  .signal-meter-notch[open] .signal-meter-perks {
    animation: perks-reveal 0.35s ease backwards;
  }
}

@keyframes notch-unlock {
  0% {
    filter: hue-rotate(0deg);
    transform: scale(1);
  }
  30% {
    filter: hue-rotate(25deg) drop-shadow(0 0 8px var(--cyan));
    transform: scale(1.04);
  }
  60% {
    filter: hue-rotate(-15deg);
    transform: scale(0.98);
  }
  100% {
    filter: none;
    transform: scale(1);
  }
}

@keyframes perks-reveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.signal-meter-notch summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.35rem 0.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.signal-meter-notch summary::-webkit-details-marker {
  display: none;
}

.signal-meter-notch summary:hover {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.signal-meter-notch-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid var(--border);
}

.signal-meter-notch.is-unlocked .signal-meter-notch-dot {
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 10px var(--glow-cyan);
}

.signal-meter-notch.is-founders.is-unlocked .signal-meter-notch-dot {
  background: linear-gradient(135deg, var(--magenta-bright), var(--cyan), #fde68a);
  border: none;
  animation: founders-iridescent 4s linear infinite;
}

@keyframes founders-iridescent {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}

.signal-meter-notch-label {
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}

.signal-meter-notch.is-unlocked .signal-meter-notch-label {
  color: var(--text-muted);
}

.signal-meter-notch-amount {
  font-size: 0.62rem;
  opacity: 0.75;
}

.signal-meter-perks {
  margin: 0.35rem 0 0;
  padding: 0.5rem 0.65rem 0.5rem 1.1rem;
  font-size: 0.65rem;
  line-height: 1.45;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
}

.signal-meter-total {
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.signal-meter-cta {
  margin-top: 1rem;
}

/* Unauthorized gate */
.unauthorized-stage {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) 1rem 4rem;
  text-align: center;
}

.unauthorized-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--magenta);
}

.unauthorized-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  background: linear-gradient(90deg, var(--magenta), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.unauthorized-lede {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 1.05rem;
}

.unauthorized-panel {
  margin: 0 0 2rem;
  padding: 1.25rem 1.5rem;
  text-align: left;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--cyan);
}

.unauthorized-panel p {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.unauthorized-panel p:last-child {
  margin-bottom: 0;
}

.unauthorized-path {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.4rem;
  font-size: 0.85em;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
  border-radius: 4px;
}

.unauthorized-small {
  font-size: 0.88rem !important;
  color: var(--text-dim) !important;
  font-style: italic;
}

.unauthorized-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.unauthorized-flee {
  font-size: 0.85rem;
  opacity: 0.75;
}

.unauthorized-footnote {
  margin: 2rem 0 0;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Variable-amount support checkout */
.support-amount-panel {
  margin-top: 0;
  padding: 1.5rem;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02) inset,
    0 0 32px rgba(217, 70, 239, 0.08);
}

.support-amount-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.support-amount-row--compact {
  gap: 0.5rem;
}

.support-amount-currency {
  font-weight: 700;
  color: var(--cyan);
  font-size: 1.1rem;
}

.support-amount-row input[type="number"] {
  width: 7rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-deep);
  color: var(--text);
  font-size: 1rem;
}

/* Pricing */
.pricing-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.price-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.price-card:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.3);
}

.price-card h2 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.15rem;
}

.price-card > p:first-of-type {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cyan);
  margin: 0.25rem 0 0.5rem;
}

.price-card ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  flex: 1;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.price-card.featured {
  border-color: var(--magenta);
  box-shadow: 0 0 32px var(--glow-magenta);
  background:
    radial-gradient(ellipse 100% 80% at 50% 0%, rgba(217, 70, 239, 0.12), transparent 55%),
    var(--bg-glass);
}

.price-card.featured:hover {
  border-color: var(--magenta-bright);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
}

.faq-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.faq-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Content lists */
.content-list {
  display: grid;
  gap: 1rem;
}

.content-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.content-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.12);
  transform: translateY(-1px);
}

.content-card-date {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.latest-transmission {
  margin-top: var(--section-gap);
}

.content-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.content-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.signup-wall {
  text-align: center;
  padding: 2rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  margin-top: 1.5rem;
}

/* Enrollment counter */
.enrollment-counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin: 1.25rem auto 0.75rem;
  padding: 0.65rem 1.1rem;
  max-width: 20rem;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  background: rgba(13, 2, 33, 0.55);
}

.enrollment-counter-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--cyan);
  text-shadow: 0 0 16px var(--glow-cyan);
}

.enrollment-counter-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  line-height: 1.35;
  text-align: center;
}

/* Legal embed from legacy static */
.legal-embed {
  max-width: 840px;
}

.legal-embed .badge {
  display: inline-flex;
  gap: 0.5rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(217, 70, 239, 0.4);
  color: var(--magenta-bright);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.legal-embed h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
}

.legal-embed h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--cyan);
}

.legal-embed p,
.legal-embed li {
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.92rem;
}

.legal-embed a {
  color: var(--magenta-bright);
}

.legal-embed section + section {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

/* District callout (markdown) */
.district-callout {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--cyan);
  background: rgba(34, 211, 238, 0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.district-callout-label {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--cyan);
}

.district-callout p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.early-access-inline {
  text-align: center;
  margin: 1.5rem 0;
}

/* 404 */
.not-found-stage {
  text-align: center;
  padding: clamp(2rem, 8vw, 4rem) 1rem;
}

.not-found-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.not-found-lede {
  max-width: 32rem;
  margin: 0 auto 1.5rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.not-found-actions,
.page-hero .not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.25rem;
}

/* Appendix A district accent layers */
[data-district-accent="lumen"] {
  --section-accent: var(--district-lumen);
  --section-accent-soft: rgba(34, 211, 238, 0.14);
}
[data-district-accent="pulse"] {
  --section-accent: var(--district-pulse);
  --section-accent-soft: rgba(245, 158, 11, 0.16);
}
[data-district-accent="flux"] {
  --section-accent: var(--district-flux);
  --section-accent-soft: rgba(148, 163, 184, 0.16);
}
[data-district-accent="ion"] {
  --section-accent: var(--district-ion);
  --section-accent-soft: rgba(234, 179, 8, 0.14);
}
[data-district-accent="nova"] {
  --section-accent: var(--district-nova);
  --section-accent-soft: rgba(236, 72, 153, 0.16);
}
[data-district-accent="eclipse"] {
  --section-accent: var(--district-eclipse);
  --section-accent-soft: rgba(124, 58, 237, 0.18);
}

[data-district-accent] {
  position: relative;
}

[data-district-accent]::before {
  content: "";
  position: absolute;
  inset: -1rem -0.5rem auto;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--section-accent), transparent);
  opacity: 0.65;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-district-accent="pulse"]::before,
  [data-district-accent="eclipse"]::before {
    animation: none;
  }
}

[data-district-accent="pulse"]::before {
  animation: district-flicker 2.4s ease-in-out infinite;
}

[data-district-accent="eclipse"]::before {
  animation: district-distort 6s ease-in-out infinite;
}

@keyframes district-flicker {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.9;
  }
}

@keyframes district-distort {
  0%,
  100% {
    filter: hue-rotate(0deg);
    opacity: 0.5;
  }
  50% {
    filter: hue-rotate(18deg);
    opacity: 0.85;
  }
}

/* Signal meter Radix popover */
.signal-meter-notch-trigger,
.signal-meter-notch-row--radix .signal-meter-notch-trigger {
  appearance: none;
  list-style: none;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.35rem 0.2rem;
  width: 100%;
  text-align: center;
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.signal-meter-notch-trigger:hover,
.signal-meter-notch.is-open .signal-meter-notch-trigger {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.signal-meter-radix-content {
  z-index: 60;
  min-width: 220px;
  max-width: 280px;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 28px var(--glow-cyan), 0 16px 40px rgba(0, 0, 0, 0.45);
  animation: popover-glitch-in 0.38s ease;
}

.signal-meter-radix-arrow {
  fill: var(--bg-surface);
}

.signal-meter-popover-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--cyan);
}

.signal-meter-popover-note {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

@keyframes popover-glitch-in {
  0% {
    opacity: 0;
    transform: translateY(8px) skewX(-2deg);
    filter: hue-rotate(24deg);
  }
  60% {
    filter: hue-rotate(-8deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) skewX(0);
    filter: hue-rotate(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .signal-meter-radix-content {
    animation: none;
  }
}

/* Support tier cards + founders wall polish */
.price-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.price-card-badge {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-dim);
}

.price-card-badge--nova {
  border-color: rgba(236, 72, 153, 0.45);
  color: var(--magenta-bright);
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.25);
}

.price-card-amount {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--cyan);
  margin: 0 0 0.75rem;
}

.founders-wall-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.founders-wall-badge {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(236, 72, 153, 0.5);
  color: var(--magenta-bright);
}

.founders-wall-slot--pulse {
  animation: wall-pulse 2.8s ease-in-out infinite;
}

.founders-wall-slot--empty {
  opacity: 0.55;
  border-style: dashed;
}

.founders-wall-footnote {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  text-align: center;
}

@keyframes wall-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(34, 211, 238, 0);
  }
  50% {
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.35);
  }
}

/* Content covers */
.content-card--cover {
  display: grid;
  gap: 0.75rem;
}

.content-card-cover,
.transmission-cover {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  object-fit: cover;
}

.transmission-cover {
  margin-bottom: 1.25rem;
}

/* Ambient audio toggle (Hubtown-style) */
.grid-ambient-toggle {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(5, 1, 13, 0.55);
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.grid-ambient-toggle:hover,
.grid-ambient-toggle.is-active {
  color: var(--text);
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.18);
}

@media (max-width: 720px) {
  .grid-ambient-toggle {
    display: none;
  }
}

/* District map — Hubtown-style movable grid */
body.has-district-map .cyber-city-root {
  opacity: 0.28;
}

body.has-district-map .site-main {
  padding: 0;
  max-width: none;
}

.district-map-page {
  position: relative;
  min-height: calc(100vh - 4.5rem);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(124, 58, 237, 0.12), transparent 70%);
}

.district-map-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 1, 13, 0.72);
  backdrop-filter: blur(8px);
  z-index: 4;
}

.district-map-brand {
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  font-size: 0.85rem;
}

.district-map-brand-kicker {
  color: var(--accent-magenta);
}

.district-map-brand-title {
  color: var(--accent-cyan);
}

.district-map-zoom-readout,
.district-map-scale {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.district-map-compass {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  margin-left: auto;
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 50%;
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.district-map-compass-n {
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--accent-cyan);
}

.district-map-compass-e {
  position: absolute;
  right: 3px;
  top: 50%;
  transform: translateY(-50%);
}

.district-map-compass-s {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
}

.district-map-compass-w {
  position: absolute;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
}

.district-map-compass-needle {
  position: absolute;
  inset: 30% 45%;
  background: linear-gradient(180deg, var(--accent-cyan), transparent);
  border-radius: 2px;
}

.district-map-viewport {
  position: relative;
  min-height: 58vh;
  cursor: grab;
  touch-action: none;
  overflow: hidden;
}

.district-map-viewport:active {
  cursor: grabbing;
}

.district-map-stage {
  position: absolute;
  inset: -15%;
  transform-origin: center center;
  will-change: transform;
}

.district-map-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.district-map-node {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 3.25rem;
  height: 3.25rem;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  z-index: 2;
}

.district-map-node-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--district-color, var(--accent-cyan));
  opacity: 0.45;
  animation: district-node-pulse 2.4s ease-in-out infinite;
}

.district-map-node-core {
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: var(--district-color, var(--accent-cyan));
  box-shadow: 0 0 18px color-mix(in srgb, var(--district-color, cyan) 55%, transparent);
}

.district-map-node-label {
  position: absolute;
  top: -1.1rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--district-color, var(--accent-cyan));
  white-space: nowrap;
}

.district-map-node-count {
  position: absolute;
  bottom: -0.9rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.55rem;
  color: var(--text-dim);
}

.district-map-node.is-active .district-map-node-pulse {
  opacity: 1;
  animation-duration: 1.2s;
}

.district-map-node--locked {
  opacity: 0.65;
}

.district-map-node--locked .district-map-node-core {
  filter: grayscale(0.35);
}

@keyframes district-node-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.35;
  }
  50% {
    transform: scale(1.35);
    opacity: 0.75;
  }
}

.district-map-panel {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: min(22rem, calc(100vw - 2rem));
  padding: 1.25rem;
  border: 1px solid color-mix(in srgb, var(--district-color, cyan) 40%, var(--border));
  border-radius: var(--radius-md);
  background: rgba(5, 1, 13, 0.88);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 32px color-mix(in srgb, var(--district-color, cyan) 25%, transparent);
  z-index: 6;
}

.district-map-panel-kicker {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--district-color, var(--accent-cyan));
}

.district-map-panel-title {
  margin: 0.35rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.district-map-panel-status,
.district-map-panel-meta {
  margin: 0.25rem 0;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.district-map-panel-lore {
  margin: 0.75rem 0 1rem;
  line-height: 1.55;
}

.district-map-panel-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}

.district-map-panel-nav {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.district-map-list {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  width: min(14rem, 42vw);
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(5, 1, 13, 0.78);
  backdrop-filter: blur(8px);
  z-index: 5;
  max-height: 40vh;
  overflow: auto;
}

.district-map-list-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.district-map-list-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.district-map-list-btn {
  width: 100%;
  text-align: left;
  border: none;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.5rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.78rem;
}

.district-map-list-btn:hover {
  background: rgba(34, 211, 238, 0.08);
}

.district-map-list-meta {
  font-size: 0.62rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.district-map-hint {
  position: absolute;
  left: 50%;
  bottom: 0.35rem;
  transform: translateX(-50%);
  margin: 0;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0.75;
  pointer-events: none;
  z-index: 3;
}

@media (max-width: 900px) {
  .district-map-list {
    display: none;
  }

  .district-map-panel {
    left: 1rem;
    right: 1rem;
    width: auto;
  }
}
