/* ============================================================
   Lepza — monochrome landing page
   ============================================================ */

:root {
    --bg: #050505;
    --bg-soft: #0a0a0a;
    --surface: #0d0d0d;
    --surface-2: #121212;
    --line: rgba(255, 255, 255, .11);
    --line-strong: rgba(255, 255, 255, .22);
    --text: #f5f5f5;
    --dim: #8c8c8c;
    --dimmer: #5c5c5c;
    --white: #ffffff;
    --radius: 16px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --font: 'Poppins', 'Segoe UI', system-ui, sans-serif;
    --mono: 'JetBrains Mono', 'Consolas', monospace;
    --ascii: 'Consolas', 'Cascadia Mono', 'Courier New', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; overflow-x: hidden; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
.load-curtain {
    position: fixed; inset: 0; z-index: 1; pointer-events: none;
    background: #000; animation: curtainOut .75s var(--ease) forwards;
}
@keyframes curtainOut { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }

.scroll-progress {
    position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60;
    background: var(--white); transform: scaleX(0); transform-origin: left center;
    pointer-events: none;
}

::selection { background: var(--white); color: var(--bg); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }

.container { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }

/* --- ambient background --- */
.grain {
    position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.scanlines {
    position: fixed; inset: 0; z-index: 99; pointer-events: none; opacity: .045;
    background: repeating-linear-gradient(0deg, rgba(255,255,255,.5) 0 1px, transparent 1px 4px);
    animation: scanShift 9s linear infinite;
}
@keyframes scanShift { to { background-position: 0 8px; } }

.orb {
    position: fixed; z-index: 0; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(255,255,255,.14), transparent 70%);
    filter: blur(80px); animation: orbFloat 20s ease-in-out infinite;
}
.orb-a { width: 520px; height: 520px; top: 0; right: 4%; }
.orb-b { width: 440px; height: 440px; top: 42%; left: 0; animation-delay: -10s; }
@keyframes orbFloat { 0%, 100% { translate: 0 0; } 50% { translate: 44px 66px; } }

.glow {
    position: absolute;
    top: 0;
    left: 50%;
    width: min(1200px, 100%);
    height: 900px;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 0;
    background: radial-gradient( ellipse 65% 55% at 50% 6%, rgba(255, 255, 255, .075) 0%, rgba(255, 255, 255, .025) 42%, rgba(255, 255, 255, 0) 72% );
    filter: blur(28px);
    animation: glowBreath 9s ease-in-out infinite;
}

body::before {
    content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background-image: linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 62%);
    animation: gridMove 26s linear infinite;
}
@keyframes gridMove { to { background-position: 72px 72px, 72px 72px; } }

main, .site-header, .footer { position: relative; z-index: 1; }

/* --- entrance / shared animations --- */
.rise { opacity: 0; animation: rise .28s var(--ease) both; animation-delay: 0s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

@keyframes spinSlow { to { rotate: 360deg; } }
@keyframes floatSoft { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@keyframes flicker {
    0%, 100% { opacity: 1; }
    91% { opacity: 1; }
    92% { opacity: .55; }
    93% { opacity: 1; }
    96% { opacity: .8; }
    97% { opacity: 1; }
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes thumbPulse { 50% { box-shadow: 0 0 0 .3em rgba(255,255,255,.09); } }
@keyframes barGlow { 50% { box-shadow: 0 0 22px rgba(255,255,255,.85); } }
@keyframes linePulse { 50% { width: 18px; opacity: .45; } }
@keyframes textGlow { 50% { text-shadow: 0 0 34px rgba(255,255,255,.12); } }

/* --- header --- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(5, 5, 5, .78);
    backdrop-filter: blur(18px);
}
.header-inner { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-logo {
    display: block; height: 30px; width: auto;
    animation: brandGlow 5s ease-in-out infinite;
}
@keyframes brandGlow {
    0%, 100% { filter: drop-shadow(0 0 0 rgba(255,255,255,0)); }
    50% { filter: drop-shadow(0 0 9px rgba(255,255,255,.45)); }
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
    position: relative; padding: 8px 14px; border-radius: 8px;
    font-size: 13px; color: var(--dim); transition: color .25s var(--ease), background .25s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--text); background: rgba(255,255,255,.05); }
.nav-link::after {
    content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px;
    height: 1px; background: var(--white); transform: scaleX(0); transform-origin: left center;
    transition: transform .35s var(--ease);
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 10px; }
@keyframes dotBlink { 50% { opacity: .35; } }

.btn {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 24px; border-radius: 11px; border: 1px solid var(--white);
    background: var(--white); color: var(--bg); font-size: 14px; font-weight: 600;
    letter-spacing: .01em; cursor: pointer;
    transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); background: #e8e8e8; box-shadow: 0 12px 34px rgba(255,255,255,.12); }
.btn::after {
    content: ''; position: absolute; top: -30%; bottom: -30%; left: -80%; width: 55%;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,.16), transparent);
    transform: skewX(-18deg); transition: left .6s var(--ease);
}
.btn:hover::after { left: 140%; }
.btn-sm { padding: 9px 17px; font-size: 13px; border-radius: 9px; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: rgba(255,255,255,.07); color: var(--text); box-shadow: none; }
.btn-ghost::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent); }

.menu-toggle {
    display: none; width: 38px; height: 38px; border: 1px solid var(--line);
    border-radius: 9px; background: transparent; cursor: pointer;
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-toggle span { width: 16px; height: 1px; background: var(--text); transition: transform .25s; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* --- shared --- */
.muted { color: var(--dimmer); }
.index {
    position: relative; display: inline-block; padding-left: 20px;
    font-family: var(--mono); font-size: 11px;
    letter-spacing: .16em; color: var(--dim); margin-bottom: 18px;
}
.index::before {
    content: ''; position: absolute; left: 0; top: 50%; width: 10px; height: 1px;
    background: var(--white); animation: linePulse 2.6s ease-in-out infinite;
}
.pulse {
    display: inline-block; width: 6px; height: 6px; margin-right: 9px;
    border-radius: 50%; background: var(--white);
    box-shadow: 0 0 0 0 rgba(255,255,255,.45);
    animation: pulse 2.4s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255,255,255,.45); }
    70% { box-shadow: 0 0 0 9px rgba(255,255,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.reveal { opacity: 0; transform: translateY(34px); filter: blur(6px); transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; filter: none; }
.reveal.scroll-fade { transition: none; }

/* --- hero --- */
.hero {
    position: relative;
    padding: 88px 0 96px;
    display: grid; grid-template-columns: 1fr; justify-items: center;
    gap: 58px;
}
.hero-copy { width: 100%; max-width: 880px; text-align: center; }
.hero > * { position: relative; z-index: 1; }

.eyebrow {
    display: inline-flex; align-items: center; font-family: var(--mono);
    font-size: 11px; letter-spacing: .14em; color: var(--dim);
    padding: 8px 14px; border: 1px solid var(--line); border-radius: 100px; margin-bottom: 30px;
    background: rgba(255,255,255,.02);
}
.hero h1, .section-head h2, .viz-copy h2, .split-copy h2, .download h2 {
    margin: 0; font-weight: 600; letter-spacing: -.045em; line-height: 1.08;
}
.hero h1 { font-size: clamp(42px, 5.2vw, 72px); opacity: 1; animation: rise .28s var(--ease) both, textGlow 7s ease-in-out infinite; }
.lead { max-width: 540px; margin: 26px auto 34px; color: var(--dim); font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.hero-meta { display: flex; justify-content: center; gap: 38px; max-width: 620px; margin: 48px auto 0; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-meta div { display: flex; flex-direction: column; gap: 2px; }
.hero-meta strong { font-family: var(--mono); font-size: 13px; font-weight: 500; }
.hero-meta span { font-size: 12px; color: var(--dim); }

/* --- stage / screens --- */
.stage { position: relative; width: 100%; min-width: 0; }
.stage-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 16px; }
.stage-tab {
    padding: 9px 14px; border: 1px solid var(--line); border-radius: 8px;
    background: transparent; color: var(--dim); cursor: pointer;
    font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
    transition: color .25s, border-color .25s, background .25s, transform .25s;
}
.stage-tab:hover { color: var(--text); border-color: var(--line-strong); transform: translateY(-1px); }
.stage-tab.active { background: var(--white); color: var(--bg); border-color: var(--white); box-shadow: 0 8px 24px rgba(255,255,255,.12); }

.stage-body { min-height: 436px; display: grid; place-items: center; }
.screen { display: none; width: 100%; }
.screen.is-active { display: block; }
.mock-caption { display: flex; align-items: center; justify-content: center; margin-top: 18px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--dim); }

/* --- loading mock --- */
.loading-mock {
    position: relative; overflow: hidden;
    width: min(100%, 980px); margin-inline: auto;
    display: flex; flex-direction: column; gap: 9px;
    padding: clamp(18px, 2.4vw, 30px);
    border: 1px solid var(--line-strong); border-radius: 14px;
    background: radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,.05), transparent 60%), #040404;
    box-shadow: 0 40px 90px rgba(0,0,0,.72);
}
.loading-mock::before {
    content: ''; position: absolute; inset: -45%; pointer-events: none;
    background: conic-gradient(from 0deg, transparent, rgba(255,255,255,.07), transparent 30%);
    animation: spinSlow 14s linear infinite;
}
.loading-mock > * { position: relative; z-index: 1; }
.loading-mock--large { width: min(100%, 1040px); padding: clamp(20px, 3vw, 38px); }

.download-notice {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    width: min(100%, 720px); padding: clamp(28px, 4vw, 46px) 24px; text-align: center;
    border: 1px solid rgba(255,255,255,.16); border-radius: 12px;
    background: radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,.05), transparent 60%), #040404;
    box-shadow: 0 40px 90px rgba(0,0,0,.6);
}
.download-notice .notice-tag {
    font-family: var(--mono); font-size: 9px; letter-spacing: .22em; color: var(--dim);
}
.download-notice strong { font-size: clamp(16px, 2vw, 22px); font-weight: 600; }
.download-notice p {
    margin: 0; max-width: 44ch; font-size: clamp(12px, 1.2vw, 15px);
    color: var(--dim); line-height: 1.6;
}

.ascii-wrap {
    position: relative; overflow: hidden; text-align: center;
    container-type: inline-size;
}
.ascii-banner {
    display: inline-block; margin: 0; text-align: left;
    font-family: var(--ascii);
    font-size: 9px;
    font-size: clamp(2.6px, 1cqw, 13px);
    line-height: 1.08; letter-spacing: 0; color: #fff; white-space: pre;
    text-shadow: 0 0 8px rgba(255,255,255,.25);
    animation: flicker 7s infinite;
}
.ascii-wrap::after {
    content: ''; position: absolute; left: -10%; right: -10%; top: 0; height: 34%;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,.16), transparent);
    mix-blend-mode: screen; pointer-events: none;
    animation: asciiScan 4.6s linear infinite;
}
@keyframes asciiScan { 0% { translate: 0 -120%; } 100% { translate: 0 430%; } }

.lm-divider { height: 1px; background: rgba(255,255,255,.14); margin: 12px 0 2px; }
.lm-tag { font-family: var(--mono); font-size: clamp(8px, .8vw, 10px); letter-spacing: .2em; color: var(--dim); text-align: center; }
.lm-title { text-align: center; font-size: clamp(14px, 1.6vw, 20px); font-weight: 600; }
.lm-sub { text-align: center; font-size: clamp(9px, 1vw, 12px); color: var(--dim); }
.lm-bar { margin-top: auto; padding-top: 16px; }
.lm-bar-head { display: flex; justify-content: space-between; align-items: center; font-size: clamp(9px, 1vw, 11px); color: var(--dim); margin-bottom: 6px; }
.lm-pct { font-family: var(--mono); color: var(--text); }
.lm-track { position: relative; height: 4px; border-radius: 100px; background: rgba(255,255,255,.12); overflow: hidden; }
.lm-fill {
    display: block; height: 100%; border-radius: 100px; background: #fff;
    box-shadow: 0 0 14px rgba(255,255,255,.55);
    transition: width .1s linear;
    animation: barGlow 2.2s ease-in-out infinite;
}

/* --- menu mock (pixel-matched to the in-app 820x560 menu) --- */
.mm-scale {
    container-type: inline-size;
    width: min(100%, 820px);
    margin-inline: auto;
}
.menu-mock {
    position: relative;
    width: 100%;
    aspect-ratio: 82 / 56;
    font-size: 10px;
    font-size: calc(100cqw / 82);
    border: 1px solid var(--line-strong);
    border-radius: 1.4em;
    background: #000;
    overflow: hidden;
    box-shadow: 0 40px 90px rgba(0,0,0,.72), inset 0 0 0 1px rgba(255,255,255,.03);
    animation: floatSoft 9s ease-in-out infinite;
    transition: transform .18s var(--ease);
    will-change: transform;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.menu-mock::before {
    content: ''; position: absolute; inset: -8%; z-index: 0; pointer-events: none;
    background:
        radial-gradient(58% 46% at 16% 108%, rgba(255,255,255,.07), transparent 70%),
        radial-gradient(44% 40% at 84% 2%, rgba(255,255,255,.06), transparent 72%),
        radial-gradient(50% 40% at 54% 58%, rgba(255,255,255,.025), transparent 72%);
    filter: blur(4px);
    animation: mmSilk 15s ease-in-out infinite alternate;
}
@keyframes mmSilk {
    from { transform: translate3d(-1.5%, 1%, 0) scale(1.03); opacity: .7; }
    to { transform: translate3d(1.5%, -1%, 0) scale(1.07); opacity: 1; }
}

/* sidebar */
.mm-side {
    position: absolute; left: 0; top: 0; bottom: 0; width: 19.6em; z-index: 2;
    border-right: 1px solid rgba(255,255,255,.07);
}
.mm-logo {
    position: absolute; left: 1.8em; top: 2.2em; height: 3em; width: auto; z-index: 3;
    opacity: .95;
}
.mm-nav {
    position: absolute; left: 1.2em; width: 17.2em; height: 4em;
    display: flex; align-items: center; gap: .9em; padding: 0 0 0 1.8em;
    border: 0; border-radius: .9em; background: transparent;
    color: var(--dim); text-align: left; cursor: pointer;
    transition: background .22s, color .22s;
}
.mm-nav:nth-of-type(1) { top: 8.2em; }
.mm-nav:nth-of-type(2) { top: 12.6em; }
.mm-nav:nth-of-type(3) { top: 17em; }
.mm-nav:nth-of-type(4) { top: 21.4em; }
.mm-nav span { font-size: 1.3em; line-height: 1; white-space: nowrap; }
.mm-nav .mm-ic {
    flex: none; width: 1.8em; height: 1.8em;
    fill: none; stroke: currentColor; stroke-width: 1.4;
    stroke-linecap: round; stroke-linejoin: round;
}
.mm-nav .mm-fill { fill: currentColor; stroke: none; }
.mm-nav:hover { background: rgba(255,255,255,.035); color: #cfcfcf; }
.mm-nav.is-active { background: rgba(255,255,255,.07); color: var(--text); }
.mm-nav.is-active::before {
    content: ''; position: absolute; left: 0; top: 1em; bottom: 1em; width: .3em;
    border-radius: .3em; background: #fff;
    box-shadow: 0 0 10px rgba(255,255,255,.4);
    animation: navPulse 2.4s ease-in-out infinite;
}
@keyframes navPulse { 50% { opacity: .45; } }
.mm-nav:focus-visible, .mm-tabbar button:focus-visible { outline: 1px solid rgba(255,255,255,.65); outline-offset: 2px; }

/* sub-tab pill bar */
.mm-tabbar {
    position: absolute; left: 21.8em; top: 1.4em; height: 3.2em; z-index: 3;
    display: inline-flex; align-items: center; padding: .4em;
    border: 1px solid rgba(255,255,255,.09); border-radius: 1.6em;
    background: rgba(255,255,255,.03);
}
.mm-pill {
    position: absolute; top: .4em; bottom: .4em; left: .4em; width: 0;
    border: 1px solid rgba(255,255,255,.55); border-radius: 1.2em;
    background: rgba(255,255,255,.18);
    pointer-events: none;
    transition: left .3s var(--ease), width .3s var(--ease);
}
.mm-tabbar button {
    position: relative; z-index: 1; height: 100%; padding: 0 1.12em;
    border: 0; border-radius: 1.2em; background: none;
    font: inherit; font-size: 1.22em; line-height: 1; color: var(--dim);
    white-space: nowrap; cursor: pointer;
    transition: color .2s;
}
.mm-tabbar button:hover { color: #cfcfcf; }
.mm-tabbar button.is-active { color: var(--text); }
.mm-version {
    position: absolute; right: 1.6em; top: 2.2em; z-index: 3;
    font-size: 1.1em; line-height: 1; color: var(--dimmer); white-space: nowrap;
    animation: flicker 9s infinite;
}

/* content */
.mm-main { display: contents; }
.mm-state { display: none; }
.mm-state.is-active { display: block; }
.mm-state.is-active .mm-panel { animation: mmPanelIn .34s var(--ease) both; }
@keyframes mmPanelIn { from { opacity: 0; transform: translateY(.6em); } }
.mm-panel {
    position: absolute; top: 7em; width: 28.4em; height: 46.8em;
    border: 1px solid rgba(255,255,255,.08); border-radius: 1.2em;
    background: linear-gradient(165deg, rgba(255,255,255,.038), rgba(255,255,255,.012));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 18px 44px rgba(0,0,0,.45);
    overflow: hidden;
}
.mm-panel.p1 { left: 21.8em; }
.mm-panel.p2 { left: 51.4em; }
.mm-head { position: absolute; left: 2em; right: 1.6em; top: 1em; }
.mm-head strong { display: block; font-size: 1.35em; font-weight: 600; line-height: 1.2; color: var(--text); }
.mm-head small {
    display: block; margin-top: .32em; font-size: 1.02em; line-height: 1.25; color: var(--dim);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mm-accent {
    position: absolute; left: -.8em; top: .2em; width: .2em; height: 1.4em;
    border-radius: .2em; background: #fff; box-shadow: 0 0 8px rgba(255,255,255,.35);
}
.mm-body {
    position: absolute; left: 1.6em; right: 1.6em; top: 4.8em; bottom: 1.4em;
    display: flex; flex-direction: column; min-height: 0;
}

/* rows + switches */
.mm-row {
    display: flex; flex: none; align-items: center; justify-content: space-between; gap: 1em;
    padding: .62em 0; border-bottom: 1px solid rgba(255,255,255,.05);
    font-size: 1.2em; color: #b6b6b6;
}
.mm-row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-sw {
    position: relative; flex: none; width: 2.4em; height: 1.2em;
    border: 1px solid rgba(255,255,255,.24); border-radius: 1em;
    background: rgba(255,255,255,.035);
    transition: background .25s, border-color .25s;
}
.mm-sw::after {
    content: ''; position: absolute; top: 50%; left: .2em; width: .72em; height: .72em;
    transform: translateY(-50%); border-radius: 50%;
    background: rgba(255,255,255,.78);
    transition: left .2s var(--ease), background .2s;
}
.mm-row:hover .mm-sw { border-color: rgba(255,255,255,.38); }

/* combo boxes */
.mm-combo {
    position: relative;
    display: flex; flex: none; align-items: center; justify-content: space-between;
    height: 2.7em; margin-bottom: .8em; padding: 0 .9em;
    border: 1px solid rgba(255,255,255,.13); border-radius: .55em;
    background: rgba(255,255,255,.028);
    font-size: 1.14em; color: var(--text);
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.mm-combo:hover { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.05); }
.mm-combo i {
    width: 0; height: 0;
    border-left: .32em solid transparent; border-right: .32em solid transparent;
    border-top: .38em solid var(--dim);
    transition: transform .2s var(--ease);
}
.mm-combo.is-open i { transform: rotate(180deg); }
.mm-combo-menu {
    position: absolute; left: -.4em; right: -.4em; top: calc(100% + .35em);
    z-index: 30; padding: .35em;
    border: 1px solid rgba(255,255,255,.18); border-radius: .55em;
    background: #070707;
    box-shadow: 0 12px 30px rgba(0,0,0,.75);
    animation: mmComboIn .16s var(--ease) both;
}
@keyframes mmComboIn { from { opacity: 0; transform: translateY(-.35em); } }
.mm-combo-opt {
    padding: .48em .6em; border-radius: .36em;
    font-size: 1.02em; color: #b6b6b6;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mm-combo-opt:hover { background: rgba(255,255,255,.07); color: var(--text); }
.mm-combo-opt.is-selected { background: rgba(255,255,255,.12); color: var(--text); }
.mm-combo-opt.is-selected::after {
    content: ''; float: right; width: .4em; height: .4em; margin-top: .35em;
    border-radius: 50%; background: #fff;
}

/* sliders */
.mm-slider { flex: none; margin-top: 1em; }
.mm-slider-top {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: .45em; font-size: 1.08em; color: var(--dim);
}
.mm-slider-top b { font-weight: 400; color: var(--text); font-variant-numeric: tabular-nums; }
.mm-track { position: relative; height: .4em; border-radius: 1em; background: rgba(255,255,255,.13); }
.mm-track i {
    position: absolute; left: 0; top: 0; bottom: 0; border-radius: 1em;
    background: #fff; box-shadow: 0 0 10px rgba(255,255,255,.25);
}
.mm-track em {
    position: absolute; top: 50%; width: 1.05em; height: 1.05em;
    transform: translate(-50%, -50%); border-radius: 50%; background: #fff;
    box-shadow: 0 0 0 .18em rgba(0,0,0,.55), 0 0 10px rgba(255,255,255,.35);
}

/* graph */
.mm-curve { flex: none; margin-top: auto; padding-top: .8em; }
.mm-curve > span { font-size: 1.08em; color: var(--dim); }
.mm-graph {
    height: 6.6em; margin-top: .6em; overflow: hidden;
    border: 1px solid rgba(255,255,255,.07); border-radius: .7em;
    background:
        linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0)),
        repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0 1px, transparent 1px 2.5em);
}
.mm-graph svg { width: 100%; height: 100%; }
.mm-graph path {
    fill: none; stroke: #fff; stroke-width: 1.4; vector-effect: non-scaling-stroke;
    stroke-dasharray: 340; animation: drawCurve 6s ease-in-out infinite;
}
@keyframes drawCurve { 0% { stroke-dashoffset: 340; opacity: .35; } 45%, 100% { stroke-dashoffset: 0; opacity: 1; } }
.mm-axis {
    display: flex; justify-content: space-between; margin-top: .45em;
    font-size: .95em; color: var(--dimmer); font-variant-numeric: tabular-nums;
}

/* keybind / hints / labels */
.mm-key {
    flex: none; margin-top: 1.2em; padding: .55em .4em; text-align: center;
    border: 1px solid rgba(255,255,255,.1); border-radius: .6em;
    background: rgba(255,255,255,.025);
    font-size: 1.1em; color: var(--text);
}
.mm-key + .mm-key { margin-top: .6em; }
.mm-body > .mm-key:last-child { margin-top: auto; }
.mm-hint { flex: none; margin-top: .9em; text-align: center; font-size: 1em; color: var(--dim); }
.mm-label { flex: none; margin: 1.2em 0 .5em; font-size: 1.05em; color: var(--dim); }
.mm-note { flex: none; margin: .9em 0 0; font-size: 1em; line-height: 1.45; color: var(--dimmer); }

/* empty state */
.mm-empty {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .5em; padding: 2em 1.6em; text-align: center;
    border: 1px dashed rgba(255,255,255,.13); border-radius: .9em;
    color: var(--dim);
}
.mm-empty strong { font-size: 1.3em; font-weight: 600; color: var(--text); }
.mm-empty span { font-size: 1.05em; line-height: 1.4; }

/* colour rows */
.mm-swatch {
    flex: none; width: 2.7em; height: 1.4em; border-radius: .35em;
    border: 1px solid rgba(255,255,255,.28);
    background: linear-gradient(135deg, #ffffff, #8e8e8e);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.35);
}

/* buttons */
.mm-btn {
    display: flex; flex: none; align-items: center; justify-content: center;
    height: 3em; margin-top: 1em; padding: 0 1.2em;
    border: 1px solid rgba(255,255,255,.16); border-radius: .6em;
    background: rgba(255,255,255,.04);
    font-size: 1.05em; letter-spacing: .06em; text-transform: uppercase; color: var(--text);
    cursor: default; transition: background .2s, border-color .2s;
}
.mm-btn:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.26); }
.mm-btn--primary { background: #fff; border-color: #fff; color: #000; font-weight: 600; }
.mm-btn--primary:hover { background: #e6e6e6; }
.mm-btn--sm {
    height: 2.4em; margin-top: 0; padding: 0 .9em;
    font-size: 1em; letter-spacing: 0; text-transform: none; border-radius: .5em;
}

/* config studio */
.mm-hero {
    position: relative; flex: none; padding: 1.2em 1.2em 1.4em; text-align: center;
    border: 1px solid rgba(255,255,255,.1); border-radius: .9em;
    background: radial-gradient(120% 110% at 50% 0%, rgba(255,255,255,.075), rgba(255,255,255,.015));
}
.mm-hero span { font-size: .95em; letter-spacing: .18em; color: var(--dimmer); }
.mm-hero b { display: block; margin-top: .45em; font-size: 1.8em; font-weight: 600; line-height: 1.1; }
.mm-hero i {
    position: absolute; right: 1.4em; top: 50%; width: 1.1em; height: 1.1em;
    margin-top: -.55em; border-radius: 50%; background: #fff;
    box-shadow: 0 0 12px rgba(255,255,255,.6);
    animation: heroDot 2.4s ease-in-out infinite;
}
@keyframes heroDot { 50% { opacity: .5; transform: scale(.78); } }
.mm-cfg-label { flex: none; margin: 1.2em 0 .5em; font-size: .95em; letter-spacing: .16em; color: var(--dimmer); }
.mm-field {
    display: flex; flex: none; align-items: center; height: 2.9em; padding: 0 .9em;
    border: 1px solid rgba(255,255,255,.12); border-radius: .55em;
    background: rgba(255,255,255,.025);
    font-size: 1.15em; color: var(--text);
}
.mm-store {
    display: flex; flex: none; align-items: center; gap: .9em; padding: .9em;
    border: 1px solid rgba(255,255,255,.09); border-radius: .7em;
    background: rgba(255,255,255,.02);
}
.mm-store i {
    flex: none; width: 2.4em; height: 2.4em; border-radius: .5em;
    border: 1px solid rgba(255,255,255,.14);
    background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.02));
}
.mm-store b { display: block; font-size: 1.1em; font-weight: 500; line-height: 1.3; }
.mm-store span { display: block; margin-top: .2em; font-size: .95em; line-height: 1.3; color: var(--dimmer); }
.mm-tip {
    display: flex; flex: none; align-items: flex-start; gap: .7em;
    margin-top: auto; padding-top: 1.2em;
    font-size: 1em; line-height: 1.4; color: var(--dim);
}
.mm-tip i { flex: none; width: .55em; height: .55em; margin-top: .45em; border-radius: 50%; background: #fff; }

/* config library */
.mm-lib-head {
    display: flex; flex: none; align-items: center; justify-content: space-between; gap: 1em;
    font-size: .95em; letter-spacing: .14em; color: var(--dimmer);
}
.mm-lib-row {
    display: flex; flex: none; align-items: center; justify-content: space-between;
    height: 4.2em; margin-top: .8em; padding: 0 .9em;
    border: 1px solid rgba(255,255,255,.09); border-radius: .7em;
    background: rgba(255,255,255,.02);
    font-size: 1.1em;
}
.mm-lib-row.is-loaded { border-color: rgba(255,255,255,.36); background: rgba(255,255,255,.055); }
.mm-lib-row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-lib-row i {
    display: flex; flex: none; align-items: center; justify-content: center;
    width: 3.8em; height: 2.6em;
    border: 1px solid rgba(255,255,255,.12); border-radius: .5em;
    font-style: normal; color: var(--dim); cursor: default;
    transition: color .2s, border-color .2s;
}
.mm-lib-row i:hover { color: #fff; border-color: rgba(255,255,255,.4); }

/* --- music mock --- */
.music-mock {
    position: relative; width: min(100%, 520px); margin-inline: auto; overflow: hidden;
    border: 1px solid var(--line-strong); border-radius: 14px; background: #040404;
    padding: 1.3em; font-size: clamp(10px, 1.2vw, 13px);
    box-shadow: 0 40px 90px rgba(0,0,0,.72);
    animation: floatSoft 7.5s ease-in-out infinite;
}
.mu-viz { position: absolute; left: 0; right: 0; bottom: 0; height: 64%; display: flex; align-items: flex-end; gap: .2em; padding: 0 .7em .6em; opacity: .2; pointer-events: none; }
.mu-viz i { flex: 1; min-width: 1px; height: 10%; border-radius: 2px 2px 0 0; background: linear-gradient(to top, rgba(255,255,255,.05), #fff); transition: height .09s linear; }
.mu-content { position: relative; z-index: 1; display: flex; flex-direction: column; gap: .85em; }
.mu-head { display: flex; align-items: center; justify-content: space-between; font-size: 1.05em; }
.mu-min { width: 5.4em; height: 1.15em; border-radius: 100px; border: 1px solid var(--line-strong); }
.mu-top { display: flex; align-items: center; gap: 1em; margin-top: .15em; }
.mu-art {
    position: relative; overflow: hidden;
    width: 5.6em; height: 5.6em; flex: none; display: grid; place-items: center;
    border: 1px solid var(--line); border-radius: .55em;
    background: linear-gradient(135deg, #2b2b2b, #0a0a0a);
    animation: artGlow 5s ease-in-out infinite;
}
@keyframes artGlow { 50% { box-shadow: 0 0 28px rgba(255,255,255,.18); border-color: rgba(255,255,255,.34); } }
.mu-art::before { content: ''; position: absolute; inset: -60%; background: conic-gradient(from 0deg, transparent, rgba(255,255,255,.2), transparent 35%); animation: spinSlow 8s linear infinite; }
.mu-art svg { position: relative; z-index: 1; width: 2.4em; height: 2.4em; fill: none; stroke: #fff; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.mu-info { display: flex; flex-direction: column; gap: .15em; min-width: 0; }
.mu-info strong { font-size: 1.18em; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mu-info span { font-size: .86em; color: var(--dim); }
.mu-info small { font-size: .74em; color: var(--dimmer); }
.mu-progress { height: .25em; border-radius: 100px; background: rgba(255,255,255,.16); overflow: hidden; }
.mu-progress i { display: block; width: 38%; height: 100%; background: linear-gradient(90deg, #fff, #8a8a8a, #fff); background-size: 200% 100%; animation: shimmer 3s linear infinite; }
.mu-times { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .7em; color: var(--dim); margin-top: -.45em; }
.mu-controls { display: flex; align-items: center; gap: 1.3em; }
.mu-btn { width: 1.5em; height: 1.5em; color: var(--text); }
.mu-btn svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mu-btn.play { width: 2.7em; height: 2.7em; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; animation: playPulse 3s ease-in-out infinite; }
@keyframes playPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.28); } 50% { box-shadow: 0 0 0 11px rgba(255,255,255,0); } }
.mu-btn.play svg { width: 1.05em; height: 1.05em; stroke-width: 2.2; }
.mu-volume { display: flex; align-items: center; gap: .8em; font-size: .7em; color: var(--dim); }
.mu-volume > span { letter-spacing: .12em; }
.mu-track { position: relative; flex: 1; height: .22em; border-radius: 100px; background: rgba(255,255,255,.16); }
.mu-track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 100px; background: #fff; }
.mu-track em { position: absolute; top: 50%; transform: translate(-50%, -50%); width: .9em; height: .9em; border-radius: 50%; background: #fff; animation: thumbPulse 2.8s ease-in-out infinite; }
.mu-volume b { font-family: var(--mono); font-weight: 400; color: var(--text); }
.mu-status { display: flex; align-items: center; font-size: .82em; color: var(--text); }

/* --- ticker --- */
.ticker { border-block: 1px solid var(--line); overflow: hidden; padding: 15px 0; background: rgba(255,255,255,.02); }
.ticker-track { display: flex; gap: 34px; white-space: nowrap; width: max-content; animation: ticker 34s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; color: var(--dim); }
.ticker-track b { color: var(--dimmer); font-weight: 400; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* --- sections --- */
.section { padding: 112px 0; }
.section-head { max-width: 700px; margin-bottom: 54px; }
.section-head h2, .viz-copy h2, .split-copy h2, .download h2 { font-size: clamp(34px, 4.2vw, 56px); }
.section-head h2 { animation: textGlow 7s ease-in-out infinite; }
.section-head p { color: var(--dim); margin: 20px 0 0; max-width: 560px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
    position: relative; min-height: 262px; padding: 30px 28px; overflow: hidden;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: linear-gradient(160deg, var(--surface-2), var(--surface));
    transition: border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s;
}
.feature::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(400px circle at 50% 0%, rgba(255,255,255,.06), transparent 65%);
    opacity: 0; transition: opacity .35s;
}
.feature:hover { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: 0 22px 50px rgba(0,0,0,.45); }
.feature:hover::after { opacity: 1; }
.feature-num { font-family: var(--mono); font-size: 11px; color: var(--dimmer); letter-spacing: .1em; }
.feature h3 { margin: 44px 0 10px; font-size: 18px; font-weight: 600; letter-spacing: -.02em; position: relative; }
.feature p { margin: 0; font-size: 13px; color: var(--dim); position: relative; }

.feature-icon { position: absolute; top: 28px; right: 28px; width: 42px; height: 42px; display: flex; gap: 4px; align-items: flex-end; opacity: .7; }
.feature-icon span { width: 7px; background: var(--white); border-radius: 2px; animation: eq 1.3s ease-in-out infinite alternate; }
.feature-icon span:nth-child(1) { height: 18px; animation-delay: -.2s; }
.feature-icon span:nth-child(2) { height: 34px; animation-delay: -.7s; }
.feature-icon span:nth-child(3) { height: 24px; animation-delay: -.45s; }
.feature-icon i { width: 10px; height: 10px; border: 1px solid var(--white); border-radius: 50%; animation: eq 2s ease-in-out infinite alternate; }
.feature-icon i:nth-child(2) { animation-delay: -.6s; }
.feature-icon i:nth-child(3) { animation-delay: -1.2s; }
.feature-icon b { width: 8px; height: 24px; background: var(--white); border-radius: 2px; animation: eq 1.6s ease-in-out infinite alternate; }
.feature-icon b:nth-child(2) { animation-delay: -.9s; }
.feature-icon b:nth-child(3) { animation-delay: -.3s; }
.feature-icon b:nth-child(4) { animation-delay: -1.4s; }
.feature-icon em { width: 34px; height: 34px; border: 1px solid var(--white); border-radius: 50%; animation: spinSlow 8s linear infinite; position: relative; }
.feature-icon em::after { content: ''; position: absolute; inset: 8px; border: 1px solid var(--white); border-radius: 50%; }
.feature-icon svg { width: 34px; height: 34px; stroke: var(--white); stroke-width: 1.5; fill: none; }
.mini-window { width: 34px; height: 28px; border: 1px solid var(--white); border-radius: 4px; position: relative; }
.mini-window::before { content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--white); }
.mini-window::after { content: ''; position: absolute; left: 7px; top: 8px; bottom: 0; width: 1px; background: var(--white); }
@keyframes eq { to { transform: scaleY(.45); } }

/* --- visualizer section --- */
.visualizer { border-block: 1px solid var(--line); background: var(--bg-soft); overflow: hidden; }
.viz-wrap { display: grid; grid-template-columns: .95fr 1.05fr; gap: 80px; align-items: center; }
.viz-copy > p { color: var(--dim); max-width: 470px; }
.modes { margin-top: 36px; border-top: 1px solid var(--line); }
.mode { display: grid; grid-template-columns: 42px 1fr; column-gap: 16px; padding: 17px 0; border-bottom: 1px solid var(--line); transition: padding-left .3s var(--ease); }
.mode:hover { padding-left: 8px; }
.mode span { font-family: var(--mono); font-size: 11px; color: var(--dimmer); padding-top: 3px; }
.mode strong { font-size: 14px; font-weight: 500; }
.mode p { grid-column: 2; margin: 2px 0 0; font-size: 12px; color: var(--dim); }

.viz-card {
    border: 1px solid var(--line-strong); border-radius: var(--radius);
    background: linear-gradient(155deg, rgba(255,255,255,.05), rgba(255,255,255,.01));
    padding: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.55);
    animation: floatSoft 10s ease-in-out infinite;
}
.viz-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; }
.viz-status { color: var(--dim); display: flex; align-items: center; gap: 8px; }
.viz-status i { width: 5px; height: 5px; border-radius: 50%; background: var(--white); animation: dotBlink 1.4s steps(1) infinite; }
.viz-main { height: 210px; display: flex; align-items: flex-end; gap: 5px; margin: 26px 0 22px; }
.viz-main i { flex: 1; background: linear-gradient(to top, rgba(255,255,255,.07), rgba(255,255,255,.9)); border-radius: 3px 3px 0 0; height: 10%; transition: height .08s linear; }
.viz-progress { height: 3px; border-radius: 3px; background: rgba(255,255,255,.13); overflow: hidden; }
.viz-progress span { display: block; height: 100%; background: var(--white); animation: vizProgress 6s ease-in-out infinite; }
@keyframes vizProgress { 0%, 100% { width: 24%; } 50% { width: 62%; } }
.viz-times { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; color: var(--dim); margin-top: 8px; }
.viz-controls { display: flex; align-items: center; gap: 18px; margin-top: 20px; font-size: 15px; color: var(--dim); }
.viz-controls .play { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--white); color: var(--bg); font-size: 13px; animation: playPulse 3.2s ease-in-out infinite; }
.viz-meter { flex: 1; height: 3px; background: rgba(255,255,255,.13); border-radius: 3px; overflow: hidden; }
.viz-meter i { display: block; width: 64%; height: 100%; background: rgba(255,255,255,.6); animation: meterMove 5s ease-in-out infinite; }
@keyframes meterMove { 0%, 100% { width: 42%; } 50% { width: 78%; } }

/* --- config cards --- */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; }
.split-copy > p { color: var(--dim); max-width: 460px; }
.check-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 12px; }
.check-list li { font-size: 13px; color: var(--dim); display: flex; align-items: center; gap: 12px; }
.check-list li::before { content: '✓'; width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 5px; font-size: 10px; color: var(--text); }

.config-cards { display: grid; gap: 12px; max-width: 520px; margin-inline: auto; width: 100%; }
.config-card {
    display: flex; align-items: center; gap: 16px; padding: 18px 20px;
    border: 1px solid var(--line); border-radius: 13px; background: var(--surface);
    transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.config-card:hover { border-color: var(--line-strong); transform: translateX(4px); box-shadow: 0 14px 34px rgba(0,0,0,.4); }
.config-card.selected { border-color: var(--white); background: var(--surface-2); animation: selectedGlow 3.4s ease-in-out infinite; }
@keyframes selectedGlow { 50% { box-shadow: 0 0 26px rgba(255,255,255,.12); } }
.config-icon { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 9px; font-family: var(--mono); font-size: 14px; }
.config-card > div:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.config-card strong { font-size: 14px; font-weight: 500; }
.config-card span { font-size: 11px; color: var(--dim); }
.config-card button { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: transparent; cursor: pointer; transition: background .25s, color .25s, transform .25s; }
.config-card button:hover { background: var(--white); color: var(--bg); transform: scale(1.06); }

/* --- download / loading reference --- */
.download {
    position: relative; overflow: hidden; text-align: center;
    border-top: 1px solid var(--line);
    padding: 110px 0 120px;
    background: radial-gradient(800px circle at 50% 120%, rgba(255,255,255,.07), transparent 65%);
}
.download::before {
    content: ''; position: absolute; left: 50%; top: 50%; width: 760px; height: 760px;
    transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
    background: conic-gradient(from 0deg, transparent, rgba(255,255,255,.05), transparent 38%);
    animation: spinSlow 24s linear infinite;
}
.download-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.download-stage { width: 100%; display: grid; place-items: center; }

/* --- faq --- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item button {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
    padding: 24px 4px; background: transparent; border: 0; cursor: pointer;
    font-size: 15px; text-align: left; transition: color .25s;
}
.faq-item button:hover { color: var(--dim); }
.faq-item button i { font-style: normal; color: var(--dim); font-size: 20px; transition: transform .3s var(--ease), color .25s; }
.faq-item button[aria-expanded="true"] i { transform: rotate(45deg); color: var(--text); }
.faq-panel { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-panel p { margin: 0; padding: 0 4px 24px; color: var(--dim); font-size: 13px; max-width: 700px; }

/* --- footer --- */
.footer { border-top: 1px solid var(--line); padding: 34px 0; background: var(--bg-soft); }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer p { margin: 0; font-size: 12px; color: var(--dim); flex: 1; }
.footer-year { font-family: var(--mono); font-size: 11px; color: var(--dimmer); }

/* --- responsive --- */
@media (max-width: 1080px) {
    .hero { gap: 46px; padding: 64px 0 76px; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .viz-wrap, .split { grid-template-columns: 1fr; gap: 48px; }
    .viz-stage { max-width: 620px; width: 100%; }
    .stage-body { min-height: 380px; }
}

@media (max-width: 760px) {
    .container { width: min(100% - 32px, 1200px); }
    .nav {
        position: absolute; top: 76px; left: 0; right: 0; display: none;
        flex-direction: column; align-items: stretch; gap: 2px; padding: 14px 16px 20px;
        background: rgba(5,5,5,.97); border-bottom: 1px solid var(--line);
    }
    .nav.open { display: flex; }
    .nav-link { padding: 12px; }
    .nav-link.active::after { display: none; }
    .menu-toggle { display: flex; }
    .hero { padding: 48px 0 66px; }
    .hero-meta { gap: 24px; }
    .section { padding: 80px 0; }
    .feature-grid { grid-template-columns: 1fr; }
    .stage-body { min-height: 0; padding: 6px 0; }
    .mm-scale { container-type: normal; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
    .menu-mock { width: 640px; font-size: 7.8px; }
    .mm-version { display: none; }
    .viz-main { height: 160px; }
    .loading-mock { width: 100%; }
    .loading-mock--large { width: 100%; }
}

@media (max-width: 520px) {
    .hero h1 { font-size: 38px; }
    .hero-meta { flex-direction: column; gap: 16px; }
    .stage-tabs { gap: 4px; }
    .stage-tab { padding: 8px 10px; font-size: 9px; }
    .loading-mock { padding: 14px; }
    .music-mock { padding: 1em; }
    .download { padding: 80px 0 90px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    .load-curtain { animation: curtainOut .75s var(--ease) forwards !important; }
    .rise { opacity: 1; animation: none !important; }
    .reveal { opacity: 1; transform: none; filter: none; }
    .nav-link::after { transition: transform .35s var(--ease) !important; }
}
