/* LITMUS — void, gold, strip-as-rocket. Not pepe. Not a lecture. */
:root {
  --void: #05060a;
  --ink: #07080c;
  --ink-2: #0e1016;
  --ink-3: #161922;
  --paper: #efe6d4;
  --paper-dim: #c4bba8;
  --muted: #7a766c;
  --gold: #d4b45a;
  --gold-hot: #f0d078;
  --acid: #e24a3c;
  --acid-soft: rgba(226, 74, 60, 0.16);
  --base: #4a7ec8;
  --base-soft: rgba(74, 126, 200, 0.16);
  --ok: #6dbf7a;
  --ok-soft: rgba(109, 191, 122, 0.16);
  --thin: #d4923a;
  --thin-soft: rgba(212, 146, 58, 0.16);
  --amber: #d4b45a;
  --amber-soft: rgba(212, 180, 90, 0.14);
  --line: rgba(239, 230, 212, 0.1);
  --line-strong: rgba(239, 230, 212, 0.28);
  --radius: 16px;
  --max: 1120px;
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --display: "Syne", var(--sans);
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--void);
  color: var(--paper);
  line-height: 1.5;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--paper); text-decoration: none; }
a:hover { color: var(--gold-hot); }
code, .mono { font-family: var(--mono); font-size: 0.9em; }
button { font-family: inherit; cursor: pointer; }
button:disabled, a[aria-disabled="true"] { cursor: not-allowed; opacity: 0.55; }

#stars {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

.wrap { width: min(var(--max), calc(100% - 28px)); margin: 0 auto; position: relative; z-index: 1; }

/* nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(5, 6, 10, 0.88);
  border-bottom: 1px solid var(--line);
}
body { padding-top: 56px; }
body:has(#stars) { padding-top: 56px; }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 0; min-height: 56px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 800; letter-spacing: 0.12em;
  font-size: 14px;
}
.brand img {
  width: 36px; height: 36px; border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(212, 180, 90, 0.4);
}
.nav-links { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-links a {
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--paper-dim); padding: 10px 12px; border-radius: 999px;
  min-height: 44px; display: inline-flex; align-items: center;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--ink); background: var(--gold);
}

/* buttons */
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 20px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 600; background: transparent; color: var(--paper);
}
.btn-solid { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-solid:hover { background: var(--gold-hot); color: var(--ink); }
.btn-ghost { background: rgba(7, 8, 12, 0.45); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-hot); }
.btn-ca[disabled], .btn[aria-disabled="true"] {
  border-style: dashed;
}

/* hero */
.hero-stage {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
  background-color: var(--void);
  background-image: url("../hero-space.png");
  background-size: cover;
  background-position: center;
  padding: 24px 0 48px;
}
.hero-stage::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 42%, rgba(5,6,10,0.15), rgba(5,6,10,0.72) 70%, var(--void) 100%),
    linear-gradient(180deg, rgba(5,6,10,0.35) 0%, transparent 18%, transparent 70%, var(--void) 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
  padding: 28px 0 12px;
}
.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; line-height: 0.95; }
h1 { font-size: clamp(56px, 12vw, 120px); margin: 0 0 6px; }
h1 .tick {
  display: block; margin-top: 6px;
  font-family: var(--mono); font-weight: 500; font-size: clamp(16px, 2.4vw, 22px);
  letter-spacing: 0.28em; color: var(--gold-hot);
}
.tagline {
  font-size: clamp(16px, 2.4vw, 22px);
  color: var(--paper);
  margin: 14px 0 22px;
  letter-spacing: 0.02em;
  max-width: 28ch;
}
.live-strip {
  height: 12px; width: min(380px, 86vw); border-radius: 999px; overflow: hidden;
  margin: 0 0 22px;
  background: var(--ink-3);
  box-shadow: 0 0 28px rgba(212, 180, 90, 0.28);
  position: relative;
}
.live-strip span {
  display: block; height: 100%; width: 40%;
  background: linear-gradient(90deg, var(--acid), var(--thin), var(--ok), var(--gold), var(--acid));
  background-size: 300% 100%;
  animation: dip 3.6s linear infinite;
  border-radius: 999px;
}
@keyframes dip {
  0% { transform: translateX(-30%); background-position: 0 0; }
  100% { transform: translateX(180%); background-position: 200% 0; }
}

.stat-pills {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 22px 0 0;
}
.pill {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(7,8,12,0.55);
  color: var(--paper-dim);
  min-height: 36px; display: inline-flex; align-items: center; gap: 8px;
}
.pill b { color: var(--paper); font-weight: 500; }
.pill.gold { border-color: rgba(212,180,90,0.5); color: var(--gold); }
.pill.ok { border-color: rgba(109,191,122,0.45); color: var(--ok); }

.meme {
  justify-self: end;
  width: min(340px, 100%);
  background: rgba(7, 8, 12, 0.55);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px 20px 18px;
  text-align: center;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px rgba(212,180,90,0.12), 0 24px 80px rgba(0,0,0,0.45);
}
.meme img {
  width: 220px; height: 220px; margin: 0 auto 12px;
  filter: drop-shadow(0 0 28px rgba(212,180,90,0.35));
}
.meme p {
  margin: 0;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  color: var(--paper-dim); text-transform: uppercase;
}
.bags-bar {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  padding: 8px 0 0;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.bags-bar b { color: var(--gold); font-weight: 500; }

/* shared page chrome */
.page { padding: 28px 0 8px; position: relative; z-index: 1; }
.lede {
  font-size: clamp(16px, 2vw, 20px); color: var(--paper-dim);
  max-width: 36ch; margin: 0 0 22px;
}
.section-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 10px;
}
h2 { font-size: clamp(28px, 5vw, 44px); margin: 0 0 12px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
.card {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 16px;
}
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card p { margin: 0; color: var(--paper-dim); font-size: 14px; }
.num {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  color: var(--gold); margin-bottom: 8px;
}

.notice {
  margin: 18px 0;
  padding: 14px 16px;
  border-left: 3px solid var(--gold);
  background: var(--amber-soft);
  color: var(--paper);
  font-size: 14px;
}
.notice.acid { border-left-color: var(--acid); background: var(--acid-soft); }
.notice.warn { border-left-color: var(--thin); background: var(--thin-soft); }
.banner {
  display: none;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px dashed var(--thin);
  background: var(--thin-soft);
  color: var(--gold-hot);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em;
  border-radius: 10px;
}
.banner.on { display: block; }

/* tokenomics */
.layout-2 { display: grid; grid-template-columns: 320px 1fr; gap: 28px; align-items: start; margin: 18px 0; }
.pie-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pie {
  width: 240px; height: 240px; border-radius: 50%;
  background: conic-gradient(
    var(--acid) 0 18deg,
    var(--base) 18deg 46.8deg,
    var(--ok) 46.8deg 54deg,
    var(--paper) 54deg 288deg,
    var(--gold) 288deg 360deg
  );
  box-shadow: inset 0 0 0 16px var(--void), 0 0 48px rgba(212,180,90,0.18);
  position: relative;
}
.pie::after {
  content: "1B";
  position: absolute; inset: 62px;
  background: var(--void);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-size: 36px; color: var(--gold);
}
.legend { width: 100%; padding: 0; margin: 0; }
.legend li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid var(--line);
  font-size: 14px; list-style: none;
}
.swatch { width: 10px; height: 10px; border-radius: 2px; display: inline-block; margin-right: 8px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); font-weight: 500;
}
.wallet {
  font-family: var(--mono); font-size: 13px;
  background: var(--ink-3); border: 1px dashed var(--line-strong);
  padding: 10px 12px; border-radius: 8px; color: var(--gold);
  word-break: break-all; min-height: 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.wallet button {
  background: transparent; border: 1px solid var(--line-strong); color: var(--paper);
  border-radius: 999px; padding: 6px 10px; font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; min-height: 36px;
}

.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
.tl {
  border: 1px solid var(--line); border-radius: 12px; padding: 16px;
  background: var(--ink-2);
}
.tl .when { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.tl h3 { font-size: 18px; margin: 8px 0 6px; }
.tl p { margin: 0; color: var(--paper-dim); font-size: 14px; }

/* desk */
.hud {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 18px;
}
.desk-form {
  display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 14px;
}
.desk-form input {
  flex: 1; min-width: 200px; min-height: 52px;
  background: var(--ink-2); border: 1px solid var(--line-strong); color: var(--paper);
  padding: 14px 16px; border-radius: 14px; font-family: var(--mono); font-size: 15px;
}
.desk-form input::placeholder { color: var(--muted); }
.desk-form .btn { min-height: 52px; padding: 14px 22px; font-size: 14px; }
.demos { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.demo {
  min-height: 44px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--ink-2); color: var(--paper-dim);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
}
.demo:hover, .demo.on { border-color: var(--gold); color: var(--gold); }

.result {
  display: none;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  align-items: stretch;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  min-height: 320px;
}
.result.on { display: grid; }
.strip-well {
  position: relative;
  display: grid; place-items: end center;
  background: #05060a;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 16px 12px 12px;
  min-height: 300px;
  overflow: hidden;
}
.strip-col {
  width: 72px; height: 260px;
  border-radius: 10px 10px 18px 18px;
  background: #ece4d4;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 2px #1a1208, 0 12px 28px rgba(0,0,0,0.45);
  transform: translateY(8px);
  transition: transform 0.5s ease;
}
.strip-col.dipping { transform: translateY(28px); }
.strip-pads {
  position: absolute; inset: 18px 10px auto;
  display: grid; grid-template-rows: repeat(4, 28px); gap: 8px;
}
.strip-pads i { display: block; border-radius: 4px; }
.strip-pads i:nth-child(1) { background: #d8c9a6; }
.strip-pads i:nth-child(2) { background: #8a3a38; }
.strip-pads i:nth-child(3) { background: #3d5a86; }
.strip-pads i:nth-child(4) { background: #c9a24a; }
.strip-flood {
  position: absolute; left: 0; right: 0; bottom: 0; height: 0;
  transition: height 1.1s cubic-bezier(.2,.8,.2,1);
}
.strip-col.flooded .strip-flood { height: var(--flood, 70%); }
.strip-col.rug .strip-flood { background: linear-gradient(180deg, #ff6b5c, var(--acid)); }
.strip-col.thin .strip-flood { background: linear-gradient(180deg, #f0b35a, var(--thin)); }
.strip-col.ok .strip-flood { background: linear-gradient(180deg, #8ad896, var(--ok)); }
.strip-col.send .strip-flood {
  background: linear-gradient(180deg, #fff1b0, var(--gold), #8a5a10);
  box-shadow: 0 0 24px rgba(212,180,90,0.65);
}
.strip-hole {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 14px; height: 14px; border-radius: 50%; background: var(--void);
  z-index: 2;
}
.rocket-bit {
  position: absolute; bottom: 8px; left: 50%; width: 54px; height: 54px;
  transform: translateX(-50%);
  opacity: 0; pointer-events: none;
  z-index: 3;
}
.rocket-bit img { width: 54px; height: 54px; }
.result.launch .rocket-bit {
  opacity: 1;
  animation: blast 1.5s cubic-bezier(.15,.8,.2,1) forwards;
}
@keyframes blast {
  0% { transform: translate(-50%, 40px) scale(0.6); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translate(-50%, -280px) scale(0.85); opacity: 0; }
}
.plume {
  position: absolute; bottom: 0; left: 50%; width: 10px; height: 0;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, #f0d078, #e24a3c);
  filter: blur(2px);
  opacity: 0;
}
.result.launch .plume { height: 90px; opacity: 0.9; animation: plume 1.5s ease forwards; }
@keyframes plume {
  0% { height: 0; opacity: 0; }
  30% { height: 80px; opacity: 1; }
  100% { height: 140px; opacity: 0; }
}

.readout { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.score-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.score {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(64px, 12vw, 96px); line-height: 0.85; letter-spacing: -0.04em;
}
.score.rug { color: var(--acid); }
.score.thin { color: var(--thin); }
.score.ok { color: var(--ok); }
.score.send { color: var(--gold-hot); text-shadow: 0 0 24px rgba(212,180,90,0.35); }
.word {
  font-family: var(--display); font-weight: 800; font-size: clamp(28px, 5vw, 40px);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.word.rug { color: var(--acid); }
.word.thin { color: var(--thin); }
.word.ok { color: var(--ok); }
.word.send { color: var(--gold-hot); }
.meta {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.stat {
  background: var(--ink-3); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
}
.stat b { display: block; font-family: var(--mono); font-size: 15px; font-weight: 500; word-break: break-all; }
.stat span { color: var(--muted); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.flags { display: flex; flex-wrap: wrap; gap: 6px; }
.flag {
  display: inline-flex; align-items: center; min-height: 28px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-family: var(--mono); letter-spacing: 0.06em; text-transform: uppercase;
}
.flag-ok { background: var(--ok-soft); color: var(--ok); }
.flag-hold { background: var(--amber-soft); color: var(--gold); }
.flag-no { background: var(--acid-soft); color: var(--acid); }

/* rules */
.rule-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 12px 0 22px; }
.rule {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px;
}
.rule h3 { margin: 0 0 6px; font-size: 18px; }
.rule p { margin: 0; color: var(--paper-dim); font-size: 14px; }

footer {
  margin-top: 40px; padding: 22px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 12px;
  position: relative; z-index: 1;
}
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--paper-dim); }

.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--gold); color: var(--ink);
  padding: 10px 16px; border-radius: 999px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  opacity: 0; pointer-events: none; z-index: 50;
  transition: 0.25s ease;
}
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 840px) {
  .hero-inner, .layout-2, .cards, .timeline, .result, .rule-grid, .stats {
    grid-template-columns: 1fr;
  }
  .meme { justify-self: start; width: 100%; }
  .meme img { width: 180px; height: 180px; }
  h1 { font-size: 56px; }
  .nav-links a { padding: 8px 10px; font-size: 11px; min-height: 40px; }
  .strip-well { min-height: 240px; }
  .strip-col { height: 210px; }
  .stats { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .live-strip span, .strip-col, .strip-flood, .rocket-bit, .plume { animation: none !important; transition: none !important; }
}

/* home story — wound / ritual / wealth path */
.story {
  display: grid;
  gap: 12px;
  padding: 28px 0 8px;
  position: relative;
  z-index: 1;
}
.story-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
}
.story-card.wound { border-left: 3px solid var(--acid); }
.story-card.ritual { border-left: 3px solid var(--gold); }
.story-card.path { border-left: 3px solid var(--ok); }
.story-card h2 {
  font-size: clamp(22px, 4.2vw, 32px);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.story-card > p {
  margin: 0;
  color: var(--paper-dim);
  font-size: 15px;
  max-width: 62ch;
}
.path-list {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.path-list li {
  color: var(--paper-dim);
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(7, 8, 12, 0.45);
  border: 1px solid var(--line);
}
.path-list b { color: var(--paper); font-weight: 600; }
.path-note {
  margin: 0 !important;
  font-family: var(--mono);
  font-size: 12px !important;
  letter-spacing: 0.04em;
  color: var(--gold) !important;
  line-height: 1.45;
}
@media (min-width: 840px) {
  .story {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .story-card.path { grid-column: 1 / -1; }
}
