/* Homepage hero — neon stage, desktop split / mobile stack */

.home-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(124, 124, 240, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 20% 80%, rgba(56, 189, 248, 0.15) 0%, transparent 50%),
        linear-gradient(165deg, #0a0a1a 0%, #12122a 35%, #1a1035 70%, #0d0d20 100%);
    min-height: min(88vh, 920px);
    display: flex;
    flex-direction: column;
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(124, 124, 240, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 124, 240, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0.85) 100%);
    pointer-events: none;
}

.home-hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: linear-gradient(to top, rgba(124, 124, 240, 0.12) 0%, transparent 100%);
    pointer-events: none;
}

.home-hero__inner {
    position: relative;
    z-index: 1;
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px 48px;
    align-items: center;
    padding-top: 48px;
    padding-bottom: 32px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
}

.home-hero__copy-col {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 540px;
}

.home-hero__copy {
    max-width: 540px;
}

.home-hero__eyebrow {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-indigo-light);
    margin-bottom: 16px;
    display: block;
}

.home-hero__title {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #fff;
    margin: 0 0 16px;
    text-transform: uppercase;
}

.home-hero__sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.55;
    color: rgba(212, 212, 232, 0.92);
    margin: 0 0 28px;
    max-width: 460px;
}

.home-hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    color: #0f0f0f;
    background: linear-gradient(180deg, #f5d020 0%, #e8b800 100%);
    border-radius: var(--radius-pill);
    box-shadow: 0 8px 28px rgba(245, 208, 32, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 28px;
}

.home-hero__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(245, 208, 32, 0.45);
    color: #0f0f0f;
}

.home-hero__features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    list-style: none;
    padding: 0;
    margin: 28px 0 0;
}

.home-hero__feature {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.88);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.home-hero__feature-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.home-hero__visual {
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Single composite — all three machines together (900×900) */
.home-hero__composite {
    display: block;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
}

.home-hero__composite img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.45));
}

.home-hero__picture-fallback {
    display: none;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.home-hero__picture-fallback img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.5));
}

.home-hero__products {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: clamp(8px, 2vw, 20px);
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    padding-bottom: 8px;
}

.home-hero__product {
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45));
    transition: transform 0.3s ease;
}

.home-hero__product--racing {
    width: 28%;
    max-height: 280px;
    align-self: flex-end;
}

.home-hero__product--arcade {
    width: 34%;
    max-height: 340px;
    z-index: 2;
}

.home-hero__product--booth {
    width: 32%;
    max-height: 360px;
    align-self: flex-end;
}

.home-hero__script {
    position: absolute;
    right: -8%;
    bottom: 18%;
    font-family: "Segoe Script", "Brush Script MT", cursive;
    font-size: clamp(1.1rem, 2.5vw, 1.75rem);
    color: rgba(255, 255, 255, 0.75);
    transform: rotate(-8deg);
    pointer-events: none;
    white-space: nowrap;
}

.home-hero__venues {
    position: relative;
    z-index: 2;
    background: rgba(10, 10, 26, 0.75);
    border-top: 1px solid rgba(124, 124, 240, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.home-hero__venues-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 24px;
}

.home-hero__venue {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(212, 212, 232, 0.85);
    white-space: nowrap;
}

.home-hero__venue-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-indigo-light);
    opacity: 0.6;
}

@media (max-width: 1023px) {
    .home-hero {
        min-height: auto;
    }

    .home-hero__inner {
        display: flex;
        flex-direction: column;
        text-align: center;
        padding-top: 36px;
        padding-bottom: 24px;
        gap: 20px;
    }

    /* Flatten copy column: headline → hero image → CTA → feature grid */
    .home-hero__copy-col {
        display: contents;
        max-width: none;
    }

    .home-hero__eyebrow {
        display: none;
    }

    .home-hero__copy {
        order: 1;
        max-width: none;
        margin: 0 auto;
    }

    .home-hero__sub {
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 0;
    }

    .home-hero__visual {
        order: 2;
        min-height: 200px;
    }

    .home-hero__cta {
        order: 3;
        align-self: center;
        margin-bottom: 0;
    }

    .home-hero__features {
        order: 4;
        justify-content: center;
        margin-top: 0;
    }

    .home-hero__composite {
        max-width: min(900px, 100%);
    }

    .home-hero__composite img {
        max-height: none;
    }

    .home-hero__script {
        display: none;
    }
}

@media (max-width: 640px) {
    .home-hero__title {
        font-size: 1.75rem;
    }

    .home-hero__cta {
        width: 100%;
        max-width: 320px;
    }

    .home-hero__features {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        max-width: 320px;
        margin: 0 auto;
    }

    .home-hero__feature {
        font-size: 0.68rem;
        justify-content: flex-start;
    }

    .home-hero__venues-inner {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .home-hero__venues-inner::-webkit-scrollbar {
        display: none;
    }
}

/* When cutouts fail to load, show full mockup picture */
.home-hero__visual.is-fallback .home-hero__products {
    display: none;
}

.home-hero__visual.is-fallback .home-hero__picture-fallback {
    display: block;
}
