:root {
  --bg: #ffffff;
  --bg-elevated: #ffffff;
  --bg-card: #f9fafb;
  --bg-sidebar: #f9fafb;
  --border-subtle: rgba(148, 163, 184, 0.4);
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --accent-strong: #2563eb;
  --accent-ring: rgba(37, 99, 235, 0.25);
  --text-strong: #111827;
  --text-muted: #4b5563;
  --text-soft: #6b7280;
  --code-bg: #f3f4f6;
  --code-border: #e5e7eb;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
}

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

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text-strong);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: #ffffff;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-img {
  height: 64px;
  width: auto;
  display: block;
}

.top-nav {
  display: flex;
  gap: 18px;
  font-size: 16px;
}

.top-nav a {
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  padding: 5px 0;
  transition: color 0.18s ease;
}

.top-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent), #7c3aed);
  transition: width 0.2s ease;
}

.top-nav a:hover {
  color: var(--text-strong);
}

.top-nav a:hover::after {
  width: 100%;
}

.top-cta {
  font-size: 15px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: var(--accent-strong);
  text-decoration: none;
  background: #ffffff;
  box-shadow:
    0 4px 10px rgba(15, 23, 42, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition:
    transform 0.1s ease,
    box-shadow 0.1s ease,
    border-color 0.15s ease;
}

.top-cta:hover {
  transform: translateY(-1px);
  border-color: rgba(148, 163, 184, 1);
  box-shadow:
    0 8px 18px rgba(15, 23, 42, 0.08);
}

.layout {
  flex: 1;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 0;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  padding: 12px 20px 32px;
}

.sidebar {
  position: sticky;
  align-self: flex-start;
  top: 72px;
  padding: 18px 14px 18px 4px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: var(--bg-sidebar);
  box-shadow:
    0 12px 30px rgba(15, 23, 42, 0.06);
  max-height: calc(100vh - 96px);
  overflow: auto;
}

.sidebar-section {
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(209, 213, 219, 1);
}

.sidebar-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sidebar-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-soft);
  margin-bottom: 8px;
}

.sidebar a {
  display: block;
  font-size: 15px;
  padding: 5px 8px;
  margin: 1px 0;
  border-radius: 999px;
  color: var(--text-muted);
  text-decoration: none;
  transition:
    background 0.16s ease,
    color 0.16s ease,
    transform 0.08s ease;
}

.sidebar a:hover {
  background: rgba(229, 231, 235, 0.7);
  color: var(--text-strong);
  transform: translateX(1px);
}

.content {
  padding-left: 24px;
}

.hero {
  margin-top: 10px;
  margin-bottom: 28px;
  padding: 22px 24px;
  border-radius: 12px;
  border: 1px solid rgba(209, 213, 219, 1);
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
}

.hero-eyebrow {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 10px;
}

.hero h1 {
  font-size: 34px;
  line-height: 1.2;
  margin: 0 0 10px;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 0 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.1s ease,
    box-shadow 0.12s ease,
    background 0.16s ease,
    color 0.16s ease;
}

.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent-strong), #1d4ed8);
  box-shadow:
    0 0 0 1px rgba(37, 99, 235, 0.1),
    0 12px 24px rgba(37, 99, 235, 0.35);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(37, 99, 235, 0.16),
    0 16px 32px rgba(37, 99, 235, 0.45);
}

.btn.ghost {
  color: var(--text-strong);
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: #ffffff;
}

.btn.ghost:hover {
  background: #f3f4f6;
  border-color: rgba(148, 163, 184, 0.9);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-soft);
}

.hero-meta span {
  padding: 4px 9px;
  border-radius: 999px;
  background: #f3f4f6;
  border: 1px solid rgba(209, 213, 219, 1);
}

.doc-section {
  margin-bottom: 32px;
  padding: 18px 20px;
  border-radius: 10px;
  border: 1px solid rgba(209, 213, 219, 1);
  background: var(--bg-elevated);
  box-shadow:
    0 12px 30px rgba(15, 23, 42, 0.04);
}

.doc-section h2 {
  font-size: 24px;
  margin-top: 0;
  margin-bottom: 12px;
}

.doc-section h3 {
  font-size: 18px;
  margin-top: 18px;
  margin-bottom: 6px;
}

.doc-section p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 4px 0 8px;
}

.doc-section ul {
  padding-left: 18px;
  margin: 4px 0 8px;
}

.doc-section li {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.doc-section code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(243, 244, 246, 0.9);
  border: 1px solid rgba(209, 213, 219, 1);
  color: #111827;
}

pre {
  margin: 8px 0 10px;
}

pre code {
  display: block;
}

.code-block {
  display: block;
  padding: 22px 24px;
  border-radius: 8px;
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  box-shadow:
    0 10px 25px rgba(15, 23, 42, 0.04);
  color: #111827;
  overflow-x: auto;
}

.code-block::-webkit-scrollbar {
  height: 6px;
}

.code-block::-webkit-scrollbar-track {
  background: transparent;
}

.code-block::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.7);
  border-radius: 999px;
}

.site-footer {
  border-top: 1px solid rgba(209, 213, 219, 1);
  background: #ffffff;
  padding: 12px 20px 18px;
}

.site-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-soft);
}

.site-footer-inner a {
  color: var(--accent);
  text-decoration: none;
}

.site-footer-inner a:hover {
  text-decoration: underline;
}

@media (max-width: 960px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px 16px 24px;
  }

  .sidebar {
    display: none;
  }

  .content {
    padding-left: 0;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding-inline: 16px;
    gap: 12px;
  }

  .top-nav {
    display: none;
  }

  .hero {
    padding: 18px 18px;
  }

  .hero h1 {
    font-size: 24px;
  }
}

