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

:root {
  --bg: #0d0e14;
  --surface: #15171f;
  --surface-2: #1c1f2a;
  --border: #262a38;
  --text: #e7e9f2;
  --text-muted: #9aa0b4;
  --accent: #7c6cf6;
  --accent-2: #4fd1c5;
  --code-bg: #11131b;
  --radius: 10px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.65;
}

.docs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 32px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(13, 14, 20, 0.92);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.docs-brand {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.docs-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.docs-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.docs-nav a:hover {
  color: var(--text);
  border-color: var(--accent-2);
}

.docs-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px clamp(24px, 5vw, 64px) 80px;
}

/* The page shell (header, background, this container) runs full width so
   the page doesn't sit in a narrow centered box on large screens -- but
   body text itself stays at a readable measure, centered within that
   wider shell, rather than stretching into unreadably long lines. */
.docs-article {
  max-width: 760px;
  margin: 0 auto;
}

.docs-article pre,
.docs-article table {
  max-width: 100%;
}

.docs-article h1 {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  text-wrap: balance;
}

.docs-article h2 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  margin: 2.4em 0 0.7em;
  padding-top: 0.6em;
  border-top: 1px solid var(--border);
  letter-spacing: -0.01em;
}

.docs-article h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 1.4em;
}

.docs-article h3 {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  margin: 1.8em 0 0.5em;
  color: var(--accent-2);
}

.docs-article p, .docs-article li {
  color: var(--text);
  font-size: 0.98rem;
}

.docs-article a {
  color: var(--accent-2);
  text-decoration: none;
  border-bottom: 1px solid rgba(79, 209, 197, 0.35);
}

.docs-article a:hover {
  border-bottom-color: var(--accent-2);
}

.docs-article code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.85em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.4em;
}

.docs-article pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  overflow-x: auto;
  margin: 1em 0 1.4em;
}

.docs-article pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.85rem;
  color: #d3d7e6;
}

.docs-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
  font-size: 0.9rem;
  overflow-x: auto;
  display: block;
}

.docs-article th, .docs-article td {
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
}

.docs-article th {
  background: var(--surface);
  font-family: 'Sora', sans-serif;
  font-weight: 600;
}

.docs-article blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.2em 0;
  padding: 0.4em 1em;
  color: var(--text-muted);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.docs-article hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.4em 0;
}

.docs-footer {
  display: flex;
  gap: 24px;
  justify-content: center;
  padding: 32px 24px 60px;
  border-top: 1px solid var(--border);
}

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

.docs-footer a:hover {
  color: var(--accent-2);
}

@media (max-width: 600px) {
  .docs-header { padding: 14px 18px; }
  .docs-main { padding: 32px 16px 60px; }
  .docs-article h1 { font-size: 1.6rem; }
}
