/* ═══════════ $O — Robinhood Chain ═══════════ */
:root {
  --lime: #CCFF00;
  --ink: #0d0d0d;
  --white: #ffffff;
  --purple: #7b5cff;
  --shadow: 6px 6px 0 var(--ink);
  --border: 3px solid var(--ink);
  --display: 'Luckiest Guy', 'Arial Black', sans-serif;
  --body: 'Space Grotesk', 'Helvetica Neue', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--lime);
  color: var(--ink);
  font-family: var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }

::selection { background: var(--ink); color: var(--lime); }

/* ─────────── buttons ─────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--body); font-weight: 700; font-size: 1rem;
  padding: .7rem 1.4rem; border-radius: 999px;
  border: var(--border); box-shadow: var(--shadow);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translate(2px, 2px) rotate(-1deg); box-shadow: 3px 3px 0 var(--ink); }
.btn:active { transform: translate(6px, 6px); box-shadow: 0 0 0 var(--ink); }
.btn--black { background: var(--ink); color: var(--lime); }
.btn--white { background: var(--white); color: var(--ink); }
.btn--big { font-size: 1.2rem; padding: 1rem 2rem; }
.btn--icon { padding: .7rem 1rem; background: var(--white); color: var(--ink); font-weight: 900; }

/* ─────────── nav ─────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  /* 1fr | auto | 1fr keeps the links at the true viewport center,
     independent of the logo/CTA widths */
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: .8rem 1.5rem;
  background: var(--lime);
  border-bottom: var(--border);
}
.nav__logo { grid-column: 1; justify-self: start; }
.nav__links { grid-column: 2; justify-self: center; }
.nav__cta { grid-column: 3; justify-self: end; }
.nav__logo {
  font-family: var(--display); font-size: 2.2rem; line-height: 1;
  color: var(--ink); text-decoration: none;
  transition: transform .2s;
}
.nav__logo:hover { transform: rotate(360deg) scale(1.15); }
.nav__links { display: flex; gap: .4rem; }
.nav__links a {
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem;
  position: relative;
  /* equal-width slots keep the middle link on the exact screen center —
     with natural widths the longer right-side labels drag it left */
  width: 7.2rem; text-align: center;
}
.nav__links a::after {
  content: ''; position: absolute; left: 50%; bottom: -4px; height: 3px; width: 0;
  transform: translateX(-50%);
  background: var(--ink); border-radius: 2px; transition: width .2s;
}
.nav__links a:hover::after { width: 2.4rem; }
.nav__cta { display: flex; gap: .6rem; }
.nav__cta .btn { font-size: .85rem; padding: .5rem 1rem; box-shadow: 4px 4px 0 var(--ink); }

/* ─────────── hero ─────────── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end; justify-content: center;
  overflow: hidden;
  border-bottom: var(--border);
}
.hero__zoom { position: absolute; inset: 0; }
.hero__zoom img {
  position: absolute; top: 0; left: 0;
  width: 1000px; height: 1000px; max-width: none;
  will-change: transform;
  pointer-events: none;
  user-select: none; -webkit-user-drag: none;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.hero__content {
  position: absolute; right: clamp(.9rem, 3vw, 2rem); bottom: clamp(.9rem, 3vw, 2rem);
  z-index: 20;
  display: flex; flex-direction: column; align-items: flex-end; gap: .6rem;
  text-align: right;
  max-width: min(340px, calc(100vw - 2rem));
  pointer-events: none;
}
.hero__content .btn, .hero__content .hero__ca { pointer-events: auto; }
.hero__tag {
  font-size: .9rem; font-weight: 500; line-height: 1.45;
  background: var(--white); border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  padding: .5rem .85rem; border-radius: .8rem;
}
.hero__btns { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; }
.hero__content .hero__btns { gap: .5rem; justify-content: flex-end; }
.hero__content .btn { font-size: .85rem; padding: .55rem 1.1rem; box-shadow: 4px 4px 0 var(--ink); }
.hero__content .btn--icon { padding: .55rem .85rem; }

.hero__ca {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--body); font-size: .78rem; font-weight: 700;
  background: var(--white); border: 2px solid var(--ink); border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  padding: .4rem .8rem; cursor: pointer;
  max-width: 100%;
  transition: transform .12s;
}
.hero__ca:hover { transform: scale(1.03) rotate(1deg); }
.hero__ca-label {
  background: var(--ink); color: var(--lime);
  border-radius: 999px; padding: .1rem .5rem; font-size: .75rem;
}
.hero__ca-addr { overflow: hidden; text-overflow: ellipsis; letter-spacing: .02em; }
.hero__ca-ico { flex-shrink: 0; }

.hero__scrollhint {
  position: absolute; bottom: 1.1rem; left: clamp(.9rem, 3vw, 2rem);
  z-index: 20; font-weight: 700; font-size: .8rem; opacity: .7;
  animation: hint-bob 1.6s ease-in-out infinite;
}
@keyframes hint-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ─────────── ticker ─────────── */
.ticker {
  overflow: hidden; background: var(--ink); color: var(--lime);
  border-bottom: var(--border);
  padding: .7rem 0;
}
.ticker__track {
  display: flex; width: max-content;
  font-family: var(--display); font-size: 1.3rem; letter-spacing: .05em;
  /* own compositor layer: text rasterizes once, then glides as a texture */
  will-change: transform;
  backface-visibility: hidden;
  animation: ticker-run 22s linear infinite;
}
.ticker__track > span { display: block; flex-shrink: 0; white-space: nowrap; }
.ticker--reverse { border-top: var(--border); }
.ticker--reverse .ticker__track { animation-direction: reverse; }
@keyframes ticker-run {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* ─────────── chapters ─────────── */
.chapter {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 3rem;
  max-width: 1150px; margin: 0 auto;
  padding: 6rem 2rem;
}
.chapter--flip .chapter__art { order: 2; }
.chapter--flip .chapter__text { order: 1; }
.chapter__art img { width: min(100%, 480px); margin: 0 auto; }
.chapter__art--tilt img {
  border-radius: 1.5rem;
  transition: transform .15s ease-out;
  transform-style: preserve-3d;
}
.chapter__kicker {
  display: inline-block;
  font-weight: 700; font-size: .85rem; letter-spacing: .2em; text-transform: uppercase;
  background: var(--ink); color: var(--lime);
  padding: .3rem .8rem; border-radius: 999px;
  margin-bottom: 1rem;
  transform: rotate(-2deg);
}
.chapter__title {
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vmin, 4rem);
  margin-bottom: 1.2rem;
  text-shadow: 4px 4px 0 var(--white);
}
.chapter__text p { font-size: 1.05rem; line-height: 1.65; margin-bottom: 1rem; }
.chapter__btns { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.4rem; }

/* placeholder copy — obviously replaceable */
.placeholder { opacity: .85; font-style: italic; }

/* idle bob for characters */
.bob { animation: bob 3.4s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes bob {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  30% { transform: translateY(-14px) scale(.98, 1.03); }
  50% { transform: translateY(0) scale(1.03, .96); }
  65% { transform: translateY(-5px) scale(.99, 1.01); }
}

/* ─────────── the hole ─────────── */
.hole {
  text-align: center; padding: 6rem 1.5rem 7rem;
  display: flex; flex-direction: column; align-items: center;
}
.hole__lead { max-width: 560px; font-size: 1.1rem; line-height: 1.65; margin: 0 0 3rem; }
.hole__ring {
  position: relative; width: min(78vw, 480px); aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
}
.hole__spin {
  position: absolute; inset: 0; width: 100%; height: 100%;
  animation: spin 18s linear infinite;
}
.hole__spin text {
  font-family: var(--display); font-size: 17.5px; letter-spacing: .12em;
  fill: var(--ink);
}
@keyframes spin { to { transform: rotate(360deg); } }
.hole__char { width: 58%; }
.hole__cta {
  position: absolute; left: 50%; bottom: 4%;
  transform: translateX(-50%) rotate(-3deg);
}
.hole__cta:hover { transform: translateX(-50%) translate(2px,2px) rotate(3deg); }

/* ─────────── o-conomics ─────────── */
.tok { position: relative; text-align: center; padding: 6rem 1.5rem 8rem; border-top: var(--border); }
.tok__lead { max-width: 520px; margin: 0 auto 3rem; font-size: 1.05rem; }
.tok__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem; max-width: 560px; margin: 0 auto;
}
.card {
  background: var(--white); border: var(--border); border-radius: 1.2rem;
  box-shadow: var(--shadow); padding: 2rem 1.4rem;
  transition: transform .15s;
}
.card:hover { transform: translateY(-6px) rotate(-1.5deg); }
.card__num { font-family: var(--display); font-size: 2rem; margin-bottom: .4rem; }
.card__label { font-weight: 700; font-size: .95rem; }
.card__label--ca {
  font-size: .78rem; word-break: break-all; font-weight: 500;
}
.card--ca { cursor: pointer; background: var(--ink); color: var(--lime); }
.ph-tag {
  display: inline-block; font-size: .65rem; font-weight: 700;
  background: var(--lime); border: 2px solid var(--ink); border-radius: 999px;
  padding: 0 .45rem; vertical-align: middle; opacity: .8; font-style: italic;
}
.tok__peek {
  position: absolute; right: 2vw; bottom: -12px; width: clamp(90px, 12vw, 150px);
  transform: rotate(8deg); pointer-events: none;
}

/* ─────────── join ─────────── */
.join { text-align: center; padding: 6rem 1.5rem 7rem; border-top: var(--border); }
.join__art img { width: min(60vw, 300px); margin: 0 auto 1.5rem; }
.join__lead { max-width: 520px; margin: 0 auto 2rem; font-size: 1.1rem; line-height: 1.65; }

/* ─────────── footer ─────────── */
.footer {
  background: var(--ink); color: var(--lime);
  text-align: center; padding: 3.5rem 1.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 1.2rem;
}
.footer__logo { font-family: var(--display); font-size: 3.5rem; line-height: 1; }
.footer .hero__ca { box-shadow: 4px 4px 0 var(--lime); }
.footer__disclaimer { max-width: 560px; font-size: .8rem; opacity: .7; line-height: 1.6; }
.footer__copy { font-weight: 700; font-size: .85rem; }

/* ─────────── floating CA fab ─────────── */
.fab {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90;
  font-family: var(--body); font-weight: 700; font-size: .95rem;
  background: var(--ink); color: var(--lime);
  border: 3px solid var(--lime); outline: 3px solid var(--ink);
  border-radius: 999px; padding: .8rem 1.3rem;
  cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.35);
  animation: fab-pulse 2.4s ease-in-out infinite;
  transition: transform .12s;
}
.fab:hover { transform: scale(1.08) rotate(-2deg); animation-play-state: paused; }
.fab--hidden { opacity: 0; pointer-events: none; }
.fab { transition: opacity .35s ease, transform .12s; }
@keyframes fab-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* ─────────── toast ─────────── */
.toast {
  position: fixed; left: 50%; bottom: 2rem; z-index: 200;
  transform: translateX(-50%) translateY(150%);
  background: var(--ink); color: var(--lime);
  font-weight: 700; padding: 1rem 1.6rem; border-radius: 999px;
  border: 3px solid var(--lime); outline: 3px solid var(--ink);
  transition: transform .35s cubic-bezier(.2, 1.4, .4, 1);
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ─────────── confetti bits ─────────── */
.confetti {
  position: fixed; z-index: 300; width: 44px; height: 44px;
  pointer-events: none; will-change: transform;
}

/* ─────────── scroll reveal ─────────── */
[data-reveal] { opacity: 0; transition: opacity .6s ease, transform .6s cubic-bezier(.2, 1.2, .4, 1); }
[data-reveal="left"] { transform: translateX(-40px) rotate(-2deg); }
[data-reveal="right"] { transform: translateX(40px) rotate(2deg); }
[data-reveal="up"] { transform: translateY(40px); }
[data-reveal="pop"] { transform: scale(.7) rotate(-4deg); }
[data-reveal].in { opacity: 1; transform: none; }

/* ─────────── responsive ─────────── */
/* centered links need symmetric room on both sides — below this they'd
   collide with the CTA cluster */
@media (max-width: 1180px) {
  .nav__links { display: none; }
}
@media (max-width: 900px) {
  .chapter { grid-template-columns: 1fr; gap: 2rem; padding: 4rem 1.5rem; }
  .chapter--flip .chapter__art { order: 0; }
  .chapter--flip .chapter__text { order: 1; }
}
@media (max-width: 520px) {
  .nav { padding: .55rem .9rem; }
  .nav__logo { font-size: 1.8rem; }
  .nav__cta { gap: .45rem; }
  .nav__cta .btn { font-size: .8rem; padding: .45rem .85rem; box-shadow: 3px 3px 0 var(--ink); }
  .nav__cta .btn--icon { display: none; }
  .ticker__track { font-size: 1.05rem; }
  .hero__content { gap: .5rem; }
  .hero__tag { font-size: .82rem; padding: .45rem .75rem; }
  .hero__ca { font-size: .7rem; }
  .hero__scrollhint { bottom: .8rem; font-size: .72rem; }
  .chapter { padding: 3.2rem 1.2rem; }
  .chapter__title { text-shadow: 3px 3px 0 var(--white); }
  .hole, .tok, .join { padding-left: 1.2rem; padding-right: 1.2rem; }
  .hero__btns .btn { min-height: 44px; } /* comfy tap targets */
  .card { box-shadow: 4px 4px 0 var(--ink); }
  .tok__peek { display: none; }
  .fab { font-size: .85rem; padding: .7rem 1.1rem; right: .9rem; bottom: .9rem; }
  .toast { width: max-content; max-width: 92vw; font-size: .9rem; text-align: center; }
}
@media (max-width: 430px) {
  .hero__scrollhint { display: none; } /* collides with the CA pill on tiny screens */
}

/* ─────────── reduced motion ─────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
