:root {
  --bg: #0f141a;
  --bg-elevated: #151d25;
  --panel: #101820;
  --text: #e7edf4;
  --muted: #9fb0c3;
  --border: #243342;
  --accent: #39ff14;
  --accent-soft: rgba(57, 255, 20, 0.15);
  --link: #8cf7ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #0b1116 0%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.65;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 14, 18, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
}

.site-brand {
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.site-accent {
  width: 96px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 35%, #00e5ff 100%);
  box-shadow: 0 0 18px rgba(57, 255, 20, 0.45);
}

.layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 0;
  max-width: 1400px;
  margin: 0 auto;
}

.sidebar {
  min-height: calc(100vh - 61px);
  padding: 1.25rem 1rem 2rem 1.25rem;
  border-right: 1px solid var(--border);
  background: rgba(16, 24, 32, 0.78);
}

.nav-list,
.nav-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list > li + li,
.nav-section + .nav-section {
  margin-top: 0.9rem;
}

.nav-section > a,
.nav-list > li > a {
  font-weight: 700;
  color: var(--text);
}

.nav-list ul {
  margin-top: 0.45rem;
  padding-left: 0.9rem;
  border-left: 1px solid var(--border);
}

.nav-list ul li {
  margin-top: 0.35rem;
}

.nav-list ul a {
  color: var(--muted);
}

.content {
  padding: 2rem 2.2rem 3rem;
}

.doc-page {
  max-width: 880px;
}

.doc-header {
  margin-bottom: 1.5rem;
}

.doc-kicker {
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(2rem, 3vw, 2.8rem);
}

h2 {
  margin-top: 2rem;
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

pre {
  overflow-x: auto;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
}

code {
  background: rgba(255, 255, 255, 0.06);
  padding: 0.12rem 0.32rem;
  border-radius: 6px;
}

pre code {
  background: none;
  padding: 0;
}

blockquote {
  margin: 1.2rem 0;
  padding: 0.2rem 1rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
}

th,
td {
  text-align: left;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--border);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.card {
  display: block;
  padding: 1rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(57, 255, 20, 0.05), rgba(255, 255, 255, 0.02));
  color: var(--text);
  transition: transform 120ms ease, border-color 120ms ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(57, 255, 20, 0.45);
  text-decoration: none;
}

.card h2 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .content {
    padding: 1.35rem 1rem 2.5rem;
  }
}
