/* =========================
   ROOT VARIABLES
   ========================= */
:root {
    --bg-main: #05090e;
    --bg-card: #0d1622;
    --bg-panel: #111e2e;
    --border: #1c2d42;
    --text-main: #ffffff;
    --text-muted: #9fb0c2;
    --blue: #4da3ff;
    --red: #ff5f5f;
}

/* =========================
   GLOBAL RESET
   ========================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Inter, sans-serif;
}

body {
    background: radial-gradient(circle at top, #0b1a2a, #05090e 70%);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

/* =========================
   BACKGROUND EFFECTS
   ========================= */
.space {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.stars {
    position: absolute;
    inset: -50%;
    background-image:
        radial-gradient(1px 1px at 10% 20%, #fff, transparent),
        radial-gradient(1px 1px at 30% 80%, #fff, transparent),
        radial-gradient(1px 1px at 50% 40%, #fff, transparent),
        radial-gradient(1px 1px at 70% 60%, #fff, transparent),
        radial-gradient(1px 1px at 90% 30%, #fff, transparent);
    background-size: 400px 400px;
    opacity: 0.18;
}

.shooting-star {
    position: absolute;
    width: 160px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,.8), transparent);
    opacity: 0;
    animation: shoot 7s infinite;
}

.shooting-star:nth-child(2) { top: 20%; left: 10%; animation-delay: 2s; }
.shooting-star:nth-child(3) { top: 60%; left: 30%; animation-delay: 4s; }

@keyframes shoot {
    0% { opacity: 0; transform: translateX(0); }
    10% { opacity: 1; }
    30% { transform: translateX(700px); opacity: 0; }
    100% { opacity: 0; }
}

/* =========================
   LOGO GLOBE
   ========================= */
.globe-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.globe {
    width: 900px;
    height: 900px;
    border-radius: 50%;
    background: url("gsn-logo.png") center / cover no-repeat;
    opacity: 0.035;
    animation: rotate 260s linear infinite;
    filter: blur(1px) drop-shadow(0 0 120px rgba(77,163,255,.35));
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* =========================
   NAVIGATION
   ========================= */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 48px;
    position: relative;
    z-index: 2;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 16px;
}

.nav-brand img {
    width: 28px;
    height: 28px;
}

.nav-links a {
    margin: 0 10px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
}

.login-btn {
    background: #5865F2;
    padding: 10px 16px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

/* =========================
   PAGE LAYOUT
   ========================= */
.page {
    max-width: 1100px;
    margin: 80px auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* =========================
   CARDS
   ========================= */
.card {
    background: linear-gradient(180deg, #0e1a2a, #0a1320);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 32px;
    margin-bottom: 32px;
}

.hero-card {
    text-align: center;
}

.eyebrow {
    color: var(--blue);
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.card h1 {
    font-size: 38px;
    margin-bottom: 12px;
}

.card h2 {
    font-size: 22px;
    margin-bottom: 12px;
}

.card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* =========================
   BUTTONS
   ========================= */
.actions {
    margin-top: 24px;
}

.btn {
    padding: 12px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    margin: 0 6px;
}

.primary {
    background: var(--blue);
    color: #05090e;
}

.ghost {
    border: 1px solid var(--blue);
    color: var(--blue);
}

/* =========================
   GRID & MINI CARDS
   ========================= */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.mini-card {
    background: var(--bg-panel);
    border-radius: 14px;
    padding: 20px;
}

/* =========================
   BANNER
   ========================= */
.banner {
    background: rgba(255,95,95,.1);
    border: 1px solid rgba(255,95,95,.4);
    padding: 18px;
    border-radius: 14px;
    margin-bottom: 24px;
}

/* =========================
   COUNTDOWN
   ========================= */
.countdown {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 24px 0 32px;
}

.time-box {
    background: #071725;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    min-width: 80px;
    text-align: center;
}

.time {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* =========================
   STATUS LIST
   ========================= */
.status-card {
    max-width: 900px;
    margin: 0 auto;
}

.status-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 18px;
}

.pill.outage {
    background: rgba(255,95,95,.2);
    color: var(--red);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

/* =========================
   DANGER CARD
   ========================= */
.card.danger {
    border-color: rgba(255,95,95,.35);
}

/* =========================
   FOOTER
   ========================= */
.footer {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 0;
    font-size: 13px;
}

.updated {
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 13px;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 768px) {
    .nav {
        flex-wrap: wrap;
        gap: 16px;
    }

    .nav-links {
        display: none;
    }

    .globe {
        width: 600px;
        height: 600px;
    }

    .countdown {
        flex-wrap: wrap;
    }
}
