:root {
  --night: #0c0913;
  --night-2: #140f1f;
  --plum: #2a1630;
  --rose: #e07a5f;
  --ember: #f08a3c;
  --gold: #f2b25c;
  --gold-hi: #ffd79a;
  --cream: #f3e9dc;
  --mute: #b9a9a6;
  --line: rgba(242, 178, 92, 0.18);
  --card: rgba(26, 18, 34, 0.72);
  --c-lp: #f2b25c;
  --c-burn: #e0624a;
  --c-stake: #9b8cff;
  --c-team: #6fc3a8;
  --c-win: #f6c77d;
  --c-fee: #8a5a3c;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font: 16px/1.6 var(--sans);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
a { color: var(--gold-hi); }
em { font-style: italic; color: var(--gold); }
code { font-family: var(--mono); font-size: 0.9em; color: var(--gold-hi); }
.mono { font-family: var(--mono); }

/* top bar */
.bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 28px;
  background: linear-gradient(180deg, rgba(12, 9, 19, 0.85), rgba(12, 9, 19, 0));
  backdrop-filter: blur(6px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); }
.brand span { font: 600 24px/1 var(--serif); letter-spacing: 0.04em; }
.bar nav { display: flex; gap: 22px; margin-left: auto; }
.bar nav a { color: var(--mute); text-decoration: none; font-size: 14px; letter-spacing: 0.02em; }
.bar nav a:hover { color: var(--gold-hi); }
.clock {
  display: flex; align-items: center; gap: 8px;
  font: 13px var(--mono);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 9, 19, 0.6);
}
.clock .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

/* hero */
.hero { height: 320vh; position: relative; padding: 0; }
h1, h2, .gen-card .n, .facts b { font-variant-numeric: lining-nums; }
.stage { position: sticky; top: 0; height: 100vh; overflow: hidden; background: #1b1020 url("/img/og.jpg") center/cover; }
#frames { position: absolute; inset: 0; width: 100%; height: 100%; }
.veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 55%, rgba(12, 9, 19, 0.82) 0%, rgba(12, 9, 19, 0.35) 45%, rgba(12, 9, 19, 0) 70%),
    linear-gradient(0deg, var(--night) 0%, rgba(12, 9, 19, 0) 26%);
}
.hero-copy {
  position: absolute;
  left: max(28px, 6vw);
  top: 50%;
  transform: translateY(-46%);
  max-width: 560px;
  transition: opacity 0.2s linear;
}
.kicker {
  font: 600 12px/1 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
}
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; margin: 0 0 20px; }
h1 { font-size: clamp(48px, 7.4vw, 104px); line-height: 0.92; text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5); }
h2 { font-size: clamp(38px, 4.6vw, 64px); line-height: 1; }
h3 { font: 600 26px/1.1 var(--serif); margin: 0 0 12px; color: var(--gold-hi); }
.lede { font-size: 18px; color: #e8dccd; max-width: 480px; }
.price-pill {
  display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 10px;
  margin: 18px 0 26px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(12, 9, 19, 0.55);
  backdrop-filter: blur(8px);
  font-family: var(--mono);
}
.price-pill span { color: var(--mute); font-size: 13px; }
.price-pill b { font-size: 20px; color: var(--gold-hi); font-weight: 600; }
.price-pill .eq { color: var(--gold); }
.price-pill small { width: 100%; color: var(--mute); font-size: 11px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px;
  border-radius: 999px;
  font: 600 15px var(--sans);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn.gold {
  color: #2a1406;
  background: linear-gradient(135deg, #ffe1a8 0%, #f2b25c 45%, #d9822f 100%);
  box-shadow: 0 8px 30px rgba(242, 160, 70, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.btn.ghost { color: var(--cream); border-color: var(--line); background: rgba(12, 9, 19, 0.4); }
.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  font: 11px var(--mono); letter-spacing: 0.3em; text-transform: uppercase; color: var(--mute);
}
.scroll-hint::after { content: ""; display: block; width: 1px; height: 34px; margin: 10px auto 0; background: linear-gradient(var(--gold), transparent); animation: drip 1.8s infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 60% { transform: scaleY(1); transform-origin: top; } 100% { transform: scaleY(1); opacity: 0; } }

/* sections */
section { position: relative; padding: 120px 0; }
.wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }
.wrap.narrow { width: min(640px, 100% - 32px); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
p { color: #e3d6c8; }
.note { color: var(--mute); font-size: 14px; }

.field { background: radial-gradient(ellipse at 75% 40%, #2a1630 0%, var(--night) 60%); }
.facts { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 10px; }
.facts li { display: flex; gap: 14px; align-items: baseline; padding-bottom: 10px; border-bottom: 1px solid var(--line); color: #e3d6c8; }
.facts b { font: 600 22px var(--serif); color: var(--gold-hi); min-width: 84px; }

.board-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(42, 22, 48, 0.9), rgba(16, 11, 24, 0.95));
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 215, 154, 0.08);
}
.board-head { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.board-head div { display: flex; flex-direction: column; }
.label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); }
.board-head b { font: 600 22px var(--mono); color: var(--gold-hi); }
.board { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.plot {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  background: #1a1222 50% 58% / 170% no-repeat;
  border: 1px solid rgba(242, 178, 92, 0.12);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.4s, filter 0.4s;
}
.plot .amt {
  position: absolute; left: 6px; bottom: 5px;
  font: 600 11px var(--mono); color: var(--gold-hi);
  text-shadow: 0 1px 4px #000;
}
.plot.win { transform: scale(1.06); z-index: 2; border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold), 0 0 40px rgba(242, 178, 92, 0.7); }
.board.settled .plot:not(.win) { filter: saturate(0.4) brightness(0.55); }
.board-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; color: var(--mute); }
.tag { color: var(--gold); font: 600 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }

.genesis { background: linear-gradient(180deg, var(--night) 0%, #1d0f1c 55%, var(--night) 100%); }
.gen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 40px 0; }
.gen-card { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.gen-card .n { display: block; font: 600 56px/1 var(--serif); color: var(--gold-hi); margin-bottom: 12px; }
.gen-card.warn .n { color: var(--rose); }
.meter-bar { position: relative; height: 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); }
.meter-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: linear-gradient(90deg, var(--ember), var(--gold-hi)); }
.meter-bar .mark { position: absolute; left: 30%; top: -26px; transform: translateX(-50%); font: 11px var(--mono); color: var(--gold); }
.meter-bar .mark::after { content: ""; position: absolute; left: 50%; top: 22px; width: 2px; height: 18px; background: var(--gold); }
.meter-row { display: flex; justify-content: space-between; margin-top: 12px; font: 13px var(--mono); color: var(--mute); flex-wrap: wrap; gap: 8px; }

.tbl { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 14px; }
.tbl th { text-align: left; font: 600 11px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 11px 12px; border-bottom: 1px solid rgba(242, 178, 92, 0.08); }
.tbl td:last-child, .tbl th:last-child { text-align: right; }
.tbl tbody tr:first-child td { color: var(--gold-hi); background: rgba(242, 178, 92, 0.07); }
.tbl tfoot td { color: var(--gold); font-weight: 600; border: 0; padding-top: 16px; }

.flows { background: radial-gradient(ellipse at 20% 30%, #26132a 0%, var(--night) 55%); }
.flow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.flow { padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); }
.bar-stack { display: flex; height: 34px; border-radius: 10px; overflow: hidden; margin: 6px 0 18px; gap: 2px; }
.bar-stack i { display: flex; align-items: center; justify-content: center; font: 600 11px var(--mono); font-style: normal; color: #1b0e08; white-space: nowrap; overflow: hidden; }
.c-lp { background: var(--c-lp); }
.c-burn { background: var(--c-burn); }
.c-stake { background: var(--c-stake); }
.c-team { background: var(--c-team); }
.c-win { background: var(--c-win); }
.c-fee { background: var(--c-fee); color: var(--cream) !important; }
.split { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; color: #e3d6c8; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 10px; }

.supply { background: linear-gradient(180deg, var(--night), #170d1a); }
.coin-wrap { display: flex; justify-content: center; }
.coin-wrap img { width: min(460px, 80vw); height: auto; filter: drop-shadow(0 30px 80px rgba(242, 140, 50, 0.35)); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px) rotate(-2deg); } }
.alloc { display: grid; gap: 14px; margin: 28px 0; }
.alloc div { position: relative; display: flex; justify-content: space-between; padding: 12px 0 16px; }
.alloc dt { color: #e3d6c8; }
.alloc dd { margin: 0; font: 600 18px var(--mono); color: var(--gold-hi); }
.alloc span { position: absolute; left: 0; bottom: 0; height: 3px; width: var(--w); border-radius: 3px; background: linear-gradient(90deg, var(--ember), var(--gold-hi)); }
.alloc div::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.05); z-index: -1; }

.gardeners article { padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); }
.gardeners img { width: 120px; height: 120px; object-fit: contain; display: block; margin: -8px 0 8px -8px; }

.honest { background: #120c18; }
.terms { columns: 2; column-gap: 48px; margin-top: 30px; }
.terms p { break-inside: avoid; margin: 0 0 22px; font-size: 15px; }
.terms b { color: var(--gold-hi); }

.join { background: radial-gradient(ellipse at 50% 0%, #3a1b2c 0%, var(--night) 60%); text-align: center; }
form { display: grid; gap: 14px; margin: 30px 0 18px; text-align: left; }
label { display: grid; gap: 6px; font-size: 13px; color: var(--mute); letter-spacing: 0.04em; }
label small { color: #8a7c78; }
input {
  font: 15px var(--mono);
  color: var(--cream);
  background: rgba(12, 9, 19, 0.7);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  outline: none;
  width: 100%;
}
input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242, 178, 92, 0.15); }
.msg { min-height: 1.4em; margin: 0; font-size: 14px; text-align: center; }
.msg.ok { color: var(--c-team); }
.msg.err { color: var(--rose); }
.count { font-family: var(--mono); color: var(--mute); }
.count b { color: var(--gold-hi); font-size: 20px; }
.share { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; text-align: left; }
.share span { grid-column: 1 / -1; font-size: 13px; color: var(--mute); }

footer { border-top: 1px solid var(--line); padding: 40px 0 60px; }
.foot { display: grid; gap: 6px; }
.foot p { margin: 0; color: var(--mute); font-size: 14px; }
.foot .small { font-size: 12px; color: #7d6f6c; }

@media (max-width: 900px) {
  .bar { padding: 12px 16px; gap: 12px; }
  .bar nav { display: none; }
  .clock { margin-left: auto; }
  .two, .three, .gen-grid, .flow-grid { grid-template-columns: 1fr; gap: 28px; }
  .terms { columns: 1; }
  section { padding: 84px 0; }
  .hero { height: 240vh; }
  .hero-copy { left: 16px; right: 16px; top: auto; bottom: 12vh; transform: none; }
  .veil { background: linear-gradient(0deg, rgba(12, 9, 19, 0.95) 0%, rgba(12, 9, 19, 0.6) 45%, rgba(12, 9, 19, 0.1) 75%); }
  .lede { font-size: 16px; }
  .board { gap: 5px; }
  .board-head b { font-size: 17px; }
  .plot .amt { font-size: 9px; left: 4px; bottom: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .coin-wrap img, .clock .dot, .scroll-hint::after { animation: none; }
}
