/* =========================================================
   L2INFINITY — HERO FINAL v2
   Replacement for infinity-hero-final.css
   ========================================================= */

.hero {
    position: relative !important;
    min-height: 590px !important;
    overflow: hidden !important;
    isolation: isolate;
    background: #020914 !important;
}

.hero-bg {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    background-image: url("../images/infinity-hero-galaxy.png") !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: 52% 50% !important;
    filter: none !important;
    transform: none !important;
    animation: none !important;
}

/* Strong local readability layer. Left is dark, middle fades to transparent,
   so the portal and right half keep their full detail. */
.hero::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    pointer-events: none !important;
    background:
        linear-gradient(90deg,
            rgba(1, 7, 18, .82) 0%,
            rgba(1, 9, 22, .75) 18%,
            rgba(2, 11, 27, .60) 32%,
            rgba(2, 12, 29, .34) 44%,
            rgba(2, 12, 29, .10) 55%,
            rgba(0, 0, 0, 0) 67%) !important;
}

/* Additional soft ellipse only behind the typography/buttons. */
.hero::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    z-index: 2 !important;
    pointer-events: none !important;
    left: -10% !important;
    top: 7% !important;
    width: 64% !important;
    height: 86% !important;
    background: radial-gradient(
        ellipse at 35% 47%,
        rgba(0, 10, 25, .54) 0%,
        rgba(0, 10, 25, .34) 42%,
        rgba(0, 8, 20, .12) 62%,
        transparent 76%
    ) !important;
}

/* Artwork already contains galaxy/portal. */
.infinity-galaxy-canvas,
.infinity-space,
.portal-glow,
.embers {
    display: none !important;
}

.hero-vignette {
    position: absolute !important;
    inset: 0 !important;
    z-index: 3 !important;
    pointer-events: none !important;
    background:
        linear-gradient(180deg,
            rgba(0, 3, 10, .10) 0%,
            transparent 22%,
            transparent 72%,
            rgba(0, 4, 12, .48) 100%) !important;
}

.hero-grid {
    position: relative !important;
    z-index: 10 !important;
    min-height: 590px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 294px !important;
    align-items: center !important;
    gap: 72px !important;
}

/* ---------- LEFT COMPOSITION ---------- */

.hero-copy {
    position: relative !important;
    z-index: 11 !important;
    width: min(100%, 650px) !important;
    padding-top: 0 !important;
    text-shadow: 0 4px 20px rgba(0,0,0,.65) !important;
}

.hero-copy .eyebrow {
    margin-bottom: 21px !important;
}

.hero-copy h1 {
    margin: 0 !important;
    width: auto !important;
    max-width: 625px !important;
    font-size: clamp(66px, 5.65vw, 94px) !important;
    line-height: .92 !important;
    letter-spacing: -2.5px !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-shadow:
        0 5px 24px rgba(0,0,0,.70),
        0 0 25px rgba(64,205,255,.10) !important;
}

.hero-copy .chronicle {
    margin-top: 22px !important;
    font-size: clamp(27px, 2.15vw, 37px) !important;
}

.hero-copy > p {
    margin-top: 18px !important;
    margin-bottom: 0 !important;
}

/* More breathing room before CTA */
.hero-copy .play {
    width: min(100%, 385px) !important;
    margin-top: 32px !important;
    filter: drop-shadow(0 10px 24px rgba(0,0,0,.38)) !important;
}

.hero-actions {
    width: min(100%, 385px) !important;
    margin-top: 13px !important;
}

/* ---------- STATUS CARD ---------- */

.status-card {
    position: relative !important;
    z-index: 12 !important;
    width: 294px !important;
    justify-self: end !important;
    background:
        linear-gradient(180deg,
            rgba(4,17,36,.95),
            rgba(2,11,26,.97)) !important;
    border-color: rgba(72,218,255,.66) !important;
    box-shadow:
        0 20px 55px rgba(0,0,0,.50),
        inset 0 0 36px rgba(42,130,200,.07) !important;
    backdrop-filter: blur(3px);
}

/* Never let old reveal animation shift/soften the hero. */
.hero .reveal,
.hero .reveal.delay-1 {
    opacity: 1 !important;
    transform: none !important;
}

/* ---------- RESPONSIVE ---------- */

@media (min-width: 1500px) {
    .hero-bg {
        background-position: 50% 50% !important;
    }

    .hero-grid {
        gap: 88px !important;
    }
}

@media (max-width: 1200px) {
    .hero-bg {
        background-position: 56% 50% !important;
    }

    .hero-grid {
        grid-template-columns: minmax(0,1fr) 270px !important;
        gap: 38px !important;
    }

    .status-card {
        width: 270px !important;
    }

    .hero-copy h1 {
        font-size: clamp(61px, 6.8vw, 82px) !important;
    }
}

@media (max-width: 900px) {
    .hero {
        min-height: auto !important;
    }

    .hero-bg {
        background-position: 61% 50% !important;
    }

    .hero::before {
        background:
            linear-gradient(90deg,
                rgba(1,7,18,.85) 0%,
                rgba(1,9,22,.68) 58%,
                rgba(1,8,20,.38) 100%) !important;
    }

    .hero::after {
        width: 100% !important;
    }

    .hero-grid {
        min-height: auto !important;
        grid-template-columns: 1fr !important;
        gap: 34px !important;
        padding-top: 88px !important;
        padding-bottom: 68px !important;
    }

    .hero-copy {
        width: 100% !important;
    }

    .hero-copy h1 {
        font-size: clamp(54px, 11vw, 80px) !important;
        white-space: normal !important;
    }

    .status-card {
        width: min(100%,420px) !important;
        justify-self: start !important;
    }
}

@media (max-width: 560px) {
    .hero-bg {
        background-position: 64% 50% !important;
    }

    .hero-grid {
        padding-top: 68px !important;
        padding-bottom: 52px !important;
    }

    .hero-copy h1 {
        font-size: clamp(46px,14vw,66px) !important;
        letter-spacing: -2px !important;
    }

    .hero-copy .play,
    .hero-actions {
        width: 100% !important;
    }
}
