/* ============================================================
   GIGA THEFT AUTO ($GTA) site design system
   Palette, type, and components per docs/WEBSITE.md
   ============================================================ */

:root {
  /* base layers */
  --asphalt: #0A0B0F;
  --midnight: #11141B;
  --precinct: #1A1E28;
  --curb: #252B38;
  /* hero colors */
  --green: #2BD96A;
  --vault: #13863F;
  --blue: #3D8BFF;
  --orange: #FF7A1A;
  /* solana signature */
  --purple: #9945FF;
  --teal: #14F195;
  /* neutrals */
  --paper: #F4F1E8;
  --witness: #9AA3B2;
  /* gradients */
  --grad-money: linear-gradient(135deg, #2BD96A 0%, #13863F 100%);
  --grad-sol: linear-gradient(90deg, #9945FF 0%, #14F195 100%);
  --grad-sky: linear-gradient(180deg, rgba(10,11,15,0.2) 0%, rgba(10,11,15,0.55) 55%, #0A0B0F 100%);
  /* chrome */
  --line: rgba(255,255,255,0.08);
  --font-display: 'Anton', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-sticker: 'Bungee', sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;
  --nav-h: 72px;
  --section-pad: 120px;
  --container: 1200px;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--asphalt);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--paper); }
button { font-family: inherit; }
[id] { scroll-margin-top: calc(var(--nav-h) + 24px); }
::selection { background: var(--green); color: var(--asphalt); }
body.menu-locked { overflow: hidden; }
.hidden { display: none !important; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-pad) 0; }
.section-alt { background: var(--midnight); }
.center { text-align: center; }

h1, h2, h3 { margin: 0 0 16px; }
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 64px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.04;
}
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
p { margin: 0 0 16px; }
.section-intro { color: var(--witness); max-width: 560px; margin: 0 auto 56px; }

.caption, .stat-label, .footer-head, .tc-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--witness);
}

/* ---------- sticker badge ---------- */
.sticker {
  display: inline-block;
  font-family: var(--font-sticker);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--asphalt);
  background: var(--green);
  border: 3px solid var(--paper);
  border-radius: 999px;
  padding: 8px 18px;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.9);
  transform: rotate(-3deg);
}
.sticker-hero { margin-bottom: 20px; }
.sticker-corner {
  position: absolute;
  top: -16px;
  right: -14px;
  transform: rotate(3deg);
  background: var(--orange);
}

/* ---------- PLAY NOW button (exact spec) ---------- */
.btn-play {
  display: inline-block;
  font-family: 'Anton', sans-serif;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0A0B0F;
  background: linear-gradient(135deg, #2BD96A 0%, #1FBF59 100%);
  padding: 20px 56px;
  border: none;
  border-radius: 12px;
  box-shadow:
    0 6px 0 #13863F,
    0 14px 28px rgba(43,217,106,0.28);
  transform: skewX(-4deg);
  cursor: pointer;
  position: relative;
  transition: transform 150ms ease-out, box-shadow 150ms ease-out;
}
.btn-play::after {
  content: "";
  position: absolute; inset: 0; border-radius: 12px;
  background: radial-gradient(rgba(0,0,0,0.18) 1px, transparent 1px);
  background-size: 6px 6px;
  opacity: 0.35; pointer-events: none;
}
.btn-play:hover {
  color: #0A0B0F;
  transform: skewX(-4deg) translateY(-2px);
  box-shadow: 0 8px 0 #13863F, 0 20px 36px rgba(43,217,106,0.4);
}
.btn-play:active {
  transform: skewX(-4deg) translateY(4px);
  box-shadow: 0 2px 0 #13863F, 0 8px 16px rgba(43,217,106,0.25);
}
.btn-play > span { display: inline-block; transform: skewX(4deg); }
.btn-play-hero { animation: playPulse 2.4s ease-in-out infinite alternate; }
@keyframes playPulse {
  from { box-shadow: 0 6px 0 #13863F, 0 14px 28px rgba(43,217,106,0.28); }
  to   { box-shadow: 0 6px 0 #13863F, 0 14px 40px rgba(43,217,106,0.42); }
}
.btn-play-sm { font-size: 18px; padding: 12px 32px; margin-top: 8px; }

/* ---------- wallet button ---------- */
.btn-wallet {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
  background: transparent;
  border: 1px solid var(--purple);
  border-radius: 8px;
  padding: 10px 18px;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
  white-space: nowrap;
}
.btn-wallet:hover {
  background: var(--grad-sol);
  border-color: transparent;
  color: var(--asphalt);
}
.btn-wallet.connected { color: var(--teal); border-color: var(--teal); }
.btn-wallet.connected::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  margin-right: 8px;
  vertical-align: 1px;
}
.btn-wallet.connected:hover { background: rgba(20,241,149,0.12); color: var(--teal); }
.btn-wallet-wide { width: 100%; padding: 16px; font-size: 15px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 11, 15, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 200ms ease;
}
.nav.scrolled { background: rgba(10, 11, 15, 0.8); }
@supports not (backdrop-filter: blur(1px)) {
  .nav { background: rgba(10, 11, 15, 0.92); }
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--nav-h);
  transition: height 200ms ease;
}
.nav.scrolled .nav-inner { height: 56px; }
.logo {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--paper);
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo:hover { color: var(--paper); }
.logo-chip {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--asphalt);
  background: var(--green);
  border-radius: 6px;
  padding: 2px 8px;
  transform: translateY(-1px);
}
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a {
  position: relative;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--witness);
  padding: 6px 0;
  transition: color 200ms ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 100%;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--paper); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav .btn-wallet { margin-left: 4px; }
.nav-links + .btn-wallet { margin-left: 0; }

.play-pill {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--asphalt);
  background: var(--grad-money);
  border-radius: 999px;
  padding: 9px 24px;
  box-shadow: 0 3px 0 var(--vault);
  transition: transform 150ms ease-out, box-shadow 150ms ease-out;
  white-space: nowrap;
}
.play-pill:hover { color: var(--asphalt); transform: translateY(-2px); box-shadow: 0 5px 0 var(--vault); }
.play-pill:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--vault); }

/* ---------- hamburger ---------- */
.nav-burger {
  display: none;
  position: relative;
  width: 40px; height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}
.nav-burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--paper);
  margin: 5px auto;
  border-radius: 2px;
  transition: transform 250ms ease, opacity 250ms ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(10,11,15,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px 32px 40px;
  transform: translateY(-100%);
  transition: transform 280ms ease-out, visibility 0s linear 280ms;
  visibility: hidden;
}
.mobile-menu.open { transform: translateY(0); visibility: visible; transition: transform 280ms ease-out; }
.mobile-links { display: flex; flex-direction: column; gap: 8px; }
.mobile-links a {
  font-family: var(--font-display);
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--paper);
  padding: 10px 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 250ms ease, transform 250ms ease;
}
.mobile-menu.open .mobile-links a { opacity: 1; transform: translateY(0); }
.mobile-menu.open .mobile-links a:nth-child(1) { transition-delay: 60ms; }
.mobile-menu.open .mobile-links a:nth-child(2) { transition-delay: 120ms; }
.mobile-menu.open .mobile-links a:nth-child(3) { transition-delay: 180ms; }
.mobile-menu.open .mobile-links a:nth-child(4) { transition-delay: 240ms; }
.mobile-links a:hover { color: var(--green); }
.mobile-menu .btn-wallet-wide { margin-top: auto; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  margin-top: calc(var(--nav-h) * -1);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.slides { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.slide.active { opacity: 1; }
.slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1);
}
.slide.active img { animation: kenburns 8.2s linear forwards; }
.slide.kb-a img { transform-origin: 30% 40%; }
.slide.kb-b img { transform-origin: 70% 60%; }
.slide.kb-c img { transform-origin: 50% 30%; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.07); } }

/* skyline fallback when no screenshots exist */
.skyline {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 40% at 50% 92%, rgba(43,217,106,0.16) 0%, transparent 70%),
    linear-gradient(180deg, #181029 0%, #0E1320 55%, #0A0B0F 100%);
}
.skyline svg { width: 100%; height: 100%; display: block; }
.skyline .chart-line {
  filter: drop-shadow(0 0 6px rgba(43,217,106,0.65));
  stroke-dasharray: 2600;
  stroke-dashoffset: 2600;
  animation: chartDraw 7s ease-out infinite;
}
@keyframes chartDraw {
  0% { stroke-dashoffset: 2600; opacity: 1; }
  70% { stroke-dashoffset: 0; opacity: 1; }
  92% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
.skyline .sky-candle { animation: wickFlicker 3.2s ease-in-out infinite alternate; }
@keyframes wickFlicker { from { opacity: 0.85; } to { opacity: 1; } }

/* overlays: sky gradient, scanlines, vignette */
.overlay { position: absolute; inset: 0; pointer-events: none; }
.overlay.sky { background: var(--grad-sky); }
.overlay.scanlines {
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 3px);
}
.overlay.vignette { box-shadow: inset 0 0 220px rgba(0,0,0,0.65); }

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 13vh;
}
.hero-h1 {
  font-family: 'Pricedown', 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(56px, 9vw, 128px);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 0.92;
  margin: 0 0 20px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.6);
}
.hero-sub {
  font-size: 20px;
  max-width: 560px;
  color: var(--witness);
  margin-bottom: 32px;
}
.hero-micro {
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--witness);
  margin-top: 24px;
}
.chevron {
  position: absolute;
  bottom: 64px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: chevBob 1.8s ease-in-out infinite;
  opacity: 0.8;
  transition: opacity 400ms ease;
}
.chevron.gone { opacity: 0; }
@keyframes chevBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------- stats row ---------- */
.stats-wrap { position: relative; z-index: 5; margin-top: -48px; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background:
    radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px) 0 0 / 6px 6px,
    var(--precinct);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.stat {
  padding: 32px 24px;
  text-align: center;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; }
.stat-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 6px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1.1;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}
.stat-price { color: var(--purple); }
.live-dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.live-dot .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--green);
  animation: dotRing 2s ease-out infinite;
}
@keyframes dotRing {
  from { transform: scale(1); opacity: 0.9; }
  to { transform: scale(2.2); opacity: 0; }
}
.live-dot.flash { box-shadow: 0 0 12px 3px rgba(43,217,106,0.8); }

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 55% 1fr;
  gap: 56px;
  align-items: center;
}
.about-text p { color: var(--witness); }
.about-text h2 { color: var(--paper); }
.chip-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.chip {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--green);
  border: 1px solid rgba(43,217,106,0.35);
  border-radius: 999px;
  padding: 8px 16px;
  background: rgba(43,217,106,0.06);
}
.about-media { position: relative; }
.tilt-card {
  position: relative;
  transform: rotate(1.5deg);
  border-radius: 16px;
  box-shadow: 10px 10px 0 rgba(0,0,0,0.55);
}

/* shared thumbnail with gradient fallback behind the image */
.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #1A1E28 0%, #11141B 100%);
}
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb .scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 3px);
  box-shadow: inset 0 0 80px rgba(0,0,0,0.5);
  pointer-events: none;
}
.thumb-fallback-a { background: linear-gradient(135deg, #13863F 0%, #0E1320 70%); }
.thumb-fallback-b { background: linear-gradient(135deg, #7A3A10 0%, #0E1320 70%); }
.thumb-fallback-c { background: linear-gradient(135deg, #1F4F99 0%, #0E1320 70%); }
.thumb-fallback-d { background: linear-gradient(135deg, #5A2A99 0%, #0E1320 70%); }

/* ---------- features ---------- */
.features h2 { margin-bottom: 56px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.card {
  background: var(--precinct);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 200ms ease-out, border-color 200ms ease-out;
}
.card:hover { transform: translateY(-6px); }
.card.c-green:hover { border-color: var(--green); }
.card.c-orange:hover { border-color: var(--orange); }
.card.c-blue:hover { border-color: var(--blue); }
.card.c-purple:hover { border-color: var(--purple); }
.card .thumb { border-radius: 0; }
.card-body { padding: 20px 20px 24px; }
.card-body p { color: var(--witness); font-size: 15px; margin-bottom: 14px; }
.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
}
.ic-green { color: var(--green); background: rgba(43,217,106,0.08); }
.ic-orange { color: var(--orange); background: rgba(255,122,26,0.08); }
.ic-blue { color: var(--blue); background: rgba(61,139,255,0.08); }
.ic-purple { color: var(--purple); background: rgba(153,69,255,0.08); }
.doc-link {
  font-weight: 600;
  font-size: 14px;
  color: var(--blue);
}
.doc-link:hover { color: var(--paper); }

/* ---------- how to play ---------- */
.howto h2 { margin-bottom: 12px; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  position: relative;
  background: var(--precinct);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px 24px;
  overflow: hidden;
}
.step-ghost {
  position: absolute;
  right: 8px; bottom: -22px;
  font-family: var(--font-display);
  font-size: 140px;
  line-height: 1;
  color: var(--green);
  opacity: 0.08;
  pointer-events: none;
  user-select: none;
}
.step-chip {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--asphalt);
  background: var(--green);
  border-radius: 8px;
  padding: 4px 10px;
  margin-bottom: 14px;
}
.step h3 { font-size: 20px; }
.step p { color: var(--witness); font-size: 15px; margin-bottom: 0; }
.step-cta { display: flex; flex-direction: column; align-items: flex-start; }
.step-cta p { margin-bottom: 18px; }

/* ---------- tokenomics ---------- */
.tokenomics {
  position: relative;
  background: var(--midnight);
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, #9945FF 0%, #14F195 100%) 1;
  padding: var(--section-pad) 0;
  overflow: hidden;
}
.tokenomics::before {
  content: "";
  position: absolute;
  top: -120px; left: 50%;
  width: 640px; height: 360px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(153,69,255,0.22), transparent);
  pointer-events: none;
}
.tokenomics .container { position: relative; }
.tokenomics-copy { max-width: 680px; margin: 0 auto 40px; color: var(--witness); }
.token-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}
.token-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background:
    radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px) 0 0 / 6px 6px,
    var(--precinct);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 22px;
  color: var(--paper);
}
.tc-label { font-size: 11px; }
.tc-value {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.tc-sol { background: var(--grad-sol); -webkit-background-clip: text; background-clip: text; color: transparent; }
.token-chip-copy { cursor: pointer; transition: border-color 200ms ease; color: var(--paper); }
.token-chip-copy:hover { border-color: var(--purple); }
.token-chip-copy.soon { cursor: default; }
.token-chip-copy.soon .tc-value { color: var(--witness); font-family: var(--font-body); }
.token-chip-copy.copied { border-color: var(--green); }
.token-chip-copy.copied .tc-value { color: var(--green); }
.disclaimer {
  font-size: 13px;
  color: var(--witness);
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- footer ---------- */
.footer { background: var(--asphalt); border-top: 1px solid var(--line); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding: 72px 24px;
}
.footer-brand .logo { font-size: 20px; margin-bottom: 12px; }
.footer-brand p { color: var(--witness); font-size: 15px; max-width: 320px; }
.footer-links, .footer-social { display: flex; flex-direction: column; gap: 12px; }
.footer-head { margin-bottom: 4px; }
.footer-links a { color: var(--witness); font-size: 15px; transition: color 200ms ease; }
.footer-links a:hover { color: var(--paper); }
.social-row { display: flex; gap: 12px; flex-wrap: wrap; }
.social-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--precinct);
  color: var(--witness);
  transition: color 200ms ease, border-color 200ms ease, transform 150ms ease-out;
}
.social-chip:hover { color: var(--paper); border-color: var(--green); transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid var(--line); }
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  font-size: 13px;
  color: var(--witness);
}
.footer-bottom-inner a { color: var(--witness); }
.footer-bottom-inner a:hover { color: var(--paper); }
.built-on { font-weight: 600; }
.sol-word {
  background: var(--grad-sol);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}
.footer-slim { margin-top: 72px; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 500ms ease-out, transform 500ms ease-out; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- docs layout ---------- */
.docs-body { background: var(--asphalt); }
.docs-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 760px);
  gap: 56px;
  padding-top: 48px;
  justify-content: center;
}
.docs-toggle {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: var(--precinct);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--paper);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  padding: 14px 18px;
  cursor: pointer;
  margin-bottom: 16px;
}
.docs-toggle svg { transition: transform 200ms ease; }
.docs-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.docs-sidebar {
  align-self: start;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  background: var(--precinct);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 0;
}
.docs-nav-tree { display: flex; flex-direction: column; }
.docs-nav-tree a {
  color: var(--witness);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 22px;
  border-left: 2px solid transparent;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}
.docs-nav-tree a:hover { color: var(--paper); background: rgba(255,255,255,0.03); }
.docs-nav-tree a.active {
  color: var(--green);
  border-left-color: var(--green);
  background: rgba(43,217,106,0.06);
}
.docs-content { min-width: 0; padding-bottom: 48px; }
.doc-section { padding: 32px 0 48px; border-bottom: 1px solid var(--line); }
.doc-section:last-child { border-bottom: none; }
.doc-section h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 44px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.doc-section h2 { font-size: clamp(20px, 2.4vw, 26px); margin-top: 36px; }
.doc-intro { color: var(--green); font-weight: 600; margin-bottom: 24px; }
.doc-section p, .doc-section li, .doc-section dd { color: var(--witness); }
.doc-section strong { color: var(--paper); }
.doc-section ol, .doc-section ul { padding-left: 22px; margin: 0 0 16px; }
.doc-section li { margin-bottom: 10px; }
.doc-note {
  border-left: 3px solid var(--purple);
  background: rgba(153,69,255,0.07);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  font-size: 15px;
}
code {
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--precinct);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 7px;
  color: var(--teal);
  white-space: nowrap;
}
.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 24px;
  font-size: 15px;
}
.doc-table th {
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--witness);
  border-bottom: 1px solid var(--curb);
  padding: 10px 14px;
}
.doc-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  color: var(--witness);
  vertical-align: top;
}
.doc-table td strong, .doc-table td:first-child { color: var(--paper); }
.doc-table tr:hover td { background: rgba(255,255,255,0.02); }
.district-list li { margin-bottom: 14px; }
.faq-list dt {
  color: var(--paper);
  font-weight: 700;
  margin-top: 22px;
  margin-bottom: 6px;
}
.faq-list dd { margin: 0 0 8px; }
.phase { margin-bottom: 28px; }
.phase-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  border-radius: 6px;
  padding: 3px 10px;
  margin-right: 10px;
  vertical-align: 4px;
}
.phase-live { background: var(--green); color: var(--asphalt); }
.phase-next { background: var(--purple); color: var(--paper); }
.phase-later { background: var(--curb); color: var(--witness); }

/* ---------- breakpoints ---------- */
@media (max-width: 1280px) {
  .container { max-width: 1140px; }
}

@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-media { max-width: 560px; }
  .docs-shell { display: block; }
  .docs-toggle { display: flex; }
  .docs-sidebar {
    display: none;
    position: static;
    margin-bottom: 24px;
  }
  .docs-sidebar.open { display: block; }
}

@media (max-width: 768px) {
  :root { --section-pad: 72px; }
  .nav-links { display: none; }
  .nav-burger { display: block; margin-left: auto; }
  .nav .btn-wallet, .nav .play-pill { margin-left: auto; }
  .nav .btn-wallet + .nav-burger, .nav .play-pill + .nav-burger { margin-left: 8px; }
  .hero { min-height: 560px; }
  .stats-wrap { margin-top: 0; padding-top: 24px; }
  .stat { padding: 24px 16px; }
  .stat-num { font-size: 36px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding: 56px 24px; }
  .chevron { bottom: 40px; }
}

@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-left: none; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: none; }
  .btn-play { display: block; text-align: center; padding: 18px 24px; }
  .nav .btn-wallet { display: none; }
  .nav .btn-wallet + .nav-burger { margin-left: auto; }
  .sticker { font-size: 11px; padding: 7px 15px; }
  .token-chips { flex-direction: column; align-items: stretch; }
  .token-chip { justify-content: space-between; }
  .footer-bottom-inner { flex-direction: column; text-align: 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;
  }
  .slide.active img { animation: none; }
  .btn-play-hero { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .chevron { animation: none; }
  .skyline .chart-line { animation: none; stroke-dashoffset: 0; }
}
