:root {
    --bg: #030615;
    --bg-soft: #0a0f24;
    --accent: #5b8dff;
    --accent-2: #39ffd8;
    --text: #f7f8fb;
    --muted: #a6b0d6;
    --card: rgba(6, 12, 30, 0.85);
    --border: rgba(255, 255, 255, 0.08);
    --radius: 20px;
    font-family: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
}

body {
    line-height: 1.6;
}

.bg-texture {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top, rgba(91, 141, 255, 0.45), transparent 45%),
        radial-gradient(circle at 20% 20%, rgba(57, 255, 216, 0.35), transparent 35%),
        radial-gradient(circle at 80% 0%, rgba(255, 94, 164, 0.35), transparent 30%),
        linear-gradient(135deg, #050818, #030615 65%);
    filter: saturate(120%);
    z-index: -2;
}

.hero {
    padding: 2.5rem clamp(1.5rem, 5vw, 5rem) 0;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.logo {
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text);
}

.logo span {
    color: var(--accent-2);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.95rem;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text);
}

.btn {
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn.primary {
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    border: none;
    color: #020412;
}

.btn.ghost {
    border-color: rgba(255, 255, 255, 0.2);
}

.btn.tiny {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    padding: 3rem 0 4rem;
}

.hero-copy h1 {
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    line-height: 1.1;
    margin: 0 0 1rem;
}

.lead {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 520px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.75rem;
    color: var(--accent-2);
    margin-bottom: 0.75rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat {
    font-size: 1.5rem;
    font-weight: 600;
}

.status-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.45);
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.chip {
    padding: 0.25rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    font-size: 0.8rem;
}

.chip.success {
    background: rgba(57, 255, 216, 0.15);
    color: var(--accent-2);
    border-color: rgba(57, 255, 216, 0.4);
}

.chip.warn {
    background: rgba(255, 199, 95, 0.18);
    color: #ffdf8e;
    border-color: rgba(255, 199, 95, 0.45);
}

.chip.danger {
    background: rgba(255, 124, 124, 0.18);
    color: #ff9a9a;
    border-color: rgba(255, 124, 124, 0.45);
}

.status-main {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted);
}

.value {
    font-size: 1.2rem;
    font-weight: 600;
}

.motd {
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    background: rgba(91, 141, 255, 0.08);
    border: 1px dashed rgba(91, 141, 255, 0.4);
    color: var(--muted);
}

.section {
    padding: 4rem clamp(1.5rem, 5vw, 5rem);
}

.section-head {
    max-width: 620px;
    margin-bottom: 2.5rem;
}

.section h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
}

.subhead {
    color: var(--muted);
}

.live-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.live-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.live-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.player-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 360px;
    overflow-y: auto;
}

.player-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
}

.player-list span.name {
    font-weight: 600;
}

.player-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.placeholder {
    justify-content: center;
    color: var(--muted);
}

.pulse-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.pulse-note {
    font-size: 0.9rem;
    color: var(--muted);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.feature-card,
.dept-card {
    padding: 1.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(7, 10, 26, 0.75);
    min-height: 200px;
}

.dept-card {
    background: rgba(91, 141, 255, 0.12);
    border-color: rgba(91, 141, 255, 0.25);
}

.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.steps li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
}

.steps span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-2);
}

.cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2rem clamp(1.5rem, 5vw, 5rem);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted);
}

.footer a {
    color: var(--muted);
    text-decoration: none;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-stats {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .status-main {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .pulse-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
