:root {
  --bg: #0f1117;
  --bg-soft: #141926;
  --panel: #171b2a;
  --text: #e9edf8;
  --muted: #9ea6bc;
  --lazy: #45d5ff;
  --forge: #f3be38;
  --accent: #ff9f43;
  --border: #2b3348;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(90% 120% at 0% 0%, #121a2e 0%, transparent 60%),
    radial-gradient(90% 120% at 100% 0%, #2c2617 0%, transparent 60%), var(--bg);
  font-family: Inter, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}
a {
  color: #a8e8ff;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(11, 15, 24, 0.78);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  gap: 20px;
}
.topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.95rem;
}
.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  font-size: 1.18rem;
  white-space: nowrap;
}
.brand-icon {
  width: 40px;
  height: 40px;
  display: block;
  flex: 0 0 auto;
}
.lazy {
  color: var(--lazy);
}
.forge {
  color: var(--forge);
}
.muted {
  color: var(--muted);
}
.hero {
  padding: 44px 0 34px;
  border-bottom: 1px solid var(--border);
}
.eyebrow {
  color: var(--muted);
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}
h1 {
  margin: 0;
  line-height: 1.2;
  font-size: clamp(2rem, 5vw, 3.1rem);
}
.lead {
  max-width: 820px;
  margin: 14px 0 18px;
  color: #d6deef;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.btn {
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 10px 14px;
  font-weight: 700;
  text-decoration: none;
}
.btn.primary {
  background: #1b4f5f;
  border-color: #2b6d80;
  color: #c8f7ff;
}
.btn.ghost {
  background: #1a1f31;
  color: #e9edf8;
}
.terminal-banner {
  border: 1px solid #2e354b;
  border-radius: 12px;
  overflow: hidden;
  background: #090b12;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
}
.terminal-top {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1a2033;
  border-bottom: 1px solid #303753;
  padding: 8px 12px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}
.dot.red {
  background: #ff5d5d;
}
.dot.yellow {
  background: #f3be38;
}
.dot.green {
  background: #42d392;
}
.terminal-title {
  margin-left: 4px;
  color: #9ba7c5;
  font-size: 0.85rem;
}
.terminal-banner pre {
  margin: 0;
  padding: 16px;
  border: 0;
  background: transparent;
}
.docs-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 22px;
  padding: 26px 0 50px;
}
.toc {
  position: sticky;
  top: 78px;
  align-self: start;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}
.toc h3 {
  margin: 0 0 10px;
}
.toc a {
  display: block;
  padding: 5px 0;
  color: #cde7ff;
}
.docs section {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 18px;
}
h2 {
  margin-top: 0;
}
h3 {
  margin-top: 18px;
}
pre {
  background: #0c0f19;
  border: 1px solid #323b53;
  border-radius: 10px;
  padding: 12px;
  overflow-x: auto;
}
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.95rem;
}
.db-grid {
  display: grid;
  gap: 12px;
}
.db-card {
  border: 1px solid #37415b;
  border-radius: 10px;
  background: #121727;
  padding: 12px;
}
.db-card h3 {
  margin: 0 0 8px;
  color: var(--accent);
}
.tech-line {
  margin: 0;
}
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(10, 13, 21, 0.85);
  padding: 18px 0;
  color: #b7c2df;
  font-size: 0.95rem;
}
@media (max-width: 980px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }
  .toc {
    position: static;
  }
}
