:root {
  --bg: #07070d;
  --bg-2: #0d0f18;
  --surface: rgba(18, 20, 31, 0.82);
  --ink: #eef2ff;
  --muted: #8e94ad;
  --line: rgba(160, 170, 214, 0.12);
  --primary: #3c72ff;
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(60, 114, 255, 0.16), transparent 28%),
    radial-gradient(circle at bottom right, rgba(255, 128, 96, 0.08), transparent 28%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}

body {
  position: relative;
  overflow-x: hidden;
}

.bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.bg-layer-grid {
  opacity: 0.28;
  background-image: linear-gradient(to right, rgba(140, 151, 212, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(140, 151, 212, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
}

.bg-layer-radial {
  background: radial-gradient(circle at 18% 18%, rgba(60, 114, 255, 0.22), transparent 34%),
    radial-gradient(circle at 88% 85%, rgba(124, 84, 255, 0.14), transparent 32%);
}

.docs-shell {
  position: relative;
  z-index: 1;
  width: min(1460px, calc(100% - 28px));
  margin: 14px auto 28px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 14px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.28);
}

.docs-sidebar {
  position: sticky;
  top: 14px;
  align-self: start;
  height: calc(100vh - 28px);
  padding: 14px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(60, 114, 255, 0.95), rgba(98, 66, 255, 0.95));
  box-shadow: 0 14px 22px rgba(60, 114, 255, 0.25);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-name,
.brand-subtitle {
  margin: 0;
}

.brand-name,
.eyebrow,
h1,
h2 {
  font-family: "Syne", sans-serif;
}

.brand-subtitle,
.subtitle {
  color: var(--muted);
}

.docs-nav {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}

.docs-nav a {
  color: #d6daf2;
  text-decoration: none;
  padding: 9px 11px;
  border-radius: 12px;
  font-weight: 600;
}

.docs-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.docs-main {
  display: grid;
  gap: 14px;
}

.docs-header,
.docs-section {
  padding: 18px 20px;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #6d7490;
  font-size: 0.72rem;
}

h1 {
  margin: 6px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.docs-section p,
.docs-section li {
  color: #d9def6;
}

.docs-section code {
  color: #edf2ff;
  background: rgba(40, 49, 88, 0.45);
  border: 1px solid rgba(130, 149, 230, 0.35);
  border-radius: 8px;
  padding: 1px 6px;
}

.code-wrap {
  border: 1px solid rgba(130, 149, 230, 0.26);
  border-radius: 14px;
  background: rgba(8, 12, 24, 0.82);
  overflow: hidden;
}

pre {
  margin: 0;
  padding: 12px 14px;
  overflow-x: auto;
}

pre code {
  border: 0;
  background: transparent;
  padding: 0;
  font-family: "Consolas", "Monaco", "Courier New", monospace;
}

.btn {
  border: 0;
  border-top: 1px solid rgba(130, 149, 230, 0.26);
  background: rgba(60, 114, 255, 0.2);
  color: #eaf0ff;
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.btn:hover {
  background: rgba(60, 114, 255, 0.32);
}

@media (max-width: 980px) {
  .docs-shell {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: static;
    height: auto;
  }
}
