:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #eef4ff;
  --ink: #0d1b2f;
  --muted: #667085;
  --line: #dbe3ef;
  --blue: #156fec;
  --blue-deep: #062a67;
  --cyan: #1fb6d5;
  --green: #16a36a;
  --amber: #d8891c;
  --shadow: 0 18px 48px rgba(13, 27, 47, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

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

code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.docs-page {
  min-width: 0;
  background:
    radial-gradient(circle at top left, rgba(31, 182, 213, 0.1), transparent 28%),
    linear-gradient(180deg, #f5f8fc, #eef4ff 42%, #f7f9fc);
}

.docs-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(20px, 4vw, 54px);
  border-bottom: 1px solid rgba(219, 227, 239, 0.88);
  background: rgba(247, 249, 252, 0.9);
  backdrop-filter: blur(16px);
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--blue-deep);
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
}

.landing-brand img {
  width: 38px;
  height: 38px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  object-fit: contain;
}

.docs-nav-actions,
.docs-link-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 8px;
  font-weight: 700;
}

.primary-button {
  background: var(--blue);
  color: white;
  box-shadow: 0 12px 28px rgba(21, 111, 236, 0.22);
}

.secondary-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.docs-shell {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 54px;
}

.docs-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 18px;
  margin-bottom: 18px;
}

.docs-hero-card,
.docs-summary-card,
.docs-sidebar,
.docs-section {
  border: 1px solid #cfe0f7;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.docs-hero-card {
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 244, 255, 0.92)),
    repeating-linear-gradient(90deg, rgba(21, 111, 236, 0.05) 0 1px, transparent 1px 72px);
}

.eyebrow {
  margin: 0;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-hero-card h1 {
  margin: 12px 0 16px;
  font-size: 52px;
  line-height: 1.02;
}

.docs-hero-card p,
.docs-summary-card p,
.docs-section > p,
.endpoint-card p,
.docs-callout p {
  color: #556172;
  line-height: 1.72;
}

.docs-summary-card {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.docs-summary-card h2,
.docs-section h2 {
  margin: 0;
  font-size: 24px;
}

.docs-meta-list {
  display: grid;
  gap: 12px;
}

.docs-meta-list div {
  display: grid;
  gap: 6px;
}

.docs-meta-list span,
.docs-kv span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.docs-meta-list strong,
.docs-kv strong {
  overflow-wrap: anywhere;
  font-size: 14px;
}

.docs-content {
  display: grid;
  grid-template-columns: minmax(220px, 0.28fr) minmax(0, 0.72fr);
  gap: 18px;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 92px;
  padding: 18px;
}

.docs-sidebar nav {
  display: grid;
  gap: 8px;
}

.docs-sidebar a {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  color: #344054;
  font-weight: 800;
}

.docs-sidebar a:hover {
  background: #eef4ff;
  color: var(--blue-deep);
}

.docs-main {
  display: grid;
  gap: 18px;
}

.docs-section {
  padding: 22px;
}

.docs-section h3 {
  margin: 20px 0 10px;
  font-size: 18px;
}

.docs-section pre {
  margin: 14px 0 0;
  padding: 16px 18px;
  overflow-x: auto;
  color: #dbe8ff;
  background: linear-gradient(180deg, rgba(8, 23, 44, 0.98), rgba(12, 25, 48, 0.98));
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.62;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.endpoint-card,
.docs-callout {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.endpoint-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--blue-deep);
}

.endpoint-card code,
.docs-table td code {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.docs-kv {
  display: grid;
  gap: 12px;
}

.docs-kv div {
  display: grid;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf1f7;
}

.docs-kv div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
}

.docs-table th,
.docs-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #edf1f7;
  text-align: left;
  vertical-align: top;
}

.docs-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .docs-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .docs-hero,
  .docs-content,
  .docs-grid {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: static;
    top: auto;
  }

  .docs-shell {
    width: calc(100% - 28px);
  }

  .docs-hero-card h1 {
    font-size: 38px;
  }
}

@media (max-width: 520px) {
  .docs-nav-actions,
  .docs-link-actions {
    width: 100%;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .docs-hero-card,
  .docs-summary-card,
  .docs-section {
    padding: 18px;
  }
}
