:root {
    --bg-color: #090B0E;
    --card-bg: rgba(25, 29, 36, 0.5);
    --card-bg-hover: rgba(35, 40, 50, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-main: #FFFFFF;
    --text-muted: #8E9297;
    --accent: #00A95A;
    --accent-glow: rgba(0, 169, 90, 0.25);
    --font-base: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --green: #1fd28b;
    --amber: #ffbc42;
    --red: #ff6a5e;
    --blue: #0047FF;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    background-color: var(--bg-color);
}

body {
    font-family: var(--font-base);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.gradient-bg {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100vh;
    max-height: 1200px;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.gradient-bg__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.18;
    mix-blend-mode: screen;
}

.gradient-bg__blob--green {
    top: -200px;
    left: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 80%);
}

.gradient-bg__blob--blue {
    top: -100px;
    right: -100px;
    width: 700px;
    height: 500px;
    background: radial-gradient(circle, #0047FF 0%, transparent 80%);
}

.status-shell {
    width: min(1140px, calc(100% - 48px));
    margin: 0 auto;
    padding: 100px 0 60px;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(9, 11, 14, 0.6);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-color);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo__img {
    height: 32px;
    display: block;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav__link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav__link:hover {
    color: var(--text-main);
}

.status-main {
    display: grid;
    gap: 32px;
    margin-top: 40px;
}

.hero-card, .stat-card, .panel, .service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(16px);
    border-radius: 24px;
}

.hero-card {
    padding: 40px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-kicker, .panel-kicker {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 12px;
    font-weight: 700;
}

.hero-card h1 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    margin: 12px 0 16px;
    letter-spacing: -0.02em;
}

.hero-card p, .panel-note {
    color: var(--text-muted);
    font-size: 16px;
}

.hero-summary {
    align-self: flex-start;
    padding: 12px 20px;
    border-radius: 100px;
    background: var(--accent-glow);
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(0, 169, 90, 0.3);
}

.hero-summary::before {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 169, 90, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(0, 169, 90, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 169, 90, 0); }
}

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

.stat-card {
    padding: 24px;
    transition: transform 0.2s, background 0.2s;
}

.stat-card:hover {
    background: var(--card-bg-hover);
    transform: translateY(-2px);
}

.stat-label {
    display: block;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: 500;
}

.stat-value {
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 700;
    color: var(--text-main);
}

.panel {
    padding: 32px;
}

.panel-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.panel h2 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 8px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.service-card {
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

.service-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-card .pill {
    margin-bottom: 16px;
}

.service-target, .service-detail {
    color: var(--text-muted);
    font-size: 14px;
}

.service-detail {
    margin-top: 16px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid transparent;
}

.pill--operational {
    background: rgba(0, 169, 90, 0.15);
    color: var(--accent);
    border-color: rgba(0, 169, 90, 0.3);
}

.pill--degraded {
    background: rgba(255, 188, 66, 0.15);
    color: var(--amber);
    border-color: rgba(255, 188, 66, 0.3);
}

.pill--down {
    background: rgba(255, 106, 94, 0.15);
    color: var(--red);
    border-color: rgba(255, 106, 94, 0.3);
}

.pill-blue {
    background: rgba(0, 71, 255, 0.15);
    color: #4da6ff;
    border-color: rgba(0, 71, 255, 0.3);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
    box-shadow: 0 0 6px currentColor;
    animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
    0% { opacity: 0.5; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0.5; transform: scale(0.9); }
}

.locations-table-wrap {
    overflow-x: auto;
    margin-top: 10px;
}

.locations-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.locations-table th {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.locations-table td {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 15px;
}

.locations-table tr:last-child td {
    border-bottom: none;
}

.locations-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.flag-icon {
    border-radius: 2px;
    margin-right: 8px;
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .stats-grid, .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .status-shell {
        padding: 80px 0 40px;
    }

    .hero-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
        gap: 16px;
    }
    
    .hero-card h1 {
        font-size: 28px;
    }

    .nav {
        display: none;
    }
    
    .stats-grid, .service-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .panel {
        padding: 20px;
    }

    .panel-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .locations-table th, .locations-table td {
        padding: 12px 16px;
        font-size: 14px;
    }
}
