/**
 * Landing hero layout + style variants (admin → Design → Hero).
 */

.landing-hero-wrap {
    position: relative;
    overflow: hidden;
}

.landing-hero-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(64px);
    contain: strict;
    will-change: transform;
}

.landing-hero-blob--1 {
    top: -8rem;
    left: -8rem;
    width: 38rem;
    height: 38rem;
    background: color-mix(in srgb, var(--brand) 28%, transparent);
}

.landing-hero-blob--2 {
    top: 0;
    right: 0;
    width: 26rem;
    height: 26rem;
    background: color-mix(in srgb, var(--brand-2) 28%, transparent);
}

.landing-hero-wrap--style-white .landing-hero-blob,
.landing-hero-wrap--style-brand_soft .landing-hero-blob {
    display: none;
}

.landing-hero-wrap--style-white {
    background: #fff;
}

.landing-hero-wrap--style-brand_soft {
    background: linear-gradient(180deg, var(--brand-soft) 0%, #fff 100%);
}

.dark .landing-hero-wrap--style-white {
    background: rgb(15 23 42);
}

.dark .landing-hero-wrap--style-brand_soft {
    background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 18%, rgb(15 23 42)) 0%, rgb(15 23 42) 100%);
}

.landing-hero-wrap--style-white .landing-hero-badge,
.landing-hero-wrap--style-brand_soft .landing-hero-badge {
    background: var(--brand-soft);
    color: var(--brand);
}

.dark .landing-hero-wrap--style-white .landing-hero-badge,
.dark .landing-hero-wrap--style-brand_soft .landing-hero-badge {
    background: color-mix(in srgb, var(--brand) 22%, transparent);
    color: color-mix(in srgb, var(--brand) 72%, white);
}

.landing-hero-wrap--style-white .landing-hero-search-input,
.landing-hero-wrap--style-brand_soft .landing-hero-search-input {
    border-color: color-mix(in srgb, var(--brand) 18%, #e2e8f0);
}

.landing-hero-wrap--layout-search .landing-hero-inner {
    max-width: 48rem;
    margin-inline: auto;
    text-align: center;
    padding-top: 4rem;
    padding-bottom: 3rem;
}

.landing-hero-wrap--layout-search .landing-hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.landing-hero-wrap--layout-search .landing-hero-copy > p {
    margin-inline: auto;
}

.landing-hero-wrap--layout-search .landing-hero-search {
    margin-inline: auto;
    width: 100%;
    max-width: 36rem;
}

.landing-hero-wrap--layout-search .landing-hero-trust {
    justify-content: center;
}

.landing-hero-wrap--layout-search .landing-hero-apps {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.landing-hero-wrap--layout-minimal .landing-hero-inner {
    max-width: 42rem;
    margin-inline: auto;
    padding-top: 4rem;
    padding-bottom: 3rem;
}

.landing-hero-wrap--layout-minimal .landing-hero-mockup {
    display: none;
}

.landing-hero-wrap--layout-split .landing-hero-inner {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .landing-hero-wrap--layout-split .landing-hero-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.landing-hero-wrap .pulse-ring::before {
    border-color: var(--brand-mid);
}

/* ── Scroll reveal (transform + opacity only = GPU composited) ── */

.landing-section-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}
.landing-section-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Hero entrance ── */

.landing-hero-copy h1,
.landing-hero-copy h1 .gradient-text {
    font-weight: 900;
    letter-spacing: -0.025em;
    -webkit-font-smoothing: auto;
    -moz-osx-font-smoothing: auto;
    animation: hero-in 0.7s ease both;
}
@keyframes hero-in {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.landing-hero-copy > p {
    animation: hero-in 0.7s 0.12s ease both;
}
.landing-hero-search {
    animation: hero-in 0.7s 0.22s ease both;
}
.landing-hero-trust {
    animation: hero-in 0.7s 0.32s ease both;
}
.landing-hero-mockup {
    animation: hero-in 0.8s 0.25s ease both;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .landing-section-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .landing-hero-copy h1,
    .landing-hero-copy > p,
    .landing-hero-search,
    .landing-hero-trust,
    .landing-hero-mockup,
    .float,
    .float-delay {
        animation: none;
    }
}
