/**
 * Homepage hero — Launch UI–style layout (launchuicomponents.com).
 * Loaded only with body.page-home + premium hero; uses Geist Sans from Fontshare.
 */

body.page-home .launch-hero.hero-premium {
    position: relative;
    overflow: hidden;
    background: #09090b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-family: 'Geist Sans', 'Geist', ui-sans-serif, system-ui, sans-serif;
}

body.page-home .launch-hero.hero-premium .container {
    position: relative;
    z-index: 2;
    max-width: min(72rem, 100%);
}

body.page-home .launch-hero.hero-premium::before,
body.page-home .launch-hero.hero-premium::after {
    display: none !important;
}

/* Mirrors Launch section spacing: pt-24 sm:pt-32 md:pt-40, gap-12 between copy & visuals */
.launch-hero__shell {
    width: 100%;
    padding-bottom: clamp(2.5rem, 7vw, 5rem);
}

.launch-hero__grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

@media (min-width: 640px) {
    .launch-hero__grid {
        gap: 3rem;
    }
}

.launch-hero__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

/* Badge */
.launch-hero__badge {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.25;
    color: #fafafa;
}

.launch-hero__badge-muted {
    color: rgba(163, 163, 163, 0.95);
}

.launch-hero__badge-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #fafafa;
    text-decoration: none;
    transition: color 0.2s ease, gap 0.2s ease;
}

.launch-hero__badge-link:hover {
    color: #fff;
    gap: 0.35rem;
}

.launch-hero__badge-arrow {
    width: 0.75rem;
    height: 0.75rem;
    flex-shrink: 0;
}

/* Heading — gradient headline like Launch */
.launch-hero__title {
    margin: 0;
    margin-top: 0.25rem;
    max-width: 52.5rem;
    font-size: clamp(2.25rem, 5.5vw, 3.75rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.025em;
    text-wrap: balance;
    background: linear-gradient(90deg, #fafafa 0%, #fafafa 42%, rgba(163, 163, 163, 0.92) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 24px rgba(0, 0, 0, 0.35));
}

.launch-hero__lead {
    margin: 0;
    margin-top: 1rem;
    max-width: 52.5rem;
    font-size: clamp(1rem, 1.9vw, 1.25rem);
    font-weight: 500;
    line-height: 1.55;
    color: #a3a3a3;
    text-wrap: balance;
}

@media (min-width: 640px) {
    .launch-hero__lead {
        margin-top: 1.25rem;
    }
}

/* CTAs — extra air above buttons vs body copy (Launch has larger step subhead → buttons) */
.launch-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: clamp(1.75rem, 4.5vw, 2.75rem);
}

.launch-hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 2.5rem;
    padding: 0 1.25rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition:
        opacity 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.launch-hero__btn--primary {
    color: #09090b;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 1px 2px rgba(0, 0, 0, 0.25);
    background: linear-gradient(180deg, rgba(250, 250, 250, 0.92) 0%, #e4e4e7 48%, #d4d4d8 100%);
}

.launch-hero__btn--primary:hover {
    background: linear-gradient(180deg, #fff 0%, #f4f4f5 55%, #e4e4e7 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        0 4px 16px rgba(0, 0, 0, 0.35);
}

.launch-hero__btn--ghost {
    color: #fafafa;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.launch-hero__btn--ghost:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.launch-hero__btn-icon {
    width: 1rem;
    height: 1rem;
    margin-right: 0.25rem;
}

/* Social proof */
.launch-hero__social-row {
    margin-top: clamp(1.25rem, 3.5vw, 2rem);
}

.launch-hero__social-stats {
    display: flex;
    align-items: center;
    padding: 0.25rem;
    border-radius: 0.375rem;
    transition: background 0.2s ease;
}

.launch-hero__social-stats:hover {
    background: rgba(255, 255, 255, 0.06);
}

.launch-hero__avatars {
    display: flex;
    align-items: center;
}

.launch-hero__avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    margin-right: -0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
    border: 2px solid #09090b;
    background: linear-gradient(135deg, #3f3f46 0%, #27272a 100%);
}

.launch-hero__avatar:nth-child(1) {
    background: linear-gradient(135deg, #f97316 0%, #c2410c 100%);
}

.launch-hero__avatar:nth-child(2) {
    background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
}

.launch-hero__avatar:nth-child(3) {
    background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
}

.launch-hero__avatar:nth-child(4) {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
}

.launch-hero__social-copy {
    margin-left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.launch-hero__stars {
    display: flex;
    gap: 0.125rem;
}

.launch-hero__star {
    width: 0.75rem;
    height: 0.75rem;
    fill: #fbbf24;
    stroke: #fbbf24;
    opacity: 0.95;
}

.launch-hero__social-text {
    margin: 0;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.35;
    color: #a3a3a3;
    max-width: 18rem;
}

/* Visual + glow + mockups */
.launch-hero__visual {
    position: relative;
    width: 100%;
    padding: 0 clamp(0rem, 4vw, 6rem);
    min-height: 12rem;
}

.launch-hero__glow {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    width: 100%;
    margin-top: clamp(3rem, 12vw, 8rem);
    pointer-events: none;
    z-index: 0;
}

.launch-hero__glow-blob {
    position: absolute;
    left: 50%;
    top: 50%;
    translate: -50% -50%;
    border-radius: 50%;
    opacity: 0.85;
}

.launch-hero__glow-blob--a {
    width: 60%;
    height: clamp(14rem, 28vw, 32rem);
    scale: 2.2;
    background: radial-gradient(
        ellipse at center,
        rgba(251, 146, 60, 0.35) 0%,
        rgba(251, 146, 60, 0.08) 38%,
        transparent 62%
    );
}

.launch-hero__glow-blob--b {
    width: 42%;
    height: clamp(8rem, 18vw, 16rem);
    scale: 1.85;
    background: radial-gradient(
        ellipse at center,
        rgba(249, 115, 22, 0.28) 0%,
        rgba(249, 115, 22, 0.06) 42%,
        transparent 65%
    );
}

.launch-hero__mockups {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    min-height: 12rem;
}

.launch-hero__mock {
    position: relative;
    transform-origin: center bottom;
    transition:
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        left 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.launch-hero__mock--left {
    left: 0;
    z-index: 10;
    transform: rotate(-24deg) skewY(12deg);
}

.launch-hero__mock--mid {
    z-index: 11;
    transform: rotate(-24deg) skewY(12deg);
}

.launch-hero__mock--right {
    left: 0;
    z-index: 12;
    transform: rotate(-24deg) skewY(12deg);
}

@media (min-width: 640px) {
    .launch-hero__mockups {
        display: block;
        min-height: clamp(20rem, 42vw, 30rem);
    }

    .launch-hero__mock {
        position: absolute;
        width: 86%;
        max-width: 54rem;
    }

    .launch-hero__mock--left {
        left: -24%;
        top: 0;
        z-index: 1;
        width: 82%;
        max-width: 52rem;
        transform: rotate(-24deg) skewY(12deg);
    }

    .launch-hero__mock--mid {
        left: 50%;
        top: 2.25rem;
        translate: -50% 0;
        z-index: 2;
        width: 86%;
        max-width: 54rem;
        transform: rotate(-24deg) skewY(12deg);
    }

    .launch-hero__mock--right {
        left: 32%;
        top: 5.25rem;
        z-index: 3;
        width: 90%;
        max-width: 56rem;
        transform: rotate(-24deg) skewY(12deg);
    }

    .launch-hero__mockups-group:hover .launch-hero__mock--left {
        left: -32%;
        transform: rotate(-12deg) skewY(6deg);
    }

    .launch-hero__mockups-group:hover .launch-hero__mock--mid {
        transform: rotate(-12deg) skewY(6deg);
    }

    .launch-hero__mockups-group:hover .launch-hero__mock--right {
        left: 48%;
        transform: rotate(-12deg) skewY(6deg);
    }
}

.launch-hero__mock-frame {
    position: relative;
    z-index: 2;
    padding: 0.5rem;
    border-radius: 1rem;
    background: rgba(39, 39, 42, 0.45);
    border: 1px solid rgba(63, 63, 70, 0.45);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.launch-hero__mock-screen {
    position: relative;
    z-index: 2;
    overflow: hidden;
    border-radius: 0.375rem;
    border: 1px solid rgba(63, 63, 70, 0.55);
    border-top-color: rgba(82, 82, 91, 0.55);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
    background: #0a0a0b;
}

.launch-hero__mock-screen img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1248 / 765;
    object-fit: cover;
    vertical-align: middle;
}

/* Entrance — ties into hero-premium.js (.hero-premium--visible) */
.launch-hero__reveal {
    opacity: 0;
    transform: translateY(14px);
    transition:
        opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--launch-delay, 0ms);
}

.launch-hero.hero-premium.hero-premium--visible .launch-hero__reveal {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .launch-hero__reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .launch-hero__mock {
        transition: none !important;
    }

    .launch-hero__mockups-group:hover .launch-hero__mock--left,
    .launch-hero__mockups-group:hover .launch-hero__mock--mid,
    .launch-hero__mockups-group:hover .launch-hero__mock--right {
        transform: rotate(-24deg) skewY(12deg);
    }

    .launch-hero__mockups-group:hover .launch-hero__mock--left {
        left: -24%;
    }

    .launch-hero__mockups-group:hover .launch-hero__mock--right {
        left: 32%;
    }
}

@media (max-width: 639px) {
    .launch-hero__visual {
        padding-left: 0;
        padding-right: 0;
    }

    .launch-hero__mock {
        margin: 0 auto;
        max-width: 26rem;
    }

    .launch-hero__glow {
        opacity: 0.65;
    }
}
