:root {
  --paper: #EFEDE6;
  --paper-2: #E4E1D8;
  --ink: #0C0C0C;
  --ink-2: #2A2A28;
  --mute: #6D6B64;
  --crowd: #C9C6BD;
  --cash: #19E57F;
  --cash-deep: #0A7A43;
  --line: rgba(12, 12, 12, .14);
  --r: 18px;
  --display: 'Archivo', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --pad: clamp(18px, 4vw, 56px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.55 var(--display); font-variation-settings: 'wdth' 100;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before { /* paper grain */
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; }
.mono { font-family: var(--mono); font-feature-settings: 'zero' 1; }
b { font-weight: 800; }
em { font-style: normal; background: linear-gradient(transparent 58%, var(--cash) 58%, var(--cash) 92%, transparent 92%); }
code { font-family: var(--mono); font-size: .88em; background: var(--paper-2); padding: .1em .4em; border-radius: 6px; }
::selection { background: var(--cash); color: var(--ink); }

.demo-flag {
  position: sticky; top: 0; z-index: 60; background: var(--ink); color: var(--cash);
  font: 600 12px/1 var(--mono); text-align: center; padding: 8px 12px; letter-spacing: .02em;
}

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; gap: .55em; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--bg); color: var(--fg); font: 800 16px/1 var(--display); font-variation-settings: 'wdth' 110;
  padding: 16px 24px; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s;
  box-shadow: 0 0 0 var(--ink); white-space: nowrap;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(0, 0); box-shadow: 0 0 0 var(--ink); }
.btn:focus-visible { outline: 3px solid var(--cash); outline-offset: 3px; }
.btn-cash { --bg: var(--cash); --fg: var(--ink); }
.btn-ghost { --bg: transparent; --fg: var(--ink); }
.btn-ghost-light { --bg: transparent; --fg: var(--paper); border-color: var(--paper); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-lg { padding: 22px 34px; font-size: 20px; }
.ca-label { font-size: 12px; background: var(--ink); color: var(--paper); padding: 3px 6px; border-radius: 6px; }
.copy-ic { opacity: .5; }
#caText { font-size: 13px; font-weight: 600; max-width: 22ch; overflow: hidden; text-overflow: ellipsis; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 24px;
  padding: 14px var(--pad); background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.demo-flag:not([hidden]) + .nav { top: 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark svg { display: block; width: 34px; height: 34px; }
.brand-word { font: 900 22px/1 var(--display); font-variation-settings: 'wdth' 125; letter-spacing: -.02em; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-weight: 600; font-size: 15px; }
.nav-links a { text-decoration: none; opacity: .75; }
.nav-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .75fr); gap: clamp(28px, 5vw, 72px);
  align-items: center; padding: clamp(40px, 7vw, 96px) var(--pad) clamp(24px, 4vw, 48px);
  max-width: 1480px; margin: 0 auto;
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 14px/1 var(--mono); margin: 0 0 22px; padding: 9px 14px; border: 1.5px solid var(--ink); border-radius: 999px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cash); box-shadow: 0 0 0 3px rgba(25, 229, 127, .25); }
.headline {
  font: 900 clamp(60px, 9.2vw, 164px)/.84 var(--display); font-variation-settings: 'wdth' 125;
  letter-spacing: -.045em; text-transform: uppercase; margin: 0 0 28px;
}
.lede { font-size: clamp(18px, 1.6vw, 22px); max-width: 38ch; margin: 0 0 32px; color: var(--ink-2); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.board {
  background: var(--ink); color: var(--paper); border-radius: 28px; padding: 26px; position: relative;
  box-shadow: 10px 10px 0 var(--cash);
}
.board-top { display: flex; justify-content: space-between; align-items: center; }
.board-label { display: block; font: 600 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #9a988f; margin-bottom: 8px; }
.board-round { font-size: 12px; color: #9a988f; }
.board-round b { color: var(--paper); }
.clock { font-weight: 800; font-size: clamp(72px, 8vw, 116px); line-height: 1; letter-spacing: -.04em; display: flex; margin: 10px 0 18px; color: var(--cash); }
.clock i { font-style: normal; opacity: .6; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .15; } }
.progress { height: 6px; background: #262624; border-radius: 99px; overflow: hidden; margin-bottom: 22px; }
.progress span { display: block; height: 100%; width: 0; background: var(--cash); border-radius: 99px; transition: width 1s linear; }
.board-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.board-grid > div { background: #1a1a19; border-radius: 16px; padding: 16px; }
.big { display: block; font-size: clamp(26px, 2.6vw, 36px); line-height: 1; letter-spacing: -.03em; }
.big.bump { animation: bump .6s; }
@keyframes bump { 30% { color: var(--cash); transform: scale(1.06); } }
.commit { margin-top: 16px; padding-top: 14px; border-top: 1px dashed #333; }
.commit a { font-size: 12px; color: #c9c6bd; word-break: break-all; text-decoration: none; }
.commit a:hover { color: var(--cash); }

/* ---------- crowd ---------- */
.crowd { position: relative; height: clamp(260px, 38vw, 560px); overflow: hidden; border-bottom: 2px solid var(--ink); }
.crowd-art, .crowd-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.crowd .nb path, .crowd .nb circle:first-of-type { transition: fill .12s; }
.crowd .nb.lit path { fill: var(--cash) !important; stroke: var(--ink) !important; }
.crowd .nb.lit > circle:nth-of-type(1) { fill: var(--ink) !important; }
.crowd .nb.lit > circle:nth-of-type(2) { fill: none !important; stroke: var(--cash) !important; }
.crowd .nb.lit line { stroke: var(--cash) !important; }
.crowd .nb.won { animation: won 1.2s ease-in-out infinite alternate; }
@keyframes won { to { filter: drop-shadow(0 0 18px rgba(25,229,127,.9)); } }
.crowd-caption {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--ink); color: var(--paper);
  padding: 12px 20px; border-radius: 999px; font-weight: 800; font-size: 16px; white-space: nowrap;
  display: flex; gap: 10px; align-items: center;
}
.crowd-caption .mono { color: var(--cash); font-size: 14px; }

/* ---------- ticker ---------- */
.ticker { display: flex; align-items: stretch; background: var(--ink); color: var(--paper); overflow: hidden; }
.ticker-label { flex: none; display: flex; align-items: center; gap: 10px; padding: 0 20px; font: 800 13px/1 var(--mono); letter-spacing: .1em; background: var(--cash); color: var(--ink); z-index: 1; }
.live-dot { width: 9px; height: 9px; background: var(--ink); border-radius: 50%; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .2; } }
.ticker-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-inner { display: flex; gap: 12px; padding: 14px 0; width: max-content; animation: scroll 60s linear infinite; }
.ticker:hover .ticker-inner { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.tag {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border: 1px solid #2c2c2a;
  border-radius: 999px; font-size: 14px; white-space: nowrap; max-width: 460px;
}
.tag .av { width: 26px; height: 26px; border-radius: 50%; flex: none; background: #2a2a28; overflow: hidden; display: grid; place-items: center; }
.tag .av img { width: 100%; height: 100%; object-fit: cover; }
.tag .av svg { width: 22px; height: 26px; margin-top: 4px; }
.tag b { color: var(--cash); font-weight: 700; }
.tag span { color: #b7b5ad; overflow: hidden; text-overflow: ellipsis; }
.tag.no b { color: #777; text-decoration: line-through; }
.tag.new { animation: pop .5s; }
@keyframes pop { from { transform: scale(.7); opacity: 0; } }

/* ---------- contract address ---------- */
.ca-band { background: var(--ink); color: var(--paper); border-top: 1px solid #222; padding: clamp(22px, 3vw, 34px) var(--pad); }
.ca-inner { max-width: 1480px; margin: 0 auto; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px 28px; }
.ca-tag { font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--ink); background: var(--cash); padding: 8px 12px; white-space: nowrap; }
.ca-addr {
  all: unset; cursor: pointer; font-family: var(--mono); font-weight: 800; font-size: clamp(15px, 1.9vw, 26px);
  letter-spacing: -.01em; overflow-wrap: anywhere; min-width: 0; border-bottom: 2px dashed #3a3a37; padding-bottom: 4px;
}
.ca-addr:hover { color: var(--cash); border-color: var(--cash); }
.ca-addr:focus-visible { outline: 3px solid var(--cash); outline-offset: 4px; }
.ca-band.is-empty .ca-addr { color: #9a988f; font-weight: 600; cursor: default; border-bottom-color: transparent; }
.ca-band.is-empty .ca-addr:hover { color: #9a988f; }
.ca-actions [hidden] { display: none; }
.ca-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.ca-actions .btn-ghost-light:hover { box-shadow: 4px 4px 0 var(--cash); }
@media (max-width: 980px) { .ca-inner { grid-template-columns: 1fr; } .ca-tag { justify-self: start; } .ca-actions { justify-content: flex-start; } }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 2px solid var(--ink); }
.stats > div { padding: clamp(24px, 3.5vw, 44px) var(--pad); border-right: 1px solid var(--line); }
.stats > div:last-child { border-right: 0; }
.stats b { display: block; font-size: clamp(30px, 4vw, 58px); letter-spacing: -.04em; line-height: 1; }
.stats span { display: block; margin-top: 10px; color: var(--mute); font-weight: 600; font-size: 15px; }

/* ---------- sections ---------- */
section.how, section.receipts, section.fair, section.rules, section.faq { padding: clamp(56px, 8vw, 120px) var(--pad); max-width: 1480px; margin: 0 auto; }
.section-title { font: 900 clamp(40px, 6vw, 88px)/.9 var(--display); font-variation-settings: 'wdth' 125; letter-spacing: -.04em; text-transform: uppercase; margin: 0 0 36px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head p { margin: 0 0 40px; color: var(--mute); font-weight: 600; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { border: 2px solid var(--ink); border-radius: var(--r); padding: 28px; background: var(--paper); position: relative; min-height: 290px; display: flex; flex-direction: column; }
.steps li:nth-child(2) { background: var(--ink); color: var(--paper); }
.steps li:nth-child(3) { background: var(--cash); }
.step-no { font-size: 14px; font-weight: 800; }
.steps h3 { font: 900 clamp(24px, 2.2vw, 32px)/1 var(--display); font-variation-settings: 'wdth' 115; letter-spacing: -.02em; margin: auto 0 14px; }
.steps p { margin: 0; opacity: .82; }

.manifesto { background: var(--ink); color: var(--paper); padding: clamp(72px, 10vw, 150px) var(--pad); }
.manifesto-kicker { color: var(--cash); margin: 0 0 20px; font-size: 14px; }
.manifesto-text { font: 800 clamp(30px, 4.6vw, 70px)/1.05 var(--display); font-variation-settings: 'wdth' 110; letter-spacing: -.03em; margin: 0; max-width: 22ch; }
.strike { text-decoration: line-through; text-decoration-thickness: .08em; color: #6e6c66; }
.cash { color: var(--cash); }
.hl { background: var(--cash); color: var(--ink); padding: 0 .15em; }

/* ---------- receipts ---------- */
.receipt-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 280px; gap: 22px; overflow-x: auto; padding: 16px 4px 32px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.receipt {
  --zz: 10px; scroll-snap-align: start; text-decoration: none; background: #FBFAF6; color: var(--ink);
  font-family: var(--mono); font-size: 12.5px; padding: 26px 22px 30px; position: relative;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.12)); transform: rotate(var(--rot, 0deg)); transition: transform .2s;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--zz)) 100%, conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--zz)) 100%;
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.receipt:hover { transform: rotate(0) translateY(-6px); }
.receipt .r-head { text-align: center; border-bottom: 1px dashed #aaa; padding-bottom: 12px; margin-bottom: 12px; }
.receipt .r-head svg { width: 30px; height: 30px; display: block; margin: 0 auto 6px; }
.receipt .r-brand { font: 900 18px/1 var(--display); font-variation-settings: 'wdth' 125; letter-spacing: -.01em; }
.receipt .r-row { display: flex; justify-content: space-between; gap: 8px; margin: 5px 0; }
.receipt .r-row span:first-child { color: #777; }
.receipt .r-to { font-size: 15px; font-weight: 800; word-break: break-all; }
.receipt .r-total { border-top: 1px dashed #aaa; border-bottom: 1px dashed #aaa; margin: 12px 0; padding: 10px 0; display: flex; justify-content: space-between; align-items: baseline; }
.receipt .r-total b { font-size: 26px; letter-spacing: -.03em; }
.receipt .r-stamp { display: inline-block; border: 2px solid currentColor; padding: 3px 8px; border-radius: 6px; font-weight: 800; transform: rotate(-6deg); letter-spacing: .1em; }
.receipt .r-stamp.paid { color: var(--cash-deep); }
.receipt .r-stamp.pending { color: #b07a00; }
.receipt .r-stamp.failed { color: #b3261e; }
.receipt .r-foot { text-align: center; margin-top: 14px; color: #888; font-size: 11px; }
.receipt .barcode { height: 34px; margin: 12px 0 4px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px); }
.receipt.fresh { animation: drop .8s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes drop { from { transform: translateY(-60px) rotate(-8deg); opacity: 0; } }
.empty { color: var(--mute); font-family: var(--mono); padding: 30px; border: 2px dashed var(--line); border-radius: var(--r); }

/* ---------- fair ---------- */
.fair { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.fair-copy p { font-size: 18px; max-width: 58ch; }
.fair-code { background: var(--ink); color: var(--paper); border-radius: 22px; padding: 30px; font-size: clamp(13px, 1.2vw, 16px); line-height: 2.1; box-shadow: 10px 10px 0 var(--cash); }
.fair-code .k { color: var(--cash); }
.fair-code .ok { color: var(--cash); margin-top: 8px; border-top: 1px dashed #333; padding-top: 8px; }

/* ---------- rules / faq ---------- */
.rules ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.rules li { border-top: 2px solid var(--ink); padding: 18px 0 0; font-size: 17px; }
.rules li b { display: block; font-size: 22px; margin-bottom: 6px; font-variation-settings: 'wdth' 115; }
.faq details { border-bottom: 1.5px solid var(--ink); }
.faq details:first-of-type { border-top: 1.5px solid var(--ink); }
.faq summary { cursor: pointer; list-style: none; padding: 24px 50px 24px 0; font: 800 clamp(19px, 2vw, 26px)/1.2 var(--display); font-variation-settings: 'wdth' 110; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 28px; transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 26px; max-width: 70ch; color: var(--ink-2); font-size: 18px; }

/* ---------- final ---------- */
.final { background: var(--cash); text-align: center; padding: clamp(64px, 9vw, 130px) var(--pad); border-top: 2px solid var(--ink); position: relative; overflow: hidden; }
.final-art { width: 130px; margin: 0 auto 24px; }
.final-art svg { width: 100%; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(2deg); } }
.final h2 { font: 900 clamp(48px, 9vw, 140px)/.86 var(--display); font-variation-settings: 'wdth' 125; letter-spacing: -.045em; text-transform: uppercase; margin: 0 0 36px; }
.final .cash { color: var(--paper); -webkit-text-stroke: 2px var(--ink); }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--paper); padding: 40px var(--pad) 28px; overflow: hidden; }
.footer-word { font: 900 clamp(48px, 15.2vw, 270px)/.8 var(--display); font-variation-settings: 'wdth' 125; letter-spacing: -.05em; color: var(--paper); margin-bottom: 26px; white-space: nowrap; }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 13px; color: #9a988f; }
.footer-row nav { display: flex; gap: 20px; }
.footer-row a { text-decoration: none; color: var(--paper); font-weight: 700; }
.footer-row a:hover { color: var(--cash); }

/* ---------- draw overlay ---------- */
.draw { position: fixed; inset: 0; z-index: 200; background: rgba(12,12,12,.94); display: grid; place-items: center; color: var(--paper); padding: 24px; backdrop-filter: blur(6px); }
.draw[hidden] { display: none; }
.draw-inner { text-align: center; max-width: 1000px; }
.draw-kicker { color: var(--cash); letter-spacing: .14em; font-size: 14px; }
.draw-slot { font-weight: 800; font-size: clamp(34px, 8vw, 110px); letter-spacing: -.04em; line-height: 1.05; margin: 12px 0 18px; word-break: break-all; }
.draw-slot.locked { color: var(--cash); animation: bump .7s; }
.draw-amount { font: 900 clamp(24px, 4vw, 52px)/1 var(--display); font-variation-settings: 'wdth' 125; text-transform: uppercase; margin: 0 0 34px; min-height: 1em; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--ink); color: var(--paper); padding: 12px 20px; border-radius: 999px; font-weight: 700; z-index: 300; transition: transform .3s, opacity .3s; opacity: 0; pointer-events: none; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero, .fair { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li { min-height: 220px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(2) { border-right: 0; }
  .stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
}
@media (max-width: 520px) {
  .board { padding: 20px; box-shadow: 6px 6px 0 var(--cash); }
  .cta-row .btn { width: 100%; justify-content: center; }
  .crowd-caption { font-size: 13px; padding: 10px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.nav-links .nav-x { display: inline-flex; align-items: center; gap: 6px; opacity: 1; font-weight: 700; }
.nav-links .nav-x svg { display: block; }
