/* Soundy - single stylesheet, no build step. Based on the original Next.js design. */

:root {
    --bg-main: #050505;
    --bg-secondary: #0a0a0f;
    --accent: #6c5dd3;
    --accent-hover: #5a4cb4;
    --accent-glow: #6c5dd380;
    --text-primary: #ffffff;
    --text-secondary: #808191;
    --card-bg: #111116;
    --border: #1f1f27;
    --discord: #5865f2;
    --green: #4ade80;
    --blue: #60a5fa;
    --orange: #fb923c;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color-scheme: dark;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

main { flex: 1; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 5%; }
.container-narrow { max-width: 960px; }

.dot, .highlight { color: var(--accent); }

.gradient-text {
    background: linear-gradient(90deg, #fff, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Grid overlay background */
.overlay-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, #000 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, #000 40%, transparent 100%);
}

/* ---------- Buttons ---------- */

.btn-main, .btn-outline, .btn-discord {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s, border-color 0.3s;
}
.btn-main { background: var(--accent); padding: 1rem 2rem; border-radius: 16px; }
.btn-main:hover { transform: translateY(-2px); box-shadow: 0 10px 30px var(--accent-glow); }
.btn-outline { border: 1px solid var(--border); padding: 1rem 2rem; border-radius: 16px; font-weight: 600; }
.btn-outline:hover { border-color: var(--text-primary); }
.btn-discord { background: var(--discord); padding: 0.6rem 1.25rem; border-radius: 12px; }
.btn-discord i { font-size: 1.25rem; }
.btn-discord:hover { background: #4752c4; transform: translateY(-2px); }

/* ---------- Navbar (floating pill) ---------- */

.nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    padding: 14px 5%;
}

.nav-inner {
    max-width: 1200px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 10px 10px 10px 22px;
    border-radius: 18px;
    border: 1px solid transparent;
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.nav.is-scrolled .nav-inner,
.nav.is-open .nav-inner {
    background: rgba(12, 11, 20, 0.75);
    border-color: var(--border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 12px 40px -18px rgba(0, 0, 0, 0.8);
}

.logo { font-size: 1.45rem; font-weight: 900; letter-spacing: 0.12em; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a:not(.btn) { color: var(--text-secondary); font-weight: 500; transition: color 0.2s; }
.nav-links a:not(.btn):hover, .nav-links a.active { color: var(--text-primary); }
.nav-mobile-cta { display: none; }

.nav-actions { display: flex; align-items: center; gap: 0.6rem; }

.lang-switch { display: block; padding: 4px; line-height: 0; transition: transform 0.2s, opacity 0.2s; }
.lang-switch svg { width: 30px; height: 20px; border-radius: 4px; display: block; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); }
.lang-switch:hover { transform: translateY(-1px) scale(1.08); }
.lang-switch:disabled { opacity: 0.5; cursor: progress; }

.nav-toggle { display: none; place-items: center; width: 42px; height: 42px; border-radius: 12px; font-size: 1.5rem; }

/* ---------- Hero ---------- */

.hero { min-height: 100vh; padding-top: 100px; display: flex; align-items: center; justify-content: center; }

.hero-container { width: 100%; max-width: 1200px; padding: 0 5%; display: flex; align-items: center; gap: 4rem; }
.hero-left { flex: 1; }


.hero h1 { font-size: 4rem; line-height: 1.1; font-weight: 800; margin-bottom: 1.5rem; }
.hero-desc { color: var(--text-secondary); font-size: 1.1rem; line-height: 1.6; max-width: 90%; margin-bottom: 2.5rem; }
.cta-group { display: flex; gap: 1rem; margin-bottom: 4rem; }

.stats-bar { display: flex; gap: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.stat-num { display: block; font-size: 1.8rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 0.9rem; color: var(--text-secondary); }


.hero-visual { flex: 1; position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 540px; width: 100%; }

.vinyl {
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    background:
        radial-gradient(circle, var(--bg-main) 0 9%, var(--accent) 9.5% 15%, transparent 15.5%),
        repeating-radial-gradient(circle, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 7px),
        conic-gradient(from 30deg, rgba(209, 123, 255, 0.18), transparent 25%, rgba(94, 230, 208, 0.12) 50%, transparent 75%, rgba(209, 123, 255, 0.18)),
        radial-gradient(circle, #1b1736 0%, #0c0a1a 70%);
    box-shadow: 0 0 120px -20px rgba(108, 93, 211, 0.7), inset 0 0 0 1px rgba(108, 93, 211, 0.35);
    animation: spin 18s linear infinite;
    animation-play-state: paused;
}
.is-playing .vinyl { animation-play-state: running; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-mascot {
    position: relative;
    width: 92%;
    filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.6));
    animation: float 6s ease-in-out infinite;
    transition: translate 0.4s var(--ease);
}
@keyframes float { 50% { transform: translateY(-16px); } }

.glass {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.now-playing {
    position: absolute;
    left: -4%;
    bottom: 10%;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.8rem 1.1rem 0.8rem 0.8rem;
    border-radius: 18px;
    min-width: 230px;
    text-align: left;
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.9);
    transition: translate 0.4s var(--ease);
}
.np-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), #d17bff);
    font-size: 1.2rem;
}
.np-text { display: flex; flex-direction: column; flex: 1; line-height: 1.25; min-width: 0; }
.np-text span { font-size: 0.75rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.08em; }
.np-text strong { font-size: 0.98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.eq { display: flex; align-items: flex-end; gap: 3px; height: 20px; }
.eq i { width: 4px; height: 4px; border-radius: 2px; background: #5ee6d0; animation: eq 0.9s ease-in-out infinite; animation-play-state: paused; }
.eq i:nth-child(2) { animation-delay: -0.3s; }
.eq i:nth-child(3) { animation-delay: -0.6s; }
.eq i:nth-child(4) { animation-delay: -0.15s; }
.is-playing .eq i { animation-play-state: running; }
@keyframes eq { 50% { height: 20px; } }

/* ---------- Features ---------- */

.section-feature-split { padding: 6rem 0; }
.split-container { max-width: 1200px; margin: 0 auto; padding: 0 5%; display: flex; align-items: center; gap: 4rem; }
.split-container.reverse { flex-direction: row-reverse; }
.text-side { flex: 1; }
.image-side { flex: 1; display: flex; justify-content: center; align-items: center; }

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(108, 93, 211, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 2rem;
}
.section-feature-split h2 { font-size: 3rem; line-height: 1.1; margin-bottom: 1.5rem; }
.section-feature-split p { font-size: 1.1rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 2rem; }
.feature-checklist li { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; font-weight: 500; }
.feature-checklist i { color: var(--accent); font-size: 1.2rem; }

.mascot-feature { width: 100%; max-width: 450px; filter: drop-shadow(0 0 30px rgba(108, 93, 211, 0.2)); transition: transform 0.4s ease; }
.mascot-feature:hover { transform: scale(1.03); }

/* ---------- Servers marquee ---------- */

.section-servers { padding: 6rem 0; overflow: hidden; background: linear-gradient(180deg, transparent 0%, rgba(108, 93, 211, 0.05) 100%); }

.section-header-center { text-align: center; padding: 0 5%; margin-bottom: 3rem; }
.section-header-center h2 { font-size: 3rem; line-height: 1.1; margin-bottom: 1rem; }
.section-header-center p { font-size: 1.1rem; color: var(--text-secondary); }

.marquee {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-row { display: flex; width: max-content; }
.marquee-row:hover .marquee-track { animation-play-state: paused; }
.marquee-track { display: flex; gap: 1.5rem; padding-right: 1.5rem; animation: marquee 80s linear infinite; }
.marquee-reverse .marquee-track { animation-direction: reverse; }
@keyframes marquee { to { transform: translateX(-100%); } }

.server-card-mini {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 250px;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    background: rgba(22, 22, 28, 0.9);
    border: 1px solid var(--border);
}
.server-card-mini img { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.mini-info { display: flex; flex-direction: column; min-width: 0; }
.mini-info strong { max-width: 140px; font-size: 0.95rem; margin-bottom: 0.2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-info span { font-size: 0.8rem; color: var(--text-secondary); }

/* ---------- Secondary pages ---------- */

.page { padding-top: 150px; padding-bottom: 100px; }
.page-head { text-align: center; margin-bottom: 4rem; }
.page-head h1 { font-size: clamp(2.6rem, 6vw, 3.75rem); font-weight: 900; line-height: 1.1; margin-bottom: 1.5rem; }
.page-head p { font-size: 1.25rem; color: #9ca3af; max-width: 42rem; margin-inline: auto; }

.doc { display: grid; gap: 2rem; }
.doc-card { padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 24px; background: var(--card-bg); border: 1px solid var(--border); transition: border-color 0.3s; }
.doc-card:hover { border-color: rgba(108, 93, 211, 0.5); }
.doc-card h2 { display: flex; align-items: center; gap: 1.5rem; font-size: clamp(1.4rem, 3vw, 1.875rem); margin-bottom: 1.5rem; }
.doc-num {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(108, 93, 211, 0.2);
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 900;
}
.doc-card p { color: #9ca3af; font-size: 1.1rem; line-height: 2; padding-left: 0.5rem; }
.doc-card p + p { margin-top: 1rem; }

.doc-list { display: grid; gap: 1rem; margin-top: 1.5rem; }
.doc-list li { display: flex; align-items: center; gap: 1.25rem; padding: 1.5rem; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.05); color: #d1d5db; font-size: 1.1rem; transition: background 0.2s; }
.doc-list li:hover { background: rgba(255, 255, 255, 0.1); }
.doc-list i { color: var(--accent); font-size: 1.5rem; }

.doc-tables { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.doc-table { padding: 2rem; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.05); transition: background 0.2s; }
.doc-table:hover { background: rgba(255, 255, 255, 0.08); }
.doc-table h3 { display: flex; align-items: center; gap: 0.75rem; font-size: 1.25rem; margin-bottom: 1.25rem; }
.doc-table h3 i { color: var(--accent); }
.doc-table dl > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); font-size: 1.05rem; }
.doc-table dl > div:last-child { border-bottom: 0; }
.doc-table dd { color: #9ca3af; text-align: right; overflow-wrap: anywhere; }
.doc-table a { color: var(--accent); }
.doc-table a:hover { text-decoration: underline; }

.timeline { position: relative; display: grid; gap: 3rem; padding-left: 3.5rem; }
.timeline::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(transparent, rgba(108, 93, 211, 0.5), transparent);
}
.release { position: relative; }
.release-dot {
    position: absolute;
    left: -3.5rem;
    top: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1f1f27;
    border: 4px solid var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}
.release-dot::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #fff; opacity: 0.5; transition: opacity 0.3s; }
.release:hover .release-dot { background: var(--accent); }
.release:hover .release-dot::after { opacity: 1; }
.release-card { padding: clamp(1.5rem, 4vw, 2rem); border-radius: 24px; background: var(--card-bg); border: 1px solid var(--border); transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s; }
.release-card:hover { transform: translateY(-4px); border-color: rgba(108, 93, 211, 0.5); box-shadow: 0 10px 30px -10px rgba(108, 93, 211, 0.2); }
.release-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.tag { padding: 0.25rem 0.75rem; border-radius: 999px; background: rgba(108, 93, 211, 0.1); border: 1px solid rgba(108, 93, 211, 0.2); color: var(--accent); font-size: 0.875rem; font-weight: 700; }
.release-meta time { display: inline-flex; align-items: center; gap: 0.5rem; color: #6b7280; font-size: 0.875rem; font-weight: 500; }
.release-card h2 { font-size: 1.25rem; margin-bottom: 1.5rem; }
.changes { display: grid; gap: 0.75rem; }
.changes li { display: flex; align-items: baseline; gap: 0.75rem; color: #d1d5db; line-height: 1.6; }
.change-type { flex-shrink: 0; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.change-type::before { content: '['; }
.change-type::after { content: ']'; }
.change-new { color: var(--green); }
.change-improvement { color: var(--blue); }
.change-fix { color: var(--orange); }

.not-found { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1.25rem; min-height: 80vh; }
.not-found img { width: 256px; }
.not-found h1 { font-size: 3.75rem; font-weight: 900; }
.not-found p { font-size: 1.25rem; color: var(--text-secondary); max-width: 28rem; margin-bottom: 1rem; }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--border); padding: 4rem 0 2rem; background: #08080c; }
.footer-content { max-width: 1200px; margin: 0 auto; padding: 0 5%; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 2rem; }
.footer-brand h3 { font-size: 1.5rem; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.footer-brand p { max-width: 300px; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.5; }
.footer-links-group { display: flex; gap: 3rem; }
.link-col { display: flex; flex-direction: column; gap: 0.8rem; }
.link-col h4 { font-size: 1rem; margin-bottom: 0.5rem; }
.link-col a { color: var(--text-secondary); font-size: 0.9rem; transition: color 0.2s; }
.link-col a:hover { color: var(--accent); }
.copyright { max-width: 1200px; margin: 3rem auto 0; padding: 2rem 5% 0; border-top: 1px solid rgba(255, 255, 255, 0.05); text-align: center; color: var(--text-secondary); font-size: 0.85rem; }
.has-player .footer { padding-bottom: 8rem; }

/* ---------- Music player ---------- */

.player {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    width: min(460px, calc(100vw - 32px));
    padding: 0.6rem 0.6rem 0.6rem 1.1rem;
    border-radius: 999px;
    background: rgba(12, 11, 20, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(108, 93, 211, 0.12);
}
.player-text { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
.player-text strong { font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-text span { font-size: 0.78rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eq-sm { height: 16px; }
.eq-sm i { width: 3px; }
.player-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-size: 1.25rem; color: var(--text-secondary); transition: color 0.2s, background 0.2s, transform 0.2s; flex-shrink: 0; }
.player-btn:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.06); }
.player-main { width: 46px; height: 46px; background: linear-gradient(135deg, var(--accent), var(--accent-hover)); color: #fff; font-size: 1.4rem; }
.player-main:hover { background: linear-gradient(135deg, var(--accent), var(--accent-hover)); transform: scale(1.06); }

.player-volume { display: flex; align-items: center; gap: 0.15rem; padding-right: 0.6rem; }
.player-volume .player-btn { width: 32px; height: 32px; font-size: 1.1rem; }
.player-volume input {
    --fill: 20%;
    width: 72px;
    height: 4px;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent) var(--fill), rgba(255, 255, 255, 0.15) var(--fill));
    cursor: pointer;
}
.player-volume input::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(108, 93, 211, 0.35); }
.player-volume input::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(108, 93, 211, 0.35); }

/* ---------- Splash (squares drawn on a canvas by app.js) ---------- */

.splash { position: fixed; inset: 0; z-index: 1000; background: #000; transition: background 0.5s; }
.splash.is-exiting { background: transparent; pointer-events: none; }
.splash-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.splash-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    transition: opacity 0.3s, transform 0.3s;
}
.is-exiting .splash-center { opacity: 0; transform: scale(0.8); }

.splash-btn {
    position: relative;
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 2.5rem;
    color: #fff;
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.splash-btn i { padding-left: 6px; }
.splash-btn:hover { background: var(--accent); border-color: var(--accent); transform: scale(1.1); }
.splash-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); animation: ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(1.8); opacity: 0; } }
.splash-label { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.2em; color: rgba(255, 255, 255, 0.5); transition: color 0.3s; }
.splash-center:has(.splash-btn:hover) .splash-label { color: #fff; }

/* ---------- Reveal on scroll ---------- */

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease) var(--rd, 0s), transform 0.9s var(--ease) var(--rd, 0s); }
.js .reveal-left { transform: translateX(-48px); }
.js .reveal-right { transform: translateX(48px); }
.js .reveal-zoom { transform: scale(0.9); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
    .nav-toggle { display: grid; }
    .nav-cta { display: none; }

    .nav-links {
        position: absolute;
        top: calc(100% - 4px);
        left: 5%;
        right: 5%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        padding: 0.75rem;
        border-radius: 18px;
        background: rgba(12, 11, 20, 0.96);
        border: 1px solid var(--border);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
    }
    .nav.is-open .nav-links { opacity: 1; visibility: visible; transform: none; }
    .nav-links a:not(.btn) { padding: 0.85rem 1rem; border-radius: 12px; font-size: 1.1rem; }
    .nav-links a:not(.btn):hover { background: rgba(255, 255, 255, 0.04); }
    .nav-mobile-cta { display: flex; margin-top: 0.5rem; padding-block: 0.9rem; }
}

@media (max-width: 968px) {
    .hero { min-height: auto; padding-top: 140px; padding-bottom: 4rem; }
    .hero-container { flex-direction: column; gap: 3rem; text-align: center; }
    .hero h1 { font-size: 2.8rem; }
    .hero-desc { margin: 0 auto 2rem; }
    .cta-group { justify-content: center; }
    .hero-visual { max-width: 420px; }
    .stats-bar { justify-content: center; flex-wrap: wrap; gap: 2rem; }

    .section-feature-split { padding: 4rem 0; }
    .split-container, .split-container.reverse { flex-direction: column; gap: 3rem; text-align: center; }
    .feature-icon { margin: 0 auto 1.5rem; }
    .feature-checklist { display: inline-block; text-align: left; }

    .footer-content { flex-direction: column; align-items: center; text-align: center; gap: 3rem; }
    .footer-brand p { margin: 0 auto; }
    .footer-links-group { width: 100%; justify-content: space-around; flex-wrap: wrap; gap: 2rem; }
}

@media (max-width: 760px) {
    .now-playing { left: 50%; bottom: 0; translate: -50% 0; }
    .player { left: 16px; right: 16px; bottom: 16px; width: auto; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem; }
    .cta-group { flex-direction: column; width: 100%; }
    .btn-main, .btn-outline { width: 100%; }
    .stats-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .stat-num { font-size: 1.5rem; }
    .section-feature-split h2, .section-header-center h2 { font-size: 2rem; }
    .doc-card h2 { gap: 1rem; }
    .doc-num { width: 48px; height: 48px; font-size: 1.2rem; }
    .doc-table dl > div { flex-direction: column; gap: 0.1rem; }
    .doc-table dd { text-align: left; }
    .timeline { padding-left: 2.75rem; }
    .release-dot { left: -2.75rem; width: 32px; height: 32px; }
    .timeline::before { left: 15px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
    .marquee-track { animation: none; }
    .marquee-row { width: auto; overflow-x: auto; }
    .js .reveal { opacity: 1; transform: none; }
}
