.docs-hero {
  margin-top: calc(-1 * var(--header-offset));
  padding: calc(var(--header-offset) + 6rem) 0 6rem;
  background: var(--color-slate-900);
  background-image: radial-gradient(circle at 20% 0%, rgba(0, 131, 255, 0.15), transparent 60%);
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.docs-hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  margin: 1.25rem 0 1.5rem;
  letter-spacing: -0.02em;
  font-weight: 700;
  max-width: 900px;
}

.docs-hero p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.25rem;
  line-height: 1.6;
}

.docs-hero .badge {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.docs-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
  padding: 4rem 0 7rem;
}

.docs-nav {
  position: sticky;
  top: calc(var(--header-offset) + 2rem);
  border-right: 1px solid var(--color-border);
  padding-right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.docs-nav a {
  display: block;
  padding: 0.65rem 1rem;
  color: var(--color-muted);
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.docs-nav a:hover {
  background: var(--color-slate-50);
  color: var(--color-text);
}

.docs-content section {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 12px 24px rgba(0, 12, 42, 0.03);
  padding: 3rem;
  margin-bottom: 2rem;
  transition: box-shadow 0.3s ease, border-color 0.3s;
}

.docs-content section:hover {
  box-shadow: 0 24px 48px rgba(0, 12, 42, 0.06);
  border-color: rgba(0, 131, 255, 0.2);
}

.docs-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.docs-content h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  color: var(--color-text);
}

.docs-content p,
.docs-content li {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.docs-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.code-block {
  margin: 2rem 0;
  border-radius: 12px;
  background: #000c2a;
  color: #e9efff;
  padding: 1.5rem;
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem;
  line-height: 1.5;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.docs-content article {
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem 0;
}

.docs-content article:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.docs-content article h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.docs-content article p {
  margin-bottom: 0;
}

@media (max-width: 940px) {
  .docs-shell {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .docs-nav {
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding-right: 0;
    padding-bottom: 1.5rem;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .docs-content section {
    padding: 2rem;
  }
}