/* ==========================================================
   Asylonia AI Creation Hall
   Engine Gateway V1
   ========================================================== */

.aihall-gateway {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
    color: #fff4da;
    background:
        radial-gradient(circle at 16% 8%, rgba(255, 216, 132, 0.16), transparent 30%),
        radial-gradient(circle at 88% 18%, rgba(82, 192, 255, 0.12), transparent 34%),
        radial-gradient(circle at 50% 100%, rgba(255, 216, 132, 0.10), transparent 38%),
        linear-gradient(180deg, #070503 0%, #14100d 46%, #071e3a 100%);
}

.aihall-gateway::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 216, 132, 0.055) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 216, 132, 0.035) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: radial-gradient(circle at 50% 44%, #000 0%, #000 54%, transparent 100%);
    opacity: 0.72;
}

.aihall-gateway::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 34%, transparent 0%, transparent 34%, rgba(0, 0, 0, 0.22) 72%, rgba(0, 0, 0, 0.46) 100%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.28), transparent 24%, transparent 76%, rgba(0, 0, 0, 0.32));
}

.aihall-gateway .container {
    position: relative;
    z-index: 4;
}

.aihall-gateway-grid-bg {
    position: absolute;
    left: 7%;
    right: 7%;
    bottom: -24%;
    height: 48%;
    transform: perspective(520px) rotateX(62deg);
    transform-origin: 50% 100%;
    background:
        linear-gradient(90deg, rgba(119, 230, 255, 0.13) 1px, transparent 1px),
        linear-gradient(180deg, rgba(119, 230, 255, 0.10) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(180deg, transparent, #000 24%, transparent 92%);
    opacity: 0.32;
    pointer-events: none;
}

.aihall-gateway-orb {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(18px);
}

.aihall-gateway-orb-one {
    width: 360px;
    height: 360px;
    top: -130px;
    right: -100px;
    background: radial-gradient(circle, rgba(255, 216, 132, 0.17), transparent 68%);
}

.aihall-gateway-orb-two {
    width: 420px;
    height: 420px;
    left: -150px;
    bottom: -160px;
    background: radial-gradient(circle, rgba(95, 216, 255, 0.13), transparent 70%);
}

.aihall-gateway-header {
    width: min(900px, 100%);
    margin: 0 auto 34px;
    text-align: center;
}

.aihall-city-mark {
    width: 96px;
    height: 96px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 30px;
    border: 1px solid rgba(255, 216, 132, 0.30);
    background:
        radial-gradient(circle at 50% 20%, rgba(255, 216, 132, 0.18), transparent 46%),
        rgba(0, 0, 0, 0.28);
    box-shadow:
        0 0 38px rgba(255, 216, 132, 0.14),
        inset 0 0 24px rgba(255, 216, 132, 0.06);
}

.aihall-city-mark img {
    width: 72px;
    height: 72px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 0 16px rgba(255, 216, 132, 0.30));
}

.aihall-gateway .eyebrow {
    color: #ffd884;
}

.aihall-gateway h1 {
    color: #fff7e8;
    font-size: clamp(2.65rem, 6vw, 6.2rem);
    line-height: 0.9;
    letter-spacing: -0.065em;
    margin: 10px auto 0;
}

.aihall-gateway-text {
    max-width: 640px;
    margin: 20px auto 0;
    color: rgba(255, 246, 232, 0.68);
    font-size: 1.08rem;
}

.aihall-engine-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.aihall-engine-card {
    position: relative;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 24px;
    border-radius: 32px;
    border: 1px solid rgba(255, 216, 132, 0.20);
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 216, 132, 0.12), transparent 38%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.030));
    box-shadow: 0 24px 68px rgba(0, 0, 0, 0.22);
    color: #fff4da;
    text-decoration: none;
    isolation: isolate;
    transition:
        transform 0.24s ease,
        border-color 0.24s ease,
        box-shadow 0.24s ease,
        filter 0.24s ease;
}

.aihall-engine-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 216, 132, 0.052) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 216, 132, 0.032) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: 0.32;
}

.aihall-engine-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    background:
        radial-gradient(circle at 74% 18%, rgba(255, 216, 132, 0.18), transparent 35%),
        radial-gradient(circle at 30% 78%, rgba(98, 214, 255, 0.12), transparent 44%);
    transition: opacity 0.24s ease;
}

.aihall-engine-card > * {
    position: relative;
    z-index: 2;
}

.aihall-engine-card-live {
    border-color: rgba(255, 216, 132, 0.52);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(255, 216, 132, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.aihall-engine-card-live::after {
    opacity: 0.74;
}

.aihall-engine-card-live:hover,
.aihall-engine-card-live:focus-visible {
    transform: translateY(-6px);
    border-color: rgba(255, 216, 132, 0.76);
    box-shadow:
        0 36px 92px rgba(0, 0, 0, 0.34),
        0 0 0 1px rgba(255, 216, 132, 0.14),
        0 0 42px rgba(255, 216, 132, 0.12);
    outline: none;
}

.aihall-engine-card-live:hover::after,
.aihall-engine-card-live:focus-visible::after {
    opacity: 1;
}

.aihall-engine-card-soon {
    opacity: 0.82;
}

.aihall-engine-card-soon:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 216, 132, 0.36);
    box-shadow:
        0 28px 72px rgba(0, 0, 0, 0.26),
        0 0 0 1px rgba(255, 216, 132, 0.06);
}

.aihall-engine-status {
    width: fit-content;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 216, 132, 0.22);
    background: rgba(255, 255, 255, 0.055);
    color: rgba(255, 216, 132, 0.88);
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.aihall-engine-status-live {
    color: #170d04;
    border-color: rgba(255, 216, 132, 0.72);
    background: linear-gradient(180deg, #ffe3a0, #d2a34a);
    box-shadow: 0 0 24px rgba(255, 216, 132, 0.16);
}

.aihall-engine-logo {
    width: 124px;
    height: 124px;
    display: grid;
    place-items: center;
    margin-top: 42px;
    border-radius: 34px;
    border: 1px solid rgba(255, 216, 132, 0.25);
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 216, 132, 0.18), transparent 48%),
        rgba(0, 0, 0, 0.24);
    box-shadow:
        0 0 32px rgba(255, 216, 132, 0.10),
        inset 0 0 24px rgba(255, 216, 132, 0.06);
}

.aihall-engine-logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: inherit;
    filter:
        saturate(1.03)
        contrast(1.05)
        drop-shadow(0 0 16px rgba(255, 216, 132, 0.24));
}

.aihall-engine-copy {
    display: block;
    margin-top: 26px;
}

.aihall-engine-kicker {
    display: block;
    color: #ffd884;
    font-size: 0.76rem;
    font-weight: 950;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.aihall-engine-copy strong {
    display: block;
    margin-top: 10px;
    color: #fff7e8;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.1rem, 3vw, 3.1rem);
    line-height: 0.95;
}

.aihall-engine-copy em {
    display: block;
    margin-top: 12px;
    color: rgba(255, 246, 232, 0.62);
    font-style: normal;
    font-size: 1.02rem;
    font-weight: 700;
}

.aihall-engine-action {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin-top: auto;
    padding: 0 18px;
    border-radius: 999px;
    color: #170d04;
    background: linear-gradient(180deg, #ffd884, #b87a20);
    font-size: 0.92rem;
    font-weight: 950;
    box-shadow: 0 18px 38px rgba(184, 124, 31, 0.22);
}

.aihall-engine-action-soon {
    color: rgba(255, 246, 232, 0.68);
    border: 1px solid rgba(255, 216, 132, 0.22);
    background: rgba(255, 255, 255, 0.055);
    box-shadow: none;
}

@media (max-width: 1180px) {
    .aihall-gateway {
        min-height: auto;
    }

    .aihall-engine-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .aihall-engine-card {
        min-height: 380px;
    }
}

@media (max-width: 760px) {
    .aihall-gateway {
        padding-top: 42px;
        padding-bottom: 42px;
    }

    .aihall-gateway-header {
        margin-bottom: 24px;
    }

    .aihall-city-mark {
        width: 76px;
        height: 76px;
        border-radius: 24px;
    }

    .aihall-city-mark img {
        width: 56px;
        height: 56px;
    }

    .aihall-gateway h1 {
        font-size: clamp(2.35rem, 14vw, 4.35rem);
    }

    .aihall-gateway-text {
        font-size: 1rem;
    }

    .aihall-engine-grid {
        grid-template-columns: 1fr;
    }

    .aihall-engine-card {
        min-height: 340px;
        padding: 22px;
        border-radius: 28px;
    }

    .aihall-engine-logo {
        width: 96px;
        height: 96px;
        margin-top: 30px;
        border-radius: 28px;
    }

    .aihall-engine-copy strong {
        font-size: 2.25rem;
    }

    .aihall-engine-action {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .aihall-engine-card,
    .aihall-engine-card::after {
        transition: none !important;
    }

    .aihall-engine-card-live:hover,
    .aihall-engine-card-live:focus-visible,
    .aihall-engine-card-soon:hover {
        transform: none !important;
    }
}
