.ag-stage {
    position: relative;
    min-height: calc(100svh - 74px);
    overflow: hidden;
    color: #e9f4ff;
    background: #03060c;
    isolation: isolate;
}

.ag-stars,
.ag-nebula,
.ag-cabin {
    position: absolute;
    inset: -8%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    will-change: transform;
}

.ag-stars {
    background-image: url("../img/space-nebula.jpg");
    filter: saturate(0.7) brightness(0.55);
}

.ag-nebula {
    background-image: url("../img/space-nebula.jpg");
    opacity: 0.55;
    mix-blend-mode: screen;
    inset: -12%;
}

.ag-cabin {
    z-index: 3;
    background-image: url("../img/ref/cabin.jpg");
    -webkit-mask-image:
        linear-gradient(to bottom, transparent 0 14%, #000 20%),
        radial-gradient(ellipse 64% 52% at 50% 48%, transparent 0 48%, #000 66%);
    mask-image:
        linear-gradient(to bottom, transparent 0 14%, #000 20%),
        radial-gradient(ellipse 64% 52% at 50% 48%, transparent 0 48%, #000 66%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}

.ag-orb,
.ag-rock {
    position: absolute;
    z-index: 1;
    will-change: transform;
}

.ag-orb-spin,
.ag-rock-spin {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 50%;
    animation: ag-spin 140s linear infinite;
}

.ag-orb img,
.ag-rock img {
    display: block;
    width: 138%;
    height: 138%;
    max-width: none;
    margin: -19%;
    object-fit: cover;
}

.ag-orb {
    border-radius: 50%;
    box-shadow:
        0 0 28px 6px rgba(80, 180, 255, 0.45),
        0 0 80px 16px rgba(40, 120, 255, 0.2);
}

.ag-orb::after,
.ag-rock::after {
    content: "";
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.38), transparent 32% 60%, rgba(0, 0, 0, 0.35));
    pointer-events: none;
}

.ag-orb-a { width: min(460px, 38vw); aspect-ratio: 1; left: -6%; top: 18%; }
.ag-orb-b { width: min(280px, 24vw); aspect-ratio: 1; right: 4%; top: 12%; }
.ag-orb-b .ag-orb-spin { animation-duration: 200s; animation-direction: reverse; }

.ag-rock {
    width: 54px;
    height: 46px;
    filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.55));
}

.ag-rock-spin { animation-duration: 48s; border-radius: 46%; }
.ag-rock-1 { left: 18%; top: 58%; }
.ag-rock-2 { right: 16%; top: 64%; width: 36px; height: 30px; }
.ag-rock-2 .ag-rock-spin { animation-duration: 36s; animation-direction: reverse; }

.ag-logo {
    position: relative;
    z-index: 6;
    width: min(760px, calc(100% - 2rem));
    margin: 4vh auto 0;
}

.ag-holo {
    position: relative;
    z-index: 5;
    width: min(920px, calc(100% - 2rem));
    margin: 0.5rem auto 0;
    padding: 1rem 1.25rem 1.25rem;
    background: rgba(3, 12, 24, 0.22);
    border: 1px solid rgba(88, 196, 255, 0.85);
    box-shadow:
        0 0 0 1px rgba(8, 20, 40, 0.8),
        0 0 28px rgba(40, 160, 255, 0.38),
        inset 0 0 40px rgba(40, 150, 255, 0.12);
    backdrop-filter: blur(3px);
}

.ag-holo::before,
.ag-holo::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid #7ad4ff;
    pointer-events: none;
}

.ag-holo::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.ag-holo::after { right: -2px; bottom: -2px; border-left: 0; border-top: 0; }

.ag-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.ag-lead {
    max-width: 38rem;
    margin: 0 0 1.1rem;
    color: rgba(232, 244, 255, 0.88);
    font-size: 1.05rem;
}

.ag-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.ag-actions .btn {
    border-radius: 4px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 0 16px rgba(40, 160, 255, 0.25);
}

.ag-page {
    position: relative;
    z-index: 2;
    background:
        linear-gradient(180deg, rgba(3, 8, 14, 0.2), #070d14 80px),
        #070d14;
}

.ag-page .ef-section-head h2,
.ag-page .ef-panel h2,
.ag-page .ef-feature h3,
.ag-page .ef-post h3 a,
.ag-page .ef-more {
    color: #e9f6ff;
}

.ag-page .ef-kicker { color: #5ec8ff; }

.ag-page .ef-feature,
.ag-page .ef-panel,
.ag-page .ef-post,
.ag-page .ef-ratings a,
.ag-page .ag-server,
.ag-page .ef-message {
    color: #d5e6f2;
    background:
        linear-gradient(180deg, rgba(120, 200, 255, 0.08), rgba(4, 10, 18, 0.88));
    border: 1px solid rgba(90, 186, 255, 0.35);
    box-shadow: inset 0 0 24px rgba(40, 120, 200, 0.08), 0 10px 24px rgba(0, 0, 0, 0.28);
}

.ag-page .ef-feature p,
.ag-page .ef-panel p,
.ag-page .ef-post p { color: #9eb4c6; }

.ag-page .ef-feature::after { border-color: rgba(90, 186, 255, 0.2); }

.ag-server {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.7fr);
    gap: 1rem;
    padding: 1.1rem;
}

.ag-server-video {
    position: relative;
    min-height: 180px;
    overflow: hidden;
    background: #061018 center / cover no-repeat;
    border: 1px solid rgba(90, 186, 255, 0.35);
}

.ag-server-video video {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
}

.ag-address {
    margin: 0.4rem 0 0.8rem;
    font-family: "Space Grotesk", sans-serif;
    letter-spacing: 0.04em;
}

@keyframes ag-spin { to { transform: rotate(360deg); } }

@media (max-width: 991.98px) {
    .ag-orb-a { width: 46vw; left: -12%; top: 8%; }
    .ag-orb-b { width: 28vw; right: -4%; }
    .ag-holo { margin-top: 12vh; }
    .ag-server { grid-template-columns: 1fr; }
    .ag-cabin {
        -webkit-mask-image:
            linear-gradient(to bottom, transparent 0 16%, #000 24%),
            radial-gradient(ellipse 86% 46% at 50% 46%, transparent 0 42%, #000 64%);
        mask-image:
            linear-gradient(to bottom, transparent 0 16%, #000 24%),
            radial-gradient(ellipse 86% 46% at 50% 46%, transparent 0 42%, #000 64%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ag-orb-spin,
    .ag-rock-spin { animation: none; }

    .ag-stars,
    .ag-nebula,
    .ag-cabin,
    .ag-orb,
    .ag-rock,
    .ag-holo { transform: none !important; }
}
