:root {
  --primary: #3b82f6;
  --bg: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --code-bg: #f3f4f6;
  --sidebar-bg: #f9fafb;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}
.site-nav a {
  margin-left: 1.5rem;
  color: var(--muted);
  text-decoration: none;
}
.site-nav a:hover { color: var(--text); }

/* Docs layout */
.docs-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  padding: 2rem 0;
}
.docs-sidebar {
  border-right: 1px solid var(--border);
  padding-right: 1.5rem;
}
.docs-nav h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.docs-nav h3:first-child { margin-top: 0; }
.docs-nav ul { list-style: none; }
.docs-nav li { margin-bottom: 0.25rem; }
.docs-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
}
.docs-nav a:hover { color: var(--primary); }
.docs-nav a.active {
  color: var(--primary);
  font-weight: 600;
}

/* Content */
.docs-content {
  max-width: 780px;
}
.docs-content h1 { font-size: 2rem; margin-bottom: 1rem; }
.docs-content h2 { font-size: 1.4rem; margin-top: 2rem; margin-bottom: 0.75rem; }
.docs-content h3 { font-size: 1.1rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.docs-content p { margin-bottom: 1rem; }
.docs-content ul, .docs-content ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.docs-content li { margin-bottom: 0.25rem; }
.docs-content a { color: var(--primary); }
.docs-content code {
  background: var(--code-bg);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
}
.docs-content pre {
  background: var(--code-bg);
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  margin-bottom: 1rem;
}
.docs-content pre code {
  background: none;
  padding: 0;
}
.docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}
.docs-content th, .docs-content td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  text-align: left;
}
.docs-content th { background: var(--sidebar-bg); }

/* Home */
.hero {
  text-align: center;
  padding: 4rem 0;
}
.hero h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; color: var(--muted); max-width: 600px; margin: 0 auto 2rem; }
.hero .btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem 0 4rem;
}
.feature h3 { margin-bottom: 0.5rem; }
.feature p { color: var(--muted); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }
  .docs-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-right: 0;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }
}
