/* ═══════════════════════════════════════════════
   ZBApex — Hero Visual Styles
   Covers: Section shell, atmospheric layers,
           flight path SVG, world map visual,
           vis-cards, route dots, stats strip
   NOTE: Left hero content (.hero-content) is
         page-specific — styled per page.
═══════════════════════════════════════════════ */

/* ───────────────────────────
   SECTION SHELL
─────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--n900);
}

/* ───────────────────────────
   ATMOSPHERIC LAYERS
─────────────────────────── */

/* Sky gradient — pre-dawn airport sky feel */
.sky-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 90% 55% at 68% 20%, var(--sky-b1) 0%, transparent 65%),
        radial-gradient(ellipse 60% 40% at 15% 70%, var(--sky-b2) 0%, transparent 60%),
        radial-gradient(ellipse 50% 35% at 80% 80%, var(--sky-b3) 0%, transparent 55%),
        linear-gradient(180deg, var(--sky-start) 0%, var(--sky-mid) 35%, var(--sky-end) 65%, var(--sky-mid) 100%);
}

/* Gold horizon glow — city lights / terminal glow */
.horizon-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: radial-gradient(ellipse 80% 60% at 50% 100%, var(--gold-a08) 0%, transparent 65%);
    pointer-events: none;
}

/* Passport security-line texture — ultra subtle */
.passport-texture {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.025;
    background-image:
        repeating-linear-gradient(47deg, var(--gold) 0px, transparent 1px, transparent 8px, var(--gold) 9px),
        repeating-linear-gradient(-47deg, var(--gold) 0px, transparent 1px, transparent 8px, var(--gold) 9px);
    background-size: 18px 18px;
}

/* ───────────────────────────
   STAR FIELD
─────────────────────────── */
.stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: twinkle var(--d, 3s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

@keyframes twinkle {

    0%,
    100% {
        opacity: var(--op, 0.3);
    }

    50% {
        opacity: 0.05;
    }
}

/* ───────────────────────────
   FULL-WIDTH FLIGHT PATHS SVG
─────────────────────────── */
.flightpaths {
    position: absolute;
    inset: 0;
    pointer-events: none;
    width: 100%;
    height: 100%;
}

.plane-glow {
    filter: drop-shadow(0 0 4px var(--gold-a55));
}

@keyframes dashflow {
    to {
        stroke-dashoffset: -1000;
    }
}

/* ───────────────────────────
   HERO BODY LAYOUT
─────────────────────────── */
.hero-body {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
}

.hero-body .container {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 56px;
    align-items: center;
    width: 100%;
}

/* ───────────────────────────
   RIGHT: WORLD VISUAL
─────────────────────────── */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeUp 0.9s ease both 0.3s;
}

.world-wrap {
    position: relative;
    width: 100%;
    max-width: 440px;
    aspect-ratio: 1.2;
    overflow: hidden;
    /* clips canvas to bounds */
}

/* Canvas globe fills the wrap fully */
.world-wrap canvas {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* ── Floating vis-cards ── */
.vis-card {
    position: absolute;
    background: var(--card-bg);
    border: 1px solid var(--gold-a22);
    border-radius: 13px;
    padding: 12px 18px;
    backdrop-filter: blur(16px);
    z-index: 4;
    /* Always LTR — numbers must never flip in RTL langs */
    direction: ltr;
    text-align: center;
    unicode-bidi: isolate;
}

.vc-1 {
    top: 3%;
    right: 1%;
    animation: float1 5s ease-in-out infinite;
}

.vc-2 {
    bottom: 1%;
    animation: float1 4s ease-in-out infinite 1.5s;
}

.vc-3 {
    top: 3%;
    animation: float1 6s ease-in-out infinite 0.8s;
}

@keyframes float1 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

.vc-label {
    font-size: 9px;
    color: var(--tl);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
    font-family: var(--en);
    text-align: center;
}

.vc-value {
    font-size: 19px;
    font-weight: 900;
    color: var(--gold);
    font-family: var(--en);
    line-height: 1;
    text-align: center;
    direction: ltr;
    /* belt-and-suspenders: number never flips */
    unicode-bidi: isolate;
}

.vc-sub {
    font-size: 9px;
    color: var(--tm);
    margin-top: 2px;
    font-family: var(--en);
    text-align: center;
}

/* ── Route dots ── */
.route-dot-gold,
.route-dot-tl {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    z-index: 3;
}

.route-dot-gold {
    background: var(--gold);
    box-shadow: 0 0 10px var(--gold-a70), 0 0 20px var(--gold-a30);
}

.route-dot-tl {
    background: var(--tl);
    box-shadow: 0 0 10px rgba(100, 170, 240, 0.7), 0 0 20px rgba(100, 170, 240, 0.3);
}

.route-dot-gold::after,
.route-dot-tl::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    animation: ripple 2.5s ease-out infinite;
}

.route-dot-gold::after {
    border: 1px solid var(--gold-a30);
}

.route-dot-tl::after {
    border: 1px solid rgba(100, 170, 240, 0.3);
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Dot positions */
.rd1 {
    top: 33%;
    left: 48%;
}

.rd2 {
    top: 13%;
    left: 47%;
}

.rd3 {
    top: 14%;
    left: 18%;
}

.rd4 {
    top: 46%;
    left: 77%;
}

/* ───────────────────────────
   STATS STRIP
─────────────────────────── */
.stats-strip {
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: var(--stats-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-top: auto;
    flex-shrink: 0;
}

/* Gold horizon line — runway edge feel */
.stats-strip::before {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--gold-a45) 20%,
            var(--gold-a65) 50%,
            var(--gold-a45) 80%,
            transparent 100%);
}

.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 32px 0 44px;
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 0 12px;
}

.stat-n {
    font-size: 36px;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 7px;
    font-family: var(--en);
    text-shadow: 0 0 40px var(--gold-a35);
}

.stat-n sup {
    font-size: 20px;
    vertical-align: super;
}

.stat-l {
    font-size: 10px;
    color: var(--tl);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    font-family: var(--en);
}

/* ───────────────────────────
   RESPONSIVE
─────────────────────────── */
@media (max-width: 960px) {
    .hero-body .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-visual {
        display: none;
    }
}

@media (max-width: 640px) {
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}