/* =========================================================
   ABOVE ARCADE HERO 1.0.0
   Animated AIE website effect
   ========================================================= */

.aie-arcade-hero {
    --aah-sky: #43aaff;
    --aah-bright: #0080ff;
    --aah-deep: #0064b7;
    --aah-ink: #06111d;
    --aah-white: #ffffff;

    position: relative;
    width: 100vw !important;
    max-width: none !important;
    min-height: clamp(580px, 82svh, 900px) !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    overflow: hidden;
    isolation: isolate;
    color: var(--aah-white);
    background: var(--aah-ink);
    border: 0 !important;
    border-radius: 0 !important;
    touch-action: pan-y !important;
    user-select: auto !important;
    -webkit-user-select: auto !important;
}

.aie-arcade-hero,
.aie-arcade-hero * {
    box-sizing: border-box;
}

.aie-arcade-hero .aie-canvas {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.aie-arcade-hero__atmosphere,
.aie-arcade-hero__shade,
.aie-arcade-hero__scan,
.aie-arcade-hero__bottom-fade {
    position: absolute;
    pointer-events: none;
}

.aie-arcade-hero__atmosphere {
    z-index: 1;
    inset: 0;
    background:
        radial-gradient(
            circle at 50% 42%,
            rgba(0, 128, 255, 0.12),
            transparent 35%
        ),
        radial-gradient(
            circle at 15% 20%,
            rgba(67, 170, 255, 0.09),
            transparent 31%
        ),
        linear-gradient(
            180deg,
            rgba(2, 8, 14, 0.10) 0%,
            rgba(2, 8, 14, 0.03) 48%,
            rgba(2, 8, 14, 0.50) 100%
        );
}

.aie-arcade-hero__shade {
    z-index: 2;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(2, 8, 14, 0.62) 0%,
            rgba(2, 8, 14, 0.12) 21%,
            rgba(2, 8, 14, 0.05) 50%,
            rgba(2, 8, 14, 0.12) 79%,
            rgba(2, 8, 14, 0.62) 100%
        );
}

.aie-arcade-hero__scan {
    z-index: 3;
    top: -30%;
    bottom: -30%;
    left: -42%;
    width: 38%;
    opacity: 0.16;
    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(67, 170, 255, 0.02) 28%,
            rgba(126, 211, 255, 0.22) 50%,
            rgba(67, 170, 255, 0.02) 72%,
            transparent 100%
        );
    filter: blur(15px);
    transform: skewX(-14deg);
    animation: aah-scan-sweep 9s linear infinite;
}

.aie-arcade-hero__bottom-fade {
    z-index: 3;
    right: 0;
    bottom: 0;
    left: 0;
    height: 150px;
    background:
        linear-gradient(
            180deg,
            transparent,
            rgba(6, 17, 29, 0.92)
        );
}

.aie-arcade-hero__content {
    position: relative;
    z-index: 5;
    width: min(1200px, calc(100% - 40px));
    min-height: inherit;
    margin: 0 auto;
    padding:
        clamp(92px, 13vh, 150px)
        0
        clamp(92px, 11vh, 132px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
}

.aie-arcade-hero__emblem-wrap {
    position: relative;
    width: clamp(78px, 8.5vw, 126px);
    aspect-ratio: 1;
    margin-bottom: clamp(24px, 4vh, 40px);
    display: grid;
    place-items: center;
    animation: aah-emblem-float 5.4s ease-in-out infinite;
}

.aie-arcade-hero__emblem-wrap::before,
.aie-arcade-hero__emblem-wrap::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(99, 192, 255, 0.30);
    border-radius: 50%;
    opacity: 0;
    animation: aah-ring-pulse 3.4s ease-out infinite;
}

.aie-arcade-hero__emblem-wrap::before {
    inset: -24%;
}

.aie-arcade-hero__emblem-wrap::after {
    inset: -48%;
    animation-delay: 0.8s;
}

.aie-arcade-hero__emblem {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    filter:
        drop-shadow(0 0 18px rgba(67, 170, 255, 0.42))
        drop-shadow(0 0 42px rgba(0, 128, 255, 0.20));
}

.aie-arcade-hero__title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(54px, 9.2vw, 132px);
    font-weight: 760;
    line-height: 0.86;
    letter-spacing: -0.055em;
    text-transform: uppercase;
    text-shadow:
        0 3px 28px rgba(0, 0, 0, 0.62),
        0 0 54px rgba(0, 128, 255, 0.12);
    animation:
        aah-title-reveal 900ms
        cubic-bezier(0.16, 1, 0.3, 1)
        both;
}

.aie-arcade-hero__tagline {
    margin: clamp(22px, 3.4vh, 34px) 0 0;
    color: rgba(255, 255, 255, 0.97);
    font-size: clamp(18px, 2.35vw, 33px);
    font-weight: 620;
    line-height: 1.16;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.72);
    animation:
        aah-text-reveal 900ms 150ms
        cubic-bezier(0.16, 1, 0.3, 1)
        both;
}

.aie-arcade-hero__description {
    max-width: 740px;
    margin: clamp(20px, 3vh, 29px) auto 0;
    color: rgba(235, 247, 255, 0.84);
    font-size: clamp(15px, 1.25vw, 18px);
    font-weight: 400;
    line-height: 1.62;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.72);
    animation:
        aah-text-reveal 900ms 280ms
        cubic-bezier(0.16, 1, 0.3, 1)
        both;
}

.aie-arcade-hero__action {
    margin-top: clamp(28px, 4.7vh, 46px);
    padding: 14px 22px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    background: rgba(3, 15, 27, 0.58);
    border: 1px solid rgba(117, 202, 255, 0.64);
    border-radius: 0;
    font-size: 11px;
    font-weight: 720;
    letter-spacing: 0.17em;
    text-decoration: none;
    text-transform: uppercase;
    pointer-events: auto;
    transition:
        background 180ms ease,
        border-color 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease;
    animation:
        aah-text-reveal 900ms 400ms
        cubic-bezier(0.16, 1, 0.3, 1)
        both;
}

.aie-arcade-hero__action::after {
    content: "↓";
    color: #9bd7ff;
    font-size: 18px;
    line-height: 1;
    animation: aah-arrow-bounce 1.8s ease-in-out infinite;
}

.aie-arcade-hero__action:hover,
.aie-arcade-hero__action:focus-visible {
    color: #ffffff;
    background: rgba(0, 100, 183, 0.74);
    border-color: rgba(154, 222, 255, 0.96);
    transform: translateY(-3px);
    box-shadow: 0 13px 36px rgba(0, 70, 135, 0.28);
}

.aie-arcade-hero__action:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
}

.aie-arcade-hero__hint {
    position: absolute;
    z-index: 6;
    right: clamp(18px, 3vw, 44px);
    bottom: clamp(18px, 3vw, 34px);
    margin: 0;
    color: rgba(218, 240, 255, 0.66);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.72);
    transition: opacity 200ms ease;
    pointer-events: none;
}

.aie-arcade-hero.is-pointer-active .aie-arcade-hero__hint {
    opacity: 0.24;
}

@keyframes aah-scan-sweep {
    0% { left: -42%; }
    100% { left: 125%; }
}

@keyframes aah-emblem-float {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-9px) rotate(1deg); }
}

@keyframes aah-ring-pulse {
    0% { opacity: 0; transform: scale(0.72); }
    25% { opacity: 0.46; }
    100% { opacity: 0; transform: scale(1.30); }
}

@keyframes aah-title-reveal {
    from {
        opacity: 0;
        transform: translateY(34px) scale(0.97);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes aah-text-reveal {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes aah-arrow-bounce {
    0%, 100% { transform: translateY(-2px); }
    50% { transform: translateY(4px); }
}

@media (max-width: 720px) {
    .aie-arcade-hero {
        min-height: max(640px, 84svh) !important;
    }

    .aie-arcade-hero__content {
        width: calc(100% - 32px);
        padding: 82px 0 86px;
    }

    .aie-arcade-hero__emblem-wrap {
        width: 82px;
        margin-bottom: 28px;
    }

    .aie-arcade-hero__title {
        font-size: clamp(50px, 16vw, 80px);
        line-height: 0.90;
    }

    .aie-arcade-hero__tagline {
        max-width: 470px;
        font-size: clamp(17px, 5.2vw, 24px);
        line-height: 1.30;
        letter-spacing: 0.11em;
    }

    .aie-arcade-hero__description {
        max-width: 520px;
        font-size: 15px;
        line-height: 1.54;
    }

    .aie-arcade-hero__hint {
        right: 16px;
        bottom: 16px;
        font-size: 8px;
    }
}

@media (max-width: 430px) {
    .aie-arcade-hero__description {
        max-width: 330px;
    }

    .aie-arcade-hero__hint {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .aie-arcade-hero *,
    .aie-arcade-hero *::before,
    .aie-arcade-hero *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}
