.api-page{
  padding:7px 0 25px;
}

.api-shell{
  width:100%;
  display:grid;
  gap:20px;
  
}

.api-card{
  background: linear-gradient(180deg, var(--surface-strong) 0%, var(--surface) 100%);
  border:1px solid var(--border);
  border-radius:21px;
  padding:21px;
  box-shadow:
    0 20px 48px rgba(0,0,0,0.24),
    inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter:blur(16px) saturate(135%);
  -webkit-backdrop-filter:blur(16px) saturate(135%);
}

.section-kicker{
  display:inline-flex;
  align-items:center;
  padding:7px 11px;
  border-radius:999px;
  background:rgba(165, 189, 255, 0.18);
  border:1px solid rgba(124,92,255,0.22);
  color:var(--accent);
  font-size:11px;
  font-weight:800;
  margin-bottom:12px;
}

.section-head{
  margin-bottom:16px;
}

.section-title{
  margin:0;
  font-size:21px;
  font-weight:900;
  line-height:1.5;
  color:var(--text);
}

.section-desc{
  margin:7px 0 0;
  font-size:12px;
  line-height:1.9;
  color:var(--muted);
}

/* hero */
.api-hero{
  display:grid;
  grid-template-columns:minmax(0, 1.4fr) minmax(249px, .9fr);
  gap:20px;
  align-items:stretch;
  /*background:
    linear-gradient(135deg, rgba(59, 130, 246,0.15), rgba(96, 165, 250,0.08)),
    var(--surface-soft);*/
}

.api-hero-title{
  margin:0;
  font-size:30px;
  line-height:1.4;
  font-weight:900;
  color:var(--text);
}

.api-hero-text{
  margin:12px 0 0;
  max-width:676px;
  font-size:13px;
  line-height:2.05;
  color:var(--muted);
}

.api-tags{
  margin-top:16px;
  display:flex;
  flex-wrap:wrap;
  gap:9px;
}

.api-tag{
  padding:8px 11px;
  border-radius:12px;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.08);
  color:var(--text);
  font-size:11px;
  font-weight:700;
}

.api-hero-stats{
  display:grid;
  gap:12px;
}

.hero-stat-box{
  padding:16px;
  border-radius:16px;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.08);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.04);
}

.hero-stat-box span{
  display:block;
  margin-bottom:9px;
  font-size:12px;
  color:var(--muted);
}

.hero-stat-box strong{
  font-size:25px;
  font-weight:900;
  color:var(--text);
}

.api-grid{
  display:grid;
  gap:20px;
}

.api-grid-2{
  grid-template-columns:1fr 1fr;
}

.prose{
  display:grid;
  gap:12px;
}

.prose p{
  margin:0;
  color:var(--muted);
  line-height:2.1;
  font-size:12px;
}

.feature-list{
  display:grid;
  gap:14px;
}

.feature-item{
  display:grid;
  grid-template-columns:11px 1fr;
  gap:12px;
  align-items:start;
}

.feature-dot{
  width:11px;
  height:11px;
  border-radius:999px;
  margin-top:6px;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  box-shadow:0 0 0 5px rgba(124,92,255,0.12);
}

.feature-title{
  font-size:13px;
  font-weight:800;
  color:var(--text);
  margin-bottom:5px;
}

.feature-desc{
  font-size:12px;
  color:var(--muted);
  line-height:1.95;
}

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

.endpoint-card{
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.07);
  border-radius:16px;
  padding:16px;
}

.endpoint-method{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:48px;
  height:27px;
  border-radius:9px;
  font-size:11px;
  font-weight:900;
  margin-bottom:11px;
}

.endpoint-method.get{
  background:rgba(34,197,94,0.14);
  color:#bdf5cd;
}

.endpoint-method.post{
  background:rgba(59, 130, 246,0.14);
  color:#eadfff;
}

.endpoint-path{
  direction:ltr;
  text-align:left;
  unicode-bidi:embed;
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color:var(--text);
  font-size:12px;
  font-weight:700;
  margin-bottom:7px;
}

.endpoint-text{
  font-size:12px;
  line-height:1.95;
  color:var(--muted);
}

/* code */
.code-block{
  overflow:auto;
  border-radius:16px;
  border:1px solid var(--border-soft);
  background:rgba(8,15,30,0.65);
}

.code-block pre{
  margin:0;
  padding:16px;
  color:#dbe7ff;
  font-size:12px;
  line-height:2;
  direction:ltr;
  text-align:left;
  white-space:pre-wrap;
  word-break:break-word;
}

/* placeholder */
.placeholder-box{
  min-height:100%;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  padding:5px 0;
}

.placeholder-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:57px;
  height:36px;
  border-radius:11px;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  color:#fff;
  font-weight:900;
  letter-spacing:.4px;
  margin-bottom:12px;
}

.placeholder-title{
  font-size:16px;
  font-weight:900;
  color:var(--text);
  margin-bottom:9px;
}

.placeholder-text{
  font-size:12px;
  line-height:2;
  color:var(--muted);
}

/* light */
:root[data-theme="light"] .api-card{
  background:#fff;
  border-color:rgba(15,23,42,0.08);
  box-shadow:
    0 11px 28px rgba(15,23,42,0.06),
    inset 0 1px 0 rgba(255,255,255,0.92);
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}

:root[data-theme="light"] .hero-stat-box,
:root[data-theme="light"] .endpoint-card,
:root[data-theme="light"] .api-tag{
  background:#fff;
  border-color:rgba(15,23,42,0.08);
  box-shadow:
    0 9px 21px rgba(15,23,42,0.04),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

:root[data-theme="light"] .api-hero-title,
:root[data-theme="light"] .section-title,
:root[data-theme="light"] .feature-title,
:root[data-theme="light"] .endpoint-path,
:root[data-theme="light"] .endpoint-method,
:root[data-theme="light"] .placeholder-title{
  color:#0f172a;
}

:root[data-theme="light"] .api-hero-text,
:root[data-theme="light"] .section-desc,
:root[data-theme="light"] .prose p,
:root[data-theme="light"] .feature-desc,
:root[data-theme="light"] .endpoint-text,
:root[data-theme="light"] .placeholder-text,
:root[data-theme="light"] .hero-stat-box span{
  color:#64748b;
}

:root[data-theme="light"] .code-block{
  background:#f8fbff;
  border-color:rgba(15,23,42,0.08);
}

:root[data-theme="light"] .code-block pre{
  color:#0f172a;
}

/* responsive */
@media (max-width:1200px){
  .api-hero{
    grid-template-columns:1fr;
  }

  .endpoint-grid,
  .api-grid-2{
    grid-template-columns:1fr;
  }
}

@media (max-width:900px){
  .api-card{
    padding:18px 14px;
    border-radius:18px;
  }

  .api-hero-title{
    font-size:25px;
  }

  .section-title{
    font-size:20px;
  }
}

@media (max-width:560px){
  .api-card{
    padding:16px 12px;
  }

  .api-hero-title{
    font-size:20px;
    line-height:1.6;
  }

  .api-hero-text,
  .prose p,
  .placeholder-text{
    font-size:12px;
    line-height:2;
  }

  .section-title{
    font-size:18px;
  }

  .hero-stat-box strong{
    font-size:21px;
  }

  .endpoint-path{
    font-size:12px;
  }
}