:root {
  --bg: #f5f3ee;
  --ink: #141414;
  --muted: #6b675f;
  --pink: #e8788a;
  --pink-deep: #d25a6e;
  --green: #2f6b3a;
  --line: #e3e0d9;
  --line-strong: #cfcbc2;
  --grid: 72px;
  --max: 1280px;
  --serif: "DM Sans", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --pixel: "Silkscreen", "Courier New", monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; image-rendering: pixelated; image-rendering: crisp-edges; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
.serif { font-family: var(--serif); letter-spacing: -0.03em; font-weight: 500; }
.italic { font-style: italic; }
.mono { font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 12px; word-break: break-all; }
.label {
  font-family: var(--pixel);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* grid background like a sheet of graph paper */
.grid-bg {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: var(--grid) var(--grid);
  background-position: center top;
}

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 10px 24px;
  min-height: 68px;
  background: rgba(245, 243, 238, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: var(--pixel); font-size: 20px; letter-spacing: 0.12em; }
.nav-logo img { width: 44px; height: 44px; }
.nav-logo img.wordmark { width: auto; height: 22px; image-rendering: pixelated; }
.nav-links { display: flex; gap: 22px; justify-content: center; }
.nav-links a { font-family: var(--pixel); font-size: 12px; letter-spacing: 0.12em; color: var(--muted); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav > .btn { justify-self: end; font-size: 11px; padding: 13px 20px; }

/* BUTTONS: flat, pixel-corner marker like the reference */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--pixel); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 14px 22px; border: 0; cursor: pointer; white-space: nowrap;
  transition: transform .08s, background .15s;
}
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-pink { background: var(--pink); color: #fff; }
.btn-pink:hover { background: var(--pink-deep); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn .pix { position: absolute; top: 4px; right: 4px; width: 5px; height: 5px; background: #fff; }
.btn-dark::after { content: ""; position: absolute; top: 4px; right: 4px; width: 5px; height: 5px; background: #fff; }
.btn .chev { font-size: 14px; line-height: 0; }
.btn.wide { width: 100%; justify-content: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* HERO */
.hero {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center;
  min-height: calc(100vh - 62px);
  padding: 48px 32px 32px;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
}
.hero-copy { background: var(--bg); padding: 24px 24px 24px 0; }
.hero h1 { font-size: clamp(40px, 5vw, 66px); line-height: 1.04; }
.lede { margin-top: 26px; font-size: 16px; color: var(--ink); }
.sub { max-width: 46ch; color: var(--muted); }
.cta-row { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.hero-stats { list-style: none; display: flex; gap: 34px; padding: 0; margin: 40px 0 0; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats b { font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1; letter-spacing: -0.02em; }
.hero-stats span { font-family: var(--pixel); font-size: 9px; letter-spacing: .12em; color: var(--muted); margin-top: 8px; text-transform: uppercase; }
.hero-art { margin: 0; display: flex; justify-content: center; align-items: flex-end; }
.hero-art img, .hero-art video { width: min(100%, 560px); mix-blend-mode: multiply; }

/* LIVE NETWORK */
.live { max-width: var(--max); margin: 0 auto; padding: 0 32px 40px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.live-head { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
#net { width: 100%; height: auto; display: block; }

/* SECTIONS */
.section { max-width: var(--max); margin: 0 auto; padding: 96px 32px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-top: 1px solid var(--line); }
.section-head { margin-bottom: 44px; }
.section h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; margin: 10px 0 18px; }
.section p { color: var(--muted); max-width: 56ch; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.step { background: var(--bg); padding: 26px 22px 30px; }
.step svg { width: 100%; display: block; }
.step img { width: 100%; aspect-ratio: 4/3; object-fit: contain; margin-bottom: 18px; mix-blend-mode: multiply; }
.step h3 { font-family: var(--serif); font-size: 20px; font-weight: 500; letter-spacing: -0.02em; margin: 8px 0 8px; }
.step p { font-size: 14px; }

/* MODEL */
.model { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.model-art img { mix-blend-mode: multiply; }
.model-copy { background: var(--bg); padding: 24px; }
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 26px 0; }
.card-grid > div { background: var(--bg); padding: 14px 16px; }
.card-grid dt { font-family: var(--pixel); font-size: 9px; letter-spacing: .12em; color: var(--muted); }
.card-grid dd { margin: 6px 0 0; font-family: var(--serif); font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.card-grid dd.mono { font-family: "SF Mono", Menlo, monospace; font-size: 11px; }

.divider { max-width: var(--max); margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-top: 1px solid var(--line); }
.divider img { width: 100%; aspect-ratio: 21/9; object-fit: cover; filter: grayscale(1) contrast(1.05); }

/* SHARES */
.shares { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.bullets { padding-left: 18px; color: var(--muted); }
.bullets li { margin-bottom: 8px; }
.mint { border: 1px solid var(--ink); padding: 26px; background: var(--bg); box-shadow: 8px 8px 0 var(--line); }
.mint-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.mint-row b { font-family: var(--serif); font-weight: 500; font-size: 22px; }
.bar { height: 10px; border: 1px solid var(--ink); margin: 6px 0 18px; background: repeating-linear-gradient(90deg, transparent 0 9px, var(--line) 9px 10px); }
.bar i { display: block; height: 100%; width: 0%; background: var(--pink); transition: width .6s; }
.qty { display: grid; grid-template-columns: 44px 1fr 44px; border: 1px solid var(--ink); margin: 18px 0 14px; }
.qty button { background: none; border: 0; font-size: 20px; cursor: pointer; font-family: var(--pixel); }
.qty button:hover { background: var(--ink); color: #fff; }
.qty output { text-align: center; font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 44px; border-left: 1px solid var(--ink); border-right: 1px solid var(--ink); }
.hint { font-size: 12px; color: var(--muted); margin: 12px 0 0; }
.claim { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line-strong); }
.claim b { font-family: var(--serif); font-weight: 500; font-size: 20px; }

/* CONTRIBUTE */
.contribute { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.contribute-art img { mix-blend-mode: multiply; }
.contribute-copy { background: var(--bg); padding: 24px; }
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 22px 0 30px; }
.ways > div { border-top: 2px solid var(--ink); padding-top: 12px; }
.ways p { font-size: 13px; margin-top: 8px; }

/* TOKEN */
.token { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.token-art { margin: 0; display: flex; justify-content: center; }
.token-art img { width: min(100%, 420px); mix-blend-mode: multiply; }

/* STORY */
.story { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: center; }
.story-art { margin: 0; }
.story-art img { width: min(100%, 420px); mix-blend-mode: multiply; }
.story .serif.italic { font-size: 22px; font-weight: 400; color: var(--ink); margin-top: 22px; }

/* FOOTER */
.footer { background: #000; color: #fff; margin-top: 64px; }
.footer-glow { height: 380px; overflow: hidden; }
.footer-glow img { width: 100%; height: 100%; object-fit: cover; image-rendering: auto; }
.footer-body { max-width: var(--max); margin: 0 auto; padding: 44px 32px; display: grid; grid-template-columns: 1fr auto auto; gap: 40px; align-items: center; border-top: 1px solid #222; }
.footer-brand { display: flex; align-items: center; gap: 18px; }
.footer-brand img { filter: invert(1); width: 64px; height: 64px; }
.pixel-word { height: 48px; width: auto; filter: none !important; image-rendering: pixelated; }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: #bbb; }
.footer-links a:hover { color: #fff; }
.totop { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 96px; height: 96px; background: #111; border: 1px solid #222; font-size: 11px; text-align: center; line-height: 1.6; }
.footer-legal { max-width: var(--max); margin: 0 auto; padding: 18px 32px 28px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid #222; font-size: 12px; color: #888; }

/* RESPONSIVE */
@media (max-width: 960px) {
  .nav { grid-template-columns: auto 1fr auto; }
  .nav-links { display: none; }
  .hero, .model, .shares, .contribute, .token, .story { grid-template-columns: 1fr; }
  .steps, #teaser { grid-template-columns: 1fr 1fr !important; }
  .hero { min-height: auto; padding-top: 32px; }
  .hero-art { order: -1; }
  .hero-stats { flex-wrap: wrap; gap: 22px; }
  .ways { grid-template-columns: 1fr; }
  .footer-body { grid-template-columns: 1fr; }
  .pixel-word { height: 34px; }
  .footer-legal { flex-direction: column; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .section { padding: 64px 20px; }
  .hero, .live { padding-left: 20px; padding-right: 20px; }
}
