/* ═══════════════════════════════════════════════════
   $COH — Coinbase on Hood
   Concept: wear the suit, throw the punch.
   Coinbase's corporate polish, vandalized from inside.
   ═══════════════════════════════════════════════════ */

:root {
  /* $COH chartreuse — the banner green, weaponized */
  --hood: #b9f300;
  --hood-deep: #5d7a00;
  --ink: #0a0b0d;
  --paper: #ffffff;
  --fog: #eef0f4;
  --gray: #5b616e;
  --lime: #b9f300;
  --stamp-red: #d92b2b;

  --font-display: "Archivo", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --ticker-h: 2rem;
  --measure: 62ch;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-display);
  font-weight: 420;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.mono { font-family: var(--font-mono); }

:focus-visible {
  outline: 3px solid var(--hood-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Buttons ─────────────────────────────── */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0.7em 1.6em;
  cursor: pointer;
  transition: transform 120ms ease, background-color 120ms ease, color 120ms ease;
}

.btn--hood {
  background: var(--hood);
  color: var(--ink);
}
.btn--hood:hover { background: var(--ink); color: var(--hood); transform: translateY(-1px); }

.btn--ghost {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover { background: var(--ink); color: #fff; transform: translateY(-1px); }

/* ── Ticker ──────────────────────────────── */

.ticker {
  background: var(--hood);
  color: var(--ink);
  overflow: hidden;
  display: flex;
  align-items: center;
  height: var(--ticker-h);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker__track {
  display: inline-flex;
  animation: ticker-scroll 38s linear infinite;
}

.ticker__group { display: inline-flex; }

.ticker__group span { padding: 0 1.5em; position: relative; }
.ticker__group span::after {
  content: "◆";
  position: absolute;
  right: -0.45em;
  opacity: 0.5;
  font-size: 0.7em;
  top: 0.35em;
}

@keyframes ticker-scroll {
  to { transform: translateX(-50%); }
}

/* ── Nav ─────────────────────────────────── */

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1rem var(--gutter);
  border-bottom: 1px solid var(--fog);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  z-index: 50;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 750;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

/* The mark: the real thing. Coinbase's C, knocked sideways, on our green. */
.nav__mark {
  display: block;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.65rem;
}

.nav__word em { font-style: normal; color: var(--hood-deep); }

.nav__links {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
}

.nav__links a {
  text-decoration: none;
  font-weight: 550;
  font-size: 0.95rem;
  color: var(--gray);
}
.nav__links a:hover { color: var(--ink); }

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }

  /* keep the live ticker glued above the header on mobile */
  .ticker { position: sticky; top: 0; z-index: 60; }
  .nav { top: var(--ticker-h); }
}

/* ── Hero ────────────────────────────────── */

.hero {
  padding: clamp(3rem, 8vw, 6rem) var(--gutter) 0;
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--hood-deep);
  margin-bottom: 1.2rem;
}

.hero__title {
  font-weight: 860;
  font-stretch: 115%;
  font-size: clamp(1.35rem, 7.6vw, 7rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
}

.hero__title em {
  font-style: normal;
  color: var(--hood);
}

.hero__footnote {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--stamp-red);
  font-weight: 550;
}

.hero__sub a,
.step p a {
  color: var(--ink);
  font-weight: 550;
  text-underline-offset: 2px;
}

.hero__sub {
  max-width: var(--measure);
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--gray);
}

.hero__actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero__banner {
  position: relative;
  margin: clamp(2.5rem, 6vw, 4.5rem) auto 0;
  max-width: 1100px;
}

.hero__banner img {
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: 8px 8px 0 var(--lime);
}

.hero__banner figcaption {
  margin-top: 0.9rem;
  font-size: 0.78rem;
  color: var(--gray);
}

/* ── Flippening tracker ──────────────────── */

.trackers {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.2rem;
  max-width: 1100px;
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
}

.tracker-card {
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  padding: 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.tracker-card__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 1.2rem;
}

.tracker__item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tracker__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.tracker__dot {
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--hood);
  animation: pulse 2s ease-in-out infinite;
  flex: none;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.tracker__value {
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  font-weight: 600;
  color: var(--hood);
  line-height: 1.1;
}

.tracker__sub {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
}

.tracker__bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
  margin-top: 0.2rem;
}

.tracker__bar i {
  display: block;
  height: 100%;
  min-width: 4px;
  width: 0.001%;
  background: var(--hood);
  border-radius: 999px;
}

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

@media (prefers-reduced-motion: reduce) {
  .tracker__dot { animation: none; }
}

/* ── Market strip ────────────────────────── */

.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  margin-top: clamp(3rem, 7vw, 5rem);
}

.strip__item {
  padding: 1.4rem var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  border-left: 1px solid var(--fog);
}
.strip__item:first-child { border-left: none; }

.strip__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray);
}

.strip__value {
  font-weight: 850;
  font-size: 2rem;
  line-height: 1.1;
}

.strip__note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gray);
}

@media (max-width: 860px) {
  .strip { grid-template-columns: 1fr 1fr; }
  .strip__item:nth-child(3) { border-left: none; }
  .strip__item:nth-child(n + 3) { border-top: 1px solid var(--fog); }
}

/* ── Section headers ─────────────────────── */

.section-head {
  padding: clamp(3.5rem, 8vw, 6rem) var(--gutter) 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-head h2 {
  font-weight: 850;
  font-stretch: 112%;
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.section-head p {
  margin-top: 0.8rem;
  color: var(--gray);
  max-width: var(--measure);
  font-size: 1.05rem;
}

.section-head--dark p { color: rgba(255, 255, 255, 0.65); font-size: 0.85rem; }

/* ── Receipts ────────────────────────────── */

.receipts { background: var(--fog); }

.receipts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  padding: 0 var(--gutter) clamp(3.5rem, 8vw, 6rem);
  max-width: 1100px;
  margin: 0 auto;
}

.card {
  position: relative;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 1.5rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--hood);
}

.card__exhibit {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--hood-deep);
  font-weight: 600;
}

.card blockquote {
  font-weight: 650;
  font-size: 1.08rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.card footer {
  font-size: 0.75rem;
  color: var(--gray);
}

.card footer a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.card footer a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.card__note {
  font-size: 0.9rem;
  color: var(--gray);
  border-top: 1px dashed var(--fog);
  padding-top: 0.8rem;
  margin-top: auto;
}

@media (max-width: 960px) {
  .receipts__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .receipts__grid { grid-template-columns: 1fr; }
}

/* ── Stamps — the vandalism layer ────────── */

.stamp {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--stamp-red);
  border: 3px double var(--stamp-red);
  border-radius: 4px;
  padding: 0.3em 0.7em;
  transform: rotate(-8deg);
  opacity: 0.9;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.stamp--banner {
  top: -1rem;
  right: 2rem;
  font-size: 1rem;
  background: var(--paper);
  transform: rotate(5deg);
  mix-blend-mode: normal;
  z-index: 2;
  box-shadow: 2px 2px 0 rgba(10, 11, 13, 0.25);
}

/* ── Status board ────────────────────────── */

.board {
  background: var(--ink);
  color: #fff;
}

.board__list {
  list-style: none;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.board__row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.board__name {
  font-weight: 650;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  white-space: nowrap;
}

.board__line {
  flex: 1;
  border-bottom: 2px dotted rgba(255, 255, 255, 0.25);
  transform: translateY(-0.3em);
}

.board__row--us .board__name { color: var(--hood); }

.badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35em 0.9em;
  border-radius: 4px;
  white-space: nowrap;
}

.badge--dead {
  color: #ff6b6b;
  border: 1.5px solid #ff6b6b;
}

.badge--live {
  color: var(--ink);
  background: var(--hood);
  border: 1.5px solid var(--hood);
}

@media (max-width: 520px) {
  .board__row { flex-wrap: wrap; }
  .board__name { white-space: normal; }
  .board__line { min-width: 2rem; }
}

.board__tagline {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem var(--gutter) clamp(3.5rem, 8vw, 5rem);
  font-weight: 850;
  font-stretch: 115%;
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--hood);
}

/* ── Dividends band ──────────────────────── */

.divi { background: var(--hood); }

.divi .section-head h2 { color: var(--ink); }
.divi .section-head p { color: rgba(10, 11, 13, 0.78); }

.divi__punch {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(3rem, 7vw, 5rem);
  font-weight: 860;
  font-stretch: 115%;
  font-size: clamp(1.4rem, 4.2vw, 3rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.015em;
}

/* ── How to buy ──────────────────────────── */

.buy__steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  padding: 0 var(--gutter);
  max-width: 1100px;
  margin: 0 auto;
}

.step {
  counter-increment: step;
  border-top: 3px solid var(--ink);
  padding-top: 1.1rem;
}

.step h3 {
  font-weight: 750;
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.step h3::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--hood-deep);
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.step p { color: var(--gray); font-size: 0.95rem; }

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

/* Contract address */

.ca {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 2.5rem auto clamp(3.5rem, 8vw, 6rem);
  padding: 1.1rem 1.3rem;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--fog);
  margin-left: max(var(--gutter), calc((100% - 1100px) / 2));
  margin-right: max(var(--gutter), calc((100% - 1100px) / 2));
}

.ca__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray);
}

.ca__value {
  font-size: 0.9rem;
  overflow-wrap: anywhere;
  flex: 1;
  min-width: 200px;
}

.ca__copy { padding: 0.5em 1.3em; font-size: 0.9rem; border: none; }

/* ── Footer ──────────────────────────────── */

.footer {
  background: var(--lime);
  color: var(--ink);
  padding: clamp(3rem, 7vw, 5rem) var(--gutter) 2.5rem;
  overflow: hidden;
}

.footer__word {
  font-weight: 900;
  font-stretch: 120%;
  font-size: clamp(1.35rem, 6.9vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.footer__links {
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.footer__links a {
  font-weight: 650;
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
}
.footer__links a:hover { border-bottom-color: transparent; }

.footer__legal {
  margin-top: 2.5rem;
  max-width: var(--measure);
  font-size: 0.82rem;
  line-height: 1.6;
  opacity: 0.75;
}

/* ── Reveal animation ────────────────────── */

/* Only hide-for-reveal when JS is confirmed running — content is never
   invisible for crawlers, no-JS browsers, or slow connections. */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* Stamps slam in instead of fading */
.stamp.reveal,
.card.in .stamp {
  transition: opacity 220ms ease, transform 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}
