:root {
  --bg: #0e0f15; --panel: #171821; --panel-2: #1d1e29; --border: #2a2c3a;
  --text: #f2f1f8; --muted: #a2a3b6; --accent: #a491ff; --accent-ink: #15131e;
  --mint: #6bddba; --amber: #ffb86b; --radius: 16px;
  --wrap: 1120px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(14, 15, 21, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-style: italic; font-size: 21px; }
.brand:hover { text-decoration: none; }
.brand .flag { display: inline-flex; width: 18px; height: 12px; margin-left: 2px; }
.brand .flag i { flex: 1; }
.brand .flag i:nth-child(1) { background: #009246; } .brand .flag i:nth-child(2) { background: #fff; } .brand .flag i:nth-child(3) { background: #ce2b37; }
nav.main { display: flex; gap: 20px; margin-left: auto; align-items: center; flex-wrap: wrap; }
nav.main a { color: var(--muted); font-size: 15px; }
nav.main a.on, nav.main a:hover { color: var(--text); text-decoration: none; }
nav.main .lang { border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; font-size: 13px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 12px; font-weight: 700; font-size: 16px; border: 1px solid transparent; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { border-color: var(--border); color: var(--text); background: var(--panel); }

/* Hero */
.hero { padding: 72px 0 40px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto; height: 520px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(164, 145, 255, .22), transparent), radial-gradient(closest-side at 80% 60%, rgba(107, 221, 186, .14), transparent); }
.hero .wrap { position: relative; }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .04em; background: rgba(107, 221, 186, .14); color: var(--mint); }
h1 { font-size: clamp(36px, 6vw, 62px); line-height: 1.08; margin: 18px 0 16px; letter-spacing: -.02em; }
h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--mint)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 720px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 10px; }
.note { color: var(--muted); font-size: 14px; }
.wave { display: block; width: 100%; height: 90px; margin: 44px 0 0; opacity: .9; }

/* Sections */
section { padding: 56px 0; }
h2 { font-size: clamp(28px, 4vw, 38px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -.01em; }
h3 { font-size: 20px; margin: 0 0 8px; }
.sub { color: var(--muted); max-width: 760px; margin: 0 0 32px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; background: rgba(164, 145, 255, .16); color: var(--accent); font-weight: 800; }
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: center; }
.split.rev { grid-template-columns: 1.25fr 1fr; }
.split.rev .text { order: 2; }
.shot { border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; background: var(--panel); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
ul.ticks { list-style: none; padding: 0; margin: 16px 0 0; }
ul.ticks li { padding-left: 28px; position: relative; margin: 8px 0; color: var(--muted); }
ul.ticks li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 10px; height: 10px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(107, 221, 186, .16); }
.band { background: var(--panel); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Pages */
.page { padding: 56px 0 24px; }
.page h1 { font-size: clamp(32px, 5vw, 46px); }
.prose { max-width: 820px; }
.prose h2 { font-size: 24px; margin: 36px 0 10px; }
.prose p, .prose li { color: #d9d8e4; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 12px 0; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--panel); }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 18px 52px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.box { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; margin: 18px 0; }
.box.warn { border-color: rgba(255, 184, 107, .45); }
.box.ok { border-color: rgba(107, 221, 186, .45); }
.price { font-size: 44px; font-weight: 800; margin: 8px 0; }
details { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 700; }
details p { color: var(--muted); margin: 10px 0 0; }
code, kbd { background: var(--panel-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; font-size: .92em; }
pre { background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; overflow-x: auto; }

/* Footer */
footer { border-top: 1px solid var(--border); margin-top: 48px; padding: 36px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); }

@media (max-width: 820px) {
  .split, .split.rev { grid-template-columns: 1fr; }
  .split.rev .text { order: 0; }
  nav.main { gap: 14px; }
  .top .wrap { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  nav.main { margin-left: 0; }
  .hero { padding-top: 44px; }
}

/* ---------------------------------------------------------------- alive */
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero-grid h1 { font-size: clamp(36px, 5vw, 56px); }
.stage { margin-top: 28px; }
h1 em { background-size: 200% auto; animation: shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: 200% center; } }

/* Floating notes */
.notes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.notes span { position: absolute; bottom: -40px; color: var(--accent); opacity: 0; animation: rise linear infinite; }
.notes span:nth-child(even) { color: var(--mint); }
@keyframes rise {
  0% { transform: translateY(0) rotate(-8deg); opacity: 0; }
  12% { opacity: .55; }
  50% { transform: translateY(-260px) translateX(18px) rotate(8deg); }
  85% { opacity: .35; }
  100% { transform: translateY(-560px) translateX(-10px) rotate(-6deg); opacity: 0; }
}

/* Waveform that dances */
.wave { display: flex; align-items: center; gap: 5px; height: 110px; }
.wave i { flex: 1; border-radius: 6px; background: linear-gradient(180deg, var(--accent), var(--mint));
  transform-origin: center; animation: bounce ease-in-out infinite alternate; will-change: transform; }
@keyframes bounce { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
body.playing .wave i { animation: none; transition: transform 60ms linear; }
.play-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.live .play-row .note { font-size: 13px; }
.needs-js { display: none; }
html.js .needs-js { display: flex; }
#play { cursor: pointer; font: inherit; font-weight: 700; }
body.playing #play { border-color: var(--mint); color: var(--mint); box-shadow: 0 0 0 4px rgba(107, 221, 186, .12); }

/* Live mini mixer */
.live { background: linear-gradient(180deg, rgba(29, 30, 41, .95), rgba(23, 24, 33, .95)); border: 1px solid var(--border);
  border-radius: 20px; padding: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(164, 145, 255, .08); transform: rotate(1.2deg); }
.live-head { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--mint); margin-bottom: 14px; }
.live-head .room { margin-left: auto; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.rec { width: 10px; height: 10px; border-radius: 50%; background: #ff5d6c; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 93, 108, .6); } 50% { box-shadow: 0 0 0 7px rgba(255, 93, 108, 0); } }
.strips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.strip { background: var(--bg); border: 1px solid var(--border); border-top: 3px solid var(--mint); border-radius: 12px; padding: 10px; }
.strip:first-child { border-top-color: var(--accent); }
.who { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.inst { color: var(--muted); font-size: 12px; margin: 2px 0 10px; }
.meter { height: 120px; border-radius: 6px; background: repeating-linear-gradient(0deg, #1b1c26 0 5px, #101117 5px 7px); position: relative; overflow: hidden; }
.lvl { position: absolute; inset: 0;
  background: linear-gradient(0deg, var(--mint) 0 62%, #f5d06a 62% 84%, #ff6b6b 84%);
  -webkit-mask: repeating-linear-gradient(0deg, #000 0 5px, transparent 5px 7px); mask: repeating-linear-gradient(0deg, #000 0 5px, transparent 5px 7px);
  animation: level ease-in-out infinite alternate; }
.l0 { animation-duration: .9s; } .l1 { animation-duration: 1.15s; animation-delay: -.4s; } .l2 { animation-duration: .75s; animation-delay: -.2s; } .l3 { animation-duration: .55s; animation-delay: -.1s; }
@keyframes level { 0% { clip-path: inset(72% 0 0 0); } 40% { clip-path: inset(36% 0 0 0); } 70% { clip-path: inset(55% 0 0 0); } 100% { clip-path: inset(22% 0 0 0); } }
body.playing .lvl { animation: none; transition: clip-path 70ms linear; }
.flag-it, .flag-de, .flag-es, .flag-fr { display: inline-flex; width: 18px; height: 12px; border-radius: 2px; overflow: hidden; flex: none; }
.flag-it i, .flag-fr i { flex: 1; } .flag-de, .flag-es { flex-direction: column; } .flag-de i, .flag-es i { flex: 1; }
.flag-it i:nth-child(1) { background: #009246; } .flag-it i:nth-child(2) { background: #fff; } .flag-it i:nth-child(3) { background: #ce2b37; }
.flag-de i:nth-child(1) { background: #000; } .flag-de i:nth-child(2) { background: #dd0000; } .flag-de i:nth-child(3) { background: #ffce00; }
.flag-es i:nth-child(1), .flag-es i:nth-child(3) { background: #aa151b; flex: 1; } .flag-es i:nth-child(2) { background: #f1bf00; flex: 2; }

/* Staff lines behind "how it works" */
.staff { background-image: repeating-linear-gradient(0deg, transparent 0 22px, rgba(164, 145, 255, .07) 22px 23px); background-color: var(--panel); }

/* Cards and shots react */
.card { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-4px); border-color: rgba(164, 145, 255, .45); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.card:hover .ico { animation: wiggle .5s ease; }
@keyframes wiggle { 30% { transform: rotate(-8deg) scale(1.08); } 60% { transform: rotate(6deg); } }
.shot { transition: transform .4s ease; }
.shot:hover { transform: translateY(-4px) rotate(-.4deg); }
.btn.primary { box-shadow: 0 8px 30px rgba(164, 145, 255, .35); }

/* Sections appear while scrolling (only when the script runs) */
html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .live { transform: none; } .meter { height: 80px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .reveal { opacity: 1; transform: none; }
  .notes { display: none; }
}
.box.beta h2 { margin-top: 0; }
.box.beta p { margin: 10px 0; }
@media (max-width: 600px) { .prose table { display: block; overflow-x: auto; font-size: 14px; } }
