/* mox.dance — ink, gold, stage light. The page breathes on the beat. */
:root {
  --ink: #0B0A10;
  --ink-2: #131118;
  --glass: rgba(255, 255, 255, 0.035);
  --border: rgba(255, 255, 255, 0.09);
  --text: #F2F2F8;
  --dim: #A9A5BC;
  --gold: #FFC73A;
  --violet: #8B7CF6;
  --heat: #E0447C;
  --pulse-glow: 0;
}

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

body {
  background: var(--ink);
  color: var(--text);
  font-family: "Space Grotesk", system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---- Stage lights: drifting radial glows behind everything ---- */
.stage {
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
  background: var(--ink);
}
.stage::before, .stage::after {
  content: ""; position: absolute; width: 90vmax; height: 90vmax; border-radius: 50%;
  filter: blur(60px); opacity: 0.5;
}
.stage::before {
  background: radial-gradient(circle at center, rgba(139, 124, 246, 0.20), transparent 60%);
  top: -30vmax; left: -20vmax;
  animation: drift1 26s ease-in-out infinite alternate;
}
.stage::after {
  background: radial-gradient(circle at center, rgba(224, 68, 124, 0.13), transparent 60%);
  bottom: -35vmax; right: -25vmax;
  animation: drift2 32s ease-in-out infinite alternate;
}
@keyframes drift1 { to { transform: translate(12vmax, 8vmax) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-10vmax, -6vmax) scale(1.1); } }

/* Gold heartbeat — JS re-triggers .pulse on every audible beat. */
.beat-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse at 50% 42%, rgba(255, 199, 58, 0.10), transparent 55%);
}
html.pulse .beat-glow { animation: heartbeat 0.46s ease-out; }
@keyframes heartbeat { 0% { opacity: 1; } 100% { opacity: 0; } }

/* Grain so the dark reads as texture, not void. */
.grain {
  position: fixed; inset: 0; z-index: 30; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

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

/* ---- Nav ---- */
nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(11, 10, 16, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
nav .links { display: flex; gap: 26px; align-items: center; }
nav .links a { color: var(--dim); text-decoration: none; font-size: 15px; transition: color 0.2s; }
nav .links a:hover { color: var(--text); }
nav .links a.cta {
  color: var(--ink); background: var(--gold); padding: 9px 18px; border-radius: 12px; font-weight: 700;
  box-shadow: 0 0 24px rgba(255, 199, 58, 0.25);
  transition: transform 0.15s ease, box-shadow 0.2s;
}
nav .links a.cta:hover { transform: translateY(-1px); box-shadow: 0 0 34px rgba(255, 199, 58, 0.4); color: var(--ink); }

/* ---- Hero ---- */
.hero { min-height: 88vh; display: flex; flex-direction: column; justify-content: center; text-align: center; padding: 60px 0 30px; }
.kicker {
  font-size: 13px; letter-spacing: 0.32em; color: var(--gold); font-weight: 500;
  text-transform: uppercase; margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(40px, 7.5vw, 84px); line-height: 1.04; font-weight: 400;
  letter-spacing: -0.03em; color: var(--dim);
}
.hero h1 strong {
  display: block; color: var(--text); font-weight: 700;
  background: linear-gradient(100deg, #fff 30%, var(--gold) 65%, #fff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.hero .sub { max-width: 640px; margin: 26px auto 0; color: var(--dim); font-size: 19px; }
.cta-row { margin-top: 38px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 15px 28px; border-radius: 14px; text-decoration: none;
  font-weight: 700; font-size: 16px; transition: transform 0.15s ease, box-shadow 0.2s;
}
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 8px 40px rgba(255, 199, 58, 0.28); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 52px rgba(255, 199, 58, 0.42); }
.btn-outline { border: 1px solid var(--border); color: var(--text); background: var(--glass); }
.btn-outline:hover { border-color: rgba(255, 255, 255, 0.25); transform: translateY(-2px); }
.store-note { margin-top: 16px; color: var(--dim); font-size: 13px; letter-spacing: 0.02em; }

/* ---- Count strip ---- */
.count {
  display: flex; justify-content: center; align-items: baseline;
  gap: clamp(16px, 4.5vw, 44px);
  padding: 42px 0 8px;
  font-size: clamp(30px, 6vw, 56px); font-weight: 700; color: #34304a;
  font-variant-numeric: tabular-nums;
}
.count span { transition: color 0.12s, transform 0.12s, text-shadow 0.12s; }
.count span.on { color: var(--text); transform: scale(1.22) translateY(-4px); }
.count span[data-count="1"].on, .count span[data-count="5"].on {
  color: var(--gold); text-shadow: 0 0 34px rgba(255, 199, 58, 0.65);
}

/* ---- The live demo ---- */
.demo-shell { padding: 40px 0 20px; }
.demo {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid var(--border); border-radius: 24px; padding: clamp(22px, 4vw, 40px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.demo-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 8px; }
#play {
  width: 64px; height: 64px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--gold); color: var(--ink); font-size: 22px; font-weight: 700;
  display: grid; place-items: center;
  box-shadow: 0 0 0 0 rgba(255, 199, 58, 0.5);
  transition: transform 0.15s ease;
}
#play:hover { transform: scale(1.06); }
.demo.playing #play { animation: ring 0.923s ease-out infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(255, 199, 58, 0.45); } 100% { box-shadow: 0 0 0 22px rgba(255, 199, 58, 0); } }
#play .icon-pause { display: none; }
.demo.playing #play .icon-play { display: none; }
.demo.playing #play .icon-pause { display: block; }
.demo-title { text-align: left; }
.demo-title h2 { font-size: clamp(20px, 3vw, 26px); letter-spacing: -0.01em; }
.demo-title p { color: var(--dim); font-size: 15px; }
.demo-hint { margin-left: auto; color: var(--dim); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }

/* Feel + speed pills */
.controls { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 20px; align-items: center; }
.control-group { display: flex; align-items: center; gap: 8px; }
.control-label { color: var(--dim); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; margin-right: 4px; }
.pill {
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.03); color: var(--dim);
  font-family: inherit; font-size: 14px; font-weight: 700; padding: 8px 16px; border-radius: 999px;
  cursor: pointer; transition: all 0.2s;
}
.pill:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.25); }
.pill.active {
  color: var(--ink); background: var(--gold); border-color: var(--gold);
  box-shadow: 0 0 18px rgba(255, 199, 58, 0.3);
}
.feel-blurb { margin-top: 12px; color: var(--dim); font-size: 14px; min-height: 22px; font-style: italic; }

.lanes { margin-top: 18px; display: grid; gap: 10px; }
.lane {
  display: flex; align-items: center; gap: 16px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid transparent;
  border-radius: 14px; padding: 13px 18px; cursor: pointer; user-select: none;
  transition: border-color 0.2s, opacity 0.2s, background 0.2s;
}
.lane:hover { border-color: var(--border); background: rgba(255, 255, 255, 0.05); }
.lane .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.lane[data-lane="guira"] .dot { background: var(--gold); }
.lane[data-lane="bongo"] .dot { background: var(--heat); }
.lane[data-lane="bass"] .dot { background: var(--violet); }
.lane[data-lane="requinto"] .dot { background: #5AD6A0; }
.lane .name { width: 110px; font-weight: 700; font-size: 15px; }
.lane .role { color: var(--dim); font-size: 13px; width: 170px; }
.meter { flex: 1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.meter-fill {
  height: 100%; width: 100%; transform-origin: left center; transform: scaleX(0.08);
  border-radius: 3px; background: linear-gradient(90deg, var(--gold), var(--heat));
}
.lane .state { width: 52px; text-align: right; font-size: 12px; letter-spacing: 0.12em; color: var(--dim); }
.lane .state::after { content: "ON"; color: var(--gold); font-weight: 700; }
.lane.muted { opacity: 0.42; }
.lane.muted .state::after { content: "MUTED"; color: var(--dim); font-weight: 400; }
.lane.muted .meter-fill { background: rgba(255, 255, 255, 0.15); }
/* Tap the 1 */
.tap-row { display: flex; align-items: center; gap: 18px; margin-top: 22px; flex-wrap: wrap; }
#tap-one {
  font-family: inherit; font-size: 17px; font-weight: 700; color: var(--text);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border);
  padding: 14px 30px; border-radius: 14px; cursor: pointer;
  transition: transform 0.1s ease, border-color 0.2s;
}
#tap-one:hover { border-color: rgba(255, 199, 58, 0.5); }
#tap-one:active { transform: scale(0.96); }
#tap-one.hit { animation: tapflash 0.3s ease-out; }
@keyframes tapflash { 0% { background: rgba(255, 199, 58, 0.35); } 100% { background: rgba(255, 255, 255, 0.05); } }
#grade { font-size: 15px; font-weight: 700; letter-spacing: 0.04em; min-height: 22px; }
.g-perfect { color: var(--gold); text-shadow: 0 0 18px rgba(255, 199, 58, 0.5); }
.g-good { color: #5AD6A0; }
.g-off { color: var(--heat); }
.g-miss { color: var(--dim); }
.share-link {
  margin-left: auto; background: none; border: none; font-family: inherit; cursor: pointer;
  color: var(--violet); font-size: 14px; font-weight: 700; text-decoration: underline dotted;
}
.share-link:hover { color: var(--text); }

#toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--ink-2); border: 1px solid var(--border); color: var(--text);
  padding: 12px 22px; border-radius: 12px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s; z-index: 40;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

.demo-foot { margin-top: 18px; color: var(--dim); font-size: 14px; }
.demo-foot strong { color: var(--text); }

/* ---- Marquee ---- */
.marquee {
  margin: 70px 0; padding: 18px 0; overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: inline-block; animation: slide 34s linear infinite; }
.marquee span {
  display: inline-block; margin: 0 26px; font-size: 15px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--dim);
}
.marquee span b { color: var(--gold); font-weight: 700; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---- Sections ---- */
section { padding: 72px 0; }
section h2.sec { font-size: clamp(28px, 4.4vw, 42px); letter-spacing: -0.02em; text-align: center; margin-bottom: 14px; }
section .sec-sub { text-align: center; color: var(--dim); max-width: 560px; margin: 0 auto 44px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  background: var(--glass); border: 1px solid var(--border); border-radius: 20px; padding: 28px;
  transition: transform 0.25s ease, border-color 0.25s;
}
.step:hover { transform: translateY(-4px); border-color: rgba(255, 199, 58, 0.35); }
.step .n { color: var(--gold); font-weight: 700; font-size: 13px; letter-spacing: 0.22em; }
.step h3 { margin: 10px 0 8px; font-size: 19px; }
.step p { color: var(--dim); font-size: 15px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--glass); border: 1px solid var(--border); border-radius: 20px; padding: 26px;
  transition: transform 0.25s ease, border-color 0.25s, background 0.25s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(139, 124, 246, 0.45); background: rgba(139, 124, 246, 0.06); }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { color: var(--dim); font-size: 14.5px; }

/* ---- Pricing ---- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan {
  background: var(--glass); border: 1px solid var(--border); border-radius: 22px; padding: 30px;
  display: flex; flex-direction: column; transition: transform 0.25s ease;
}
.plan:hover { transform: translateY(-4px); }
.plan.featured {
  border-color: rgba(255, 199, 58, 0.6);
  background: linear-gradient(180deg, rgba(255, 199, 58, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: 0 20px 60px rgba(255, 199, 58, 0.08);
}
.plan h3 { font-size: 17px; }
.plan .price { font-size: 36px; font-weight: 700; margin: 12px 0 2px; letter-spacing: -0.02em; }
.plan .per { color: var(--dim); font-size: 13px; margin-bottom: 16px; }
.plan ul { list-style: none; flex: 1; }
.plan li { color: var(--dim); font-size: 14.5px; padding: 6px 0; }
.plan li::before { content: "✓  "; color: var(--gold); font-weight: 700; }
.badge {
  display: inline-block; background: rgba(255, 199, 58, 0.16); color: var(--gold);
  font-size: 11px; font-weight: 700; border-radius: 999px; padding: 3px 10px; margin-left: 8px; vertical-align: middle;
}

/* ---- FAQ ---- */
.faq { max-width: 680px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 16px; list-style: none; position: relative; padding-right: 30px; }
.faq summary::after { content: "+"; position: absolute; right: 4px; color: var(--gold); font-size: 20px; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--dim); margin-top: 12px; font-size: 15px; }
.faq a { color: var(--violet); }

/* ---- Prose (privacy) ---- */
.prose { max-width: 680px; margin: 0 auto; padding: 48px 0 90px; }
.prose h1 { font-size: 34px; margin-bottom: 6px; letter-spacing: -0.02em; }
.prose .meta { color: var(--dim); font-size: 14px; margin-bottom: 30px; }
.prose h2 { font-size: 20px; margin: 30px 0 10px; }
.prose p, .prose li { color: var(--dim); font-size: 15px; }
.prose ul { padding-left: 20px; margin: 10px 0; }
.prose a { color: var(--violet); }
.prose strong { color: var(--text); }

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--border); margin-top: 40px; padding: 36px 0 54px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: var(--dim); font-size: 14px;
}
footer a { color: var(--dim); }
footer a:hover { color: var(--text); }

/* ---- Reveals ---- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .steps, .grid, .plans { grid-template-columns: 1fr; }
  nav .links { gap: 14px; }
  nav .links a:not(.cta) { display: none; }
  .lane .role { display: none; }
  .demo-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .stage::before, .stage::after, .marquee-track, .hero h1 strong { animation: none; }
  .demo.playing #play { animation: none; }
  html.pulse .beat-glow { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto; }
}
