.api-demo-page {
  --ink: #0b0f1a;
  --ink-mid: #111827;
  --ink-soft: #1a2235;
  --text: #e8edf6;
  --text-muted: #8898b8;
  --text-dim: #5a6a88;
  --accent: #5b6af5;
  --accent-2: #00d4b1;
  --border: rgba(255,255,255,0.07);
  --border-2: rgba(91,106,245,0.22);
  --card-bg: rgba(255,255,255,0.035);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --font-display: Georgia, serif;
  --font-body: inherit;
  background: var(--ink);
  color: var(--text);
  line-height: 1.7;
  overflow: hidden;
}
.api-demo-page *,
.api-demo-page *::before,
.api-demo-page *::after {
  box-sizing: border-box;
}
.api-demo-page a {
  color: inherit;
  text-decoration: none;
}
.api-demo-page .api-demo-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
}
.api-demo-page .api-demo-breadcrumb {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.api-demo-page .api-demo-breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
  flex-wrap: wrap;
}
.api-demo-page .api-demo-breadcrumb-sep {
  opacity: .4;
}
.api-demo-page .api-demo-breadcrumb-current {
  color: var(--text-muted);
}
.api-demo-page .hero-section {
  padding: 72px 0 80px;
}
.api-demo-page .hero-inner {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}
.api-demo-page .hero-content {
  flex: 1 1 520px;
}
.api-demo-page .hero-visual {
  flex: 0 0 420px;
  padding-top: 12px;
}
.api-demo-page .tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.api-demo-page .tag {
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(91,106,245,0.1);
  border: 1px solid var(--border-2);
  font-size: 12px;
  font-weight: 500;
  color: #a8b3f5;
  letter-spacing: .04em;
}
.api-demo-page .tag.teal {
  background: rgba(0,212,177,0.08);
  border-color: rgba(0,212,177,0.2);
  color: #7ee8d9;
}
.api-demo-page .kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}
.api-demo-page .hero-heading {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 22px;
}
.api-demo-page .hero-heading em {
  font-style: italic;
  color: #a8b3f5;
}
.api-demo-page .hero-lead {
  font-size: 17px;
  line-height: 1.85;
  color: #9aabc6;
  max-width: 560px;
  margin-bottom: 36px;
}
.api-demo-page .hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.api-demo-page .btn-primary,
.api-demo-page .btn-ghost {
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: .2s ease;
}
.api-demo-page .btn-primary {
  background: var(--accent);
  color: #fff;
}
.api-demo-page .btn-primary:hover {
  opacity: .88;
  transform: translateY(-1px);
}
.api-demo-page .btn-ghost {
  border: 1px solid var(--border-2);
  color: #a8b3f5;
}
.api-demo-page .btn-ghost:hover {
  background: rgba(91,106,245,0.1);
  color: var(--text);
}
.api-demo-page .dashboard-card {
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #131d33 0%, #0d1525 100%);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
  position: relative;
}
.api-demo-page .dashboard-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 10%, rgba(91,106,245,0.18) 0%, transparent 55%);
  pointer-events: none;
}
.api-demo-page .db-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.025);
}
.api-demo-page .db-dots {
  display: flex;
  gap: 6px;
}
.api-demo-page .db-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.api-demo-page .db-dot:nth-child(1) { background: #ff6158; }
.api-demo-page .db-dot:nth-child(2) { background: #ffbd2e; }
.api-demo-page .db-dot:nth-child(3) { background: #28ca41; }
.api-demo-page .db-tab-row {
  display: flex;
  gap: 2px;
  margin-left: auto;
}
.api-demo-page .db-tab {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  color: var(--text-dim);
}
.api-demo-page .db-tab.active {
  background: rgba(91,106,245,0.15);
  color: #a8b3f5;
}
.api-demo-page .db-body {
  padding: 18px;
}
.api-demo-page .db-suite-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.api-demo-page .db-test-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  margin-bottom: 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  font-size: 12px;
}
.api-demo-page .db-badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
  margin-left: auto;
}
.api-demo-page .db-badge.pass { background: rgba(0,212,177,0.12); color: #4fd9c8; }
.api-demo-page .db-badge.fail { background: rgba(255,82,82,0.12); color: #ff7a7a; }
.api-demo-page .db-badge.skip { background: rgba(255,189,46,0.1); color: #f5c842; }
.api-demo-page .db-method {
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
}
.api-demo-page .db-method.get { background: rgba(91,106,245,0.2); color: #a8b3f5; }
.api-demo-page .db-method.post { background: rgba(0,212,177,0.15); color: #4fd9c8; }
.api-demo-page .db-method.del { background: rgba(255,82,82,0.15); color: #ff7a7a; }
.api-demo-page .db-path {
  color: var(--text-muted);
  flex: 1;
}
.api-demo-page .db-meta {
  font-size: 11px;
  color: var(--text-dim);
}
.api-demo-page .db-separator {
  height: 1px;
  background: var(--border);
  margin: 14px 0;
}
.api-demo-page .db-stats-row {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
  margin-top: 14px;
}
.api-demo-page .db-stat-box {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  text-align: center;
}
.api-demo-page .db-stat-box .val {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}
.api-demo-page .db-stat-box .lbl {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.api-demo-page .db-stat-box .val.green { color: #4fd9c8; }
.api-demo-page .db-stat-box .val.red { color: #ff7a7a; }
.api-demo-page .metrics-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
  margin-bottom: 80px;
}
.api-demo-page .metrics-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.api-demo-page .metric-cell {
  padding: 30px 28px;
  background: var(--ink);
}
.api-demo-page .metric-cell .val {
  font-family: var(--font-display);
  font-size: 36px;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}
.api-demo-page .metric-cell .val span {
  color: var(--accent);
}
.api-demo-page .metric-cell .lbl {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}
.api-demo-page section.content-section {
  padding: 80px 0;
}
.api-demo-page section.content-section + section.content-section {
  border-top: 1px solid var(--border);
}
.api-demo-page .section-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}
.api-demo-page .section-heading {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 16px;
}
.api-demo-page .section-heading em {
  font-style: italic;
  color: #a8b3f5;
}
.api-demo-page .section-lead {
  font-size: 16px;
  line-height: 1.85;
  color: #8898b8;
  max-width: 620px;
}
.api-demo-page .two-col {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}
.api-demo-page .two-col .prose {
  flex: 1;
}
.api-demo-page .two-col .aside {
  flex: 0 0 380px;
}
.api-demo-page .checklist {
  list-style: none;
  margin-top: 28px;
  padding: 0;
}
.api-demo-page .checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: #9aabc6;
  line-height: 1.7;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.api-demo-page .checklist li:last-child {
  border-bottom: none;
}
.api-demo-page .check-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(0,212,177,0.1);
  border: 1px solid rgba(0,212,177,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.api-demo-page .feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 44px;
}
.api-demo-page .feature-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: border-color .25s, transform .25s;
}
.api-demo-page .feature-card:hover {
  border-color: var(--border-2);
  transform: translateY(-2px);
}
.api-demo-page .feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity .25s;
}
.api-demo-page .feature-card:hover::before {
  opacity: 1;
}
.api-demo-page .feature-step {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}
.api-demo-page .feature-card h4 {
  font-family: var(--font-display);
  font-size: 22px;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 12px;
}
.api-demo-page .feature-card p {
  font-size: 14.5px;
  color: #8898b8;
  line-height: 1.8;
  margin: 0;
}
.api-demo-page .feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.api-demo-page .fi-blue { background: rgba(91,106,245,0.12); border: 1px solid rgba(91,106,245,0.2); }
.api-demo-page .fi-teal { background: rgba(0,212,177,0.08); border: 1px solid rgba(0,212,177,0.18); }
.api-demo-page .methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 32px;
}
.api-demo-page .method-pill {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--ink-soft);
  border: 1px solid var(--border);
}
.api-demo-page .method-pill .name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}
.api-demo-page .method-pill .desc {
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.6;
}
.api-demo-page .method-pill.accent-pill {
  border-color: var(--border-2);
}
.api-demo-page .method-pill.accent-pill .name {
  color: #a8b3f5;
}
.api-demo-page .callout {
  margin-top: 40px;
  padding: 32px 36px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(91,106,245,0.08) 0%, rgba(0,212,177,0.04) 100%);
  border: 1px solid rgba(91,106,245,0.2);
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.api-demo-page .callout-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(91,106,245,0.15);
  border: 1px solid rgba(91,106,245,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}
.api-demo-page .callout-body h5 {
  font-family: var(--font-display);
  font-size: 20px;
  color: #fff;
  margin-bottom: 8px;
}
.api-demo-page .callout-body p {
  font-size: 15px;
  color: #8898b8;
  line-height: 1.75;
  margin: 0;
}
.api-demo-page .timeline {
  margin-top: 40px;
  position: relative;
}
.api-demo-page .timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 19px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-2), transparent);
}
.api-demo-page .timeline-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 0 0 32px 0;
}
.api-demo-page .timeline-item:last-child {
  padding-bottom: 0;
}
.api-demo-page .tl-dot {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink-soft);
  border: 2px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  position: relative;
  z-index: 1;
}
.api-demo-page .tl-content h4 {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
  margin-top: 8px;
}
.api-demo-page .tl-content p {
  font-size: 14.5px;
  color: #8898b8;
  line-height: 1.75;
  margin: 0;
}
.api-demo-page .code-mock {
  border-radius: var(--radius);
  background: #0a1120;
  border: 1px solid var(--border);
  overflow: hidden;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12.5px;
}
.api-demo-page .code-mock-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid var(--border);
}
.api-demo-page .code-mock-bar span {
  font-size: 11px;
  color: var(--text-dim);
  font-family: inherit;
}
.api-demo-page .code-mock-bar .badge-green {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0,212,177,0.1);
  color: #4fd9c8;
  font-size: 10px;
  font-weight: 600;
}
.api-demo-page .code-mock pre {
  padding: 18px 20px;
  margin: 0;
  overflow-x: auto;
  line-height: 1.9;
  color: #dbe6fb;
}
.api-demo-page .c-key { color: #a8b3f5; }
.api-demo-page .c-str { color: #7ee8d9; }
.api-demo-page .c-num { color: #f5c842; }
.api-demo-page .c-op { color: var(--text-dim); }
.api-demo-page .c-comm { color: #4a5c7a; font-style: italic; }
.api-demo-page .persona-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.api-demo-page .persona-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid var(--border);
}
.api-demo-page .persona-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.api-demo-page .persona-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}
.api-demo-page .persona-card p {
  font-size: 13.5px;
  color: #8898b8;
  line-height: 1.75;
  margin: 0;
}
.api-demo-page .related-section {
  padding: 80px 0 100px;
}
.api-demo-page .related-heading {
  font-family: var(--font-display);
  font-size: 30px;
  color: #fff;
  margin-bottom: 32px;
}
.api-demo-page .related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.api-demo-page .related-card {
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color .25s, transform .25s;
}
.api-demo-page .related-card:hover {
  border-color: var(--border-2);
  transform: translateY(-3px);
}
.api-demo-page .related-visual {
  height: 160px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #151e33 0%, #0d1525 100%);
  display: flex;
  align-items: flex-end;
  padding: 18px;
}
.api-demo-page .related-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 25%, rgba(91,106,245,0.25), transparent 55%);
}
.api-demo-page .related-visual-label {
  position: relative;
  z-index: 1;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #a8b3f5;
}
.api-demo-page .related-card-body {
  padding: 22px;
}
.api-demo-page .related-date {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 8px;
  display: block;
}
.api-demo-page .related-card-body h3 {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 10px;
}
.api-demo-page .related-card-body p {
  font-size: 13.5px;
  color: #8898b8;
  line-height: 1.7;
  margin: 0;
}
@media (max-width: 991px) {
  .api-demo-page .hero-inner,
  .api-demo-page .two-col {
    flex-direction: column;
  }
  .api-demo-page .hero-visual,
  .api-demo-page .two-col .aside {
    flex: none;
    width: 100%;
    max-width: 100%;
  }
  .api-demo-page .feature-grid,
  .api-demo-page .persona-grid,
  .api-demo-page .related-grid {
    grid-template-columns: 1fr;
  }
  .api-demo-page .metrics-inner {
    grid-template-columns: repeat(2,1fr);
  }
  .api-demo-page .methods-grid {
    grid-template-columns: repeat(2,1fr);
  }
}
@media (max-width: 680px) {
  .api-demo-page .api-demo-container {
    padding: 0 20px;
  }
  .api-demo-page .metrics-inner,
  .api-demo-page .methods-grid,
  .api-demo-page .db-stats-row {
    grid-template-columns: 1fr;
  }
  .api-demo-page .callout {
    flex-direction: column;
    gap: 16px;
  }
  .api-demo-page .hero-heading {
    font-size: 30px;
  }
}


/* =========================================================
   AXQA GHOST BUTTON FIX
   Keep real buttons consistent with the dark UI
   ========================================================= */

.api-demo-page button.btn-ghost {
    background: rgba(91, 106, 245, 0.12) !important;
    border: 1px solid rgba(91, 106, 245, 0.35) !important;
    color: #a8b3f5 !important;
    border-radius: 9px;
    cursor: pointer;
}

.api-demo-page button.btn-ghost:hover {
    background: rgba(91, 106, 245, 0.20) !important;
    border-color: rgba(91, 106, 245, 0.55) !important;
    color: #dfe4ff !important;
}


/* =========================================================
   CSP-SAFE USE CASE HELPERS
   Replaces former inline style attributes used by use-case pages.
   ========================================================= */

.api-demo-page .uc-heading-narrow {
  max-width: 580px;
}

.api-demo-page .uc-workflow-eyebrow {
  margin-bottom: 20px;
}

.api-demo-page .persona-icon.uc-persona-blue {
  background: rgba(91, 106, 245, 0.1);
  border: 1px solid rgba(91, 106, 245, 0.2);
}

.api-demo-page .persona-icon.uc-persona-teal {
  background: rgba(0, 212, 177, 0.08);
  border: 1px solid rgba(0, 212, 177, 0.18);
}

.api-demo-page .persona-icon.uc-persona-gold {
  background: rgba(245, 200, 66, 0.08);
  border: 1px solid rgba(245, 200, 66, 0.18);
}