/* ===================== $MOLYCAT — Creative Accounting ===================== */

:root {
  --cream: #ece0bb;
  --cream-light: #f7f0da;
  --wood: #5a3a26;
  --wood-dark: #38231688;
  --floor: #2f6b86;
  --purple: #8a5cd1;
  --purple-dark: #5c3a92;
  --orange: #f0a545;
  --orange-light: #ffcf8a;
  --green: #4c7a3d;
  --green-light: #7fae57;
  --green-dark: #2f4d26;
  --ink: #241a10;
  --paper: #fff8e6;
  --shadow: rgba(36, 26, 16, 0.35);
  --font-display: 'Permanent Marker', cursive;
  --font-mono: 'JetBrains Mono', monospace;
  --font-body: 'Inter', sans-serif;
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
  position: relative;
}

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

a { color: inherit; text-decoration: none; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3rem);
  text-align: center;
  color: var(--green-dark);
  letter-spacing: 0.02em;
  margin: 0 0 0.3em;
  text-shadow: 2px 2px 0 var(--orange-light);
}

.section-sub {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 2.5em;
  color: #4a3a26;
  font-size: 1rem;
  opacity: 0.85;
}

.section { padding: 5rem 1.5rem; position: relative; z-index: 2; }

/* ===================== Leaf rain layer (persistent, whole page) ===================== */

.leaf-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.leaf-drift {
  position: absolute;
  top: -80px;
  width: 34px;
  height: auto;
  opacity: 0.55;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.25));
  animation: leafFall linear infinite, leafSpin linear infinite;
  will-change: transform;
}

@keyframes leafFall {
  from { transform: translateY(-10vh); }
  to   { transform: translateY(110vh); }
}

@keyframes leafSpin {
  from { rotate: 0deg; }
  to   { rotate: 360deg; }
}

/* ===================== Marquee ===================== */

.marquee-bar {
  background: var(--green-dark);
  color: var(--cream-light);
  overflow: hidden;
  white-space: nowrap;
  padding: 0.45rem 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  position: relative;
  z-index: 20;
  border-bottom: 3px solid var(--orange);
}

.marquee-track {
  display: inline-block;
  animation: marquee 26s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===================== Header / nav ===================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(90, 58, 38, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--orange);
}

.nav {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.7rem 1.5rem;
}

.brand {
  font-family: var(--font-display);
  color: var(--orange-light);
  font-size: 1.3rem;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cream-light);
}

.nav-links a { opacity: 0.85; transition: opacity 0.15s; }
.nav-links a:hover { opacity: 1; color: var(--orange-light); }

.ca-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--green-dark);
  color: var(--cream-light);
  border: 1px solid var(--green-light);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  cursor: pointer;
  white-space: nowrap;
}

.ca-pill .ca-label { opacity: 0.7; }
.ca-pill:hover { border-color: var(--orange); }

.burger {
  display: none;
  background: none;
  border: none;
  color: var(--cream-light);
  font-size: 1.4rem;
  cursor: pointer;
}

/* ===================== Hero ===================== */

.hero {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(180deg, #cfe6ea 0%, var(--cream) 60%);
  padding-bottom: 2.5rem;
}

.hero-frame {
  position: relative;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  overflow: hidden;
  border-bottom: 6px solid var(--wood);
  box-shadow: 0 12px 30px var(--shadow);
}

.hero-img { width: 100%; height: auto; }

.hero-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 -60px 80px -40px rgba(20,14,8,0.45), inset 0 40px 60px -50px rgba(20,14,8,0.3);
}

/* smoke rising from the joint */
.smoke-origin {
  position: absolute;
  left: 55%;
  top: 67.5%;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.smoke-origin::before,
.smoke-origin::after,
.smoke-origin span {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.35) 55%, rgba(255,255,255,0) 75%);
  filter: blur(2px);
  animation: smokeRise 3.2s ease-in infinite;
}

.smoke-origin::before { animation-delay: 0s; }
.smoke-origin::after { animation-delay: 1.05s; left: -3px; }
.smoke-origin span { position: absolute; animation-delay: 2.1s; left: 3px; }

@keyframes smokeRise {
  0%   { transform: translate(0, 0) scale(0.4); opacity: 0; }
  10%  { opacity: 0.75; }
  50%  { transform: translate(6px, -55px) scale(1.4); opacity: 0.55; }
  100% { transform: translate(-4px, -130px) scale(2.4); opacity: 0; }
}

/* money counting overlay */
.money-fx {
  position: absolute;
  left: 44.5%;
  top: 72%;
  width: 10%;
  height: 18%;
  pointer-events: none;
}

.bill-pop {
  position: absolute;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #1c5c34;
  text-shadow: 0 0 3px rgba(255,255,255,0.9), 0 1px 0 rgba(255,255,255,0.6);
  font-size: 1.1rem;
  opacity: 0;
  animation: billPop 2.4s ease-out infinite;
}

.bill-pop.b1 { left: 8%; top: 30%; animation-delay: 0s; }
.bill-pop.b2 { left: 45%; top: 10%; animation-delay: 0.8s; }
.bill-pop.b3 { left: 75%; top: 35%; animation-delay: 1.6s; }

@keyframes billPop {
  0%   { transform: translateY(6px) scale(0.6); opacity: 0; }
  20%  { transform: translateY(-4px) scale(1.15); opacity: 1; }
  40%  { transform: translateY(-14px) scale(1); opacity: 1; }
  100% { transform: translateY(-34px) scale(0.9); opacity: 0; }
}

.count-readout {
  position: absolute;
  left: 50%;
  top: -34px;
  transform: translateX(-50%);
  background: #0e1a12;
  color: #7dffb0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  border: 1px solid #2f4d26;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0,0,0,0.35);
}

/* blinking eyes */
.eyelid {
  position: absolute;
  width: 3.4%;
  height: 5.6%;
  top: 47.9%;
  background: #c9a06a;
  border-radius: 50%;
  transform-origin: center;
  transform: scaleY(0.02);
  animation: blink 5.6s ease-in-out infinite;
}

.eyelid-l { left: 45.1%; animation-delay: 0.2s; }
.eyelid-r { left: 50.2%; animation-delay: 0.2s; }

@keyframes blink {
  0%, 92%, 100% { transform: scaleY(0.02); }
  95% { transform: scaleY(1); }
  97% { transform: scaleY(0.02); }
}

/* hero copy */
.hero-copy {
  text-align: center;
  max-width: 720px;
  margin-top: 2rem;
  padding: 0 1.2rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 12vw, 6.5rem);
  color: var(--green-dark);
  margin: 0;
  text-shadow: 4px 4px 0 var(--orange), 4px 4px 0 var(--orange);
  line-height: 1;
}

.hero-tagline {
  margin: 1rem 0 1.4rem;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  color: #4a3a26;
  line-height: 1.5;
}

.hero-ca {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--paper);
  border: 2px dashed var(--wood);
  border-radius: 10px;
  padding: 0.6rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
  margin-bottom: 1.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-ca .ca-label { color: var(--wood); opacity: 0.7; font-size: 0.7rem; }
.hero-ca .copy-icon { color: var(--green-dark); font-weight: 700; }

.hero-buttons {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}

.btn {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid var(--wood);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 14px var(--shadow); }

.btn-primary { background: var(--green); color: var(--cream-light); }
.btn-secondary { background: var(--orange); color: var(--ink); }

.anthem-nudge {
  background: none;
  border: none;
  color: var(--purple-dark);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: underline;
  opacity: 0.85;
}
.anthem-nudge:hover { opacity: 1; }

/* ===================== Lore cards ===================== */

.lore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
  max-width: 1100px;
  margin: 0 auto;
}

.lore-card {
  background: var(--paper);
  border: 2px solid var(--wood);
  border-radius: 14px;
  padding: 1.6rem 1.4rem;
  box-shadow: 5px 5px 0 var(--orange);
  transition: transform 0.15s ease;
}

.lore-card:hover { transform: translate(-2px, -2px); }

.lore-icon { font-size: 2rem; margin-bottom: 0.5rem; }

.lore-card h3 {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--green-dark);
  margin: 0 0 0.5rem;
  letter-spacing: 0.03em;
}

.lore-card p { font-size: 0.88rem; line-height: 1.5; margin: 0; color: #4a3a26; }

/* ===================== Tokenomics ===================== */

.tokenomics { background: var(--wood); }
.tokenomics .section-title { color: var(--orange-light); text-shadow: 2px 2px 0 var(--green-dark); }
.tokenomics .section-sub { color: var(--cream-light); opacity: 0.75; }

.tok-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  max-width: 1000px;
  margin: 0 auto 3rem;
}

.tok-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  padding: 1.6rem 1rem;
  text-align: center;
}

.tok-num { display: block; font-size: 2.2rem; margin-bottom: 0.4rem; }
.tok-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cream-light);
  letter-spacing: 0.04em;
  opacity: 0.8;
}

.stats-panel {
  max-width: 700px;
  margin: 0 auto;
  background: #1c1108;
  border: 1px solid var(--orange);
  border-radius: 16px;
  padding: 1.6rem;
}

.stats-head {
  font-family: var(--font-mono);
  color: var(--orange-light);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.stats-live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #5be07a;
  box-shadow: 0 0 8px #5be07a;
  animation: livePulse 1.6s ease-in-out infinite;
}

@keyframes livePulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.stat { display: flex; flex-direction: column; gap: 0.2rem; }
.stat-label { font-family: var(--font-mono); font-size: 0.65rem; color: #a08a6b; letter-spacing: 0.04em; }
.stat-value { font-family: var(--font-mono); font-size: 1.1rem; color: var(--cream-light); font-weight: 700; }

.stats-note {
  font-size: 0.72rem;
  color: #a08a6b;
  border-top: 1px dashed #4a3624;
  padding-top: 0.8rem;
}

/* ===================== The Drop ===================== */

.drop { background: var(--floor); text-align: center; }
.drop .section-title { color: var(--cream-light); text-shadow: 2px 2px 0 var(--green-dark); }
.drop .section-sub { color: var(--cream-light); opacity: 0.8; }

.drop-stage {
  position: relative;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drop-btn {
  position: relative;
  z-index: 3;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  background: var(--orange);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 1rem 2.2rem;
  cursor: pointer;
  box-shadow: 5px 5px 0 var(--green-dark);
  transition: transform 0.12s ease;
}

.drop-btn:hover { transform: translateY(-2px); }
.drop-btn:active { transform: translateY(2px); box-shadow: 2px 2px 0 var(--green-dark); }

.drop-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.drop-leaf {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30px;
  height: auto;
  opacity: 0.95;
  will-change: transform, opacity;
}

.drop-toast {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--orange-light);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.drop-toast.show { opacity: 1; }

/* ===================== Anthem / quotes ===================== */

.anthem { background: var(--purple); text-align: center; }
.anthem .section-title { color: var(--cream-light); text-shadow: 2px 2px 0 var(--purple-dark); }
.anthem .section-sub { color: var(--cream-light); opacity: 0.85; }

.quote-carousel {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  height: 3.2em;
  overflow: hidden;
  position: relative;
}

.quote-track {
  display: flex;
  flex-direction: column;
  animation: quoteCycle 15s steps(5) infinite;
}

.quote-line {
  height: 3.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 2.6vw, 1.25rem);
  color: var(--cream-light);
  font-style: italic;
  padding: 0 1rem;
}

@keyframes quoteCycle {
  0%, 16% { transform: translateY(0); }
  20%, 36% { transform: translateY(-3.2em); }
  40%, 56% { transform: translateY(-6.4em); }
  60%, 76% { transform: translateY(-9.6em); }
  80%, 96% { transform: translateY(-12.8em); }
  100% { transform: translateY(0); }
}

.track-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 5px 5px 0 var(--purple-dark);
}

.track-art {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  animation: spinRecord 6s linear infinite paused;
}

.track-card.playing .track-art { animation-play-state: running; }

@keyframes spinRecord { to { transform: rotate(360deg); } }

.track-info { flex: 1; text-align: left; }
.track-title { font-family: var(--font-mono); font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.track-sub { font-size: 0.72rem; color: #6a5a42; margin-top: 0.15rem; }

.track-play {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--orange);
  cursor: pointer;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ===================== Cut-out leaf ===================== */

.cutout { text-align: center; }

.cutout-frame {
  position: relative;
  max-width: 320px;
  margin: 0 auto;
  padding: 1.2rem;
  background: var(--paper);
}

.cutout-img { width: 100%; height: auto; filter: drop-shadow(3px 6px 8px rgba(0,0,0,0.25)); }

.cutout-dashes {
  position: absolute;
  inset: 8px;
  border: 2px dashed var(--wood);
  border-radius: 10px;
  pointer-events: none;
}

/* ===================== How to buy ===================== */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
  max-width: 1100px;
  margin: 0 auto;
}

.step {
  background: var(--paper);
  border: 2px solid var(--wood);
  border-radius: 14px;
  padding: 1.6rem 1.4rem;
  position: relative;
}

.step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--orange);
  -webkit-text-stroke: 1px var(--ink);
  display: block;
  margin-bottom: 0.4rem;
}

.step h3 { margin: 0 0 0.4rem; font-family: var(--font-mono); font-size: 0.9rem; color: var(--green-dark); }
.step p { margin: 0; font-size: 0.85rem; color: #4a3a26; line-height: 1.5; }

/* ===================== Footer ===================== */

.site-footer {
  background: var(--wood);
  color: var(--cream-light);
  padding: 3rem 1.5rem 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.footer-ca {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(0,0,0,0.25);
  border: 1px dashed var(--orange);
  border-radius: 10px;
  padding: 0.7rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-ca .ca-label { opacity: 0.6; font-size: 0.68rem; }

.footer-links {
  display: flex;
  gap: 1.4rem;
  justify-content: center;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  margin-bottom: 1.6rem;
}

.footer-links a { opacity: 0.85; }
.footer-links a:hover { opacity: 1; color: var(--orange-light); }

.disclaimer {
  max-width: 560px;
  margin: 0 auto 1rem;
  font-size: 0.72rem;
  opacity: 0.6;
  line-height: 1.5;
}

.credit { font-size: 0.7rem; opacity: 0.45; font-family: var(--font-mono); }

/* ===================== Floating audio player ===================== */

.audio-player {
  position: fixed;
  bottom: 1.1rem;
  right: 1.1rem;
  z-index: 50;
  background: var(--wood);
  border: 2px solid var(--orange);
  border-radius: 999px;
  padding: 0.5rem 0.9rem 0.5rem 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
  max-width: 90vw;
}

.audio-toggle, .audio-mute {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--orange);
  color: var(--ink);
  font-size: 0.9rem;
  cursor: pointer;
  flex-shrink: 0;
}

.audio-mute { background: transparent; color: var(--cream-light); width: 30px; height: 30px; font-size: 1rem; }

.audio-info { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.audio-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cream-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.audio-eq {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.audio-eq span {
  width: 3px;
  background: var(--green-light);
  height: 30%;
  border-radius: 1px;
  animation: eqBounce 0.9s ease-in-out infinite;
  animation-play-state: paused;
}

.audio-player.playing .audio-eq span { animation-play-state: running; }

.audio-eq span:nth-child(1) { animation-delay: 0s; }
.audio-eq span:nth-child(2) { animation-delay: 0.15s; }
.audio-eq span:nth-child(3) { animation-delay: 0.3s; }
.audio-eq span:nth-child(4) { animation-delay: 0.45s; }

@keyframes eqBounce {
  0%, 100% { height: 20%; }
  50% { height: 100%; }
}

/* ===================== Responsive ===================== */

@media (max-width: 860px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .ca-pill .ca-label { display: none; }
  .audio-title { max-width: 90px; }
}

@media (max-width: 520px) {
  .section { padding: 3.5rem 1rem; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .btn { text-align: center; }
}
