@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg: #ffffff;
    --text: #000000;
    --text-muted: #666666;
    --accent: #000000;
    --border: #e5e5e5;
    --terminal-bg: #f8f9fa;
    --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-code: 'Fira Code', 'SF Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ui);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Layout --- */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Navigation --- */
nav {
    padding: 2rem 0;
    background: var(--bg);
}

.nav-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-primary {
    background: var(--text);
    color: var(--bg);
    border: 1px solid var(--text);
}

.btn-primary:hover {
    background: #222;
    border-color: #222;
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--text);
}

/* --- Hero Section --- */
.hero {
    padding: 6rem 0 4rem;
    text-align: left;
}

h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
}

/* --- Terminal Block --- */
.terminal-window {
    background: var(--terminal-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    font-family: var(--font-code);
    font-size: 0.95rem;
    color: var(--text);
    overflow-x: auto;
}

.terminal-line {
    display: flex;
    gap: 1rem;
}

.prompt {
    color: var(--text-muted);
    user-select: none;
}

/* --- Sections --- */
.section {
    padding: 5rem 0;
    border-top: 1px solid var(--border);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

.content-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.content-block h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.content-block p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 700px;
}

/* --- Code Blocks --- */
pre {
    background: var(--terminal-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    font-family: var(--font-code);
    font-size: 0.9rem;
    line-height: 1.7;
}

code {
    font-family: var(--font-code);
    font-size: 0.9em;
}

/* Inline code */
p code, li code, h3 code {
    background: var(--terminal-bg);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 0.15em 0.4em;
    font-size: 0.85em;
}

/* --- Docs Layout --- */
.docs-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    gap: 4rem;
}

.docs-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.sidebar-group {
    margin-bottom: 2.5rem;
}

.sidebar-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.docs-sidebar ul {
    list-style: none;
}

.docs-sidebar li {
    margin-bottom: 0.5rem;
}

.docs-sidebar a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color 0.2s;
}

.docs-sidebar a:hover {
    color: var(--text);
}

.docs-content {
    min-width: 0;
}

.docs-header {
    margin-bottom: 4rem;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* --- Docs Sections --- */
section {
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--border);
}

section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

section h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

section p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* --- Footer --- */
footer {
    padding: 4rem 0;
    border-top: 1px solid var(--border);
    margin-top: 4rem;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--text);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero { padding: 4rem 0; }
    .hero-actions { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    .docs-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .docs-sidebar {
        position: static;
        border-bottom: 1px solid var(--border);
        padding-bottom: 2rem;
    }
}
