/* ============================================================
   $RAGEBAIT: palette lifted from the painting:
   steel blue / slate / bone highlights, with a red accent
   because it's called ragebait.
   ============================================================ */
:root {
  --bg: #0b0f14;
  --bg-2: #0f151c;
  --bg-3: #141c26;
  --ink: #e6eef7;
  --ink-2: #a9b8c8;
  --ink-3: #6d7d90;
  --steel: #7e97b3;
  --ice: #cfe3f5;
  --line: rgba(207, 227, 245, 0.12);
  --rage: #ff3b3b;
  --rage-2: #ff6b6b;
  --glow: rgba(126, 151, 179, 0.35);
  --font-display: "Anton", Impact, "Arial Black", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
p { margin: 0; }
code { font-family: var(--font-mono); }
button { font: inherit; cursor: pointer; }

/* film grain overlay */
.grain {
  pointer-events: none;
  position: fixed; inset: 0; z-index: 50;
  opacity: 0.07;
  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='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: screen;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 24px;
  padding: 14px 24px;
  background: rgba(11, 15, 20, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 22px; letter-spacing: 0.04em;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--line);
}
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a {
  font-size: 14px; color: var(--ink-2); font-weight: 500;
  transition: color .15s;
}
.nav-links a:hover { color: var(--ice); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  color: var(--ink); border-radius: 10px; padding: 6px 10px; font-size: 18px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  font-weight: 700; font-size: 15px; border: 1px solid transparent;
  transition: transform .15s, background .15s, border-color .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
  background: var(--rage); color: #fff;
  box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.5);
}
.btn-primary:hover {
  background: var(--rage-2);
  box-shadow: 0 8px 30px rgba(255, 59, 59, 0.35);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent; color: var(--ice);
  border-color: rgba(207, 227, 245, 0.25);
}
.btn-ghost:hover { border-color: var(--ice); background: rgba(207, 227, 245, 0.06); }
.btn-x {
  background: var(--ice); color: var(--bg); padding: 10px 16px; font-size: 14px;
}
.btn-x:hover { background: #fff; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  max-width: var(--max); margin: 0 auto;
  padding: 72px 24px 48px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  min-height: calc(100vh - 64px);
}
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto;
  height: 120%; z-index: -1;
  background:
    radial-gradient(60% 50% at 75% 45%, rgba(126,151,179,.22), transparent 70%),
    radial-gradient(40% 40% at 20% 20%, rgba(255,59,59,.08), transparent 70%);
}
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--steel); margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(56px, 8.5vw, 120px);
  letter-spacing: 0.01em; text-transform: uppercase;
  display: flex; flex-direction: column;
}
.hero h1 .line {
  display: block; animation: rise .7s cubic-bezier(.2,.8,.2,1) both;
}
.hero h1 .line:nth-child(2) { animation-delay: .08s; }
.hero h1 .line:nth-child(3) { animation-delay: .16s; }
.accent { color: var(--rage); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.lede {
  margin-top: 22px; max-width: 520px;
  font-size: 18px; color: var(--ink-2);
}
.lede strong { color: var(--ice); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.cta-row.center { justify-content: center; }

.ca-box {
  margin-top: 22px; display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 14px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--bg-2);
  max-width: 100%;
}
.ca-label { font-family: var(--font-mono); font-size: 12px; color: var(--steel); letter-spacing: .12em; }
.ca-value {
  font-size: 13px; color: var(--ice);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 320px;
}
.ca-copy {
  background: var(--bg-3); color: var(--ice); border: 1px solid var(--line);
  border-radius: 8px; padding: 6px 12px; font-size: 13px; font-weight: 600;
}
.ca-copy:hover { border-color: var(--ice); }

.hero-stats {
  list-style: none; padding: 0; margin: 36px 0 0;
  display: flex; gap: 28px; flex-wrap: wrap;
}
.hero-stats li { display: flex; flex-direction: column; }
.num { font-family: var(--font-display); font-size: 34px; color: var(--ice); line-height: 1; }
.lbl { font-size: 13px; color: var(--ink-3); margin-top: 4px; }

/* the chimp */
.hero-art { position: relative; justify-self: center; width: 100%; max-width: 520px; }
.art-frame {
  position: relative; aspect-ratio: 401 / 359;
  border-radius: 28px; overflow: hidden;
  border: 1px solid rgba(207,227,245,.18);
  box-shadow:
    0 40px 90px rgba(0,0,0,.6),
    0 0 0 1px rgba(0,0,0,.6) inset,
    0 0 120px var(--glow);
  animation: float 7s ease-in-out infinite;
}
.chimp {
  width: 100%; height: 100%; object-fit: cover;
  filter: contrast(1.05) saturate(.9);
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.art-frame:hover .chimp { transform: scale(1.04); }
.art-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, transparent 55%, rgba(11,15,20,.75) 100%),
    radial-gradient(70% 70% at 50% 40%, transparent 60%, rgba(11,15,20,.5) 100%);
}
@keyframes float { 0%,100% { transform: translateY(0) rotate(-.4deg); } 50% { transform: translateY(-10px) rotate(.4deg); } }

.thought {
  position: absolute; top: -8px; left: -6px;
  display: flex; flex-direction: column-reverse; align-items: flex-start;
  transform: rotate(-4deg);
}
.thought .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--ice); opacity: .9; margin: 3px 0 0 18px;
}
.thought .d2 { width: 14px; height: 14px; margin-left: 26px; }
.thought .d3 { width: 20px; height: 20px; margin-left: 38px; }
.bubble {
  background: var(--ice); color: var(--bg);
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  padding: 12px 16px; border-radius: 18px; max-width: 260px;
  box-shadow: 0 12px 30px rgba(0,0,0,.45);
  margin-left: 48px; margin-bottom: 4px;
  min-height: 62px; display: flex; align-items: center;
  transition: opacity .25s;
}
.bubble.swap { opacity: 0; }

/* ---------- TICKER ---------- */
.ticker-wrap { overflow: hidden; margin: 20px 0 40px; padding: 8px 0; }
.ticker {
  overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--rage); color: #fff;
  font-family: var(--font-display); font-size: 20px; letter-spacing: .04em; text-transform: uppercase;
  transform: rotate(-1deg) scale(1.02);
}
.ticker-track {
  display: flex; gap: 48px; width: max-content;
  padding: 12px 0;
  animation: scroll 60s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { white-space: nowrap; }
.ticker-track span::after { content: "•"; margin-left: 48px; opacity: .6; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- SECTIONS ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: 96px 24px; }
.section-dark {
  max-width: none;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.section-dark > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 44px; }
.section-head h2, .section-head .sub { max-width: 760px; }
.section-head h2 {
  font-family: var(--font-display); font-size: clamp(38px, 5.5vw, 64px);
  text-transform: uppercase; letter-spacing: .01em;
}
.section-head .sub { margin-top: 14px; color: var(--ink-2); font-size: 17px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  position: relative; padding: 28px; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--line);
  transition: transform .2s, border-color .2s;
}
.step:hover { transform: translateY(-4px); border-color: rgba(207,227,245,.3); }
.step-n { font-family: var(--font-mono); color: var(--rage); font-size: 13px; letter-spacing: .15em; }
.step h3 { margin: 14px 0 10px; font-size: 22px; font-weight: 900; }
.step p { color: var(--ink-2); font-size: 15px; }
.step em { color: var(--ice); font-style: normal; font-weight: 600; }

/* rage meter */
.meter { display: grid; gap: 28px; }
.meter-bar {
  position: relative; height: 56px; border-radius: 999px;
  background: var(--bg-3); border: 1px solid var(--line); overflow: hidden;
}
.meter-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--steel), var(--rage) 70%, #ff9a3b);
  transition: width 2.4s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 0 30px rgba(255,59,59,.5);
}
.meter-label {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  font-size: 13px; text-shadow: 0 1px 6px rgba(0,0,0,.6);
}
.meter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat {
  padding: 22px; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.stat .num { font-size: 40px; }

/* tokenomics */
.tok-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tok {
  padding: 28px 24px; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
}
.tok-big { font-family: var(--font-display); font-size: 56px; color: var(--ice); line-height: 1; }
.tok-lbl { font-family: var(--font-mono); font-size: 12px; letter-spacing: .15em; text-transform: uppercase; color: var(--steel); }
.tok p { margin-top: 10px; color: var(--ink-2); font-size: 15px; }

/* roadmap */
.roadmap {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
}
.phase {
  position: relative; padding: 26px 20px 22px; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--line);
}
.phase::before {
  content: ""; position: absolute; top: 0; left: 20px; right: 20px; height: 3px;
  background: var(--line); border-radius: 0 0 4px 4px;
}
.phase.done::before { background: var(--steel); }
.phase.active::before { background: var(--rage); box-shadow: 0 0 16px var(--rage); }
.phase-n { font-family: var(--font-mono); font-size: 12px; letter-spacing: .15em; text-transform: uppercase; color: var(--steel); }
.phase.active .phase-n { color: var(--rage); }
.phase h3 { margin: 12px 0 8px; font-size: 20px; font-weight: 900; }
.phase p { color: var(--ink-2); font-size: 14px; }

/* generator */
.gen { max-width: 640px; }
.tweet {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px;
}
.tweet-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.tweet-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.tweet-name { display: block; font-weight: 800; }
.verified { color: #1d9bf0; font-size: 14px; }
.tweet-handle { display: block; font-size: 14px; color: var(--ink-3); }
.tweet-body {
  font-size: 21px; line-height: 1.4; min-height: 60px;
  transition: opacity .2s, transform .2s;
}
.tweet-body.swap { opacity: 0; transform: translateY(6px); }
.tweet-foot {
  display: flex; gap: 26px; margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px;
}
.tweet-foot b { color: var(--ink-2); font-weight: 600; }
.gen-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

/* faq */
.faq { max-width: 760px; display: grid; gap: 10px; }
details {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px;
  padding: 0 20px;
}
summary {
  cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 17px;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--rage); font-family: var(--font-display); font-size: 24px; }
details[open] summary::after { content: "-"; }
details p { padding: 0 0 18px; color: var(--ink-2); }

/* final */
.final {
  position: relative; text-align: center; padding: 120px 24px 100px;
  overflow: hidden;
}
.final-chimp {
  position: absolute; left: 50%; top: 50%; width: 520px; max-width: 120vw;
  transform: translate(-50%, -50%);
  opacity: .12; filter: grayscale(1) blur(1px);
  -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%);
  mask-image: radial-gradient(circle, #000 30%, transparent 70%);
  pointer-events: none;
}
.final h2 {
  position: relative; font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 72px); text-transform: uppercase;
  max-width: 900px; margin: 0 auto 28px;
}
.final .cta-row { position: relative; }

/* footer */
.footer {
  border-top: 1px solid var(--line); padding: 32px 24px 48px;
  text-align: center; color: var(--ink-3); font-size: 14px;
}
.footer .fine { margin-top: 8px; font-size: 12px; opacity: .8; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--ice); color: var(--bg); padding: 12px 18px; border-radius: 999px;
  font-weight: 700; font-size: 14px; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; z-index: 60;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1000px) {
  .steps, .meter-grid { grid-template-columns: repeat(2, 1fr); }
  .tok-grid { grid-template-columns: repeat(2, 1fr); }
  .roadmap { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; min-height: 0; }
  .hero-art { order: -1; max-width: 420px; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg-2);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 24px; border-top: 1px solid var(--line); }
  .nav-toggle { display: block; margin-left: auto; }
  .btn-x { display: none; }
  .thought { top: -18px; left: 0; }
  .bubble { max-width: 200px; font-size: 12px; }
}
@media (max-width: 560px) {
  .steps, .meter-grid, .tok-grid, .roadmap { grid-template-columns: 1fr; }
  .section { padding: 64px 16px; }
  .hero { padding-left: 16px; padding-right: 16px; }
  .nav { padding: 12px 16px; }
  .ca-value { max-width: 150px; }
  .hero-stats { gap: 18px; }
  .ticker { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
