@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-semibold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrument-serif-italic.ttf") format("truetype");
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/space-grotesk-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/space-grotesk-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #040404;
  --paper: #f2f2ec;
  --muted: #8f9088;
  --dim: #62635c;
  --line: #1d1d19;
  --yellow: #f0b90b;
  --yellow-hot: #ffd54a;
  --green: #76b900;
  --green-hot: #9fe61e;
  --red: #e03a2a;
  --mono: "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;
  --display: "Space Grotesk", "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--paper);
  background: var(--bg);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}
button { border: 0; color: inherit; background: none; cursor: pointer; font: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--green-hot); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* MASTHEAD — one hairline, nothing else */
.mast {
  position: sticky;
  top: 0;
  z-index: 70;
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 clamp(14px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
  background: rgba(4,4,4,.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: .14em; }
.brand svg { width: 24px; height: 24px; color: var(--green-hot); fill: var(--green); }
.chain-chip { margin-left: auto; display: flex; align-items: center; gap: 7px; color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .12em; }
.chain-chip > span { width: 7px; height: 7px; background: var(--yellow); }
.chain-chip.is-live > span { background: var(--green-hot); box-shadow: 0 0 10px rgba(159,230,30,.8); }
.chain-chip.is-local > span { background: var(--red); }
.wallet {
  min-width: 112px;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 2px;
  color: #140d00;
  background: var(--yellow);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}
.wallet:hover { background: var(--yellow-hot); }
.wallet.is-pulse { animation: wallet-pulse 520ms ease 3; }
@keyframes wallet-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(240,185,11,.55); }
  50% { box-shadow: 0 0 0 14px rgba(240,185,11,0); }
}

main { width: min(1240px, calc(100% - 28px)); margin: 0 auto; }

/* ============ HERO: one monumental number ============ */
.money {
  position: relative;
  min-height: calc(100vh - 60px);
  min-height: calc(100dvh - 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 0 40px;
  text-align: center;
}
.money::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 62% 46% at 50% 44%, rgba(240,185,11,.10), transparent 70%);
  animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }

.eyebrow { position: relative; color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .2em; }
.eyebrow span { display: inline-flex; align-items: center; min-height: 22px; margin-right: 10px; padding: 0 8px; border: 1px solid var(--yellow); border-radius: 2px; color: var(--yellow-hot); font-family: serif; letter-spacing: .05em; }
.eyebrow em { color: var(--yellow); font-style: normal; }

.counter {
  position: relative;
  margin-top: 2vh;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: clamp(14px, 2.6vw, 34px);
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}
.counter:active { transform: scale(.995); }
.counter b {
  font-size: clamp(120px, 23vw, 340px);
  font-weight: 500;
  letter-spacing: -.05em;
  background: linear-gradient(100deg, #ffe084 0%, var(--yellow-hot) 25%, var(--yellow) 55%, #c98f04 80%, var(--yellow-hot) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 46px rgba(240,185,11,.30));
  animation: gold-shine 6s ease-in-out infinite;
}
@keyframes gold-shine {
  0%, 100% { background-position: 0% 0; }
  50% { background-position: 100% 0; }
}
.counter span { font-size: clamp(30px, 5.4vw, 84px); color: var(--yellow); letter-spacing: .04em; }
.counter.is-tick b { animation: tick-flash 300ms ease-out, gold-shine 6s ease-in-out infinite; }
@keyframes tick-flash {
  0% { filter: drop-shadow(0 0 90px rgba(255,213,74,.95)) brightness(1.55); transform: scale(1.015); }
  100% { filter: drop-shadow(0 0 46px rgba(240,185,11,.30)) brightness(1); transform: scale(1); }
}
.earn-chip {
  position: fixed;
  z-index: 90;
  color: var(--yellow-hot);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  text-shadow: 0 2px 12px #000;
  pointer-events: none;
  animation: chip-rise 950ms ease-out forwards;
}
@keyframes chip-rise {
  0% { opacity: 0; transform: translateY(6px) scale(.8); }
  15% { opacity: 1; transform: translateY(0) scale(1.05); }
  100% { opacity: 0; transform: translateY(-90px) scale(1); }
}

.note { position: relative; margin-top: 1vh; color: var(--green-hot); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; }

.live-line {
  position: relative;
  margin-top: 3.4vh;
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
}
.live-line small { color: var(--dim); font-size: 8px; }
.live-line b { color: var(--paper); font-weight: 500; }
.live-line b.gold, .live-line b.gold b { color: var(--yellow-hot); font-weight: 500; }
.live-line i { width: 26px; height: 1px; background: var(--line); }

.cashout {
  position: relative;
  width: min(100%, 880px);
  min-height: 96px;
  margin-top: 4vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 2px;
  color: #140d00;
  background: linear-gradient(180deg, #ffe084 0%, var(--yellow) 60%, #d99e05 100%);
  box-shadow: 0 22px 80px rgba(240,185,11,.24), inset 0 1px rgba(255,255,255,.5), inset 0 -3px rgba(138,95,0,.35);
}
.cashout:hover { filter: brightness(1.05); }
.cashout:active { transform: scale(.995); }
.cashout b { font-family: var(--display); font-size: clamp(22px, 3.2vw, 32px); font-weight: 700; letter-spacing: -.01em; }
.cashout small { font-size: 8px; font-weight: 600; letter-spacing: .16em; opacity: .6; }
.ghost-link { margin-top: 14px; color: var(--dim); font-family: var(--mono); font-size: 8px; letter-spacing: .1em; text-decoration: underline; text-underline-offset: 4px; }
.ghost-link:hover { color: var(--muted); }

/* ============ HYPE: CN poster ============ */
.viz { padding: clamp(50px, 7vw, 90px) 0; }
.viz-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 26px; }
.viz-head h2 { font-family: var(--display); font-size: clamp(30px, 4.6vw, 56px); font-weight: 700; line-height: .95; letter-spacing: -.04em; }
.viz-head h2 i { color: var(--green-hot); font-family: "Instrument Serif", serif; font-weight: 400; }
.viz-cap { margin-left: auto; color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .1em; }
.viz-frame {
  position: relative;
  margin-top: 22px;
  height: clamp(320px, 44vw, 460px);
  border: 1px solid var(--line);
  border-radius: 2px;
  background:
    radial-gradient(ellipse 70% 60% at 90% 50%, rgba(240,185,11,.05), transparent 65%),
    radial-gradient(ellipse 60% 70% at 30% 50%, rgba(118,185,0,.06), transparent 65%),
    var(--panel);
  overflow: hidden;
}
.viz-frame canvas { position: absolute; inset: 0; display: block; }

.hype {
  position: relative;
  padding: clamp(80px, 12vw, 150px) 0;
  border-top: 1px solid var(--line);
}
.hype-cn {
  font-family: var(--display);
  font-size: clamp(52px, 9vw, 128px);
  font-weight: 700;
  line-height: .96;
  letter-spacing: -.03em;
}
.hype-cn i {
  font-style: normal;
  background: linear-gradient(100deg, #d9ffb0, var(--green-hot) 50%, var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hype-line { margin-top: 22px; font-size: clamp(22px, 3.6vw, 42px); font-weight: 500; line-height: 1.25; }
.hype-line b { color: var(--green-hot); font-weight: 600; }
.hype-en { max-width: 560px; margin-top: 34px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.hype-seal {
  position: absolute;
  top: clamp(80px, 12vw, 150px);
  right: 0;
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  border: 2px solid var(--red);
  color: var(--red);
  font-family: serif;
  font-size: 20px;
  line-height: 1.2;
  text-align: center;
  transform: rotate(7deg);
  opacity: .85;
}

/* ============ WORKS: giant rows ============ */
.works { border-top: 1px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  align-items: baseline;
  gap: 24px;
  padding: clamp(28px, 4vw, 44px) 0;
  border-bottom: 1px solid var(--line);
}
.row small { color: var(--dim); font-family: var(--mono); font-size: 9px; letter-spacing: .18em; }
.row strong {
  font-family: var(--mono);
  font-size: clamp(64px, 10vw, 150px);
  font-weight: 500;
  line-height: .9;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.row span { max-width: 300px; color: var(--muted); font-size: 10px; line-height: 1.65; text-align: right; }
.row span b { color: var(--yellow-hot); font-weight: 500; }
.row.gold strong { color: var(--yellow-hot); text-shadow: 0 0 40px rgba(240,185,11,.3); }
.row.gold span { color: var(--paper); }

/* STORY — six chapters */
.story { border-top: 1px solid var(--line); }
.chapter {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: clamp(20px, 4vw, 56px);
  padding: clamp(48px, 7vw, 96px) 0;
  border-bottom: 1px solid var(--line);
}
.chapter:last-child { border-bottom: 0; }
.ch-num {
  font-family: var(--mono);
  font-size: clamp(64px, 8vw, 120px);
  font-weight: 500;
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 1px var(--dim);
}
.ch-body h3 {
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.035em;
}
.ch-body h3 i { color: var(--green-hot); font-family: "Instrument Serif", serif; font-weight: 400; }
.ch-body p { max-width: 680px; margin-top: 20px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.ch-body p b { color: var(--paper); font-weight: 600; }
.ch-fee { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; }
.ch-fee b { color: var(--yellow-hot) !important; font-weight: 500 !important; }
.note-box {
  max-width: 680px;
  margin-top: 26px;
  padding: 14px 16px;
  border-left: 2px solid var(--yellow);
  background: rgba(240,185,11,.04);
  color: var(--yellow-hot);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.7;
  letter-spacing: .04em;
}
.story .ladder-track { justify-content: flex-start; padding: 30px 0 6px; gap: 12px 18px; }
.story .gen-row { grid-template-columns: 150px 1fr auto; }

/* LADDER — NAND → CPU escalation strip */
.ladder { border-top: 1px solid var(--line); overflow: hidden; }
.ladder-track {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 22px;
  padding: clamp(30px, 4.5vw, 54px) 12px;
}
.ladder-track b { font-family: var(--display); font-size: clamp(22px, 3.4vw, 44px); font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.ladder-track b.gold { color: var(--yellow-hot); text-shadow: 0 0 34px rgba(240,185,11,.35); }
.ladder-track i { color: var(--green-hot); font-family: var(--mono); font-size: clamp(16px, 2vw, 26px); font-style: normal; }

/* BEHEMOTH — genesis stats */
.behemoth { border-top: 1px solid var(--line); }
.gen-row {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  align-items: baseline;
  gap: 24px;
  padding: clamp(22px, 3.2vw, 36px) 0;
  border-bottom: 1px solid var(--line);
}
.gen-row small { color: var(--dim); font-family: var(--mono); font-size: 9px; letter-spacing: .18em; }
.gen-row strong {
  font-family: var(--mono);
  font-size: clamp(44px, 7vw, 104px);
  font-weight: 500;
  line-height: .9;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.gen-row strong i { font-family: "Instrument Serif", serif; font-style: italic; font-size: .5em; color: var(--green-hot); }
.gen-row span { max-width: 300px; color: var(--muted); font-size: 10px; line-height: 1.65; text-align: right; }
.gen-contract { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; padding: 22px 0; }
.gen-contract small { color: var(--dim); font-family: var(--mono); font-size: 8px; letter-spacing: .18em; }
.gen-contract b { min-width: 0; color: var(--paper); font-family: var(--mono); font-size: clamp(11px, 1.6vw, 15px); font-weight: 500; letter-spacing: .02em; word-break: break-all; overflow-wrap: anywhere; }
.chapter, .ch-body { min-width: 0; }
.behemoth .honest { margin-top: 0; padding-bottom: 26px; border-bottom: 1px solid var(--line); }

/* CREATE */
.create-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: clamp(40px, 6vw, 80px) 0;
}
.create-row small { color: var(--green-hot); font-family: var(--mono); font-size: 9px; letter-spacing: .2em; }
.create-big { margin-top: 16px; font-family: var(--display); font-size: clamp(28px, 4.6vw, 58px); font-weight: 700; line-height: 1.05; letter-spacing: -.03em; }
.create-row button {
  flex-shrink: 0;
  min-width: 220px;
  min-height: 84px;
  padding: 0 34px;
  border-radius: 2px;
  color: #140d00;
  background: linear-gradient(180deg, #ffe084 0%, var(--yellow) 60%, #d99e05 100%);
  box-shadow: 0 18px 60px rgba(240,185,11,.22), inset 0 1px rgba(255,255,255,.5), inset 0 -3px rgba(138,95,0,.35);
  font-family: var(--display);
  font-size: clamp(14px, 1.8vw, 18px);
  font-weight: 700;
  letter-spacing: .08em;
}
.create-row button:hover { filter: brightness(1.05); }

/* ============ TIERS: giant rows ============ */
.rates { border-top: 1px solid var(--line); padding-bottom: 90px; }
.tier {
  display: grid;
  grid-template-columns: 180px 1fr auto auto auto 170px;
  align-items: center;
  gap: 26px;
  padding: clamp(26px, 3.6vw, 40px) 0;
  border-bottom: 1px solid var(--line);
}
.tier h3 { font-family: var(--display); font-size: clamp(18px, 2vw, 24px); font-weight: 700; letter-spacing: .04em; }
.tier > b { font-family: var(--mono); font-size: clamp(52px, 7.5vw, 110px); font-weight: 500; line-height: .9; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.tier > span { color: var(--muted); font-size: 10px; }
.tier > strong { color: var(--yellow-hot); font-family: var(--mono); font-size: clamp(14px, 1.7vw, 19px); font-weight: 500; white-space: nowrap; }
.tier > em { color: var(--green-hot); font-family: var(--mono); font-size: 11px; font-style: normal; white-space: nowrap; }
.tier-tag { justify-self: end; color: var(--green-hot); font-family: var(--mono); font-size: 8px; letter-spacing: .16em; }
.tier button { justify-self: end; min-width: 150px; min-height: 52px; border-radius: 2px; color: #140d00; background: var(--yellow); font-family: var(--display); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.tier button:hover { background: var(--yellow-hot); }
.tier.is-current > b, .tier.is-current h3 { color: var(--green-hot); }
.honest { margin-top: 20px; color: var(--dim); font-family: var(--mono); font-size: 8px; letter-spacing: .05em; }

footer { min-height: 64px; padding: 14px clamp(14px, 3vw, 40px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; border-top: 1px solid var(--line); color: var(--dim); font-family: var(--mono); font-size: 7px; letter-spacing: .08em; }
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 120; max-width: min(92vw, 520px); padding: 13px 18px; transform: translate(-50%, 12px); border: 1px solid rgba(240,185,11,.5); border-radius: 2px; color: var(--paper); background: #111; box-shadow: 0 18px 55px rgba(0,0,0,.6); font-family: var(--mono); font-size: 9px; letter-spacing: .06em; opacity: 0; pointer-events: none; transition: opacity 170ms ease, transform 170ms ease; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .chapter { grid-template-columns: 1fr; gap: 12px; padding: 44px 0; }
  .ch-num { font-size: 52px; -webkit-text-stroke: 1px var(--dim); }
  .row { grid-template-columns: 1fr; gap: 8px; }
  .row span { max-width: 100%; text-align: left; }
  .story .gen-row, .gen-row { grid-template-columns: 1fr; gap: 8px; }
  .story .gen-row span, .gen-row span { max-width: 100%; text-align: left; }
  .create-row { flex-direction: column; align-items: stretch; }
  .create-row button { width: 100%; }
  .tier { grid-template-columns: 1fr auto; gap: 10px 18px; }
  .tier > b { grid-column: 1 / -1; }
  .tier button, .tier-tag { justify-self: start; }
}

@media (max-width: 680px) {
  .mast { min-height: 54px; padding: 0 12px; gap: 10px; }
  .brand { font-size: 11px; }
  .brand svg { width: 20px; height: 20px; }
  .wallet { min-width: 90px; min-height: 38px; padding: 0 12px; }
  main { width: min(100% - 24px, 1240px); }
  .money { padding: 18px 0 32px; }
  .eyebrow { font-size: 8px; letter-spacing: .12em; }
  .counter { flex-direction: column; align-items: center; gap: 2px; }
  .counter b { font-size: clamp(72px, 24vw, 120px); line-height: .95; }
  .counter span { font-size: 24px; }
  .note { font-size: 9px; }
  .live-line { flex-wrap: wrap; justify-content: center; gap: 8px 10px; }
  .live-line i { display: none; }
  .cashout { min-height: 84px; margin-top: 3vh; }
  .hype { padding: 64px 0; }
  .hype-seal { width: 74px; height: 74px; font-size: 14px; top: 64px; }
  .hype-cn { font-size: clamp(44px, 13vw, 64px); }
  .row { padding: 26px 0; }
  .row strong { font-size: clamp(58px, 17vw, 90px); }
  .tier { padding: 24px 0; }
  .tier > b { font-size: clamp(48px, 14vw, 76px); }
  .rates { padding-bottom: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
