:root {
  --bg: #0d1117;
  --bg-2: #161b22;
  --bg-card: #1c2333;
  --fg: #e6edf3;
  --fg-2: #8b949e;
  --fg-3: #6e7681;
  --accent: #00e5c8;
  --accent-dim: rgba(0, 229, 200, 0.12);
  --violet: #8b5cf6;
  --violet-dim: rgba(139, 92, 246, 0.12);
  --border: rgba(139, 92, 246, 0.18);
  --border-dim: rgba(230, 237, 243, 0.08);
  --method-get: #3fb950;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-dim);
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 8px; }
.logo-mark { font-size: 18px; color: var(--accent); }
.logo-text { font-family: var(--font-mono); font-weight: 600; font-size: 15px; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--fg-2); text-decoration: none; font-size: 14px; transition: color 0.15s; }
.nav-links a:hover { color: var(--fg); }

/* HERO */
.hero {
  position: relative;
  padding: 80px 24px 64px;
  overflow: hidden;
}
.hero-bg-glow {
  position: absolute;
  top: -80px;
  left: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 229, 200, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(0, 229, 200, 0.2);
  border-radius: 20px;
  padding: 5px 12px;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-headline {
  font-family: var(--font-mono);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--fg);
}
.hero-lede {
  font-size: 17px;
  color: var(--fg-2);
  margin-bottom: 32px;
  max-width: 460px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; margin-bottom: 16px; }
.btn-primary {
  background: var(--accent);
  color: #0d1117;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.15s;
  letter-spacing: 0.01em;
}
.btn-primary:hover { opacity: 0.85; }
.btn-ghost {
  background: transparent;
  color: var(--fg-2);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid var(--border-dim);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.btn-ghost:hover { border-color: var(--fg-3); color: var(--fg); }
.hero-footnote { font-size: 12px; color: var(--fg-3); }

/* CODE CARD */
.code-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  font-family: var(--font-mono);
}
.code-card-header {
  background: var(--bg-card);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.code-dots { display: flex; gap: 5px; }
.code-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--fg-3); }
.code-dots span:nth-child(1) { background: #ff5f56; }
.code-dots span:nth-child(2) { background: #ffbd2e; }
.code-dots span:nth-child(3) { background: #27c93f; }
.code-card-title { font-size: 11px; color: var(--fg-2); letter-spacing: 0.04em; }
.code-block {
  padding: 20px;
  font-size: 12px;
  line-height: 1.8;
  overflow-x: auto;
}
.code-key { color: var(--violet); }
.code-str { color: #7ee787; }
.code-num { color: #ffa657; }
.code-bool { color: #ff7b72; }
.code-comment { color: var(--fg-3); }

/* STATS */
.stats {
  border-top: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim);
  background: var(--bg-2);
}
.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.stat-item { text-align: center; padding: 0 40px; }
.stat-value { display: block; font-family: var(--font-mono); font-size: 26px; font-weight: 700; color: var(--accent); letter-spacing: -0.02em; }
.stat-label { display: block; font-size: 13px; color: var(--fg-3); margin-top: 2px; }
.stat-divider { width: 1px; height: 40px; background: var(--border-dim); }

/* API DEMO */
.api-demo { padding: 80px 24px; }
.api-demo-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.section-title { font-family: var(--font-mono); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; }
.section-title.centered { text-align: center; }
.section-body { font-size: 16px; color: var(--fg-2); line-height: 1.7; margin-bottom: 24px; }
.section-body.centered { max-width: 520px; margin-left: auto; margin-right: auto; }
.api-demo-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.api-demo-tabs { display: flex; border-bottom: 1px solid var(--border); }
.api-tab { padding: 12px 20px; font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.api-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.api-demo-endpoints { padding: 0; }
.endpoint { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--border-dim); }
.endpoint:last-child { border-bottom: none; }
.active-endpoint { background: var(--accent-dim); border-bottom: 1px solid rgba(0, 229, 200, 0.15); }
.method.get { font-family: var(--font-mono); font-size: 10px; font-weight: 700; color: var(--method-get); background: rgba(63, 185, 80, 0.1); padding: 3px 8px; border-radius: 4px; letter-spacing: 0.05em; }
.path { font-family: var(--font-mono); font-size: 12px; color: var(--fg-2); }
.api-live-query { padding: 16px 20px; border-bottom: 1px solid var(--border-dim); }
.query-label { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); letter-spacing: 0.04em; margin-bottom: 8px; }
.api-live-query code { font-family: var(--font-mono); font-size: 12px; color: var(--fg-2); word-break: break-all; }
.api-response-preview { padding: 16px 20px; }
.response-label { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); letter-spacing: 0.04em; margin-bottom: 8px; }
#api-response-output { font-family: var(--font-mono); font-size: 11px; color: var(--fg-2); white-space: pre-wrap; word-break: break-all; max-height: 300px; overflow-y: auto; line-height: 1.6; }

/* FEATURES */
.features { padding: 80px 24px; background: var(--bg-2); border-top: 1px solid var(--border-dim); border-bottom: 1px solid var(--border-dim); }
.features-inner { max-width: 1100px; margin: 0 auto; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.feature-card { background: var(--bg); border: 1px solid var(--border-dim); border-radius: 12px; padding: 28px; transition: border-color 0.2s; }
.feature-card:hover { border-color: var(--border); }
.feature-icon { font-size: 24px; margin-bottom: 16px; color: var(--accent); }
.feature-card h3 { font-family: var(--font-mono); font-size: 15px; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.01em; }
.feature-card p { font-size: 14px; color: var(--fg-2); line-height: 1.6; }

/* WHY */
.why { padding: 80px 24px; }
.why-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.why-points { margin-top: 32px; display: flex; flex-direction: column; gap: 24px; }
.why-point { display: flex; gap: 16px; align-items: flex-start; }
.why-marker { font-family: var(--font-mono); font-size: 11px; color: var(--accent); font-weight: 600; min-width: 28px; padding-top: 2px; }
.why-point strong { font-family: var(--font-mono); font-size: 14px; font-weight: 600; display: block; margin-bottom: 4px; }
.why-point p { font-size: 13px; color: var(--fg-2); }
.why-right { display: flex; flex-direction: column; align-items: center; gap: 12px; justify-content: center; }
.why-comparison { background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 20px; width: 100%; }
.comparison-label { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); margin-bottom: 12px; letter-spacing: 0.04em; }
.comparison-items { display: flex; flex-direction: column; gap: 6px; }
.comparison-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: 6px; font-family: var(--font-mono); font-size: 12px; }
.comparison-item span:first-child { color: var(--fg-2); }
.comparison-item.broken { background: rgba(255, 123, 114, 0.06); }
.comparison-item.broken span { color: #ff7b72; }
.comparison-item.success { background: rgba(63, 185, 80, 0.08); border: 1px solid rgba(63, 185, 80, 0.2); }
.comparison-item.success span:first-child { color: var(--fg); font-weight: 600; }
.cross { color: #ff7b72; font-size: 14px; }
.check { color: #3fb950; font-size: 14px; }
.why-vs { font-family: var(--font-mono); font-size: 14px; color: var(--fg-3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }
.comparison-footnote { margin-top: 10px; font-size: 12px; color: var(--accent); font-family: var(--font-mono); text-align: center; }

/* PRICING */
.pricing { padding: 80px 24px; background: var(--bg-2); border-top: 1px solid var(--border-dim); }
.pricing-inner { max-width: 900px; margin: 0 auto; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.pricing-card { background: var(--bg); border: 1px solid var(--border-dim); border-radius: 12px; padding: 28px; position: relative; }
.pricing-card.featured { border-color: var(--violet); box-shadow: 0 0 30px rgba(139, 92, 246, 0.12); }
.pricing-tier { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 12px; letter-spacing: 0.04em; }
.pricing-price { font-family: var(--font-mono); font-size: 36px; font-weight: 700; margin-bottom: 4px; letter-spacing: -0.02em; }
.pricing-price span { font-size: 16px; font-weight: 400; color: var(--fg-2); }
.pricing-desc { font-size: 13px; color: var(--fg-3); margin-bottom: 20px; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.pricing-features li { font-size: 13px; color: var(--fg-2); display: flex; gap: 8px; }
.pricing-features li::before { content: '✓'; color: var(--accent); font-size: 12px; flex-shrink: 0; }
.pricing-badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--violet); color: #fff; font-family: var(--font-mono); font-size: 10px; font-weight: 600; padding: 4px 12px; border-radius: 20px; letter-spacing: 0.04em; }
.pricing-note { text-align: center; margin-top: 24px; font-size: 13px; color: var(--fg-3); }
.pricing-note a { color: var(--accent); text-decoration: none; }

/* CLOSING */
.closing { padding: 100px 24px; text-align: center; }
.closing-inner { max-width: 640px; margin: 0 auto; }
.closing-headline { font-family: var(--font-mono); font-size: clamp(28px, 4vw, 44px); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 16px; line-height: 1.15; }
.closing-body { font-size: 17px; color: var(--fg-2); line-height: 1.7; }

/* FOOTER */
.footer { border-top: 1px solid var(--border-dim); padding: 40px 24px; }
.footer-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 12px; }
.footer-tagline { font-family: var(--font-mono); font-size: 13px; color: var(--fg-3); margin-bottom: 24px; }
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 24px; }
.footer-links a { color: var(--fg-2); text-decoration: none; font-size: 13px; }
.footer-links a:hover { color: var(--fg); }
.footer-copy { font-size: 12px; color: var(--fg-3); }

/* MOBILE */
@media (max-width: 768px) {
  .hero-inner, .api-demo-inner, .why-inner { grid-template-columns: 1fr; }
  .features-grid, .pricing-grid { grid-template-columns: 1fr; }
  .stats-inner { flex-wrap: wrap; justify-content: center; }
  .stat-item { padding: 12px 20px; }
  .stat-divider { display: none; }
  .hero-visual { order: -1; }
  .hero-headline { font-size: 32px; }
  .why-right { display: none; }
}