/* ═══════════════════════════════════════════════════
   PAPALILY — Design System
   ═══════════════════════════════════════════════════ */

@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:        #060910;
  --bg2:       #0b0f1a;
  --surface:   #0f1420;
  --surface2:  #161c2e;
  --surface3:  #1d2540;
  --border:    rgba(255,255,255,0.06);
  --border2:   rgba(255,255,255,0.12);
  --accent:    #7c6ef7;
  --accent2:   #e96afa;
  --accent3:   #4aeabc;
  --accent4:   #f9a857;
  --text:      #eceef8;
  --text2:     #a0a8c0;
  --muted:     #5a6280;
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --grad:      linear-gradient(135deg, var(--accent), var(--accent2));
  --grad2:     linear-gradient(135deg, var(--accent), var(--accent3));
  --shadow:    0 24px 64px rgba(0,0,0,0.5);
  --glow:      0 0 60px rgba(124,110,247,0.2);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

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

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface3); border-radius: 3px; }

/* ── SELECTION ── */
::selection { background: rgba(124,110,247,0.3); color: #fff; }

/* ── NOISE + GRID OVERLAY ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(124,110,247,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,110,247,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ── ORB GLOW ── */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.orb-1 { width: 700px; height: 700px; background: rgba(124,110,247,0.1); top: -200px; left: -150px; animation: orbFloat 20s ease-in-out infinite; }
.orb-2 { width: 500px; height: 500px; background: rgba(233,106,250,0.07); top: 100px; right: -100px; animation: orbFloat 15s ease-in-out infinite reverse; }
.orb-3 { width: 400px; height: 400px; background: rgba(74,234,188,0.05); bottom: 100px; left: 30%; animation: orbFloat 18s ease-in-out infinite 5s; }

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
}

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 48px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6,9,16,0.8);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
.navbar.scrolled { background: rgba(6,9,16,0.95); }

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.nav-logo-icon {
  width: 32px; height: 32px;
  background: var(--grad);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.nav-logo-text {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex; gap: 4px; align-items: center;
}
.nav-link {
  padding: 8px 16px;
  color: var(--text2);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all .2s;
}
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--surface2); }

.nav-actions { display: flex; gap: 10px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all .2s;
  white-space: nowrap;
}
.btn-sm { padding: 8px 18px; font-size: 0.85rem; border-radius: var(--radius-sm); }
.btn-md { padding: 12px 24px; font-size: 0.925rem; border-radius: var(--radius); }
.btn-lg { padding: 16px 36px; font-size: 1rem; border-radius: var(--radius); }

.btn-ghost { background: transparent; color: var(--text2); border: 1px solid var(--border2); }
.btn-ghost:hover { background: var(--surface2); color: var(--text); border-color: rgba(255,255,255,0.2); transform: translateY(-1px); }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124,110,247,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(124,110,247,0.45); opacity: 0.92; }

.btn-surface { background: var(--surface2); color: var(--text); border: 1px solid var(--border2); }
.btn-surface:hover { background: var(--surface3); transform: translateY(-1px); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 24px 100px;
  position: relative; z-index: 1;
}

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px 6px 10px;
  border-radius: 100px;
  font-size: 0.78rem; font-weight: 600;
  border: 1px solid;
  margin-bottom: 32px;
}
.badge-purple { background: rgba(124,110,247,0.1); border-color: rgba(124,110,247,0.25); color: #a89cf8; }
.badge-green  { background: rgba(74,234,188,0.1);  border-color: rgba(74,234,188,0.25);  color: #4aeabc; }
.badge-dot { width: 7px; height: 7px; border-radius: 50%; animation: badgePulse 2s infinite; }
.badge-dot-purple { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.badge-dot-green  { background: var(--accent3); box-shadow: 0 0 8px var(--accent3); }
@keyframes badgePulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.6;transform:scale(1.5)} }

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 1.0;
  margin-bottom: 28px;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.grad-text-2 {
  background: var(--grad2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text2);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.75;
}

.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── METRICS STRIP ── */
.metrics {
  display: flex; gap: 0;
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  margin-top: 80px;
  width: 100%;
  max-width: 680px;
}
.metric {
  flex: 1;
  padding: 28px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.metric:last-child { border-right: none; }
.metric-val {
  font-size: 2rem; font-weight: 900; letter-spacing: -1px;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 6px;
}
.metric-label { font-size: 0.75rem; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }

/* ── SECTION LAYOUT ── */
.section { padding: 120px 24px; position: relative; z-index: 1; }
.container { max-width: 1120px; margin: 0 auto; }
.container-sm { max-width: 800px; margin: 0 auto; }
.container-xs { max-width: 640px; margin: 0 auto; }

.section-eyebrow {
  display: flex; align-items: center; gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}
.eyebrow-line { width: 32px; height: 1px; background: var(--accent); opacity: .5; }
.eyebrow-text { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2.5px; color: var(--accent); }

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -1.5px;
  text-align: center;
  line-height: 1.1;
  margin-bottom: 20px;
}
.section-sub {
  text-align: center;
  color: var(--text2);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 520px;
  margin: 0 auto 72px;
}

/* ── CARDS ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all .3s;
  position: relative;
  overflow: hidden;
}
.card::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--grad);
  opacity: 0;
  transition: opacity .3s;
  border-radius: inherit;
  pointer-events: none;
}
.card:hover { border-color: rgba(124,110,247,0.3); transform: translateY(-6px); box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(124,110,247,0.1); }

.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 22px;
  position: relative;
}
.card-icon-purple { background: rgba(124,110,247,0.12); border: 1px solid rgba(124,110,247,0.2); }
.card-icon-green  { background: rgba(74,234,188,0.12);  border: 1px solid rgba(74,234,188,0.2); }
.card-icon-pink   { background: rgba(233,106,250,0.12); border: 1px solid rgba(233,106,250,0.2); }
.card-icon-orange { background: rgba(249,168,87,0.12);  border: 1px solid rgba(249,168,87,0.2); }

.card-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.card-desc { color: var(--text2); font-size: 0.9rem; line-height: 1.7; }

/* ── FEATURE GRID ── */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media(max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width: 580px) { .feature-grid { grid-template-columns: 1fr; } }

/* ── HOW IT WORKS ── */
.steps { display: flex; flex-direction: column; gap: 2px; }
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 32px;
  align-items: start;
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all .3s;
}
.step:hover { border-color: rgba(124,110,247,0.3); background: var(--surface2); }
.step-num {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(124,110,247,0.35);
}
.step-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.step-desc { color: var(--text2); font-size: 0.9rem; line-height: 1.7; }

/* ── CODE BLOCK ── */
.code-wrap {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.code-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}
.code-dots { display: flex; gap: 7px; }
.code-dot { width: 12px; height: 12px; border-radius: 50%; }
.cd-r { background: #ff5f57; }
.cd-y { background: #febc2e; }
.cd-g { background: #28c840; }
.code-filename { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; color: var(--muted); }
.code-copy {
  background: var(--surface3); border: 1px solid var(--border2);
  color: var(--text2); padding: 5px 12px; border-radius: 6px;
  font-size: 0.75rem; font-weight: 600; cursor: pointer;
  transition: all .2s; font-family: inherit;
}
.code-copy:hover { background: var(--surface); color: var(--text); }
.code-copy.copied { color: var(--accent3); border-color: rgba(74,234,188,0.3); }

.code-tabs-bar {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
  padding: 0 20px;
}
.code-tab-btn {
  padding: 12px 20px;
  background: transparent; border: none;
  color: var(--muted); font-size: 0.85rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
  border-bottom: 2px solid transparent;
  transition: all .2s;
}
.code-tab-btn:hover { color: var(--text2); }
.code-tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

.code-content {
  padding: 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  line-height: 1.9;
  overflow-x: auto;
  tab-size: 2;
}
.code-content .kw  { color: #c792ea; }
.code-content .str { color: #c3e88d; }
.code-content .fn  { color: #82aaff; }
.code-content .cmt { color: #546e7a; }
.code-content .num { color: #f78c6c; }
.code-content .key { color: #ffcb6b; }
.code-content .op  { color: #89ddff; }
.code-content .bool{ color: #ff5370; }

/* ── LIVE DEMO ── */
.demo-wrap {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow), var(--glow);
}
.demo-topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 24px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}
.demo-url-bar {
  flex: 1;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text2);
  display: flex; align-items: center; gap: 8px;
}
.demo-url-bar svg { flex-shrink: 0; }

.demo-grid { display: grid; grid-template-columns: 1fr 1fr; }
@media(max-width: 700px) { .demo-grid { grid-template-columns: 1fr; } }

.demo-panel { padding: 32px; }
.demo-panel:first-child { border-right: 1px solid var(--border); }
@media(max-width: 700px) { .demo-panel:first-child { border-right: none; border-bottom: 1px solid var(--border); } }

.field-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 8px; display: block; }
.field-input, .field-textarea {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  margin-bottom: 20px;
}
.field-textarea { resize: vertical; min-height: 90px; }
.field-input:focus, .field-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,110,247,0.15); }
.field-input::placeholder, .field-textarea::placeholder { color: var(--muted); }

.btn-run {
  width: 100%;
  background: var(--grad);
  color: #fff; border: none;
  padding: 14px;
  border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 700;
  cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all .2s;
  box-shadow: 0 4px 20px rgba(124,110,247,0.35);
}
.btn-run:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(124,110,247,0.5); }
.btn-run:disabled { opacity: .55; cursor: not-allowed; }

.output-area {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  line-height: 1.8;
  min-height: 220px;
  max-height: 380px;
  overflow-y: auto;
  color: #a0f0a0;
  white-space: pre-wrap;
  word-break: break-all;
}
.output-placeholder { color: var(--muted); font-style: italic; }
.output-error { color: #ff6b6b; }

.duration-pill {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px;
  padding: 5px 14px;
  background: rgba(74,234,188,0.08);
  border: 1px solid rgba(74,234,188,0.2);
  border-radius: 100px;
  font-size: 0.75rem; color: var(--accent3);
  font-family: 'JetBrains Mono', monospace;
}

/* ── PRICING ── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
@media(max-width: 860px) { .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; } }

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-xl);
  padding: 36px;
  transition: all .3s;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pricing-card.featured {
  background: var(--surface2);
  border-color: rgba(124,110,247,0.4);
  box-shadow: 0 0 0 1px rgba(124,110,247,0.15), var(--shadow), var(--glow);
  transform: scale(1.03);
}
.pricing-card.featured:hover { transform: scale(1.03) translateY(-4px); }

.plan-tag { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); margin-bottom: 14px; }
.plan-name { font-size: 1.4rem; font-weight: 800; margin-bottom: 6px; }
.plan-price { font-size: 3rem; font-weight: 900; letter-spacing: -2px; line-height: 1; margin-bottom: 6px; }
.plan-price small { font-size: 1rem; font-weight: 400; color: var(--text2); }
.plan-period { font-size: 0.85rem; color: var(--muted); margin-bottom: 28px; }
.plan-divider { height: 1px; background: var(--border); margin-bottom: 28px; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 13px; margin-bottom: 32px; }
.plan-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.875rem; color: var(--text2); }
.plan-check { color: var(--accent3); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.plan-cross { color: var(--muted); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* ── TESTIMONIALS / TRUST ── */
.trust-logos {
  display: flex; gap: 40px; align-items: center; justify-content: center;
  flex-wrap: wrap;
  opacity: 0.4;
  filter: grayscale(1);
}
.trust-logo {
  font-size: 1.1rem; font-weight: 800; letter-spacing: -0.5px;
  color: var(--text);
}

/* ── CTA BANNER ── */
.cta-banner {
  background: var(--surface);
  border: 1px solid rgba(124,110,247,0.25);
  border-radius: var(--radius-xl);
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(124,110,247,0.12), transparent 70%);
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; letter-spacing: -1px; margin-bottom: 16px; }
.cta-sub { color: var(--text2); font-size: 1.05rem; margin-bottom: 36px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 48px 40px;
  position: relative; z-index: 1;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
@media(max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .nav-logo { margin-bottom: 16px; display: inline-flex; }
.footer-brand p { color: var(--muted); font-size: 0.875rem; line-height: 1.7; max-width: 240px; }

.footer-col-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--text2); text-decoration: none; font-size: 0.875rem; transition: color .2s; }
.footer-links a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { color: var(--muted); font-size: 0.82rem; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: var(--muted); text-decoration: none; font-size: 0.82rem; transition: color .2s; }
.footer-legal a:hover { color: var(--text2); }

/* ── ANIMATIONS ── */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

.fade-in {
  opacity: 0;
  transition: opacity .7s ease;
}
.fade-in.visible { opacity: 1; }

.stagger .fade-up:nth-child(1) { transition-delay: 0ms; }
.stagger .fade-up:nth-child(2) { transition-delay: 80ms; }
.stagger .fade-up:nth-child(3) { transition-delay: 160ms; }
.stagger .fade-up:nth-child(4) { transition-delay: 240ms; }
.stagger .fade-up:nth-child(5) { transition-delay: 320ms; }
.stagger .fade-up:nth-child(6) { transition-delay: 400ms; }

/* ── SPINNER ── */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── DOCS PAGE ── */
.docs-layout { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
@media(max-width: 900px) { .docs-layout { grid-template-columns: 1fr; } }

.docs-sidebar {
  position: sticky; top: 90px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.docs-sidebar-title { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 14px; padding: 0 8px; }
.docs-nav { display: flex; flex-direction: column; gap: 2px; }
.docs-nav a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text2); text-decoration: none;
  font-size: 0.875rem;
  transition: all .2s;
}
.docs-nav a:hover { background: var(--surface2); color: var(--text); }
.docs-nav a.active { background: rgba(124,110,247,0.12); color: var(--accent); font-weight: 600; }
.docs-nav-section { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); padding: 16px 12px 6px; }

.docs-content { min-width: 0; }
.docs-content h1 { font-size: 2.4rem; font-weight: 900; letter-spacing: -1px; margin-bottom: 16px; }
.docs-content h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px; margin: 48px 0 16px; padding-top: 48px; border-top: 1px solid var(--border); }
.docs-content h2:first-of-type { margin-top: 32px; }
.docs-content h3 { font-size: 1.1rem; font-weight: 700; margin: 28px 0 12px; }
.docs-content p { color: var(--text2); line-height: 1.8; margin-bottom: 16px; }
.docs-content ul { color: var(--text2); padding-left: 20px; margin-bottom: 16px; }
.docs-content li { margin-bottom: 8px; line-height: 1.7; }
.docs-content strong { color: var(--text); font-weight: 600; }

.param-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.param-table th { text-align: left; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); padding: 10px 16px; border-bottom: 1px solid var(--border2); }
.param-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 0.875rem; vertical-align: top; }
.param-table td:first-child { font-family: 'JetBrains Mono', monospace; color: var(--accent3); }
.param-table td:nth-child(2) { color: var(--accent4); font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; }
.param-table td:nth-child(3) { color: var(--text2); }

.inline-code {
  background: var(--surface2);
  border: 1px solid var(--border2);
  padding: 2px 8px;
  border-radius: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82em;
  color: var(--accent3);
}

.alert {
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 0.9rem;
  display: flex; gap: 12px; align-items: flex-start;
}
.alert-info { background: rgba(124,110,247,0.08); border: 1px solid rgba(124,110,247,0.2); color: var(--text2); }
.alert-warn { background: rgba(249,168,87,0.08); border: 1px solid rgba(249,168,87,0.2); color: var(--text2); }
.alert-success { background: rgba(74,234,188,0.08); border: 1px solid rgba(74,234,188,0.2); color: var(--text2); }
.alert-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }

/* ── API STATUS INDICATOR ── */
.api-status-indicator {
  display: flex; align-items: center; gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: default;
  transition: all .2s;
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-checking { background: var(--muted); animation: pulse 1.5s infinite; }
.status-ok { background: #4aeabc; box-shadow: 0 0 8px rgba(74,234,188,0.6); }
.status-err { background: #f97066; box-shadow: 0 0 8px rgba(249,112,102,0.6); }
.status-text { color: var(--text2); }

/* ── HAMBURGER MENU ── */
.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text2);
  border-radius: 2px;
  transition: all .25s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV ── */
.mobile-nav {
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border2);
  display: flex; flex-direction: column;
  padding: 20px 24px;
  gap: 4px;
  z-index: 999;
  transform: translateY(-110%);
  transition: transform .3s ease;
}
.mobile-nav.open { transform: translateY(0); }
.mobile-nav-link {
  display: block;
  padding: 10px 12px;
  color: var(--text2);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: all .2s;
}
.mobile-nav-link:hover { background: var(--surface2); color: var(--text); }

/* ── HERO CODE FLOAT ── */
.hero-code-float {
  max-width: 620px;
  margin: 40px auto 0;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow), var(--glow);
}
.hcf-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
}
.hcf-label { font-size: 0.8rem; font-weight: 600; color: var(--accent); font-family: 'JetBrains Mono', monospace; margin-left: auto; }
.hcf-body {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 16px; align-items: center;
  padding: 20px 22px;
}
.hcf-arrow { font-size: 1.4rem; color: var(--accent2); text-align: center; }
.hcf-line { font-size: 0.82rem; font-family: 'JetBrains Mono', monospace; margin-bottom: 4px; color: var(--text2); }
.hcf-indent { padding-left: 12px; }
.hcf-key { color: var(--accent); }
.hcf-k2 { color: var(--accent3); }
.hcf-str { color: #a8d8a8; }
.hcf-num { color: var(--accent4); }
.hcf-colon { color: var(--muted); }

/* ── TRUSTED BY SECTION ── */
.trusted-section { padding-top: 0 !important; padding-bottom: 60px !important; }
.trusted-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 28px;
}
.trusted-logos {
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: 8px 32px;
}
.trusted-logo {
  display: flex; align-items: center; gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.6;
  transition: opacity .2s;
}
.trusted-logo:hover { opacity: 1; }
.trusted-logo svg { flex-shrink: 0; }

/* ── TRY IT BUTTON (docs) ── */
.try-it-btn {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  background: rgba(124,110,247,0.1);
  border: 1px solid rgba(124,110,247,0.25);
  padding: 3px 10px;
  border-radius: 20px;
  margin-left: 12px;
  vertical-align: middle;
  transition: all .2s;
}
.try-it-btn:hover { background: rgba(124,110,247,0.2); }

/* ── TRUST BADGES ── */
.trust-badges {
  display: flex; flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.trust-badge {
  background: var(--surface);
  border: 1px solid var(--border2);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--text2);
  font-weight: 500;
}

/* ── TRUST MESSAGE ── */
.trust-message {
  display: flex; flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

/* ── COMPARISON TABLE ── */
.comparison-table-wrap {
  overflow-x: auto;
  margin-top: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border2);
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.comparison-table th {
  padding: 16px 20px;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text2);
  background: var(--surface2);
  border-bottom: 1px solid var(--border2);
}
.comparison-table th:first-child { text-align: left; }
.comparison-table td {
  padding: 13px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  color: var(--text2);
}
.comparison-table td:first-child { text-align: left; color: var(--text); font-weight: 500; }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: var(--surface2); }
.featured-col {
  background: rgba(124,110,247,0.05);
  color: var(--text) !important;
  font-weight: 600;
}
.comparison-table th.featured-col { color: var(--accent) !important; }

/* ── MOBILE ── */
@media(max-width: 768px) {
  .navbar { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-actions .api-status-indicator { display: none; }
  .hamburger { display: flex; }
  .hero-title { letter-spacing: -1.5px; }
  .metrics { flex-wrap: wrap; }
  .metric { border-right: none; border-bottom: 1px solid var(--border); min-width: 50%; }
  .metric:last-child { border-bottom: none; }
  .section { padding: 80px 20px; }
  .footer { padding: 48px 24px 32px; }
  .cta-banner { padding: 48px 24px; }
  .docs-sidebar { position: static; }
  .hcf-body { grid-template-columns: 1fr; }
  .hcf-arrow { transform: rotate(90deg); }
  .trust-message { flex-direction: column; gap: 8px; }
}
