/* ═══════════════════════════════════════════════════
   AutoCuts Landing Page :: Styles
   ═══════════════════════════════════════════════════ */

:root {
    --surface-0: #000000;
    --surface-1: #090909;
    --surface-2: #111111;
    --surface-3: #171717;
    --surface-4: #1f1f1f;
    --border-soft: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text-primary: #f8fafc;
    --text-soft: rgba(255, 255, 255, 0.86);
    --text-muted: rgba(255, 255, 255, 0.62);
    --text-dim: rgba(255, 255, 255, 0.42);
    --brand-keep: #4ade80;
    --brand-cut: #f87171;
    --brand-warn: #fbbf24;
    --brand-anim: #a78bfa;
    --nav-height: 4.75rem;
    --container-width: 1280px;
    --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.38);
    --shadow-panel: 0 32px 120px rgba(0, 0, 0, 0.56);
    --story-progress: 0;
}

@supports (height: 100svh) {
    :root {
        --screen-height: 100svh;
    }
}

@supports not (height: 100svh) {
    :root {
        --screen-height: 100vh;
    }
}

/* ─── Reset & base ─── */

html {
    scroll-padding-top: calc(var(--nav-height) + 1rem);
}

body {
    min-height: 100vh;
    background: var(--surface-0);
    color: var(--text-primary);
    font-family: "Manrope", system-ui, -apple-system, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.font-display {
    font-family: "Sora", "Manrope", system-ui, sans-serif;
}

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

/* ─── Page noise background ─── */

.page-noise {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.88;
    background:
        radial-gradient(ellipse 60% 50% at 15% 20%, rgba(74, 222, 128, 0.14), transparent 50%),
        radial-gradient(ellipse 50% 45% at 85% 18%, rgba(167, 139, 250, 0.12), transparent 45%),
        radial-gradient(ellipse 55% 40% at 50% 85%, rgba(248, 113, 113, 0.07), transparent 50%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 30%),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.01) 0 1px, transparent 1px 3px);
    mix-blend-mode: screen;
}

/* ─── Navigation ─── */

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    padding: 1rem clamp(1rem, 3vw, 2rem) 0;
}

.site-nav__inner {
    width: min(100%, var(--container-width));
    min-height: var(--nav-height);
    margin: 0 auto;
    padding: 0.75rem 1rem 0.75rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background: rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.site-nav.is-scrolled .site-nav__inner {
    background: rgba(0, 0, 0, 0.82);
    border-color: rgba(255, 255, 255, 0.13);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
    transform: translateY(2px);
}

/* Brand lockup */

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.brand-lockup--footer {
    align-self: center;
}

.brand-logo {
    width: 2.6rem;
    height: 2.6rem;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 0.95rem;
    filter: drop-shadow(0 10px 24px rgba(74, 222, 128, 0.14));
}

.brand-wordmark {
    font-family: "Manrope", system-ui, -apple-system, sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.015em;
    white-space: nowrap;
}

/* Nav CTA */

.site-nav__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.85rem;
    padding: 0 1.3rem;
    border-radius: 999px;
    background: #ffffff;
    color: #020617;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    box-shadow: 0 10px 26px rgba(255, 255, 255, 0.12);
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
    cursor: pointer;
}

.site-nav__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(255, 255, 255, 0.18);
}

/* ─── Story scroll system ─── */

.story-scroll {
    position: relative;
    min-height: var(--screen-height);
}

body.story-ready .story-scroll {
    height: calc(var(--scene-count) * var(--screen-height));
}

.story-anchor {
    display: none;
}

body.story-ready .story-anchor {
    position: absolute;
    display: block;
    top: calc(var(--scene-index) * var(--screen-height));
    left: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.story-viewport {
    position: relative;
    min-height: var(--screen-height);
    overflow: hidden;
    overflow: clip;
    isolation: isolate;
}

body.story-ready .story-viewport {
    position: sticky;
    top: 0;
    height: var(--screen-height);
}

/* Atmosphere orbs */

.story-atmosphere {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.story-atmosphere__orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(10px);
}

.story-atmosphere__orb--keep {
    width: min(48rem, 50vw);
    aspect-ratio: 1;
    top: 10vh;
    left: -12vw;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.22) 0%, rgba(74, 222, 128, 0.1) 32%, transparent 70%);
    transform: translate3d(calc(var(--story-progress) * 18vw), calc(var(--story-progress) * -8vh), 0) scale(calc(1 + var(--story-progress) * 0.12));
}

.story-atmosphere__orb--anim {
    width: min(42rem, 46vw);
    aspect-ratio: 1;
    top: 12vh;
    right: -12vw;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.18) 0%, rgba(167, 139, 250, 0.08) 38%, transparent 72%);
    transform: translate3d(calc(var(--story-progress) * -14vw), calc(var(--story-progress) * 8vh), 0) scale(calc(1.04 - var(--story-progress) * 0.08));
}

.story-atmosphere__orb--cut {
    width: min(32rem, 36vw);
    aspect-ratio: 1;
    bottom: -12vh;
    left: 34vw;
    background: radial-gradient(circle, rgba(248, 113, 113, 0.12) 0%, rgba(248, 113, 113, 0.06) 36%, transparent 74%);
    transform: translate3d(calc(var(--story-progress) * -6vw), calc(var(--story-progress) * -10vh), 0);
}

.story-atmosphere__grid {
    position: absolute;
    inset: -10%;
    opacity: 0.1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 100px 100px;
    mask-image: radial-gradient(circle at center, black 12%, transparent 72%);
    transform: translateY(calc(var(--story-progress) * -4%));
}

/* ─── Scene layout ─── */

.story-scene {
    position: relative;
    min-height: var(--screen-height);
    display: flex;
    align-items: center;
    padding: clamp(6rem, 10vh, 7rem) clamp(1rem, 4vw, 2.5rem) clamp(1.5rem, 3vh, 2rem);
}

.story-scene + .story-scene {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

body.story-ready .story-scene {
    position: absolute;
    inset: 0;
    min-height: 0;
    border-top: none;
    align-items: stretch;
    opacity: 0;
    filter: blur(6px);
    transform: translate3d(0, 40px, 0) scale(0.97);
    visibility: hidden;
    pointer-events: none;
    will-change: opacity, transform, filter;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

body.story-ready .story-scene.is-active {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
}

.scene-shell {
    position: relative;
    z-index: 2;
    width: min(100%, var(--container-width));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
    gap: clamp(1rem, 4vw, 4rem);
    align-items: center;
}

body.story-ready .scene-shell {
    min-height: 0;
    box-sizing: border-box;
    align-content: center;
}

body.story-ready .scene-copy,
body.story-ready .scene-visual {
    will-change: opacity, transform;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

body.story-ready .scene-copy {
    transition-delay: 0.15s;
}

body.story-ready .is-active .scene-copy,
body.story-ready .is-active .scene-visual {
    opacity: 1;
    transform: translateY(0);
}

.scene-visual {
    display: flex;
    justify-content: center;
}

body.story-ready .scene-visual {
    transition-delay: 0.3s;
}

.scene-shell--full {
    grid-template-columns: 1fr;
    justify-items: center;
}

.scene-visual--full {
    width: 100%;
    max-width: min(100%, var(--container-width));
    justify-content: stretch;
}

.scene-visual--full .compare-panel {
    width: 100%;
    max-width: 100%;
}

.story-scene--cta .scene-visual {
    flex-direction: column;
    gap: 0.75rem;
}

/* ─── Scene copy ─── */

.scene-copy {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 38rem;
}

.scene-eyebrow {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brand-keep);
    opacity: 0.9;
}

.scene-title {
    margin: 0;
    max-width: 11ch;
    font-size: clamp(2.75rem, 7vw, 6.4rem);
    line-height: 0.96;
    letter-spacing: -0.07em;
    text-wrap: balance;
}

.story-scene--hero .scene-title {
    font-size: clamp(2rem, 5vw, 4.2rem);
    max-width: 20ch;
    line-height: 1.05;
    letter-spacing: -0.035em;
    font-weight: 700;
}

/* Hero title stagger animation */

.hero-title-stagger {
    display: flex;
    flex-direction: column;
    gap: 0.12em;
}

.hero-word {
    display: block;
}

.hero-word .ch {
    display: inline-block;
    opacity: 0.15;
    color: rgba(255, 255, 255, 0.15);
    animation: charActivate 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Word-level glow */
.hero-word--1 { animation: heroGlowGreen 1.2s ease-out 0.3s forwards; }
.hero-word--2 { animation: heroGlowPurple 1.2s ease-out 3.3s forwards; }
.hero-word--3 { animation: heroGlowWhite 1.2s ease-out 6.3s forwards; }

/* Final sweep :: fast flash across all chars after Done completes (~7.2s) */
.hero-word--1 .ch:nth-child(1) { animation: charActivate 0.4s cubic-bezier(0.16,1,0.3,1) 0.30s forwards, charFlash 0.15s ease-out 7.20s forwards; }
.hero-word--1 .ch:nth-child(2) { animation: charActivate 0.4s cubic-bezier(0.16,1,0.3,1) 0.36s forwards, charFlash 0.15s ease-out 7.23s forwards; }
.hero-word--1 .ch:nth-child(3) { animation: charActivate 0.4s cubic-bezier(0.16,1,0.3,1) 0.42s forwards, charFlash 0.15s ease-out 7.26s forwards; }
.hero-word--1 .ch:nth-child(4) { animation: charActivate 0.4s cubic-bezier(0.16,1,0.3,1) 0.48s forwards, charFlash 0.15s ease-out 7.29s forwards; }
.hero-word--1 .ch:nth-child(5) { animation: charActivate 0.4s cubic-bezier(0.16,1,0.3,1) 0.54s forwards, charFlash 0.15s ease-out 7.32s forwards; }
.hero-word--1 .ch:nth-child(6) { animation: charActivate 0.4s cubic-bezier(0.16,1,0.3,1) 0.60s forwards, charFlash 0.15s ease-out 7.35s forwards; }
.hero-word--1 .ch:nth-child(7) { animation: charActivate 0.4s cubic-bezier(0.16,1,0.3,1) 0.66s forwards, charFlash 0.15s ease-out 7.38s forwards; }

.hero-word--2 .ch:nth-child(1) { animation: charActivate 0.4s cubic-bezier(0.16,1,0.3,1) 3.30s forwards, charFlash 0.15s ease-out 7.41s forwards; }
.hero-word--2 .ch:nth-child(2) { animation: charActivate 0.4s cubic-bezier(0.16,1,0.3,1) 3.36s forwards, charFlash 0.15s ease-out 7.44s forwards; }
.hero-word--2 .ch:nth-child(3) { animation: charActivate 0.4s cubic-bezier(0.16,1,0.3,1) 3.42s forwards, charFlash 0.15s ease-out 7.47s forwards; }
.hero-word--2 .ch:nth-child(4) { animation: charActivate 0.4s cubic-bezier(0.16,1,0.3,1) 3.48s forwards, charFlash 0.15s ease-out 7.50s forwards; }
.hero-word--2 .ch:nth-child(5) { animation: charActivate 0.4s cubic-bezier(0.16,1,0.3,1) 3.54s forwards, charFlash 0.15s ease-out 7.53s forwards; }
.hero-word--2 .ch:nth-child(6) { animation: charActivate 0.4s cubic-bezier(0.16,1,0.3,1) 3.60s forwards, charFlash 0.15s ease-out 7.56s forwards; }
.hero-word--2 .ch:nth-child(7) { animation: charActivate 0.4s cubic-bezier(0.16,1,0.3,1) 3.66s forwards, charFlash 0.15s ease-out 7.59s forwards; }

.hero-word--3 .ch:nth-child(1) { animation: charActivate 0.4s cubic-bezier(0.16,1,0.3,1) 6.30s forwards, charFlash 0.15s ease-out 7.62s forwards; }
.hero-word--3 .ch:nth-child(2) { animation: charActivate 0.4s cubic-bezier(0.16,1,0.3,1) 6.36s forwards, charFlash 0.15s ease-out 7.65s forwards; }
.hero-word--3 .ch:nth-child(3) { animation: charActivate 0.4s cubic-bezier(0.16,1,0.3,1) 6.42s forwards, charFlash 0.15s ease-out 7.68s forwards; }
.hero-word--3 .ch:nth-child(4) { animation: charActivate 0.4s cubic-bezier(0.16,1,0.3,1) 6.48s forwards, charFlash 0.15s ease-out 7.71s forwards; }
.hero-word--3 .ch:nth-child(5) { animation: charActivate 0.4s cubic-bezier(0.16,1,0.3,1) 6.54s forwards, charFlash 0.15s ease-out 7.74s forwards; }

@keyframes charFlash {
    0% {
        color: #ffffff;
        text-shadow: 0 0 0 transparent;
    }
    50% {
        color: #ffffff;
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.9), 0 0 40px rgba(255, 255, 255, 0.4);
    }
    100% {
        color: #ffffff;
        text-shadow: 0 0 0 transparent;
    }
}

@keyframes charActivate {
    0% {
        opacity: 0.15;
        color: rgba(255, 255, 255, 0.15);
        transform: translateY(0.08em);
    }
    60% {
        opacity: 1;
        color: #ffffff;
        transform: translateY(-0.02em);
    }
    100% {
        opacity: 1;
        color: #ffffff;
        transform: translateY(0);
    }
}

@keyframes heroGlowGreen {
    0%   { text-shadow: 0 0 0 transparent; }
    25%  { text-shadow: 0 0 40px rgba(74, 222, 128, 0.8), 0 0 80px rgba(74, 222, 128, 0.4), 0 0 120px rgba(74, 222, 128, 0.15); }
    100% { text-shadow: 0 0 0 transparent; }
}

@keyframes heroGlowPurple {
    0%   { text-shadow: 0 0 0 transparent; }
    25%  { text-shadow: 0 0 40px rgba(167, 139, 250, 0.8), 0 0 80px rgba(167, 139, 250, 0.4), 0 0 120px rgba(167, 139, 250, 0.15); }
    100% { text-shadow: 0 0 0 transparent; }
}

@keyframes heroGlowWhite {
    0%   { text-shadow: 0 0 0 transparent; }
    25%  { text-shadow: 0 0 50px rgba(255, 255, 255, 0.9), 0 0 100px rgba(255, 255, 255, 0.45), 0 0 140px rgba(255, 255, 255, 0.15); }
    100% { text-shadow: 0 0 0 transparent; }
}

.story-scene--pain .scene-title,
.story-scene--engine .scene-title,
.story-scene--workflow .scene-title,
.story-scene--audience .scene-title,
.story-scene--cta .scene-title {
    font-size: clamp(2rem, 4.5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.story-scene--cta .scene-title {
    max-width: 16ch;
}

.scene-description {
    margin: 0;
    max-width: 40rem;
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    line-height: 1.65;
    color: var(--text-muted);
    text-wrap: pretty;
}

/* Scene subtitle (used in pain/engine scenes) */

.scene-subtitle {
    margin: 0.25rem auto 0;
    max-width: 42rem;
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    line-height: 1.6;
    color: var(--text-muted);
    text-align: center;
    text-wrap: pretty;
}

/* Pain / engine / CTA scene titles */

.pain-scene__title {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

/* Stagger children inside active full-width scenes */
body.story-ready .story-scene .pain-scene__title,
body.story-ready .story-scene .cta-scene__title {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.1s;
}

body.story-ready .story-scene.is-active .pain-scene__title,
body.story-ready .story-scene.is-active .cta-scene__title {
    opacity: 1;
    transform: translateY(0);
}

.pain-scene__title .scene-title {
    font-size: clamp(1.8rem, 4.2vw, 3.8rem);
    line-height: 1.1;
    letter-spacing: -0.05em;
    max-width: none;
    white-space: pre-line;
}

.cta-scene__title {
    width: 100%;
    text-align: center;
    margin-bottom: 1.5rem;
}

.cta-scene__title .scene-eyebrow {
    display: block;
    text-align: center;
    margin-bottom: 0.6rem;
}

.cta-scene__title .scene-title {
    font-size: clamp(1.8rem, 4.2vw, 3.8rem);
    line-height: 1.1;
    letter-spacing: -0.05em;
    max-width: none;
    text-align: center;
}

/* ─── Buttons ─── */

.scene-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 3.25rem;
    padding: 0 1.4rem;
    border-radius: 999px;
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.primary-button {
    position: relative;
    background: #ffffff;
    color: #050505;
    box-shadow: 0 14px 34px rgba(255, 255, 255, 0.12);
}

.primary-button:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 22px 42px rgba(255, 255, 255, 0.18);
}

.secondary-button {
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    backdrop-filter: blur(16px);
}

.secondary-button:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.07);
}

.secondary-button i {
    width: 1rem;
    height: 1rem;
}

/* ─── Tags ─── */

.scene-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.scene-tag {
    display: inline-flex;
    align-items: center;
    min-height: 2.35rem;
    padding: 0 0.95rem;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-soft);
    font-size: 0.88rem;
}

/* ─── Panels ─── */

.panel {
    position: relative;
    width: min(100%, 40rem);
    padding: 1.35rem;
    border-radius: 2rem;
    border: 1px solid var(--border-soft);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    box-shadow: var(--shadow-panel);
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
    overflow: hidden;
}

.panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
}

.panel-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.9rem;
    padding: 0 0.75rem;
    margin-bottom: 0;
    border-radius: 999px;
    border: 1px solid rgba(45, 212, 160, 0.22);
    background: rgba(45, 212, 160, 0.08);
    color: #6ee7c7;
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
}

.panel-label {
    margin: 0 0 0.45rem;
    font-size: 0.72rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.panel h3 {
    margin: 0;
    font-family: "Sora", "Manrope", system-ui, sans-serif;
    font-size: clamp(1.3rem, 2.2vw, 2rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

/* ─── Hero staged states ─── */

.hero-stages {
    position: relative;
    overflow: hidden;
}

.hero-state {
    position: absolute;
    inset: 0;
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    opacity: 0;
    filter: blur(6px);
    transform: scale(0.98);
    pointer-events: none;
}

/* Record: in at 0.3s, hold 2s, out at 2.8s */
.hero-state--record {
    animation: heroStateIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards,
               heroStateOut 0.5s cubic-bezier(0.4, 0, 1, 1) 2.8s forwards;
}

/* Upload: in at 3.3s, hold 2s, out at 5.8s */
.hero-state--upload {
    animation: heroStateIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 3.3s forwards,
               heroStateOut 0.5s cubic-bezier(0.4, 0, 1, 1) 5.8s forwards;
}

/* Done: in at 6.3s, stays */
.hero-state--done {
    position: relative;
    opacity: 0;
    filter: blur(6px);
    transform: scale(0.98);
    animation: heroStateIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 6.3s forwards;
    pointer-events: auto;
}

@keyframes heroStateIn {
    from {
        opacity: 0;
        filter: blur(6px);
        transform: scale(0.98) translateY(8px);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: scale(1) translateY(0);
    }
}

@keyframes heroStateOut {
    from {
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
    }
    to {
        opacity: 0;
        filter: blur(6px);
        transform: scale(1.02) translateY(-8px);
    }
}

/* ── Record state elements ── */

.panel-badge--rec {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-color: rgba(248, 113, 113, 0.25);
    background: rgba(248, 113, 113, 0.1);
    color: #fca5a5;
}

.rec-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: #f87171;
    box-shadow: 0 0 8px rgba(248, 113, 113, 0.8);
    animation: recDotPulse 1s ease-in-out infinite;
}

@keyframes recDotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.rec-timer {
    font-family: "Sora", "Manrope", system-ui, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text-soft);
    font-variant-numeric: tabular-nums;
}

/* Viewfinder */

.rec-viewfinder {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.5rem 0;
    border-radius: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(170deg, rgba(15, 15, 20, 0.95), rgba(8, 8, 12, 0.98));
    min-height: 10rem;
    overflow: hidden;
}

/* Corner frame brackets */

.rec-frame {
    position: absolute;
    inset: 0.75rem;
    pointer-events: none;
}

.rec-frame__corner {
    position: absolute;
    width: 1.2rem;
    height: 1.2rem;
    border-color: rgba(255, 255, 255, 0.25);
    border-style: solid;
    border-width: 0;
}

.rec-frame__corner--tl { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; border-top-left-radius: 3px; }
.rec-frame__corner--tr { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; border-top-right-radius: 3px; }
.rec-frame__corner--bl { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; border-bottom-left-radius: 3px; }
.rec-frame__corner--br { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; border-bottom-right-radius: 3px; }

/* Talking head video */

.rec-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    opacity: 0.85;
}

/* Animated talk rings */

.rec-talk-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5rem;
    height: 5rem;
    border-radius: 999px;
    border: 1px solid rgba(74, 222, 128, 0.2);
    transform: translate(-50%, -50%) scale(1);
    animation: talkRing 2s ease-out infinite;
    pointer-events: none;
}

.rec-talk-ring--2 {
    animation-delay: 0.6s;
}

@keyframes talkRing {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
        border-color: rgba(74, 222, 128, 0.3);
    }
    100% {
        transform: translate(-50%, -50%) scale(2.2);
        opacity: 0;
        border-color: rgba(74, 222, 128, 0);
    }
}

/* HUD overlays */

.rec-hud-top,
.rec-hud-bottom {
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rec-hud-top {
    top: 0.9rem;
    justify-content: flex-end;
}

.rec-hud-bottom {
    bottom: 0.9rem;
    justify-content: space-between;
}

.rec-hud-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0.35rem;
    background: rgba(0, 0, 0, 0.5);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.6);
    font-variant-numeric: tabular-nums;
}

/* Audio meter bars */

.rec-audio-meter {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 1.1rem;
    padding: 0.2rem 0.45rem;
    border-radius: 0.35rem;
    background: rgba(0, 0, 0, 0.5);
}

.rec-audio-meter__bar {
    width: 3px;
    height: var(--h);
    border-radius: 1px;
    background: #4ade80;
    animation: audioMeterPulse 0.8s ease-in-out infinite alternate;
    animation-delay: calc(var(--h) * 0.005s);
}

@keyframes audioMeterPulse {
    0% { transform: scaleY(0.5); opacity: 0.6; }
    100% { transform: scaleY(1); opacity: 1; }
}

.rec-footer {
    display: flex;
    gap: 1.25rem;
}

.rec-format {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 0.02em;
}

/* ── Upload/process state elements ── */

.panel-badge--process {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-color: rgba(167, 139, 250, 0.25);
    background: rgba(167, 139, 250, 0.1);
    color: #c4b5fd;
}

.process-spinner {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 999px;
    border: 2px solid rgba(167, 139, 250, 0.25);
    border-top-color: #a78bfa;
    animation: spinLoader 0.8s linear infinite;
}

.process-spinner--sm {
    width: 0.9rem;
    height: 0.9rem;
    flex-shrink: 0;
}

@keyframes spinLoader {
    to { transform: rotate(360deg); }
}

.upload-steps {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin: 0.75rem 0;
    padding: 1rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.3);
}

.upload-step {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.65rem;
    border-radius: 0.7rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.upload-step--done {
    color: #6ee7c7;
}

.upload-step--done i {
    color: #6ee7c7;
}

.upload-step--active {
    color: #c4b5fd;
    background: rgba(167, 139, 250, 0.08);
    border: 1px solid rgba(167, 139, 250, 0.15);
}

.upload-step--pending {
    color: var(--text-dim);
}

.upload-step--pending i {
    color: var(--text-dim);
    opacity: 0.5;
}

.upload-progress {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.upload-progress__bar {
    flex: 1;
    height: 0.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.upload-progress__fill {
    display: block;
    width: 68%;
    height: 100%;
    border-radius: 999px;
    background: #4ade80;
    box-shadow: 0 0 12px rgba(74, 222, 128, 0.4);
    animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 1; }
}

.upload-progress__pct {
    font-family: "Sora", "Manrope", system-ui, sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-soft);
    font-variant-numeric: tabular-nums;
    min-width: 2.5rem;
    text-align: right;
}

.panel-badge,
.hero-console__publish-btn {
    white-space: nowrap;
    flex-shrink: 0;
}

/* ─── Hero console ─── */

.hero-console__toprow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1.1rem;
    flex-wrap: nowrap;
}

.hero-console__publish-btn {
    display: inline-flex;
    align-items: center;
    min-height: 2.1rem;
    padding: 0 1.1rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #2dd4a0, #16a97a);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 6px 22px rgba(45, 212, 160, 0.38);
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.hero-console__publish-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(45, 212, 160, 0.48);
}

.hero-console__header {
    margin-bottom: 1.15rem;
}

.hero-console__preview {
    position: relative;
    padding: 0.8rem;
    border-radius: 1.6rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(13, 13, 13, 0.92), rgba(8, 8, 8, 0.88));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.hero-console__workspace {
    display: grid;
    gap: 0.55rem;
}

.hero-console__clip {
    display: grid;
    grid-template-columns: 5.8rem minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.025);
    transition: background 200ms ease;
}

.hero-console__clip:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Waveform thumbnail */

.hero-console__thumb {
    position: relative;
    width: 100%;
    height: 3.35rem;
    border-radius: 0.7rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-console__thumb--highlight {
    background: rgba(45, 185, 180, 0.22);
    border: 1px solid rgba(45, 185, 180, 0.3);
}

.hero-console__thumb--optimize {
    background: rgba(210, 160, 60, 0.22);
    border: 1px solid rgba(210, 160, 60, 0.3);
}

.hero-console__thumb--trim {
    background: rgba(220, 100, 110, 0.22);
    border: 1px solid rgba(220, 100, 110, 0.3);
}

/* Clip video thumbnails */

.clip-thumb-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    opacity: 0.75;
}

/* Offset each clip to show different "moments" */
.clip-thumb-video--mid {
    object-position: 30% center;
}

.clip-thumb-video--end {
    object-position: 70% center;
    filter: saturate(0.4) brightness(0.7);
}

/* Small indicator badge on thumbnail corner */

.clip-thumb-badge {
    position: absolute;
    bottom: 0.25rem;
    right: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 0.35rem;
    z-index: 1;
}

.clip-thumb-badge--keep {
    background: rgba(167, 139, 250, 0.85);
    color: #fff;
    box-shadow: 0 0 6px rgba(167, 139, 250, 0.5);
}

.clip-thumb-badge--clean {
    background: rgba(210, 175, 60, 0.85);
    color: #fff;
    box-shadow: 0 0 6px rgba(210, 175, 60, 0.5);
}

.clip-thumb-badge--cut {
    background: rgba(220, 80, 100, 0.85);
    color: #fff;
    box-shadow: 0 0 6px rgba(220, 80, 100, 0.5);
}

/* Waveform bars */

.waveform {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 100%;
    padding: 0.4rem 0.5rem;
    width: 100%;
    box-sizing: border-box;
}

.waveform-bar {
    flex-shrink: 0;
    width: 3px;
    border-radius: 999px;
    animation: waveformPulse 1.4s ease-in-out infinite;
}

[data-color="teal"] .waveform-bar { background: rgba(45, 212, 160, 0.9); }
[data-color="amber"] .waveform-bar { background: rgba(210, 175, 60, 0.9); }
[data-color="pink"] .waveform-bar { background: rgba(230, 100, 120, 0.9); }

@keyframes waveformPulse {
    0%, 100% { transform: scaleY(0.4); opacity: 0.6; }
    50% { transform: scaleY(1); opacity: 1; }
}

/* Clip meta */

.hero-console__meta {
    display: grid;
    gap: 0.4rem;
    min-width: 0;
}

.hero-console__clip-title {
    font-size: 0.86rem;
    font-weight: 600;
    color: #f0f0f0;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-console__progress-bar {
    position: relative;
    height: 0.28rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    overflow: visible;
}

.hero-console__progress-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    position: relative;
    box-shadow: 0 0 8px 2px currentColor;
}

.hero-console__progress-fill--highlight {
    width: 68%;
    background: linear-gradient(90deg, #2dd4bf, #1fc8b0);
    color: rgba(45, 212, 191, 0.7);
}

.hero-console__progress-fill--optimize {
    width: 52%;
    background: linear-gradient(90deg, #d4a017, #c49515);
    color: rgba(212, 160, 23, 0.7);
}

.hero-console__progress-fill--trim {
    width: 36%;
    background: linear-gradient(90deg, #e05870, #c94060);
    color: rgba(224, 88, 112, 0.7);
}

/* Decision tags */

.hero-console__decision {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-height: 1.7rem;
    padding: 0 0.65rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.hero-console__decision em {
    font-style: normal;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    opacity: 0.85;
}

.hero-console__decision--highlight {
    background: rgba(45, 185, 180, 0.15);
    border-color: rgba(45, 185, 180, 0.25);
    color: #5cf0dd;
}

.hero-console__decision--optimize {
    background: rgba(200, 155, 30, 0.15);
    border-color: rgba(200, 155, 30, 0.28);
    color: #e8c84a;
}

.hero-console__decision--trim {
    background: rgba(220, 80, 100, 0.15);
    border-color: rgba(220, 80, 100, 0.28);
    color: #f08090;
}

.hero-console__time {
    color: var(--text-dim);
    font-size: 0.72rem;
    white-space: nowrap;
}

/* Timeline overview */

.hero-console__overview {
    margin-top: 0.2rem;
    padding: 0.75rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(0, 0, 0, 0.32);
}

.hero-console__overview-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.67rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.hero-console__overview-track {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.hero-console__overview-segment {
    display: block;
    height: 0.62rem;
    border-radius: 999px;
    flex-shrink: 0;
}

.hero-console__overview-segment--highlight {
    flex: 2.4;
    background: linear-gradient(90deg, #2dd4bf, #1db8a0);
    box-shadow: 0 0 8px rgba(45, 212, 191, 0.45);
}

.hero-console__overview-segment--optimize {
    flex: 1.6;
    background: linear-gradient(90deg, #d4a017, #b88a10);
    box-shadow: 0 0 8px rgba(212, 160, 23, 0.4);
}

.hero-console__overview-segment--trim {
    flex: 0.7;
    background: linear-gradient(90deg, #e05870, #c04060);
    box-shadow: 0 0 8px rgba(224, 88, 112, 0.4);
}

.hero-console__overview-segment--lavender {
    flex: 1.1;
    background: linear-gradient(90deg, #a78bfa, #8b5cf6);
    box-shadow: 0 0 8px rgba(167, 139, 250, 0.4);
}

/* Status chips */

.hero-console__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0 0.85rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-chip--trim {
    background: rgba(220, 80, 100, 0.12);
    border-color: rgba(220, 80, 100, 0.22);
    color: #f2a0ac;
}

.status-chip--optimize {
    background: rgba(200, 155, 30, 0.12);
    border-color: rgba(200, 155, 30, 0.22);
    color: #e8cb6a;
}

.status-chip--slate {
    background: rgba(167, 139, 250, 0.12);
    border-color: rgba(167, 139, 250, 0.22);
    color: #c4b5fd;
}

/* ─── Hero proof metrics ─── */

.hero-proof {
    margin-top: 0.45rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.72rem;
}

.hero-proof__item {
    min-height: 5.3rem;
    padding: 0.8rem 0.85rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
    transition: border-color 200ms ease, transform 200ms ease;
}

.hero-proof__item:hover {
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.hero-proof__item strong {
    display: block;
    margin-bottom: 0.3rem;
    font-family: "Sora", "Manrope", system-ui, sans-serif;
    font-size: clamp(1rem, 2.3vw, 1.25rem);
    letter-spacing: -0.03em;
}

.hero-proof__item span {
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

/* ─── Compare panel (pain scene) ─── */

.compare-panel {
    display: flex;
    gap: 0;
    padding: 0;
    overflow: hidden;
    width: min(100%, 52rem);
    padding-bottom: 0.5rem;
}

.compare-panel__half {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1.75rem;
}

.compare-panel__half--before {
    background: linear-gradient(160deg, rgba(248, 113, 113, 0.06), transparent 60%);
}

.compare-panel__half--after {
    background: linear-gradient(160deg, rgba(45, 212, 160, 0.07), transparent 60%);
}

.compare-panel__divider {
    width: 1px;
    align-self: stretch;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.1) 30%, rgba(255, 255, 255, 0.1) 70%, transparent);
}

.compare-badge {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    min-height: 1.75rem;
    padding: 0 0.75rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.compare-badge--before {
    border: 1px solid rgba(248, 113, 113, 0.2);
    background: rgba(248, 113, 113, 0.08);
    color: #fca5a5;
}

.compare-badge--after {
    border: 1px solid rgba(45, 212, 160, 0.22);
    background: rgba(45, 212, 160, 0.08);
    color: #6ee7c7;
}

.compare-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.compare-panel__headline {
    margin: 0;
    font-family: "Sora", "Manrope", system-ui, sans-serif;
    font-size: clamp(1rem, 1.6vw, 1.35rem);
    line-height: 1.2;
    letter-spacing: -0.04em;
}

.compare-clock {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 4.4rem;
    height: 4.4rem;
    border-radius: 999px;
}

.compare-clock--before {
    border: 1px solid rgba(248, 113, 113, 0.2);
    background: radial-gradient(circle, rgba(248, 113, 113, 0.14), rgba(248, 113, 113, 0.02));
    box-shadow: 0 0 24px rgba(248, 113, 113, 0.1);
}

.compare-clock--after {
    border: 1px solid rgba(45, 212, 160, 0.22);
    background: radial-gradient(circle, rgba(45, 212, 160, 0.12), rgba(45, 212, 160, 0.02));
    box-shadow: 0 0 24px rgba(45, 212, 160, 0.1);
}

.compare-clock span {
    font-family: "Sora", "Manrope", system-ui, sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1;
}

.compare-clock--before span { color: #fca5a5; }
.compare-clock--after span  { color: #6ee7c7; }

.compare-clock small {
    font-size: 0.58rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
    line-height: 1.2;
}

/* Compare tasks (manual side) */

.compare-tasks {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.compare-task {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.22);
    transition: background 200ms ease;
}

.compare-task:hover {
    background: rgba(0, 0, 0, 0.32);
}

.compare-task i {
    width: 1.1rem;
    height: 1.1rem;
    color: #fca5a5;
    flex-shrink: 0;
}

.compare-task strong {
    display: block;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

.compare-task span {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
    line-height: 1.4;
}

.compare-task b {
    font-size: 0.85rem;
    color: #fca5a5;
    white-space: nowrap;
}

/* Compare tiles (AutoCuts side) */

.compare-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    flex: 1;
}

.compare-tile {
    padding: 0.95rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.22);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    transition: border-color 200ms ease, transform 200ms ease;
}

.compare-tile:hover {
    border-color: rgba(45, 212, 160, 0.18);
    transform: translateY(-2px);
}

.compare-tile__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.15rem;
}

.compare-tile__top i {
    width: 0.95rem;
    height: 0.95rem;
    color: #6ee7c7;
}

.compare-tile__top b {
    font-size: 0.75rem;
    color: #6ee7c7;
    letter-spacing: -0.02em;
}

.compare-tile strong {
    font-size: 0.8rem;
    display: block;
    letter-spacing: -0.015em;
}

.compare-tile span {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Compare footer */

.compare-footer {
    font-size: 0.78rem;
    color: var(--text-dim);
    line-height: 1.45;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.compare-meter {
    position: relative;
    height: 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.compare-meter span {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: 999px;
}

.compare-meter--before span {
    width: 78%;
    background: linear-gradient(90deg, rgba(248, 113, 113, 0.7), rgba(248, 113, 113, 0.2));
}

.compare-meter--after span {
    width: 26%;
    background: linear-gradient(90deg, rgba(45, 212, 160, 0.8), rgba(45, 212, 160, 0.3));
}

/* ─── Engine board ─── */

.engine-board {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 2rem;
}

/* Flow visualization */

.engine-flow {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(0, 0, 0, 0.28);
}

.engine-flow__pipeline {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    min-height: 3.8rem;
}

.engine-waveform {
    display: flex;
    align-items: center;
    gap: 1px;
    height: 3.2rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.engine-waveform--raw {
    mask-image: linear-gradient(to right, black 55%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 55%, transparent 100%);
}

.engine-waveform--refined {
    mask-image: linear-gradient(to left, black 55%, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, black 55%, transparent 100%);
}

.engine-waveform--raw .ew-bar {
    flex: 1;
    min-width: 0;
    max-width: 3px;
    border-radius: 1px;
    background: rgba(248, 113, 113, 0.82);
    animation: waveformPulse 1.1s ease-in-out infinite;
}

.engine-waveform--refined .ew-bar {
    flex: 1;
    min-width: 0;
    max-width: 3px;
    border-radius: 1px;
    background: rgba(45, 212, 160, 0.85);
    animation: waveformPulse 1.6s ease-in-out infinite;
}

/* Connector lines */

.engine-flow__connector {
    position: relative;
    height: 2px;
    width: 2.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.engine-flow__connector--in {
    background: linear-gradient(to right, rgba(248, 113, 113, 0.35), rgba(167, 139, 250, 0.5));
}

.engine-flow__connector--out {
    background: linear-gradient(to right, rgba(167, 139, 250, 0.5), rgba(45, 212, 160, 0.35));
}

.engine-flow__pulse {
    position: absolute;
    left: -6px;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(248, 113, 113, 0.9);
    box-shadow: 0 0 6px rgba(248, 113, 113, 0.7);
    animation: pipelineFlow 1.6s linear infinite;
}

.engine-flow__pulse--out {
    background: rgba(45, 212, 160, 0.9);
    box-shadow: 0 0 6px rgba(45, 212, 160, 0.7);
    animation: pipelineFlow 1.6s linear infinite 0.8s;
}

@keyframes pipelineFlow {
    0%   { left: -6px; opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* AI node */

.engine-ai-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    width: 4rem;
    height: 4rem;
    border-radius: 999px;
    flex-shrink: 0;
    border: 1px solid rgba(167, 139, 250, 0.28);
    background: radial-gradient(circle, rgba(167, 139, 250, 0.18), rgba(167, 139, 250, 0.04));
    box-shadow: 0 0 30px rgba(167, 139, 250, 0.18);
}

.engine-ai-logo {
    width: 2.4rem;
    height: 2.4rem;
    object-fit: contain;
    border-radius: 0;
}

/* Meta labels below pipeline */

.engine-flow__meta {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.engine-flow__meta-col {
    flex: 1;
    min-width: 0;
}

.engine-flow__meta-col--right {
    text-align: right;
}

.engine-flow__meta-col--right .engine-tags {
    justify-content: flex-end;
}

.engine-flow__meta-spacer {
    flex-shrink: 0;
    width: calc(4rem + 5rem);
}

.engine-flow__label {
    margin: 0 0 0.35rem;
    font-size: 0.67rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-dim);
}

/* Tags */

.engine-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.engine-tags--raw span {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.2);
    color: #fca5a5;
    font-size: 0.7rem;
    font-weight: 600;
}

.engine-tag--gap,
.engine-tag--zoom,
.engine-tag--noise {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
}

.engine-tag--gap {
    background: rgba(45, 212, 160, 0.12);
    border: 1px solid rgba(45, 212, 160, 0.22);
    color: #6ee7c7;
}

.engine-tag--zoom {
    background: rgba(167, 139, 250, 0.12);
    border: 1px solid rgba(167, 139, 250, 0.22);
    color: #c4b5fd;
}

.engine-tag--noise {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.18);
    color: #fde68a;
}

/* Feature cards */

.engine-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.engine-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.22);
    transition: border-color 200ms ease, transform 200ms ease;
}

.engine-feature:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.engine-feature__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.75rem;
    flex-shrink: 0;
}

.engine-feature__icon i {
    width: 1.1rem;
    height: 1.1rem;
}

.engine-feature__icon--cut {
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.2);
    color: #fca5a5;
}
.engine-feature__icon--cut i { color: #fca5a5; }

.engine-feature__icon--noise {
    background: rgba(45, 212, 160, 0.1);
    border: 1px solid rgba(45, 212, 160, 0.2);
}
.engine-feature__icon--noise i { color: #6ee7c7; }

.engine-feature__icon--motion {
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.2);
}
.engine-feature__icon--motion i { color: #c4b5fd; }

.engine-feature__icon--anim {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
}
.engine-feature__icon--anim i { color: #fde68a; }

.engine-feature strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    letter-spacing: -0.015em;
}

.engine-feature span {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Stat cards */

.engine-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.engine-stat {
    padding: 1rem 1.1rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.22);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    transition: border-color 200ms ease;
}

.engine-stat:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.engine-stat__label {
    margin: 0;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.engine-stat__number {
    font-family: "Sora", "Manrope", system-ui, sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1;
    color: var(--text-primary);
}

.engine-stat__number small {
    font-size: 0.55em;
    opacity: 0.6;
    letter-spacing: -0.02em;
}

.engine-stat__desc {
    margin: 0;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ─── Workflow board ─── */

.workflow-board {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
}

.workflow-steps-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    width: 100%;
}

/* Step card */

.wf-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.25rem 1rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
    transition: border-color 200ms ease, transform 200ms ease;
}

.wf-step:hover {
    border-color: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

.wf-step::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.wf-step--active {
    border-color: rgba(45, 212, 160, 0.22);
    background: linear-gradient(160deg, rgba(45, 212, 160, 0.08), rgba(45, 212, 160, 0.02));
    box-shadow: 0 0 30px rgba(45, 212, 160, 0.08);
}

.wf-step__num {
    font-family: "Sora", "Manrope", system-ui, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-dim);
}

.wf-step--active .wf-step__num { color: #6ee7c7; }

.wf-step__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    margin: 0.25rem 0;
}

.wf-step__icon i {
    width: 1.15rem;
    height: 1.15rem;
    color: rgba(255, 255, 255, 0.6);
}

.wf-step--active .wf-step__icon {
    border-color: rgba(45, 212, 160, 0.22);
    background: rgba(45, 212, 160, 0.1);
}

.wf-step--active .wf-step__icon i { color: #6ee7c7; }

.wf-step__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.wf-step__desc {
    margin: 0;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Connectors */

.wf-connector {
    position: relative;
    width: 2rem;
    flex-shrink: 0;
    align-self: center;
    height: 2px;
    background: linear-gradient(to right, rgba(45, 212, 160, 0.2), rgba(45, 212, 160, 0.4), rgba(45, 212, 160, 0.2));
    overflow: hidden;
}

.wf-connector__pulse {
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #6ee7c7;
    box-shadow: 0 0 8px rgba(45, 212, 160, 0.8);
    animation: wfPulse 2s linear infinite;
}

.wf-connector:nth-child(4) .wf-connector__pulse  { animation-delay: 0.5s; }
.wf-connector:nth-child(6) .wf-connector__pulse  { animation-delay: 1s; }
.wf-connector:nth-child(8) .wf-connector__pulse  { animation-delay: 1.5s; }

@keyframes wfPulse {
    0%   { left: -8px; opacity: 0; }
    15%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* ─── CTA board ─── */

.cta-board {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 2rem;
}

.cta-board__publish {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(0, 0, 0, 0.25);
}

.cta-board__publish-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.cta-board__publish-title {
    margin: 0.2rem 0 0;
    font-family: "Sora", "Manrope", system-ui, sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.cta-board__approved {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(45, 212, 160, 0.25);
    background: rgba(45, 212, 160, 0.1);
    color: #6ee7c7;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.cta-board__approved i {
    width: 0.9rem;
    height: 0.9rem;
}

/* Timeline bar */

.cta-board__timeline {
    display: flex;
    height: 0.55rem;
    border-radius: 999px;
    overflow: hidden;
    gap: 2px;
}

.cta-board__seg {
    display: block;
    border-radius: 999px;
    position: relative;
    overflow: hidden;
}

.cta-board__seg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    animation: segmentSheen 5s linear infinite;
}

.cta-board__seg--keep   { background: rgba(74, 222, 128, 0.75); }
.cta-board__seg--cut    { background: rgba(248, 113, 113, 0.75); }
.cta-board__seg--motion { background: rgba(167, 139, 250, 0.8); }
.cta-board__seg--noise  { background: rgba(251, 191, 36, 0.75); }

/* Chips */

.cta-board__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cta-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}

.cta-chip i {
    width: 0.85rem;
    height: 0.85rem;
}

.cta-chip--done {
    background: rgba(45, 212, 160, 0.1);
    border: 1px solid rgba(45, 212, 160, 0.2);
    color: #6ee7c7;
}

.cta-chip--note {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

/* Value pillars */

.cta-board__pillars {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 1.25rem 1.5rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(0, 0, 0, 0.2);
}

.cta-pillar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    text-align: center;
}

.cta-pillar strong {
    font-family: "Sora", "Manrope", system-ui, sans-serif;
    font-size: clamp(1rem, 1.8vw, 1.35rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

.cta-pillar span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.cta-pillar__divider {
    width: 1px;
    align-self: stretch;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    margin: 0 1.5rem;
}

/* CTA action */

.cta-board__action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.5rem;
}

.cta-board__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 3rem;
    border-radius: 999px;
    font-family: "Sora", "Manrope", system-ui, sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #050505;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(255, 255, 255, 0.12);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-board__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 42px rgba(255, 255, 255, 0.18);
}

.cta-board__note {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-dim);
    text-align: center;
}

/* ─── CTA clean layout ─── */

.cta-clean {
    width: 100%;
    max-width: 40rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
}

.cta-clean__pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    width: 100%;
}

.cta-clean__pillar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.cta-clean__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 1rem;
    margin-bottom: 0.25rem;
}

.cta-clean__icon--green {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

.cta-clean__icon--purple {
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.2);
    color: #a78bfa;
}

.cta-clean__icon--white {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text-primary);
}

.cta-clean__pillar strong {
    font-family: "Sora", "Manrope", system-ui, sans-serif;
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.cta-clean__pillar span {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.cta-clean__action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

@media (max-width: 560px) {
    .cta-clean__pillars {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ─── Scroll prompt ─── */

.story-prompt {
    position: absolute;
    left: 50%;
    bottom: 0.9rem;
    z-index: 12;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-dim);
    font-size: 0.75rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    transform: translateX(-50%);
    transition: opacity 180ms ease, transform 180ms ease;
}

body.story-ready .story-prompt {
    display: flex;
}

.story-prompt.is-hidden {
    opacity: 0;
    transform: translate(-50%, 0.4rem);
}

.story-prompt__line {
    width: 1px;
    height: 2.75rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), transparent);
    animation: promptScroll 1.8s ease-in-out infinite;
}

/* ─── Pricing section ─── */

.pricing-section {
    position: relative;
    z-index: 1;
    padding: clamp(3rem, 8vh, 5rem) clamp(1rem, 4vw, 2.5rem);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.pricing-inner {
    width: min(100%, 32rem);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.pricing-title {
    margin: 0;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    letter-spacing: -0.05em;
    line-height: 1.1;
    text-align: center;
}

.pricing-subtitle {
    margin: 0;
    font-size: clamp(0.92rem, 1.6vw, 1.05rem);
    color: var(--text-muted);
    text-align: center;
}

.pricing-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 2rem;
    margin-top: 0.5rem;
}

.pricing-card__header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
}

.pricing-card__badge {
    align-self: center;
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(74, 222, 128, 0.22);
    background: rgba(74, 222, 128, 0.08);
    color: #6ee7c7;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.pricing-card__price {
    margin: 0;
    font-family: "Sora", "Manrope", system-ui, sans-serif;
    font-size: clamp(3rem, 8vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1;
    color: var(--text-primary);
}

.pricing-card__per {
    font-size: 0.35em;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: -0.02em;
}

.pricing-card__desc {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.pricing-card__free {
    display: flex;
    justify-content: center;
}

.pricing-card__free-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.1rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(74, 222, 128, 0.18);
    background: rgba(74, 222, 128, 0.06);
    color: #6ee7c7;
    font-size: 0.9rem;
    font-weight: 600;
}

.pricing-card__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.pricing-card__features li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.92rem;
    color: var(--text-soft);
}

.pricing-card__features li i {
    color: #4ade80;
    flex-shrink: 0;
}

.pricing-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    border-radius: 999px;
    background: #ffffff;
    color: #050505;
    font-family: "Sora", "Manrope", system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(255, 255, 255, 0.12);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.pricing-card__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 42px rgba(255, 255, 255, 0.18);
}

.pricing-card__note {
    margin: 0;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* ─── FAQ section ─── */

.faq-section {
    position: relative;
    z-index: 1;
    padding: clamp(3rem, 8vh, 5rem) clamp(1rem, 4vw, 2.5rem);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.faq-inner {
    width: min(100%, 52rem);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.faq-title {
    margin: 0;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    letter-spacing: -0.05em;
    line-height: 1.1;
    text-align: center;
}

.faq-grid {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0.5rem;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    transition: color 200ms ease;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: "+";
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
    transition: transform 200ms ease, border-color 200ms ease, color 200ms ease;
}

.faq-item[open] .faq-question::after {
    content: "−";
    transform: rotate(0deg);
    border-color: rgba(74, 222, 128, 0.3);
    color: #4ade80;
}

.faq-question:hover {
    color: #ffffff;
}

.faq-question:hover::after {
    border-color: rgba(255, 255, 255, 0.2);
}

.faq-answer {
    margin: 0 0 1.25rem;
    padding-right: 2.5rem;
    font-size: clamp(0.88rem, 1.6vw, 0.98rem);
    line-height: 1.65;
    color: var(--text-muted);
}

/* ─── Footer ─── */

.site-footer {
    position: relative;
    display: flex;
    align-items: stretch;
    padding: clamp(1.25rem, 4vw, 2rem);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 18%), #050505;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: min(70rem, 90vw);
    height: 8rem;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(74, 222, 128, 0.1), transparent 62%);
    filter: blur(90px);
    pointer-events: none;
}

.site-footer__inner {
    position: relative;
    z-index: 1;
    width: min(100%, var(--container-width));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-align: center;
}

.site-footer__top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    max-width: 36rem;
    text-align: center;
}

.site-footer__summary {
    margin: 0;
    color: var(--text-muted);
    font-size: clamp(0.9rem, 1.6vw, 1.05rem);
    line-height: 1.55;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.site-footer__links a {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    padding: 0 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-soft);
    font-size: 0.88rem;
    cursor: pointer;
    transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.site-footer__links a:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.07);
}

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-dim);
    font-size: 0.86rem;
}

/* ─── Scrollbar ─── */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000000;
}

::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.18);
}

::selection {
    background-color: rgba(74, 222, 128, 0.2);
    color: #ffffff;
}

/* ─── Keyframes ─── */

@keyframes segmentSheen {
    0% { transform: translateX(-140%); }
    100% { transform: translateX(140%); }
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes promptScroll {
    0%, 100% {
        opacity: 0.6;
        transform: scaleY(0.35);
        transform-origin: top;
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
        transform-origin: top;
    }
}

/* ═══════════════════════════════════════════════════
   Responsive :: tablet
   ═══════════════════════════════════════════════════ */

@media (max-width: 1100px) {
    body.story-ready .scene-shell,
    .scene-shell {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.15rem;
    }

    .scene-copy {
        max-width: none;
    }

    .scene-visual > * {
        width: min(100%, 42rem);
    }

    .engine-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ═══════════════════════════════════════════════════
   Responsive :: mobile
   ═══════════════════════════════════════════════════ */

@media (max-width: 820px) {
    /* Mobile scroll-reveal animations */
    .story-scene .scene-copy,
    .story-scene .scene-visual,
    .story-scene .pain-scene__title,
    .story-scene .cta-scene__title {
        animation: mobileReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
        animation-timeline: view();
        animation-range: entry 0% entry 30%;
    }

    .story-scene .scene-visual {
        animation-delay: 0.1s;
    }

    @keyframes mobileReveal {
        from {
            opacity: 0;
            filter: blur(4px);
            transform: translateY(32px);
        }
        to {
            opacity: 1;
            filter: blur(0);
            transform: translateY(0);
        }
    }

    /* Hero mobile: visual before buttons, proper alignment */
    .story-scene--hero .scene-shell {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
        align-items: stretch;
    }

    .story-scene--hero .scene-copy {
        display: contents;
    }

    .story-scene--hero .scene-eyebrow { order: 1; width: 100%; text-align: center; }
    .story-scene--hero .hero-title-stagger { order: 2; justify-content: center; }
    .story-scene--hero .scene-description { order: 3; width: 100%; text-align: center; }
    .story-scene--hero .scene-visual { order: 4; width: 100%; }
    .story-scene--hero .scene-actions { order: 5; width: 100%; display: flex; flex-direction: column; }
    .story-scene--hero .scene-tags { order: 6; width: 100%; display: flex; flex-wrap: wrap; justify-content: center; }
    .story-scene--hero .hero-proof { order: 7; width: 100%; grid-template-columns: 1fr; }

    .story-scroll {
        height: auto !important;
    }

    .story-anchor,
    .story-prompt {
        display: none !important;
    }

    .story-viewport {
        position: relative !important;
        height: auto !important;
        min-height: 0;
        overflow: visible !important;
    }

    body.story-ready .story-viewport {
        position: relative !important;
        top: auto;
        height: auto !important;
    }

    body.story-ready .story-scene {
        position: relative !important;
        inset: auto;
        min-height: var(--screen-height);
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .scene-copy {
        width: 100%;
        align-items: stretch;
        text-align: center;
    }

    .scene-title,
    .scene-description,
    .scene-eyebrow {
        width: 100%;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }

    .scene-tags,
    .hero-proof {
        width: 100%;
        justify-content: center;
    }

    /* Nav */
    .site-nav {
        padding: 0.85rem 0.85rem 0;
    }

    .site-nav__inner {
        min-height: 4.3rem;
        padding: 0.65rem 0.8rem 0.65rem 0.9rem;
    }

    .site-nav__cta {
        min-height: 2.5rem;
        padding: 0 1rem;
        font-size: 0.86rem;
    }

    .brand-wordmark {
        font-size: 0.96rem;
    }

    /* Typography */
    .scene-title {
        max-width: 12ch;
        font-size: clamp(2.4rem, 12vw, 4rem);
    }

    .story-scene--hero .scene-title {
        font-size: clamp(2.2rem, 10.8vw, 3.7rem);
    }

    .story-scene--pain .scene-title,
    .story-scene--engine .scene-title,
    .story-scene--workflow .scene-title,
    .story-scene--cta .scene-title {
        font-size: clamp(1.75rem, 9vw, 2.8rem);
    }

    .scene-copy h2.scene-title {
        max-width: 14ch;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    body.story-ready .scene-shell {
        min-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }

    .scene-description {
        font-size: 1rem;
    }

    /* Actions full width */
    .scene-actions {
        width: 100%;
        flex-direction: column;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
    }

    /* Grids to single column */
    .hero-proof {
        grid-template-columns: 1fr;
    }

    .site-footer__bottom {
        justify-content: flex-start;
    }

    /* Titles */
    .pain-scene__title .scene-title,
    .cta-scene__title .scene-title {
        font-size: clamp(1.6rem, 7vw, 2.4rem);
        white-space: normal;
        text-align: center;
    }

    .pain-scene__title,
    .cta-scene__title {
        width: 100%;
        text-align: center;
    }

    /* Compare panel stack */
    .compare-panel {
        flex-direction: column;
    }

    .compare-panel__divider {
        width: 100%;
        height: 1px;
    }

    .compare-panel__half {
        padding: 1.25rem;
    }

    .compare-task {
        gap: 0.6rem;
        padding: 0.75rem 0.85rem;
    }

    .compare-task strong { font-size: 0.85rem; }
    .compare-task span { font-size: 0.75rem; }

    /* Engine flow stack */
    .engine-flow__pipeline {
        flex-direction: column;
        gap: 0.5rem;
    }

    .engine-waveform {
        width: 100%;
        flex: none;
        height: 2.8rem;
    }

    .engine-waveform--raw {
        mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
        -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
    }

    .engine-waveform--refined {
        mask-image: linear-gradient(to top, black 55%, transparent 100%);
        -webkit-mask-image: linear-gradient(to top, black 55%, transparent 100%);
    }

    .engine-flow__connector {
        width: 2px;
        height: 1.5rem;
    }

    .engine-flow__connector--in {
        background: linear-gradient(to bottom, rgba(248, 113, 113, 0.35), rgba(167, 139, 250, 0.5));
    }

    .engine-flow__connector--out {
        background: linear-gradient(to bottom, rgba(167, 139, 250, 0.5), rgba(45, 212, 160, 0.35));
    }

    .engine-flow__pulse {
        left: 50%;
        top: -6px;
        transform: translateX(-50%);
        animation: pipelineFlowV 1.6s linear infinite;
    }

    .engine-flow__pulse--out {
        animation: pipelineFlowV 1.6s linear infinite 0.8s;
    }

    @keyframes pipelineFlowV {
        0%   { top: -6px; opacity: 0; }
        10%  { opacity: 1; }
        90%  { opacity: 1; }
        100% { top: 100%; opacity: 0; }
    }

    .engine-ai-node {
        width: 3.5rem;
        height: 3.5rem;
    }

    .engine-ai-logo {
        width: 2rem;
        height: 2rem;
    }

    .engine-flow__meta {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .engine-flow__meta-col--right {
        text-align: center;
    }

    .engine-flow__meta-col--right .engine-tags {
        justify-content: center;
    }

    .engine-flow__meta-spacer {
        display: none;
    }

    .engine-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .engine-stats {
        grid-template-columns: 1fr;
    }

    .engine-board {
        padding: 1.25rem;
    }

    /* Workflow steps */
    .workflow-steps-row {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .wf-step {
        flex: 0 0 calc(50% - 0.375rem);
        min-width: 0;
    }

    .wf-step:last-child {
        flex: 0 0 100%;
    }

    .wf-connector {
        display: none;
    }

    .workflow-board {
        padding: 1.25rem;
    }

    /* CTA board */
    .cta-board {
        padding: 1.25rem;
    }

    .cta-board__pillars {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem;
    }

    .cta-pillar__divider {
        width: 100%;
        height: 1px;
        margin: 0;
    }

    .cta-board__btn {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1.05rem;
    }
}

/* ═══════════════════════════════════════════════════
   Responsive :: small mobile
   ═══════════════════════════════════════════════════ */

@media (max-width: 560px) {
    .site-nav__cta {
        padding: 0 0.85rem;
        font-size: 0.82rem;
    }

    .panel {
        padding: 1.05rem;
        border-radius: 1.6rem;
    }

    .scene-tag {
        min-height: 2.15rem;
        font-size: 0.82rem;
    }

    .story-prompt {
        display: none !important;
    }

    .hero-console__clip {
        grid-template-columns: 4.6rem minmax(0, 1fr) auto;
    }

    .hero-console__time {
        display: none;
    }

    .hero-console__thumb {
        height: 3rem;
    }

    .site-footer {
        padding: 1rem;
    }

    .site-footer__top {
        padding-top: calc(var(--nav-height) + 1.25rem);
    }

    .pain-scene__title .scene-title,
    .cta-scene__title .scene-title {
        font-size: clamp(1.35rem, 6.5vw, 2rem);
    }

    .compare-panel__half {
        padding: 1rem;
    }

    .compare-tiles {
        grid-template-columns: 1fr;
    }

    .engine-features {
        grid-template-columns: 1fr;
    }

    .workflow-steps-row {
        gap: 0.6rem;
    }

    .wf-step {
        flex: 0 0 100%;
    }

    .wf-step__title { font-size: 0.9rem; }
    .wf-step__desc  { font-size: 0.72rem; }

    .cta-board__publish {
        padding: 1rem;
    }

    .cta-board__btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }

    .cta-board__chips {
        gap: 0.35rem;
    }

    .cta-chip {
        font-size: 0.7rem;
        padding: 0.25rem 0.65rem;
    }
}

/* ═══════════════════════════════════════════════════
   Short viewports
   ═══════════════════════════════════════════════════ */

@media (max-height: 860px) {
    .story-scene {
        padding-top: calc(var(--nav-height) + 0.75rem);
        padding-bottom: 1rem;
    }

    .scene-copy {
        gap: 1rem;
    }

    .hero-console__preview {
        padding: 0.65rem;
    }

    .scene-tags {
        gap: 0.5rem;
    }
}

/* ═══════════════════════════════════════════════════
   Reduced motion
   ═══════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .story-scroll {
        height: auto !important;
    }

    .story-anchor,
    .story-prompt {
        display: none !important;
    }

    .story-viewport {
        position: relative !important;
        height: auto !important;
        overflow: visible !important;
    }

    .story-scene {
        position: relative !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        pointer-events: auto !important;
    }
}
/* ═══════════════════════════════════════════════════════════════
   SCENE 1 :: PAIN COMPARE
   ═══════════════════════════════════════════════════════════════ */

.pain-compare {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
}

.pain-row {
    padding: 2rem 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-radius: 20px;
    position: relative;
    transition: transform 0.3s ease;
}

.pain-row--before {
    background:
        radial-gradient(ellipse at top left, rgba(248, 113, 113, 0.1) 0%, transparent 60%),
        linear-gradient(180deg, rgba(248, 113, 113, 0.04) 0%, rgba(255, 255, 255, 0.015) 100%);
    border: 1px solid rgba(248, 113, 113, 0.18);
}

.pain-row--after {
    background:
        radial-gradient(ellipse at top right, rgba(74, 222, 128, 0.1) 0%, transparent 60%),
        linear-gradient(180deg, rgba(74, 222, 128, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%);
    border: 1px solid rgba(74, 222, 128, 0.22);
    box-shadow: 0 18px 48px rgba(74, 222, 128, 0.08);
}

.pain-row__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.pain-row__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.28);
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(248, 113, 113, 0.95);
    width: fit-content;
}

.pain-row__tag i {
    width: 0.85rem;
    height: 0.85rem;
}

.pain-row__tag--after {
    background: rgba(74, 222, 128, 0.1);
    border-color: rgba(74, 222, 128, 0.32);
    color: rgba(74, 222, 128, 1);
}

.pain-row__metric {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.pain-row__metric strong {
    font-family: 'Sora', 'Manrope', sans-serif;
    font-size: clamp(1.8rem, 3.8vw, 2.6rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

.pain-row__metric--before strong {
    color: rgba(248, 113, 113, 0.95);
}

.pain-row__metric--after strong {
    color: rgba(74, 222, 128, 1);
}

.pain-row__metric small {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.pain-row__headline {
    font-family: 'Sora', 'Manrope', sans-serif;
    font-size: clamp(1.2rem, 2.4vw, 1.65rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
}

.pain-row__note {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.52);
    margin: 0;
    line-height: 1.4;
}

/* "vs" divider — absolutely positioned over the card boundary */
.pain-compare__divider {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
}

.pain-compare__vs {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: #0a0a0a;
    border: none;
    font-family: 'Sora', 'Manrope', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.pain-compare__vs::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, rgba(248, 113, 113, 0.35), transparent 55%),
        radial-gradient(circle at 70% 70%, rgba(74, 222, 128, 0.35), transparent 55%);
    filter: blur(10px);
    z-index: -1;
    opacity: 0.9;
}

@media (max-width: 820px) {
    .pain-row {
        padding: 1.4rem 1.2rem;
        gap: 0.6rem;
    }
    .pain-row__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   SCENE 2 :: THREE OUTPUTS
   ═══════════════════════════════════════════════════════════════ */

.outputs-board {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.outputs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.output-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.015) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
    transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), border-color 0.35s ease;
}

.output-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.16);
}

.output-card__thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #000;
    overflow: hidden;
}

.output-card__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.output-card--long .output-card__video {
    filter: saturate(1.05) contrast(1.02);
}

.output-card--animated .output-card__video {
    filter: saturate(1.1) brightness(1.05);
    transform-origin: center center;
    animation: videoZoomOut 2s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

@keyframes videoZoomOut {
    0%   { transform: scale(1.6); filter: saturate(1.3) brightness(1.1) blur(1px); }
    40%  { filter: saturate(1.2) brightness(1.08) blur(0); }
    100% { transform: scale(1); filter: saturate(1.1) brightness(1.05) blur(0); }
}

/* Motion graphics layer: 3 small chart overlays side-by-side at bottom, staggered entrance */
.mg-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 0.5rem;
    padding: 0 4% 5%;
}

/* Shared visualization card */
.mg-viz {
    position: relative;
    width: 27%;
    min-width: 0;
    padding: 0.45rem 0.55rem;
    background: linear-gradient(180deg, rgba(20, 18, 35, 0.88) 0%, rgba(14, 12, 25, 0.92) 100%);
    border: 1px solid rgba(167, 139, 250, 0.25);
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5), 0 0 14px rgba(167, 139, 250, 0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    animation: mgVizIn 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.mg-viz--bars { animation-delay: 0s; }
.mg-viz--stat { animation-delay: 0.35s; }
.mg-viz--line { animation-delay: 0.7s; }

@keyframes mgVizIn {
    0%        { opacity: 0; transform: translateY(10px) scale(0.95); }
    7%        { opacity: 1; transform: translateY(0) scale(1); }
    85%       { opacity: 1; transform: translateY(0) scale(1); }
    95%, 100% { opacity: 0; transform: translateY(-4px) scale(0.97); }
}

.mg-viz__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.3rem;
}

.mg-viz__label {
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mg-viz__delta {
    font-size: 0.55rem;
    font-weight: 800;
    color: #4ade80;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* Graphic 1: Bars */
.mg-viz__bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 26px;
}

.mg-bar {
    flex: 1;
    height: var(--h);
    background: linear-gradient(180deg, #a78bfa 0%, #8b5cf6 100%);
    border-radius: 2px 2px 0 0;
    box-shadow: 0 0 6px rgba(167, 139, 250, 0.4);
    transform-origin: bottom;
    transform: scaleY(0);
    animation: mgBarGrow 6s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}
.mg-viz--bars .mg-bar:nth-child(1) { animation-delay: 0.05s; }
.mg-viz--bars .mg-bar:nth-child(2) { animation-delay: 0.15s; }
.mg-viz--bars .mg-bar:nth-child(3) { animation-delay: 0.25s; }
.mg-viz--bars .mg-bar:nth-child(4) { animation-delay: 0.35s; }
.mg-viz--bars .mg-bar:nth-child(5) { animation-delay: 0.45s; }

@keyframes mgBarGrow {
    0%, 3%    { transform: scaleY(0); }
    14%, 88%  { transform: scaleY(1); }
    96%, 100% { transform: scaleY(0); }
}

/* Graphic 2: Stat */
.mg-viz--stat { align-items: flex-start; }

.mg-stat__row {
    display: flex;
    align-items: center;
    gap: 0.28rem;
}

.mg-stat__arrow {
    width: 1rem;
    height: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(74, 222, 128, 0.18);
    color: #4ade80;
    flex-shrink: 0;
}
.mg-stat__arrow svg {
    width: 0.62rem;
    height: 0.62rem;
}

.mg-stat__number {
    font-family: 'Sora', 'Manrope', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #fff;
    background: linear-gradient(135deg, #fff 0%, #c4b5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mg-stat__label {
    font-size: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

/* Graphic 3: Line chart */
.mg-line {
    width: 100%;
    height: 26px;
    display: block;
}

.mg-line__path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    filter: drop-shadow(0 0 3px rgba(167, 139, 250, 0.6));
    animation: mgLineDraw 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    animation-delay: 0.7s;
}
.mg-line__area {
    opacity: 0;
    animation: mgLineArea 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    animation-delay: 0.7s;
}
.mg-line__dot {
    transform-origin: 97px 4px;
    transform: scale(0);
    filter: drop-shadow(0 0 5px rgba(167, 139, 250, 0.8));
    animation: mgLineDot 6s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
    animation-delay: 0.7s;
}

@keyframes mgLineDraw {
    0%, 3%    { stroke-dashoffset: 200; }
    22%, 88%  { stroke-dashoffset: 0; }
    96%, 100% { stroke-dashoffset: 200; }
}
@keyframes mgLineArea {
    0%, 10%   { opacity: 0; }
    28%, 88%  { opacity: 1; }
    96%, 100% { opacity: 0; }
}
@keyframes mgLineDot {
    0%, 20%   { transform: scale(0); }
    32%, 88%  { transform: scale(1); }
    96%, 100% { transform: scale(0); }
}

.output-card__badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-radius: 999px;
    backdrop-filter: blur(12px);
    z-index: 2;
}

.output-card__badge--keep {
    color: rgba(74, 222, 128, 0.95);
    background: rgba(74, 222, 128, 0.14);
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.output-card__badge--anim {
    color: rgba(167, 139, 250, 0.95);
    background: rgba(167, 139, 250, 0.14);
    border: 1px solid rgba(167, 139, 250, 0.3);
}

.output-card__badge--shorts {
    color: #fff;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.22);
}

.output-card__body {
    padding: 1.25rem 1.25rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.output-card__title {
    font-family: 'Sora', 'Manrope', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: rgba(255,255,255,0.96);
    margin: 0;
}

.output-card__desc {
    font-size: 0.88rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

.output-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.25rem;
}

.output-card__chips span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255,255,255,0.65);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
}

/* Shorts stack visual */
.output-card__thumb--shorts {
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.shorts-stack {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shorts-stack__tile {
    position: absolute;
    height: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 24px rgba(0,0,0,0.4);
}

.shorts-stack__tile--1 {
    z-index: 3;
    transform: translateX(0) rotate(0deg);
    box-shadow: 0 24px 50px rgba(0,0,0,0.6);
}

.shorts-stack__tile--2 {
    z-index: 2;
    transform: translateX(-62%) rotate(-7deg);
    opacity: 0.55;
}

.shorts-stack__tile--3 {
    z-index: 1;
    transform: translateX(62%) rotate(7deg);
    opacity: 0.4;
}

.shorts-stack__tile--2 .shorts-stack__video,
.shorts-stack__tile--3 .shorts-stack__video {
    filter: blur(3px) saturate(0.85);
    transform: scale(1.06);
}

.shorts-stack__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Karaoke-style caption: all words read as a single line, orange highlight moves word-by-word */
.shorts-stack__caption {
    position: absolute;
    bottom: 5%;
    left: 4%;
    right: 4%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0 0.18em;
    padding: 0.55em 0.55em;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    pointer-events: none;
    text-align: center;
}

.sw {
    display: inline-block;
    padding: 0.14em 0.32em;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.015em;
    color: #fff;
    background: transparent;
    border-radius: 5px;
    box-shadow: none;
    text-shadow: 0 1px 3px rgba(0,0,0,0.85), 0 2px 8px rgba(0,0,0,0.7);
    white-space: nowrap;
    animation: captionActive 4.2s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.sw--1 { animation-delay: 0s; }
.sw--2 { animation-delay: 0.58s; }
.sw--3 { animation-delay: 1.16s; }
.sw--4 { animation-delay: 1.74s; }
.sw--5 { animation-delay: 2.32s; }
.sw--6 { animation-delay: 2.9s; }

@keyframes captionActive {
    0%, 6% {
        background: transparent;
        color: #fff;
        transform: scale(1);
        box-shadow: none;
    }
    10% {
        background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
        color: #0a0a0a;
        transform: scale(1.04);
        box-shadow: 0 4px 12px rgba(251,191,36,0.5);
        text-shadow: none;
    }
    16% {
        background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
        color: #0a0a0a;
        transform: scale(1.06);
        box-shadow: 0 4px 14px rgba(251,191,36,0.6);
        text-shadow: none;
    }
    22% {
        background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
        color: #0a0a0a;
        transform: scale(1.03);
        box-shadow: 0 3px 10px rgba(251,191,36,0.4);
        text-shadow: none;
    }
    30%, 100% {
        background: transparent;
        color: #fff;
        transform: scale(1);
        box-shadow: none;
    }
}

.outputs-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 18px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
}

.outputs-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-align: center;
}

.outputs-stat__number {
    font-family: 'Sora', 'Manrope', sans-serif;
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: rgba(255,255,255,0.95);
}

.outputs-stat__desc {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
    margin: 0;
}

@media (max-width: 980px) {
    .outputs-grid {
        grid-template-columns: 1fr;
    }
    .outputs-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   SCENE 4 :: AUDIENCE
   ═══════════════════════════════════════════════════════════════ */

.audience-row {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.85rem;
}

.audience-card {
    padding: 1.4rem 1.1rem;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.012) 100%);
    border: 1px solid rgba(255,255,255,0.07);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-height: 180px;
    transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.audience-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 50% 0%, var(--accent, rgba(255,255,255,0.08)) 0%, transparent 55%);
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.audience-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.18);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}
.audience-card:hover::before {
    opacity: 0.9;
}

.audience-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 1;
}

.audience-card__icon i {
    width: 1.15rem;
    height: 1.15rem;
    stroke-width: 2;
    color: rgba(255,255,255,0.85);
}

.audience-card__icon--youtube {
    background: rgba(248, 113, 113, 0.14);
    border-color: rgba(248, 113, 113, 0.32);
}
.audience-card__icon--youtube i { color: #f87171; }
.audience-card:has(.audience-card__icon--youtube) { --accent: rgba(248, 113, 113, 0.12); }

.audience-card__icon--shorts {
    background: rgba(167, 139, 250, 0.14);
    border-color: rgba(167, 139, 250, 0.32);
}
.audience-card__icon--shorts i { color: #a78bfa; }
.audience-card:has(.audience-card__icon--shorts) { --accent: rgba(167, 139, 250, 0.12); }

.audience-card__icon--course {
    background: rgba(74, 222, 128, 0.14);
    border-color: rgba(74, 222, 128, 0.32);
}
.audience-card__icon--course i { color: #4ade80; }
.audience-card:has(.audience-card__icon--course) { --accent: rgba(74, 222, 128, 0.12); }

.audience-card__icon--podcast {
    background: rgba(251, 191, 36, 0.14);
    border-color: rgba(251, 191, 36, 0.32);
}
.audience-card__icon--podcast i { color: #fbbf24; }
.audience-card:has(.audience-card__icon--podcast) { --accent: rgba(251, 191, 36, 0.12); }

.audience-card__icon--founder {
    background: rgba(96, 165, 250, 0.14);
    border-color: rgba(96, 165, 250, 0.32);
}
.audience-card__icon--founder i { color: #60a5fa; }
.audience-card:has(.audience-card__icon--founder) { --accent: rgba(96, 165, 250, 0.12); }

.audience-card__title {
    font-family: 'Sora', 'Manrope', sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: rgba(255,255,255,0.98);
    margin: 0;
    line-height: 1.25;
    position: relative;
    z-index: 1;
}

.audience-card__desc {
    font-size: 0.82rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.58);
    margin: 0;
    position: relative;
    z-index: 1;
}

@media (max-width: 1100px) {
    .audience-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 720px) {
    .audience-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .audience-row {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════
   SCENE 5 :: FINAL CTA (simple)
   ═══════════════════════════════════════════════════════════════ */

.cta-final {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.cta-final__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 2.8rem;
    background: #fff;
    color: #000;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    border-radius: 14px;
    text-decoration: none;
    transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), box-shadow 0.25s ease;
    box-shadow: 0 12px 36px rgba(255,255,255,0.16), 0 0 0 1px rgba(255,255,255,0.08);
}

.cta-final__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 48px rgba(255,255,255,0.24), 0 0 0 1px rgba(255,255,255,0.12);
}

.cta-final__perks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cta-final__perks li {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255,255,255,0.65);
}

.cta-final__perks i {
    width: 1rem;
    height: 1rem;
    color: #4ade80;
}

@media (max-width: 640px) {
    .cta-final__perks {
        flex-direction: column;
        gap: 0.6rem;
    }
}
