/* ---------------------------------------------------------------------------
   Frontier — site styles
   Dark space theme. Colors are tokens on :root; change them in one place.
   --------------------------------------------------------------------------- */

:root {
  color-scheme: dark;
  --bg: #070a12;
  --surface: #10151f;
  --surface-2: #161c29;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f5f9;
  --text-2: #b8c0cf;
  --muted: #8a93a6;

  --accent: #d95926;            /* Mars rust: primary action + meter fill */
  --accent-text: #e86b3c;       /* accent for small text: passes contrast on dark */
  --accent-hover: #e8673a;
  --accent-soft: rgba(217, 89, 38, 0.16);
  --track: rgba(217, 89, 38, 0.22); /* unfilled meter track: same ramp, lighter step */
  --blue: #3987e5;              /* second allocation series */
  --gold: #c98500;              /* Titan haze: notice border */
  --good: #0ca30c;
  --header-bg: rgba(7, 10, 18, 0.82);
  --overlay: rgba(7, 10, 18, 0.55);
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181;
  --hero-grad-a: #ffffff; --hero-grad-b: #ffd9c4;

  --radius: 14px;
  --radius-sm: 10px;
  --font-display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Light theme: chosen explicitly, or by the OS when no choice is stored. */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-2: #f0ede6;
  --border: rgba(11, 11, 11, 0.08);
  --border-strong: rgba(11, 11, 11, 0.18);
  --text: #0b0b0b;
  --text-2: #4a4944;
  --muted: #6f6d67;
  --accent: #d4511f;
  --accent-text: #b2421a;
  --accent-hover: #e8673a;
  --accent-soft: rgba(212, 81, 31, 0.12);
  --track: rgba(212, 81, 31, 0.18);
  --blue: #2a78d6;
  --gold: #a86d00;
  --good: #006300;
  --header-bg: rgba(246, 244, 239, 0.86);
  --overlay: rgba(255, 255, 255, 0.6);
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --s5: #e87ba4;
  --hero-grad-a: #0b0b0b; --hero-grad-b: #7a2e12;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
  color-scheme: light;
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-2: #f0ede6;
  --border: rgba(11, 11, 11, 0.08);
  --border-strong: rgba(11, 11, 11, 0.18);
  --text: #0b0b0b;
  --text-2: #4a4944;
  --muted: #6f6d67;
  --accent: #d4511f;
  --accent-text: #b2421a;
  --accent-hover: #e8673a;
  --accent-soft: rgba(212, 81, 31, 0.12);
  --track: rgba(212, 81, 31, 0.18);
  --blue: #2a78d6;
  --gold: #a86d00;
  --good: #006300;
  --header-bg: rgba(246, 244, 239, 0.86);
  --overlay: rgba(255, 255, 255, 0.6);
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --s5: #e87ba4;
  --hero-grad-a: #0b0b0b; --hero-grad-b: #7a2e12;
}
}
:root[data-theme="light"] .stars, :root[data-theme="light"] .stars-near, :root[data-theme="light"] .cursor-glow { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .stars, :root:not([data-theme="dark"]) .stars-near, :root:not([data-theme="dark"]) .cursor-glow { display: none; }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5.2vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---- Layout ----------------------------------------------------------------- */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 720px) { .container { padding: 0 24px; } }

.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.section + .section { border-top: 1px solid var(--border); }

.section-head { max-width: 72ch; margin-bottom: 40px; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-text, var(--accent));
  font-weight: 600;
  margin-bottom: 14px;
}
.lede { font-size: 1.1rem; color: var(--text-2); max-width: 64ch; }

.grid { display: grid; gap: 16px; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 720px) and (max-width: 899px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 720px) { .grid-4-chain { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .grid-4-chain { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin-top: 0; }
.card p { color: var(--text-2); }
.card-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.tag {
  display: inline-block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 10px;
}

/* ---- Starfield --------------------------------------------------------------- */

.stars {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1px 1px at 8% 12%, rgba(255,255,255,0.55), transparent 60%),
    radial-gradient(1px 1px at 22% 38%, rgba(255,255,255,0.35), transparent 60%),
    radial-gradient(1.5px 1.5px at 31% 8%, rgba(255,255,255,0.5), transparent 60%),
    radial-gradient(1px 1px at 44% 62%, rgba(255,255,255,0.3), transparent 60%),
    radial-gradient(1px 1px at 57% 22%, rgba(255,255,255,0.45), transparent 60%),
    radial-gradient(1.5px 1.5px at 68% 48%, rgba(255,255,255,0.4), transparent 60%),
    radial-gradient(1px 1px at 76% 80%, rgba(255,255,255,0.3), transparent 60%),
    radial-gradient(1px 1px at 84% 16%, rgba(255,255,255,0.5), transparent 60%),
    radial-gradient(1px 1px at 92% 58%, rgba(255,255,255,0.35), transparent 60%),
    radial-gradient(1.5px 1.5px at 15% 78%, rgba(255,255,255,0.4), transparent 60%),
    radial-gradient(1px 1px at 50% 92%, rgba(255,255,255,0.3), transparent 60%),
    radial-gradient(1px 1px at 63% 5%, rgba(255,255,255,0.3), transparent 60%),
    radial-gradient(700px 420px at 85% -5%, rgba(217,89,38,0.14), transparent 70%),
    radial-gradient(600px 400px at -10% 95%, rgba(57,135,229,0.10), transparent 70%);
}

/* ---- Header / nav ------------------------------------------------------------ */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  text-decoration: none;
}
.brand-mark {
  width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f2a57a, var(--accent) 55%, #5a220e 100%);
  box-shadow: 0 0 0 3px rgba(217, 89, 38, 0.18);
}
.nav-links {
  display: none; gap: 26px; list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  text-decoration: none; color: var(--text-2); font-size: 0.95rem;
}
.nav-links a:hover { color: var(--text); }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: transparent; border: 1px solid var(--border); color: var(--text);
  cursor: pointer;
}
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}
.site-header.nav-open .nav-links {
  display: flex; flex-direction: column; gap: 4px;
  position: absolute; top: 64px; left: 0; right: 0;
  background: var(--bg);
  padding: 12px 16px 20px;
  border-bottom: 1px solid var(--border);
}
.site-header.nav-open .nav-links a {
  display: block; padding: 10px 8px; border-radius: 8px;
}

/* ---- Buttons ------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { background: var(--surface); }
.btn-sm { padding: 7px 12px; font-size: 0.85rem; }

/* ---- Hero -------------------------------------------------------------------- */

.hero { padding: 64px 0 56px; }
@media (min-width: 900px) { .hero { padding: 96px 0 80px; } }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; } }
.hero h1 { max-width: 16ch; }
.hero .lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-art { max-width: 440px; margin: 0 auto; width: 100%; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 0.85rem; color: var(--text-2); margin-bottom: 20px;
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); }

/* ---- Supply highlight ----------------------------------------------------------- */

.supply-box {
  position: relative; overflow: hidden;
  border: 1px solid var(--border-strong); border-radius: 24px;
  background:
    radial-gradient(900px 400px at 10% 0%, rgba(217,89,38,0.22), transparent 60%),
    radial-gradient(600px 300px at 100% 100%, rgba(201,133,0,0.14), transparent 60%),
    var(--surface);
  padding: 36px 24px; display: grid; gap: 32px;
}
@media (min-width: 900px) { .supply-box { grid-template-columns: 1.1fr 0.9fr; padding: 56px; gap: 48px; align-items: center; } }
.supply-figure {
  font-family: var(--font-display); font-weight: 700; line-height: 1;
  font-size: clamp(2.8rem, 9vw, 5.6rem); letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--hero-grad-a) 0%, var(--hero-grad-b) 50%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 8px 0 16px; text-shadow: none;
}
.supply-caption { color: var(--text-2); font-size: 1.1rem; max-width: 40ch; }
.supply-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.supply-facts li {
  display: grid; gap: 4px; padding: 16px 18px; border-radius: 14px;
  background: var(--overlay); border: 1px solid var(--border);
}
.supply-facts b { font-size: 1rem; }
.supply-facts span { color: var(--text-2); font-size: 0.93rem; }

/* ---- Stat tiles ---------------------------------------------------------------- */

.kpi-row { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .kpi-row { grid-template-columns: repeat(4, 1fr); } }
.stat-featured {
  grid-column: 1 / -1;
  border-color: rgba(217, 89, 38, 0.45);
  background:
    radial-gradient(600px 200px at 0% 0%, rgba(217,89,38,0.18), transparent 60%),
    var(--surface);
}
.stat-featured .stat-value { font-size: 2.4rem; }
@media (min-width: 720px) {
  .stat-featured { display: grid; grid-template-columns: auto 1fr; column-gap: 28px; align-items: center; }
  .stat-featured .stat-label { grid-column: 1 / -1; }
  .stat-featured .stat-sub { margin-top: 0; max-width: 60ch; }
}
.stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px;
}
.stat-label { font-size: 0.84rem; color: var(--muted); margin-bottom: 6px; }
.stat-value { font-size: 1.9rem; font-weight: 600; line-height: 1.1; }
.stat-sub { font-size: 0.84rem; color: var(--text-2); margin-top: 6px; }
.status-note { color: var(--muted); font-size: 0.9rem; margin-top: 16px; }

/* ---- Timeline ------------------------------------------------------------------ */

.timeline-wrap { position: relative; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline-line {
  position: absolute; left: 15px; top: 10px; bottom: 10px;
  width: 1px; background: var(--border-strong);
}
.timeline-line i {
  position: absolute; inset: 0; display: block;
  background: linear-gradient(to bottom, var(--accent), var(--gold));
  transform-origin: top; transform: scaleY(0);
}
.timeline li { position: relative; padding-left: 52px; margin-bottom: 36px; }
.timeline li:last-child { margin-bottom: 0; }
.timeline .dot {
  position: absolute; left: 3px; top: 0;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border-strong);
  display: grid; place-items: center;
  font-size: 0.78rem; font-weight: 600; color: var(--text-2);
}
.timeline li.now .dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.timeline .when {
  font-size: 0.76rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px;
}
.timeline h3 { margin-bottom: 6px; }
.timeline p { color: var(--text-2); max-width: 64ch; }

/* ---- Allocation bar (part-to-whole, 2 series) ----------------------------------- */

.alloc { margin: 8px 0 36px; }
.alloc-bar {
  display: flex; gap: 2px; height: 18px;
  border-radius: 4px; overflow: hidden;
}
.alloc-seg { height: 100%; }
.alloc-seg[data-key="mission"] { background: var(--accent); }
.alloc-seg[data-key="operations"] { background: var(--blue); }
.legend {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  margin-top: 12px; font-size: 0.92rem; color: var(--text-2);
}
.legend li { list-style: none; display: inline-flex; align-items: center; }
.legend ul, ul.legend { padding: 0; margin: 12px 0 0; }
.sw {
  display: inline-block; width: 12px; height: 12px; border-radius: 3px;
  margin-right: 8px; flex: none;
}
.sw[data-key="mission"] { background: var(--accent); }
.sw[data-key="operations"] { background: var(--blue); }
.legend b { color: var(--text); font-weight: 600; margin-left: 6px; }

/* ---- Token allocation bar (part-to-whole, 5 series) ------------------------------- */

.tok-alloc { margin: 8px 0 0; }
.tok-bar { display: flex; gap: 2px; height: 22px; border-radius: 4px; overflow: hidden; }
.tok-seg { height: 100%; }
.tok-seg[data-key="contributors"], .sw[data-key="contributors"] { background: var(--s1); }
.tok-seg[data-key="community"],    .sw[data-key="community"]    { background: var(--s2); }
.tok-seg[data-key="reserve"],      .sw[data-key="reserve"]      { background: var(--s3); }
.tok-seg[data-key="team"],         .sw[data-key="team"]         { background: var(--s4); }
.tok-seg[data-key="liquidity"],    .sw[data-key="liquidity"]    { background: var(--s5); }
td .sw { vertical-align: -1px; }

/* ---- Meter ----------------------------------------------------------------------- */

.meter-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.meter-labels {
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 0.9rem; color: var(--text-2); margin-bottom: 12px;
}
.meter-labels b { color: var(--text); font-weight: 600; }
.meter-labels .right { text-align: right; }
.meter { height: 12px; background: var(--track); border-radius: 4px; overflow: hidden; }
.meter-fill {
  height: 100%; width: 0; background: var(--accent);
  border-radius: 0 4px 4px 0;
  transition: width 0.8s ease;
}
.meter-foot {
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 0.84rem; color: var(--muted); margin-top: 10px;
}

.milestones { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.milestone {
  display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px;
}
@media (max-width: 480px) { .milestone { grid-template-columns: 1fr; gap: 6px; } }
.milestone .amt { font-weight: 600; font-size: 1.05rem; }
.milestone h4 { margin: 0 0 4px; font-size: 1rem; font-weight: 600; }
.milestone p { color: var(--text-2); font-size: 0.92rem; margin: 0; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 3px 8px; border-radius: 999px; margin-left: 8px; vertical-align: 2px;
  border: 1px solid var(--border-strong); color: var(--text-2);
}
.badge.next { border-color: var(--accent); color: var(--text); }
.badge.reached { border-color: rgba(12,163,12,0.6); color: var(--text); }
.badge svg { width: 11px; height: 11px; }

/* ---- Tables ---------------------------------------------------------------------- */

.table-wrap {
  overflow-x: auto; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface);
}
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
th {
  color: var(--muted); font-weight: 500; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap;
}
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.empty { color: var(--muted); text-align: center; padding: 32px 16px; }
.cat {
  display: inline-block; font-size: 0.76rem; padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--border-strong); color: var(--text-2); text-transform: capitalize;
}

/* ---- Contributor wall ------------------------------------------------------------- */

.wall-tools {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  justify-content: space-between; margin-bottom: 20px;
}
.wall-count { color: var(--muted); font-size: 0.92rem; }
.input {
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: 11px 14px;
  color: var(--text); font: inherit; min-width: 0; width: 100%;
}
.input::placeholder { color: var(--muted); }
.wall-tools .input { max-width: 320px; }
.wall { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.contrib {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px;
}
.contrib .name { font-weight: 600; }
.contrib .meta { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.contrib .note { font-size: 0.9rem; color: var(--text-2); margin-top: 8px; font-style: italic; }
.empty-box {
  border: 1px dashed var(--border-strong); border-radius: var(--radius);
  padding: 40px 24px; text-align: center; color: var(--muted);
}
.empty-box b { color: var(--text-2); font-weight: 600; }

/* ---- Donation proof --------------------------------------------------------------- */

.pledge {
  display: grid; gap: 16px; align-items: start;
}
@media (min-width: 900px) { .pledge { grid-template-columns: 1fr 1fr; gap: 24px; } }
.pledge-figure { font-size: 3rem; font-weight: 700; line-height: 1; font-family: var(--font-display); }
.pledge-figure small { font-size: 1rem; color: var(--muted); font-weight: 500; font-family: var(--font-body); margin-left: 8px; }
.video-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.video-list li {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 16px; font-size: 0.95rem;
}
.video-list .meta { color: var(--muted); font-size: 0.85rem; }

/* ---- Token ----------------------------------------------------------------------- */

.token-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .token-grid { grid-template-columns: 1fr 1fr; } }
.kv {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--surface);
}
.kv-row {
  display: grid; grid-template-columns: 130px 1fr; gap: 12px;
  padding: 14px 20px; border-bottom: 1px solid var(--border); align-items: center;
}
.kv-row:last-child { border-bottom: 0; }
.kv-k { color: var(--muted); font-size: 0.9rem; }
.kv-v { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 420px) { .kv-row { grid-template-columns: 96px 1fr; padding: 12px 16px; } }
.mono { font-family: var(--mono); font-size: 0.86rem; word-break: break-all; }
.addr-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.not-yet { color: var(--muted); font-style: italic; }
.props { display: grid; gap: 12px; }
@media (min-width: 520px) { .props { grid-template-columns: 1fr 1fr; } }
.prop {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 18px;
}
.prop b { display: block; margin-bottom: 4px; }
.prop span { color: var(--text-2); font-size: 0.92rem; }
.token-note { color: var(--muted); font-size: 0.9rem; margin-top: 16px; }

/* ---- FAQ ------------------------------------------------------------------------- */

.faq { max-width: 80ch; }
.faq details { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq details:first-of-type { border-top: 1px solid var(--border); }
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--muted); font-weight: 400; font-size: 1.3rem; flex: none;
}
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { color: var(--text-2); margin-top: 12px; max-width: 70ch; }

/* ---- Notice ---------------------------------------------------------------------- */

.notice-section { padding: 0 0 24px; }
.notice-section + .section { border-top: 0; }
.notice {
  border-top: 1px solid var(--border);
  padding: 20px 0 0;
  color: var(--muted); font-size: 0.82rem; line-height: 1.6; max-width: 90ch;
}
.notice b { color: var(--text-2); font-weight: 600; }

/* ---- Join ------------------------------------------------------------------------- */

.join-box {
  background: linear-gradient(135deg, rgba(217,89,38,0.14), rgba(57,135,229,0.10));
  border: 1px solid var(--border-strong); border-radius: 20px;
  padding: 32px 24px;
}
@media (min-width: 720px) { .join-box { padding: 48px; } }
.join-form { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; max-width: 560px; }
.join-form .input { flex: 1 1 240px; }
.join-note { color: var(--muted); font-size: 0.86rem; margin-top: 12px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.socials a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; text-decoration: none;
  border: 1px solid var(--border-strong); color: var(--text-2); font-size: 0.9rem;
}
.socials a:hover { color: var(--text); background: var(--surface); }
.socials li[hidden] { display: none; }

/* ---- Footer ------------------------------------------------------------------------ */

.site-footer {
  border-top: 1px solid var(--border); padding: 32px 0 40px;
  color: var(--muted); font-size: 0.9rem;
}
.footer-row { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.footer-row a { color: var(--text-2); text-decoration: none; }
.footer-row a:hover { color: var(--text); }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; margin: 0; padding: 0; }

/* ---- Misc ---------------------------------------------------------------------------- */

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  background: var(--surface-2); border: 1px solid var(--border-strong);
  color: var(--text); padding: 10px 16px; border-radius: 999px; font-size: 0.9rem;
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 60;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- Motion ---------------------------------------------------------------------------
   Continuous CSS animations live here. Scroll-driven motion is in js/animations.js. */

/* Starfield depth: the near layer moves faster on scroll (see animations.js). */
.stars { inset: -50vh 0; will-change: transform; }
.stars-near {
  position: fixed; inset: -50vh 0; z-index: -1; pointer-events: none; will-change: transform;
  background:
    radial-gradient(2px 2px at 18% 28%, rgba(255,255,255,0.7), transparent 60%),
    radial-gradient(2px 2px at 72% 14%, rgba(255,255,255,0.6), transparent 60%),
    radial-gradient(2.5px 2.5px at 38% 70%, rgba(255,255,255,0.55), transparent 60%),
    radial-gradient(2px 2px at 88% 44%, rgba(255,255,255,0.6), transparent 60%),
    radial-gradient(2px 2px at 10% 86%, rgba(255,255,255,0.5), transparent 60%),
    radial-gradient(2.5px 2.5px at 55% 36%, rgba(255,255,255,0.45), transparent 60%),
    radial-gradient(2px 2px at 80% 78%, rgba(255,255,255,0.55), transparent 60%),
    radial-gradient(2px 2px at 27% 50%, rgba(255,255,255,0.4), transparent 60%);
}

/* Soft glow that follows the pointer (desktop only). */
.cursor-glow {
  position: fixed; left: 0; top: 0; z-index: 0; pointer-events: none;
  width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(217,89,38,0.16), rgba(57,135,229,0.06) 45%, transparent 70%);
  opacity: 0; will-change: transform;
}
@media (hover: hover) and (pointer: fine) { .cursor-glow { opacity: 1; } }
main, .site-header, .site-footer { position: relative; z-index: 1; }

/* Hero orbit system. */
.orbit-svg .belt, .orbit-svg .orbit, .orbit-svg .rings, .orbit-svg .sun-glow {
  transform-origin: 220px 220px; transform-box: view-box;
}
.orbit-svg .belt { animation: spin 140s linear infinite; }
.orbit-svg .orbit-mars { animation: spin 48s linear infinite; }
.orbit-svg .orbit-saturn { animation: spin 110s linear infinite; }
.orbit-svg .rings { animation: spin 400s linear infinite reverse; }
.orbit-svg .sun-glow { animation: pulse 6s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.12); opacity: 1; } }

/* Hero headline word reveal. */
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero h1 .w > span { display: inline-block; will-change: transform; }

/* Marquee strip under the hero. */
.marquee {
  overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 14px 0; margin-bottom: 56px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex; gap: 0; width: max-content; white-space: nowrap;
  animation: marquee 40s linear infinite; will-change: transform;
}
.marquee-track span {
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2);
  padding: 0 28px; position: relative;
}
.marquee-track span::after {
  content: "\2726"; position: absolute; right: -8px; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-size: 0.7rem;
}
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-track.js { animation: none; }

/* Header gains a shadow once the page is scrolled. */
.site-header { transition: box-shadow 0.3s ease, background 0.3s ease; }
.site-header.scrolled { box-shadow: 0 10px 30px rgba(0,0,0,0.18); background: var(--header-bg); }

/* 3D tilt on cards. */
.grid, .kpi-row, .token-grid { perspective: 1200px; }
.card, .stat { transform-style: preserve-3d; will-change: transform; }
.card:hover, .stat:hover { border-color: var(--border-strong); }

/* Pledge figure glow. */
.pledge-figure { text-shadow: 0 0 40px rgba(217,89,38,0.35); }

/* Gradient sheen on primary buttons. */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.6s ease;
}
.btn-primary:hover::after { transform: translateX(120%); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .meter-fill, .toast, .btn, .site-header { transition: none; }
  .orbit-svg .belt, .orbit-svg .orbit, .orbit-svg .rings, .orbit-svg .sun-glow,
  .marquee-track { animation: none; }
  .cursor-glow { display: none; }
  .timeline-line i { transform: scaleY(1); }
}

/* ---- Theme switch ------------------------------------------------------------------ */
.theme-switch {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--surface); margin-left: 8px;
}
.theme-switch button {
  width: 30px; height: 30px; border-radius: 50%; border: 0; background: transparent;
  color: var(--muted); display: grid; place-items: center; cursor: pointer;
}
.theme-switch button:hover { color: var(--text); }
.theme-switch button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.theme-switch svg { width: 15px; height: 15px; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.site-header.nav-open .nav-links .theme-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 8px; }
.theme-row span { color: var(--muted); font-size: 0.9rem; }
@media (min-width: 900px) { .nav-links .theme-row { display: none; } }
@media (max-width: 899px) { .nav-right .theme-switch { display: none; } }
