/* Storm-inspired dark UI — Symmetry blue accent */
:root {
    --bg: #0a0a0a;
    --bg-elevated: #121212;
    --bg-card: #151515;
    --bg-pill: #1a1a1a;
    --text: #f5f5f5;
    --text-muted: #8a8a8a;
    --text-dim: #5c5c5c;
    --border: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.1);
    --accent: #6b8cff;
    --accent-bright: #8ba4ff;
    --accent-soft: rgba(107, 140, 255, 0.14);
    --accent-glow: rgba(107, 140, 255, 0.28);
    --radius: 12px;
    --radius-pill: 999px;
    --font: "Outfit", system-ui, sans-serif;
    --header-h: 68px;
    --container: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { min-height: 100%; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

.sky {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background: radial-gradient(800px 480px at 50% -20%, rgba(107, 140, 255, 0.12), transparent 55%), #0a0a0a;
}

#starfield {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0.7;
}

.sky-wash {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(107, 140, 255, 0.06), transparent 70%);
}

.brand-tld { color: var(--accent-bright); }

.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 200;
    transition: background 0.25s, border-color 0.25s;
    border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
    background: rgba(10, 10, 10, 0.88);
    border-bottom-color: var(--border);
    backdrop-filter: blur(16px);
}

.brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px 8px 10px;
    border-radius: var(--radius-pill);
    background: var(--bg-pill);
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.02em;
}

.logo { height: 22px; width: auto; }

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    transition: color 0.2s, background 0.2s;
}

.nav-link:hover, .nav-link.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.header-discord { margin-left: 8px; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer;
    margin-left: auto;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 11px 18px;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn-sm { padding: 8px 14px; font-size: 0.84rem; }

.btn-discord {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-discord:hover {
    transform: translateY(-1px);
    background: var(--accent-bright);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border-strong);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
}

.discord-icon { width: 18px; height: 18px; flex-shrink: 0; }

.page-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.12) transparent;
}

.page { width: 100%; min-height: 100%; }

.login-message {
    margin: 0 0 12px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.88rem;
    text-align: center;
    width: 100%;
}

.login-message.success {
    background: rgba(52, 211, 153, 0.1);
    color: #86efac;
    border: 1px solid rgba(52, 211, 153, 0.25);
}

.login-message.error {
    background: rgba(248, 113, 113, 0.1);
    color: #fca5a5;
    border: 1px solid rgba(248, 113, 113, 0.25);
}

.login-form button:disabled { opacity: 0.6; cursor: not-allowed; }

@media (max-width: 900px) {
    .site-nav {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        background: rgba(10, 10, 10, 0.96);
        border-bottom: 1px solid var(--border);
    }
    .site-nav.is-open { display: flex; }
    .header-discord { display: none; }
    .nav-toggle { display: flex; }
}
