/* ---------------------------------------------------------
   $CATSTRO — Robinhood-inspired palette
   lime  : #CCFF00  (signature accent, verified on robinhood.com)
   black : #000000
   white : #FFFFFF
   cream : #F6F4EA  (soft background, matches RH's warm off-white)
   green : #0B2E1F  (deep chalkboard green, hero/dark sections)
   gold  : #CFB97D  (Robinhood Gold accent, used sparingly)
--------------------------------------------------------- */

:root {
  --lime: #CCFF00;
  --black: #0A0A08;
  --white: #FFFFFF;
  --cream: #F6F4EA;
  --green: #0B2E1F;
  --green-2: #123524;
  --gold: #CFB97D;
  --gray: #6A7278;
  --line: rgba(10,10,8,0.1);

  --font-display: 'Archivo', 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Helvetica, Arial, sans-serif;

  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(10,10,8,0.07) 1px, transparent 0);
  background-size: 26px 26px;
  color: var(--black);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.4em;
}

a { color: inherit; }

code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

/* Base reveal state — components below layer their own hover transitions
   on top of this and must keep opacity/transform in their own list since
   the later, more specific rule wins the whole `transition` shorthand. */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .3s ease;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246,244,234,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  text-decoration: none;
}
.nav__logo-mark {
  display: inline-block;
  width: 30px; height: 30px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.nav__links {
  display: flex;
  gap: 22px;
  margin-left: 12px;
  flex: 1;
}
.nav__links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  color: var(--black);
  opacity: 0.75;
}
.nav__links a:hover { opacity: 1; }
.nav__cta { white-space: nowrap; }

.nav__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  color: var(--black);
  background: transparent;
  border: 1px solid var(--line);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.nav__social:hover {
  background: var(--black);
  color: var(--lime);
  border-color: var(--black);
  transform: translateY(-2px);
}
.nav__social--footer {
  margin-left: 4px;
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.2);
}
.nav__social--footer:hover {
  background: var(--lime);
  color: var(--black);
  border-color: var(--lime);
}

@media (max-width: 780px) {
  .nav__links { display: none; }
}
@media (max-width: 480px) {
  .nav__inner .nav__social { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--lime);
  color: var(--black);
}
.btn--primary:hover { background: #b8e600; }
.btn--ghost {
  background: transparent;
  border-color: var(--black);
  color: var(--black);
}
.btn--ghost:hover { background: var(--black); color: var(--white); }
.btn--lg { padding: 16px 28px; font-size: 16px; }

/* ---------- eyebrow ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--lime);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow--light {
  color: var(--black);
  background: var(--lime);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 64px 0 40px;
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}
.hero::before {
  width: 520px;
  height: 520px;
  top: -220px;
  right: -120px;
  background: radial-gradient(circle, rgba(204,255,0,0.35), transparent 70%);
}
.hero::after {
  width: 420px;
  height: 420px;
  bottom: -200px;
  left: -140px;
  background: radial-gradient(circle, rgba(11,46,31,0.25), transparent 70%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: stretch;
}
.hero__inner > * {
  min-width: 0;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.02;
}
.hero h1 .hi {
  display: inline-block;
  background: var(--black);
  border: 3px solid var(--black);
  color: var(--lime);
  padding: 0 10px;
  border-radius: 8px;
}
.hero h1 .hi__stro {
  color: var(--white);
}
.hero__sub {
  font-size: 19px;
  color: #33362d;
  max-width: 46ch;
  margin-bottom: 28px;
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.hero__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.chip {
  font-size: 13px;
  font-weight: 600;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
}
.chip strong { font-weight: 800; }

.contract-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--black);
  color: var(--white);
  border-radius: 999px;
  padding: 8px 8px 8px 18px;
  max-width: 560px;
  scroll-margin-top: 100px;
}
.contract-chip__label {
  font-size: 12px;
  font-weight: 800;
  color: var(--lime);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}
.contract-chip code {
  font-size: 13px;
  overflow-x: auto;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}
.copy-btn {
  background: var(--lime);
  color: var(--black);
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  flex-shrink: 0;
}
.copy-btn:hover { background: #b8e600; }

/* ---------- hero art ---------- */
.hero__art { position: relative; }
.hero__art-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  max-height: 560px;
  object-fit: cover;
  object-position: 55% 30%;
  border-radius: 24px;
  border: 3px solid var(--black);
  box-shadow: 0 30px 60px -20px rgba(11,46,31,0.5);
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 480px; margin: 0 auto; }
}

/* ---------- burn section ---------- */
.burn {
  position: relative;
  background:
    radial-gradient(circle at 88% 12%, rgba(204,255,0,0.10), transparent 45%),
    radial-gradient(circle at 8% 92%, rgba(204,255,0,0.06), transparent 40%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 42px),
    var(--green);
  color: var(--white);
  padding: 90px 0;
  margin-top: 20px;
  overflow: hidden;
}
.burn__title {
  font-size: clamp(28px, 4.2vw, 44px);
  color: var(--white);
  max-width: 18ch;
}
.burn__sub {
  font-size: 18px;
  color: rgba(255,255,255,0.78);
  max-width: 68ch;
  margin-bottom: 48px;
}
.burn__flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 48px;
}
.flow-step {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: opacity .6s ease, transform .3s ease, border-color .2s ease;
}
.flow-step:hover {
  transform: translateY(-3px);
  border-color: rgba(204,255,0,0.4);
}
.flow-step__icon { font-size: 28px; margin-bottom: 10px; }
.flow-step h3 {
  color: var(--lime);
  font-size: 18px;
  margin-bottom: 8px;
}
.flow-step p {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  margin: 0;
}
.flow-arrow {
  font-size: 24px;
  color: var(--lime);
  text-align: center;
}
@media (max-width: 860px) {
  .burn__flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); }
}

.burn__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
  max-width: 620px;
}
.stat-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: opacity .6s ease, transform .3s ease, background .2s ease, border-color .2s ease;
}
.stat-card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.07);
  border-color: rgba(204,255,0,0.4);
}
.stat-card__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-weight: 700;
}
.stat-card__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.stat-card__value--counter {
  font-size: clamp(18px, 2.4vw, 22px);
}
.stat-card__sublink {
  display: inline-block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}
.stat-card__sublink:hover {
  color: var(--lime);
}
@media (max-width: 700px) {
  .burn__stats { grid-template-columns: 1fr; }
}
.burn__note {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  max-width: 60ch;
}

/* ---------- story ---------- */
.story {
  padding: 90px 0;
}
.story h2 {
  font-size: clamp(28px, 4vw, 42px);
  max-width: 22ch;
}
.story__intro {
  font-size: 17px;
  color: #33362d;
  max-width: 70ch;
  margin-bottom: 48px;
}

.clues {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.clue {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 34px 20px;
  margin: 0 -20px;
  border-top: 1px solid var(--line);
  border-radius: var(--radius);
  transition: opacity .6s ease, transform .3s ease, background .2s ease;
}
.clue:last-child { border-bottom: 1px solid var(--line); }
.clue:hover {
  background: rgba(204,255,0,0.08);
}
.clue__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 40px;
  color: var(--lime);
  -webkit-text-stroke: 1.5px var(--black);
}
.clue__body {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.clue__text {
  flex: 1;
  min-width: 0;
}
.clue__body h3 {
  font-size: 20px;
  margin-bottom: 10px;
  max-width: 42ch;
}
.clue__body p {
  font-size: 16px;
  color: #33362d;
  max-width: 66ch;
  margin: 0 0 14px;
}
.clue__image {
  flex-shrink: 0;
  width: 170px;
  height: 210px;
  object-fit: contain;
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 12px;
  box-shadow: 0 12px 24px -14px rgba(11,46,31,0.35);
  cursor: zoom-in;
  transition: transform .2s ease, box-shadow .2s ease;
}
.clue__image:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 18px 32px -14px rgba(11,46,31,0.5);
}
.clue__link {
  display: inline-block;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 2px solid var(--lime);
  padding-bottom: 1px;
}
.clue__link:hover { background: var(--lime); }

@media (max-width: 640px) {
  .clue { grid-template-columns: 1fr; gap: 6px; }
  .clue__num { font-size: 28px; }
  .clue__body { flex-direction: column; }
  .clue__image { width: 100%; height: 240px; align-self: center; max-width: 260px; }
}

/* ---------- tokenomics ---------- */
.tokenomics {
  padding: 90px 0;
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.table {
  margin-top: 30px;
  border-top: 1px solid var(--line);
}
.table__row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.table__row span:first-child {
  font-weight: 700;
  color: var(--gray);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.table__row span:last-child { font-size: 16px; font-weight: 600; }
.table__address code {
  background: var(--cream);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  word-break: break-all;
}
.table__row a {
  text-decoration: none;
  border-bottom: 2px solid var(--lime);
  font-weight: 700;
}

@media (max-width: 640px) {
  .table__row { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- gallery ---------- */
.gallery {
  padding: 90px 0;
}
.gallery h2 {
  font-size: clamp(28px, 4vw, 42px);
}
.gallery__intro {
  font-size: 17px;
  color: #33362d;
  max-width: 60ch;
  margin-bottom: 40px;
}
/* ---------- carousel (Instagram-style) ---------- */
.carousel {
  max-width: 460px;
  margin: 0 auto;
  outline: none;
}
.carousel__stage {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 3px solid var(--black);
  background: var(--black);
  box-shadow: 0 24px 50px -20px rgba(11,46,31,0.5);
}
.carousel__track {
  display: flex;
  transition: transform .4s cubic-bezier(.65,0,.35,1);
}
.carousel__slide {
  flex: 0 0 100%;
  margin: 0;
  aspect-ratio: 4 / 5;
}
.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.92);
  color: var(--black);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
  transition: background .2s ease, transform .2s ease, opacity .2s ease;
}
.carousel__arrow:hover {
  background: var(--lime);
}
.carousel__arrow--prev { left: 12px; }
.carousel__arrow--next { right: 12px; }
.carousel__arrow[disabled] {
  opacity: 0;
  pointer-events: none;
}
.carousel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
}
.carousel__caption {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
}
.carousel__dots {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}
.carousel__dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.carousel__dot.is-active {
  background: var(--black);
  transform: scale(1.4);
}
.carousel__count {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray);
  white-space: nowrap;
}

/* ---------- cta ---------- */
.cta {
  padding: 100px 0;
  text-align: center;
}
.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
.cta h2 {
  font-size: clamp(30px, 5vw, 48px);
}

/* ---------- footer ---------- */
.footer {
  background: var(--black);
  color: rgba(255,255,255,0.7);
  padding: 50px 0;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--white);
  font-size: 18px;
  margin-bottom: 18px;
}
.footer__disclaimer {
  font-size: 13px;
  line-height: 1.7;
  max-width: 90ch;
  margin: 0 0 18px;
}
.footer__copy {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  word-break: break-all;
}

/* ---------- scroll reveal (delays + reduced-motion only; base transition lives with each component) ---------- */
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.clues .clue:nth-child(2) { transition-delay: .06s; }
.clues .clue:nth-child(3) { transition-delay: .12s; }
.clues .clue:nth-child(4) { transition-delay: .18s; }
.clues .clue:nth-child(5) { transition-delay: .24s; }

.burn__flow .flow-step:nth-child(3) { transition-delay: .08s; }
.burn__flow .flow-step:nth-child(5) { transition-delay: .16s; }
.burn__stats .stat-card:nth-child(2) { transition-delay: .08s; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(10,10,8,0.86);
  cursor: zoom-out;
}
.lightbox.is-open {
  display: flex;
}
.lightbox__img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 14px;
  border: 3px solid var(--black);
  box-shadow: 0 40px 90px -20px rgba(0,0,0,0.6);
  cursor: default;
}
.lightbox__close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--lime);
  color: var(--black);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}
.lightbox__close:hover {
  background: #b8e600;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .carousel__track,
  .carousel__dot,
  .clue__image,
  .stat-card,
  .flow-step,
  .clue,
  .btn {
    transition: none;
  }
}
