/* =========================================================
   ROBINPUP — styles
   Palette: ink black, Sherwood green accent, gold + feather red.
   Type: Archivo Black (display) · Space Grotesk (body)
         JetBrains Mono (labels) · Press Start 2P (pixel accents)
   ========================================================= */

:root {
  --ink: #0b0b0c;
  --ink-soft: #0f1011;
  --ink-2: #151618;
  --ink-3: #1b1d20;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --fg: #f4f4f1;
  --muted: #9a9a94;
  --muted-2: #6f6f6a;

  --accent: #3ddc6a;
  --accent-deep: #1f8f42;
  --accent-ink: #062b14;
  --gold: #f5c542;
  --red: #e8453c;

  --display: "Archivo Black", "Arial Black", Impact, sans-serif;
  --body: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --pixel: "Press Start 2P", var(--mono);

  --r: 18px;
  --r-lg: 28px;
  --wrap: 1180px;
  --nav-h: 84px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ol, ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }
@media (max-width: 640px) { .wrap { width: calc(100% - 40px); } }

.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.98;
}
.display em { font-style: normal; color: var(--accent); }
.mono { font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.04em; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.eyebrow--center { justify-content: center; }

.dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; flex: none;
}
.dot--pulse { animation: pulse 1.8s ease-in-out infinite; box-shadow: 0 0 0 0 rgba(61, 220, 106, 0.6); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 106, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(61, 220, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 106, 0); }
}

.lede {
  font-size: clamp(1.05rem, 1.15vw + 0.8rem, 1.35rem);
  line-height: 1.55;
  color: #c9c9c3;
  max-width: 60ch;
}

/* ---------- Starfield canvas ---------- */
.stars {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; opacity: 0.9;
}
main, .nav, .footer { position: relative; z-index: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.32em;
  padding: 16px 26px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1;
  border: 1.5px solid var(--line-strong);
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: var(--accent); color: var(--accent-ink); border-color: var(--accent);
  box-shadow: 0 10px 30px -10px rgba(61, 220, 106, 0.6);
}
.btn--primary:hover { background: #55e87d; }
.btn--ghost { background: rgba(255, 255, 255, 0.02); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.05); }
.btn--sm { padding: 11px 18px; font-size: 0.9rem; }
.btn--lg { padding: 20px 32px; font-size: 1.1rem; }
.btn__icon {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-ink); color: var(--accent);
  font-size: 0.95rem; margin: -6px -8px -6px 8px;
}
.btn.is-disabled, .chip.is-disabled {
  opacity: 0.55; pointer-events: none; filter: saturate(0.5);
}
.btn.is-disabled .btn__icon { display: none; }
.btn.is-disabled::after {
  content: "soon";
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 999px; margin-left: 6px;
  background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(0, 0, 0, 0.25);
}
.btn--ghost.is-disabled::after { background: rgba(255, 255, 255, 0.08); border-color: var(--line-strong); color: var(--muted); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chips--tight { margin-top: 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 10px;
  background: var(--ink-2); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.85rem;
  transition: border-color 0.2s, background 0.2s;
  text-align: left;
}
.chip:not(.chip--static):hover { border-color: rgba(61, 220, 106, 0.5); background: var(--ink-3); }
.chip__label { color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.72rem; }
.chip__value { color: var(--fg); }
.chip__action { color: var(--accent); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.72rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(11, 11, 12, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand__mark {
  width: 52px; height: 52px; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #1a3d24, #0d1a11 70%);
  border: 2px solid rgba(61, 220, 106, 0.5);
  display: grid; place-items: center;
}
.brand__mark img { width: 42px; height: 42px; image-rendering: pixelated; }
.brand__text { display: flex; flex-direction: column; gap: 4px; }
.brand__name {
  font-family: var(--pixel); font-size: 0.95rem; letter-spacing: 0.02em; line-height: 1;
}
.brand__name em { font-style: normal; color: var(--accent); }
.brand__tag { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.2em; color: var(--muted); }

.nav__links { display: flex; align-items: center; gap: 28px; font-weight: 500; font-size: 0.95rem; }
.nav__links a:not(.btn) { color: #d4d4cf; transition: color 0.2s; }
.nav__links a:not(.btn):hover { color: var(--accent); }

.nav__toggle {
  display: none; width: 56px; height: 56px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.nav__toggle span { width: 20px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  position: absolute; left: 0; right: 0; top: var(--nav-h);
  background: rgba(11, 11, 12, 0.96); border-bottom: 1px solid var(--line);
  padding: 20px 24px 28px; display: flex; flex-direction: column; gap: 6px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { padding: 14px 4px; font-size: 1.1rem; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 16px; justify-content: center; }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .brand__tag { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(64px, 9vw, 130px) 0 clamp(40px, 6vw, 90px); }
.hero__glow {
  position: absolute; inset: -20% -10% auto; height: 70%;
  background:
    radial-gradient(ellipse at 75% 40%, rgba(61, 220, 106, 0.18), transparent 55%),
    radial-gradient(ellipse at 20% 0%, rgba(245, 197, 66, 0.07), transparent 50%);
  pointer-events: none;
}
.hero__grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 48px;
}
.hero h1 { font-size: clamp(2.7rem, 6.2vw, 5.4rem); margin-bottom: 26px; }
.hero__art { position: relative; display: grid; place-items: center; min-height: 420px; }
.hero__mascot {
  width: min(100%, 520px); height: auto; position: relative; z-index: 2;
  image-rendering: pixelated;
  filter: drop-shadow(0 30px 60px rgba(61, 220, 106, 0.25));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.hero__ring {
  position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  border: 1px dashed rgba(61, 220, 106, 0.35);
  animation: spin 40s linear infinite;
}
.hero__ring--2 { width: 96%; border-style: solid; border-color: rgba(255, 255, 255, 0.06); animation-duration: 70s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__badge {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 999px;
  background: rgba(15, 16, 17, 0.9); border: 1px solid var(--line-strong);
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.hero__badge--a { top: 12%; left: 0; animation: float 7s ease-in-out infinite 0.6s; }
.hero__badge--b { bottom: 14%; right: 0; color: var(--gold); border-color: rgba(245, 197, 66, 0.35); animation: float 8s ease-in-out infinite 1.2s; }

@media (max-width: 900px) {
  .hero { padding-top: 28px; }
  .hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .hero__art { order: -1; min-height: 0; margin: 0 auto; width: 100%; }
  .hero__copy { text-align: left; }
  .hero__mascot { width: min(92%, 420px); }
  .hero__ring { width: 88%; }
  .hero__ring--2 { width: 104%; }
  .hero__badge--a { left: 0; top: 2%; }
  .hero__badge--b { right: 0; bottom: 0; }
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--accent); color: var(--accent-ink);
  overflow: hidden; border-block: 1px solid rgba(0, 0, 0, 0.25);
  transform: rotate(-0.6deg) scale(1.02);
  margin: 10px 0 20px;
}
.marquee__track {
  display: flex; gap: 40px; width: max-content;
  padding: 16px 0;
  font-family: var(--display); font-size: 1.05rem; letter-spacing: 0.06em; text-transform: uppercase;
  animation: marquee 40s linear infinite;
}
.marquee__track > span { white-space: nowrap; }
.marquee__track .sep { opacity: 0.55; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats { padding: clamp(70px, 8vw, 120px) 0; text-align: center; position: relative; }
.stats__big {
  font-size: clamp(2.6rem, 8vw, 6.5rem); color: var(--accent);
  text-shadow: 0 0 60px rgba(61, 220, 106, 0.25);
  margin-bottom: 18px;
}
.stats__sub { display: flex; justify-content: center; align-items: baseline; gap: 12px; font-size: 1.4rem; }
.stats__sub strong { font-weight: 700; }
.stats__note { margin-top: 12px; font-size: 0.95rem; }
.stats__row {
  margin: 56px auto 0; padding-top: 40px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 900px;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.stat__label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.stat__value { font-size: 1.5rem; font-weight: 700; }
.up, .stat__value.up { color: var(--accent); }
.down, .stat__value.down { color: var(--red); }
@media (max-width: 640px) {
  .stats__row { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Legend ---------- */
.legend { background: var(--ink-soft); border-block: 1px solid var(--line); padding: clamp(70px, 8vw, 130px) 0; position: relative; overflow: hidden; }
.legend__grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: start; }
.legend h2 { font-size: clamp(2.2rem, 4.4vw, 3.8rem); margin-bottom: 22px; }
.tiles {
  display: grid; grid-template-columns: auto auto auto; margin-top: 40px;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--ink);
}
.tile { padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; }
.tile + .tile { border-left: 1px solid var(--line); }
.tile__label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.tile__value { font-family: var(--display); font-size: clamp(1.05rem, 1.5vw, 1.45rem); white-space: nowrap; }

.legend__panels { display: flex; flex-direction: column; gap: 20px; }
.card {
  background: var(--ink); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.card__head, .card__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 22px;
}
.card__foot { border-top: 1px solid var(--line); }
.pill-group { display: inline-flex; gap: 4px; }
.pill {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 6px; color: var(--muted);
}
.pill.is-on { background: rgba(61, 220, 106, 0.12); color: var(--accent); }

.chart-card__body { height: 240px; position: relative; }
.chart-card__body iframe { width: 100%; height: 100%; border: 0; display: block; }
.spark { width: 100%; height: 100%; display: block; }
.spark__line { filter: drop-shadow(0 0 8px rgba(61, 220, 106, 0.45)); }

.quiver { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; padding: 6px 22px 22px; }
.quiver span {
  aspect-ratio: 1; border-radius: 6px; background: #1a2a1e;
  transition: background 0.8s ease, box-shadow 0.8s ease;
}
.quiver span.lit { background: #3ddc6a; box-shadow: 0 0 14px rgba(61, 220, 106, 0.45); }
.quiver span.warm { background: #2f7a45; }
.quiver span.gold { background: var(--gold); box-shadow: 0 0 14px rgba(245, 197, 66, 0.35); }

@media (max-width: 960px) {
  .legend__grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 520px) {
  .tiles { grid-template-columns: 1fr; }
  .tile + .tile { border-left: 0; border-top: 1px solid var(--line); }
  .quiver { grid-template-columns: repeat(8, 1fr); }
  .card__head { flex-wrap: wrap; }
}

/* ---------- How it works ---------- */
.how { padding: clamp(70px, 8vw, 130px) 0; }
.how__head { max-width: 760px; margin-bottom: 60px; }
.how h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); margin-bottom: 18px; }
.steps { display: flex; flex-direction: column; }
.step {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  padding: 56px 0; border-top: 1px solid var(--line);
}
.step:nth-child(even) .step__art { order: 2; }
.step__num { font-family: var(--display); color: var(--accent); font-size: 1.1rem; display: block; margin-bottom: 14px; }
.step h3 { font-family: var(--display); font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: -0.01em; line-height: 1.1; margin-bottom: 16px; }
.step p { color: #c9c9c3; font-size: 1.05rem; }
.step p a { color: var(--accent); border-bottom: 1px solid rgba(61, 220, 106, 0.4); }

.art {
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line); display: grid; place-items: center;
  background-color: var(--ink-2);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
}
.art--forest { background-color: #0f2a17; }
.art--forest::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 80%, rgba(61, 220, 106, 0.4), transparent 60%); }
.art--gold { background-color: #2b230a; }
.art--gold::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 80%, rgba(245, 197, 66, 0.4), transparent 60%); }
.art--red { background-color: #2e1210; }
.art--red::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 80%, rgba(232, 69, 60, 0.4), transparent 60%); }
.art__word {
  position: absolute; inset: auto 0 6%; text-align: center;
  font-family: var(--display); font-size: clamp(3rem, 8vw, 6.5rem); letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.92); text-transform: uppercase; line-height: 1;
  -webkit-text-stroke: 2px rgba(0, 0, 0, 0.5);
  text-shadow: 0 6px 0 rgba(0, 0, 0, 0.45);
  z-index: 1;
}
.art__pup {
  position: relative; z-index: 2; width: 58%; height: auto; image-rendering: pixelated;
  transform: translateY(-6%);
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
  transition: transform 0.6s var(--ease);
}
.art__pup--flip { transform: translateY(-6%) scaleX(-1) rotate(-4deg); }
.art__pup--tilt { transform: translateY(-6%) rotate(8deg); }
.step:hover .art__pup { transform: translateY(-9%) scale(1.04); }
.step:hover .art__pup--flip { transform: translateY(-9%) scaleX(-1) rotate(-6deg) scale(1.04); }
.step:hover .art__pup--tilt { transform: translateY(-9%) rotate(12deg) scale(1.04); }
.art__tag {
  position: absolute; top: 16px; left: 16px; z-index: 3;
  padding: 8px 12px; border-radius: 999px; background: rgba(0, 0, 0, 0.55); border: 1px solid var(--line-strong);
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
}

@media (max-width: 860px) {
  .step { grid-template-columns: 1fr; gap: 28px; padding: 44px 0; }
  .step:nth-child(even) .step__art { order: 0; }
}

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(90px, 12vw, 180px) 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(61, 220, 106, 0.22), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, #0c160f 100%);
  border-top: 1px solid var(--line);
}
.cta__pup {
  position: absolute; right: -6%; bottom: -12%; width: clamp(320px, 42vw, 640px); height: auto;
  opacity: 0.16; image-rendering: pixelated; pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.2));
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.2));
}
.cta h2 { font-size: clamp(2.6rem, 6.5vw, 5.6rem); }
.cta .actions { justify-content: center; }
.cta .eyebrow { justify-content: center; }

/* ---------- Footer ---------- */
.footer { padding: 70px 0 40px; border-top: 1px solid var(--line); background: var(--ink); }
.footer__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.addr { padding: 28px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.addr__ticker { font-size: 1.8rem; }
.addr__value { word-break: break-all; color: #d4d4cf; margin: 8px 0 12px; }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line);
}
.footer__brand { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.footer__brand img { image-rendering: pixelated; border-radius: 50%; }
.footer__links { display: flex; flex-wrap: wrap; gap: 22px; color: var(--muted); }
.footer__links a:hover { color: var(--accent); }
.footer__legal { margin-top: 28px; color: var(--muted-2); font-size: 0.78rem; line-height: 1.7; max-width: 900px; }

@media (max-width: 760px) {
  .footer__cards { grid-template-columns: 1fr; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  padding: 12px 18px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700;
  opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s var(--ease);
  z-index: 100;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
