/* Restry — product landing + tool */

:root {
    --bg: #0a0a0c;
    --bg-alt: #111114;
    --bg-elevated: #18181c;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-hover: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --text: #ffffff;
    --muted: #9b9ba6;
    --muted-soft: #6b6b76;
    --accent: #3b9eff;
    --accent-2: #1d8ef0;
    --accent-secondary: #8b5cf6;
    --accent-glow: rgba(59, 158, 255, 0.38);
    --ok: #34d399;
    --warn: #fbbf24;
    --err: #f87171;
    --nav-h: 68px;
    --max: 1120px;
    --tool-max: 640px;
    --section-pad: clamp(64px, 10vw, 120px);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-panel: cubic-bezier(0.33, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.02em;
    cursor: pointer;
    border: none;
    transition:
        background 0.22s var(--ease-soft),
        border-color 0.22s var(--ease-soft),
        transform 0.22s var(--ease-soft),
        box-shadow 0.28s var(--ease-soft),
        filter 0.22s ease;
}

.btn:active {
    transform: scale(0.98);
}

.btn--motion {
    --mag-x: 0px;
    --mag-y: 0px;
    transition:
        background 0.22s var(--ease-soft),
        border-color 0.22s var(--ease-soft),
        transform 0.32s cubic-bezier(0.34, 1.45, 0.64, 1),
        box-shadow 0.32s var(--ease-soft),
        filter 0.22s ease;
}

.btn--motion:active {
    transform: translateY(0) translate(var(--mag-x), var(--mag-y)) scale(0.96);
    box-shadow: 0 4px 16px rgba(59, 158, 255, 0.2);
    transition-duration: 0.08s;
}

.btn--motion:hover {
    transform: translateY(-5px) translate(var(--mag-x), var(--mag-y));
}

.btn--motion:hover .btn__label {
    transform: translateX(2px);
}

.btn__label {
    display: inline-block;
    transition: transform 0.32s cubic-bezier(0.34, 1.45, 0.64, 1);
}

.btn--motion:hover .btn__chev {
    transform: translateX(5px);
}

.btn__chev {
    display: inline-block;
    font-size: 13px;
    opacity: 0.55;
    transition: transform 0.28s var(--ease-soft), opacity 0.22s ease;
}

.btn--motion:hover .btn__chev {
    opacity: 0.95;
}

.btn--primary.btn--motion:hover {
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.14) inset,
        0 18px 52px rgba(59, 158, 255, 0.5),
        0 0 48px rgba(59, 158, 255, 0.28);
    filter: brightness(1.1);
}

.btn--secondary.btn--motion:hover {
    border-color: rgba(59, 158, 255, 0.28);
    box-shadow: 0 0 24px rgba(59, 158, 255, 0.12);
}

.btn--secondary.btn--motion:active {
    box-shadow: 0 0 12px rgba(59, 158, 255, 0.1);
}

.btn--lg {
    min-height: 48px;
    padding: 0 26px;
    font-size: 15px;
}

.btn--primary {
    color: #fff;
    background: linear-gradient(180deg, #5eb3ff 0%, var(--accent) 100%);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset, 0 12px 40px var(--accent-glow);
}

.btn--primary:hover {
    filter: brightness(1.08);
}

.btn--secondary {
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.btn--secondary:hover {
    background: var(--surface-hover);
    border-color: var(--border-strong);
}

.btn--ghost {
    min-height: 38px;
    padding: 0 14px;
    font-size: 13px;
    color: var(--text);
    background: transparent;
    border: 1px solid var(--border);
}

.btn--ghost:hover {
    background: var(--surface);
}

.btn--block {
    width: 100%;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.site-brand__mark {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 12px var(--accent-glow);
}

/* --- Background --- */
.page-landing {
    position: relative;
    overflow-x: hidden;
}

.bg-shapes {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
}

.bg-shape--1 {
    width: 640px;
    height: 640px;
    top: -220px;
    left: 50%;
    transform: translateX(-58%);
    background: radial-gradient(circle, rgba(59, 158, 255, 0.22) 0%, transparent 68%);
}

.bg-shape--2 {
    width: 420px;
    height: 420px;
    top: 35%;
    right: -120px;
    background: radial-gradient(circle, rgba(29, 142, 240, 0.14) 0%, transparent 70%);
}

.bg-shape--3 {
    width: 360px;
    height: 360px;
    bottom: 5%;
    left: -100px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, black, transparent);
    opacity: 0.4;
}

/* Decorative drifting blue strokes (hero zone) */
.bg-line {
    position: absolute;
    pointer-events: none;
    height: 1px;
    width: min(120vw, 1400px);
    left: 50%;
    opacity: 0.055;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(59, 158, 255, 0.25) 20%,
        rgba(126, 200, 255, 0.55) 50%,
        rgba(59, 158, 255, 0.25) 80%,
        transparent 100%
    );
    transform-origin: center;
    will-change: transform, opacity;
}

.bg-line--1 {
    top: 18%;
    transform: translateX(-50%) rotate(-9deg);
    animation: bg-line-drift-a 38s ease-in-out infinite;
}

.bg-line--2 {
    top: 42%;
    transform: translateX(-48%) rotate(-5deg);
    opacity: 0.04;
    animation: bg-line-drift-b 48s ease-in-out infinite;
    animation-delay: -12s;
}

.bg-line--3 {
    top: 62%;
    width: min(90vw, 900px);
    transform: translateX(-52%) rotate(-11deg);
    opacity: 0.035;
    animation: bg-line-drift-c 44s ease-in-out infinite;
    animation-delay: -6s;
}

@keyframes bg-line-drift-a {
    0%, 100% {
        transform: translateX(-52%) rotate(-9deg) translateY(0);
    }

    50% {
        transform: translateX(-48%) rotate(-7deg) translateY(12px);
    }
}

@keyframes bg-line-drift-b {
    0%, 100% {
        transform: translateX(-50%) rotate(-5deg) translateY(0);
    }

    50% {
        transform: translateX(-46%) rotate(-7deg) translateY(-10px);
    }
}

@keyframes bg-line-drift-c {
    0%, 100% {
        transform: translateX(-54%) rotate(-11deg) scaleX(1);
    }

    50% {
        transform: translateX(-48%) rotate(-8deg) scaleX(1.04);
    }
}



/* --- Nav --- */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    height: var(--nav-h);
    border-bottom: 1px solid var(--border);
    background: rgba(10, 10, 12, 0.78);
    backdrop-filter: blur(16px);
}

.site-nav__inner,
.tool-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(var(--max), calc(100% - 40px));
    height: 100%;
    margin: 0 auto;
}

.site-nav__links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav__link {
    position: relative;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    border-radius: 8px;
    transition:
        color 0.22s var(--ease-soft),
        background 0.22s var(--ease-soft),
        opacity 0.22s ease,
        transform 0.22s var(--ease-soft);
}

.site-nav__link::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 5px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transform: scaleX(0.4);
    transition: opacity 0.25s var(--ease-soft), transform 0.28s var(--ease-soft);
}

.site-nav__link:hover {
    color: var(--text);
    background: var(--surface);
    opacity: 1;
}

.site-nav__link:hover::after {
    opacity: 0.55;
    transform: scaleX(1);
}

.site-nav__link--ghost {
    margin-left: 4px;
}

.site-nav__link--ghost:hover {
    transform: translateY(-1px);
}

.site-nav__link--ghost::after,
.site-nav__link--cta::after {
    display: none;
}

.site-nav__link--cta {
    margin-left: 4px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    transition:
        background 0.22s var(--ease-soft),
        border-color 0.22s var(--ease-soft),
        box-shadow 0.28s var(--ease-soft),
        transform 0.22s var(--ease-soft);
}

.site-nav__link--cta:hover {
    background: var(--surface-hover);
    border-color: rgba(59, 158, 255, 0.22);
    box-shadow: 0 0 20px rgba(59, 158, 255, 0.08);
    transform: translateY(-1px);
}

/* --- Landing hero --- */
.page-landing main {
    position: relative;
    z-index: 1;
}

.landing-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
    padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 6vw, 64px);
}

.landing-eyebrow,
.section-eyebrow {
    margin: 0 0 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.landing-title {
    margin: 0;
    font-size: clamp(44px, 6.5vw, 72px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.landing-title__accent {
    background: linear-gradient(90deg, #7ec8ff, var(--accent) 55%, var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.landing-lead {
    margin: 24px 0 0;
    max-width: 480px;
    font-size: 18px;
    line-height: 1.65;
    color: var(--muted);
}

.landing-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

.landing-cta-row--center {
    justify-content: center;
}

.landing-hint {
    margin: 20px 0 0;
    font-size: 13px;
    color: var(--muted-soft);
}



.landing-hero__visual {
    position: relative;
    min-height: 280px;
}

.hero-card-float {
    position: absolute;
    will-change: transform;
}

.hero-card-float--back {
    top: 12px;
    right: 24px;
}

.hero-card-float--front {
    top: 56px;
    left: 0;
}

.hero-card {
    position: relative;
    padding: 20px 22px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
    transition:
        border-color 0.28s var(--ease-soft),
        box-shadow 0.35s var(--ease-soft),
        transform 0.28s var(--ease-soft);
}

.hero-card--back {
    width: 200px;
    opacity: 0.7;
    transform: rotate(4deg);
}

.hero-card--front {
    width: min(100%, 300px);
    background:
        radial-gradient(ellipse 100% 80% at 50% 0%, rgba(59, 158, 255, 0.12), transparent),
        var(--bg-elevated);
    border-color: rgba(59, 158, 255, 0.22);
}

html.motion-ok .hero-card-float--back {
    animation: hero-float-a 14s ease-in-out infinite;
    animation-delay: 0.3s;
}

html.motion-ok .hero-card-float--front {
    animation: hero-float-b 18s ease-in-out infinite;
    animation-delay: -4s;
}

@keyframes hero-float-a {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(-6px) translateX(2px);
    }
}

@keyframes hero-float-b {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(-8px) translateX(-3px);
    }
}

.hero-card__label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.hero-card__value {
    display: block;
    margin-top: 6px;
    font-size: 15px;
    font-weight: 600;
}

.hero-card__badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: #7ec8ff;
    background: rgba(59, 158, 255, 0.12);
    border: 1px solid rgba(59, 158, 255, 0.22);
}

.hero-card__stat {
    margin: 14px 0 16px;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.hero-card__bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-card__bars span {
    display: block;
    height: 6px;
    width: var(--w, 50%);
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    opacity: 0.85;
}

/* Hero entrance (first paint) */
@keyframes hero-in-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-in-title {
    from {
        opacity: 0;
        transform: translateY(32px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes hero-in-visual {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

html.motion-ok .hero-motion--eyebrow {
    animation: hero-in-up 0.9s var(--ease-out-expo) both;
    animation-delay: 0.08s;
}

html.motion-ok .hero-motion--title {
    animation: hero-in-title 1.05s var(--ease-out-expo) both;
    animation-delay: 0.14s;
}

html.motion-ok .hero-motion--lead {
    animation: hero-in-up 0.95s var(--ease-out-expo) both;
    animation-delay: 0.26s;
}

html.motion-ok .hero-motion--cta-1 {
    animation: hero-in-up 0.9s var(--ease-out-expo) both;
    animation-delay: 0.38s;
}

html.motion-ok .hero-motion--cta-2 {
    animation: hero-in-up 0.9s var(--ease-out-expo) both;
    animation-delay: 0.46s;
}

html.motion-ok .hero-motion--hint {
    animation: hero-in-up 0.85s var(--ease-out-expo) both;
    animation-delay: 0.54s;
}

html.motion-ok .hero-motion--visual,
html.motion-ok .hero-motion--demo {
    animation: hero-in-visual 1.15s var(--ease-out-expo) both;
    animation-delay: 0.52s;
}

/* --- Landing sections --- */
.landing-section {
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
    padding: var(--section-pad) 0;
}

.landing-section--alt {
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.landing-section--alt > * {
    width: min(var(--max), calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
}

.landing-section__head {
    max-width: 640px;
    margin-bottom: 48px;
}

.landing-section__head--narrow {
    max-width: 520px;
}

.section-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.1;
    color: var(--text);
}

.section-lead {
    margin: 16px 0 0;
    font-size: 17px;
    line-height: 1.6;
    color: var(--muted);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.benefit-card {
    padding: 24px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface);
    transition:
        border-color 0.25s var(--ease-soft),
        background 0.25s var(--ease-soft),
        transform 0.28s var(--ease-soft),
        box-shadow 0.35s var(--ease-soft);
}

.benefit-card:hover {
    border-color: rgba(59, 158, 255, 0.32);
    background: var(--surface-hover);
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 28px rgba(59, 158, 255, 0.08);
}

.benefit-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
    border-radius: 10px;
    font-size: 18px;
    background: rgba(59, 158, 255, 0.1);
    border: 1px solid rgba(59, 158, 255, 0.22);
    color: #7ec8ff;
}

.benefit-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.benefit-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--muted);
}

/* --- Scroll reveal (landing sections) --- */
.reveal-on-scroll:not(.is-inview) > .landing-section__head,
.reveal-on-scroll:not(.is-inview) > .landing-section__head--narrow {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
}

.reveal-on-scroll.is-inview > .landing-section__head,
.reveal-on-scroll.is-inview > .landing-section__head--narrow {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition:
        opacity 0.75s var(--ease-out-expo),
        transform 0.75s var(--ease-out-expo);
}

#benefits.reveal-on-scroll:not(.is-inview) .benefits-grid > *,
#use-cases.reveal-on-scroll:not(.is-inview) .use-cases-grid > * {
    opacity: 0;
    transform: translateY(16px);
}

#benefits.reveal-on-scroll.is-inview .benefits-grid > *:nth-child(1),
#use-cases.reveal-on-scroll.is-inview .use-cases-grid > *:nth-child(1) {
    transition:
        opacity 0.7s var(--ease-out-expo),
        transform 0.7s var(--ease-out-expo);
    transition-delay: 0.06s;
}

#benefits.reveal-on-scroll.is-inview .benefits-grid > *:nth-child(2),
#use-cases.reveal-on-scroll.is-inview .use-cases-grid > *:nth-child(2) {
    transition:
        opacity 0.7s var(--ease-out-expo),
        transform 0.7s var(--ease-out-expo);
    transition-delay: 0.12s;
}

#benefits.reveal-on-scroll.is-inview .benefits-grid > *:nth-child(3),
#use-cases.reveal-on-scroll.is-inview .use-cases-grid > *:nth-child(3) {
    transition:
        opacity 0.7s var(--ease-out-expo),
        transform 0.7s var(--ease-out-expo);
    transition-delay: 0.18s;
}

#benefits.reveal-on-scroll.is-inview .benefits-grid > *:nth-child(4),
#use-cases.reveal-on-scroll.is-inview .use-cases-grid > *:nth-child(4) {
    transition:
        opacity 0.7s var(--ease-out-expo),
        transform 0.7s var(--ease-out-expo);
    transition-delay: 0.24s;
}

#benefits.reveal-on-scroll.is-inview .benefits-grid > *,
#use-cases.reveal-on-scroll.is-inview .use-cases-grid > * {
    opacity: 1;
    transform: translateY(0);
}

#outputs.reveal-on-scroll:not(.is-inview) .outputs-panel,
#demo.reveal-on-scroll:not(.is-inview) .demo-panel {
    opacity: 0;
    transform: translateY(16px);
}

#outputs.reveal-on-scroll.is-inview .outputs-panel,
#demo.reveal-on-scroll.is-inview .demo-panel {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 0.75s var(--ease-out-expo),
        transform 0.75s var(--ease-out-expo);
    transition-delay: 0.08s;
}

#faq.reveal-on-scroll:not(.is-inview) .faq-list .faq-item {
    opacity: 0;
    transform: translateY(14px);
}

#faq.reveal-on-scroll.is-inview .faq-list .faq-item:nth-child(1) {
    transition:
        opacity 0.65s var(--ease-out-expo),
        transform 0.65s var(--ease-out-expo);
    transition-delay: 0.04s;
}

#faq.reveal-on-scroll.is-inview .faq-list .faq-item:nth-child(2) {
    transition:
        opacity 0.65s var(--ease-out-expo),
        transform 0.65s var(--ease-out-expo);
    transition-delay: 0.1s;
}

#faq.reveal-on-scroll.is-inview .faq-list .faq-item:nth-child(3) {
    transition:
        opacity 0.65s var(--ease-out-expo),
        transform 0.65s var(--ease-out-expo);
    transition-delay: 0.16s;
}

#faq.reveal-on-scroll.is-inview .faq-list .faq-item:nth-child(4) {
    transition:
        opacity 0.65s var(--ease-out-expo),
        transform 0.65s var(--ease-out-expo);
    transition-delay: 0.22s;
}

#faq.reveal-on-scroll.is-inview .faq-list .faq-item:nth-child(5) {
    transition:
        opacity 0.65s var(--ease-out-expo),
        transform 0.65s var(--ease-out-expo);
    transition-delay: 0.28s;
}

#faq.reveal-on-scroll.is-inview .faq-list .faq-item {
    opacity: 1;
    transform: translateY(0);
}

.landing-cta-band.reveal-on-scroll:not(.is-inview) .landing-cta-band__inner > * {
    opacity: 0;
    transform: translateY(16px);
}

.landing-cta-band.reveal-on-scroll.is-inview .landing-cta-band__inner > .landing-cta-band__title {
    transition:
        opacity 0.75s var(--ease-out-expo),
        transform 0.75s var(--ease-out-expo);
    transition-delay: 0.04s;
}

.landing-cta-band.reveal-on-scroll.is-inview .landing-cta-band__inner > .landing-cta-band__lead {
    transition:
        opacity 0.75s var(--ease-out-expo),
        transform 0.75s var(--ease-out-expo);
    transition-delay: 0.12s;
}

.landing-cta-band.reveal-on-scroll.is-inview .landing-cta-band__inner > .landing-cta-row {
    transition:
        opacity 0.75s var(--ease-out-expo),
        transform 0.75s var(--ease-out-expo);
    transition-delay: 0.2s;
}

.landing-cta-band.reveal-on-scroll.is-inview .landing-cta-band__inner > * {
    opacity: 1;
    transform: translateY(0);
}

/* --- How it works (Raycast-style demo) --- */
section.how-flow {
    padding: clamp(96px, 12vw, 140px) 0;
}

.how-flow__inner {
    width: min(800px, calc(100% - 40px));
    margin: 0 auto;
    text-align: center;
}

.how-flow__header > * {
    opacity: 0;
    transform: translateY(18px);
}

.how-flow.is-inview .how-flow__header > * {
    animation: hf-reveal 0.75s var(--ease-out-expo) forwards;
}

.how-flow.is-inview .how-flow__eyebrow {
    animation-delay: 0.05s;
}

.how-flow.is-inview .how-flow__title {
    animation-delay: 0.12s;
}

.how-flow.is-inview .how-flow__sub {
    animation-delay: 0.2s;
}

@keyframes hf-reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hf-panel-in {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.how-flow__eyebrow {
    margin: 0 0 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.how-flow__title {
    margin: 0;
    font-size: clamp(30px, 5vw, 44px);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.08;
    color: var(--text);
}

.how-flow__sub {
    margin: 14px auto 0;
    max-width: 460px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--muted);
}

.how-flow__panel {
    margin-top: 48px;
    opacity: 0;
    transform: translateY(24px) scale(0.98);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: linear-gradient(180deg, #16161a 0%, #101014 100%);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.5) inset,
        0 24px 64px rgba(0, 0, 0, 0.45),
        0 0 80px rgba(59, 158, 255, 0.04);
    overflow: hidden;
    text-align: left;
}

.how-flow.is-inview .how-flow__panel {
    animation: hf-panel-in 0.85s var(--ease-out-expo) 0.12s forwards;
}

.how-flow__chrome {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.25);
}

.how-flow__traffic {
    display: flex;
    gap: 6px;
}

.how-flow__traffic span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.how-flow__traffic span:nth-child(1) {
    background: rgba(255, 95, 87, 0.55);
}

.how-flow__traffic span:nth-child(2) {
    background: rgba(255, 189, 46, 0.55);
}

.how-flow__traffic span:nth-child(3) {
    background: rgba(39, 201, 63, 0.45);
}

.how-flow__chrome-title {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted-soft);
    letter-spacing: -0.01em;
}

.how-flow__viewport {
    position: relative;
    padding: 28px 24px 24px;
    min-height: 200px;
}

.how-flow__status {
    position: relative;
    height: 18px;
    margin-bottom: 22px;
}

.how-flow__status-line {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
    opacity: 0;
    letter-spacing: -0.01em;
}

.how-flow__tracks {
    display: flex;
    flex-direction: column;
    gap: 18px;
}



.how-flow__track-row {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}

.how-flow__track-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted-soft);
}

.how-flow__track {
    display: flex;
    gap: 3px;
    align-items: stretch;
    height: 40px;
    min-width: 0;
}

.hf-seg {
    flex: var(--w) 1 0;
    min-width: 0;
    border-radius: 5px;
    position: relative;
}

.hf-seg--clip {
    background: linear-gradient(180deg, #45454f 0%, #32323a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.hf-seg--gap {
    background: #1a1a22;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.how-flow__track-row--result {
    opacity: 0;
    transform: translateY(10px);
}

.how-flow__track--result {
    max-width: 68%;
}

.how-flow__scanner {
    position: absolute;
    top: 62px;
    bottom: 52px;
    left: 80px;
    width: 2px;
    border-radius: 1px;
    background: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
    opacity: 0;
    pointer-events: none;
}

.how-flow__saved {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    margin-top: 22px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(59, 158, 255, 0.25);
    background: rgba(59, 158, 255, 0.08);
    opacity: 0;
    transform: translateY(6px);
}

.how-flow__saved-num {
    font-size: 18px;
    font-weight: 800;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.04em;
}

.how-flow__saved-unit {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}

/* Looping demo (12s) — polished easing */
.how-flow.is-playing .hf-seg--gap {
    animation:
        hf-gap-find 12s cubic-bezier(0.37, 0, 0.21, 1) infinite,
        hf-gap-select 12s cubic-bezier(0.37, 0, 0.21, 1) infinite,
        hf-gap-collapse 12s cubic-bezier(0.37, 0, 0.21, 1) infinite;
}

.how-flow.is-playing .hf-seg--gap[data-i="0"] {
    animation-delay: 0s, 0s, 0s;
}

.how-flow.is-playing .hf-seg--gap[data-i="1"] {
    animation-delay: 0.08s, 0.08s, 0.08s;
}

.how-flow.is-playing .hf-seg--gap[data-i="2"] {
    animation-delay: 0.16s, 0.16s, 0.16s;
}

.how-flow.is-playing .how-flow__scanner {
    animation: hf-scanner 12s cubic-bezier(0.37, 0, 0.21, 1) infinite;
}

.how-flow.is-playing .how-flow__status-line--scan {
    animation: hf-status-scan 12s cubic-bezier(0.37, 0, 0.21, 1) infinite;
}

.how-flow.is-playing .how-flow__status-line--select {
    animation: hf-status-select 12s cubic-bezier(0.37, 0, 0.21, 1) infinite;
}

.how-flow.is-playing .how-flow__status-line--collapse {
    animation: hf-status-collapse 12s cubic-bezier(0.37, 0, 0.21, 1) infinite;
}

.how-flow.is-playing .how-flow__track-row--result {
    animation: hf-result-row 12s cubic-bezier(0.37, 0, 0.21, 1) infinite;
}

.how-flow.is-playing .how-flow__track--result .hf-seg--clip {
    animation: hf-clip-snap 12s cubic-bezier(0.37, 0, 0.21, 1) infinite;
}

.how-flow.is-playing .how-flow__saved {
    animation: hf-saved-in 12s cubic-bezier(0.37, 0, 0.21, 1) infinite;
}

/* Hero timeline demo — faster 9s loop */
.how-flow--hero.is-playing .hf-seg--gap {
    animation:
        hf-gap-find 9s cubic-bezier(0.33, 0, 0.2, 1) infinite,
        hf-gap-select 9s cubic-bezier(0.33, 0, 0.2, 1) infinite,
        hf-gap-collapse 9s cubic-bezier(0.33, 0, 0.2, 1) infinite;
}

.how-flow--hero.is-playing .hf-seg--gap[data-i="0"] {
    animation-delay: 0s, 0s, 0s;
}

.how-flow--hero.is-playing .hf-seg--gap[data-i="1"] {
    animation-delay: 0.06s, 0.06s, 0.06s;
}

.how-flow--hero.is-playing .hf-seg--gap[data-i="2"] {
    animation-delay: 0.12s, 0.12s, 0.12s;
}

.how-flow--hero.is-playing .how-flow__scanner {
    animation: hf-scanner 9s cubic-bezier(0.33, 0, 0.2, 1) infinite;
}

.how-flow--hero.is-playing .how-flow__status-line--scan {
    animation: hf-status-scan 9s cubic-bezier(0.33, 0, 0.2, 1) infinite;
}

.how-flow--hero.is-playing .how-flow__status-line--select {
    animation: hf-status-select 9s cubic-bezier(0.33, 0, 0.2, 1) infinite;
}

.how-flow--hero.is-playing .how-flow__status-line--collapse {
    animation: hf-status-collapse 9s cubic-bezier(0.33, 0, 0.2, 1) infinite;
}

.how-flow--hero.is-playing .how-flow__track-row--result {
    animation: hf-result-row 9s cubic-bezier(0.33, 0, 0.2, 1) infinite;
}

.how-flow--hero.is-playing .how-flow__track--result .hf-seg--clip {
    animation: hf-clip-snap 9s cubic-bezier(0.33, 0, 0.2, 1) infinite;
}

.how-flow--hero.is-playing .how-flow__saved {
    animation: hf-saved-in 9s cubic-bezier(0.33, 0, 0.2, 1) infinite;
}

@keyframes hf-gap-find {
    0%, 12% {
        background: #1a1a22;
        box-shadow: none;
    }

    16%, 32% {
        background: rgba(59, 158, 255, 0.55);
        border-color: rgba(59, 158, 255, 0.4);
        box-shadow: 0 0 14px rgba(59, 158, 255, 0.35);
    }

    36%, 92% {
        background: rgba(59, 158, 255, 0.2);
        box-shadow: none;
    }

    96%, 100% {
        background: #1a1a22;
        box-shadow: none;
    }
}

@keyframes hf-gap-select {
    0%, 30% {
        outline: 2px solid transparent;
        outline-offset: 1px;
    }

    34%, 48% {
        outline: 2px solid rgba(126, 200, 255, 0.95);
        outline-offset: 1px;
        background: rgba(59, 158, 255, 0.75);
    }

    52%, 100% {
        outline: 2px solid transparent;
        outline-offset: 1px;
    }
}

@keyframes hf-gap-collapse {
    0%, 44% {
        flex-grow: var(--w);
        opacity: 1;
        max-width: none;
        transform: scaleX(1);
    }

    48% {
        transform: scaleX(0.92);
    }

    56%, 88% {
        flex-grow: 0;
        opacity: 0;
        max-width: 0;
        transform: scaleX(0.06);
        border-width: 0;
    }

    93%, 100% {
        flex-grow: var(--w);
        opacity: 1;
        max-width: none;
        transform: scaleX(1);
    }
}

@keyframes hf-scanner {
    0%, 10% {
        opacity: 0;
        left: 80px;
    }

    14% {
        opacity: 1;
    }

    34% {
        opacity: 1;
        left: calc(100% - 28px);
    }

    38%, 100% {
        opacity: 0;
        left: calc(100% - 28px);
    }
}

@keyframes hf-status-scan {
    0%, 10% { opacity: 0; }
    14%, 32% { opacity: 1; }
    36%, 100% { opacity: 0; }
}

@keyframes hf-status-select {
    0%, 32% { opacity: 0; }
    36%, 48% { opacity: 1; }
    52%, 100% { opacity: 0; }
}

@keyframes hf-status-collapse {
    0%, 48% { opacity: 0; }
    52%, 68% { opacity: 1; }
    72%, 100% { opacity: 0; }
}

@keyframes hf-result-row {
    0%, 52% {
        opacity: 0;
        transform: translateY(14px);
    }

    58%, 90% {
        opacity: 1;
        transform: translateY(0);
    }

    96%, 100% {
        opacity: 0;
        transform: translateY(12px);
    }
}

@keyframes hf-clip-snap {
    0%, 54% {
        transform: scaleX(0.94);
        opacity: 0.55;
    }

    62%, 88% {
        transform: scaleX(1);
        opacity: 1;
    }

    94%, 100% {
        transform: scaleX(0.94);
        opacity: 0.55;
    }
}

@keyframes hf-saved-in {
    0%, 64% {
        opacity: 0;
        transform: translateY(6px);
    }

    72%, 90% {
        opacity: 1;
        transform: translateY(0);
    }

    96%, 100% {
        opacity: 0;
        transform: translateY(6px);
    }
}

.how-flow__captions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    list-style: none;
    margin: 32px 0 0;
    padding: 0;
    text-align: center;
    opacity: 0;
    transform: translateY(12px);
}

.how-flow.is-inview .how-flow__captions {
    animation: hf-reveal 0.7s var(--ease-out-expo) 0.32s forwards;
}

.how-flow__caption {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--muted-soft);
}

.how-flow__caption-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
}

.how-flow__caption-desc {
    font-size: 12px;
    line-height: 1.45;
    color: var(--muted-soft);
}

.how-flow.is-playing .how-flow__caption--1 .how-flow__caption-title {
    animation: hf-cap-title-1 12s cubic-bezier(0.37, 0, 0.21, 1) infinite;
}

.how-flow.is-playing .how-flow__caption--2 .how-flow__caption-title {
    animation: hf-cap-title-2 12s cubic-bezier(0.37, 0, 0.21, 1) infinite;
}

.how-flow.is-playing .how-flow__caption--3 .how-flow__caption-title {
    animation: hf-cap-title-3 12s cubic-bezier(0.37, 0, 0.21, 1) infinite;
}

@keyframes hf-cap-title-1 {
    0%, 30%, 100% { color: var(--text); }
    6%, 24% { color: var(--accent); }
}

@keyframes hf-cap-title-2 {
    0%, 28%, 52%, 100% { color: var(--text); }
    32%, 48% { color: var(--accent); }
}

@keyframes hf-cap-title-3 {
    0%, 54%, 100% { color: var(--text); }
    58%, 88% { color: var(--accent); }
}

@keyframes hf-caption-2 {
    0%, 28%, 52%, 100% { opacity: 0.75; }
    32%, 48% { opacity: 1; }
}

@keyframes hf-caption-3 {
    0%, 54%, 100% { opacity: 0.75; }
    58%, 88% { opacity: 1; }
}

.how-flow.is-playing .how-flow__caption--2 {
    animation: hf-caption-2 12s cubic-bezier(0.37, 0, 0.21, 1) infinite;
}

.how-flow.is-playing .how-flow__caption--3 {
    animation: hf-caption-3 12s cubic-bezier(0.37, 0, 0.21, 1) infinite;
}

@media (prefers-reduced-motion: reduce) {
    .how-flow__header > *,
    .how-flow__panel,
    .how-flow__captions {
        opacity: 1;
        transform: none;
        animation: none !important;
    }

    .how-flow .hf-seg--gap {
        flex-grow: 0 !important;
        opacity: 0 !important;
        max-width: 0 !important;
    }

    .how-flow__track-row--result {
        opacity: 1 !important;
        transform: none !important;
    }

    .how-flow__saved {
        opacity: 1 !important;
        transform: none !important;
    }

    .how-flow__scanner {
        display: none;
    }

    .how-flow__status-line--collapse {
        opacity: 1;
    }

    .how-flow.is-playing .hf-seg--gap,
    .how-flow.is-playing .how-flow__scanner,
    .how-flow.is-playing .how-flow__status-line,
    .how-flow.is-playing .how-flow__track-row--result,
    .how-flow.is-playing .how-flow__track--result .hf-seg--clip,
    .how-flow.is-playing .how-flow__saved,
    .how-flow.is-playing .how-flow__caption,
    .how-flow.is-playing .how-flow__caption-title {
        animation: none !important;
    }

    .how-flow__caption--3 .how-flow__caption-title {
        color: var(--accent);
    }
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.use-case-card {
    padding: 24px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface);
    transition:
        border-color 0.25s var(--ease-soft),
        background 0.25s var(--ease-soft),
        transform 0.28s var(--ease-soft);
}

.use-case-card:hover {
    border-color: rgba(59, 158, 255, 0.28);
    background: var(--surface-hover);
    transform: translateY(-2px);
}

.use-case-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
}

.use-case-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--muted);
}

.demo-panel {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 16px;
}

.demo-stat-card {
    padding: 24px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface);
}

.demo-stat-card--hero {
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(59, 158, 255, 0.12), transparent),
        var(--surface);
    border-color: rgba(59, 158, 255, 0.22);
}

.demo-stat-card__label {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.demo-stat-card__value {
    margin: 0;
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.demo-stat-card__value span {
    font-size: 0.5em;
    color: var(--accent);
}

.demo-stat-card__note {
    margin: 12px 0 0;
    font-size: 13px;
    color: var(--muted-soft);
}

.demo-summary-list,
.demo-range-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.demo-summary-list li,
.demo-range-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.demo-summary-list li:last-child,
.demo-range-list li:last-child {
    border-bottom: none;
}

.demo-summary-list span,
.demo-range-list span {
    color: var(--muted);
}

.faq-list {
    max-width: 720px;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}

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

.faq-item p {
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
}

.landing-cta-band {
    padding: var(--section-pad) 0;
    text-align: center;
}

.landing-cta-band__inner {
    width: min(640px, calc(100% - 40px));
    margin: 0 auto;
}

.landing-cta-band__title {
    margin: 0;
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.landing-cta-band__lead {
    margin: 14px 0 28px;
    font-size: 16px;
    color: var(--muted);
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 32px 0 48px;
}

.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
    flex-wrap: wrap;
}

.site-footer__copy {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--muted-soft);
}

.site-footer__links {
    display: flex;
    gap: 20px;
    font-size: 13px;
}

.site-footer__links a {
    color: var(--muted);
    transition: color 0.2s ease;
}

.site-footer__links a:hover {
    color: var(--text);
}

/* --- Tool page --- */
.page-tool {
    min-height: 100vh;
}

.tool-nav {
    border-bottom: 1px solid var(--border);
    height: var(--nav-h);
}

.tool-main {
    width: min(var(--tool-max), calc(100% - 40px));
    margin: 0 auto;
    padding: 48px 0 80px;
}

.tool-header {
    margin-bottom: 32px;
}

.tool-title {
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.tool-desc {
    margin: 12px 0 0;
    font-size: 16px;
    color: var(--muted);
    line-height: 1.6;
}

.tool-toast {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.tool-toast--ok {
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.25);
    color: #6ee7b7;
}

.tool-toast--err {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.25);
    color: #fca5a5;
}

.tool-card {
    padding: 28px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
}

.tool-mode-fieldset {
    border: none;
    margin: 0 0 24px;
    padding: 0;
}

.tool-mode-switch {
    display: inline-flex;
    padding: 4px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.tool-mode-option {
    cursor: pointer;
}

.tool-mode-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tool-mode-option span {
    display: block;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}

.tool-mode-option input:checked + span {
    color: var(--text);
    background: rgba(59, 158, 255, 0.15);
    box-shadow: 0 0 0 1px rgba(59, 158, 255, 0.25);
}

.tool-path-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.tool-path-label,
.tool-upload-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}

.tool-path-field input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
}

.tool-upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 36px 24px;
    border-radius: 12px;
    border: 1px dashed rgba(59, 158, 255, 0.35);
    background: rgba(59, 158, 255, 0.04);
    cursor: pointer;
    transition:
        border-color 0.22s ease,
        background 0.22s ease;
}

.tool-upload-zone:hover,
.tool-upload-zone.is-dragover {
    border-color: rgba(59, 158, 255, 0.55);
    background: rgba(59, 158, 255, 0.08);
}

.tool-upload-zone input {
    display: none;
}

.tool-upload-zone__title {
    margin: 0;
    font-weight: 600;
}

.tool-upload-zone__hint {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

.tool-advanced {
    margin: 20px 0;
    font-size: 14px;
}

.tool-advanced-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.tool-advanced-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tool-advanced-field select,
.tool-advanced-field input {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
}

.tool-results {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tool-result {
    padding: 24px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface);
}

.tool-result--highlight {
    border-color: rgba(59, 158, 255, 0.25);
    background: rgba(59, 158, 255, 0.06);
}

.tool-result__label {
    margin: 0 0 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.tool-result__label--sub {
    margin-top: 20px;
}

.tool-result--final-cut {
    border-color: rgba(59, 158, 255, 0.3);
    background: linear-gradient(180deg, rgba(59, 158, 255, 0.07), rgba(59, 158, 255, 0.02));
}

.tool-fc-ready {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tool-fc-ready__title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}

.tool-fc-ready__message {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
}

.tool-fc-ready__message.tool-note--warn {
    color: #ffb199;
}

.tool-fc-ready__file-hint {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.45;
}

.tool-fc-missing-list {
    margin: 10px 0 0;
    padding-left: 18px;
    color: #ffb199;
    font-size: 13px;
    line-height: 1.5;
}

.tool-final-cut-primary {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 8px;
}

.tool-final-cut-form {
    margin-top: 4px;
}

.tool-advanced-output {
    margin-top: 20px;
    padding-top: 4px;
    border-top: 1px solid var(--border);
}

.tool-advanced-output > summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
    list-style: none;
    user-select: none;
}

.tool-advanced-output > summary::-webkit-details-marker {
    display: none;
}

.tool-advanced-output > summary::before {
    content: "▸ ";
    color: var(--muted);
}

.tool-advanced-output[open] > summary::before {
    content: "▾ ";
}

.tool-advanced-output .tool-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.tool-caption-status {
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.tool-caption-status--ok {
    border-color: rgba(59, 158, 255, 0.35);
    background: rgba(59, 158, 255, 0.08);
}

.tool-caption-status--off {
    border-color: rgba(255, 120, 90, 0.25);
    background: rgba(255, 120, 90, 0.06);
}

.tool-caption-status__title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.tool-caption-status__hint {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.45;
}

.tool-final-cut-file-hint {
    margin: 0;
}

.tool-loading {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 24px;
}

.tool-loading[hidden] {
    display: none !important;
}

.tool-loading__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 10, 18, 0.72);
    backdrop-filter: blur(8px);
}

.tool-loading__card {
    position: relative;
    z-index: 1;
    width: min(440px, 100%);
    padding: 32px 28px 26px;
    border-radius: 18px;
    border: 1px solid rgba(59, 158, 255, 0.32);
    background:
        linear-gradient(180deg, rgba(22, 34, 52, 0.98), rgba(10, 16, 28, 0.98));
    box-shadow:
        0 28px 90px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    text-align: center;
}

.tool-loading__brand {
    margin: 0 0 18px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.tool-loading__demo {
    --tl-loop: 5.4s;
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.tool-loading__track {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 6px;
    height: 36px;
    padding: 4px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.tool-loading__track--source {
    transform-origin: left center;
}

.tool-loading__track--result {
    opacity: 0;
    transform: scaleX(0.9) translateY(3px);
    transform-origin: left center;
}

.tool-loading__scan {
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: 0;
    width: 24%;
    border-radius: 8px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(59, 158, 255, 0.12) 18%,
        rgba(59, 158, 255, 0.55) 50%,
        rgba(59, 158, 255, 0.12) 82%,
        transparent 100%
    );
    box-shadow:
        0 0 18px rgba(59, 158, 255, 0.45),
        0 0 36px rgba(59, 158, 255, 0.2);
    transform: translateX(-115%);
    pointer-events: none;
    opacity: 0;
    z-index: 2;
}

.tool-loading__scan::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    margin-left: -1px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 10px rgba(120, 200, 255, 0.95);
}

.tl-seg--clip {
    flex: 1.4 1 0;
    min-width: 14px;
    border-radius: 8px;
    background: linear-gradient(180deg, #9aa8b8, #647384);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.tl-seg--gap {
    flex: 0.75 1 0;
    min-width: 12px;
    border-radius: 8px;
    background: linear-gradient(180deg, #ff7a6a, #e24a3a);
    transform-origin: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.tool-loading__demo.is-looping .tool-loading__scan {
    animation: tool-tl-scan-loop var(--tl-loop) cubic-bezier(0.37, 0, 0.18, 1) infinite;
}

.tool-loading__demo.is-looping .tool-loading__track--source {
    animation: tool-tl-source-loop var(--tl-loop) ease-in-out infinite;
}

.tool-loading__demo.is-looping .tool-loading__track--source .tl-seg--gap {
    animation: tool-tl-gap-loop var(--tl-loop) ease-in-out infinite;
    animation-delay: calc(0.42s + var(--i, 0) * 0.38s);
}

.tool-loading__demo.is-looping .tool-loading__track--result {
    animation: tool-tl-result-loop var(--tl-loop) cubic-bezier(0.33, 0, 0.2, 1) infinite;
}

.tool-loading__demo.is-looping .tool-loading__track--result .tl-seg--clip {
    background: linear-gradient(180deg, #6ec0ff, #2f86dc);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 12px rgba(59, 158, 255, 0.22);
}

.tool-loading__status {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    min-height: 1.4em;
    letter-spacing: 0.01em;
}

body.tool-is-loading {
    overflow: hidden;
}

@keyframes tool-tl-scan-loop {
    0% {
        transform: translateX(-115%);
        opacity: 0;
    }
    4% {
        opacity: 1;
    }
    34% {
        transform: translateX(315%);
        opacity: 1;
    }
    40% {
        opacity: 0;
    }
    100% {
        transform: translateX(-115%);
        opacity: 0;
    }
}

@keyframes tool-tl-gap-loop {
    0%,
    6% {
        flex: 0.75 1 0;
        min-width: 12px;
        max-width: 80px;
        opacity: 1;
        transform: scaleX(1);
        filter: brightness(1);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    }
    14%,
    22% {
        flex: 0.75 1 0;
        min-width: 12px;
        max-width: 80px;
        opacity: 1;
        transform: scaleX(1.06);
        filter: brightness(1.35);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.2),
            0 0 14px rgba(255, 110, 80, 0.75),
            0 0 28px rgba(255, 82, 68, 0.35);
    }
    38%,
    46% {
        flex: 0 1 0;
        min-width: 0;
        max-width: 0;
        opacity: 0;
        transform: scaleX(0.04);
        filter: brightness(0.9);
        box-shadow: none;
    }
    58%,
    100% {
        flex: 0.75 1 0;
        min-width: 12px;
        max-width: 80px;
        opacity: 1;
        transform: scaleX(1);
        filter: brightness(1);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    }
}

@keyframes tool-tl-source-loop {
    0%,
    48% {
        opacity: 1;
        transform: scaleX(1);
    }
    56%,
    76% {
        opacity: 0.28;
        transform: scaleX(0.98);
    }
    88%,
    100% {
        opacity: 1;
        transform: scaleX(1);
    }
}

@keyframes tool-tl-result-loop {
    0%,
    50% {
        opacity: 0;
        transform: scaleX(0.9) translateY(4px);
    }
    58%,
    76% {
        opacity: 1;
        transform: scaleX(1) translateY(0);
    }
    86%,
    100% {
        opacity: 0;
        transform: scaleX(0.9) translateY(4px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .tool-loading__demo.is-looping .tool-loading__scan,
    .tool-loading__demo.is-looping .tool-loading__track--source,
    .tool-loading__demo.is-looping .tool-loading__track--source .tl-seg--gap,
    .tool-loading__demo.is-looping .tool-loading__track--result {
        animation: none;
    }

    .tool-loading__demo.is-looping .tool-loading__track--result {
        opacity: 1;
        transform: none;
    }
}

.tool-saved-value {
    margin: 0;
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.tool-saved-value span {
    font-size: 0.45em;
    color: var(--accent);
}

.tool-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.tool-summary-grid dt {
    font-size: 12px;
    color: var(--muted);
}

.tool-summary-grid dd {
    margin: 4px 0 0;
    font-weight: 600;
}

.tool-nav__back {
    font-size: 13px;
    color: var(--muted);
}

.tool-nav__back:hover {
    color: var(--text);
}

@media (max-width: 960px) {
    .how-flow__viewport {
        padding: 24px 18px 20px;
    }

    .how-flow__captions {
        gap: 14px;
    }

    .how-steps__grid {
        grid-template-columns: 1fr;
    }

    .hero-chip--meta {
        right: 2%;
        bottom: 8%;
    }

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

    .demo-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .site-nav__links .site-nav__link:not(.site-nav__link--ghost):not(.site-nav__link--cta) {
        display: none;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .how-flow__captions {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .tool-summary-grid {
        grid-template-columns: 1fr;
    }

    .site-footer__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* --- Hero layout (timeline-first) --- */
.landing-hero {
    display: block;
    width: 100%;
    max-width: none;
    padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 4vw, 48px);
}

.landing-hero__layout {
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(36px, 5vw, 56px);
}

.landing-hero__copy {
    max-width: 720px;
}

.landing-hero__copy .landing-lead {
    max-width: 560px;
}

/* Navbar intro */
.site-nav--intro {
    opacity: 0;
    transform: translateY(-12px);
    transition:
        opacity 0.7s var(--ease-out-expo),
        transform 0.7s var(--ease-out-expo);
}

html.page-loaded .site-nav--intro {
    opacity: 1;
    transform: translateY(0);
}

/* Playhead brand motif */
.restry-playhead--mark {
    position: relative;
    border-radius: 2px;
    background: linear-gradient(180deg, #8ec9ff 0%, var(--accent) 100%);
    box-shadow:
        0 0 12px rgba(59, 158, 255, 0.65),
        0 0 28px rgba(59, 158, 255, 0.35);
}

.restry-playhead--mark::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    width: 2px;
    height: 7px;
    margin-left: -1px;
    background: linear-gradient(180deg, var(--accent), transparent);
    opacity: 0.85;
}

.how-flow__scanner.restry-playhead {
    box-shadow:
        0 0 0 1px rgba(126, 200, 255, 0.35),
        0 0 18px rgba(59, 158, 255, 0.75),
        0 0 36px rgba(59, 158, 255, 0.35);
}

/* Extra drifting strokes */
.bg-line--4 {
    top: 28%;
    width: min(70vw, 720px);
    transform: translateX(-46%) rotate(7deg);
    opacity: 0.045;
    animation: bg-line-drift-b 52s ease-in-out infinite;
    animation-delay: -20s;
}

.bg-stroke {
    position: absolute;
    pointer-events: none;
    border: 1px solid rgba(59, 158, 255, 0.08);
    border-radius: 999px;
    opacity: 0.35;
}

.bg-stroke--a {
    width: 280px;
    height: 120px;
    top: 12%;
    right: 8%;
    transform: rotate(-18deg);
    animation: bg-stroke-float 28s ease-in-out infinite;
}

@keyframes bg-stroke-float {
    0%, 100% {
        transform: rotate(-18deg) translate(0, 0);
        opacity: 0.25;
    }

    50% {
        transform: rotate(-14deg) translate(-12px, 16px);
        opacity: 0.42;
    }
}

/* Hero demo panel */
.hero-demo {
    position: relative;
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    perspective: 900px;
    --tilt-x: 0deg;
    --tilt-y: 0deg;
}

.hero-demo__panel,
.how-flow--hero.how-flow__panel {
    margin-top: 0;
    opacity: 1;
    transform: translate3d(var(--para-x, 0), var(--para-y, 0), 0);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 28px 80px rgba(0, 0, 0, 0.55),
        0 0 60px rgba(59, 158, 255, 0.12);
}

html.motion-ok .hero-demo {
    transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    transform-style: preserve-3d;
}

html.motion-ok .hero-demo__panel {
    animation: hero-panel-float 7s ease-in-out infinite;
}

@keyframes hero-panel-float {
    0%, 100% {
        transform: translate3d(var(--para-x, 0), var(--para-y, 0), 0) translateY(0);
    }

    50% {
        transform: translate3d(var(--para-x, 0), var(--para-y, 0), 0) translateY(-10px);
    }
}

.hero-demo__glow {
    position: absolute;
    inset: -20% -10% -30%;
    background: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(59, 158, 255, 0.18), transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: hero-glow-pulse 5s ease-in-out infinite;
}

@keyframes hero-glow-pulse {
    0%, 100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

.hero-chip {
    position: absolute;
    z-index: 3;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid rgba(59, 158, 255, 0.22);
    background: rgba(12, 12, 18, 0.82);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.hero-chip--ready {
    top: -8px;
    left: 6%;
    color: #9ed4ff;
}

.hero-chip--ready::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 10px;
    margin-right: 8px;
    vertical-align: -1px;
    border-radius: 1px;
    background: linear-gradient(180deg, #8ec9ff, var(--accent));
    box-shadow: 0 0 10px rgba(59, 158, 255, 0.8);
}

.hero-chip--meta {
    bottom: 12%;
    right: 4%;
    color: var(--muted);
}

.hero-chip-float {
    animation: hero-chip-float 6.5s ease-in-out infinite;
}

.hero-chip-float--delay {
    animation-delay: -2.5s;
}

@keyframes hero-chip-float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(-9px) translateX(4px);
    }
}

.how-flow--hero .how-flow__viewport {
    min-height: 200px;
}

.how-flow--hero.is-playing .hf-seg--gap {
    box-shadow: 0 0 0 1px rgba(126, 200, 255, 0.15);
}

/* How-it-works steps (no duplicate panel) */
.how-steps {
    position: relative;
    overflow: hidden;
}

.section-playhead {
    position: absolute;
    top: 48px;
    left: 50%;
    width: 3px;
    height: 28px;
    margin-left: -1px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--accent), transparent);
    box-shadow: 0 0 16px rgba(59, 158, 255, 0.5);
    opacity: 0.7;
    pointer-events: none;
}

.how-steps__inner {
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
    padding: var(--section-pad) 0;
}

.how-steps__header {
    max-width: 640px;
    margin-bottom: 40px;
}

.how-steps__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.how-steps__item {
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    transition:
        transform 0.35s var(--ease-soft),
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.how-steps__item:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 158, 255, 0.2);
    box-shadow: 0 12px 40px rgba(59, 158, 255, 0.08);
}

.how-steps__num {
    display: block;
    margin-bottom: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--accent);
}

.how-steps__item h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
}

.how-steps__item p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--muted);
}

#how-it-works.reveal-on-scroll .how-steps__item {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
    transition:
        opacity 0.75s var(--ease-out-expo),
        transform 0.75s var(--ease-out-expo);
}

#how-it-works.reveal-on-scroll.is-inview .how-steps__item:nth-child(1) {
    transition-delay: 0.06s;
}

#how-it-works.reveal-on-scroll.is-inview .how-steps__item:nth-child(2) {
    transition-delay: 0.14s;
}

#how-it-works.reveal-on-scroll.is-inview .how-steps__item:nth-child(3) {
    transition-delay: 0.22s;
}

#how-it-works.reveal-on-scroll.is-inview .how-steps__item {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Tool page motion */
.page-tool {
    position: relative;
    overflow-x: hidden;
}

.page-tool::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 50% 40% at 80% 10%, rgba(59, 158, 255, 0.1), transparent 60%),
        radial-gradient(ellipse 40% 30% at 10% 80%, rgba(59, 158, 255, 0.06), transparent 55%);
}

.page-tool .tool-main {
    position: relative;
    z-index: 1;
}

.page-tool .tool-card {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
    transition:
        opacity 0.85s var(--ease-out-expo),
        transform 0.85s var(--ease-out-expo),
        box-shadow 0.35s ease;
}

body.tool-ready .tool-card {
    opacity: 1;
    transform: translateY(0) scale(1);
}

body.tool-ready .tool-header {
    animation: hero-in-up 0.85s var(--ease-out-expo) both;
}

.tool-mode-switch.is-switching .tool-mode-option span {
    animation: tool-mode-pulse 0.45s var(--ease-out-expo);
}

@keyframes tool-mode-pulse {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.04);
    }

    100% {
        transform: scale(1);
    }
}

.tool-mode-switch .tool-mode-option:has(input:checked) span {
    box-shadow: 0 0 24px rgba(59, 158, 255, 0.2);
}

.page-tool .btn--primary.btn--motion:hover {
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.12) inset,
        0 16px 48px rgba(59, 158, 255, 0.45);
}

/* --- Playhead brand system --- */
.restry-playhead {
    display: inline-block;
    flex-shrink: 0;
    background: linear-gradient(180deg, #9ed4ff 0%, var(--accent) 100%);
    box-shadow: 0 0 12px rgba(59, 158, 255, 0.55);
}

.restry-playhead--dot {
    width: 6px;
    height: 10px;
    margin-right: 8px;
    border-radius: 1px;
    vertical-align: -1px;
}

.restry-playhead--icon {
    width: 8px;
    height: 14px;
    border-radius: 2px;
    margin-bottom: 14px;
}

.restry-playhead--lg {
    width: 14px;
    height: 28px;
    border-radius: 2px;
    box-shadow:
        0 0 24px rgba(59, 158, 255, 0.7),
        0 0 48px rgba(59, 158, 255, 0.35);
}

.restry-playhead--btn {
    width: 10px;
    height: 18px;
    border-radius: 2px;
}

.site-brand--lockup {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.site-brand__name {
    font-weight: 700;
    letter-spacing: -0.03em;
}

.editor-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid rgba(59, 158, 255, 0.22);
    background: rgba(12, 12, 18, 0.88);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    color: #9ed4ff;
}

.editor-chip--muted {
    color: var(--muted);
}

.editor-chip__playhead {
    width: 5px;
    height: 9px;
    border-radius: 1px;
}

.section-divider {
    display: block;
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto 40px;
    height: 1px;
    position: relative;
}

.section-divider--line {
    background: linear-gradient(90deg, transparent, rgba(59, 158, 255, 0.2), transparent);
}

.section-divider--playhead::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -14px;
    width: 3px;
    height: 28px;
    margin-left: -1px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--accent), transparent);
    box-shadow: 0 0 20px rgba(59, 158, 255, 0.55);
}

.bg-stroke--b {
    width: 200px;
    height: 90px;
    bottom: 22%;
    left: 6%;
    transform: rotate(12deg);
    animation: bg-stroke-float 34s ease-in-out infinite reverse;
    animation-delay: -8s;
}

.landing-section__head--center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-lead--short {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.section-title--sm {
    font-size: clamp(28px, 4vw, 36px);
}

.restry-playhead-num {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--accent);
    text-shadow: 0 0 20px rgba(59, 158, 255, 0.35);
}

/* --- Video showcase --- */
.landing-section--video {
    position: relative;
    padding-top: clamp(48px, 8vw, 88px);
    padding-bottom: clamp(56px, 9vw, 100px);
}

.video-showcase {
    width: min(960px, calc(100% - 40px));
    margin: 0 auto;
}

.video-frame {
    position: relative;
    margin-top: 40px;
    perspective: 1000px;
    transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    transform-style: preserve-3d;
    animation: video-frame-float 8s ease-in-out infinite;
}

@keyframes video-frame-float {
    0%, 100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -8px;
    }
}

.video-frame__glow {
    position: absolute;
    inset: -12% -8% -16%;
    background: radial-gradient(ellipse 70% 55% at 50% 45%, rgba(59, 158, 255, 0.22), transparent 68%);
    pointer-events: none;
    z-index: 0;
    animation: hero-glow-pulse 5s ease-in-out infinite;
}

.video-frame__chip {
    position: absolute;
    top: -10px;
    right: 6%;
    z-index: 4;
}

.video-player {
    position: relative;
    z-index: 1;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(59, 158, 255, 0.18);
    background: linear-gradient(180deg, #141418 0%, #0a0a0e 100%);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06) inset,
        0 32px 90px rgba(0, 0, 0, 0.55),
        0 0 80px rgba(59, 158, 255, 0.14);
    transform: translate3d(var(--para-x, 0), var(--para-y, 0), 0);
    aspect-ratio: 16 / 9;
}

.video-player__media {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #0a0a0e;
}

.video-player__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
    pointer-events: none;
    transition: opacity 0.35s var(--ease-soft);
}

.video-player.is-playing .video-player__overlay {
    opacity: 0;
}

.video-player__overlay-label {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(8, 10, 16, 0.65);
    border: 1px solid rgba(126, 200, 255, 0.25);
    backdrop-filter: blur(8px);
}

.video-player--hover-mode {
    cursor: default;
}

.video-player--tap-mode {
    cursor: pointer;
}

.video-player__fallback {
    position: absolute;
    left: 50%;
    bottom: 20px;
    z-index: 3;
    transform: translateX(-50%);
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(126, 200, 255, 0.3);
    background: rgba(8, 10, 16, 0.8);
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.video-player--tap-mode.is-playing .video-player__fallback {
    opacity: 0;
    pointer-events: none;
}

.video-player.is-unavailable .video-player__overlay-label::after {
    content: " · Safari consigliato per .mov";
    font-weight: 500;
    opacity: 0.75;
}

.video-frame__caption {
    margin: 18px 0 0;
    text-align: center;
    font-size: 13px;
    color: var(--muted-soft);
}

#video-demo.reveal-on-scroll:not(.is-inview) .video-showcase__head,
#video-demo.reveal-on-scroll:not(.is-inview) .video-frame {
    opacity: 0;
    transform: translateY(32px) scale(0.98);
}

#video-demo.reveal-on-scroll.is-inview .video-showcase__head {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition:
        opacity 0.85s var(--ease-out-expo),
        transform 0.85s var(--ease-out-expo);
}

#video-demo.reveal-on-scroll.is-inview .video-frame {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition:
        opacity 0.95s var(--ease-out-expo),
        transform 0.95s var(--ease-out-expo);
    transition-delay: 0.12s;
}

/* --- Outputs panel --- */
.outputs-panel {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    align-items: start;
}

.outputs-panel__metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.outputs-panel__metrics .demo-stat-card--hero {
    grid-column: 1 / -1;
}

.outputs-panel__files {
    padding: 24px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.outputs-panel__files-title {
    margin: 0 0 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.output-file-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.output-file-chip {
    justify-content: flex-start;
    width: 100%;
    border-radius: 10px;
    padding: 12px 14px;
    transition:
        transform 0.3s var(--ease-soft),
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.output-file-chip:hover {
    transform: translateX(4px);
    border-color: rgba(59, 158, 255, 0.35);
    box-shadow: 0 8px 28px rgba(59, 158, 255, 0.1);
}

.output-file-chip__ext {
    min-width: 52px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--accent);
}

.output-file-chip__name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* --- Enhanced cards --- */
.benefit-card,
.use-case-card {
    transition:
        transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1),
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.benefit-card:hover,
.use-case-card:hover {
    transform: translateY(-6px);
    border-color: rgba(59, 158, 255, 0.28);
    box-shadow: 0 16px 48px rgba(59, 158, 255, 0.12);
}

.use-case-card {
    position: relative;
    padding-top: 28px;
}

.use-case-card__mark {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 4px;
    height: 12px;
    border-radius: 1px;
    opacity: 0.9;
}

.landing-cta-band {
    position: relative;
    overflow: hidden;
}

.landing-cta-band__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 320px;
    height: 120px;
    margin: -60px 0 0 -160px;
    background: radial-gradient(ellipse, rgba(59, 158, 255, 0.2), transparent 70%);
    pointer-events: none;
    animation: hero-glow-pulse 6s ease-in-out infinite;
}

/* Stronger buttons */
.btn--motion:hover {
    transform: translateY(-6px) translate(var(--mag-x), var(--mag-y));
}

.btn--primary.btn--motion:hover {
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.16) inset,
        0 22px 60px rgba(59, 158, 255, 0.55),
        0 0 64px rgba(59, 158, 255, 0.32);
}

html.motion-ok .hero-motion--cta-row {
    animation: hero-in-up 0.9s var(--ease-out-expo) both;
    animation-delay: 0.34s;
}

@media (max-width: 960px) {
    .outputs-panel {
        grid-template-columns: 1fr;
    }

    .outputs-panel__metrics {
        grid-template-columns: 1fr;
    }

    .video-frame__chip {
        display: none;
    }
}

.bg-shapes--tool .bg-line--2 {
    top: 20%;
    opacity: 0.04;
}

.bg-shapes--tool {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* --- Tool page brand --- */
.page-tool::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        linear-gradient(105deg, transparent 40%, rgba(59, 158, 255, 0.04) 50%, transparent 60%),
        radial-gradient(ellipse 40% 30% at 90% 8%, rgba(59, 158, 255, 0.1), transparent 55%);
    animation: bg-line-drift-a 60s ease-in-out infinite;
}

.page-tool .tool-header {
    opacity: 0;
    transform: translateY(16px);
}

body.tool-ready .tool-header {
    animation: hero-in-up 0.8s var(--ease-out-expo) 0.1s both;
}

.page-tool .tool-nav {
    opacity: 0;
    transform: translateY(-8px);
}

body.tool-ready .tool-nav {
    animation: hero-in-up 0.7s var(--ease-out-expo) both;
}

/* --- Reduced motion (global landing) --- */
@media (prefers-reduced-motion: reduce) {
    .bg-line {
        animation: none !important;
        opacity: 0.04;
    }

    html.motion-ok .hero-motion--eyebrow,
    html.motion-ok .hero-motion--title,
    html.motion-ok .hero-motion--lead,
    html.motion-ok .hero-motion--cta,
    html.motion-ok .hero-motion--hint,
    html.motion-ok .hero-motion--visual,
    html.motion-ok .hero-motion--demo {
        animation: none !important;
        opacity: 1;
        transform: none;
    }

    html.motion-ok .hero-demo,
    html.motion-ok .hero-demo__panel,
    html.motion-ok .hero-chip-float,
    html.motion-ok .hero-demo__glow,
    .bg-line--4,
    .bg-stroke--a {
        animation: none !important;
    }

    html.page-loaded .site-nav--intro {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .how-flow--hero.is-playing .hf-seg--gap,
    .how-flow--hero.is-playing .how-flow__scanner,
    .how-flow--hero.is-playing .how-flow__status-line--scan,
    .how-flow--hero.is-playing .how-flow__status-line--select,
    .how-flow--hero.is-playing .how-flow__status-line--collapse,
    .how-flow--hero.is-playing .how-flow__track-row--result,
    .how-flow--hero.is-playing .how-flow__track--result .hf-seg--clip,
    .how-flow--hero.is-playing .how-flow__saved {
        animation: none !important;
    }

    html.motion-ok .hero-card-float--back,
    html.motion-ok .hero-card-float--front {
        animation: none !important;
    }

    body.tool-ready .tool-card {
        opacity: 1;
        transform: none;
        transition: none;
    }

    #how-it-works.reveal-on-scroll .how-steps__item {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .reveal-on-scroll > .landing-section__head,
    .reveal-on-scroll > .landing-section__head--narrow,
    #benefits.reveal-on-scroll .benefits-grid > *,
    #use-cases.reveal-on-scroll .use-cases-grid > *,
    #video-demo.reveal-on-scroll .video-frame,
    #outputs.reveal-on-scroll .outputs-panel,
    #demo.reveal-on-scroll .demo-panel,
    .video-frame,
    #faq.reveal-on-scroll .faq-list .faq-item,
    .landing-cta-band.reveal-on-scroll .landing-cta-band__inner > * {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

}

/* Button loading — testo semplice */
.btn--load-text.is-loading {
    pointer-events: none;
    opacity: 0.92;
}

.btn--load-text.is-loading .btn__chev {
    opacity: 0;
}
