:root {
    --bg: #0A0A0F;
    --bg-alt: #12121A;
    --muted: #1A1A24;
    --fg: #FAFAFA;
    --muted-fg: #71717A;
    --accent: #F59E0B;
    --accent-fg: #0A0A0F;
    --accent-muted: rgba(245, 158, 11, 0.15);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --card: rgba(26, 26, 36, 0.6);
    --sidebar-w: 280px;
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Ambient orbs */
body::before, body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
body::before {
    top: -200px; left: 50%; transform: translateX(-50%);
    width: 800px; height: 600px;
    background: radial-gradient(ellipse, rgba(245,158,11,0.08) 0%, transparent 70%);
    filter: blur(100px);
}
body::after {
    bottom: -300px; right: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(ellipse, rgba(245,158,11,0.05) 0%, transparent 70%);
    filter: blur(120px);
}

/* Sidebar */
.sidebar {
    position: fixed; left: 0; top: 0;
    width: var(--sidebar-w); height: 100vh;
    background: var(--bg-alt);
    border-right: 1px solid var(--border);
    padding: 2rem 0;
    overflow-y: auto;
    z-index: 100;
    display: flex; flex-direction: column;
}
.sidebar-header {
    padding: 0 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
}
.sidebar-logo {
    display: flex; align-items: center; gap: 0.75rem;
    text-decoration: none; color: var(--fg);
}
.sidebar-logo-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.sidebar-logo-icon img {
    width: 100%; height: 100%;
    object-fit: contain;
}
.sidebar-logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem; font-weight: 600;
    letter-spacing: -0.025em;
}
.sidebar-nav { flex: 1; padding: 1rem 0; }
.nav-section { padding: 0.5rem 1.5rem; margin-bottom: 0.5rem; }
.nav-section-title {
    font-family: var(--font-mono);
    font-size: 0.75rem; font-weight: 500;
    color: var(--muted-fg);
    text-transform: uppercase; letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}
.nav-link {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.625rem 1rem;
    color: var(--muted-fg); text-decoration: none;
    font-size: 0.9375rem; font-weight: 500;
    border-radius: 8px;
    transition: all 200ms ease-out;
    margin-bottom: 0.25rem;
}
.nav-link:hover { background: rgba(255,255,255,0.05); color: var(--fg); }
.nav-link.active { background: var(--accent-muted); color: var(--accent); }
.nav-link-icon { width: 20px; height: 20px; opacity: 0.7; }
.nav-link.active .nav-link-icon { opacity: 1; }
.sidebar-footer {
    padding: 1.5rem; border-top: 1px solid var(--border);
}
.sidebar-footer a {
    display: flex; align-items: center; gap: 0.5rem;
    color: var(--muted-fg); text-decoration: none;
    font-size: 0.875rem; transition: color 200ms;
}
.sidebar-footer a:hover { color: var(--accent); }

/* Main */
.main {
    margin-left: var(--sidebar-w);
    min-height: 100vh; position: relative; z-index: 1;
}
.content {
    padding: 4rem 4rem;
    max-width: 960px;
    margin: 0 auto;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600; letter-spacing: -0.025em;
    color: var(--fg);
}
h1 { font-size: 2.5rem; line-height: 1.2; margin-bottom: 1.5rem; }
h2 {
    font-size: 1.5rem; line-height: 1.3;
    margin-top: 3rem; margin-bottom: 1rem;
    color: var(--accent);
}
h3 { font-size: 1.25rem; line-height: 1.4; margin-top: 2rem; margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; color: var(--muted-fg); }

/* Hero */
.hero {
    text-align: center; padding: 3rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--accent-muted);
    border: 1px solid rgba(245,158,11,0.3);
    border-radius: 9999px;
    font-family: var(--font-mono);
    font-size: 0.875rem; font-weight: 500;
    color: var(--accent); margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(245,158,11,0.15);
}
.hero-badge-dot {
    width: 8px; height: 8px;
    background: var(--accent); border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(245,158,11,0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(245,158,11,0); }
}
.hero h1 {
    font-size: 3rem; font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--fg), var(--muted-fg));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.25rem; color: var(--muted-fg);
    margin-bottom: 2rem; max-width: 600px;
    margin-left: auto; margin-right: auto;
}
.hero-badges { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.badge {
    display: inline-flex; align-items: center; gap: 0.375rem;
    padding: 0.5rem 1rem; border-radius: 8px;
    font-size: 0.875rem; font-weight: 500;
}
.badge-free { background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.3); color: #22C55E; }
.badge-new { background: var(--accent-muted); border: 1px solid rgba(245,158,11,0.3); color: var(--accent); }
.badge-version { background: rgba(139,92,246,0.15); border: 1px solid rgba(139,92,246,0.3); color: #8B5CF6; }

/* Cards (Glass Effect) */
.card {
    background: var(--card); backdrop-filter: blur(8px);
    border: 1px solid var(--border); border-radius: 12px;
    padding: 1.5rem; margin-bottom: 1.5rem;
    transition: all 300ms ease-out;
}
.card:hover {
    border-color: var(--border-hover);
    background: rgba(26,26,36,0.8);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.3);
}

/* Code */
code { font-family: var(--font-mono); font-size: 0.875rem; }
:not(pre) > code {
    background: var(--muted); padding: 0.25rem 0.5rem;
    border-radius: 6px; color: var(--accent); font-size: 0.8125rem;
}
pre {
    background: var(--muted); border: 1px solid var(--border);
    border-radius: 12px; padding: 1.5rem;
    overflow-x: auto; margin-bottom: 1.5rem;
}
pre code { background: none; padding: 0; color: var(--fg); line-height: 1.7; }

/* Tables */
table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
th, td { padding: 1rem 1.25rem; text-align: left; border-bottom: 1px solid var(--border); }
th {
    background: var(--muted); font-family: var(--font-display);
    font-weight: 600; color: var(--accent); font-size: 0.875rem;
    text-transform: uppercase; letter-spacing: 0.025em;
}
td { color: var(--muted-fg); }
tr:hover td { background: rgba(255,255,255,0.02); color: var(--fg); }
th a:hover { color: var(--accent) !important; text-decoration: underline !important; }

/* Lists */
ul, ol { margin-bottom: 1.5rem; padding-left: 1.5rem; }
li { margin-bottom: 0.5rem; color: var(--muted-fg); }
li::marker { color: var(--accent); }

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem; margin-bottom: 2rem;
}
.feature-card {
    background: var(--card); backdrop-filter: blur(8px);
    border: 1px solid var(--border); border-radius: 12px;
    padding: 1.5rem; transition: all 300ms ease-out;
}
.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.3);
}
.feature-card-icon {
    width: 48px; height: 48px;
    background: var(--accent-muted); border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 1rem;
}
.feature-card-title {
    font-family: var(--font-display); font-size: 1.125rem;
    font-weight: 600; color: var(--fg); margin-bottom: 0.5rem;
}
.feature-card-text { color: var(--muted-fg); font-size: 0.9375rem; line-height: 1.5; }

/* Status */
.status {
    display: inline-flex; align-items: center; gap: 0.375rem;
    padding: 0.25rem 0.75rem; border-radius: 6px;
    font-size: 0.8125rem; font-weight: 500;
}
.status-supported { background: rgba(34,197,94,0.15); color: #22C55E; }
.status-unsupported { background: rgba(251,191,36,0.15); color: #FBBF24; }
.status-na { background: var(--muted); color: var(--muted-fg); }
.status-free { background: var(--accent-muted); color: var(--accent); }

/* Focus */
a:focus-visible, button:focus-visible, .nav-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted-fg); }

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); transition: transform 300ms ease-out; }
    .sidebar.open { transform: translateX(0); }
    .main { margin-left: 0; }
    .content { padding: 3rem 1.5rem; }
    .hero h1 { font-size: 2.5rem; }
    .feature-grid { grid-template-columns: 1fr; }
}
