/* Stem Split — musicaistudio.app
   One stylesheet for every page. Dark by design: the app is dark, and the
   neon green only glows against black. */

:root {
  --bg: #04060a;
  --bg-2: #080c12;
  --panel: #0d1219;
  --panel-2: #121923;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f3f6f8;
  --muted: #96a0b0;
  --dim: #5d6776;
  --green: #07be7e;
  --neon: #0fe39a;
  --neon-soft: rgba(15, 227, 154, 0.14);
  --glow: rgba(15, 227, 154, 0.38);
  --rec: #ff4d5e;
  --amber: #ffb020;

  --font: "Urbanist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 22px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--neon); color: #001a10; }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; border-radius: 6px; }

/* Film grain over everything — keeps the big flat blacks from looking cheap. */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(4, 6, 10, 0.72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-color: var(--line);
}
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; background: #0a0e13; box-shadow: 0 0 0 1px var(--line), 0 6px 24px rgba(15, 227, 154, 0.18); }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-weight: 600; font-size: 15px; color: var(--muted); }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-cta { margin-left: 4px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; font-size: 22px; border: 1px solid var(--line-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: 999px;
  font-weight: 700; font-size: 16px; letter-spacing: 0.005em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--neon); color: #00170e; box-shadow: 0 0 0 0 var(--glow), 0 10px 40px -8px var(--glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 6px rgba(15, 227, 154, 0.12), 0 18px 50px -10px var(--glow); }
.btn-ghost { border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { border-color: rgba(15, 227, 154, 0.55); background: var(--neon-soft); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.appstore { display: inline-block; height: 54px; transition: transform 0.25s var(--ease), filter 0.25s; }
.appstore img { height: 100%; width: auto; }
.appstore:hover { transform: translateY(-2px); filter: drop-shadow(0 10px 30px rgba(15, 227, 154, 0.35)); }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--neon);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 12px var(--neon); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
h1, h2, h3 { margin: 0; letter-spacing: -0.035em; line-height: 0.98; font-weight: 800; }
.h-xl { font-size: clamp(56px, 10.4vw, 152px); letter-spacing: -0.055em; line-height: 0.88; }
.h-lg { font-size: clamp(40px, 6.4vw, 88px); }
.h-md { font-size: clamp(30px, 3.8vw, 52px); letter-spacing: -0.03em; line-height: 1.02; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 40ch; line-height: 1.5; }
.lead strong { color: var(--text); font-weight: 600; }
.glow-text { color: var(--neon); text-shadow: 0 0 40px rgba(15, 227, 154, 0.45); }
.section { position: relative; padding: clamp(96px, 13vw, 180px) 0; }
.section-head { display: grid; gap: 22px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head.center { text-align: center; justify-items: center; }
.section-head.center .lead { max-width: 52ch; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden; isolation: isolate; }
#field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: auto -20% -40% -20%; height: 90%;
  background: radial-gradient(50% 50% at 60% 50%, rgba(7, 190, 126, 0.26), transparent 70%);
  filter: blur(10px);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 200px; background: linear-gradient(transparent, var(--bg)); z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 40px; }
.hero-copy { display: grid; gap: 28px; justify-items: start; }
.hero .lead { max-width: 34ch; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rating { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 15px; font-weight: 500; }
.stars { display: flex; gap: 2px; color: var(--amber); }
.stars svg { width: 17px; height: 17px; fill: currentColor; stroke: none; }
.rating b { color: var(--text); font-weight: 700; }

/* "apart." — four stacked copies, each clipped to one horizontal band, pulled
   sideways like the bars in the app icon. */
.split-word { position: relative; display: inline-block; color: var(--neon); filter: drop-shadow(0 0 28px rgba(15, 227, 154, 0.45)); }
.split-word .ghost { color: transparent; }
.split-word .band {
  position: absolute; inset: 0;
  animation: slide 6s var(--ease) infinite;
}
.split-word .band:nth-child(2) { clip-path: inset(0 0 75% 0); --dx: 0.05em; animation-delay: 0s; }
.split-word .band:nth-child(3) { clip-path: inset(25% 0 50% 0); --dx: -0.07em; animation-delay: 0.08s; opacity: 0.9; }
.split-word .band:nth-child(4) { clip-path: inset(50% 0 25% 0); --dx: 0.1em; animation-delay: 0.16s; opacity: 0.8; }
.split-word .band:nth-child(5) { clip-path: inset(75% 0 0 0); --dx: -0.04em; animation-delay: 0.24s; opacity: 0.7; }
@keyframes slide {
  0%, 12% { transform: translateX(0); }
  30%, 70% { transform: translateX(var(--dx)); }
  88%, 100% { transform: translateX(0); }
}

.hero-visual { position: relative; justify-self: center; width: min(330px, 70vw); }
.hero-visual .phone { transform: rotate(-3deg); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: rotate(-3deg) translateY(-14px); } }

/* Stem chips sit level with their own row in the screenshot and hang off the
   frame's edge, as if each stem is being pulled out of the phone. */
.chip {
  position: absolute; z-index: 2; margin-top: -19px;
  display: flex; align-items: center; gap: 9px;
  height: 38px; padding: 0 14px 0 11px; border-radius: 13px;
  background: rgba(13, 18, 25, 0.82); border: 1px solid rgba(15, 227, 154, 0.28);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-weight: 700; font-size: 14px; white-space: nowrap;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.8), 0 0 24px -8px var(--glow);
}
.chip .icon { color: var(--neon); font-size: 17px; }
.chip .eq { display: flex; align-items: flex-end; gap: 2px; height: 14px; margin-left: 2px; }
.chip .eq i { width: 3px; background: var(--neon); border-radius: 2px; animation: eq 0.9s ease-in-out infinite; }
.chip .eq i:nth-child(2) { animation-delay: -0.3s; }
.chip .eq i:nth-child(3) { animation-delay: -0.6s; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.chip.l { right: 96%; animation: pull-l 5s ease-in-out infinite; }
.chip.r { left: 96%; animation: pull-r 5s ease-in-out infinite; }
@keyframes pull-l { 50% { transform: translateX(-10px); } }
@keyframes pull-r { 50% { transform: translateX(10px); } }
/* Row centres in the stems screen: vocals, drums, bass, guitar, piano. */
.chip.c1 { top: 22%; }
.chip.c2 { top: 29.3%; animation-delay: -1s; }
.chip.c3 { top: 36.7%; animation-delay: -2s; }
.chip.c4 { top: 44%; animation-delay: -3s; }
.chip.c5 { top: 51.4%; animation-delay: -4s; }

/* ---------- Phone frame ----------
   iPhone 17 Pro proportions, all in cqw of the phone's width so the frame scales
   cleanly at any size: titanium rim → black bezel → screen at the exact aspect
   of the 1320×2868 captures (so nothing gets cropped). */
.phone { position: relative; container-type: inline-size; }
.phone .rim {
  position: relative;
  padding: 2.5cqw;
  border: 1.1cqw solid transparent;
  border-radius: 16.8cqw;
  background:
    linear-gradient(#020304, #020304) padding-box,
    linear-gradient(135deg, #b4bcc6 0%, #4a515a 14%, #1c2026 34%, #3d434b 52%, #8c949e 64%, #262a30 82%, #aab2bc 100%) border-box;
  box-shadow:
    0 0 0 0.3cqw #07090c,
    inset 0 0 0 0.35cqw rgba(255, 255, 255, 0.04),
    0 60px 110px -35px rgba(0, 0, 0, 0.9),
    0 40px 140px -50px var(--glow);
}
/* Side buttons: action + volume on the left, power + camera control on the right. */
.phone .rim::before, .phone .rim::after {
  content: ""; position: absolute; width: 0.9cqw; z-index: -1;
  --btn: linear-gradient(90deg, #6f7781, #2c3137 60%, #4b525b);
}
.phone .rim::before {
  left: -2.05cqw; top: 38cqw; height: 64cqw; border-radius: 0.6cqw 0 0 0.6cqw;
  background: var(--btn) 0 0 / 100% 10cqw no-repeat, var(--btn) 0 18cqw / 100% 19cqw no-repeat, var(--btn) 0 43cqw / 100% 19cqw no-repeat;
}
.phone .rim::after {
  right: -2.05cqw; top: 60cqw; height: 76cqw; border-radius: 0 0.6cqw 0.6cqw 0;
  background: var(--btn) 0 0 / 100% 30cqw no-repeat, var(--btn) 0 58cqw / 100% 16cqw no-repeat;
}
.phone .screen {
  position: relative; aspect-ratio: 1320 / 2868;
  border-radius: 13.2cqw; overflow: hidden; background: #000;
  transform: translateZ(0); /* keeps the rounded clip crisp while animating */
}
.phone .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.6s var(--ease), transform 0.8s var(--ease); }
/* A soft glass reflection across the display. */
.phone .screen::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 30%, transparent 42%);
}
.phone .island { position: absolute; z-index: 2; top: 2.3cqw; left: 50%; width: 27cqw; height: 7.8cqw; transform: translateX(-50%); background: #000; border-radius: 99px; }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; padding: 22px 0; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { display: flex; align-items: center; gap: 48px; font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; letter-spacing: -0.02em; color: var(--dim); white-space: nowrap; }
.marquee span::after { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--neon); box-shadow: 0 0 14px var(--neon); }
.marquee span:nth-child(3n + 1) { color: var(--text); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Mixer demo ---------- */
.mixer-section::before {
  content: ""; position: absolute; inset: 10% 0 auto; height: 70%; z-index: -1;
  background: radial-gradient(40% 50% at 50% 50%, rgba(7, 190, 126, 0.12), transparent 70%);
}
.mixer {
  --lane-h: 64px; --lane-gap: 10px;
  position: relative;
  border-radius: 28px;
  padding: clamp(18px, 2.6vw, 30px);
  background: linear-gradient(180deg, rgba(18, 25, 35, 0.9), rgba(10, 14, 20, 0.9));
  border: 1px solid var(--line-2);
  box-shadow: 0 60px 120px -50px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(15, 227, 154, 0.04), 0 40px 140px -60px var(--glow);
}
.mixer-top { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.play {
  width: 64px; height: 64px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--neon); color: #00170e;
  box-shadow: 0 0 0 0 var(--glow);
  transition: transform 0.2s var(--ease), box-shadow 0.3s;
}
.play:hover { transform: scale(1.06); box-shadow: 0 0 0 10px rgba(15, 227, 154, 0.12), 0 0 50px var(--glow); }
.play svg { width: 26px; height: 26px; fill: currentColor; stroke: none; }
.play .i-pause { display: none; }
.mixer.is-playing .play .i-play { display: none; }
.mixer.is-playing .play .i-pause { display: block; }
.mixer.is-playing .play { animation: ring 1.026s infinite; } /* one beat at 117 BPM */
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(15, 227, 154, 0.5); } 100% { box-shadow: 0 0 0 18px rgba(15, 227, 154, 0); } }
.track-meta { display: grid; gap: 2px; margin-right: auto; }
.track-meta b { font-size: 19px; letter-spacing: -0.01em; }
.track-meta span { color: var(--muted); font-size: 14px; }
.pills { display: flex; gap: 8px; }
.pill { font-family: var(--mono); font-size: 12px; padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--muted); }
.pill b { color: var(--text); font-weight: 600; }
.split-btn { position: relative; overflow: hidden; }
.split-btn > span { display: inline-flex; align-items: center; gap: 9px; }
.split-btn .icon { font-size: 18px; }
.mixer.is-split .split-btn .t-split, .mixer:not(.is-split) .split-btn .t-merge { display: none; }

.lanes { position: relative; height: var(--lane-h); transition: height 0.7s var(--ease); }
.mixer.is-split .lanes { height: calc(6 * var(--lane-h) + 5 * var(--lane-gap)); }
.lane {
  position: absolute; left: 0; right: 0; top: 0; height: var(--lane-h);
  display: grid; grid-template-columns: 138px 1fr auto; align-items: center; gap: 14px;
  opacity: 0; pointer-events: none;
  transition: top 0.7s var(--ease), opacity 0.4s;
  transition-delay: calc(var(--i) * 55ms);
}
.mixer.is-split .lane { top: calc(var(--i) * (var(--lane-h) + var(--lane-gap))); opacity: 1; pointer-events: auto; }
.lane-name { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 15px; }
.lane-name .icon { font-size: 21px; color: var(--neon); transition: color 0.3s; }
.wave-box { position: relative; height: 100%; border-radius: 14px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); overflow: hidden; transition: opacity 0.35s, border-color 0.35s, background 0.35s; }
.wave-box canvas { width: 100%; height: 100%; }
.lane-btns { display: flex; gap: 6px; }
.ms {
  width: 40px; height: 40px; border-radius: 11px;
  font-family: var(--mono); font-weight: 600; font-size: 13px;
  border: 1px solid var(--line-2); color: var(--muted);
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.ms:hover { border-color: rgba(255, 255, 255, 0.3); color: var(--text); }
.ms[aria-pressed="true"].m { background: var(--rec); border-color: var(--rec); color: #fff; }
.ms[aria-pressed="true"].s { background: var(--amber); border-color: var(--amber); color: #1a1000; box-shadow: 0 0 20px rgba(255, 176, 32, 0.4); }
.lane.is-off .wave-box { opacity: 0.28; }
.lane.is-off .lane-name .icon { color: var(--dim); }
.lane.is-solo .wave-box { border-color: rgba(255, 176, 32, 0.6); background: rgba(255, 176, 32, 0.06); }

.mix-lane {
  position: absolute; inset: 0; display: grid; grid-template-columns: 138px 1fr auto; align-items: center; gap: 14px;
  transition: opacity 0.4s;
}
.mixer.is-split .mix-lane { opacity: 0; pointer-events: none; }
.mix-lane .hint { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-right: 6px; }

.presets { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; opacity: 0.35; pointer-events: none; transition: opacity 0.4s; }
.mixer.is-split .presets { opacity: 1; pointer-events: auto; }
.preset { height: 38px; padding: 0 15px; border-radius: 999px; font-size: 14px; font-weight: 600; border: 1px solid var(--line-2); color: var(--muted); transition: all 0.2s; }
.preset:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.3); }
.preset[aria-pressed="true"] { background: var(--neon-soft); border-color: rgba(15, 227, 154, 0.6); color: var(--neon); }
.mixer-note { margin-top: 18px; font-size: 13.5px; color: var(--dim); text-align: center; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.stat { padding: 44px 24px; display: grid; gap: 6px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { font-size: clamp(40px, 5vw, 68px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.stat b small { font-size: 0.5em; color: var(--neon); letter-spacing: 0; }
.stat span { color: var(--muted); font-size: 15px; }

/* ---------- Feature scroller ---------- */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 120px); }
.features-phone { position: sticky; top: calc(50vh - min(38vh, 330px)); height: min(76vh, 660px); display: grid; place-items: center; }
.features-phone .phone { width: min(35vh, 320px); }
.features-phone .phone img { opacity: 0; transform: scale(1.04); }
.features-phone .phone img.is-active { opacity: 1; transform: none; }
.features-phone::before { content: ""; position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(15, 227, 154, 0.22), transparent); filter: blur(20px); z-index: -1; }
.feature { min-height: 88vh; display: flex; flex-direction: column; justify-content: center; gap: 20px; opacity: 0.25; transition: opacity 0.5s; }
.feature.is-active { opacity: 1; }
.feature .num { font-family: var(--mono); font-size: 13px; color: var(--neon); letter-spacing: 0.1em; }
.feature p { color: var(--muted); font-size: 19px; max-width: 38ch; margin: 0; }
.feature ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; }
.feature li { display: flex; gap: 12px; align-items: baseline; color: var(--text); font-weight: 500; }
.feature li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 2px; background: var(--neon); transform: translateY(-3px); box-shadow: 0 0 10px var(--neon); }
.feature .phone { display: none; }

/* ---------- Studio ---------- */
.studio { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.studio-copy { display: grid; gap: 24px; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.check-list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; }
.check-list li .icon { color: var(--neon); font-size: 22px; margin-top: 1px; }
.check-list b { display: block; font-weight: 700; }
.check-list span { color: var(--muted); font-size: 15.5px; }
.daw {
  position: relative; border-radius: 24px; padding: 18px; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line-2);
  box-shadow: 0 50px 120px -50px rgba(0, 0, 0, 0.9), 0 30px 120px -60px var(--glow);
}
.daw-ruler { display: grid; grid-template-columns: repeat(8, 1fr); margin-left: 104px; font-family: var(--mono); font-size: 11px; color: var(--dim); padding-bottom: 10px; }
.daw-body { position: relative; }
.daw-row { display: grid; grid-template-columns: 94px 1fr; gap: 10px; align-items: center; height: 52px; margin-bottom: 8px; }
.daw-row .name { font-size: 13px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.daw-row .name .icon { color: var(--neon); font-size: 16px; }
.daw-row.rec .name .icon { color: var(--rec); }
.daw-lane {
  position: relative; height: 100%; border-radius: 10px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px calc(100% / 8)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px calc(100% / 32)),
    rgba(255, 255, 255, 0.02);
}
.clip { position: absolute; top: 5px; bottom: 5px; border-radius: 7px; background: rgba(15, 227, 154, 0.16); border: 1px solid rgba(15, 227, 154, 0.4); overflow: hidden; }
.clip svg { width: 100%; height: 100%; }
.clip.rec { background: rgba(255, 77, 94, 0.16); border-color: rgba(255, 77, 94, 0.55); }
.clip.rec svg { color: var(--rec); }
.clip.click { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.18); }
.clip.click svg { color: #cfd6df; }
.clip svg { color: var(--neon); }
.playhead { position: absolute; top: -26px; bottom: 0; left: 104px; width: 2px; background: #fff; box-shadow: 0 0 14px #fff; animation: playhead 8.2s linear infinite; }
.playhead::before { content: ""; position: absolute; top: 0; left: -5px; border: 6px solid transparent; border-top-color: #fff; }
@keyframes playhead { from { left: 104px; } to { left: 100%; } }
.rec-badge { position: absolute; top: 16px; right: 18px; display: flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; color: var(--rec); letter-spacing: 0.1em; }
.rec-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 10px var(--rec); animation: pulse 1s infinite; }

/* ---------- Personas ---------- */
.personas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.persona {
  position: relative; overflow: hidden;
  padding: 30px 28px 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  display: grid; gap: 12px; align-content: start;
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.persona::after {
  content: ""; position: absolute; inset: auto -30% -60% auto; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(15, 227, 154, 0.3), transparent);
  opacity: 0; transition: opacity 0.5s;
}
.persona:hover { transform: translateY(-6px); border-color: rgba(15, 227, 154, 0.35); }
.persona:hover::after { opacity: 1; }
.persona .icon { font-size: 30px; color: var(--neon); margin-bottom: 8px; }
.persona h3 { font-size: 24px; letter-spacing: -0.02em; line-height: 1.1; }
.persona p { margin: 0; color: var(--muted); font-size: 16px; }
.persona .tag { justify-self: start; margin-top: 8px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 10px; border-radius: 8px; color: var(--neon); background: var(--neon-soft); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { padding: 34px 30px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); display: grid; gap: 14px; align-content: start; }
.step::before { counter-increment: step; content: "0" counter(step); font-size: 84px; font-weight: 800; letter-spacing: -0.06em; line-height: 0.9; -webkit-text-stroke: 1.5px rgba(15, 227, 154, 0.7); color: transparent; }
.step h3 { font-size: 26px; letter-spacing: -0.02em; }
.step p { margin: 0; color: var(--muted); }
.formats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 36px; }
.formats span { font-family: var(--mono); font-size: 12.5px; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line-2); color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 18px; background: var(--bg-2); transition: border-color 0.3s, background 0.3s; }
.faq details[open] { border-color: rgba(15, 227, 154, 0.35); background: var(--panel); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px; font-weight: 700; font-size: 18.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 28px; line-height: 1; color: var(--neon); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 26px 24px; color: var(--muted); }
.faq .a p { margin: 0 0 10px; }
.faq .a a { color: var(--neon); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Final CTA ---------- */
.cta { position: relative; text-align: center; overflow: hidden; padding: clamp(110px, 16vw, 220px) 0; isolation: isolate; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 60% at 50% 100%, rgba(7, 190, 126, 0.35), transparent 70%); }
.cta .bars { position: absolute; inset: auto 0 0; height: 55%; display: flex; align-items: flex-end; gap: 6px; padding: 0 6px; z-index: -1; opacity: 0.5; -webkit-mask-image: linear-gradient(transparent, #000); mask-image: linear-gradient(transparent, #000); }
.cta .bars i { flex: 1; background: linear-gradient(var(--neon), transparent); border-radius: 4px 4px 0 0; animation: bar 1.6s ease-in-out infinite; transform-origin: bottom; }
@keyframes bar { 0%, 100% { transform: scaleY(0.25); } 50% { transform: scaleY(1); } }
.cta .inner { display: grid; justify-items: center; gap: 30px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 64px 0 40px; font-size: 15px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { margin: 0 0 14px; color: var(--text); font-size: 13px; font-family: var(--mono); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a:hover { color: var(--neon); }
.footer-brand p { margin: 16px 0 0; max-width: 30ch; }
.footer-bottom { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13.5px; color: var(--dim); }

/* ---------- Inner pages (legal, contact, stemsplit) ---------- */
.page-hero { padding: 170px 0 60px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: -40% 10% auto; height: 120%; background: radial-gradient(40% 40% at 50% 50%, rgba(7, 190, 126, 0.2), transparent 70%); z-index: -1; }
.page-hero .h-lg { margin-top: 18px; }
.page-hero .meta { margin-top: 20px; color: var(--muted); font-family: var(--mono); font-size: 13px; }
.prose { max-width: 760px; padding-bottom: 120px; color: #c9d0d9; }
.prose h2 { font-size: 30px; letter-spacing: -0.02em; margin: 56px 0 16px; color: var(--text); line-height: 1.15; }
.prose h3 { font-size: 20px; letter-spacing: -0.01em; margin: 34px 0 10px; color: var(--text); line-height: 1.25; }
.prose p, .prose li { font-size: 17px; line-height: 1.7; }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--neon); }
.prose a { color: var(--neon); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--text); font-weight: 700; }
.toc { border: 1px solid var(--line); border-radius: 18px; padding: 22px 26px; background: var(--bg-2); margin-bottom: 20px; }
.toc b { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--neon); font-weight: 500; }
.toc ol { margin: 12px 0 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.toc li { font-size: 15px; margin: 4px 0; break-inside: avoid; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--neon); }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 120px; }
.contact-card { padding: 32px 28px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel-2), var(--panel)); display: grid; gap: 10px; align-content: start; transition: border-color 0.3s, transform 0.3s var(--ease); }
a.contact-card:hover { border-color: rgba(15, 227, 154, 0.45); transform: translateY(-4px); }
.contact-card .icon { font-size: 28px; color: var(--neon); margin-bottom: 10px; }
.contact-card h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.15; }
.contact-card p { margin: 0; color: var(--muted); font-size: 16px; }
.contact-card .v { color: var(--text); font-weight: 600; word-break: break-word; }

.center-card { max-width: 560px; margin: 0 auto; padding: 160px 0 140px; text-align: center; display: grid; justify-items: center; gap: 22px; }
.center-card .app-icon { width: 108px; height: 108px; border-radius: 26px; box-shadow: 0 0 0 1px var(--line-2), 0 20px 80px -10px var(--glow); }
.center-card p { color: var(--muted); margin: 0; }
.center-card .small { font-size: 14px; color: var(--dim); max-width: 42ch; }
.promo { font-family: var(--mono); font-size: 14px; padding: 10px 16px; border-radius: 10px; border: 1px dashed rgba(15, 227, 154, 0.6); color: var(--neon); background: var(--neon-soft); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .site-header.menu-open { background: rgba(4, 6, 10, 0.96); }
  .site-header.menu-open .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 72px; left: 0; right: 0;
    padding: 8px var(--gutter) 22px; background: rgba(4, 6, 10, 0.96); border-bottom: 1px solid var(--line);
    font-size: 20px;
  }
  .site-header.menu-open .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); }
  .hero { padding-top: 110px; }
  .hero-grid { grid-template-columns: 1fr; gap: 70px; }
  .hero-copy { justify-items: center; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .rating { flex-direction: column; gap: 6px; }
  .hero-visual { width: min(270px, 60vw); }
  .features { grid-template-columns: 1fr; }
  .features-phone { display: none; }
  .feature { min-height: 0; opacity: 1; padding: 48px 0; border-bottom: 1px solid var(--line); }
  .feature .phone { display: block; width: min(280px, 72vw); margin: 18px auto 0; }
  .feature .phone img { opacity: 1; }
  .studio { grid-template-columns: 1fr; }
  .personas, .steps { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .mixer { --lane-h: 54px; --lane-gap: 8px; border-radius: 22px; }
  .lane, .mix-lane { grid-template-columns: 34px 1fr auto; gap: 10px; }
  .lane-name span, .mix-lane .lane-name span { display: none; }
  .mix-lane .hint { display: none; }
  .ms { width: 34px; height: 34px; border-radius: 9px; font-size: 12px; }
  .pills { display: none; }
  .mixer-top { gap: 14px; }
  .split-btn { width: 100%; }
  .personas, .steps { grid-template-columns: 1fr; }
  .stat { padding: 30px 16px; }
  .daw { padding: 14px 12px; }
  .daw-row { grid-template-columns: 30px 1fr; height: 44px; }
  .daw-row .name span { display: none; }
  .daw-ruler { margin-left: 40px; grid-template-columns: repeat(4, 1fr); }
  .daw-ruler span:nth-child(even) { display: none; }
  .playhead { left: 40px; }
  @keyframes playhead { from { left: 40px; } to { left: 100%; } }
  .footer-grid { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  .chip { height: 34px; margin-top: -17px; padding: 0 10px; gap: 6px; }
  .chip .lbl { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
