/**
 * Home: video hero, mesh, spacing for fixed nav (no nav-divider-container).
 */

html.dark,
html.dark body {
    background-color: #020203;
}

.landing-hero-video-scope {
    position: relative;
    isolation: isolate;
    background-color: #020203;
}

.landing-hero-video-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.landing-hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.landing-hero-video-scrim {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.48) 0%, rgba(0, 0, 0, 0.3) 42%, rgba(0, 0, 0, 0.5) 100%),
        radial-gradient(92% 52% at 50% 14%, rgba(0, 0, 0, 0.22) 0%, transparent 58%);
}

.landing-hero-video-scope #landingHeroMainMount {
    position: relative;
    z-index: 1;
}

.landing-hero-video-scope .landing-hero-pad {
    padding-top: calc(clamp(2.85rem, 5.5vw, 4.5rem) + 4.5rem);
}

.landing-mesh-hero {
    --landing-hero-stack-offset: 40px;
    position: relative;
    z-index: 1;
    overflow: visible;
    isolation: isolate;
    background-color: transparent;
    min-height: calc(100svh - 4.5rem);
    display: flex;
    flex-direction: column;
}

/* Display H1: was #mainNav ~ section h1; after hero mount, section is no longer nav sibling */
.landing-hero-copy .landing-hero-title {
    margin: 0 0 0.75rem;
    font-family: var(--font-serif, 'Instrument Serif', ui-serif, Georgia, serif);
    font-weight: 500;
    font-style: normal;
    font-size: clamp(3.05rem, 7.2vw, 5.35rem);
    letter-spacing: -0.032em;
    line-height: 1.04;
    color: var(--foreground);
}

@media (min-width: 768px) {
    .landing-hero-copy .landing-hero-title {
        margin-bottom: 1rem;
        white-space: nowrap;
    }

    .landing-hero-tool .landing-hero-copy .landing-hero-title {
        white-space: normal;
    }
}

.landing-mesh-inner {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding-top: calc(clamp(0.5rem, 1.5vw, 1rem) + var(--landing-hero-stack-offset, 40px));
    padding-bottom: clamp(1.25rem, 3vw, 2rem);
}

.landing-hero-stack {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: clamp(0.75rem, 3svh, 2.75rem);
}

.landing-hero-copy {
    max-width: 64rem;
    margin-left: auto;
    margin-right: auto;
}

.landing-hero-copy .landing-hero-lead {
    margin: 0 auto;
    letter-spacing: -0.003em;
    line-height: 1.58;
}

.landing-hero-eyebrow {
    display: inline-block;
    margin: 0 0 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.25;
    font-family: var(--font-primary, Inter, ui-sans-serif, system-ui, sans-serif);
}

.landing-hero-eyebrow--neutral,
.landing-hero-eyebrow:not([class*='landing-hero-eyebrow--']) {
    background: rgba(238, 238, 238, 0.08);
    color: color-mix(in srgb, var(--foreground, #eeeeee) 86%, transparent);
    border: 1px solid rgba(238, 238, 238, 0.12);
}

.landing-hero-eyebrow--emerald {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.landing-hero-eyebrow--sky {
    background: rgba(14, 165, 233, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.landing-hero-eyebrow--rose {
    background: rgba(244, 63, 94, 0.12);
    color: #fb7185;
    border: 1px solid rgba(244, 63, 94, 0.2);
}

/* Tool / generator pages: same copy block, no full-viewport hero */
.landing-hero-tool.landing-mesh-hero {
    min-height: auto;
}

body.tool-main-has-video .landing-hero-tool.landing-hero-pad {
    padding-top: calc(clamp(1.35rem, 3.8vw, 2.1rem) + 2.35rem);
    padding-bottom: clamp(1rem, 2.5vw, 1.75rem);
}

.landing-hero-tool .landing-hero-stack {
    margin-top: clamp(0.5rem, 2svh, 1.25rem);
}

.landing-hero-tool .landing-mesh-inner {
    padding-bottom: clamp(0.75rem, 2vw, 1.25rem);
}

@media (max-width: 767px) {
    html .landing-hero-video-scope .landing-hero-video,
    html.dark .landing-hero-video-scope .landing-hero-video,
    html.dark-theme .landing-hero-video-scope .landing-hero-video,
    body.dark-theme .landing-hero-video-scope .landing-hero-video {
        object-position: center 34%;
    }

    html .landing-hero-video-scope .landing-hero-video-scrim,
    html.dark .landing-hero-video-scope .landing-hero-video-scrim,
    html.dark-theme .landing-hero-video-scope .landing-hero-video-scrim,
    body.dark-theme .landing-hero-video-scope .landing-hero-video-scrim {
        background:
            linear-gradient(
                180deg,
                rgba(0, 0, 0, 0.78) 0%,
                rgba(0, 0, 0, 0.62) 22%,
                rgba(0, 0, 0, 0.48) 42%,
                rgba(0, 0, 0, 0.58) 62%,
                rgba(0, 0, 0, 0.75) 100%
            ),
            radial-gradient(100% 58% at 50% 20%, rgba(0, 0, 0, 0.42) 0%, transparent 60%);
    }

    html .landing-glass-chat,
    html.dark .landing-glass-chat,
    html.dark-theme .landing-glass-chat,
    body.dark-theme .landing-glass-chat {
        border-color: rgba(238, 238, 238, 0.16);
        box-shadow:
            inset 0 1px 0 rgba(238, 238, 238, 0.08),
            inset 0 0 0 1px rgba(238, 238, 238, 0.06),
            0 16px 48px rgba(0, 0, 0, 0.45);
    }

    html .landing-glass-chat:focus-within,
    html.dark .landing-glass-chat:focus-within,
    html.dark-theme .landing-glass-chat:focus-within,
    body.dark-theme .landing-glass-chat:focus-within,
    html .landing-glass-chat:hover:not(.is-submitting),
    html.dark .landing-glass-chat:hover:not(.is-submitting),
    html.dark-theme .landing-glass-chat:hover:not(.is-submitting),
    body.dark-theme .landing-glass-chat:hover:not(.is-submitting) {
        border-color: rgba(238, 238, 238, 0.2);
    }

    html .landing-quick-inner,
    html.dark .landing-quick-inner,
    html.dark-theme .landing-quick-inner,
    body.dark-theme .landing-quick-inner {
        border-color: rgba(238, 238, 238, 0.14);
        box-shadow:
            inset 0 1px 0 rgba(238, 238, 238, 0.08),
            inset 0 0 0 1px rgba(238, 238, 238, 0.05),
            0 16px 48px rgba(0, 0, 0, 0.42);
    }

    html .landing-quick-inner:focus-within,
    html.dark .landing-quick-inner:focus-within,
    html.dark-theme .landing-quick-inner:focus-within,
    body.dark-theme .landing-quick-inner:focus-within,
    html .landing-quick-inner:hover,
    html.dark .landing-quick-inner:hover,
    html.dark-theme .landing-quick-inner:hover,
    body.dark-theme .landing-quick-inner:hover {
        border-color: rgba(238, 238, 238, 0.18);
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing-hero-video,
    .landing-apps-video {
        display: none;
    }

    .landing-hero-video-scrim {
        background: linear-gradient(
            180deg,
            color-mix(in srgb, var(--background) 90%, var(--muted) 10%) 0%,
            var(--background) 100%
        );
    }
}
