/* ===========================================================
   $BITCAT | The Bridge Cat
   Matrix / ASCII terminal design system.
   Original ink black + cyan glow palette, arcade + terminal type.
=========================================================== */

:root {
  --ink-950: #0a0a0a;
  --ink-900: #0d1718;
  --ink-800: #171717;
  --ink-700: #1e2428;
  --panel-700: #1f4e58;
  --panel-600: #1e879d;
  --cyan-500: #00c4ee;
  --cyan-400: #35e5f3;
  --cyan-300: #00ffff;
  --slate-400: #9ca3af;
  --slate-300: #c8c7d8;
  --white: #ffffff;
  --off-white: #ededed;
  --amber: #fbbf24;

  --font-display: 'Press Start 2P', 'Chakra Petch', monospace;
  --font-body: 'VT323', 'Space Grotesk', monospace;
  --font-mono: 'Space Mono', monospace;

  --radius-pill: 3px;
  --radius-lg: 4px;
  --border-thick: 2px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 18px; }

body {
  font-family: var(--font-body);
  font-weight: 500;
  background: var(--ink-950);
  color: var(--off-white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---------- Background FX: matrix rain + scanlines ---------- */
.matrix-rain {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100vw;
  height: 100vh;
  display: block;
  opacity: 0.38;
}
.crt-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.35) 0px, rgba(0,0,0,0.35) 1px, transparent 1px, transparent 3px);
  opacity: 0.5;
  mix-blend-mode: overlay;
}
@media (prefers-reduced-motion: reduce) { .crt-overlay { opacity: 0.25; } }

/* ---------- Ambient ASCII cat typist (ASCII-art cats that type themselves out in empty page margins) ---------- */
.cat-typist { position: absolute; top: 0; left: 0; width: 100%; z-index: 3; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .cat-typist { display: none; } }
.cat-slot {
  position: absolute;
  width: max-content;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  line-height: 1.25;
  color: var(--cyan-400);
  text-shadow: 0 0 6px rgba(53,229,243,0.5);
  opacity: 0;
  white-space: pre;
  text-align: left;
  transition: opacity 0.5s ease;
}
.cat-slot.is-visible { opacity: 0.85; }
.cat-slot.is-blink { animation: catBlink 0.5s ease-in-out 2; }
@keyframes catBlink {
  0%, 100% { opacity: 0.85; text-shadow: 0 0 6px rgba(53,229,243,0.5); }
  50% { opacity: 1; text-shadow: 0 0 18px rgba(53,229,243,1), 0 0 30px rgba(53,229,243,0.7); }
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- Immersive Intro (three.js block-mining opening) ---------- */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: var(--ink-950);
  overflow: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
  /* hard fallback: force-hide even if the intro script never runs. Generous on
     purpose — the mobile flow waits on a tap of the "ENTER" button, so this must
     never race ahead of someone just taking a moment to look at the cat first. */
  animation: introHardFallback 0s linear 45s forwards;
}
.intro-overlay.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes introHardFallback { to { opacity: 0; visibility: hidden; pointer-events: none; } }
#introCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.intro-tunnel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 0.35s ease;
  box-shadow: inset 0 0 22vw 8vw rgba(0,0,0,0.65);
  animation: tunnelPulse 1.6s ease-in-out infinite;
}
.intro-tunnel.is-visible { opacity: 1; }
@keyframes tunnelPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}
@media (prefers-reduced-motion: reduce) { .intro-tunnel { animation: none; } }

/* Mobile-only step: after the tunnel, the cat takes over the full screen
   instead of jumping straight to the site, and waits for a tap on ENTER
   before the landing page underneath is revealed. */
.intro-gate {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: var(--ink-950);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.intro-gate.is-visible { opacity: 1; pointer-events: auto; }
/* Fills most of the intro screen so the cat is full-bleed, but capped to a
   fixed aspect ratio instead of stretching to 100% height: the source clip
   is landscape, and object-fit:cover forced across an arbitrarily tall phone
   screen (some run past 2:1) crops down to a sliver of the frame — a wild,
   disproportionate zoom. Capping the box's own shape keeps the crop factor
   consistent and reasonable across every phone aspect ratio. */
.intro-gate__video-wrap {
  position: relative;
  width: 100%;
  max-height: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.intro-gate__vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  filter: invert(1) sepia(1) hue-rotate(150deg) saturate(5) brightness(1.15) contrast(1.05);
  mix-blend-mode: screen;
}
.intro-gate__vid--glow {
  filter: invert(1) sepia(1) hue-rotate(150deg) saturate(6) brightness(1.35) blur(22px);
  transform: scale(1.12);
  opacity: 0.7;
  animation: bannerGlowPulse 3.4s ease-in-out infinite;
}
.intro-gate__enter {
  position: absolute;
  left: 50%;
  bottom: 14%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--ink-950);
  background: var(--cyan-400);
  border: none;
  padding: 18px 50px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  animation: enterPulse 1.8s ease-in-out infinite;
}
@keyframes enterPulse {
  0%, 100% { box-shadow: 0 0 16px rgba(53,229,243,0.4); }
  50% { box-shadow: 0 0 34px rgba(53,229,243,0.85); }
}
.intro-gate.is-visible ~ .intro-caption { visibility: hidden; }
@media (min-width: 901px) { .intro-gate { display: none; } }
@media (prefers-reduced-motion: reduce) { .intro-gate__vid--glow, .intro-gate__enter { animation: none; } }

.intro-caption {
  position: absolute;
  left: 50%;
  bottom: 13%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-400);
  text-shadow: 0 0 14px rgba(53,229,243,0.65);
  animation: introCaptionPulse 1.4s ease-in-out infinite;
  white-space: nowrap;
}
@keyframes introCaptionPulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
.intro-skip {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--slate-300);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.intro-skip:hover { border-color: var(--cyan-400); color: var(--cyan-400); }
/* Mobile has no skip path at all — ENTER on the cat gate is the only way
   through, so the button is dropped from the very start of the intro
   instead of only once the gate appears. */
@media (max-width: 900px) { .intro-skip { display: none; } }
@media (prefers-reduced-motion: reduce) { .intro-overlay { display: none; } }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.55;
  letter-spacing: 0;
  color: var(--white);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan-400);
  margin-bottom: 14px;
}

.section-head { max-width: 760px; margin: 0 auto 52px; text-align: center; padding: 0 24px; }
.section-head h2 { font-size: clamp(1.15rem, 2.8vw, 1.7rem); text-shadow: 0 2px 16px rgba(0,0,0,0.85), 0 0 34px rgba(0,0,0,0.6); }
.section-head p.section-sub { margin-top: 14px; color: var(--slate-300); font-size: 1rem; }
.section-head .eyebrow, .lore__translation, .lore__callout, .num__wink {
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 26px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-radius: var(--radius-pill);
  border: var(--border-thick) solid var(--cyan-400);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(53, 229, 243, 0.35); }
.btn--sm { padding: 10px 18px; font-size: 0.52rem; }
.btn--primary { background: var(--cyan-400); color: var(--ink-950); }
.btn--primary:hover { background: var(--cyan-300); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.3); }
.btn--ghost:hover { border-color: var(--cyan-400); }
.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.3); }
.btn--outline-light:hover { border-color: var(--cyan-400); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(10,10,10,0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(53,229,243,0.18); }
.nav__inner { padding: 14px clamp(24px, 8vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 0.85rem; color: var(--white); letter-spacing: 0.02em; line-height: 1; }
/* Scoped to the header, not .footer__logo, which reuses .nav__logo for
   layout only and shouldn't pick up the pill border. */
.nav .nav__logo { padding: 10px 18px; border: 1.5px solid var(--white); border-radius: 14px; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.nav .nav__logo:hover, .nav .nav__logo:focus-visible { border-color: var(--cyan-400); box-shadow: 0 0 14px rgba(53,229,243,0.4); }
.logo-mark { width: 36px; height: 36px; flex-shrink: 0; }
.nav__logo-cash { color: var(--cyan-400); }
.nav__links { display: flex; gap: 26px; font-family: var(--font-display); font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.02em; }
.nav__links a { color: var(--slate-300); opacity: 0.9; transition: color 0.15s; }
.nav__links a:hover { color: var(--cyan-400); }
/* Desktop already has its own BUY button (.nav__cta) next to the burger —
   this is a mobile-only shortcut inside the dropdown, since .nav__cta is
   hidden there in favor of the hamburger menu. */
.nav__links-buy { display: none; }
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__burger span { width: 22px; height: 2px; background: var(--white); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  padding: 90px clamp(24px, 8vw, 80px) 70px;
  display: flex;
  align-items: center;
  min-height: 88vh;
  overflow: hidden;
  /* ambient wash spilling out from the cat video so the whole section reads as
     one lit scene instead of "glowing video" dropped onto a flat dark panel */
  background:
    radial-gradient(65% 75% at 80% 45%, rgba(53,229,243,0.2) 0%, rgba(53,229,243,0.08) 45%, transparent 75%),
    radial-gradient(50% 60% at 6% 92%, rgba(53,229,243,0.08) 0%, transparent 70%);
}
.hero__banner {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(50%, 780px);
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.6) 14%, black 28%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.6) 14%, black 28%);
}
.hero__banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 68%, rgba(10,10,10,0.75) 88%, var(--ink-950) 100%);
  pointer-events: none;
}
.hero__banner-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  /* the source is black line-art on white: invert it to white-on-black first,
     then sepia+hue-rotate re-tints that white into the site's cyan, and
     screen-blending drops the (now black) background out against the page. */
  filter: invert(1) sepia(1) hue-rotate(150deg) saturate(5) brightness(1.15) contrast(1.05);
  mix-blend-mode: screen;
}
.hero__banner-vid--glow {
  filter: invert(1) sepia(1) hue-rotate(150deg) saturate(6) brightness(1.35) blur(16px);
  transform: scale(1.08);
  opacity: 0.75;
  animation: bannerGlowPulse 3.4s ease-in-out infinite;
}
@keyframes bannerGlowPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.9; }
}
@media (prefers-reduced-motion: reduce) { .hero__banner-vid--glow { animation: none; opacity: 0.7; } }
@media (max-width: 900px) { .hero__banner { display: none; } }

/* min-width:0 overrides the flex item's default min-width:auto, which was
   letting long unbroken runs (e.g. "322,917.") force the box wider than the
   available space instead of wrapping — invisible on desktop where there's
   room to spare, but on narrow phones it pushed text past the edge, clipped
   by .hero's own overflow:hidden. */
.hero__content { position: relative; z-index: 2; max-width: 680px; min-width: 0; }
.hero__title { font-size: clamp(1.3rem, 3.4vw, 2.3rem); color: var(--white); text-shadow: 0 2px 20px rgba(0,0,0,0.8); }
.hero__title .outline { -webkit-text-stroke: 1.5px var(--cyan-400); color: transparent; display: inline-block; animation: outlineGlitch 6s ease-in-out infinite; }
@keyframes outlineGlitch {
  0%, 92%, 100% { text-shadow: none; transform: translate(0, 0); }
  93% { text-shadow: 2px 0 var(--cyan-300), -2px 0 var(--panel-700); transform: translate(-1px, 0); }
  94% { text-shadow: -2px 0 var(--cyan-300), 2px 0 var(--panel-700); transform: translate(1px, 0); }
  95% { text-shadow: 1px 0 var(--cyan-300), -1px 0 var(--panel-700); transform: translate(0, -1px); }
  96%, 99% { text-shadow: none; transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) { .hero__title .outline { animation: none; } }
.hero__mantra { margin-top: 32px; max-width: 580px; }
.hero__mantra-line { display: block; min-height: 1.6em; font-family: var(--font-body); font-size: 1.2rem; line-height: 1.55; letter-spacing: 0.01em; color: var(--slate-300); }
.hero__mantra-line .hl { background: var(--cyan-400); color: var(--ink-950); padding: 0 6px; border-radius: 4px; font-weight: 700; }

.hero__actions { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.hero__ca { margin-top: 28px; display: inline-flex; align-items: center; gap: 12px; background: rgba(31,78,88,0.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(53,229,243,0.35); border-radius: var(--radius-pill); padding: 10px 10px 10px 20px; font-family: var(--font-mono); font-size: 0.82rem; }
.hero__ca-label { color: var(--cyan-400); font-weight: 700; }
.hero__ca-value { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: default; }
.hero__launchpad { margin-top: 14px; font-family: var(--font-body); font-size: 0.95rem; color: var(--slate-400); }
.hero__launchpad a { color: var(--cyan-400); text-decoration: underline; text-underline-offset: 3px; }
.hero__launchpad a:hover { color: var(--white); }
.copy-btn { background: var(--cyan-400); color: var(--ink-950); border: none; border-radius: var(--radius-pill); padding: 8px 16px; font-family: var(--font-display); font-size: 0.56rem; cursor: pointer; font-weight: 400; }
.copy-btn:hover { background: var(--cyan-300); }

/* ---------- Lore / Proof ---------- */
.lore { padding: 100px 24px; max-width: 1020px; margin: 0 auto; }
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 40px; }
.proof-card { display: block; background: var(--ink-900); border: 1px solid rgba(53,229,243,0.22); border-radius: var(--radius-lg); padding: 26px 28px; transition: transform 0.15s ease, border-color 0.15s ease; }
.proof-card:hover { transform: translate(-2px, -2px); border-color: var(--cyan-400); box-shadow: 0 8px 26px rgba(53,229,243,0.18); }
.proof-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--cyan-400); text-transform: uppercase; letter-spacing: 0.06em; }
.proof-head .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan-400); box-shadow: 0 0 6px var(--cyan-400); }
.proof-card p { font-size: 1.02rem; color: var(--off-white); }
.proof-card cite { display: block; margin-top: 16px; font-family: var(--font-mono); font-size: 0.78rem; font-style: normal; color: var(--slate-400); }
.proof-cite--glow { color: var(--cyan-400); font-weight: 700; animation: citeGlowPulse 2.4s ease-in-out infinite; }
@keyframes citeGlowPulse {
  0%, 100% { text-shadow: 0 0 6px rgba(53,229,243,0.55), 0 0 14px rgba(53,229,243,0.3); }
  50% { text-shadow: 0 0 10px rgba(53,229,243,0.9), 0 0 22px rgba(53,229,243,0.6); }
}
@media (prefers-reduced-motion: reduce) {
  .proof-cite--glow { animation: none; text-shadow: 0 0 8px rgba(53,229,243,0.7), 0 0 16px rgba(53,229,243,0.4); }
}
.hl { background: var(--cyan-400); color: var(--ink-950); padding: 0 6px; border-radius: 4px; }

.lore__tx { margin: 32px auto 0; max-width: 640px; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; background: rgba(31,78,88,0.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(53,229,243,0.35); border-radius: var(--radius-pill); padding: 10px 10px 10px 20px; font-family: var(--font-mono); font-size: 0.82rem; }
.lore__tx-label { color: var(--cyan-400); font-weight: 700; }
.lore__tx-value { display: inline-block; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; color: var(--off-white); text-decoration: underline; text-underline-offset: 3px; }
.lore__tx-value:hover { color: var(--cyan-400); }
@media (max-width: 480px) { .lore__tx-value { max-width: 160px; } }

.seal-figure { margin: 44px auto 0; text-align: center; }
.seal-glyph {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--cyan-400);
  text-shadow: 0 0 10px rgba(53,229,243,0.4);
  white-space: pre;
  overflow-x: auto;
}
.seal-caption { margin-top: 14px; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em; color: var(--slate-300); }
.lore__translation { max-width: 500px; margin: 40px auto 0; text-align: center; font-family: var(--font-body); font-size: 1.1rem; color: var(--slate-300); }
.lore__callout { text-align: center; font-family: var(--font-display); font-size: 1rem; line-height: 1.8; text-transform: uppercase; margin-top: 40px; color: var(--cyan-400); }

/* ---------- The Nine Laws ---------- */
.laws { background: rgba(13,23,24,0.8); padding: 90px 24px; }
.laws__list { max-width: 640px; margin: 0 auto; list-style: none; counter-reset: law; display: flex; flex-direction: column; gap: 16px; }
.laws__list li { counter-increment: law; font-family: var(--font-mono); font-size: 1rem; color: var(--off-white); padding-left: 4.2em; position: relative; }
.laws__list li::before { content: counter(law, upper-roman) "."; position: absolute; left: 0; width: 3.6em; text-align: right; color: var(--cyan-400); font-weight: 700; }
/* The redacted "law nine" line has no spaces to wrap at, so on narrow
   viewports it was forcing the entire page wider than the screen — a single
   unbroken run of block glyphs stretching every section's scroll width. */
.laws__ix { color: var(--slate-400); letter-spacing: 0.08em; overflow-wrap: anywhere; }
.laws__note { text-align: center; margin-top: 32px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--slate-400); }

/* ---------- How It Works ---------- */
.how { background: rgba(10,10,10,0.45); padding: 100px 24px; }
.how__grid { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.how__card { position: relative; background: var(--ink-900); border: 1px solid rgba(53,229,243,0.18); border-radius: var(--radius-lg); overflow: hidden; transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.how__card:hover { transform: translateY(-4px); border-color: var(--cyan-400); box-shadow: 0 10px 28px rgba(53,229,243,0.18); }
/* Art bleeds to the card's rounded top corners, then dissolves into the
   card's own dark background — same treatment as the community/stonkfun art. */
.how__card-img {
  display: block;
  width: 100%;
  height: clamp(190px, 24vw, 260px);
  object-fit: cover;
  object-position: center 30%;
  -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 98%);
  mask-image: linear-gradient(to bottom, black 55%, transparent 98%);
}
.how__card-body { padding: 4px 26px 28px; }
.how__num { font-family: var(--font-display); font-size: 1.4rem; color: var(--cyan-400); display: block; margin-bottom: 10px; }
.how__card h3 { font-size: 1.1rem; }
/* Same breathing glow as the Stonkfun/community art: a screen-blended,
   brightened/blurred duplicate of the card's own image, laid exactly over it. */
.how__card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(190px, 24vw, 260px);
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  filter: brightness(1.35) saturate(1.3) blur(4px);
  mix-blend-mode: screen;
  opacity: 0.4;
  -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 98%);
  mask-image: linear-gradient(to bottom, black 55%, transparent 98%);
  pointer-events: none;
  animation: stonkCatPulse 3.2s ease-in-out infinite;
}
.how__card--01::after { background-image: url('assets/cats/THE DOORSTEP assets/card1.png'); animation-delay: 0s; }
.how__card--02::after { background-image: url('assets/cats/THE DOORSTEP assets/card2.png'); animation-delay: 0.4s; }
.how__card--03::after { background-image: url('assets/cats/THE DOORSTEP assets/card3.jpg'); animation-delay: 0.8s; }
@media (prefers-reduced-motion: reduce) { .how__card::after { animation: none; opacity: 0.4; } }
@media (max-width: 760px) { .how__grid { grid-template-columns: 1fr; } }

/* ---------- Stonkfun ---------- */
.stonkfun { position: relative; background: rgba(13,23,24,0.8); color: var(--white); padding: 100px 24px; }
.stonkfun__card { position: relative; max-width: 640px; margin: 0 auto; background: linear-gradient(160deg, var(--panel-700) 0%, var(--ink-900) 100%); color: var(--white); border-radius: var(--radius-lg); padding: 0 44px 46px; text-align: center; border: 1px solid rgba(53,229,243,0.25); overflow: hidden; animation: ambientGlow 4s ease-in-out infinite; animation-delay: 1s; }
/* Card art bleeds edge-to-edge to the rounded top corners, then dissolves
   into the card's own dark gradient so it reads as the card's background
   rather than a pasted-on photo — same treatment as the community banner. */
.stonkfun__card::before {
  content: '';
  display: block;
  width: calc(100% + 88px);
  margin: 0 -44px 28px;
  height: clamp(190px, 32vw, 320px);
  background-image: linear-gradient(to bottom, transparent 38%, var(--panel-700) 94%), url('assets/cats/catstonksession.png');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}
/* Glow pass over just the cat + hearts (left ~60% of the frame) — a screen-blended,
   brightened/blurred duplicate of the same crop, breathing in and out. Screen
   leaves the near-black background untouched and only blooms where the art is
   already bright, so the wireframe cat and hearts pick up a soft cyan halo
   without lighting up the flat "stonk" ball on the right. Kept subtle — this
   is a highlight, not a wash — so the linework underneath stays readable.*/
.stonkfun__card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(190px, 32vw, 320px);
  background-image: url('assets/cats/catstonksession.png');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  filter: brightness(1.35) saturate(1.3) blur(4px);
  mix-blend-mode: screen;
  opacity: 0.4;
  -webkit-mask-image: linear-gradient(to right, black 0%, black 58%, transparent 68%);
  mask-image: linear-gradient(to right, black 0%, black 58%, transparent 68%);
  pointer-events: none;
  animation: stonkCatPulse 3.2s ease-in-out infinite;
}
@keyframes stonkCatPulse {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.55; }
}
@media (prefers-reduced-motion: reduce) { .stonkfun__card::after, .community__card::after { animation: none; opacity: 0.4; } }
.stonkfun__desc { max-width: 500px; margin: 0 auto; font-size: 0.98rem; line-height: 1.65; color: var(--slate-300); }
/* Terminal-style thesis block — reads like a dev's changelog comment, not
   marketing copy, to match the site's degen/hacker voice. */
.stonkfun__thesis { margin-top: 36px; padding-top: 32px; border-top: 1px dashed rgba(255,255,255,0.15); }
.stonkfun__thesis-label { font-family: var(--font-display); font-size: 1rem; text-transform: uppercase; color: var(--cyan-400); }
.stonkfun__thesis-list { list-style: none; margin: 22px auto 0; max-width: 440px; text-align: left; display: flex; flex-direction: column; gap: 13px; }
.stonkfun__thesis-list li { font-family: var(--font-mono); font-size: 0.92rem; color: var(--off-white); display: flex; gap: 12px; }
.stonkfun__thesis-list li span { color: var(--cyan-400); flex-shrink: 0; }
@media (max-width: 560px) { .stonkfun__card { padding: 0 26px 40px; } .stonkfun__card::before { width: calc(100% + 52px); margin: 0 -26px 24px; } }

/* ---------- Live Rewards ---------- */
.rewards { background: rgba(10,10,10,0.45); padding: 100px 24px; }
.rewards .eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan-400); box-shadow: 0 0 0 rgba(53,229,243,0.6); animation: livePulse 2s infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(53,229,243,0.55); } 70% { box-shadow: 0 0 0 8px rgba(53,229,243,0); } 100% { box-shadow: 0 0 0 0 rgba(53,229,243,0); } }

.rewards__card { max-width: 900px; margin: 0 auto; background: linear-gradient(160deg, var(--panel-700) 0%, var(--ink-900) 100%); color: var(--white); border-radius: var(--radius-lg); padding: 46px; border: 1px solid rgba(53,229,243,0.25); animation: ambientGlow 4s ease-in-out infinite; }
@keyframes ambientGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(53,229,243,0); }
  50% { box-shadow: 0 0 40px rgba(53,229,243,0.16); }
}
@media (prefers-reduced-motion: reduce) { .rewards__card, .community__card, .stonkfun__card { animation: none; } }
.rewards__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 46px; }
.rewards__stat { display: flex; flex-direction: column; }
.rewards__stat--sm { border-top: 1px dashed rgba(255,255,255,0.2); padding-top: 20px; }
.rewards__label { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cyan-400); margin-bottom: 8px; }
.rewards__value { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.01em; }
.rewards__value--sm { font-size: 1rem; }
.rewards__sub { margin-top: 6px; font-family: var(--font-mono); font-size: 0.82rem; color: var(--slate-300); opacity: 0.9; }
.rewards__bar { margin-top: 12px; height: 8px; width: 100%; background: rgba(255,255,255,0.15); border-radius: var(--radius-pill); overflow: hidden; }
.rewards__bar-fill { height: 100%; width: 0%; background: var(--cyan-400); transition: width 0.6s ease; box-shadow: 0 0 8px var(--cyan-400); }
.rewards__footnote { margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.15); font-family: var(--font-mono); font-size: 0.78rem; color: rgba(255,255,255,0.6); text-align: center; }
.rewards__footnote a { color: var(--cyan-400); text-decoration: underline; text-underline-offset: 3px; }
.rewards__footnote a:hover { color: var(--white); }
.rewards__card[data-state="error"] .rewards__value::after { content: " (unavailable)"; font-family: var(--font-mono); font-size: 0.6rem; color: rgba(255,255,255,0.5); }
@media (max-width: 560px) { .rewards__card { padding: 30px 22px; } .rewards__grid { grid-template-columns: 1fr; gap: 26px; } .rewards__value { font-size: 1.05rem; } }

/* ---------- Who Was First ---------- */
.wwf { background: rgba(13,23,24,0.8); padding: 100px 24px; }
/* 11 stops is too many to force into one row without cramping the badges, so
   the row scrolls horizontally instead of wrapping — wrapping would break the
   connecting line, which only makes sense drawn under a single row. Setting
   overflow-x also computes overflow-y as auto (per spec, it can't stay
   "visible" once the other axis isn't) — that clips any badge glow reaching
   past the padding box, most visibly on the first/last (featured, larger-
   glow) badges, so the sides need enough padding to give it room to fade out
   before hitting that edge instead of getting cut flat. */
.wwf__timeline { position: relative; max-width: 1150px; margin: 0 auto; display: flex; justify-content: space-between; gap: 22px; padding: 30px 30px 34px; overflow-x: auto; }
.wwf__timeline::before {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  top: 64px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(53,229,243,0.5) 8%, rgba(53,229,243,0.5) 92%, transparent);
}
.wwf__item { position: relative; z-index: 1; flex: 0 0 auto; width: 78px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.wwf__year { font-family: var(--font-mono); font-size: 0.85rem; color: var(--cyan-400); letter-spacing: 0.04em; }
.wwf__badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--ink-900);
  border: 2px solid rgba(53,229,243,0.4);
  box-shadow: 0 0 14px rgba(53,229,243,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.wwf__badge img { width: 100%; height: 100%; object-fit: cover; }
.wwf__item--featured .wwf__badge { width: 72px; height: 72px; border-width: 3px; border-color: var(--cyan-400); box-shadow: 0 0 22px rgba(53,229,243,0.4); }
.wwf__name { font-family: var(--font-mono); font-size: 0.85rem; color: var(--off-white); }
.wwf__name em { color: var(--cyan-400); font-style: normal; }
/* Mobile keeps the same horizontal, swipe-to-scroll row as desktop/tablet
   (native touch momentum scrolling on overflow-x:auto) instead of stacking
   11 stops vertically, which made the page dramatically taller. Padding is
   left as-is at every width — it's what keeps the featured badges' glow
   (see comment above) from clipping, not just a desktop-only affordance. */

/* ---------- ASCII Cat Gallery ---------- */
.gallery { background: rgba(10,10,10,0.45); padding: 100px 24px; }
.gallery__grid { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.gallery__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 190px;
  background: var(--ink-900);
  border: 1px solid rgba(53,229,243,0.18);
  border-radius: var(--radius-lg);
  padding: 22px 16px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.gallery__card:hover { transform: translateY(-4px); border-color: var(--cyan-400); box-shadow: 0 10px 28px rgba(53,229,243,0.18); }
.gallery__ascii {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  line-height: 1.2;
  color: var(--cyan-400);
  text-shadow: 0 0 8px rgba(53,229,243,0.35);
  white-space: pre;
  text-align: left;
}
.gallery__label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate-400); }

.gallery__submit {
  max-width: 780px;
  margin: 56px auto 0;
  text-align: center;
  background: linear-gradient(160deg, var(--panel-700) 0%, var(--ink-900) 100%);
  border: 1px solid rgba(53,229,243,0.25);
  border-radius: var(--radius-lg);
  padding: 46px 40px;
}
.gallery__submit h3 { font-size: clamp(1rem, 2.5vw, 1.3rem); margin-top: 10px; color: var(--white); }
.gallery__submit-desc { font-family: var(--font-body); font-size: 1.05rem; color: var(--slate-300); max-width: 620px; margin: 20px auto 28px; }
.gallery__submit-desc strong { color: var(--cyan-400); }
@media (max-width: 560px) { .gallery__submit { padding: 34px 24px; } }

/* ---------- FAQ ---------- */
.faq { background: rgba(10,10,10,0.45); padding: 100px 24px; }
.faq__grid { max-width: 940px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 40px; }
.faq__item { border-bottom: 1px dashed rgba(255,255,255,0.15); padding-bottom: 20px; }
.faq__q { font-family: var(--font-mono); font-size: 0.92rem; color: var(--cyan-400); margin-bottom: 8px; font-weight: 700; }
.faq__a { font-size: 0.96rem; color: var(--slate-300); }
@media (max-width: 700px) { .faq__grid { grid-template-columns: 1fr; } }

/* ---------- Community ---------- */
.community { padding: 100px 24px; background: rgba(10,10,10,0.45); }
.community__card { position: relative; max-width: 900px; margin: 0 auto; background: linear-gradient(160deg, var(--panel-700) 0%, var(--ink-900) 100%); color: var(--white); border-radius: var(--radius-lg); text-align: center; border: 1px solid rgba(53,229,243,0.25); animation: ambientGlow 4s ease-in-out infinite; animation-delay: 2s; overflow: hidden; }
/* Banner bleeds edge-to-edge to the card's rounded top corners, then dissolves
   into the card's own dark gradient so the photo reads as part of the card
   instead of a pasted-on image sitting above the copy. */
.community__banner {
  display: block;
  width: 100%;
  height: clamp(170px, 26vw, 300px);
  object-fit: cover;
  object-position: center 46%;
  -webkit-mask-image: linear-gradient(to bottom, black 45%, transparent 96%);
  mask-image: linear-gradient(to bottom, black 45%, transparent 96%);
}
/* Same breathing glow treatment as the Stonkfun cat: a screen-blended,
   brightened/blurred duplicate of the banner, laid exactly over it. Screen
   only blooms the already-bright cat + chart linework and leaves the near-
   black background alone, so it reads as life in the art, not a wash. */
.community__card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(170px, 26vw, 300px);
  background-image: url('assets/cats/buybitcat-wide.png');
  background-size: cover;
  background-position: center 46%;
  background-repeat: no-repeat;
  filter: brightness(1.35) saturate(1.3) blur(4px);
  mix-blend-mode: screen;
  opacity: 0.4;
  -webkit-mask-image: linear-gradient(to bottom, black 45%, transparent 96%);
  mask-image: linear-gradient(to bottom, black 45%, transparent 96%);
  pointer-events: none;
  animation: stonkCatPulse 3.2s ease-in-out infinite;
}
.community__body { padding: 8px 46px 60px; }
.community__card h2 { font-size: clamp(1.05rem, 3vw, 1.5rem); }
.community__live { margin-top: 16px; font-family: var(--font-mono); font-size: 0.88rem; color: var(--slate-300); }
.community__live strong { color: var(--cyan-400); font-size: 1.02rem; }
.community__callout { font-family: var(--font-display); font-size: 1rem; line-height: 1.8; text-transform: uppercase; color: var(--cyan-400); margin-top: 24px; }
.community__card p.community__desc { max-width: 620px; margin: 20px auto 0; color: var(--slate-300); font-size: 1rem; }
.community__actions { display: flex; justify-content: center; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: rgba(10,10,10,0.88); color: var(--white); padding: 52px 24px 28px; border-top: 1px solid rgba(53,229,243,0.15); }
.footer__cats { display: block; width: fit-content; max-width: 100%; margin: 0 auto; text-align: left; font-family: var(--font-mono); font-size: 0.78rem; line-height: 1.3; color: var(--cyan-400); opacity: 0.75; white-space: pre; overflow-x: auto; }
.footer__inner { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 30px; margin-top: 30px; border-top: 1px solid rgba(255,255,255,0.12); }
.footer__brand { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer__tag { font-family: var(--font-mono); font-size: 0.82rem; color: var(--cyan-400); }
/* Desktop-only: the 3-cat art is fixed-width monospace and too wide to
   reflow, so it breaks the footer layout on narrow/mobile viewports. */
@media (max-width: 900px) {
  .footer__cats { display: none; }
  .footer__inner { margin-top: 0; border-top: none; padding-top: 0; }
}

/* ---------- Scroll Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal--visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Sticky Mobile CTA ---------- */
.sticky-cta { position: fixed; left: 50%; bottom: 20px; z-index: 60; padding: 14px 26px; background: var(--cyan-400); color: var(--ink-950); font-family: var(--font-display); font-weight: 400; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.02em; border-radius: var(--radius-pill); box-shadow: 0 10px 28px rgba(0,0,0,0.45); transition: transform 0.3s ease; transform: translate(-50%, 140%); display: none; }
.sticky-cta.is-visible { transform: translate(-50%, 0); }
@media (max-width: 900px) { .sticky-cta { display: block; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { text-align: center; padding-top: 120px; }
  .hero__content { max-width: 460px; margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; margin-left: auto; margin-right: auto; }
  /* .hero__ca is inline-flex, so margin:auto never centered it — auto margins
     only resolve on block boxes/flex items, not on an inline-level box's own
     position in its line. Its content (label + truncated CA + copy button)
     was also wider than the available mobile width, so it overflowed off one
     side instead of centering. Switching to a block-level flex box with
     margin:0 auto centers it properly, and shrinking the truncated value
     keeps the whole pill inside the viewport so there's nothing left to
     overflow in the first place. */
  .hero__ca { display: flex; width: fit-content; max-width: 100%; margin: 28px auto 0; justify-content: center; }
  .hero__ca-value { max-width: 130px; }
  .hero__mantra { margin-left: auto; margin-right: auto; text-align: left; }
  .proof-grid { grid-template-columns: 1fr; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav.nav--open .nav__links { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--ink-950); padding: 20px 24px; gap: 18px; border-bottom: 1px solid rgba(53,229,243,0.25); }
  .nav.nav--open .nav__links-buy { display: inline-flex; align-self: flex-start; margin-top: 4px; }
}
