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

:root {
  --bg: #09090b;
  --surface: #18181b;
  --surface-hover: #27272a;
  --border: #27272a;
  --border-subtle: #1e1e22;
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --radius: 12px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-light); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Layout */
.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 24px;
  border-right: 1px solid var(--border-subtle);
  background: var(--bg);
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 32px;
}
.sidebar-brand svg { flex-shrink: 0; }
.sidebar-section {
  margin-bottom: 24px;
}
.sidebar-section h3 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.sidebar-section ul {
  list-style: none;
}
.sidebar-section li {
  margin-bottom: 4px;
}
.sidebar-section a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all 0.2s;
}
.sidebar-section a:hover {
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}
.sidebar-section a.active {
  background: rgba(245,158,11,0.1);
  color: var(--accent-light);
}

/* Main content */
.main {
  padding: 48px 64px;
  max-width: 800px;
}
.main h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.main h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}
.main h2:first-of-type {
  margin-top: 32px;
  padding-top: 0;
  border-top: none;
}
.main h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
}
.main p {
  color: var(--text-muted);
  margin-bottom: 16px;
}
.main ul, .main ol {
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-left: 24px;
}
.main li {
  margin-bottom: 8px;
}
.main code {
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'SF Mono', Monaco, monospace;
}
.main pre {
  background: var(--surface);
  padding: 16px 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: 16px;
  font-size: 0.875rem;
  line-height: 1.6;
}
.main pre code {
  background: none;
  padding: 0;
}
.callout {
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
}
.callout-title {
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: 8px;
}
.callout p {
  margin-bottom: 0;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}
th, td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
th {
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
}
td {
  color: var(--text-muted);
}
tr:last-child td {
  border-bottom: none;
}

/* Tips / Hints */
.tip {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
  color: var(--text-muted);
}

/* Coming Soon banner */
.coming-soon {
  background: linear-gradient(135deg, rgba(139, 92, 60, 0.2), rgba(196, 164, 132, 0.15));
  border: 1px solid rgba(196, 164, 132, 0.3);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
  text-align: center;
}
.coming-soon .badge {
  display: inline-block;
  background: rgba(139, 92, 60, 0.3);
  color: #C4A484;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.coming-soon h2 {
  border: none;
  padding: 0;
  margin: 0 0 8px 0;
  font-size: 1.25rem;
}
.coming-soon p {
  margin: 0;
  color: var(--text-dim);
}

/* Responsive */
@media (max-width: 900px) {
  .docs-layout { grid-template-columns: 1fr; }
  .sidebar {
    position: relative;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
  .main { padding: 32px 24px; }
}
