/* $BCashCat — design system matched to the cashcat family aesthetic */

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

:root {
  --cream: #fdfaf2;
  --ink: #1a1a1a;
  --green: #3a8757;
  --green-light: #7ec888;
  --alt: #f4efe1;
}

html { scroll-behavior: smooth; }

/* Lock horizontal scroll with `clip` (not `hidden`) — `hidden` turns body into a
   scroll container and kills the position:sticky scrub scene. `clip` clips without
   that side effect; `hidden` stays as the legacy fallback. */
html, body {
  overflow-x: hidden;
  overflow-x: clip;
  overscroll-behavior-x: none;
  max-width: 100%;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  line-height: 1.5;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }

/* ---------- nav ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 2px dashed rgba(26, 26, 26, 0.2);
  position: sticky;
  top: 0;
  background: rgba(253, 250, 242, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10;
}

.nav-logo { font-size: 1.25rem; font-weight: 700; text-decoration: none; }

.nav-links { display: none; gap: 1.5rem; font-size: 0.875rem; }
.nav-links a { text-decoration: none; transition: color 0.15s; }
.nav-links a:hover { color: var(--green); }

@media (min-width: 640px) {
  .nav-links { display: flex; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-family: inherit;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}

.btn-dark { background: var(--ink); color: var(--cream); padding: 0.75rem 1.5rem; }
.btn-dark:hover { background: var(--green); }
.btn-dark.btn-sm { padding: 0.5rem 1rem; }

.btn-outline { border: 2px solid var(--ink); color: var(--ink); padding: 0.75rem 1.5rem; }
.btn-outline:hover { background: var(--ink); color: var(--cream); }

/* ---------- shared ---------- */
.section { padding: 5rem 1.5rem; }

.alt {
  background: var(--alt);
  border-top: 2px dashed rgba(26, 26, 26, 0.2);
  border-bottom: 2px dashed rgba(26, 26, 26, 0.2);
}
.alt-t { border-bottom: none; }

.title {
  font-size: 2.25rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 1rem;
}
@media (min-width: 640px) {
  .title { font-size: 3rem; }
}

.green { color: var(--green); }

/* ---------- hero ---------- */
.hero {
  padding: 3rem 1.5rem 4rem;
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--green);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 900;
  line-height: 0.95;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) {
  .hero h1 { font-size: 4.5rem; }
}

.tilt { color: var(--green); display: inline-block; transform: rotate(-2deg); }

.hero-sub {
  font-size: 1.125rem;
  color: rgba(26, 26, 26, 0.7);
  max-width: 36rem;
  margin: 0 auto 2rem;
}

.hero-img {
  width: 16rem;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(6px 6px 0 rgba(0, 0, 0, 0.1));
  transition: transform 0.15s;
}
.hero-img:hover { transform: rotate(3deg); }
@media (min-width: 640px) {
  .hero-img { width: 20rem; }
}

.hero-ctas {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ---------- lore ---------- */
.lore-wrap { max-width: 42rem; margin: 0 auto; }

.tweet-wrap { display: flex; justify-content: center; margin: 2.5rem 0; }

.lore-card {
  background: var(--cream);
  border: 2px dashed rgba(26, 26, 26, 0.3);
  border-radius: 1rem;
  padding: 1.5rem;
  color: rgba(26, 26, 26, 0.8);
  line-height: 1.625;
}
.lore-card p { margin-bottom: 0.75rem; }
.lore-card p:last-child { margin-bottom: 0; }

/* ---------- split feature ---------- */
.split {
  padding: 5rem 1.5rem;
  max-width: 64rem;
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 640px) {
  .split { grid-template-columns: 1fr 1fr; }
}

.split-img { width: 100%; max-width: 20rem; margin: 0 auto; display: block; }

.split h2 { font-size: 2.25rem; font-weight: 900; margin-bottom: 1rem; }
.split p { color: rgba(26, 26, 26, 0.7); margin-bottom: 1rem; }

.checks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: rgba(26, 26, 26, 0.8);
}
.checks li { display: flex; gap: 0.5rem; }

/* ---------- tokenomics ---------- */
.dark { background: var(--ink); color: var(--cream); }

.tok-wrap { max-width: 56rem; margin: 0 auto; }
.tok-wrap .title { margin-bottom: 3rem; }

.tok-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) {
  .tok-grid { grid-template-columns: repeat(3, 1fr); }
}

.stat {
  border: 2px dashed rgba(253, 250, 242, 0.3);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
}
.stat-num { font-size: 3rem; font-weight: 900; color: var(--green-light); margin-bottom: 0.5rem; }
.stat-label { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; margin-bottom: 0.75rem; }
.stat p { font-size: 0.875rem; color: rgba(253, 250, 242, 0.7); }

/* ---------- roadmap ---------- */
.road { max-width: 48rem; margin: 0 auto; }
.road-sub { text-align: center; color: rgba(26, 26, 26, 0.7); margin-bottom: 3rem; }

.phases { display: flex; flex-direction: column; gap: 1.5rem; }

.phase { display: flex; gap: 1rem; align-items: flex-start; }

.phase-num {
  background: var(--green);
  color: var(--cream);
  font-weight: 700;
  border-radius: 9999px;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.phase-card {
  flex: 1;
  border: 2px dashed rgba(26, 26, 26, 0.2);
  border-radius: 1rem;
  padding: 1.25rem;
  background: var(--cream);
}
.phase-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 0.25rem;
}
.phase-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.25rem; }
.phase-card p { color: rgba(26, 26, 26, 0.7); font-size: 0.875rem; }

/* ---------- stonks quote ---------- */
.stonks { padding: 4rem 1.5rem; text-align: center; }
.stonks-img { width: 14rem; margin: 0 auto 1.5rem; display: block; }

.quote {
  font-size: 1.5rem;
  font-weight: 900;
  max-width: 36rem;
  margin: 0 auto;
  line-height: 1.25;
}
@media (min-width: 640px) {
  .quote { font-size: 1.875rem; }
}

.quote-by {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(26, 26, 26, 0.5);
  margin-top: 0.75rem;
}

/* ---------- how to buy ---------- */
.buy { max-width: 42rem; margin: 0 auto; text-align: center; }
.buy-sub { color: rgba(26, 26, 26, 0.7); margin-bottom: 2.5rem; }

.steps {
  list-style: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.steps li {
  display: flex;
  gap: 1rem;
  background: var(--cream);
  border: 2px dashed rgba(26, 26, 26, 0.2);
  border-radius: 1rem;
  padding: 1.25rem;
}
.step-num { font-size: 1.875rem; font-weight: 900; color: var(--green); }
.step-text { align-self: center; color: rgba(26, 26, 26, 0.8); }

.ca {
  background: var(--ink);
  color: var(--cream);
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  word-break: break-all;
  user-select: all;
}

/* ---------- faq ---------- */
.faq-wrap { max-width: 42rem; margin: 0 auto; }
.faq-wrap .title { margin-bottom: 2.5rem; }

.faq-list { display: flex; flex-direction: column; gap: 1rem; }

details {
  background: var(--cream);
  border: 2px dashed rgba(26, 26, 26, 0.2);
  border-radius: 1rem;
  padding: 1.25rem;
}
summary {
  cursor: pointer;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  gap: 1rem;
}
summary::-webkit-details-marker { display: none; }

.plus { color: var(--green); font-size: 1.5rem; transition: transform 0.15s; flex-shrink: 0; }
details[open] .plus { transform: rotate(45deg); }

details p {
  margin-top: 0.75rem;
  color: rgba(26, 26, 26, 0.7);
  font-size: 0.875rem;
  line-height: 1.625;
}

/* ---------- outro ---------- */
.outro { padding: 6rem 1.5rem; text-align: center; }
.outro h2 {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) {
  .outro h2 { font-size: 4.5rem; }
}
.outro p { color: rgba(26, 26, 26, 0.7); max-width: 28rem; margin: 0 auto 2rem; }

/* ---------- footer ---------- */
.footer {
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(26, 26, 26, 0.5);
  border-top: 2px dashed rgba(26, 26, 26, 0.2);
}
.socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}
.socials a { text-decoration: none; transition: color 0.15s; }
.socials a:hover { color: var(--green); }
.footer p { max-width: 36rem; margin: 0 auto; }
.copyright { margin-top: 1rem; }

/* ---------- scrub scene (scroll-driven) ---------- */
.scrub {
  position: relative;
  height: 300vh;
  background: #0a0614;
  border-top: 2px dashed rgba(26, 26, 26, 0.2);
  border-bottom: 2px dashed rgba(26, 26, 26, 0.2);
}
@media (max-width: 640px) { .scrub { height: 240vh; } }

.scrub-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scrub-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.scrub-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(10, 6, 20, 0.55) 100%),
    linear-gradient(to bottom, rgba(10, 6, 20, 0.35) 0%, transparent 25%, transparent 60%, rgba(10, 6, 20, 0.75) 100%);
  pointer-events: none;
}

.scrub-cap {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--cream);
  padding: 0 1.5rem;
  max-width: 40rem;
  display: grid;
}
.scrub-cap::before {
  content: '';
  position: absolute;
  inset: -70px -30px;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(10, 6, 20, 0.72) 0%, rgba(10, 6, 20, 0.5) 45%, rgba(10, 6, 20, 0) 75%);
  pointer-events: none;
}
.scrub-line {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  will-change: opacity, transform;
}
.scrub-line.on { opacity: 1; transform: translateY(0); }
.scrub-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--green-light);
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8);
}
.scrub-line h2 {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.05;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.9), 0 1px 3px rgba(0, 0, 0, 0.7);
}
@media (min-width: 640px) { .scrub-line h2 { font-size: 3.25rem; } }
.scrub-line .green { color: var(--green-light); }

.scrub-hint {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(253, 250, 242, 0.7);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.scrub-hint svg { animation: scrubBob 1.6s ease-in-out infinite; }
@keyframes scrubBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

.scrub-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0%;
  z-index: 3;
  background: linear-gradient(to right, var(--green), var(--green-light));
  box-shadow: 0 0 12px rgba(126, 200, 136, 0.8);
}

/* ---------- origin film player ---------- */
.film {
  background: #0a0614;
  color: var(--cream);
  padding: 5rem 1.5rem;
  text-align: center;
  border-bottom: 2px dashed rgba(26, 26, 26, 0.2);
}
.film .title { color: var(--cream); margin-bottom: 0.5rem; }
.film-sub { color: rgba(253, 250, 242, 0.65); margin: 0 auto 2.5rem; max-width: 34rem; }

.film-frame {
  position: relative;
  max-width: 56rem;
  margin: 0 auto;
  border-radius: 1rem;
  overflow: hidden;
  border: 2px solid rgba(126, 200, 136, 0.5);
  box-shadow: 0 0 0 1px rgba(126, 200, 136, 0.2), 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 60px rgba(126, 200, 136, 0.18);
  background: #000;
  aspect-ratio: 16 / 9;
}
.film-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }

.film-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  cursor: pointer;
  border: 0;
  background:
    linear-gradient(to bottom, rgba(10, 6, 20, 0.15), rgba(10, 6, 20, 0.55)),
    center / cover no-repeat var(--poster, none);
  color: var(--cream);
  font-family: inherit;
  transition: opacity 0.35s ease;
}
.film-play[hidden] { display: none; }
.film-play-ring {
  width: 5rem;
  height: 5rem;
  border-radius: 9999px;
  background: rgba(126, 200, 136, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 0 0 rgba(126, 200, 136, 0.5);
  animation: filmPulse 2.4s ease-in-out infinite;
  transition: transform 0.2s ease, background 0.2s ease;
}
.film-play:hover .film-play-ring { transform: scale(1.06); background: var(--cream); }
.film-play:hover .film-play-ring svg { color: var(--ink); }
.film-play-ring svg { color: #0a0614; margin-left: 4px; }
@keyframes filmPulse {
  0%, 100% { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 0 0 rgba(126, 200, 136, 0.5); }
  50% { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 0 16px rgba(126, 200, 136, 0); }
}
.film-play-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.2em; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9); }

.film-meta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  font-size: 0.8rem;
  color: rgba(253, 250, 242, 0.55);
}
.film-meta a { color: var(--green-light); text-decoration: none; border-bottom: 1px dashed rgba(126, 200, 136, 0.5); }
.film-meta a:hover { color: var(--cream); }
