/* ========================================
   SCORE FLIP — Cinematic Music Identity v5
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg: #08090e;
    --bg-warm: #0c0d14;
    --bg-section: #0a0b11;
    --white: #ede9e0;
    --white-soft: #c8c0b4;
    --white-dim: #7a7468;
    --gold: #c8a44e;
    --gold-bright: #e8cc72;
    --gold-deep: #9a7a30;
    --gold-glow: rgba(200, 164, 78, 0.08);
    --gold-gradient: linear-gradient(135deg, #a8882e, #e8cc72, #c8a44e);
    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease: cubic-bezier(.4, 0, .2, 1);
    --ease-out: cubic-bezier(0, 0, .15, 1);
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 60px; }

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

a { color: var(--gold); text-decoration: none; transition: color .3s; }
a:hover { color: var(--gold-bright); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* Utility */
.gold-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   NAVBAR — Compact, warm
   ======================================== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: 56px;
    display: flex;
    align-items: center;
    background: rgba(8, 9, 14, 0.75);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-bottom: 1px solid rgba(200,164,78,0.04);
    transition: border-color .5s;
}

.navbar.scrolled { border-bottom-color: rgba(200,164,78,0.08); }

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    z-index: 101;
}

.nav-brand img { width: 34px; height: 34px; border-radius: 8px; }

.nav-brand span {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gold);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 36px;
    align-items: center;
}

.nav-links a {
    color: var(--white-soft);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    transition: color .3s;
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
    color: var(--bg) !important;
    background: var(--gold) !important;
    padding: 7px 20px !important;
    border-radius: 100px;
    font-weight: 600 !important;
    transition: background .3s !important;
}
.nav-cta:hover { background: var(--gold-bright) !important; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
}
.nav-toggle span {
    width: 22px; height: 1.5px;
    background: var(--gold);
    border-radius: 1px;
    transition: all .3s var(--ease);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }

/* ========================================
   HERO — Two columns: text + video
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding: 56px 0;
    overflow: hidden;
    background: #000;
}

/* Warm ambient glow */
.hero::before {
    content: '';
    position: absolute;
    top: 40%; right: 10%;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(200,164,78,0.04) 0%, transparent 65%);
    filter: blur(60px);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    max-width: 500px;
}

.hero-text h1 {
    font-family: var(--serif);
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--gold);
    margin-bottom: 24px;
}

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--white-soft);
    font-weight: 300;
    line-height: 1.75;
    margin-bottom: 36px;
}

.hero-cta a {
    display: inline-block;
    transition: transform .35s var(--ease), filter .35s;
}
.hero-cta a:hover { transform: translateY(-2px); filter: brightness(1.15); }
.hero-cta img { height: 52px; }

/* Video side */
.hero-video {
    position: relative;
}

/* Video wrapper */
.video-wrap {
    position: relative;
    cursor: pointer;
}

.video-wrap video::-webkit-media-controls {
    opacity: 0;
    transition: opacity .3s;
}

.video-wrap:hover video::-webkit-media-controls {
    opacity: 1;
}

/* Play button overlay */
.video-play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 72px; height: 72px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .3s var(--ease), background .3s, opacity .4s;
    z-index: 3;
}

.video-play-btn svg {
    width: 28px; height: 28px;
    margin-left: 3px;
}

.video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(0, 0, 0, 0.65);
}

.video-play-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

.hero-video video {
    width: 100%;
    max-height: 70vh;
    border-radius: 16px;
    box-shadow:
        0 40px 80px rgba(0,0,0,0.6),
        0 0 60px var(--gold-glow);
    object-fit: contain;
}

/* Placeholder shown when no video src */
.hero-video-placeholder {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    background: linear-gradient(145deg, #12141c, #0a0b11);
    border: 1px solid rgba(200,164,78,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    box-shadow:
        0 40px 80px rgba(0,0,0,0.6),
        0 0 60px var(--gold-glow);
}

.hero-video-placeholder svg {
    width: 48px; height: 48px;
    stroke: var(--gold-deep);
    fill: none;
    stroke-width: 1.5;
    opacity: 0.6;
}

.hero-video-placeholder span {
    font-size: 0.75rem;
    color: var(--white-dim);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ========================================
   SECTION INTROS — Centered text blocks
   ======================================== */
.section-intro {
    padding: 180px 24px 100px;
    text-align: center;
    position: relative;
}

.section-intro::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, rgba(200,164,78,0.12));
}

.section-eyebrow {
    font-family: var(--sans);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
}

.section-heading {
    font-family: var(--serif);
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 20px;
}

.section-heading em {
    font-style: italic;
    color: var(--gold);
}

.section-body {
    font-size: 1.05rem;
    color: var(--white-dim);
    font-weight: 300;
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto;
}

/* ========================================
   STEP / FEATURE PANELS
   ======================================== */
.panel {
    padding: 0 24px;
    position: relative;
}

.panel .panel-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 72px;
    align-items: center;
    padding: 100px 0;
}

.panel:nth-child(even) .panel-inner { direction: rtl; }
.panel:nth-child(even) .panel-inner > * { direction: ltr; }

/* Subtle divider between panels */
.panel::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: min(60%, 500px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200,164,78,0.06), transparent);
}

.panel-text { max-width: 420px; }

.panel-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: 20px;
}

.panel-text h3 {
    font-family: var(--serif);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.12;
    margin-bottom: 18px;
    color: var(--white);
}

.panel-text h3 em {
    font-style: italic;
    color: var(--gold);
}

.panel-text p {
    font-size: 1rem;
    color: var(--white-dim);
    font-weight: 300;
    line-height: 1.8;
}

/* Device image */
.panel-device { position: relative; }

.panel-device img {
    cursor: zoom-in;
}

.panel-device img {
    border-radius: 16px;
    box-shadow:
        0 40px 80px rgba(0,0,0,0.55),
        0 0 0 0.5px rgba(200,164,78,0.06);
    transition: transform .8s var(--ease-out), box-shadow .8s var(--ease-out);
}

.panel-device:hover img {
    transform: translateY(-4px);
    box-shadow:
        0 48px 96px rgba(0,0,0,0.55),
        0 0 60px var(--gold-glow);
}

/* Small ambient light */
.panel-device::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 110%; height: 110%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200,164,78,0.025) 0%, transparent 60%);
    pointer-events: none;
}

/* ========================================
   FEATURES STRIP — 3 compact items
   ======================================== */
.strip {
    max-width: 1080px;
    margin: 0 auto;
    padding: 80px 24px 140px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
    position: relative;
}

.strip::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: min(60%, 500px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200,164,78,0.06), transparent);
}

.strip-item svg {
    margin: 0 auto 14px;
    display: block;
}

.strip-item h4 {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
}

.strip-item p {
    font-size: 0.85rem;
    color: var(--white-dim);
    font-weight: 300;
    line-height: 1.65;
    max-width: 260px;
    margin: 0 auto;
}

/* ========================================
   STORY / MUSICIANS
   ======================================== */
.story-section {
    padding: 200px 24px;
    text-align: center;
    position: relative;
}

.story-section::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(200,164,78,0.1));
}

/* Warm ambient glow */
.story-section::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 700px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(200,164,78,0.025) 0%, transparent 65%);
    pointer-events: none;
}

.story-inner {
    max-width: 660px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.story-inner h2 {
    font-family: var(--serif);
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.1;
    margin-bottom: 48px;
}

.story-inner h2 em {
    font-style: italic;
    color: var(--gold);
}

.story-text {
    font-size: 1.1rem;
    color: var(--white-soft);
    font-weight: 300;
    line-height: 1.9;
    margin-bottom: 20px;
}

.story-text strong {
    color: var(--white);
    font-weight: 500;
}

/* Algo display */
.algo-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 72px 0 60px;
    text-align: center;
}

.algo-item {
    padding: 36px 16px;
    border: 1px solid rgba(200,164,78,0.06);
    border-radius: 16px;
    transition: border-color .4s, transform .4s;
}

.algo-item:hover {
    border-color: rgba(200,164,78,0.14);
    transform: translateY(-3px);
}

.algo-item .algo-label {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: 10px;
}

.algo-item .algo-value {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
}

.algo-item .algo-desc {
    font-size: 0.8rem;
    color: var(--white-dim);
    font-weight: 300;
}

.privacy-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--white-dim);
    font-weight: 300;
}

.privacy-line svg {
    width: 16px; height: 16px;
    stroke: var(--gold-deep);
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

/* ========================================
   DOWNLOAD
   ======================================== */
.download-section {
    padding: 160px 24px 200px;
    text-align: center;
    position: relative;
}

.download-section::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, rgba(200,164,78,0.1));
}

.download-icon-wrap {
    display: inline-block;
    margin-bottom: 28px;
    position: relative;
}

.download-icon-wrap img {
    width: 120px; height: 120px;
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 60px var(--gold-glow);
}

.download-section h2 {
    font-family: var(--serif);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--gold);
}

.download-section .dl-sub {
    font-size: 1rem;
    color: var(--white-dim);
    font-weight: 300;
    margin-bottom: 36px;
}

.download-section .btn-dl {
    display: inline-block;
    transition: transform .3s var(--ease), filter .3s;
}
.download-section .btn-dl:hover { transform: translateY(-2px); filter: brightness(1.15); }
.download-section .btn-dl img { height: 58px; }

/* ========================================
   FOOTER
   ======================================== */
.footer {
    border-top: 1px solid rgba(200,164,78,0.04);
    padding: 28px 0;
}

.footer .container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { color: var(--white-dim); font-size: 0.78rem; transition: color .3s; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { color: var(--white-dim); font-size: 0.72rem; }
.footer-copy a { color: var(--white-dim); }
.footer-copy a:hover { color: var(--gold); }

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out);
}
.scale-in.visible { opacity: 1; transform: scale(1); }

.slide-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.slide-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.slide-left.visible, .slide-right.visible { opacity: 1; transform: translateX(0); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ========================================
   LEGAL
   ======================================== */
.legal-page { padding: 120px 24px 80px; min-height: 100vh; }
.legal-content { max-width: 680px; margin: 0 auto; }

.legal-content h1 {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 8px;
}

.legal-content .last-updated {
    color: var(--white-dim);
    font-size: 0.8rem;
    margin-bottom: 48px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(200,164,78,0.06);
}

.legal-content h2 {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    margin-top: 40px;
    margin-bottom: 12px;
}

.legal-content p { color: var(--white-soft); font-size: 0.9rem; line-height: 1.8; margin-bottom: 12px; }
.legal-content strong { color: var(--white); font-weight: 600; }
.legal-content ul { color: var(--white-soft); margin-left: 18px; margin-bottom: 12px; }
.legal-content li { margin-bottom: 4px; line-height: 1.7; font-size: 0.9rem; }
.legal-content a { color: var(--gold); }

/* ========================================
   LIGHTBOX
   ======================================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    visibility: hidden;
    transition: background .4s var(--ease), backdrop-filter .4s var(--ease), -webkit-backdrop-filter .4s var(--ease), visibility 0s .4s;
}

.lightbox.active {
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    visibility: visible;
    transition: background .4s var(--ease), backdrop-filter .4s var(--ease), -webkit-backdrop-filter .4s var(--ease), visibility 0s 0s;
}

/* Content wrapper */
.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: 100vh;
    padding: 60px 24px 24px;
    transform: scale(0.94);
    opacity: 0;
    transition: transform .4s var(--ease), opacity .4s var(--ease);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
    opacity: 1;
}

/* Main image */
.lightbox-image-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#lightboxImg {
    max-width: 80vw;
    max-height: 58vh;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    display: block;
}

/* Water reflection — simple flipped image */
.lightbox-reflection {
    display: block;
    max-width: 80vw;
    max-height: 120px;
    width: 100%;
    object-fit: cover;
    object-position: bottom;
    transform: scaleY(-1) perspective(300px) rotateX(-30deg);
    transform-origin: 30% bottom;
    margin-top: -110px;
    filter: blur(3px);
    opacity: 0.25;
    border-radius: 0 0 12px 12px;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, white 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, white 100%);
}

/* Caption */
.lightbox-caption {
    margin-top: 20px;
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 400;
    font-style: italic;
    color: var(--white-soft);
    text-align: center;
    max-width: 500px;
    line-height: 1.5;
}

/* Counter */
.lightbox-counter {
    margin-top: 8px;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--white-dim);
}

/* Close button */
.lightbox-close {
    position: absolute;
    top: 20px; right: 24px;
    z-index: 202;
    width: 44px; height: 44px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s, border-color .3s, transform .3s;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
    transform: scale(1.08);
}

.lightbox-close svg {
    width: 16px; height: 16px;
    stroke: var(--white);
    stroke-width: 2;
    fill: none;
}

/* Arrow buttons */
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 202;
    width: 52px; height: 52px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s, border-color .3s, transform .3s;
}

.lightbox-arrow:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.25);
    transform: translateY(-50%) scale(1.08);
}

.lightbox-arrow svg {
    width: 20px; height: 20px;
    stroke: var(--white);
    stroke-width: 2;
    fill: none;
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* Transition for image swap */
.lightbox-content.switching {
    opacity: 0;
    transform: scale(0.96);
    transition: opacity .2s var(--ease), transform .2s var(--ease);
}

@media (max-width: 768px) {
    .lightbox-arrow { width: 40px; height: 40px; }
    .lightbox-prev { left: 12px; }
    .lightbox-next { right: 12px; }
    .lightbox-image-wrap img { max-width: 92vw; max-height: 65vh; }
    .lightbox-caption { font-size: 0.9rem; padding: 0 20px; }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }
    .hero-text { max-width: 100%; margin: 0 auto; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-cta { display: flex; justify-content: center; }
    .hero-video { max-width: 480px; margin: 0 auto; }

    .panel .panel-inner {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 80px 0;
        text-align: center;
    }
    .panel:nth-child(even) .panel-inner { direction: ltr; }
    .panel-text { max-width: 520px; margin: 0 auto; }
    .panel-device { max-width: 480px; margin: 0 auto; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }

    .nav-links {
        display: none; position: fixed; inset: 0;
        background: rgba(8,9,14,0.97); backdrop-filter: blur(24px);
        flex-direction: column; justify-content: center; align-items: center;
        gap: 24px; z-index: 100;
    }
    .nav-links.active { display: flex; }
    .nav-links a { font-size: 1rem; }
    .nav-toggle { display: flex; }

    .hero { padding: 80px 20px 40px; }
    .hero-video { max-width: 360px; }

    .section-intro { padding: 120px 20px 60px; }
    .panel .panel-inner { padding: 60px 0; gap: 36px; }

    .strip { grid-template-columns: 1fr; gap: 32px; padding: 60px 20px 100px; }
    .algo-row { grid-template-columns: 1fr; gap: 16px; }

    .story-section { padding: 120px 20px; }
    .download-section { padding: 100px 20px 120px; }

    .footer .container { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 480px) {
    .hero-text h1 { font-size: 3rem; }
    .hero-video { max-width: 280px; }
    .download-icon-wrap img { width: 96px; height: 96px; border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    .fade-in, .scale-in, .slide-left, .slide-right { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}
