:root {
  --bg: #f6f0e2;       /* warm paper / cream */
  --bg-2: #efe7d4;
  --ink: #111010;      /* near-black */
  --red: #ff2d2d;      /* punch red */
  --yellow: #ffd23f;   /* highlight */
  --blue: #2f6bff;     /* accent pop */
  --card: #fffdf7;
  --line: #111010;     /* hard black borders */
  --muted: #6b6457;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --radius: 14px;
  --maxw: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, sans-serif;
  line-height: 1.45;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* faint paper texture via dots */
  background-image: radial-gradient(var(--bg-2) 1px, transparent 1px);
  background-size: 22px 22px;
}
code, .mono { font-family: "JetBrains Mono", monospace; }
a { color: inherit; text-decoration: none; }
b { font-weight: 700; }
.grain { display: none; }

section { position: relative; z-index: 1; }

/* ── NAV ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  max-width: var(--maxw); margin: 0 auto;
  padding: 14px 24px;
}
.nav::after {
  content: ""; position: absolute; left: 24px; right: 24px; bottom: 0; height: 3px;
  background: var(--ink);
}
.brand {
  font-weight: 700; font-size: 19px; letter-spacing: -.5px;
  display: flex; align-items: center; gap: 9px; text-transform: uppercase;
}
.brand-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--red); border: 2px solid var(--ink);
}
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { font-size: 15px; font-weight: 600; transition: color .15s; }
.nav-links a:hover { color: var(--red); }
.nav-cta { display: flex; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 16px; border-radius: 10px; font-size: 14px; font-weight: 700;
  border: 2.5px solid var(--ink); cursor: pointer; transition: transform .1s, box-shadow .1s;
  white-space: nowrap; background: var(--card); color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }
.btn.lg { padding: 14px 24px; font-size: 16px; }
.btn-primary { background: var(--red); color: #fff; }
.btn-ghost { background: var(--card); }

/* ── TICKER ── */
.ticker {
  background: var(--ink); color: var(--bg); overflow: hidden;
  border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex; gap: 26px; padding: 9px 0; align-items: center;
  font-family: "JetBrains Mono", monospace; font-weight: 700; font-size: 14px;
  letter-spacing: .5px; text-transform: uppercase;
  animation: scroll 26s linear infinite;
}
.ticker-track .dot { color: var(--yellow); }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── HERO ── */
.hero { max-width: var(--maxw); margin: 0 auto; padding: 54px 24px 30px; }
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; padding: 7px 13px;
  border: 2.5px solid var(--ink); border-radius: 999px; background: var(--yellow);
  text-transform: uppercase; letter-spacing: .5px; box-shadow: var(--shadow-sm);
}
.live-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--red);
  border: 1.5px solid var(--ink); animation: pulse 1.4s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

h1 {
  font-size: clamp(44px, 6.5vw, 80px); line-height: .95; letter-spacing: -2.5px;
  margin: 20px 0 18px; font-weight: 700; text-transform: uppercase;
}
.grad {
  color: var(--red);
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
}
.lede { color: var(--ink); font-size: 18px; max-width: 520px; font-weight: 500; }

/* CA box */
.ca-box { margin: 26px 0 22px; }
.ca-label {
  font-size: 12px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--ink); margin-bottom: 8px; font-weight: 700;
}
.ca-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--card); border: 2.5px solid var(--ink);
  border-radius: 12px; padding: 10px 12px; box-shadow: var(--shadow-sm);
}
.ca-row code {
  font-size: 14px; color: var(--ink); word-break: break-all; flex: 1; min-width: 0; font-weight: 600;
}
.copy-btn {
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px; font-weight: 700; cursor: pointer;
  background: var(--ink); color: var(--bg); border: 2.5px solid var(--ink);
  border-radius: 8px; padding: 7px 13px; transition: all .12s; white-space: nowrap;
}
.copy-btn:hover { background: var(--red); }
.copy-btn.copied { background: var(--blue); }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* hero art — MAIN IMAGE */
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-card {
  position: relative; width: 100%; max-width: 440px; border-radius: 16px;
  overflow: hidden; border: 4px solid var(--ink);
  box-shadow: 12px 12px 0 var(--ink);
  background: var(--ink);
  transform: rotate(-1.5deg);
}
#heroImg {
  width: 100%; height: 540px; object-fit: cover; display: block;
}
#heroImg.img-fallback {
  background: repeating-linear-gradient(45deg, var(--red), var(--red) 28px, var(--yellow) 28px, var(--yellow) 56px);
  min-height: 540px;
}
.hero-card-tag {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  display: flex; align-items: center; gap: 11px;
  background: var(--card); border: 3px solid var(--ink);
  border-radius: 12px; padding: 9px 12px; box-shadow: var(--shadow-sm);
}
.pfp { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ink); }
.tag-name { font-weight: 700; font-size: 15px; }
.tag-handle { color: var(--muted); font-size: 13px; font-weight: 600; }

.hero-badge {
  position: absolute; z-index: 3; font-family: "JetBrains Mono", monospace;
  font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .5px;
  padding: 8px 13px; border: 3px solid var(--ink); border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.hero-badge.top-left { top: -8px; left: -2px; background: var(--blue); color: #fff; transform: rotate(-6deg); }
.hero-badge.bottom-right { bottom: 30px; right: -10px; background: var(--yellow); transform: rotate(5deg); }

/* ── section heads ── */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 {
  font-size: clamp(30px, 4.5vw, 48px); letter-spacing: -1.5px; margin-bottom: 10px;
  text-transform: uppercase; font-weight: 700;
}
.section-head p { color: var(--muted); font-size: 17px; font-weight: 500; }

/* ── HOW ── */
.how { max-width: var(--maxw); margin: 0 auto; padding: 64px 24px; }
.how-grid {
  display: flex; align-items: stretch; justify-content: center; gap: 16px; flex-wrap: wrap;
}
.how-step {
  flex: 1; min-width: 240px; max-width: 320px;
  background: var(--card); border: 3px solid var(--ink); border-radius: var(--radius);
  padding: 24px; position: relative; box-shadow: var(--shadow); transition: transform .12s;
}
.how-step:nth-child(1) { transform: rotate(-1deg); }
.how-step:nth-child(5) { transform: rotate(1deg); }
.how-step:hover { transform: translate(-3px,-3px) rotate(0deg); }
.step-n {
  font-family: "JetBrains Mono", monospace; font-size: 14px; color: #fff;
  font-weight: 700; background: var(--red); border: 2px solid var(--ink);
  padding: 2px 8px; border-radius: 6px; display: inline-block;
}
.how-step h3 { margin: 14px 0 8px; font-size: 21px; text-transform: uppercase; }
.how-step p { color: var(--muted); font-size: 15px; font-weight: 500; }
.how-arrow { display: flex; align-items: center; color: var(--ink); font-size: 30px; font-weight: 700; }

/* ── BOUNTIES ── */
.bounties { max-width: var(--maxw); margin: 0 auto; padding: 24px 24px 64px; }
.bounty-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px;
}
.bounty {
  background: var(--card);
  border: 3px solid var(--ink); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow); transition: transform .12s; position: relative; overflow: hidden;
}
.bounty:hover { transform: translate(-3px,-3px); box-shadow: 9px 9px 0 var(--ink); }
.bounty-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.bounty-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  color: #fff; background: var(--blue); border: 2px solid var(--ink);
  padding: 4px 10px; border-radius: 999px;
}
.bounty-status {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  padding: 4px 10px; border-radius: 999px; border: 2px solid var(--ink);
}
.s-open   { color: var(--ink); background: var(--yellow); }
.s-claimed{ color: var(--ink); background: #ffb454; }
.s-done   { color: #fff; background: var(--ink); }
.bounty h3 { font-size: 22px; letter-spacing: -.4px; text-transform: uppercase; line-height: 1.05; }
.bounty p { color: var(--muted); font-size: 15px; flex: 1; font-weight: 500; }
.bounty-reward {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 22px; color: var(--ink);
  border-top: 3px dashed var(--ink); padding-top: 14px; font-family: "JetBrains Mono", monospace;
}
.bounty-reward::before { content: "💰"; }
.bounty-deadline {
  font-family: "JetBrains Mono", monospace; font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: .3px; color: var(--ink);
  background: var(--yellow); border: 2.5px solid var(--ink); border-radius: 8px;
  padding: 7px 11px; text-align: center; box-shadow: var(--shadow-sm);
}
.bounty-deadline.ended { background: var(--ink); color: var(--bg); }
.submit-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; text-align: center;
  background: var(--ink); color: var(--bg); border: 2.5px solid var(--ink);
  border-radius: 10px; padding: 12px 14px; transition: all .12s; box-shadow: var(--shadow-sm);
}
.submit-btn:hover { background: var(--red); transform: translate(-2px,-2px); }
.bounty-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 28px; font-weight: 500; }
.bounty-note a { color: var(--red); font-weight: 700; }

/* ── TREASURY ── */
.treasury { max-width: 840px; margin: 0 auto; padding: 24px 24px 72px; }
.treasury-card {
  background: var(--card);
  border: 4px solid var(--ink); border-radius: 18px; padding: 28px;
  box-shadow: var(--shadow);
}
.treasury-addr { margin-bottom: 22px; }
.treasury-addr code { color: var(--ink); }
.balances { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bal {
  background: var(--bg-2); border: 3px solid var(--ink); border-radius: 14px; padding: 20px;
}
.bal-top { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.bal-icon {
  width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center;
  font-weight: 700; font-size: 16px; border: 2px solid var(--ink);
}
.bal-icon.sol { background: var(--blue); color: #fff; }
.bal-icon.ansem { background: var(--red); color: #fff; }
.bal-name { font-size: 14px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; }
.bal-val {
  font-family: "JetBrains Mono", monospace; font-size: 32px; font-weight: 700;
  letter-spacing: -1px;
}
.bal-sub { color: var(--muted); font-size: 13px; margin-top: 4px; min-height: 18px; font-weight: 600; }
.treasury-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 22px; color: var(--muted); font-size: 13px; font-weight: 600;
}

/* ── FOOTER ── */
.footer {
  max-width: var(--maxw); margin: 0 auto; padding: 40px 24px 60px; text-align: center;
  border-top: 3px solid var(--ink);
}
.footer-brand {
  display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px;
  margin-bottom: 16px; text-transform: uppercase;
}
.footer-links { display: flex; gap: 22px; justify-content: center; margin-bottom: 16px; }
.footer-links a { font-size: 15px; font-weight: 600; transition: color .15s; }
.footer-links a:hover { color: var(--red); }
.footer-fine { color: var(--muted); font-size: 13px; font-weight: 500; }

/* ── responsive ── */
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { order: -1; }
  .hero-card { max-width: 340px; }
  #heroImg, #heroImg.img-fallback { height: 420px; min-height: 420px; }
  .nav-links { display: none; }
  .how-arrow { transform: rotate(90deg); }
}
@media (max-width: 480px) {
  .nav-cta .btn-ghost { display: none; }
  .balances { grid-template-columns: 1fr; }
  .bal-val { font-size: 28px; }
  .hero-badge.bottom-right { right: 0; }
}
