:root {
    --primary: #115E59;
    --primary-dark: #134E4A;
    --surface: #FFFFFF;
    --surface-2: #F0FDFA;
    --surface-3: #CCFBF1;
    --border: #99F6E4;
    --text: #134E4A;
    --text-muted: #0D9488;
    --text-dim: #5EAFA8;
    --accent: #115E59;
    --accent-light: rgba(17, 94, 89, 0.07);
}

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

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--surface);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

.docs-layout { display: flex; min-height: 100vh; }

/* Sidebar */
.docs-sidebar {
    width: 248px;
    min-width: 248px;
    background: var(--surface-2);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 28px 0;
}

.docs-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 650;
    color: var(--text);
    padding: 0 20px 28px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}
.docs-brand:hover { color: var(--text); }
.docs-brand img {
    width: 28px;
    height: 28px;
    transition: transform 0.2s;
}
.docs-brand:hover img { transform: scale(1.05); }

.nav-brand-text {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #115E59 0%, #0F766E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.docs-nav { padding: 0 16px; }
.nav-section { margin-bottom: 28px; }

.nav-section-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-dim);
    padding: 0 8px;
    margin-bottom: 8px;
}

.nav-link {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    padding: 8px 10px;
    border-radius: 8px;
    transition: all 0.15s;
    font-weight: 400;
}
.nav-link:hover { background: var(--surface-3); color: var(--text); }
.nav-link.active { background: var(--accent-light); color: var(--accent); font-weight: 550; }

/* Content */
.docs-content {
    flex: 1;
    margin-left: 248px;
    padding: 52px 64px 100px;
    max-width: 860px;
}

section { margin-bottom: 80px; }
section:last-child { margin-bottom: 0; }

h1 { font-size: 32px; font-weight: 750; letter-spacing: -1px; margin-bottom: 14px; color: var(--text); line-height: 1.15; }
h2 { font-size: 20px; font-weight: 680; margin-top: 48px; margin-bottom: 14px; color: var(--text); letter-spacing: -0.3px; }
h3 { font-size: 16px; font-weight: 630; margin-top: 32px; margin-bottom: 10px; color: var(--text); }

p { color: var(--text-muted); margin-bottom: 14px; line-height: 1.75; }
p.lead { font-size: 17px; color: var(--text-muted); }

ul, ol { color: var(--text-muted); padding-left: 22px; margin-bottom: 16px; }
li { margin-bottom: 6px; }

code {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 2px 7px;
    font-size: 12.5px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    color: var(--accent);
}

pre {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px 24px;
    overflow-x: auto;
    margin-bottom: 20px;
}
pre code { background: none; border: none; padding: 0; font-size: 13px; color: var(--text); line-height: 1.75; }

table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text-muted); }
th { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-dim); background: var(--surface-2); }
tr:last-child td { border-bottom: none; }
td:first-child code { font-size: 12px; }

/* Concept Grid */
.concept-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 24px 0; }
.concept-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px;
}
.concept-card h3 { font-size: 15px; font-weight: 620; margin-top: 0; margin-bottom: 6px; color: var(--text); }
.concept-card p { font-size: 13.5px; margin-bottom: 0; }

/* Callouts */
.callout { border-radius: 10px; padding: 16px 20px; margin: 20px 0; font-size: 14px; border-left: 3px solid; }
.callout strong { display: block; margin-bottom: 4px; font-weight: 600; }
.callout-info { background: var(--accent-light); border-color: var(--accent); color: var(--text-muted); }
.callout-warning { background: rgba(217, 119, 6, 0.07); border-color: var(--warning); color: var(--text-muted); }
.callout-success { background: rgba(5, 150, 105, 0.07); border-color: var(--success); color: var(--text-muted); }
.callout p { margin-bottom: 0; }

/* Responsive */
@media (max-width: 900px) {
    .docs-sidebar { width: 210px; min-width: 210px; }
    .docs-content { margin-left: 210px; padding: 40px 32px 80px; }
}
@media (max-width: 700px) {
    .docs-layout { flex-direction: column; }
    .docs-sidebar { position: relative; width: 100%; height: auto; border-right: none; border-bottom: 1px solid var(--border); }
    .docs-content { margin-left: 0; padding: 32px 20px 60px; }
    .concept-grid { grid-template-columns: 1fr; }
}
