:root {
  --ink: #2a1a12;
  --muted: #5c4638;
  --dim: #7a6154;
  --orange: #c2410c;
  --violet: #6d28d9;
  --up: #0d6b3c;
  --down: #9c2f24;
  --display: "Space Grotesk", Inter, "Segoe UI", sans-serif;
  --text: Inter, "Segoe UI", sans-serif;
  --shadow: 0 18px 50px rgba(90, 36, 12, 0.08);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #fff;
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
}
main {
  background:
    radial-gradient(720px 220px at 50% 12%, rgba(255, 176, 120, 0.16), transparent 70%),
    radial-gradient(640px 200px at 78% 38%, rgba(255, 196, 160, 0.12), transparent 72%),
    radial-gradient(680px 220px at 18% 62%, rgba(255, 170, 130, 0.1), transparent 72%),
    radial-gradient(760px 240px at 60% 88%, rgba(255, 186, 150, 0.12), transparent 70%);
}
button, input { font: inherit; }
a { color: #9a3412; }
a:hover { color: var(--violet); }

.sky-fallback, #domes, .scan { display: none; }
#sky {
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
}
#root { position: relative; z-index: 1; }

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  background: #fff;
  padding: 8px 16px;
}
.skip:focus { top: 8px; }

.wrap {
  width: min(760px, calc(100% - 48px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
}
.nav .wrap { width: min(1040px, calc(100% - 64px)); }
.nav-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}
.brand {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.04em;
}
.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-links a:hover { color: var(--orange); }

.hero {
  min-height: calc(100svh - 72px);
  display: flex;
  align-items: center;
  padding: 24px 0 48px;
}
.hero .wrap {
  width: min(1040px, calc(100% - 64px));
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  align-items: center;
  gap: 40px;
}
.hero-copy { max-width: 36rem; }
.stage {
  position: relative;
  width: min(480px, 100%);
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.planet {
  position: relative;
  z-index: 1;
  width: min(300px, 72%);
  aspect-ratio: 1;
  margin-bottom: -72px;
}
.skyline {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  display: block;
}
#sky { position: relative; z-index: 1; display: block; width: 100%; height: 100%; background: transparent; }
.mark { position: relative; display: inline-block; }
.mark-glow {
  position: absolute;
  inset: 20% 8% 0;
  background: radial-gradient(circle, rgba(255, 150, 90, 0.45), rgba(180, 80, 160, 0.16) 48%, transparent 72%);
  filter: blur(16px);
  z-index: -1;
}
.wordmark {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(4.2rem, 12vw, 7rem);
  line-height: 0.88;
  letter-spacing: -0.05em;
  background-image: url("/nebula.png");
  background-size: cover;
  background-position: center;
  -webkit-background-clip: text;
  background-clip: text;
  color: #b8430c;
  -webkit-text-fill-color: transparent;
}
.subtitle {
  margin: 16px 0 0;
  font-size: 1.25rem;
  font-weight: 500;
}
.deck {
  margin: 12px 0 0;
  max-width: 36ch;
  color: var(--muted);
}
.hero-actions { margin-top: 32px; }

.btn {
  appearance: none;
  border: 0;
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  min-height: 48px;
  padding: 0 24px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(194, 65, 12, 0.22);
}
.btn:hover, .btn:focus-visible { background: #9a3412; color: #fff; }
.btn:disabled {
  background: #f3ebe6;
  color: #b5a197;
  box-shadow: none;
  cursor: not-allowed;
}
.btn-ghost {
  background: #fff;
  color: var(--violet);
  box-shadow: 0 8px 24px rgba(90, 36, 12, 0.06);
}
.btn-ghost:hover, .btn-ghost:focus-visible { background: #faf7ff; color: var(--violet); }

.section { padding: 96px 0; scroll-margin-top: 88px; }
h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.6rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.lede {
  margin: 12px 0 0;
  max-width: 46ch;
  color: var(--muted);
}

.card {
  margin-top: 32px;
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 32px;
}
.figures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.tile {
  background: #fff7f2;
  border-radius: 16px;
  padding: 16px 14px 18px;
  min-height: 92px;
}
.figures span, .tile span {
  display: block;
  color: var(--dim);
  font-size: 0.875rem;
}
.shimmer {
  display: block;
  height: 22px;
  margin-top: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f3e4d8, #fff, #f3e4d8);
  background-size: 200% 100%;
  animation: sheen 1.4s linear infinite;
}
.figures strong {
  display: block;
  margin-top: 6px;
  font-family: var(--display);
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
  background-image: linear-gradient(100deg, #c2410c, #e15a4a 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: #c2410c;
  -webkit-text-fill-color: transparent;
}
.figures strong.blank {
  background-image: none;
  -webkit-text-fill-color: #9a3412;
  color: #9a3412;
  font-family: var(--text);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.figures .up strong {
  background-image: none;
  -webkit-text-fill-color: var(--up);
  color: var(--up);
}
.figures .down strong {
  background-image: none;
  -webkit-text-fill-color: var(--down);
  color: var(--down);
}
.quiet { color: var(--muted); margin: 16px 0 0; }
.strip {
  display: grid;
  grid-template-columns: auto repeat(3, minmax(0, 1fr));
  gap: 16px 24px;
  align-items: end;
}
.strip p { margin: 0; }
.strip span, .facts span { display: block; color: var(--dim); font-size: 0.8125rem; }
.strip strong { display: block; margin-top: 4px; font-family: var(--display); font-size: 1.35rem; letter-spacing: -0.03em; }
.strip-title { font-weight: 600; align-self: center; }
.strip .shimmer { width: 72%; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 24px; margin-top: 28px; }
.facts strong { display: block; margin-top: 4px; font-family: var(--display); font-size: 1.45rem; letter-spacing: -0.03em; }
.meter { height: 10px; border-radius: 999px; background: #fff1e8; margin-top: 16px; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #c2410c, #e07a4a); }
.explorer { margin-top: 28px; }
.explorer-head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.explorer-head p { margin: 0; color: var(--muted); }
.explorer-head strong { font-family: var(--display); letter-spacing: -0.03em; }
.chart { width: 100%; height: auto; display: block; margin-top: 8px; }
.chart line { stroke: #eadfd4; stroke-width: 1; }
.chart text { fill: #5c4638; font-size: 15px; font-family: Inter, "Segoe UI", sans-serif; }
.chart-area { fill: rgba(194, 65, 12, 0.12); stroke: none; }
.chart-line { fill: none; stroke: #c2410c; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.scrub { display: grid; gap: 8px; margin-top: 8px; color: var(--muted); }
.scrub input { width: 100%; accent-color: var(--orange); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.compare article { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 20px; }
.compare h3 { margin: 0 0 6px; }
.compare p { margin: 0 0 10px; color: var(--muted); }
.compare strong { display: block; margin-bottom: 8px; color: #9a3412; }
.compare .warn-text { color: #9c2f24; }
.meta { margin: 20px 0 0; color: var(--dim); font-size: 0.875rem; }
.meta a { font-weight: 600; }

.skeleton { display: grid; gap: 16px; }
.skeleton span {
  display: block;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f6eee8, #fff, #f6eee8);
  background-size: 200% 100%;
  animation: sheen 1.4s linear infinite;
}
.skeleton span:nth-child(2) { width: 70%; }
.skeleton span:nth-child(3) { width: 46%; }
@keyframes sheen { to { background-position: -200% 0; } }

.points, .steps { display: grid; gap: 28px; margin-top: 40px; }
.point, .step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
}
.point h3, .step h3 { margin: 0; font-size: 1.125rem; font-weight: 600; }
.point p, .step p { margin: 4px 0 0; color: var(--muted); max-width: 52ch; }
.icon, .num {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #fff1e8;
  color: var(--orange);
  display: grid;
  place-items: center;
}
.num {
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 600;
}

.more { margin-top: 28px; }
.more summary {
  cursor: pointer;
  color: var(--orange);
  font-weight: 600;
  list-style: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.more summary::-webkit-details-marker { display: none; }
.more-body { display: grid; gap: 12px; padding-top: 8px; max-width: 62ch; }
.more-body p { margin: 0; color: var(--muted); }
.links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.links a { font-weight: 600; }

.colony { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 4px 0 16px; }
.plot { text-align: center; }
.plot svg { width: 64px; height: 40px; display: block; margin: 0 auto 8px; }
.plot strong, .plot span { display: block; font-size: 0.8125rem; line-height: 1.35; }
.plot strong { color: var(--ink); }
.plot span { color: var(--muted); }
.plot.later svg { overflow: visible; }
.plot.later path {
  fill: none;
  stroke: #c2410c;
  stroke-width: 2.25;
  stroke-dasharray: 5 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.plot.later strong { color: #9a3412; }
.plot.later span { color: #5c4638; }
.soon-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  color: var(--muted);
}
.soon {
  border-radius: 999px;
  background: #fff1e8;
  color: #9a3412;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 12px;
  white-space: nowrap;
}
.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 20px 0;
  max-width: 52ch;
}
.consent input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--orange); flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.status { margin: 16px 0 0; }

.rows { margin-top: 28px; display: grid; gap: 8px; }
.rows a {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 12px 0;
  border-radius: 16px;
}
.rows a:hover strong { color: var(--orange); }
.rows strong { display: block; font-weight: 600; }
.rows span { display: block; margin-top: 4px; color: var(--dim); font-size: 0.875rem; }

#wallet { padding-bottom: 28px; }
#ledger { padding-top: 12px; }
#dispatches { min-height: 100svh; }
.colophon {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 64px 0;
}
.habitat { width: 220px; height: auto; display: block; margin-bottom: 20px; }
.wordmark-small { font-size: clamp(2.4rem, 6vw, 3.4rem); }
.disclaimer { margin-top: 16px; max-width: 58ch; color: var(--muted); }

.sliders { display: grid; gap: 16px; }
.sliders label { display: grid; gap: 8px; color: var(--muted); }
.sliders input { width: 100%; accent-color: var(--orange); }
code { overflow-wrap: anywhere; }

:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
.wait { opacity: 0; transform: translateY(14px); }
.wait.in { opacity: 1; transform: none; transition: opacity 0.45s ease, transform 0.45s ease; }

@media (max-width: 800px) {
  .wrap, .hero .wrap { width: min(760px, calc(100% - 40px)); }
  .hero {
    min-height: auto;
    align-items: flex-start;
    padding: 12px 0 40px;
  }
  .hero .wrap { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
  .stage { width: min(360px, 100%); margin: 8px auto 0; }
  .planet { width: min(210px, 62%); margin: 0 auto -52px; }
  .nav-bar { flex-wrap: wrap; gap: 8px 16px; padding: 8px 0; }
  .nav-links { width: 100%; gap: 16px; overflow-x: auto; }
  .section { padding: 64px 0; }
  .card { padding: 24px; border-radius: 20px; }
  .figures { grid-template-columns: 1fr 1fr; }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip-title { grid-column: 1 / -1; }
  .compare { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .btn, .actions .btn { width: 100%; }
  .actions { display: grid; }
  .soon-line { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .skeleton span, .shimmer { animation: none; }
  .wait { opacity: 1; transform: none; }
}
