:root {
    /* Color Palette - Modern Dark Theme (xAI Inspired) */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0c;
    --bg-tertiary: #141418;

    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    --accent-primary: #ffffff;
    /* White Accent */
    --accent-hover: #e4e4e7;
    /* Zinc-200 */
    --accent-secondary: #ffffff;
    /* Monochrome Secondary */

    --border-color: #2d2d31;
    --border-hover: #45454a;

    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px rgba(255, 255, 255, 0.15);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
}

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

html {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
}

code,
pre,
.mono {
    font-family: "JetBrains Mono", monospace;
}

.center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Site Header */
.site-header {
    background-color: var(--bg-primary);
    padding: 0;
    position: relative;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
}

.logo-icon {
    height: 45px;
    width: auto;
}

.logo-text {
    display: inline;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-divider {
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            var(--border-color) 20%,
            var(--border-color) 80%,
            transparent);
    width: 100%;
    max-width: 100vw;
}

/* Mobile Responsive */
@media (max-width: 768px) {

    /* Ensure header scrolls naturally on mobile */
    .site-header {
        position: relative !important;
    }

    .header-content {
        padding: 12px 16px;
        gap: 12px;
    }

    .header-logo {
        font-size: 0.95rem;
        gap: 8px;
    }

    .logo-icon {
        height: 35px;
    }
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto;
}

.desktop-nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.desktop-nav-link:hover {
    color: var(--text-primary);
}

.desktop-nav-link.active {
    color: var(--text-primary);
    font-weight: 600;
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
}

/* Sponsor Link */
.sponsor-link {
    color: var(--accent-primary);
    text-decoration: underline;
    cursor: pointer;
}

.sponsor-link:hover {
    text-decoration: underline;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Legal Dropdown Styles */
#legal-dropdown-menu {
    max-height: 82px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

#legal-dropdown-menu::-webkit-scrollbar {
    width: 4px;
}

#legal-dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
}

#legal-dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

@media (max-width: 768px) {
    #legal-dropdown-menu {
        max-height: 205px;
    }

    .mobile-only-links {
        display: block !important;
    }
}

@media (min-width: 769px) {
    .mobile-only-links {
        display: none !important;
    }
}