:root {
    --bg-primary: #0a0a1a;
    --bg-secondary: #0f1628;
    --bg-card: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    --border-card: rgba(255,255,255,0.07);
    --text-primary: #ffffff;
    --text-secondary: rgba(255,255,255,0.35);
    --text-muted: rgba(255,255,255,0.2);
    --color-up: #00e5a0;
    --color-down: #ff4d6a;
    --font-mono: 'JetBrains Mono', monospace;
    --font-display: 'Space Mono', monospace;
    --font-body: 'Inter', system-ui, sans-serif;
}

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

html, body {
    overflow-x: hidden;
}

body {
    background: #0a0a1a;
    color: #ffffff;
    font-family: 'Inter', system-ui, sans-serif;
    min-height: 100vh;
    padding-top: 52px;
}

/* Nav Bar */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    background: rgba(10, 10, 26, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-inner {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.nav-brand {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    gap: 0.25rem;
}

.nav-link {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* Hamburger toggle — hidden on desktop */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    flex-direction: column;
    gap: 4px;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 1px;
    transition: background 0.2s;
}

/* Mobile nav */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        flex-shrink: 0;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 52px;
        left: 0;
        right: 0;
        z-index: 200;
        background: rgba(10, 10, 26, 0.97);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        flex-direction: column;
        padding: 0.5rem 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        padding: 0.75rem 1.5rem;
        border-radius: 0;
        font-size: 0.9rem;
    }

    .nav-link:hover {
        background: rgba(255, 255, 255, 0.04);
    }
}
