/* Variables */
:root {
    --color-bg: #fff;
    --color-text: #333;
    --color-primary: #2563eb;
    --color-border: #e5e7eb;
    --color-code-bg: #f3f4f6;
    --sidebar-width: 260px;
    --content-max-width: 800px;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

/* Typography */
h1, h2, h3, h4 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    line-height: 1.3;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

code {
    font-family: "SF Mono", Consolas, monospace;
    font-size: 0.9em;
    background: var(--color-code-bg);
    padding: 0.2em 0.4em;
    border-radius: 3px;
}

pre {
    background: var(--color-code-bg);
    padding: 1rem;
    overflow-x: auto;
    border-radius: 6px;
}

pre code {
    background: none;
    padding: 0;
}

/* Doc Layout */
.doc-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    padding: 1.5rem;
    border-right: 1px solid var(--color-border);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar .logo {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--color-text);
    display: block;
    margin-bottom: 1.5rem;
}

.nav-section h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
    margin: 1.5rem 0 0.5rem;
}

.nav-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-section li a {
    display: block;
    padding: 0.25rem 0;
    color: var(--color-text);
    font-size: 0.9rem;
}

.nav-section li.active a {
    color: var(--color-primary);
    font-weight: 500;
}

.content {
    margin-left: var(--sidebar-width);
    padding: 2rem 3rem;
    flex: 1;
    max-width: calc(var(--content-max-width) + var(--sidebar-width) + 6rem);
}

.content article {
    max-width: var(--content-max-width);
}

.content h1:first-child {
    margin-top: 0;
}

/* Home Layout */
.home-layout {
    text-align: center;
}

.hero {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.hero h1 {
    font-size: 3rem;
    margin: 0 0 0.5rem;
}

.tagline {
    font-size: 1.25rem;
    color: #666;
    margin: 0 0 2rem;
}

.install-command {
    display: block;
    width: fit-content;
    margin: 0 auto 1.5rem;
    background: #1e293b;
    color: #e2e8f0;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
}

.install-command code {
    background: none;
    color: inherit;
}

.cta {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-weight: 500;
}

.cta:hover {
    text-decoration: none;
    background: #1d4ed8;
}

.features {
    padding: 3rem 2rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.home-footer {
    padding: 2rem;
    border-top: 1px solid var(--color-border);
    color: #666;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

th, td {
    text-align: left;
    padding: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

th {
    font-weight: 600;
}

/* Lists */
ul, ol {
    padding-left: 1.5rem;
}

li {
    margin: 0.25rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .content {
        margin-left: 0;
        padding: 1.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }
}
