/* ═══════════════════════════════════════════════════
   Halal Terminal API — Precision Noir
   Bloomberg meets Arabic geometric refinement
   ═══════════════════════════════════════════════════ */

:root {
  --bg: #05070B;
  --bg-raised: #0a0d14;
  --bg-surface: #0e1219;
  --bg-input: #12161f;
  --text: #F9FAFB;
  --text-2: #9CA3AF;
  --text-3: #6B7280;
  --text-4: #4B5563;
  --emerald: #10B981;
  --emerald-dim: #059669;
  --amber: #FBBF24;
  --red: #EF4444;
  --border: rgba(31,41,51,0.5);
  --border-hi: rgba(31,41,51,0.8);
  --font-body: 'Outfit', system-ui, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text-2); line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
code { font-family: var(--font-mono); }
.hidden { display: none !important; }

/* ── NOISE TEXTURE ─────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ── GEOMETRIC DIVIDER ─────────────────────────── */
.geo-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 0;
  color: var(--text-4);
  opacity: 0.4;
}
.geo-divider::before, .geo-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-hi), transparent);
}
.geo-star {
  width: 12px;
  height: 12px;
  background: var(--emerald);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  opacity: 0.6;
}

/* ── LAYOUT ────────────────────────────────────── */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ── NAVBAR ────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 56px;
  background: rgba(5,7,11,0.6);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.navbar.scrolled { background: rgba(5,7,11,0.92); }
.navbar.menu-open {
  height: 100vh; height: 100dvh;
  background: #05070B;
  border-bottom: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.scroll-progress { position: absolute; bottom: 0; left: 0; height: 1px; background: var(--emerald); width: 0; transition: width 80ms linear; }
.nav-inner { display: flex; align-items: center; height: 56px; max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.logo { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.logo-icon { color: var(--emerald); font-size: 18px; }
.logo-api { color: var(--emerald); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; border: 1px solid rgba(16,185,129,0.3); padding: 1px 6px; border-radius: 3px; margin-left: 2px; position: relative; top: -1px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; margin-right: 24px; }
.nav-links a { color: var(--text-3); font-size: 13px; font-weight: 400; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-links .mobile-cta { display: none; }
.nav-cta {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  color: var(--emerald); border: 1px solid rgba(16,185,129,0.3);
  padding: 6px 14px; border-radius: 4px; transition: all 0.15s;
  letter-spacing: 0.02em;
}
.nav-cta:hover { background: rgba(16,185,129,0.08); color: var(--emerald); border-color: var(--emerald); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; z-index: 102; position: relative; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text-2); border-radius: 1px; transition: transform 0.25s, opacity 0.2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--emerald); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--emerald); }

/* ── HERO ──────────────────────────────────────── */
.hero {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 60px; left: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(16,185,129,0.06) 0%, transparent 65%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.hero-content { padding-top: 20px; }
.hero-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--emerald);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-label::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--emerald);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 300;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: normal;
  color: var(--emerald);
}
.hero-sub {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 12px; align-items: center; }

/* Primary CTA */
.cta-primary {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: var(--emerald);
  border: none;
  padding: 12px 28px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cta-primary:hover { background: var(--emerald-dim); transform: translateY(-1px); box-shadow: 0 8px 30px rgba(16,185,129,0.2); color: #fff; }
.cta-secondary {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-3);
  border: 1px solid var(--border-hi);
  padding: 11px 22px;
  border-radius: 6px;
  transition: all 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cta-secondary:hover { color: var(--text); border-color: var(--text-4); }

/* Code block in hero */
.hero-terminal {
  position: relative;
}
.terminal-frame {
  background: var(--bg-raised);
  border: 1px solid var(--border-hi);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}
/* CRT scanlines */
.terminal-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.008) 2px, rgba(255,255,255,0.008) 4px);
  pointer-events: none;
}
.terminal-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
}
.terminal-dot { width: 9px; height: 9px; border-radius: 50%; }
.terminal-dot.r { background: #ff5f57; }
.terminal-dot.y { background: #febc2e; }
.terminal-dot.g { background: #28c840; }
.terminal-title { margin-left: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--text-4); }
.terminal-body {
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--text-2);
  overflow-x: auto;
}
.terminal-body pre { margin: 0; background: none; }
.terminal-response {
  border-top: 1px solid var(--border);
}
.terminal-response-bar {
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255,255,255,0.015);
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-pill {
  background: rgba(16,185,129,0.12);
  color: var(--emerald);
  padding: 1px 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 500;
}

/* Syntax highlighting */
.sy-kw { color: #c678dd; }
.sy-s  { color: #98c379; }
.sy-n  { color: #d19a66; }
.sy-k  { color: #61afef; }
.sy-c  { color: #5c6370; font-style: italic; }
.sy-e  { color: #e5c07b; }

/* ── STATS TICKER ──────────────────────────────── */
.stats-ticker {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
  background: var(--bg-raised);
}
.stats-track {
  display: flex;
  max-width: 1100px;
  margin: 0 auto;
}
.stat-cell {
  flex: 1;
  padding: 20px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
  position: relative;
}
.stat-cell:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat-suffix { font-family: var(--font-mono); font-size: 16px; color: var(--emerald); font-weight: 400; }
.stat-label {
  display: block;
  font-size: 11px;
  color: var(--text-4);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── SECTION HEADERS ───────────────────────────── */
.sec-header {
  margin-bottom: 48px;
}
.sec-header.center { text-align: center; }
.sec-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--emerald);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sec-label.center { justify-content: center; }
.sec-label::before {
  content: '';
  width: 16px; height: 1px;
  background: var(--emerald);
}
.sec-header h2 {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 300;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.sec-header h2 em { font-style: normal; color: var(--emerald); }
.sec-header p {
  font-size: 15px;
  color: var(--text-2);
  margin-top: 12px;
  max-width: 520px;
  line-height: 1.65;
}
.sec-header.center p { margin-left: auto; margin-right: auto; }

/* ── FEATURES ──────────────────────────────────── */
.features { padding: 80px 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.feature-card {
  background: var(--bg);
  padding: 32px 28px;
  transition: background 0.25s;
}
.feature-card:hover { background: var(--bg-raised); }
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.feature-card h3 svg { color: var(--emerald); flex-shrink: 0; }
.feature-card p {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 14px;
}
.feature-endpoint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--emerald);
  background: rgba(16,185,129,0.06);
  border: 1px solid rgba(16,185,129,0.12);
  padding: 3px 10px;
  border-radius: 3px;
  display: inline-block;
}

/* ── METHODOLOGIES TABLE ──────────────────────── */
.methodologies { padding: 80px 0; }
.methodology-frame { max-width: 760px; margin: 0 auto; }
.methodology-table-wrap { overflow-x: auto; }
.methodology-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}
.methodology-table thead {
  background: rgba(255,255,255,0.015);
  border-bottom: 1px solid var(--border);
}
.methodology-table th {
  padding: 10px 14px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--emerald);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.methodology-table th:first-child {
  text-align: left;
  color: var(--text-4);
}
.methodology-table td {
  padding: 9px 14px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 12px;
}
.methodology-table td:first-child {
  text-align: left;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text);
  font-weight: 400;
}
.methodology-table tbody tr:last-child td { border-bottom: none; }
.methodology-table tbody tr:hover { background: rgba(16,185,129,0.03); }
.methodology-note {
  max-width: 760px;
  margin: 20px auto 0;
  font-size: 13px;
  color: var(--text-3);
  text-align: center;
  line-height: 1.6;
}
.methodology-note code {
  font-size: 12px;
  color: var(--emerald);
  background: rgba(16,185,129,0.06);
  padding: 2px 8px;
  border-radius: 3px;
}

/* ── USE CASES ────────────────────────────────── */
.use-cases { padding: 80px 0; }
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.usecase-card {
  background: var(--bg);
  padding: 32px 28px;
  transition: background 0.25s;
}
.usecase-card:hover { background: var(--bg-raised); }
.usecase-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.usecase-card h3 svg { color: var(--emerald); flex-shrink: 0; }
.usecase-card p {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 14px;
}

/* ── TRUST TICKER ─────────────────────────────── */
/* Reuses .stats-ticker + .stat-cell — only emerald color override */
.trust-ticker .stat-num.trust-static { color: var(--emerald); }

/* ── FAQ ──────────────────────────────────────── */
.faq { padding: 80px 0; }
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.faq-group {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  overflow: hidden;
}
.faq-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 13px 16px;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  text-align: left;
}
.faq-toggle:hover { background: rgba(255,255,255,0.015); }
.faq-q { flex: 1; }
.faq-group .chevron { font-size: 10px; color: var(--text-4); transition: transform 0.2s; }
.faq-group.open .chevron { transform: rotate(180deg); color: var(--emerald); }
.faq-answer {
  display: none;
  border-top: 1px solid var(--border);
  padding: 14px 16px;
}
.faq-group.open .faq-answer { display: block; }
.faq-answer p {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.7;
}
.faq-answer code {
  font-size: 12px;
  color: var(--emerald);
  background: rgba(16,185,129,0.06);
  padding: 1px 6px;
  border-radius: 3px;
}

/* ── DEMO ──────────────────────────────────────── */
.demo { padding: 80px 0; }
.demo-container { max-width: 760px; margin: 0 auto; }
.demo-tabs { display: flex; gap: 0; margin-bottom: -1px; position: relative; z-index: 2; }
.demo-tab {
  padding: 9px 20px;
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  color: var(--text-4);
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.demo-tab:hover { color: var(--text-2); }
.demo-tab.active { background: var(--bg-raised); color: var(--text); border-color: var(--border-hi); }
.demo-panel { display: none; }
.demo-panel.active { display: block; }
.copy-btn {
  margin-left: auto;
  padding: 3px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-4);
  font-family: var(--font-mono);
  font-size: 10px;
  cursor: pointer;
  transition: all 0.15s;
}
.copy-btn:hover { color: var(--text-2); background: rgba(255,255,255,0.06); }
.copy-btn.copied { color: var(--emerald); border-color: rgba(16,185,129,0.3); }

/* ── PRICING ───────────────────────────────────── */
.pricing { padding: 80px 0; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.pricing-card {
  padding: 32px 24px;
  border-right: 1px solid var(--border);
  position: relative;
  background: var(--bg);
  transition: background 0.2s;
  display: flex;
  flex-direction: column;
}
.pricing-card:last-child { border-right: none; }
.pricing-card:hover { background: var(--bg-raised); }
.pricing-card.popular { background: var(--bg-raised); }
.popular-badge {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--emerald);
}
.pricing-header { margin-bottom: 20px; }
.pricing-header h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 4px;
}
.pricing-desc { font-size: 12px; color: var(--text-3); margin-bottom: 14px; }
.pricing-price { display: flex; align-items: baseline; gap: 3px; }
.price-amount {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 500;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.price-period { font-size: 13px; color: var(--text-4); }
.pricing-features { list-style: none; margin-bottom: 24px; flex: 1; }
.pricing-features li {
  padding: 6px 0;
  font-size: 13px;
  color: var(--text-2);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}
.check { color: var(--emerald); font-size: 12px; margin-top: 2px; flex-shrink: 0; }

/* Pricing buttons */
.price-btn {
  display: block;
  width: 100%;
  padding: 10px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  border-radius: 5px;
  border: 1px solid var(--border-hi);
  color: var(--text-2);
  background: transparent;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.price-btn:hover { border-color: var(--text-4); color: var(--text); }
.price-btn.primary {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #fff;
}
.price-btn.primary:hover { background: var(--emerald-dim); color: #fff; }

/* ── KEY GENERATION ────────────────────────────── */
.get-started { padding: 80px 0; }
.keygen-card {
  max-width: 640px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
}
.keygen-accent { height: 1px; background: var(--emerald); }
.keygen-inner { padding: 48px 40px; text-align: center; }
.keygen-inner h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 8px;
}
.keygen-inner h2 em { font-style: normal; color: var(--emerald); }
.keygen-inner > p { color: var(--text-2); font-size: 14px; margin-bottom: 28px; }

.keygen-form { max-width: 420px; margin: 0 auto; }
.input-group { display: flex; gap: 8px; }
.input-group input {
  flex: 1;
  padding: 11px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-hi);
  border-radius: 5px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}
.input-group input::placeholder { color: var(--text-4); }
.input-group input:focus { border-color: var(--emerald); }
.btn { cursor: pointer; }
.btn-primary {
  background: var(--emerald); color: #fff; border: none;
  padding: 11px 20px; border-radius: 5px;
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  transition: all 0.15s; display: inline-flex; align-items: center; gap: 6px;
}
.btn-primary:hover { background: var(--emerald-dim); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.keygen-hint { font-size: 12px; color: var(--text-4); margin-top: 10px; }

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

/* Key result */
.keygen-result { margin-top: 24px; text-align: left; }
.result-success {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--emerald); font-weight: 500; font-size: 14px; margin-bottom: 16px;
  text-align: center;
}
.result-icon { font-size: 14px; }
.key-display {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-input); border: 1px solid var(--border); border-radius: 5px;
  padding: 10px 14px; margin-bottom: 14px;
}
.key-display code { flex: 1; font-size: 12px; color: var(--emerald); word-break: break-all; }
.key-meta {
  display: flex; justify-content: center; gap: 20px;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-3); margin-bottom: 20px;
  text-align: center;
}
.key-meta strong { color: var(--text); }
.key-usage-example { text-align: left; }
.key-usage-label {
  font-family: var(--font-mono); font-size: 10px; color: var(--text-4);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px;
}
.code-body {
  padding: 14px 16px; font-family: var(--font-mono); font-size: 12px;
  line-height: 1.7; color: var(--text-2); background: var(--bg-input);
  border: 1px solid var(--border); border-radius: 5px; overflow-x: auto; margin: 0;
}
.code-body.code-sm { padding: 10px 14px; font-size: 11px; }

/* Try API playground */
.try-api-playground {
  margin-top: 20px; padding: 20px;
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: 6px;
}
.try-api-title {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 12px 0;
}
.try-api-controls { display: flex; gap: 8px; align-items: center; }
.try-api-select {
  flex: 1; padding: 9px 12px;
  background: var(--bg-input); border: 1px solid var(--border-hi);
  border-radius: 4px; color: var(--text);
  font-family: var(--font-mono); font-size: 11px;
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%234B5563' viewBox='0 0 16 16'%3E%3Cpath d='M8 12L2 6h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px;
}
.try-api-select:focus { outline: none; border-color: var(--emerald); }
.try-api-select option { background: var(--bg); }
.try-api-meta {
  display: flex; gap: 14px; margin-top: 10px;
  font-family: var(--font-mono); font-size: 12px;
}
.status-ok { color: var(--emerald); }
.status-err { color: var(--red); }
.status-time { color: var(--text-4); }
.try-api-response {
  margin-top: 10px; padding: 14px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 5px; max-height: 300px; overflow: auto;
  font-size: 11px; line-height: 1.6;
}
.try-api-response code { color: var(--text-2); font-family: var(--font-mono); white-space: pre-wrap; word-break: break-word; }

/* ── ENDPOINTS ─────────────────────────────────── */
.endpoints { padding: 80px 0; }
.endpoints-grid { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 2px; }
.endpoint-group {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  overflow: hidden;
}
.endpoint-toggle {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 12px 16px;
  background: transparent; border: none;
  color: var(--text); font-family: var(--font-body); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: background 0.15s; text-align: left;
}
.endpoint-toggle:hover { background: rgba(255,255,255,0.015); }
.endpoint-group-icon { color: var(--emerald); display: flex; }
.endpoint-group-name { flex: 1; }
.endpoint-count { font-family: var(--font-mono); font-size: 11px; color: var(--text-4); }
.chevron { font-size: 10px; color: var(--text-4); transition: transform 0.2s; }
.endpoint-group.open .chevron { transform: rotate(180deg); }
.endpoint-list { display: none; border-top: 1px solid var(--border); padding: 4px 0; }
.endpoint-group.open .endpoint-list { display: block; }
.ep { display: flex; align-items: center; gap: 10px; padding: 5px 16px 5px 40px; font-size: 12px; }
.ep code { font-size: 12px; color: var(--text-2); }
.ep-desc { margin-left: auto; font-size: 11px; color: var(--text-4); }
.method {
  padding: 1px 7px; border-radius: 3px;
  font-family: var(--font-mono); font-size: 9px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
  flex-shrink: 0; min-width: 38px; text-align: center;
}
.method.get { background: rgba(16,185,129,0.08); color: var(--emerald); }
.method.post { background: rgba(96,165,250,0.08); color: #60a5fa; }
.method.mcp { background: rgba(16,185,129,0.08); color: var(--emerald); }

/* ── MCP SECTION ──────────────────────────────── */
.mcp-section { padding: 80px 0; }
.mcp-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.mcp-exchange {
  background: var(--bg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mcp-setup {
  background: var(--bg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
/* Chat bubbles */
.mcp-bubble {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-2);
  padding: 14px 18px;
  border-radius: 6px;
}
.mcp-bubble p { margin: 0; }
.mcp-bubble p + p { margin-top: 6px; }
.mcp-bubble strong { color: var(--emerald); font-weight: 500; }
.mcp-human {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px 6px 6px 2px;
}
.mcp-ai {
  background: var(--bg-raised);
  border: 1px solid var(--border-hi);
  border-radius: 6px 6px 2px 6px;
}
.mcp-calls {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 12px;
}
.mcp-fn {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--emerald);
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.mcp-fn-arrow {
  color: var(--emerald-dim);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
}
.mcp-fn-arg { color: var(--text-4); }
/* Stats row */
.mcp-stat-row {
  display: flex;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.mcp-stat {
  flex: 1;
  background: var(--bg-raised);
  padding: 14px 12px;
  text-align: center;
}
.mcp-stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
}
.mcp-stat-lbl {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-4);
  margin-top: 2px;
}
/* Compat bar */
.mcp-compat {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
}
.mcp-compat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-4);
  margin-right: 4px;
}
.mcp-compat-item {
  font-size: 12px;
  color: var(--text-3);
}
.mcp-compat-sep {
  color: var(--text-4);
  font-size: 10px;
}

/* ── FOOTER ────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
  background: var(--bg);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: var(--text-4); font-size: 13px; margin-top: 10px; max-width: 280px; line-height: 1.6; }
.footer-col h3.footer-heading {
  font-family: var(--font-mono); font-size: 10px; color: var(--text-4);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; font-weight: 500;
}
.footer-col a { display: block; font-size: 13px; color: var(--text-3); padding: 3px 0; transition: color 0.15s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--text-4);
}

/* ── ANIMATIONS ────────────────────────────────── */
@keyframes fadeUp { from { opacity:0; transform:translateY(16px) } to { opacity:1; transform:translateY(0) } }
.animate-in { opacity: 0; animation: fadeUp 0.5s ease forwards; }
.animate-in:nth-child(2) { animation-delay: 0.06s; }
.animate-in:nth-child(3) { animation-delay: 0.12s; }
.animate-in:nth-child(4) { animation-delay: 0.18s; }
.animate-in:nth-child(5) { animation-delay: 0.24s; }
.animate-in:nth-child(6) { animation-delay: 0.30s; }
@keyframes fadeInUp { from { opacity:0; transform:translateY(20px) } to { opacity:1; transform:translateY(0) } }

/* ── RESPONSIVE ────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 36px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .usecases-grid { grid-template-columns: repeat(2, 1fr); }
  .mcp-layout { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-card:nth-child(2) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { font-size: 10px; padding: 5px 10px; margin-right: 12px; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 56px; left: 0; right: 0;
    background: #05070B;
    padding: 24px 32px 40px; gap: 4px;
    overflow-y: auto;
    min-height: calc(100vh - 56px); min-height: calc(100dvh - 56px);
  }
  .nav-links.open a {
    font-size: 22px; font-weight: 400; padding: 16px 0;
    color: var(--text-2);
    border-bottom: 1px solid var(--border);
    transition: color 0.15s;
  }
  .nav-links.open a:last-child { border-bottom: none; }
  .nav-links.open a:hover, .nav-links.open a:active { color: var(--emerald); }
  .nav-links.open .mobile-cta {
    display: inline-block;
    margin-top: 24px;
    font-family: var(--font-mono); font-size: 13px; font-weight: 500;
    color: var(--bg); background: var(--emerald);
    padding: 14px 24px; border-radius: 6px; text-align: center;
    border-bottom: none;
  }
  .hero { padding: 110px 0 60px; }
  .hero h1 { font-size: 30px; }
  .hero-sub { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-terminal { display: none; }
  .stats-track { flex-wrap: wrap; padding: 0 24px; }
  .stat-cell { flex: 0 0 50%; border-bottom: 1px solid var(--border); }
  .stat-cell:nth-child(2) { border-right: none; }
  .stat-cell:nth-child(4) { border-right: none; }
  .stat-cell:last-child { border-bottom: none; }
  .features-grid { grid-template-columns: 1fr; }
  .usecases-grid { grid-template-columns: 1fr; }
  .mcp-layout { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card { border-right: none; border-bottom: 1px solid var(--border); }
  .pricing-card:last-child { border-bottom: none; }
  .keygen-inner { padding: 32px 20px; }
  .input-group { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 4px; }
  .sec-header h2 { font-size: 26px; }
  .geo-divider { padding: 24px 0; }
  .terminal-body { font-size: 11px; }
  .terminal-body pre { word-break: break-all; white-space: pre-wrap; }
  .ep { padding-left: 16px; flex-wrap: wrap; }
  .ep code { word-break: break-all; }
  .ep-desc { margin-left: 0; width: 100%; padding-left: 48px; }
  .try-api-controls { flex-direction: column; }
  .try-api-select, .try-api-controls .btn { width: 100%; }
  .price-btn { padding: 12px; }
  .demo-container { overflow-x: hidden; }
  .code-body { word-break: break-all; white-space: pre-wrap; }
}
