/* theme.css — shared "Slime" design system for Beat Quantizer.
 * Acid-chartreuse on near-black, glossy/gooey/drippy. Inspired by liquid-slime
 * album art + bold condensed acid-green editorial layouts.
 * Loaded by both the landing page and the app. */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Space+Mono:wght@400;700&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  /* surfaces — mostly black; cards read via borders, not a grey fill */
  --bg:        #030402;
  --bg-2:      #070807;
  --panel:     #090b08;
  --panel-2:   #0d100c;
  --line:      #1f3a1c;
  --line-soft: #142413;

  /* ink */
  --text:   #eafce2;
  --muted:  #7f9a80;
  --faint:  #47593f;

  /* slime greens — deeper, richer grass-green to match the mascot */
  --acid:         #5fd41a;  /* hottest accent */
  --slime:        #4fc022;  /* primary */
  --slime-bright: #8ee84a;
  --slime-deep:   #257512;
  --slime-2:      #1fc389;  /* teal-ish secondary goo */
  --glow:         rgba(79, 192, 34, 0.5);
  --glow-soft:    rgba(79, 192, 34, 0.13);

  /* gooey drip gradient (album-cover style) */
  --goo-hi:  #a8ea48;
  --goo-mid: #4fc022;
  --goo-lo:  #1c5a0e;

  --ink:    #0a1402;   /* text that sits on acid fills */
  --danger: #ff6b6b;

  --radius:    16px;
  --radius-lg: 26px;

  --display: 'Anton', system-ui, sans-serif;
  --mono:    'Space Mono', ui-monospace, monospace;
  --body:    'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --z-nav: 50;
  --z-overlay: 40;
}

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

body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient slime glow behind everything */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 82% -8%, rgba(46, 230, 166, 0.10), transparent 60%),
    radial-gradient(1100px 620px at 10% 0%, var(--glow-soft), transparent 55%),
    radial-gradient(820px 820px at 50% 128%, rgba(95, 191, 36, 0.12), transparent 60%),
    var(--bg);
}

a { color: var(--slime); text-decoration: none; }

/* Condensed, uppercase display headings (Anton) */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 0.94;
  margin: 0;
}

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

/* ---- Mono bracket label:  [ *how_it_works ] ------------------------------ */
.label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slime);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.label::before { content: "[ "; color: var(--faint); }
.label::after  { content: " ]"; color: var(--faint); }

/* chevron accent »» */
.chev { color: var(--acid); font-family: var(--mono); font-weight: 700; letter-spacing: -2px; }

/* ---- Slime buttons ------------------------------------------------------- */
.btn {
  font-family: var(--body);
  font-weight: 700;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 14px 26px;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform .18s ease, box-shadow .25s ease, filter .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--slime-bright); outline-offset: 2px; }

.btn-slime {
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 30% 12%, rgba(255,255,255,.6), rgba(255,255,255,0) 45%),
    linear-gradient(180deg, var(--slime-bright) 0%, var(--acid) 45%, var(--slime-deep) 100%);
  box-shadow:
    0 0 0 1px rgba(95,212,26,.5) inset,
    0 1px 0 rgba(255,255,255,.5) inset,
    0 10px 28px -8px var(--glow),
    0 2px 8px rgba(0,0,0,.4);
}
.btn-slime:hover {
  transform: translateY(-2px);
  filter: saturate(1.12);
  box-shadow:
    0 0 0 1px rgba(95,212,26,.7) inset,
    0 1px 0 rgba(255,255,255,.6) inset,
    0 16px 40px -8px var(--glow),
    0 3px 10px rgba(0,0,0,.45);
}
.btn-slime:active { transform: translateY(0); }
.btn-slime:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn-ghost {
  color: var(--text);
  background: rgba(79,192,34,.04);
  box-shadow: 0 0 0 1px var(--line) inset;
}
.btn-ghost:hover {
  color: var(--slime-bright);
  background: rgba(79,192,34,.08);
  box-shadow: 0 0 0 1px var(--slime-deep) inset, 0 0 20px -6px var(--glow);
}

.btn-lg { padding: 17px 34px; font-size: 17px; }
.btn-sm { padding: 9px 16px; font-size: 13px; }

/* ---- Chip ---------------------------------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--slime-bright);
  background: rgba(79,192,34,.08);
  border: 1px solid rgba(79,192,34,.22);
  padding: 6px 14px;
  border-radius: 999px;
}
.chip .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 10px 1px var(--acid);
}

/* ---- Gooey liquid wordmark (album-cover treatment) ----------------------- */
.goo-text {
  font-family: var(--display);
  text-transform: uppercase;
  background: linear-gradient(178deg, var(--goo-hi) 0%, var(--goo-mid) 48%, var(--goo-lo) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 0 22px rgba(79,192,34,.45))
    drop-shadow(0 3px 1px rgba(255,255,255,.35))
    drop-shadow(0 6px 8px rgba(0,0,0,.55));
}
.goo { filter: url(#goo); }

/* ---- Marquee ------------------------------------------------------------- */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  display: flex;
}
.marquee__track {
  display: inline-flex;
  gap: 0;
  animation: marquee 28s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- Giant background watermark text ------------------------------------- */
.watermark {
  position: absolute;
  font-family: var(--display);
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(79,192,34,.10);
  font-size: clamp(90px, 20vw, 300px);
  line-height: .8;
  letter-spacing: 2px;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  white-space: nowrap;
}

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---- Tester labeling ----------------------------------------------------- */
.tester-bar {
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .03em;
  color: var(--ink);
  background: linear-gradient(90deg, var(--slime-deep), var(--acid) 50%, var(--slime-deep));
  padding: 7px 14px;
  position: relative;
  z-index: var(--z-nav);
}
.tester-badge {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--acid);
  border: 1px solid var(--slime-deep);
  background: rgba(79,192,34,.12);
  padding: 2px 7px;
  border-radius: 6px;
  margin-left: 10px;
  vertical-align: middle;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
