/* ============================================================
   THE LAST PIECE OF CONFETTI — $CONFETTI
   Robinhood-yellow (#ccff00) on near-black, memecoin energy
   ============================================================ */

:root {
  --yl: #ccff00;
  --yl-dim: #9dc400;
  --green: #00c805;
  --bg: #070805;
  --bg-alt: #0c0e07;
  --panel: #12150a;
  --line: rgba(204, 255, 0, 0.16);
  --line-soft: rgba(204, 255, 0, 0.08);
  --text: #f2f5e9;
  --muted: #99a284;
  --red: #ff4d4d;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  cursor: crosshair;
}

::selection { background: var(--yl); color: #000; }

a { color: var(--yl); text-decoration: none; }
a:hover { text-decoration: none; }

img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.yl { color: var(--yl); }
.muted { color: var(--muted); font-size: 0.85em; }

/* ---------- cursor confetti canvas ---------- */
#cursor-confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 28px;
  background: rgba(7, 8, 5, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: 0.04em; font-size: 18px; color: var(--text); }

.logo-square {
  width: 18px; height: 18px;
  background: var(--yl);
  border-radius: 3px;
  transform: rotate(12deg);
  box-shadow: 0 0 14px rgba(204, 255, 0, 0.55);
  flex: none;
}

.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--yl); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.08em;
  border-radius: 10px;
  border: 2px solid var(--yl);
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s, color 0.12s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-solid {
  background: var(--yl);
  color: #0a0a00;
  box-shadow: 0 0 24px rgba(204, 255, 0, 0.35);
}
.btn-solid:hover { box-shadow: 0 6px 34px rgba(204, 255, 0, 0.55); }

.btn-ghost { background: transparent; color: var(--yl); }
.btn-ghost:hover { background: rgba(204, 255, 0, 0.1); }

.btn-nav { padding: 10px 18px; font-size: 12px; }
.btn-big { padding: 18px 36px; font-size: 16px; }

.soon-pill {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid currentColor;
  opacity: 0.75;
}
.btn-ghost .soon-pill { background: rgba(204, 255, 0, 0.08); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px 0 60px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 900px 600px at 75% 40%, rgba(204, 255, 0, 0.09), transparent 60%),
    radial-gradient(ellipse 700px 500px at 15% 85%, rgba(0, 200, 5, 0.06), transparent 60%),
    var(--bg);
}

#hero-confetti {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  width: 100%;
}

.hero-kicker {
  color: var(--yl);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.34em;
  margin-bottom: 18px;
}
.hero-kicker::before { content: "▮ "; }

.hero h1 {
  font-size: clamp(48px, 7.2vw, 92px);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.hero h1 .yl { text-shadow: 0 0 44px rgba(204, 255, 0, 0.45); }

.hero-sub { margin: 26px 0 30px; font-size: clamp(17px, 2vw, 21px); line-height: 1.5; }
.big-miss { font-weight: 900; font-size: 1.25em; letter-spacing: 0.01em; }

.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }

.contract-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: rgba(204, 255, 0, 0.04);
  font-size: 13px;
  max-width: 100%;
}
.contract-label { color: var(--muted); font-weight: 900; letter-spacing: 0.1em; }
.contract-pill code { color: var(--yl); font-family: Consolas, Menlo, monospace; overflow: hidden; text-overflow: ellipsis; }
.contract-link:hover code { text-decoration: underline; }
#copy-ca {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: inherit;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  flex: none;
}
#copy-ca:hover { color: var(--yl); border-color: var(--yl); }

/* hero mascot + the "party stopped" beat */
.hero-mascot { position: relative; text-align: center; }

.mascot {
  width: min(440px, 88%);
  margin: 0 auto;
  filter: drop-shadow(0 24px 60px rgba(204, 255, 0, 0.22));
}

.hero-mascot .mascot { transition: opacity 0.35s; }
.hero-mascot .mascot-worried {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  opacity: 0;
}
.hero.swept .mascot-angry { opacity: 0; }
.hero.swept .mascot-worried { opacity: 1; animation: nervous 0.45s ease-in-out 2; }

@keyframes nervous {
  0%, 100% { transform: translateX(-50%) rotate(0deg); }
  25% { transform: translateX(-50.8%) rotate(-1.6deg); }
  75% { transform: translateX(-49.2%) rotate(1.6deg); }
}

.stamp {
  position: absolute;
  top: 8%;
  right: 2%;
  padding: 10px 16px;
  border: 3px solid var(--red);
  border-radius: 6px;
  color: var(--red);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.12em;
  line-height: 1.3;
  transform: rotate(9deg) scale(0.6);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s cubic-bezier(0.2, 2.4, 0.4, 1);
  background: rgba(7, 8, 5, 0.7);
  pointer-events: none;
}
.stamp span { display: block; font-size: 11px; letter-spacing: 0.24em; }
.hero.swept .stamp { opacity: 1; transform: rotate(9deg) scale(1); }

.mascot-caption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
  letter-spacing: 0.04em;
}

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--yl);
  padding: 10px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee-track span {
  color: #0a0a00;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.16em;
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- sections ---------- */
.section { padding: 110px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

h2 {
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 34px;
  line-height: 1.05;
}
.h-num {
  color: var(--yl);
  font-size: 0.45em;
  vertical-align: 0.9em;
  letter-spacing: 0.2em;
  margin-right: 8px;
  opacity: 0.85;
}

.section-sub { color: var(--muted); font-size: 18px; margin: -18px 0 40px; max-width: 720px; }

/* ---------- lore ---------- */
.lore-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: start; }
.lore-main p { margin-bottom: 22px; max-width: 640px; }
.lore-list { font-size: 19px; line-height: 1.9; font-weight: 600; }
.lore-turn { font-weight: 900; font-size: 22px; text-transform: uppercase; letter-spacing: 0.03em; }
.except-one { font-weight: 900; font-size: 30px; text-transform: uppercase; letter-spacing: 0.02em; }

.exhibit {
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  background: var(--panel);
  border-radius: 10px;
  padding: 22px 26px;
  margin: 30px 0;
  max-width: 640px;
}
.exhibit-tag { color: var(--red); font-size: 11px; font-weight: 900; letter-spacing: 0.22em; margin-bottom: 10px; }
.exhibit p { font-size: 24px; font-weight: 700; font-style: italic; margin-bottom: 8px !important; }
.exhibit cite { color: var(--muted); font-size: 13px; font-style: normal; }

/* "floating geometric shapes" — gray on purpose. boring on purpose. */
.shapes-quote {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  font-style: italic;
  color: #8a8a8a;
  border-left: 4px solid #3a3a3a;
  padding: 8px 0 8px 22px;
  margin: 30px 0 !important;
  max-width: 640px;
}

/* timeline */
.timeline {
  position: sticky;
  top: 100px;
  border-left: 2px solid var(--line);
  padding-left: 26px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.tl-item { position: relative; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 6px;
  width: 12px; height: 12px;
  border-radius: 3px;
  background: var(--yl);
  transform: rotate(12deg);
  box-shadow: 0 0 10px rgba(204, 255, 0, 0.5);
}
.tl-red::before { background: var(--red); box-shadow: 0 0 10px rgba(255, 77, 77, 0.5); }
.tl-date { font-weight: 900; font-size: 13px; letter-spacing: 0.2em; color: var(--yl); margin-bottom: 4px; }
.tl-red .tl-date { color: var(--red); }
.tl-item p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.tl-item p strong { color: var(--text); }
.tl-now { padding: 14px; margin-left: -14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(204, 255, 0, 0.05); }
.tl-now::before { left: -47px; }
.tl-now p { color: var(--text); }

/* ---------- who ---------- */
.who-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: center; }
.who-mascot img { width: min(420px, 100%); margin: 0 auto; filter: drop-shadow(0 20px 50px rgba(204, 255, 0, 0.16)); }
.who-mascot { text-align: center; }
.who-text p { margin-bottom: 20px; max-width: 620px; }
.lead { font-size: 22px; }
.we-take { font-weight: 900; font-size: 26px; text-transform: uppercase; color: var(--yl); letter-spacing: 0.02em; }

/* ---------- receipts ---------- */
.receipts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.receipt {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 28px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand, var(--yl));
  border-radius: 12px;
  color: var(--text);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.receipt:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--line);
}

.receipt-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.receipt-outlet { font-weight: 900; font-size: 15px; letter-spacing: 0.06em; color: var(--brand, var(--yl)); text-transform: uppercase; }
.receipt-date { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; }
.receipt h3 { font-size: 21px; font-weight: 800; line-height: 1.3; flex: 1; }
.receipt-cta { color: var(--yl); font-weight: 900; font-size: 12px; letter-spacing: 0.16em; display: flex; align-items: baseline; gap: 10px; }
.paywall-note { color: var(--muted); font-weight: 400; font-style: italic; letter-spacing: 0.02em; text-transform: none; }

/* ---------- tokenomics ---------- */
.tok-banner {
  border: 1px dashed var(--yl-dim);
  color: var(--yl);
  background: rgba(204, 255, 0, 0.05);
  border-radius: 10px;
  padding: 14px 20px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  margin-bottom: 30px;
}
.tok-banner a { text-decoration: underline; }

.tok-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; }
.tok-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tok-label { color: var(--muted); font-size: 12px; font-weight: 900; letter-spacing: 0.22em; }
.tok-value { color: var(--yl); font-size: 22px; font-weight: 900; letter-spacing: 0.02em; }
.tok-note { color: var(--muted); font-size: 12px; font-style: italic; }

/* ---------- how ---------- */
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.how-step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 24px;
  position: relative;
}
.how-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: var(--yl);
  color: #0a0a00;
  font-weight: 900;
  font-size: 19px;
  border-radius: 8px;
  transform: rotate(-6deg);
  margin-bottom: 16px;
  box-shadow: 0 0 16px rgba(204, 255, 0, 0.3);
}
.how-step h3 { font-size: 16px; font-weight: 900; letter-spacing: 0.06em; margin-bottom: 10px; }
.how-step p { color: var(--muted); font-size: 14.5px; }

/* ---------- community ---------- */
.community-wrap { text-align: center; }
.community-mascot { width: min(240px, 60%); margin: 0 auto 8px; filter: drop-shadow(0 16px 40px rgba(204, 255, 0, 0.22)); }
.community-wrap .section-sub { margin-left: auto; margin-right: auto; }
.community-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 54px 0 64px;
  background: var(--bg-alt);
}
.footer-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--yl);
  margin-bottom: 24px;
}
.disclaimer { color: var(--muted); font-size: 12.5px; line-height: 1.7; max-width: 860px; margin-bottom: 14px; }

/* ---------- scroll buddy ---------- */
#scroll-buddy {
  position: fixed;
  right: 26px;
  bottom: 28px;
  width: 112px;
  z-index: 9990;
  pointer-events: none;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.4s, transform 0.4s;
}
body.buddy-on #scroll-buddy { opacity: 1; transform: none; }

.buddy-sprite {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  transform-origin: 50% 100%;
  will-change: transform;
}
.buddy-sprite img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.16s;
  filter: drop-shadow(0 6px 14px rgba(204, 255, 0, 0.2));
}
.buddy-worried { opacity: 0; }
#scroll-buddy.airborne .buddy-worried { opacity: 1; }
#scroll-buddy.airborne .buddy-angry { opacity: 0; }

.buddy-shadow {
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: -7px;
  height: 12px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6), transparent 70%);
  border-radius: 50%;
  will-change: transform, opacity;
}

@media (max-width: 980px) {
  #scroll-buddy { width: 80px; right: 14px; bottom: 16px; }
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-btns, .contract-pill { justify-content: center; }
  .hero { padding-top: 110px; }
  .hero-mascot { order: -1; }
  .mascot { width: min(320px, 70%); }
  .lore-grid { grid-template-columns: 1fr; }
  .timeline { position: static; }
  .who-grid { grid-template-columns: 1fr; gap: 30px; }
  .receipts-grid { grid-template-columns: 1fr; }
  .tok-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}

@media (max-width: 560px) {
  .tok-grid, .how-grid { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .btn-nav { display: none; }
  .contract-pill { flex-wrap: wrap; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .hero.swept .mascot-worried { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
