/* ===== Hero ===== */
html {
    overflow-x: hidden;
    overflow-x: clip;
}

.hero {
    position: relative;
    min-height: 100vh;
    max-width: 100vw;
    display: grid;
    place-items: center;
    isolation: isolate;
    color: var(--soft);
    margin-block-start: 0;
    margin-top: calc(var(--header-h) * -1);
    padding: 0 6vw;
    overflow: hidden;
}

/* background container */
.hero_bg {
    position: absolute;
    inset: 0;
    z-index: -3;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(1200px 600px at 72% 58%, rgba(71, 192, 255, .18), transparent 60%), linear-gradient(180deg, #071018 0%, #050B12 100%);
}

.hero_bg img {
    width: 120%;
    height: 120%;
    object-fit: cover;
    opacity: .38;
    filter: saturate(110%) brightness(110%) contrast(105%);
    transform: translate3d(0, 0, 0) scale(1.05);
    transition: transform .8s ease;
}

/* starfield */
.stars,
.stars:after {
    content: "";
    position: absolute;
    inset: -20% -10% -10% -10%;
    background:
        radial-gradient(2px 2px at 10% 20%, rgba(255, 255, 255, .35) 40%, transparent 41%) repeat,
        radial-gradient(1px 1px at 70% 30%, rgba(255, 255, 255, .25) 40%, transparent 41%) repeat,
        radial-gradient(1px 1px at 40% 80%, rgba(255, 255, 255, .2) 40%, transparent 41%) repeat;
    background-size: 220px 220px, 180px 180px, 260px 260px;
    animation: drift 80s linear infinite;
    z-index: -2;
    mix-blend-mode: screen;
}

.stars:after {
    animation-duration: 120s;
    opacity: .6;
    filter: blur(.3px);
}

/* globe */
.globe-wrap {
    position: absolute;
    right: min(6vw, 60px);
    bottom: 14vh;
    width: min(38vw, 480px);
    aspect-ratio: 1/1;
    pointer-events: none;
    z-index: -1;
    transform-style: preserve-3d;
}

.globe {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at 65% 38%, rgba(255, 255, 255, .95), rgba(255, 255, 255, .2) 28%, transparent 29%),
        radial-gradient(closest-side, rgba(71, 192, 255, .28), rgba(71, 192, 255, .05) 70%, transparent 71%),
        radial-gradient(100% 120% at 50% 60%, rgba(71, 192, 255, .16), rgba(71, 192, 255, 0) 60%);
    box-shadow: 0 0 80px 10px rgba(71, 192, 255, .18), 0 0 220px 40px rgba(4, 113, 166, .12);
    filter: drop-shadow(0 12px 45px rgba(4, 113, 166, .35));
    transform: translateZ(40px);
    animation: floatY 9s ease-in-out infinite;
}

.globe:after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10%;
    transform: translateX(-50%);
    width: 160%;
    height: 38%;
    background: radial-gradient(60% 100% at 50% 0%, rgba(71, 192, 255, .35), rgba(71, 192, 255, 0) 70%);
    filter: blur(6px);
    z-index: -1;
}

/* content grid */
.hero_content {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: clamp(16px, 4vw, 48px);
    align-items: center;
}

@media (max-width:980px) {
    .hero_content {
        grid-template-columns: 1fr;
    }

    .globe-wrap {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        bottom: 8vh;
        width: min(72vw, 520px);
        opacity: .9;
    }
    
}

/* text */
.kicker {
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 800;
    color: #9EDBFF;
    opacity: .9;
    margin-bottom: 10px;
}

.headline {
    font-size: clamp(28px, 3.8vw, 60px);
    line-height: 1.08;
    margin: 0 0 14px;
    color: var(--soft);
    text-shadow: 0 2px 16px rgba(4, 113, 166, .25);
}

.sub {
    color: #C7E8FF;
    opacity: .9;
    font-size: clamp(16px, 1.2vw, 18px);
    line-height: 1.6;
    max-width: 58ch;
    margin: 0 0 28px;
}

/* CTAs */
.cta-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.btn {
    appearance: none;
    border: 0;
    cursor: pointer;
    padding: 14px 20px;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: .02em;
    transition: transform .15s ease, box-shadow .3s ease, background .3s ease, color .3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn--primary {
    background: linear-gradient(135deg, var(--accent), #12A0E0);
    color: #fff;
    box-shadow: 0 10px 28px rgba(4, 113, 166, .35), inset 0 0 0 1px rgba(255, 255, 255, .12);
}

.btn--ghost {
    background: rgba(255, 255, 255, .06);
    color: var(--soft);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
    backdrop-filter: blur(6px);
}

.btn:hover {
    transform: translateY(-2px);
}

/* icon rail */
.rail {
    position: relative;
    margin-top: min(8vh, 60px);
    display: flex;
    gap: clamp(26px, 5vw, 80px);
    align-items: flex-end;
}

.rail_item {
    position: relative;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
    backdrop-filter: blur(6px);
    animation: floatY 6s ease-in-out infinite;
}

.rail_item:nth-child(2) {
    animation-duration: 7.4s;
}

.rail_item:nth-child(3) {
    animation-duration: 8.2s;
}

.rail_stem {
    position: absolute;
    bottom: 100%;
    width: 2px;
    height: clamp(60px, 10vh, 110px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .15));
    box-shadow: 0 -4px 14px rgba(71, 192, 255, .25);
}

/* reveal utility (scoped for hero if no global) */
#hero .reveal {
    opacity: 0;
    transform: translateY(16px);
}

#hero .reveal.is-in {
    opacity: 1;
    transform: none;
    transition: opacity .7s ease, transform .7s ease;
}

/* keyframes */
@keyframes drift {
    to {
        transform: translate3d(-10%, -8%, 0);
    }
}

@keyframes floatY {

    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -10px, 0);
    }
}