/* ═══════════════════════════════════════════════════════
   SATELLITE HERO v4 — Balanced Premium
   Infinity Connect · Clean, cinematic, minimal
   ═══════════════════════════════════════════════════════ */

/* ── Main Container ── */
.sat-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 580px;
    max-height: 1200px;
    overflow: hidden;
    background: #030810;
    contain: layout style;
}

/* ── WebGL Viewport ── */
.sat-hero__viewport {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.sat-hero__viewport canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* ── Content Overlay (left side text) ── */
.sat-hero__content {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    pointer-events: none;
}
.sat-hero__content > .container {
    pointer-events: auto;
    max-width: 540px;
    padding-left: 5%;
}

/* ── Left gradient fade for text readability ── */
.sat-hero__fade {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 52%;
    z-index: 5;
    background: linear-gradient(
        90deg,
        rgba(3, 8, 16, 0.93) 0%,
        rgba(3, 8, 16, 0.6) 30%,
        rgba(3, 8, 16, 0.15) 55%,
        transparent 100%
    );
    pointer-events: none;
}

/* ── Badge ── */
.sat-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid rgba(72, 187, 120, 0.3);
    background: rgba(72, 187, 120, 0.08);
    color: #a0f0c0;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 24px;
    animation: satBadgeFade 0.8s ease-out both;
}
.sat-hero__badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #48bb78;
    box-shadow: 0 0 8px rgba(72, 187, 120, 0.6);
    animation: satPulseLive 2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes satPulseLive {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(72, 187, 120, 0.6); }
    50% { opacity: 0.4; box-shadow: 0 0 16px rgba(72, 187, 120, 0.3); }
}
@keyframes satBadgeFade {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Title ── */
.sat-hero__title {
    margin: 0 0 16px;
    font-size: clamp(30px, 7vw, 56px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #e0c6ff 40%, #b87fff 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: satTitleReveal 0.9s ease-out 0.15s both;
}
.sat-hero__title-accent {
    background: linear-gradient(135deg, #c084fc 0%, #9a4dff 50%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
@keyframes satTitleReveal {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Subtitle ── */
.sat-hero__subtitle {
    margin: 0 0 32px;
    max-width: 440px;
    font-size: clamp(14px, 3vw, 17px);
    line-height: 1.55;
    color: rgba(188, 174, 232, 0.85);
    animation: satSubReveal 0.9s ease-out 0.25s both;
}
@keyframes satSubReveal {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 0.88; transform: translateY(0); }
}

/* ── CTA ── */
.sat-hero__cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    animation: satCtaReveal 0.9s ease-out 0.35s both;
}
@keyframes satCtaReveal {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════
   HUD OVERLAY LAYER
   ═══════════════════════════════════════════════════ */
.sat-hud {
    position: absolute;
    inset: 0;
    z-index: 12;
    pointer-events: none;
    font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
}

/* ── HUD Panels ── */
.sat-hud__panel {
    position: absolute;
    padding: 12px 16px;
    background: rgba(6, 10, 20, 0.55);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border: 1px solid rgba(120, 130, 160, 0.12);
    border-radius: 10px;
    color: rgba(180, 170, 210, 0.65);
    animation: satHudFadeIn 1.2s ease-out 0.6s both;
}
@keyframes satHudFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Top-left: telemetry */
.sat-hud__panel--tl {
    display: none;
}
.sat-hud__label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(130, 120, 170, 0.7);
    margin-bottom: 2px;
}
.sat-hud__sublabel {
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(180, 170, 210, 0.3);
    margin-bottom: 6px;
}
.sat-hud__coords {
    display: none;
}

/* Top-right: active server */
.sat-hud__panel--tr {
    top: 20px;
    right: 20px;
    min-width: 160px;
}
.sat-hud__status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
    display: inline-block;
    margin-right: 6px;
    vertical-align: middle;
    animation: satPulseLive 2s ease-in-out infinite;
}
.sat-hud__status-label {
    display: inline;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(180, 170, 210, 0.4);
    vertical-align: middle;
}
.sat-hud__status-server {
    font-size: 14px;
    font-weight: 700;
    color: #e8e0f0;
    margin: 6px 0 8px;
    font-family: Inter, -apple-system, sans-serif;
}
.sat-hud__status-metrics {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: rgba(180, 170, 210, 0.55);
}
.sat-hud__status-metrics b {
    color: #e8e0f0;
    font-weight: 700;
}

/* Bottom-left: info panel */
.sat-hud__panel--bl {
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sat-hud__info-count {
    font-size: 22px;
    font-weight: 800;
    color: #e8e0f0;
    font-family: Inter, -apple-system, sans-serif;
}
.sat-hud__info-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(180, 170, 210, 0.35);
}

/* ── Scan Sweep (hidden in v4) ── */
.sat-hud__scan {
    display: none;
}

/* ── Corner Brackets (hidden in v4) ── */
.sat-hud__bracket {
    display: none;
}

/* ═══════════════════════════════════════════════════
   TOOLTIP
   ═══════════════════════════════════════════════════ */
.sat-tip {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 25;
    width: min(86vw, 240px);
    padding: 0;
    background: rgba(8, 12, 22, 0.88);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border: 1px solid rgba(120, 130, 160, 0.15);
    border-radius: 14px;
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.55),
        0 0 20px rgba(30, 58, 95, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    display: none;
    font-size: 13px;
    color: #e2d9f3;
}
.sat-tip.is-visible {
    opacity: 1;
    display: block;
}

/* Tooltip head */
.sat-tip__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px 10px;
    border-bottom: 1px solid rgba(120, 130, 160, 0.1);
}
.sat-tip__flag {
    font-size: 20px;
    line-height: 1;
}
.sat-tip__name { flex: 1; min-width: 0; }
.sat-tip__city {
    font-weight: 700;
    font-size: 13px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sat-tip__country {
    font-size: 10.5px;
    color: rgba(180, 170, 210, 0.45);
}
.sat-tip__quality {
    font-weight: 700;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* Tooltip metrics grid */
.sat-tip__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    padding: 10px 14px 12px;
}
.sat-tip__cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.sat-tip__val {
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    font-variant-numeric: tabular-nums;
}
.sat-tip__label {
    font-size: 9px;
    color: rgba(180, 170, 210, 0.4);
    letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════════════
   FALLBACK
   ═══════════════════════════════════════════════════ */
.sat-hero__fallback {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    background:
        radial-gradient(ellipse 80% 60% at 60% 50%, rgba(30, 58, 95, 0.12), transparent 70%),
        linear-gradient(160deg, #030810 0%, #061020 40%, #030810 100%);
    color: rgba(180, 170, 210, 0.5);
    font-size: 14px;
    text-align: center;
    padding: 40px;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */

/* Desktop > 900px */
@media (min-width: 901px) {
    .sat-hero { min-height: 640px; }
    .sat-hero__content > .container { padding-left: 4%; }
    .sat-hero__title { font-size: clamp(40px, 4.5vw, 58px); }
}

/* Tablet / small laptop */
@media (max-width: 900px) {
    .sat-hero {
        min-height: 100svh;
    }
    .sat-hero__fade {
        width: 100%;
        background: linear-gradient(
            180deg,
            rgba(3, 8, 16, 0.93) 0%,
            rgba(3, 8, 16, 0.5) 30%,
            rgba(3, 8, 16, 0.12) 50%,
            transparent 65%
        );
    }
    .sat-hero__content {
        align-items: flex-start;
        padding-top: 80px;
    }
    .sat-hero__content > .container {
        max-width: 100%;
        padding: 0 20px;
        text-align: center;
    }
    .sat-hero__cta { justify-content: center; }
    .sat-hero__subtitle { margin-left: auto; margin-right: auto; }
    .sat-hud__panel--tl { display: none; }
    .sat-hud__panel--tr {
        top: auto;
        bottom: 70px;
        right: 16px;
        font-size: 11px;
        padding: 10px 12px;
        min-width: 140px;
    }
    .sat-hud__panel--bl { bottom: 16px; left: 16px; }
}

/* Mobile < 540px */
@media (max-width: 540px) {
    .sat-hero__content { padding-top: 60px; }
    .sat-hero__content > .container { padding: 0 16px; }
    .sat-hero__badge { font-size: 11px; padding: 6px 12px; margin-bottom: 18px; }
    .sat-hero__title { font-size: clamp(26px, 8vw, 34px); margin-bottom: 12px; }
    .sat-hero__subtitle { font-size: 13.5px; margin-bottom: 24px; }
    .sat-hero__cta { flex-direction: column; width: 100%; gap: 10px; }
    .sat-hero__cta .hero-v3__btn { width: 100%; justify-content: center; }

    .sat-hud__panel--tr {
        bottom: 60px;
        right: 12px;
        padding: 8px 10px;
        min-width: 120px;
    }
    .sat-hud__status-server { font-size: 12px; margin: 4px 0 6px; }
    .sat-hud__status-metrics { gap: 8px; font-size: 10px; }
    .sat-hud__panel--bl {
        bottom: 12px;
        left: 12px;
        padding: 8px 10px;
    }
    .sat-hud__info-count { font-size: 18px; }
    .sat-hud__bracket { display: none; }
    .sat-tip { width: min(90vw, 210px); border-radius: 12px; }
    .sat-tip__head { padding: 10px 12px 8px; gap: 8px; }
    .sat-tip__flag { font-size: 17px; }
    .sat-tip__city { font-size: 12px; }
    .sat-tip__grid { padding: 8px 12px 10px; }
    .sat-tip__val { font-size: 12px; }
    .sat-tip__label { font-size: 8px; }
}

/* Small phones < 420px */
@media (max-width: 420px) {
    .sat-hero__title { font-size: 24px; }
    .sat-hero__subtitle { font-size: 13px; }
    .sat-hud__panel--tr { display: none; }
    .sat-hud__panel--bl { display: none; }
}

/* ═══════════════════════════════════════════════════
   LIGHT THEME OVERRIDES
   ═══════════════════════════════════════════════════ */
html[data-theme="light"] .sat-hero {
    background: #030810;
}
html[data-theme="light"] .sat-hero__fade {
    background: linear-gradient(
        90deg,
        rgba(3, 8, 16, 0.93) 0%,
        rgba(3, 8, 16, 0.6) 30%,
        rgba(3, 8, 16, 0.15) 55%,
        transparent 100%
    );
}
html[data-theme="light"] .sat-hero__badge {
    color: #a0f0c0;
}
html[data-theme="light"] .sat-hero__title {
    background: linear-gradient(135deg, #ffffff 0%, #e0c6ff 40%, #b87fff 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
html[data-theme="light"] .sat-hero__subtitle {
    color: rgba(180, 170, 210, 0.8);
}
html[data-theme="light"] .sat-hud__panel {
    background: rgba(6, 10, 20, 0.65);
}
html[data-theme="light"] .sat-tip {
    background: rgba(8, 12, 22, 0.9);
}
