/* PHOENIX AGENT — Docs (Noir & Blanc) */
:root {
    --black: #050505;
    --black-2: #0a0a0a;
    --black-3: #111111;
    --line: #1e1e1e;
    --line-2: #2a2a2a;
    --gray: #8a8a8a;
    --gray-2: #555555;
    --white: #f2f2f2;
    --display: 'Unbounded', sans-serif;
    --body: 'Space Grotesk', sans-serif;
    --mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background: var(--black);
    color: var(--white);
    font-family: var(--body);
    overflow-x: hidden;
}
::selection { background: var(--white); color: var(--black); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--line-2); }

.mono { font-family: var(--mono); }

/* ===== Docs navbar (reuse old markup) ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(5,5,5,0.9); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.nav-container {
    max-width: 1400px; margin: 0 auto; padding: 0 40px; height: 64px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
    font-family: var(--display); font-weight: 700; font-size: 15px;
    color: var(--white); text-decoration: none; letter-spacing: 0.05em;
    display: flex; align-items: center; gap: 8px;
}
.logo-icon { color: var(--white); font-size: 12px; animation: spin 6s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.logo-accent { font-weight: 300; color: var(--gray); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
    font-family: var(--mono); font-size: 12px; color: var(--gray);
    text-decoration: none; text-transform: uppercase; letter-spacing: 0.1em;
    transition: color 0.25s; padding: 4px 0; border-bottom: 1px solid transparent;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--white); border-bottom-color: var(--white); }

/* ===== Layout ===== */
.docs-layout {
    display: flex; max-width: 1400px; margin: 0 auto;
    padding: 120px 40px 100px; gap: 64px;
}

.docs-sidebar {
    width: 220px; flex-shrink: 0;
    position: sticky; top: 120px; height: fit-content;
}
.docs-sidebar h3 {
    font-family: var(--mono); font-size: 10px; text-transform: uppercase;
    letter-spacing: 0.25em; color: var(--gray-2); margin-bottom: 20px;
}
.docs-sidebar a {
    display: block; font-size: 13px; color: var(--gray);
    text-decoration: none; padding: 9px 14px; margin-bottom: 2px;
    border-left: 2px solid transparent;
    transition: all 0.2s;
}
.docs-sidebar a:hover { color: var(--white); border-left-color: var(--gray-2); background: var(--black-2); }
.docs-sidebar a.active { color: var(--white); border-left-color: var(--white); background: var(--black-2); }

.docs-content { flex: 1; max-width: 780px; }
.docs-content h1 {
    font-family: var(--display); font-size: 40px; font-weight: 800;
    letter-spacing: -0.02em; margin-bottom: 14px;
}
.docs-lead { font-size: 17px; color: var(--gray); margin-bottom: 48px; line-height: 1.7; }

.docs-content h2 {
    font-family: var(--display); font-size: 22px; font-weight: 700;
    margin: 52px 0 18px; padding-top: 28px;
    border-top: 1px solid var(--line);
    letter-spacing: -0.01em;
}
.docs-content h2:first-of-type { border-top: none; padding-top: 0; }

.docs-content h3 {
    font-family: var(--mono); font-size: 14px; font-weight: 600;
    margin: 30px 0 12px; color: var(--white);
}
.docs-content h3::before { content: '// '; color: var(--gray-2); }

.docs-content p { color: var(--gray); margin-bottom: 16px; line-height: 1.8; font-size: 15px; }
.docs-content strong { color: var(--white); }

.docs-content pre {
    background: var(--black-3); border: 1px solid var(--line);
    border-left: 2px solid var(--white);
    padding: 18px 22px; overflow-x: auto; margin-bottom: 22px;
}
.docs-content pre code {
    font-family: var(--mono); font-size: 13px; color: var(--white);
    line-height: 1.75; background: none; padding: 0;
}
.docs-content code {
    font-family: var(--mono); font-size: 13px; color: var(--white);
    background: var(--black-3); border: 1px solid var(--line);
    padding: 2px 7px;
}

.docs-callout {
    background: var(--black-3); border: 1px solid var(--line);
    border-left: 2px solid var(--white);
    padding: 18px 22px; margin: 26px 0;
    font-size: 14px; color: var(--gray); line-height: 1.7;
}
.docs-callout strong { color: var(--white); }

.docs-table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 14px; }
.docs-table th {
    text-align: left; font-family: var(--mono); font-size: 10px;
    text-transform: uppercase; letter-spacing: 0.15em; color: var(--gray-2);
    padding: 12px 16px; border-bottom: 1px solid var(--line-2);
    background: var(--black-2);
}
.docs-table td { padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--gray); }
.docs-table tr { transition: background 0.15s; }
.docs-table tr:hover td { background: var(--black-2); color: var(--white); }

.docs-content ul, .docs-content ol { margin: 16px 0; padding-left: 24px; }
.docs-content li { color: var(--gray); margin-bottom: 9px; line-height: 1.7; font-size: 15px; }
.docs-content li strong { color: var(--white); }

.docs-content a { color: var(--white); text-decoration: none; border-bottom: 1px solid var(--gray-2); transition: border-color 0.2s; }
.docs-content a:hover { border-bottom-color: var(--white); }
.docs-content pre a, .docs-table a { border-bottom: none; }

@media (max-width: 900px) {
    .docs-layout { flex-direction: column; padding: 100px 20px 60px; gap: 32px; }
    .docs-sidebar { width: 100%; position: static; display: flex; flex-wrap: wrap; gap: 4px; }
    .docs-sidebar h3 { width: 100%; }
    .docs-sidebar a { border-left: none; border-bottom: 2px solid transparent; }
    .nav-container { padding: 0 20px; }
    .nav-links { gap: 16px; overflow-x: auto; }
}
