:root {
    --bg-dark: #121212;
    --card-bg: #1a1a1a;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --border-color: rgba(255, 255, 255, 0.08);
    --primary-blue: #ffffff;
    --panel-soft: rgba(255, 255, 255, 0.035);
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, sans-serif;
    background: #050505;
    color: var(--text-main);
}

.docs-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.05rem;
}

.nav-brand img { width: 24px; height: 24px; }

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.04);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: text;
    transition: border-color 0.2s;
}

.search-box:hover { border-color: rgba(255, 255, 255, 0.2); }
.search-box kbd { background: rgba(255,255,255,0.1); padding: 2px 6px; border-radius: 4px; font-size: 0.75rem; font-family: inherit; margin-left: 8px;}

.nav-links { display: flex; gap: 24px; }
.nav-links a { text-decoration: none; color: var(--text-main); font-size: 0.9rem; font-weight: 500; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 0.7; }

.nav-icons { display: flex; gap: 16px; align-items: center; border-left: 1px solid var(--border-color); padding-left: 24px;}
.nav-icons a { color: var(--text-muted); transition: color 0.2s; display: flex; }
.nav-icons a:hover { color: var(--text-main); }
.theme-toggle { background: transparent; border: none; font-size: 1.1rem; cursor: pointer; color: var(--text-muted); padding: 0;}

.docs-main {
    max-width: 1080px;
    margin: 80px auto;
    padding: 0 40px;
}

.docs-hero {
    margin-bottom: 60px;
}

.docs-hero h1 {
    font-size: 4.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    max-width: 800px;
}

.hero-subtitle {
    font-size: 1.6rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 500;
    max-width: 800px;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.gradient-text { color: #fff; }

.hero-buttons {
    display: flex;
    gap: 16px;
}

.btn-primary-blue, .btn-secondary {
    padding: 12px 24px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s, background 0.2s;
}

.btn-primary-blue { background: var(--primary-blue); color: #050505; border: 1px solid transparent;}
.btn-secondary { background: rgba(255,255,255,0.08); color: white; border: 1px solid transparent;}
.btn-primary-blue:hover { background: #f2f2f2; transform: scale(1.02); }
.btn-secondary:hover { background: rgba(255,255,255,0.12); transform: scale(1.02); }

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.doc-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 12px;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.doc-card h3 { color: var(--text-main); font-size: 1.05rem; font-weight: 600; margin: 0; }
.doc-card p { color: var(--text-muted); font-size: 0.9rem; margin: 0; line-height: 1.5; }
.doc-card:hover { border-color: rgba(255,255,255,0.2); background: #222222; }

.docs-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

.docs-sidebar {
    position: sticky;
    top: 92px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px;
    background: var(--panel-soft);
}

.docs-sidebar a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    padding: 9px 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
}

.docs-sidebar a:hover {
    color: #fff;
    background: rgba(255,255,255,0.06);
}

.article-section {
    margin: 28px 0;
    padding: 22px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--panel-soft);
}

.article-section h2 {
    color: #fff;
    margin: 0 0 12px;
    font-size: 1.25rem;
}

.article-section h3 {
    color: #fff;
    margin: 18px 0 8px;
    font-size: 1.02rem;
}

.article-section ul,
.article-section ol {
    padding-left: 22px;
}

.article-section code {
    color: #fff;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 5px;
    padding: 2px 6px;
}

.article-callout {
    border-left: 3px solid #fff;
    padding: 12px 14px;
    background: rgba(255,255,255,0.055);
    border-radius: 6px;
    color: var(--text-muted);
}

.muted-link {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-links, .nav-icons, .docs-sidebar {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    .nav-links.nav-active, .nav-icons.nav-active {
        display: flex;
    }
    .docs-navbar {
        padding: 16px 20px;
        flex-wrap: wrap;
    }
    .nav-right {
        width: 100%;
        flex-direction: column;
        display: none;
        margin-top: 16px;
        gap: 16px;
        align-items: stretch;
    }
    .nav-right.nav-active {
        display: flex;
    }
    .docs-sidebar.nav-active {
        display: block;
        position: static;
        margin-bottom: 24px;
    }
    .docs-hero h1 { font-size: 3rem; }
    .docs-main { padding: 0 20px; }
    .docs-layout { grid-template-columns: 1fr; }
}
