/* Final Gateway composition and responsive overrides. */

.global-gateway-page {
    min-height: 100%;
    overflow-x: clip;
}

.gateway-header .navbar {
    width: min(1240px, calc(100% - 40px));
}

.gateway-header .logo {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    color: white;
    text-decoration: none;
}

.gateway-header .logo small {
    padding-left: 5px;
    color: rgba(199, 211, 247, .48);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .23em;
    -webkit-text-fill-color: currentColor;
}

.hero {
    width: min(1440px, 100%);
    min-height: 100svh;
    margin: 0 auto;
    gap: clamp(28px, 5vw, 88px);
    padding: 145px clamp(24px, 7vw, 110px) 78px;
}

.hero-left,
.hero-right {
    min-width: 0;
}

.hero-left {
    max-width: 690px;
}

.hero h1 {
    text-wrap: balance;
}

.hero .description {
    max-width: 610px;
}

.hero-buttons {
    align-items: center;
    flex-wrap: wrap;
}

.primary-btn,
.secondary-btn,
.experience-launch {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    text-decoration: none;
    touch-action: manipulation;
}

.primary-btn,
.secondary-btn {
    padding: 15px 22px;
    border-radius: 13px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .07em;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

.primary-btn {
    border: 1px solid rgba(154, 244, 255, .55);
    color: #03101a;
    background: linear-gradient(135deg, #baf8ff, #00e5ff 48%, #8b7bff);
    box-shadow: 0 12px 34px rgba(0, 229, 255, .22), inset 0 1px rgba(255, 255, 255, .55);
}

.secondary-btn {
    border: 1px solid rgba(255, 255, 255, .13);
    color: rgba(230, 238, 255, .84);
    background: rgba(255, 255, 255, .035);
}

.primary-btn:hover,
.secondary-btn:hover {
    transform: translateY(-3px);
}

.primary-btn:hover {
    box-shadow: 0 18px 44px rgba(0, 229, 255, .34), inset 0 1px rgba(255, 255, 255, .65);
}

.secondary-btn:hover {
    border-color: rgba(0, 229, 255, .3);
    color: #00e5ff;
    background: rgba(0, 229, 255, .055);
}

.gateway-signal {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 28px;
    color: rgba(199, 211, 247, .52);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .17em;
}

.signal-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #49ffd3;
    box-shadow: 0 0 16px rgba(73, 255, 211, .8);
    animation: signalPulse 2.2s ease-in-out infinite;
}

#globe-container {
    position: relative;
    width: min(610px, 45vw);
    height: auto;
    aspect-ratio: 1;
    min-height: 0;
    isolation: isolate;
    border-radius: 50%;
    outline: none;
}

#globe-container::before {
    content: "";
    position: absolute;
    inset: 7%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(69, 153, 255, .17), rgba(26, 83, 167, .055) 54%, transparent 72%);
    filter: blur(24px);
}

#globe-container::after {
    content: "";
    position: absolute;
    inset: 13%;
    z-index: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 34% 30%, rgba(44, 105, 173, .3), rgba(5, 17, 39, .78) 48%, rgba(0, 2, 10, .96) 78%);
    box-shadow:
        inset -52px -28px 74px rgba(0, 0, 0, .58),
        0 0 0 1px rgba(126, 202, 255, .2),
        0 0 48px rgba(49, 134, 255, .2);
    opacity: .18;
    transform: scale(.96);
    transition: opacity .7s ease, transform .8s ease;
}

#globe-container canvas {
    position: relative;
    z-index: 1;
    display: block;
    width: 100% !important;
    height: 100% !important;
    opacity: 0;
    cursor: grab;
    touch-action: pan-y;
    transition: opacity .8s ease;
}

#globe-container canvas:active {
    cursor: grabbing;
}

#globe-container.globe-ready canvas {
    opacity: 1;
}

#globe-container.globe-ready::after {
    opacity: 0;
    transform: scale(1.015);
}

#globe-container.globe-fallback::after {
    background:
        radial-gradient(circle at 31% 28%, transparent 0 30%, rgba(3, 11, 28, .12) 49%, rgba(0, 2, 10, .8) 78%),
        url("../assets/textures/earth_daymap.jpg") 68% center / 200% 100% no-repeat;
    opacity: 1;
    transform: scale(1);
}

.global-experience {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto 90px;
    padding: clamp(28px, 5vw, 58px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(6, 15, 42, .86), rgba(9, 7, 32, .78));
    box-shadow: 0 32px 90px rgba(0, 0, 0, .3), inset 0 0 0 1px rgba(0, 229, 255, .025);
    backdrop-filter: blur(20px);
}

.global-experience::before {
    content: "";
    position: absolute;
    inset: -60% 45% 35% -10%;
    z-index: -1;
    border-radius: 50%;
    background: rgba(0, 229, 255, .09);
    filter: blur(65px);
}

.experience-copy {
    max-width: 760px;
}

.section-kicker {
    margin-bottom: 13px;
    color: #00e5ff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .25em;
}

.experience-copy h2 {
    margin: 0;
    color: white;
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -.04em;
}

.experience-copy > p:last-child {
    max-width: 660px;
    margin-top: 18px;
    color: rgba(199, 211, 247, .66);
    font-size: 15px;
    line-height: 1.8;
}

.experience-path {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 38px 0 28px;
    padding: 0;
    list-style: none;
}

.experience-path li {
    min-width: 0;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 17px;
    background: rgba(255, 255, 255, .025);
}

.experience-path span {
    display: block;
    margin-bottom: 22px;
    color: rgba(0, 229, 255, .65);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
}

.experience-path strong,
.experience-path small {
    display: block;
}

.experience-path strong {
    color: white;
    font-size: 15px;
}

.experience-path small {
    margin-top: 7px;
    color: rgba(199, 211, 247, .49);
    font-size: 11px;
    line-height: 1.55;
}

.experience-launch {
    padding: 14px 20px;
    border: 1px solid rgba(0, 229, 255, .25);
    border-radius: 12px;
    color: #00e5ff;
    background: rgba(0, 229, 255, .055);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.experience-launch:hover {
    border-color: rgba(0, 229, 255, .5);
    background: rgba(0, 229, 255, .1);
    transform: translateY(-2px);
}

@keyframes signalPulse {
    0%, 100% { opacity: .55; transform: scale(.85); }
    50% { opacity: 1; transform: scale(1); }
}

@media (max-width: 960px) {
    .gateway-header {
        padding-top: 14px;
    }

    .gateway-header .navbar {
        width: calc(100% - 28px);
        padding: 13px 16px;
        border-radius: 17px;
    }

    .gateway-header .nav-links {
        display: none;
    }

    .gateway-header .logo {
        font-size: 21px;
    }

    .gateway-header .nav-btn {
        padding: 11px 18px;
        font-size: 12px;
    }

    .hero {
        min-height: auto;
        flex-direction: column;
        padding-top: 130px;
        text-align: center;
    }

    .hero-left {
        max-width: 760px;
    }

    .hero .description {
        margin-right: auto;
        margin-left: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    #globe-container {
        width: min(550px, 86vw);
    }

    .experience-path {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .gateway-header .logo small {
        display: none;
    }

    .hero {
        gap: 14px;
        padding: 118px 18px 54px;
    }

    .hero h1 {
        font-size: clamp(42px, 13vw, 62px);
    }

    .hero .subtitle {
        font-size: 9px;
        letter-spacing: .17em;
    }

    .hero .description {
        font-size: 14px;
    }

    .hero-buttons {
        width: 100%;
        flex-direction: column;
    }

    .hero-buttons a {
        width: 100%;
    }

    #globe-container {
        width: min(400px, 92vw);
        min-height: 0;
    }

    .global-experience {
        width: calc(100% - 28px);
        margin-bottom: 52px;
        padding: 28px 20px;
        border-radius: 22px;
    }
}

@media (max-height: 760px) and (min-width: 961px) {
    .hero {
        min-height: 760px;
    }
}
