/* ─────────────────────────────────────────────────────────────────────────────
   Shannon API Documentation Page - Redesigned
   Modern, animated documentation with interactive features
   ───────────────────────────────────────────────────────────────────────────── */

/* Base Layout */
.api-page {
  min-height: 100vh;
  color: #f8f8ff;
  background: linear-gradient(180deg, #0a0a12 0%, #12121a 100%);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
}

.pill.subtle {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
}

.pill.success {
  background: rgba(76, 175, 80, 0.14);
  border-color: rgba(76, 175, 80, 0.4);
  color: #81c784;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Hero Section
   ───────────────────────────────────────────────────────────────────────────── */

.api-hero {
  text-align: center;
  padding: 60px 20px 50px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.api-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 23, 68, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.15; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.25; transform: translateX(-50%) scale(1.1); }
}

.hero-top-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(255, 23, 68, 0.12);
  border: 1px solid rgba(255, 23, 68, 0.3);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: #ff6b81;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.api-hero h1 {
  font-size: clamp(42px, 8vw, 72px);
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 0%, #ff6b81 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
}

.hero-tagline {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.hero-btn.primary {
  background: linear-gradient(135deg, #ff1744 0%, #ff6b81 100%);
  color: #0b0b12;
  box-shadow: 0 4px 24px rgba(255, 23, 68, 0.4);
}

.hero-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 23, 68, 0.5);
}

.hero-btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #f8f8ff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 23, 68, 0.4);
}

.hero-btn--playground-v2 {
  gap: 10px;
}

.hero-btn-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff8ea1;
  background: rgba(255, 23, 68, 0.12);
  border: 1px solid rgba(255, 23, 68, 0.28);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Mobile Navigation
   ───────────────────────────────────────────────────────────────────────────── */

.mobile-nav-toggle {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff1744 0%, #ff6b81 100%);
  border: none;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(255, 23, 68, 0.4);
  align-items: center;
  justify-content: center;
}

.mobile-nav-toggle.active {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 999;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Documentation Layout
   ───────────────────────────────────────────────────────────────────────────── */

.docs-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.docs-sidebar {
  position: sticky;
  top: 24px;
  height: fit-content;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.docs-content {
  min-width: 0;
}

.doc-section {
  margin-bottom: 80px;
  scroll-margin-top: 100px;
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}

.doc-section h2 {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: -0.02em;
}

.doc-section h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 12px;
  color: #fff;
}

.doc-section p {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin: 0 0 16px;
}

.section-intro {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px !important;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-header h2 {
  margin: 0;
  padding: 0;
  border: none;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Overview Section
   ───────────────────────────────────────────────────────────────────────────── */

.overview-section {
  background: radial-gradient(ellipse at top left, rgba(255, 23, 68, 0.08) 0%, transparent 50%);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px;
}

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

.overview-card {
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  transition: all 0.2s ease;
}

.overview-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.overview-title {
  font-size: 14px;
  font-weight: 700;
}

.overview-value {
  display: block;
  font-family: "Fira Code", "Roboto Mono", monospace;
  font-size: 13px;
  color: #ffb3c1;
  word-break: break-all;
  margin-bottom: 6px;
  background: none;
  padding: 0;
}

.overview-description {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.checklist-grid {
  margin-top: 20px;
}

.checklist-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px;
}

.checklist-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 12px;
}

.checklist-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checklist-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.checkmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(76, 175, 80, 0.18);
  color: #81c784;
  font-weight: 800;
  flex-shrink: 0;
}

.checklist-copy {
  flex: 1;
}

.checklist-item-title {
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.checklist-item-detail {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 1.5;
}

.checklist-item .pill {
  margin-left: auto;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Features & Models Grid
   ───────────────────────────────────────────────────────────────────────────── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Quick Start
   ───────────────────────────────────────────────────────────────────────────── */

.quickstart-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 18px;
  align-items: flex-start;
}

.quickstart-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-card {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 23, 68, 0.16);
  color: #ff6b81;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-body h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.step-body p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
  font-size: 14px;
}

.quickstart-code {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px;
}

.endpoint-display {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-bottom: 16px;
}

.endpoint-display code {
  flex: 1;
  font-size: 13px;
  color: #ffb3c1;
  background: none;
  padding: 0;
  word-break: break-all;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Options & Error Tables
   ───────────────────────────────────────────────────────────────────────────── */

.options-table,
.error-table {
  margin: 16px 0 24px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.option-row,
.error-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.option-row:last-child,
.error-row:last-child {
  border-bottom: none;
}

.option-row:hover,
.error-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.option-row code {
  flex-shrink: 0;
  min-width: 200px;
  padding: 4px 10px;
  background: rgba(255, 23, 68, 0.12);
  border-radius: 6px;
  font-size: 12px;
  color: #ffb3c1;
}

.option-row span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.5;
}

.error-row {
  display: grid;
  grid-template-columns: 60px 140px 1fr;
  gap: 16px;
  align-items: center;
  font-size: 14px;
}

.error-code {
  font-family: "Fira Code", monospace;
  font-weight: 700;
  color: #ff6b81;
}

.error-name {
  font-weight: 600;
  color: #fff;
}

.error-row span:last-child {
  color: rgba(255, 255, 255, 0.6);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Info Boxes
   ───────────────────────────────────────────────────────────────────────────── */

.info-box {
  margin: 24px 0;
  padding: 16px 20px;
  background: rgba(33, 150, 243, 0.08);
  border-left: 4px solid rgba(33, 150, 243, 0.6);
  border-radius: 0 12px 12px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

.info-box strong {
  color: #64b5f6;
}

.info-box code {
  background: rgba(33, 150, 243, 0.15);
  color: #90caf9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.info-box.success {
  background: rgba(76, 175, 80, 0.08);
  border-color: rgba(76, 175, 80, 0.6);
}

.info-box.success strong {
  color: #81c784;
}

.info-box.warning {
  background: rgba(255, 193, 7, 0.08);
  border-color: rgba(255, 193, 7, 0.6);
}

.info-box.warning strong {
  color: #ffd54f;
}

/* ─────────────────────────────────────────────────────────────────────────────
   SDKs Section
   ───────────────────────────────────────────────────────────────────────────── */

.sdks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.sdk-card {
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  transition: all 0.2s ease;
}

.sdk-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.sdk-name {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.sdk-description {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 16px;
  line-height: 1.5;
}

.sdk-install {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.sdk-install code {
  font-family: "Fira Code", monospace;
  font-size: 13px;
  color: #ffb3c1;
  background: none;
  padding: 0;
}

.sdk-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #ff6b81;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sdk-link:hover {
  color: #ff8fa3;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Changelog Section
   ───────────────────────────────────────────────────────────────────────────── */

.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.changelog-item {
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

.changelog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.changelog-version {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.changelog-version svg {
  color: #ff6b81;
}

.changelog-date {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.changelog-changes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.changelog-changes li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.change-type {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ─────────────────────────────────────────────────────────────────────────────
   API Key Section
   ───────────────────────────────────────────────────────────────────────────── */

.api-key-section {
  background: radial-gradient(ellipse at top left, rgba(255, 23, 68, 0.08) 0%, transparent 50%);
  border-radius: 20px;
  padding: 32px;
  border: 1px solid rgba(255, 23, 68, 0.15);
}

.auth-badge {
  padding: 6px 12px;
  background: rgba(76, 175, 80, 0.15);
  border: 1px solid rgba(76, 175, 80, 0.3);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: #81c784;
}

.key-card {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.key-info {
  margin-bottom: 16px;
}

.key-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
  display: block;
}

.key-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.key-value {
  flex: 1;
  min-width: 200px;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  font-family: "Fira Code", "Roboto Mono", monospace;
  font-size: 14px;
  color: #ffb3c1;
  word-break: break-all;
}

.key-actions {
  display: flex;
  gap: 10px;
}

.key-warning {
  font-size: 13px;
  color: rgba(255, 193, 7, 0.9);
  margin: 16px 0 0;
  padding: 12px;
  background: rgba(255, 193, 7, 0.08);
  border-radius: 8px;
  border-left: 3px solid rgba(255, 193, 7, 0.5);
}

.key-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.key-meta span {
  color: rgba(255, 255, 255, 0.4);
}

.api-error {
  margin-bottom: 20px;
  padding: 14px 18px;
  background: rgba(255, 23, 68, 0.12);
  border: 1px solid rgba(255, 23, 68, 0.3);
  border-left: 4px solid #ff1744;
  border-radius: 0 12px 12px 0;
  color: #ffcdd2;
  font-size: 14px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Buttons
   ───────────────────────────────────────────────────────────────────────────── */

.btn-primary,
.btn-ghost,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #ff1744 0%, #ff6b81 100%);
  color: #0b0b12;
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 4px 20px rgba(255, 23, 68, 0.4);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #f8f8ff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 23, 68, 0.4);
}

.btn-ghost:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-secondary {
  background: transparent;
  color: #f8f8ff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
}

.btn-primary.large,
.btn-secondary.large {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: 12px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Usage & Charts
   ───────────────────────────────────────────────────────────────────────────── */

.usage-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: #ff6b81;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.coder-usage-section {
  margin: 32px 0;
  padding: 24px;
  background: rgba(138, 43, 226, 0.08);
  border: 1px solid rgba(138, 43, 226, 0.25);
  border-radius: 16px;
}

.coder-usage-section h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.coder-usage-section .usage-stats {
  margin-bottom: 0;
}

.coder-usage-section .stat-card {
  background: rgba(138, 43, 226, 0.15);
  border-color: rgba(138, 43, 226, 0.3);
}

.chart-container {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
}

.chart-container h3 {
  margin-top: 0;
}

.chart-shell {
  margin-top: 16px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   CTA Section
   ───────────────────────────────────────────────────────────────────────────── */

.cta-section {
  text-align: center;
  padding: 80px 20px;
  margin-top: 40px;
  background: radial-gradient(ellipse at center, rgba(255, 23, 68, 0.1) 0%, transparent 70%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cta-section h2 {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.cta-section p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 500px;
  margin: 0 auto 32px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Inline Code
   ───────────────────────────────────────────────────────────────────────────── */

.doc-section code {
  padding: 2px 8px;
  background: rgba(255, 23, 68, 0.12);
  border-radius: 4px;
  font-family: "Fira Code", "Roboto Mono", monospace;
  font-size: 0.9em;
  color: #ffb3c1;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Responsive Design
   ───────────────────────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .docs-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .docs-sidebar {
    position: fixed;
    inset: 0;
    max-height: 100vh;
    height: 100vh;
    z-index: 1001;
    padding: 0;
    background: transparent;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .docs-sidebar.mobile-open {
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
  }

  .quickstart-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .api-hero {
    padding: 50px 16px 40px;
  }

  .api-hero h1 {
    font-size: 36px;
  }

  .hero-tagline {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-top-bar {
    flex-direction: column;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .models-grid {
    grid-template-columns: 1fr;
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .step-card {
    flex-direction: column;
  }

  .option-row {
    flex-direction: column;
    gap: 8px;
  }

  .option-row code {
    min-width: 0;
  }

  .error-row {
    grid-template-columns: 50px 1fr;
    gap: 8px;
  }

  .error-row span:last-child {
    grid-column: 1 / -1;
  }

  .key-row {
    flex-direction: column;
  }

  .key-value {
    min-width: 0;
  }

  .key-actions {
    width: 100%;
  }

  .key-actions button {
    flex: 1;
  }

  .doc-section h2 {
    font-size: 24px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .usage-stats {
    grid-template-columns: 1fr 1fr;
  }

  .stat-value {
    font-size: 28px;
  }

  .cta-section {
    padding: 60px 16px;
  }

  .cta-section h2 {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .api-hero h1 {
    font-size: 28px;
  }

  .key-meta {
    flex-direction: column;
    gap: 12px;
  }

  .usage-stats {
    grid-template-columns: 1fr;
  }

  .sdks-grid {
    grid-template-columns: 1fr;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Scrollbar Styling
   ───────────────────────────────────────────────────────────────────────────── */

.docs-sidebar::-webkit-scrollbar {
  width: 6px;
}

.docs-sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}

.docs-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.docs-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Print Styles
   ───────────────────────────────────────────────────────────────────────────── */

@media print {
  .api-page {
    background: #fff;
    color: #000;
  }

  .docs-sidebar,
  .hero-actions,
  .cta-section,
  .mobile-nav-toggle {
    display: none;
  }

  .docs-layout {
    grid-template-columns: 1fr;
  }
}
