/* ============================================
   TRANSCRIPT API — Premium Dark UI v2
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg-primary:    #000000;
  --bg-secondary:  #050505;
  --bg-card:       rgba(255, 255, 255, 0.03);
  --bg-glass:      rgba(0, 238, 255, 0.05);
  --cyan:          #00eeff;
  --cyan-dim:      rgba(0, 238, 255, 0.12);
  --cyan-glow:     rgba(0, 238, 255, 0.4);
  --cyan-border:   rgba(0, 238, 255, 0.22);
  --text-primary:  #ffffff;
  --text-secondary:#94a3b8;
  --text-muted:    #3f4f63;
  --border:        rgba(255, 255, 255, 0.07);
  --sidebar-width: 268px;
  --ease:          cubic-bezier(0.4, 0, 0.2, 1);
  --transition:    all 0.3s var(--ease);
  --radius-card:   18px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--cyan-dim); color: var(--cyan); }

/* ── SCROLLBAR ─────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb {
  background: rgba(0,238,255,0.2);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(0,238,255,0.4); }

/* ── GRID BACKGROUND ───────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0,238,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,238,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

/* ── NAVBAR ────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 68px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.92);
  border-bottom-color: var(--cyan-border);
  box-shadow: 0 1px 40px rgba(0,238,255,0.06);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 34px; height: 34px;
  background: var(--cyan);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 18px rgba(0,238,255,0.5), 0 0 40px rgba(0,238,255,0.2);
  transition: var(--transition);
  flex-shrink: 0;
}
.nav-logo:hover .nav-logo-icon {
  box-shadow: 0 0 28px rgba(0,238,255,0.7), 0 0 60px rgba(0,238,255,0.3);
}
.nav-logo-icon svg { width: 18px; height: 18px; fill: #000; }

.nav-logo-text {
  font-size: 1.05rem; font-weight: 700;
  color: var(--text-primary); letter-spacing: -0.025em;
}
.nav-logo-text span { color: var(--cyan); }

.nav-links {
  display: flex; align-items: center;
  gap: 2rem; list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem; font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--cyan); }

.nav-cta {
  background: var(--cyan) !important;
  color: #000 !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 9px !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  transition: var(--transition) !important;
  box-shadow: 0 0 20px rgba(0,238,255,0.3) !important;
  letter-spacing: -0.01em !important;
}
.nav-cta:hover {
  box-shadow: 0 0 35px rgba(0,238,255,0.6), 0 0 70px rgba(0,238,255,0.2) !important;
  transform: translateY(-1px) scale(1.02) !important;
}
.nav-cta::after { display: none !important; }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: var(--transition);
}
.nav-toggle:hover { background: var(--bg-glass); }
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s;
  display: block;
}

/* ── HERO ──────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem 5rem;
  overflow: hidden;
  isolation: isolate;
}

#particles-canvas {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
}

/* Aurora glow orbs */
.hero-orb {
  position: absolute; border-radius: 50%;
  pointer-events: none; z-index: 0;
  filter: blur(80px);
}
.hero-orb-1 {
  width: 700px; height: 700px;
  top: -15%; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(0,238,255,0.1) 0%, transparent 65%);
  animation: orb-drift 8s ease-in-out infinite alternate;
}
.hero-orb-2 {
  width: 500px; height: 500px;
  top: 40%; left: -5%;
  background: radial-gradient(circle, rgba(0,238,255,0.06) 0%, transparent 65%);
  animation: orb-drift 11s ease-in-out infinite alternate-reverse;
}
.hero-orb-3 {
  width: 400px; height: 400px;
  top: 20%; right: -5%;
  background: radial-gradient(circle, rgba(0,238,255,0.05) 0%, transparent 65%);
  animation: orb-drift 9s ease-in-out infinite alternate;
}

@keyframes orb-drift {
  from { transform: translateY(0) scale(1); opacity: 0.6; }
  to   { transform: translateY(-30px) scale(1.08); opacity: 1; }
}
.hero-orb-1 { animation-name: orb-drift-center; }
@keyframes orb-drift-center {
  from { transform: translateX(-50%) translateY(0) scale(1); opacity: 0.7; }
  to   { transform: translateX(-50%) translateY(-20px) scale(1.05); opacity: 1; }
}

.hero-content {
  position: relative; z-index: 1;
  max-width: 820px; width: 100%;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,238,255,0.07);
  border: 1px solid var(--cyan-border);
  border-radius: 100px;
  padding: 0.4rem 1.1rem;
  font-size: 0.72rem; font-weight: 600;
  color: var(--cyan);
  margin-bottom: 2.2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fade-in-up 0.7s var(--ease) both;
  box-shadow: 0 0 20px rgba(0,238,255,0.1), inset 0 0 20px rgba(0,238,255,0.03);
}
.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--cyan); border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan), 0 0 16px rgba(0,238,255,0.5);
  animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero-title {
  font-size: clamp(2.8rem, 8vw, 6.5rem);
  font-weight: 900; line-height: 1.03;
  letter-spacing: -0.045em;
  margin-bottom: 1.5rem;
  animation: fade-in-up 0.7s var(--ease) 0.1s both;
}
.hero-title-gradient {
  background: linear-gradient(135deg, #fff 0%, #a8f0ff 40%, var(--cyan) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  filter: drop-shadow(0 0 30px rgba(0,238,255,0.3));
}

.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--text-secondary); font-weight: 400;
  max-width: 500px; margin: 0 auto 2.8rem;
  line-height: 1.75;
  animation: fade-in-up 0.7s var(--ease) 0.2s both;
}

.hero-cta {
  display: flex; gap: 1rem;
  justify-content: center; flex-wrap: wrap;
  animation: fade-in-up 0.7s var(--ease) 0.3s both;
}

/* ── BUTTONS ───────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.9rem 2.1rem;
  border-radius: 11px;
  font-weight: 700; font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer; border: none; outline: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  position: relative; overflow: hidden;
  letter-spacing: -0.015em;
  -webkit-tap-highlight-color: transparent;
  min-height: 48px;
}
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: inherit;
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: var(--cyan);
  color: #000;
  box-shadow: 0 0 25px rgba(0,238,255,0.35), 0 4px 20px rgba(0,238,255,0.2);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 0 35px rgba(0,238,255,0.7),
    0 0 70px rgba(0,238,255,0.3),
    0 8px 30px rgba(0,238,255,0.25);
}
.btn-primary:active { transform: translateY(-1px) scale(1.01); }

.btn-secondary {
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
}
.btn-secondary:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--cyan-border);
  color: var(--cyan);
  background: rgba(0,238,255,0.07);
  box-shadow: 0 0 25px rgba(0,238,255,0.15), inset 0 0 20px rgba(0,238,255,0.04);
}
.btn-secondary:active { transform: translateY(-1px) scale(1.01); }

/* ── HERO STATS ────────────────────────────── */
.hero-stats {
  display: flex; align-items: center;
  justify-content: center; gap: 3rem;
  margin-top: 4.5rem;
  animation: fade-in-up 0.7s var(--ease) 0.45s both;
  flex-wrap: wrap; row-gap: 1.5rem;
}
.hero-stat { text-align: center; }
.hero-stat-value {
  font-size: 2rem; font-weight: 900;
  color: var(--cyan);
  letter-spacing: -0.05em; line-height: 1;
  text-shadow: 0 0 30px rgba(0,238,255,0.6);
}
.hero-stat-label {
  font-size: 0.7rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-top: 5px;
}
.hero-stat-divider {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, transparent, var(--border), transparent);
}

/* ── SECTION COMMONS ───────────────────────── */
.section-header { text-align: center; margin-bottom: 4rem; }
.section-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--cyan); margin-bottom: 1rem;
}
.section-label::before, .section-label::after {
  content: '';
  width: 24px; height: 1px;
  background: var(--cyan-border);
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800; letter-spacing: -0.035em; line-height: 1.1;
}
.section-subtitle {
  font-size: 1rem; color: var(--text-secondary);
  max-width: 460px; margin: 0.9rem auto 0; line-height: 1.75;
}

/* ── FEATURES ──────────────────────────────── */
.features { padding: 7rem 1.5rem; position: relative; z-index: 1; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.25rem; max-width: 1100px; margin: 0 auto;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 2rem;
  transition:
    transform 0.08s linear,
    box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
  position: relative; overflow: hidden; cursor: default;
  will-change: transform;
}

/* Mouse-tracking glow */
.feature-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(
    320px circle at var(--cx, 50%) var(--cy, 50%),
    rgba(0,238,255,0.08) 0%, transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  border-radius: inherit;
}
.feature-card:hover::before { opacity: 1; }

/* Top glow line on hover */
.feature-card::after {
  content: '';
  position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.feature-card:hover::after { opacity: 1; }

.feature-card:hover {
  border-color: var(--cyan-border);
  box-shadow:
    0 0 0 1px rgba(0,238,255,0.08),
    0 20px 60px -10px rgba(0,238,255,0.15),
    0 0 80px -20px rgba(0,238,255,0.1),
    inset 0 0 60px rgba(0,238,255,0.02);
}

.feature-icon {
  width: 50px; height: 50px;
  background: rgba(0,238,255,0.06);
  border: 1px solid var(--cyan-border);
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem; color: var(--cyan);
  box-shadow: 0 0 20px rgba(0,238,255,0.1);
  transition: var(--transition);
}
.feature-card:hover .feature-icon {
  box-shadow: 0 0 30px rgba(0,238,255,0.4), 0 0 60px rgba(0,238,255,0.1);
  background: rgba(0,238,255,0.1);
  border-color: rgba(0,238,255,0.4);
}

.feature-title {
  font-size: 1.05rem; font-weight: 700;
  margin-bottom: 0.6rem; letter-spacing: -0.02em;
}
.feature-desc {
  font-size: 0.88rem; color: var(--text-secondary); line-height: 1.75;
}
.feature-tag {
  display: inline-block; margin-top: 1.2rem;
  font-size: 0.72rem; font-weight: 600;
  color: var(--cyan);
  background: rgba(0,238,255,0.08);
  border: 1px solid rgba(0,238,255,0.2);
  padding: 0.2rem 0.7rem;
  border-radius: 100px; letter-spacing: 0.04em;
}

/* ── ENDPOINT PREVIEW ──────────────────────── */
.endpoint-preview { padding: 3rem 1.5rem 7rem; position: relative; z-index: 1; }
.endpoint-inner { max-width: 800px; margin: 0 auto; }

.endpoint-box {
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden; position: relative;
  box-shadow: 0 0 60px rgba(0,238,255,0.04);
  transition: var(--transition);
}
.endpoint-box:hover {
  border-color: var(--cyan-border);
  box-shadow: 0 0 80px rgba(0,238,255,0.08);
}
.endpoint-box::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 5%, var(--cyan) 50%, transparent 95%);
  box-shadow: 0 0 20px var(--cyan-glow);
}

.endpoint-header {
  display: flex; align-items: center; gap: 12px;
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
}
.window-dots { display: flex; gap: 6px; }
.window-dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red    { background: #ff5f57; box-shadow: 0 0 6px rgba(255,95,87,0.5); }
.dot-yellow { background: #febc2e; box-shadow: 0 0 6px rgba(254,188,46,0.5); }
.dot-green  { background: #28c840; box-shadow: 0 0 6px rgba(40,200,64,0.5); }
.endpoint-title-bar {
  flex: 1; text-align: center;
  font-size: 0.78rem; color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.endpoint-body { padding: 1.75rem; }
.endpoint-url-row {
  display: flex; align-items: center; gap: 10px;
  background: rgba(0,0,0,0.5); border: 1px solid var(--border);
  border-radius: 10px; padding: 0.9rem 1.1rem;
  font-family: 'JetBrains Mono', monospace; margin-bottom: 1.25rem;
  overflow-x: auto;
}
.method-badge {
  background: var(--cyan); color: #000;
  font-size: 0.68rem; font-weight: 800;
  padding: 0.22rem 0.6rem; border-radius: 5px;
  letter-spacing: 0.06em; flex-shrink: 0;
  box-shadow: 0 0 12px rgba(0,238,255,0.4);
}
.endpoint-url { font-size: 0.87rem; color: var(--text-secondary); white-space: nowrap; }
.endpoint-url span { color: var(--cyan); }

.endpoint-params { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.param-item {
  background: rgba(0,238,255,0.03);
  border: 1px solid rgba(0,238,255,0.14);
  border-radius: 9px; padding: 0.7rem 1rem;
  transition: var(--transition);
}
.param-item:hover {
  background: rgba(0,238,255,0.06);
  border-color: rgba(0,238,255,0.28);
  box-shadow: 0 0 20px rgba(0,238,255,0.06);
}
.param-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem; color: var(--cyan); font-weight: 500;
}
.param-type { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }

/* ── FOOTER ────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem; position: relative; z-index: 1;
}
footer::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 240px; height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 30px var(--cyan-glow), 0 0 60px rgba(0,238,255,0.2);
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 2rem;
}
.footer-brand { display: flex; flex-direction: column; gap: 7px; }
.footer-logo { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.025em; }
.footer-logo span { color: var(--cyan); }
.footer-tagline { font-size: 0.82rem; color: var(--text-muted); }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-link {
  display: flex; align-items: center; gap: 9px;
  color: var(--text-secondary); text-decoration: none;
  font-size: 0.84rem; transition: var(--transition);
}
.footer-link:hover { color: var(--cyan); }
.footer-link-icon {
  width: 30px; height: 30px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 7px; display: flex; align-items: center;
  justify-content: center; font-size: 0.78rem;
  transition: var(--transition);
}
.footer-link:hover .footer-link-icon {
  border-color: var(--cyan-border);
  background: rgba(0,238,255,0.07);
  box-shadow: 0 0 16px rgba(0,238,255,0.15);
  color: var(--cyan);
}
.footer-copy { font-size: 0.78rem; color: var(--text-muted); text-align: right; line-height: 1.9; }

/* ── DOCS LAYOUT ───────────────────────────── */
.docs-layout {
  display: flex; min-height: 100vh;
  padding-top: 68px;
}

.docs-sidebar {
  width: var(--sidebar-width); flex-shrink: 0;
  position: fixed; top: 68px; left: 0; bottom: 0;
  overflow-y: auto;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border);
  padding: 1.75rem 0; z-index: 100;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.docs-sidebar::-webkit-scrollbar { width: 3px; }
.docs-sidebar::-webkit-scrollbar-thumb { background: var(--border); }

.sidebar-section-label {
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 1.4rem; margin-bottom: 0.4rem; margin-top: 1.75rem;
  display: block;
}
.sidebar-section-label:first-child { margin-top: 0; }

.sidebar-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 0.58rem 1.4rem;
  color: var(--text-secondary); text-decoration: none;
  font-size: 0.87rem; font-weight: 400;
  transition: var(--transition);
  position: relative;
  border-left: 2px solid transparent;
  min-height: 40px;
}
.sidebar-nav-item:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.025);
}
.sidebar-nav-item.active {
  color: var(--cyan); font-weight: 500;
  border-left-color: var(--cyan);
  background: rgba(0,238,255,0.05);
  box-shadow: inset 4px 0 20px rgba(0,238,255,0.04);
}
.sidebar-nav-item.active::before {
  content: '';
  position: absolute; left: -1px; top: 0; bottom: 0;
  width: 2px;
  box-shadow: 2px 0 12px rgba(0,238,255,0.6);
}
.nav-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--text-muted); transition: var(--transition);
  flex-shrink: 0;
}
.sidebar-nav-item.active .nav-dot,
.sidebar-nav-item:hover .nav-dot {
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan), 0 0 16px rgba(0,238,255,0.4);
}

.docs-content {
  flex: 1; margin-left: var(--sidebar-width);
  padding: 3.5rem 3rem; max-width: 900px;
}

/* ── DOCS SECTIONS ─────────────────────────── */
.docs-section {
  margin-bottom: 5.5rem;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.docs-section.visible { opacity: 1; transform: translateY(0); }

.docs-section-anchor { display: block; height: 90px; margin-top: -90px; visibility: hidden; }

.docs-section-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 0.8rem;
}
.docs-section-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800; letter-spacing: -0.035em;
  margin-bottom: 1rem; line-height: 1.2;
}
.docs-section-body {
  color: var(--text-secondary); line-height: 1.85; font-size: 0.94rem;
}
.docs-section-body p { margin-bottom: 0.9rem; }
.docs-section-body strong { color: var(--text-primary); font-weight: 600; }

.docs-divider {
  height: 1px;
  background: linear-gradient(90deg, var(--cyan-border) 0%, transparent 80%);
  margin: 2.5rem 0;
}

/* Inline code */
code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.83em; color: var(--cyan);
  background: rgba(0,238,255,0.08);
  border: 1px solid rgba(0,238,255,0.16);
  padding: 0.15em 0.45em; border-radius: 5px;
}

/* Info box */
.info-box {
  background: rgba(0,238,255,0.04);
  border: 1px solid var(--cyan-border);
  border-radius: 11px;
  padding: 1rem 1.25rem;
  font-size: 0.9rem; color: var(--text-secondary);
  margin: 1.5rem 0;
  display: flex; gap: 10px; align-items: flex-start;
  box-shadow: 0 0 30px rgba(0,238,255,0.04), inset 0 0 30px rgba(0,238,255,0.02);
}
.info-box-icon { color: var(--cyan); font-size: 0.95rem; flex-shrink: 0; margin-top: 2px; }

/* Endpoint display */
.endpoint-display {
  display: flex; align-items: center; gap: 12px;
  background: rgba(0,0,0,0.65);
  border: 1px solid rgba(0,238,255,0.15);
  border-radius: 11px;
  padding: 1rem 1.5rem; margin: 1.5rem 0;
  font-family: 'JetBrains Mono', monospace;
  box-shadow: 0 0 30px rgba(0,238,255,0.04);
  overflow-x: auto;
}
.endpoint-method {
  background: var(--cyan); color: #000;
  font-size: 0.72rem; font-weight: 800;
  padding: 0.3rem 0.75rem; border-radius: 6px;
  letter-spacing: 0.06em; flex-shrink: 0;
  box-shadow: 0 0 16px rgba(0,238,255,0.5);
}
.endpoint-path { font-size: 0.88rem; color: var(--text-secondary); white-space: nowrap; }
.endpoint-path .highlight { color: var(--cyan); }

/* ── PARAMS TABLE ──────────────────────────── */
.params-table {
  width: 100%; border-collapse: collapse;
  margin: 1.5rem 0; font-size: 0.875rem;
  overflow: hidden; border-radius: 12px;
}
.params-table thead tr { border-bottom: 1px solid var(--border); }
.params-table th {
  padding: 0.8rem 1rem; text-align: left;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted);
}
.params-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.035);
  transition: background 0.2s;
}
.params-table tbody tr:hover { background: rgba(0,238,255,0.025); }
.params-table td { padding: 0.9rem 1rem; vertical-align: middle; }
.param-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.83rem; color: var(--cyan);
  background: rgba(0,238,255,0.08);
  border: 1px solid rgba(0,238,255,0.2);
  padding: 0.2rem 0.5rem; border-radius: 5px;
}
.param-type-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem; color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  padding: 0.15rem 0.5rem; border-radius: 4px;
}
.param-required {
  font-size: 0.68rem; font-weight: 700;
  color: var(--cyan);
  background: rgba(0,238,255,0.1);
  border: 1px solid rgba(0,238,255,0.25);
  border-radius: 100px; padding: 0.15rem 0.6rem;
  letter-spacing: 0.05em;
}

/* ── CODE BLOCKS ───────────────────────────── */
.code-tabs {
  margin: 1.75rem 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0,238,255,0.14);
  background: rgba(0,0,0,0.7);
  box-shadow:
    0 0 0 1px rgba(0,238,255,0.05),
    0 0 40px rgba(0,238,255,0.06),
    inset 0 0 60px rgba(0,238,255,0.02);
  position: relative;
}
.code-tabs::before {
  content: '';
  position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,238,255,0.4), transparent);
}

.code-tab-bar {
  display: flex; align-items: center;
  border-bottom: 1px solid rgba(0,238,255,0.08);
  background: rgba(0,238,255,0.02);
  padding: 0 0.75rem; gap: 0;
  overflow-x: auto;
  -ms-overflow-style: none; scrollbar-width: none;
}
.code-tab-bar::-webkit-scrollbar { display: none; }

.code-tab-btn {
  padding: 0.85rem 1.1rem;
  border: none; background: none;
  color: var(--text-muted);
  font-size: 0.82rem; font-weight: 500;
  cursor: pointer; transition: var(--transition);
  position: relative; font-family: 'Inter', sans-serif;
  letter-spacing: 0.01em; white-space: nowrap;
  min-height: 44px;
}
.code-tab-btn::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--cyan);
  border-radius: 2px 2px 0 0;
  box-shadow: 0 0 8px var(--cyan);
  opacity: 0; transition: opacity 0.25s;
}
.code-tab-btn:hover { color: #cdd; }
.code-tab-btn.active { color: var(--cyan); }
.code-tab-btn.active::after { opacity: 1; }

.code-tab-spacer { flex: 1; min-width: 12px; }

.code-copy-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 0.4rem 0.9rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text-muted);
  font-size: 0.75rem; font-weight: 500;
  cursor: pointer; transition: var(--transition);
  font-family: 'Inter', sans-serif;
  margin: 0.45rem 0; white-space: nowrap; flex-shrink: 0;
  min-height: 36px;
}
.code-copy-btn:hover {
  color: var(--cyan);
  border-color: var(--cyan-border);
  background: rgba(0,238,255,0.08);
  box-shadow: 0 0 16px rgba(0,238,255,0.15);
}
.code-copy-btn.copied {
  color: #28c840;
  border-color: rgba(40,200,64,0.35);
  background: rgba(40,200,64,0.06);
}

.code-panel { display: none; }
.code-panel.active { display: block; }

.code-block {
  padding: 1.5rem 1.75rem;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.83rem; line-height: 1.75;
  tab-size: 2;
}
.code-block::-webkit-scrollbar { height: 4px; }
.code-block::-webkit-scrollbar-thumb { background: rgba(0,238,255,0.15); border-radius: 2px; }

/* Syntax tokens */
.tok-keyword   { color: var(--cyan); font-weight: 600; }
.tok-string    { color: #a8ff78; }
.tok-comment   { color: #3d5066; font-style: italic; }
.tok-function  { color: #ffd166; }
.tok-number    { color: #ff9f43; }
.tok-variable  { color: #e2e8f0; }
.tok-operator  { color: #64748b; }
.tok-punctuation{ color: #475569; }
.tok-property  { color: #c4b5fd; }
.tok-url       { color: var(--cyan); }

/* Response blocks */
.response-block {
  background: rgba(0,0,0,0.7);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden; margin: 1.5rem 0;
  position: relative;
  box-shadow: 0 0 30px rgba(0,238,255,0.04);
}
.response-block::before {
  content: '';
  position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, #28c840, transparent);
}
.response-header {
  display: flex; align-items: center; gap: 10px;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.response-status {
  font-size: 0.72rem; font-weight: 700; color: #28c840;
  background: rgba(40,200,64,0.1);
  border: 1px solid rgba(40,200,64,0.25);
  border-radius: 100px; padding: 0.2rem 0.7rem;
  font-family: 'JetBrains Mono', monospace;
}
.response-label {
  font-size: 0.75rem; color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}
.response-copy-btn { margin-left: auto; }

/* ── MOBILE SIDEBAR ────────────────────────── */
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 99; backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.sidebar-toggle-btn {
  display: none;
  position: fixed; bottom: 1.5rem; left: 1.5rem;
  z-index: 200;
  background: var(--cyan); color: #000;
  border: none; border-radius: 50%;
  width: 52px; height: 52px;
  font-size: 1.1rem; cursor: pointer;
  box-shadow: 0 0 30px rgba(0,238,255,0.5), 0 0 60px rgba(0,238,255,0.2);
  align-items: center; justify-content: center;
  transition: var(--transition);
}
.sidebar-toggle-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 40px rgba(0,238,255,0.7), 0 0 80px rgba(0,238,255,0.3);
}

/* ── ANIMATIONS ────────────────────────────── */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Stagger delays for grid children */
.reveal-stagger > * {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.12s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.19s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.26s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.33s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.40s; opacity: 1; transform: none; }

/* ── RESPONSIVE ────────────────────────────── */
@media (max-width: 1024px) {
  .docs-content { padding: 2.5rem 2rem; }
}

@media (max-width: 900px) {
  .docs-sidebar { transform: translateX(-100%); }
  .docs-sidebar.open { transform: translateX(0); }
  .sidebar-overlay.active { display: block; }
  .sidebar-toggle-btn { display: flex; }
  .docs-content { margin-left: 0; padding: 2.5rem 1.75rem; }
  .endpoint-params { grid-template-columns: 1fr; }
  .docs-section-title { font-size: clamp(1.7rem, 5vw, 2.1rem); }
  .docs-section-body { font-size: 0.97rem; }
  .code-block { font-size: 0.84rem; }
}

@media (max-width: 768px) {
  .navbar { padding: 0 1.25rem; }

  .nav-links {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(0,0,0,0.98);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
    animation: slide-down 0.25s var(--ease);
    backdrop-filter: blur(24px);
  }
  @keyframes slide-down {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: flex; padding: 0.85rem 1.5rem;
    width: 100%; border-bottom: 1px solid var(--border);
    min-height: 50px; align-items: center;
    font-size: 0.95rem;
  }
  .nav-links a::after { display: none; }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-cta {
    margin: 0.5rem 1.25rem !important;
    width: calc(100% - 2.5rem) !important;
    justify-content: center;
    border-radius: 10px !important;
  }
  .nav-toggle { display: flex; }

  .hero-stats { gap: 1.5rem; }
  .hero-stat-divider { display: none; }
  .hero-stats { row-gap: 1rem; }

  .params-table th:last-child,
  .params-table td:last-child { display: none; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { align-items: center; }
  .footer-copy { text-align: center; }

  .code-block { font-size: 0.82rem; padding: 1.25rem; }
}

@media (max-width: 480px) {
  .hero { padding: 7rem 1.25rem 4rem; }
  .features { padding: 5rem 1.25rem; }
  .features-grid { grid-template-columns: 1fr; }
  .docs-content { padding: 2rem 1.25rem; }
  .docs-section-title { font-size: 1.65rem; }
  .docs-section-body { font-size: 0.96rem; line-height: 1.9; }
  .endpoint-params { grid-template-columns: 1fr; }
  .endpoint-url-row { flex-direction: column; align-items: flex-start; }
  .code-block { font-size: 0.82rem; padding: 1.1rem 1.25rem; }
  .code-tab-btn { font-size: 0.82rem; padding: 0 0.7rem; }
  .btn { padding: 0.85rem 1.5rem; font-size: 0.88rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 280px; justify-content: center; }
  .trust-grid { grid-template-columns: 1fr; }
  .powered-content { flex-direction: column; gap: 1.5rem; }
  .powered-left { flex-direction: column; text-align: center; gap: 1rem; }
  .error-cards { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   TRUST STATS SECTION
═══════════════════════════════════════════ */
.trust-stats {
  padding: 5rem 1.5rem 7rem;
  position: relative; z-index: 1;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  max-width: 1000px;
  margin: 0 auto;
}

.trust-card {
  position: relative;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--cyan-border);
  border-radius: var(--radius-card);
  padding: 2rem 1.75rem;
  overflow: hidden;
  transition: var(--transition);
  text-align: center;
}

.trust-card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,238,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.trust-card::before {
  content: '';
  position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 20px var(--cyan-glow);
}

.trust-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,238,255,0.4);
  box-shadow:
    0 0 0 1px rgba(0,238,255,0.1),
    0 20px 60px -10px rgba(0,238,255,0.2),
    inset 0 0 60px rgba(0,238,255,0.03);
}

.trust-icon {
  width: 52px; height: 52px;
  background: rgba(0,238,255,0.07);
  border: 1px solid var(--cyan-border);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--cyan);
  box-shadow: 0 0 24px rgba(0,238,255,0.15);
  transition: var(--transition);
}

.trust-card:hover .trust-icon {
  box-shadow: 0 0 36px rgba(0,238,255,0.4), 0 0 70px rgba(0,238,255,0.1);
  background: rgba(0,238,255,0.12);
}

.trust-value {
  font-size: 3rem;
  font-weight: 900;
  color: var(--cyan);
  letter-spacing: -0.06em;
  line-height: 1;
  margin-bottom: 0.4rem;
  text-shadow: 0 0 40px rgba(0,238,255,0.6), 0 0 80px rgba(0,238,255,0.2);
}

.trust-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.trust-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   POWERED BY SECTION
═══════════════════════════════════════════ */
.powered-by {
  padding: 0 1.5rem 7rem;
  position: relative; z-index: 1;
}

.powered-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.powered-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.25rem;
}

.powered-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--cyan-border);
  border-radius: 20px;
  padding: 2.25rem 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0,238,255,0.05),
    0 0 80px rgba(0,238,255,0.06),
    inset 0 0 80px rgba(0,238,255,0.025);
}

/* Animated shimmer top line */
.powered-content::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--cyan) 50%, transparent 100%);
  animation: shimmer-line 3s ease-in-out infinite;
  box-shadow: 0 0 20px var(--cyan-glow);
}

@keyframes shimmer-line {
  0%, 100% { opacity: 0.4; transform: scaleX(0.6); }
  50%       { opacity: 1;   transform: scaleX(1); }
}

/* Radial bg pulse */
.powered-content::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 20% 50%, rgba(0,238,255,0.04) 0%, transparent 60%);
  pointer-events: none;
  animation: orb-drift 7s ease-in-out infinite alternate;
}

.powered-left {
  display: flex; align-items: center; gap: 1.5rem;
  flex-shrink: 0;
}

.powered-logo-wrap {
  position: relative; width: 90px; height: 90px; flex-shrink: 0;
}

.powered-logo-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid var(--cyan-border);
  animation: spin-slow 8s linear infinite;
  box-shadow: 0 0 20px rgba(0,238,255,0.15);
}

.powered-logo-ring::before {
  content: '';
  position: absolute; top: -2px; left: 50%; transform: translateX(-50%);
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cyan), 0 0 20px rgba(0,238,255,0.5);
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.powered-logo-core {
  position: absolute; inset: 8px;
  background: rgba(0,238,255,0.07);
  border: 1px solid var(--cyan-border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan);
  box-shadow: 0 0 20px rgba(0,238,255,0.15);
}

.powered-logo-img {
  position: absolute; inset: 6px;
  width: calc(100% - 12px); height: calc(100% - 12px);
  border-radius: 50%;
  object-fit: cover; object-position: center top;
  box-shadow: 0 0 24px rgba(0,238,255,0.3), inset 0 0 10px rgba(0,0,0,0.5);
  border: 1px solid var(--cyan-border);
}

.powered-text { display: flex; flex-direction: column; gap: 4px; }

.powered-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.powered-subtitle {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.powered-right { flex: 1; min-width: 0; }

.powered-pillars {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.powered-pillar {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.88rem; color: var(--text-secondary);
}

.powered-pillar-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); flex-shrink: 0;
  box-shadow: 0 0 8px var(--cyan), 0 0 16px rgba(0,238,255,0.4);
}

/* ═══════════════════════════════════════════
   ERROR CARDS (docs)
═══════════════════════════════════════════ */
.error-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.75rem 0;
}

.error-card {
  border-radius: 14px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

/* 400 — amber/orange tint */
.error-card-400 {
  background: rgba(255, 95, 87, 0.04);
  border: 1px solid rgba(255, 95, 87, 0.22);
}
.error-card-400::before {
  content: '';
  position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,95,87,0.7), transparent);
}
.error-card-400:hover {
  border-color: rgba(255,95,87,0.4);
  box-shadow: 0 0 40px rgba(255,95,87,0.08), inset 0 0 40px rgba(255,95,87,0.02);
}

/* 500 — deeper red */
.error-card-500 {
  background: rgba(200, 30, 30, 0.04);
  border: 1px solid rgba(200, 30, 30, 0.22);
}
.error-card-500::before {
  content: '';
  position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,30,30,0.7), transparent);
}
.error-card-500:hover {
  border-color: rgba(200,30,30,0.4);
  box-shadow: 0 0 40px rgba(200,30,30,0.08), inset 0 0 40px rgba(200,30,30,0.02);
}

.error-card-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 1rem;
}

.error-code-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem; font-weight: 800;
  padding: 0.25rem 0.65rem; border-radius: 6px;
  letter-spacing: 0.05em; flex-shrink: 0;
}
.error-400 {
  color: #ff5f57;
  background: rgba(255,95,87,0.12);
  border: 1px solid rgba(255,95,87,0.3);
  box-shadow: 0 0 12px rgba(255,95,87,0.2);
}
.error-500 {
  color: #ff3333;
  background: rgba(200,30,30,0.12);
  border: 1px solid rgba(200,30,30,0.3);
  box-shadow: 0 0 12px rgba(200,30,30,0.2);
}

.error-card-title {
  font-size: 0.95rem; font-weight: 700;
  letter-spacing: -0.02em;
  flex: 1;
}

.error-card-dot {
  width: 8px; height: 8px; border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}
.error-dot-400 {
  background: #ff5f57;
  box-shadow: 0 0 8px rgba(255,95,87,0.6);
}
.error-dot-500 {
  background: #ff3333;
  box-shadow: 0 0 8px rgba(200,30,30,0.6);
}

.error-card-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.error-card-trigger {
  display: flex; flex-direction: column; gap: 3px;
  margin-bottom: 1rem;
  padding: 0.65rem 0.9rem;
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  border-left: 2px solid rgba(255,95,87,0.4);
}
.error-card-500 .error-card-trigger {
  border-left-color: rgba(200,30,30,0.4);
}

.error-trigger-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.error-trigger-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.error-response-mini {
  background: rgba(0,0,0,0.5);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
}
.error-response-mini .code-block {
  padding: 0.9rem 1rem;
  font-size: 0.78rem;
}

/* Docs page footer (accounts for fixed sidebar) */
.docs-footer {
  margin-left: var(--sidebar-width);
}
@media (max-width: 900px) {
  .docs-footer { margin-left: 0; }
}

/* Docs CTA box */
.docs-cta-box {
  margin-top: 3.5rem;
  padding: 2.25rem;
  background: rgba(0,238,255,0.04);
  border: 1px solid var(--cyan-border);
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 0 60px rgba(0,238,255,0.05), inset 0 0 60px rgba(0,238,255,0.02);
}
.docs-cta-title {
  font-size: 1.05rem; font-weight: 700;
  margin-bottom: 0.5rem; letter-spacing: -0.025em;
}
.docs-cta-subtitle {
  font-size: 0.88rem; color: var(--text-secondary);
  margin-bottom: 1.75rem; line-height: 1.7;
}
.docs-cta-btns {
  display: flex; gap: 1rem;
  justify-content: center; flex-wrap: wrap;
}

/* Responsive for new sections */
@media (max-width: 768px) {
  .trust-grid { grid-template-columns: 1fr; gap: 1rem; }
  .powered-content { flex-direction: column; gap: 2rem; padding: 1.75rem; }
  .powered-left { gap: 1.25rem; }
  .error-cards { grid-template-columns: 1fr; }
  .trust-stats { padding: 4rem 1.25rem 5rem; }
  .powered-by { padding: 0 1.25rem 5rem; }
}

/* ═══════════════════════════════════════════
   ABOUT PAGE — cursor glow
═══════════════════════════════════════════ */
.cursor-glow {
  position: fixed;
  width: 400px; height: 400px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0,238,255,0.06) 0%, transparent 60%);
  transition: left 0.05s linear, top 0.05s linear;
  will-change: left, top;
}

/* ═══════════════════════════════════════════
   ABOUT PAGE — HERO
═══════════════════════════════════════════ */
.about-hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 9rem 1.5rem 6rem;
  overflow: hidden;
  isolation: isolate;
}

.about-hero-orb {
  position: absolute; border-radius: 50%;
  pointer-events: none; z-index: 0;
  filter: blur(90px);
}
.about-orb-1 {
  width: 800px; height: 800px;
  top: -20%; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(0,238,255,0.12) 0%, transparent 65%);
  animation: orb-drift-center 9s ease-in-out infinite alternate;
}
.about-orb-2 {
  width: 500px; height: 500px;
  top: 50%; left: -10%;
  background: radial-gradient(circle, rgba(0,238,255,0.06) 0%, transparent 65%);
  animation: orb-drift 13s ease-in-out infinite alternate-reverse;
}
.about-orb-3 {
  width: 450px; height: 450px;
  top: 30%; right: -8%;
  background: radial-gradient(circle, rgba(0,238,255,0.07) 0%, transparent 65%);
  animation: orb-drift 10s ease-in-out infinite alternate;
}

/* Floating grid accent lines */
.about-grid-line {
  position: absolute; pointer-events: none; z-index: 0;
  background: linear-gradient(90deg, transparent, rgba(0,238,255,0.07), transparent);
}
.about-line-1 {
  width: 100%; height: 1px;
  top: 38%;
  animation: fade-slide 6s ease-in-out infinite alternate;
}
.about-line-2 {
  width: 1px; height: 100%;
  left: 35%;
  background: linear-gradient(180deg, transparent, rgba(0,238,255,0.05), transparent);
  animation: fade-slide 8s ease-in-out infinite alternate-reverse;
}
@keyframes fade-slide {
  from { opacity: 0.4; transform: translateX(-10px); }
  to   { opacity: 1;   transform: translateX(10px); }
}

.about-hero-content {
  position: relative; z-index: 1;
  max-width: 860px; width: 100%;
}

.about-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,238,255,0.07);
  border: 1px solid var(--cyan-border);
  border-radius: 100px;
  padding: 0.4rem 1.1rem;
  font-size: 0.72rem; font-weight: 600;
  color: var(--cyan);
  margin-bottom: 2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fade-in-up 0.7s var(--ease) both;
  box-shadow: 0 0 20px rgba(0,238,255,0.1), inset 0 0 20px rgba(0,238,255,0.03);
}

.about-hero-name {
  font-size: clamp(4rem, 13vw, 9rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.95;
  margin-bottom: 1.25rem;
  animation: fade-in-up 0.7s var(--ease) 0.08s both;
  background: linear-gradient(135deg, #fff 0%, #a8f0ff 40%, var(--cyan) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 50px rgba(0,238,255,0.35));
}

.about-hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
  animation: fade-in-up 0.7s var(--ease) 0.16s both;
}

.about-typing-wrap {
  display: inline-flex; align-items: center;
  background: rgba(0,238,255,0.05);
  border: 1px solid rgba(0,238,255,0.18);
  border-radius: 10px;
  padding: 0.55rem 1.1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(0.85rem, 2vw, 1rem);
  color: var(--cyan);
  margin-bottom: 2.5rem;
  animation: fade-in-up 0.7s var(--ease) 0.24s both;
  min-width: 260px; justify-content: flex-start;
  box-shadow: 0 0 30px rgba(0,238,255,0.07);
}
.about-typing-prefix { color: var(--text-muted); margin-right: 4px; }
.about-typing-text { letter-spacing: 0.02em; }
.about-typing-cursor {
  color: var(--cyan);
  animation: blink-cursor 0.75s step-end infinite;
  margin-left: 2px;
  font-weight: 300;
}
@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.about-hero-cta {
  display: flex; gap: 1rem;
  justify-content: center; flex-wrap: wrap;
  animation: fade-in-up 0.7s var(--ease) 0.32s both;
}

/* ═══════════════════════════════════════════
   ABOUT PAGE — ABOUT SECTION
═══════════════════════════════════════════ */
.about-section {
  padding: 5rem 1.5rem 7rem;
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: center;
}

.about-text-block .section-label { margin-bottom: 0.75rem; display: block; }

.about-section-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 1.75rem;
}

.about-paragraphs {
  display: flex; flex-direction: column; gap: 1rem;
  color: var(--text-secondary); font-size: 0.95rem; line-height: 1.85;
  margin-bottom: 2rem;
}
.about-paragraphs p strong { color: var(--text-primary); }

.about-pillars {
  display: flex; flex-direction: column; gap: 0.6rem;
}
.about-pillar {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.88rem; color: var(--text-secondary);
}

/* About card visual */
.about-card-visual {
  background: rgba(0,0,0,0.45);
  border: 1px solid var(--cyan-border);
  border-radius: 20px;
  overflow: hidden; position: relative;
  will-change: transform;
  box-shadow:
    0 0 0 1px rgba(0,238,255,0.05),
    0 0 80px rgba(0,238,255,0.07),
    inset 0 0 60px rgba(0,238,255,0.025);
}
.about-card-visual::before {
  content: '';
  position: absolute; top: 0; left: 5%; right: 5%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 20px var(--cyan-glow);
}
.about-card-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0,238,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.about-card-inner {
  padding: 2.25rem;
  position: relative; z-index: 1;
  text-align: center;
}
.about-card-avatar {
  width: 90px; height: 90px;
  margin: 0 auto 1.25rem;
  background: rgba(0,238,255,0.07);
  border: 1px solid var(--cyan-border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan);
  box-shadow: 0 0 30px rgba(0,238,255,0.2);
}
.about-card-name {
  font-size: 1.6rem; font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #fff 0%, var(--cyan) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.35rem;
}
.about-card-role {
  font-size: 0.8rem; color: var(--text-secondary);
  letter-spacing: 0.02em;
}
.about-card-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-border), transparent);
  margin: 1.5rem 0;
}
.about-card-meta {
  display: flex; flex-direction: column; gap: 0.75rem;
  text-align: left;
}
.about-card-meta-item {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem;
}
.about-card-meta-label { color: var(--text-muted); }
.about-card-meta-val { color: var(--text-primary); font-weight: 500; }
.about-status-live {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--cyan);
}

/* ═══════════════════════════════════════════
   ABOUT PAGE — STATS
═══════════════════════════════════════════ */
.about-stats-section {
  padding: 5rem 1.5rem 7rem;
  position: relative; z-index: 1;
}

.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  max-width: 1100px; margin: 0 auto;
}

.about-stat-card {
  position: relative;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--cyan-border);
  border-radius: var(--radius-card);
  padding: 2.25rem 1.75rem;
  overflow: hidden;
  text-align: center;
  transition: var(--transition);
  will-change: transform;
  cursor: default;
}
.about-stat-card::before {
  content: '';
  position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 20px var(--cyan-glow);
}
.about-stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0,238,255,0.45);
  box-shadow:
    0 0 0 1px rgba(0,238,255,0.1),
    0 24px 70px -10px rgba(0,238,255,0.22),
    inset 0 0 60px rgba(0,238,255,0.03);
}
.about-stat-card-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,238,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.about-stat-icon {
  width: 52px; height: 52px;
  background: rgba(0,238,255,0.07);
  border: 1px solid var(--cyan-border);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem; color: var(--cyan);
  box-shadow: 0 0 24px rgba(0,238,255,0.15);
  transition: var(--transition);
}
.about-stat-card:hover .about-stat-icon {
  box-shadow: 0 0 36px rgba(0,238,255,0.45), 0 0 70px rgba(0,238,255,0.12);
  background: rgba(0,238,255,0.12);
  border-color: rgba(0,238,255,0.4);
}
.about-stat-number {
  font-size: 3.2rem; font-weight: 900;
  color: var(--cyan); letter-spacing: -0.07em; line-height: 1;
  margin-bottom: 0.4rem;
  text-shadow: 0 0 40px rgba(0,238,255,0.6), 0 0 80px rgba(0,238,255,0.2);
}
.about-stat-name {
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.13em;
  color: var(--text-primary); margin-bottom: 0.9rem;
}
.about-stat-desc {
  font-size: 0.87rem; color: var(--text-secondary); line-height: 1.7;
}

/* ═══════════════════════════════════════════
   ABOUT PAGE — PROJECTS
═══════════════════════════════════════════ */
.about-projects-section {
  padding: 2rem 1.5rem 7rem;
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto;
}

.about-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.about-project-card {
  position: relative;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--cyan-border);
  border-radius: var(--radius-card);
  padding: 2rem;
  overflow: hidden;
  transition: var(--transition);
  will-change: transform;
  cursor: default;
  display: flex; flex-direction: column; gap: 1rem;
}
.about-project-card::before {
  content: '';
  position: absolute; top: 0; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 20px var(--cyan-glow);
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.about-project-card:hover::before { opacity: 1; }
.about-project-card:hover {
  border-color: rgba(0,238,255,0.4);
  box-shadow:
    0 0 0 1px rgba(0,238,255,0.08),
    0 24px 70px -10px rgba(0,238,255,0.2),
    inset 0 0 60px rgba(0,238,255,0.025);
}
.about-project-card-glow {
  position: absolute; inset: 0;
  background: radial-gradient(
    300px circle at var(--cx, 50%) var(--cy, 50%),
    rgba(0,238,255,0.07) 0%, transparent 70%
  );
  opacity: 0; transition: opacity 0.4s;
  pointer-events: none; border-radius: inherit;
}
.about-project-card:hover .about-project-card-glow { opacity: 1; }

.about-project-top {
  display: flex; align-items: center; justify-content: space-between;
}
.about-project-icon {
  width: 48px; height: 48px;
  background: rgba(0,238,255,0.07);
  border: 1px solid var(--cyan-border);
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan);
  box-shadow: 0 0 20px rgba(0,238,255,0.12);
  transition: var(--transition);
}
.about-project-card:hover .about-project-icon {
  box-shadow: 0 0 30px rgba(0,238,255,0.4), 0 0 60px rgba(0,238,255,0.1);
  background: rgba(0,238,255,0.11);
  border-color: rgba(0,238,255,0.38);
}
.about-project-status {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.7rem; font-weight: 600;
  color: var(--cyan);
  background: rgba(0,238,255,0.07);
  border: 1px solid rgba(0,238,255,0.2);
  padding: 0.22rem 0.7rem;
  border-radius: 100px;
  letter-spacing: 0.04em;
}
.about-project-name {
  font-size: 1.35rem; font-weight: 800;
  letter-spacing: -0.03em;
}
.about-project-desc {
  font-size: 0.88rem; color: var(--text-secondary); line-height: 1.8;
  flex: 1;
}
.about-project-tags {
  display: flex; flex-wrap: wrap; gap: 7px;
}
.about-project-tag {
  font-size: 0.7rem; font-weight: 600;
  color: var(--cyan);
  background: rgba(0,238,255,0.07);
  border: 1px solid rgba(0,238,255,0.2);
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  letter-spacing: 0.03em;
}
.about-project-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--cyan); text-decoration: none;
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: -0.01em;
  transition: var(--transition);
  align-self: flex-start;
  margin-top: auto;
}
.about-project-link:hover { gap: 9px; }

/* ═══════════════════════════════════════════
   ABOUT PAGE — SKILLS
═══════════════════════════════════════════ */
.about-skills-section {
  padding: 2rem 1.5rem 7rem;
  position: relative; z-index: 1;
  max-width: 900px; margin: 0 auto;
}

.about-skills-wrap {
  display: flex; flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 3rem;
}

.about-skill-pill {
  display: inline-flex; align-items: center;
  padding: 0.55rem 1.4rem;
  background: rgba(0,238,255,0.05);
  border: 1px solid rgba(0,238,255,0.22);
  border-radius: 100px;
  font-size: 0.88rem; font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  transition: var(--transition);
  cursor: default;
}
.about-skill-pill:hover {
  background: rgba(0,238,255,0.12);
  border-color: rgba(0,238,255,0.5);
  color: var(--cyan);
  box-shadow:
    0 0 20px rgba(0,238,255,0.2),
    0 0 40px rgba(0,238,255,0.08),
    inset 0 0 20px rgba(0,238,255,0.05);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════
   ABOUT PAGE — CONTACT
═══════════════════════════════════════════ */
.about-contact-section {
  padding: 2rem 1.5rem 8rem;
  position: relative; z-index: 1;
}
.about-contact-inner {
  max-width: 700px; margin: 0 auto;
  text-align: center;
  background: rgba(0,238,255,0.04);
  border: 1px solid var(--cyan-border);
  border-radius: 24px;
  padding: 4rem 3rem;
  position: relative; overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0,238,255,0.05),
    0 0 100px rgba(0,238,255,0.07),
    inset 0 0 80px rgba(0,238,255,0.025);
}
.about-contact-inner::before {
  content: '';
  position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 30px var(--cyan-glow);
}
.about-contact-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,238,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.about-contact-inner .section-label { display: block; margin-bottom: 1rem; }
.about-contact-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900; letter-spacing: -0.04em;
  margin-bottom: 1rem; position: relative; z-index: 1;
}
.about-contact-sub {
  font-size: 0.95rem; color: var(--text-secondary);
  line-height: 1.75; margin-bottom: 2.5rem;
  position: relative; z-index: 1;
}
.about-contact-btns {
  display: flex; gap: 1rem;
  justify-content: center; flex-wrap: wrap;
  position: relative; z-index: 1;
}

/* ═══════════════════════════════════════════
   ABOUT PAGE — RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-card-visual { max-width: 360px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .about-hero { padding: 7.5rem 1.25rem 5rem; }
  .about-hero-name { letter-spacing: -0.04em; }
  .about-typing-wrap { min-width: 200px; font-size: 0.85rem; }
  .about-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-projects-grid { grid-template-columns: 1fr; }
  .about-contact-inner { padding: 2.75rem 1.5rem; }
  .about-skills-section, .about-projects-section { padding-bottom: 4rem; }
}

@media (max-width: 480px) {
  .about-stats-grid { grid-template-columns: 1fr; }
  .about-hero-cta { flex-direction: column; align-items: center; }
  .about-hero-cta .btn { width: 100%; max-width: 280px; justify-content: center; }
  .about-contact-btns { flex-direction: column; align-items: center; }
  .about-contact-btns .btn { width: 100%; max-width: 300px; justify-content: center; }
}

/* ═══════════════════════════════════════════
   IMAGE API — LIVE DEMO WIDGET
═══════════════════════════════════════════ */
.image-live-demo {
  margin-top: 1.75rem;
  border-radius: 14px;
  border: 1px solid rgba(0,238,255,0.14);
  background: rgba(0,0,0,0.6);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0,238,255,0.05),
    0 0 40px rgba(0,238,255,0.06),
    inset 0 0 60px rgba(0,238,255,0.02);
}

.image-live-input-row {
  display: flex; align-items: center; gap: .75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(0,238,255,0.08);
  background: rgba(0,238,255,0.02);
}
.image-live-label {
  font-size: .78rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--cyan); opacity: .85;
  white-space: nowrap;
}
.image-live-input {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0,238,255,0.15);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: .875rem;
  padding: .55rem .9rem;
  outline: none;
  transition: var(--transition);
  min-width: 0;
}
.image-live-input:focus {
  border-color: var(--cyan);
  background: rgba(0,238,255,0.04);
  box-shadow: 0 0 0 3px rgba(0,238,255,0.1);
}
.image-live-input::placeholder { color: var(--text-muted); }
.image-live-count {
  font-size: .75rem; color: var(--text-muted);
  white-space: nowrap; font-family: 'JetBrains Mono', monospace;
  flex-shrink: 0;
}

.image-live-url-row {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1.25rem;
  border-bottom: 1px solid rgba(0,238,255,0.06);
  flex-wrap: wrap;
}
.image-live-url-label {
  font-size: .72rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-muted);
  white-space: nowrap; flex-shrink: 0;
}
.image-live-url {
  flex: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: .78rem; color: var(--cyan);
  word-break: break-all; opacity: .85;
  min-width: 0;
}
.image-copy-btn {
  display: flex; align-items: center; gap: 5px;
  padding: .35rem .8rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text-muted);
  font-size: .75rem; font-weight: 500;
  cursor: pointer; transition: var(--transition);
  font-family: 'Inter', sans-serif;
  white-space: nowrap; flex-shrink: 0;
}
.image-copy-btn:hover {
  color: var(--cyan);
  border-color: var(--cyan-border);
  background: rgba(0,238,255,0.08);
  box-shadow: 0 0 12px rgba(0,238,255,0.15);
}
.image-copy-btn.copied {
  color: #28c840; border-color: rgba(40,200,64,0.35);
  background: rgba(40,200,64,0.06);
}

.image-live-preview-wrap {
  padding: 1.25rem;
}
.image-live-preview-label {
  font-size: .75rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: .75rem;
}
.image-live-preview-frame {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0,238,255,0.12);
  background: #1a1b1e;
  max-width: 100%;
}
.image-live-preview-frame img {
  width: 100%; height: auto;
  display: block;
  aspect-ratio: 3 / 1;
  object-fit: cover;
}
.image-live-loading {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.5);
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.image-live-loading.visible { opacity: 1; }
.image-live-spinner {
  width: 24px; height: 24px;
  border: 2px solid rgba(0,238,255,0.2);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: img-spin .7s linear infinite;
}
@keyframes img-spin { to { transform: rotate(360deg); } }
.image-live-meta {
  font-size: .72rem; color: var(--text-muted);
  margin-top: .6rem; text-align: right;
  font-family: 'JetBrains Mono', monospace;
}

@media (max-width: 600px) {
  .image-live-input-row { flex-wrap: wrap; }
  .image-live-input { min-width: 100%; }
  .image-live-url-row { gap: .5rem; }
}

/* ═══════════════════════════════════════════
   API ENDPOINT SWITCHER
═══════════════════════════════════════════ */
.api-switcher {
  display: flex; align-items: center; gap: 0;
  margin-bottom: 3rem;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(0,238,255,0.14);
  border-radius: 14px;
  padding: .35rem;
  backdrop-filter: blur(16px);
  position: sticky; top: 78px; z-index: 50;
  box-shadow:
    0 0 0 1px rgba(0,238,255,0.04),
    0 8px 32px rgba(0,0,0,0.4);
}
.api-switch-btn {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .75rem 1.25rem;
  border: none; background: transparent;
  color: var(--text-muted);
  font-size: .9rem; font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  border-radius: 10px;
  transition: var(--transition);
  letter-spacing: -.01em;
  min-height: 44px;
  position: relative;
  text-decoration: none;
}
.api-switch-btn svg { flex-shrink: 0; transition: var(--transition); }
.api-switch-btn:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
}
.api-switch-btn.active {
  color: #000;
  background: var(--cyan);
  box-shadow: 0 0 20px rgba(0,238,255,0.35), 0 2px 8px rgba(0,0,0,0.3);
  font-weight: 600;
}
.api-switch-btn.active svg { stroke: #000; }
.api-switch-divider {
  width: 1px; height: 1.5rem;
  background: rgba(0,238,255,0.12);
  flex-shrink: 0; margin: 0 .1rem;
}

@media (max-width: 480px) {
  .api-switcher { top: 70px; margin-bottom: 2rem; }
  .api-switch-btn { font-size: .85rem; padding: .7rem .9rem; gap: .4rem; }
  .api-switch-btn svg { width: 13px; height: 13px; }
}
