:root {
  --bg: #070b14;
  --bg-soft: #0b1220;
  --surface: #101a2e;
  --surface-2: #16233c;
  --line: rgba(148, 163, 184, 0.16);
  --text: #e8eef9;
  --muted: #94a3b8;
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --amber: #f59e0b;
  --green: #34d399;
  --danger: #fb7185;
  --radius: 20px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* Prevent grid/flex children from expanding beyond their track */
.hero-grid > *, .code-wrap > *, .cards-3 > *, .pricing-grid > *,
.steps > *, .model-grid > *, .footer-grid > * { min-width: 0; }
.terminal, .terminal-body, pre, .code-box { min-width: 0; max-width: 100%; }
.terminal-body { overflow-x: auto; }
pre { overflow-x: auto; }
code { overflow-wrap: anywhere; }

.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 12% -10%, rgba(59, 130, 246, 0.22), transparent 60%),
    radial-gradient(800px 500px at 92% 8%, rgba(34, 211, 238, 0.13), transparent 60%),
    radial-gradient(700px 500px at 50% 100%, rgba(245, 158, 11, 0.06), transparent 60%),
    var(--bg);
}
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.75), transparent 75%);
}

.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 92px 0; }
.section-head { max-width: 720px; margin-bottom: 38px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.06);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.12);
}
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.03em; }
h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 800; }
h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 750; }
p { margin: 0; color: var(--muted); }
.lead { font-size: clamp(16px, 2vw, 19px); max-width: 620px; }
.gradient-text {
  background: linear-gradient(100deg, #fff 10%, #93c5fd 50%, #67e8f9 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}
.site-header.scrolled {
  background: rgba(7, 11, 20, 0.78);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 600; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #04101f;
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.22);
}
.btn-primary:hover { box-shadow: 0 14px 38px rgba(34, 211, 238, 0.32); }
.btn-ghost {
  background: rgba(148, 163, 184, 0.06);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(148, 163, 184, 0.12); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 13px; }
.btn-block { width: 100%; }

/* Hero */
.hero { padding: 76px 0 40px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { margin: 20px 0 18px; }
.hero .lead { margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 14px; font-size: 12px; color: #64748b; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.05);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 650;
}
.chip svg { width: 14px; height: 14px; color: var(--cyan); }

/* Terminal card */
.terminal {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(22, 35, 60, 0.92), rgba(11, 18, 32, 0.96));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.terminal::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(59,130,246,0.35), transparent 40%, rgba(34,211,238,0.2));
  opacity: 0.55;
  pointer-events: none;
  mask: linear-gradient(#000, transparent 55%);
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 11, 20, 0.45);
}
.traffic { display: flex; gap: 6px; }
.traffic span { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.traffic span:nth-child(1) { background: #fb7185; }
.traffic span:nth-child(2) { background: #f59e0b; }
.traffic span:nth-child(3) { background: #34d399; }
.terminal-title { margin-left: 6px; font-family: var(--mono); font-size: 11px; color: #64748b; }
.terminal-body { padding: 20px; font-family: var(--mono); font-size: 12.5px; line-height: 1.85; color: #cbd5e1; overflow-x: auto; }
.tok-key { color: #93c5fd; }
.tok-str { color: #86efac; }
.tok-fn { color: #67e8f9; }
.tok-com { color: #64748b; }
.terminal-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: rgba(7, 11, 20, 0.35);
}
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); font-weight: 650; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(52,211,153,0.12); }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--line);
  margin-top: 46px;
}
.stat { padding: 22px; background: rgba(16, 26, 46, 0.75); }
.stat strong { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.stat span { font-size: 12px; color: var(--muted); font-weight: 600; }

/* Feature cards */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(22, 35, 60, 0.65), rgba(16, 26, 46, 0.55));
  padding: 26px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(34, 211, 238, 0.35); box-shadow: 0 18px 50px rgba(0,0,0,0.28); }
.icon-box {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(34, 211, 238, 0.25);
  background: rgba(34, 211, 238, 0.08);
  color: var(--cyan);
  margin-bottom: 18px;
}
.icon-box svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 14px; }

/* Models */
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.filter:hover { color: var(--text); border-color: rgba(148,163,184,0.35); }
.filter.active { background: rgba(59, 130, 246, 0.14); border-color: rgba(59, 130, 246, 0.55); color: #bfdbfe; }
.model-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.model {
  display: flex; align-items: center; gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(16, 26, 46, 0.55);
  transition: border-color 0.2s, background 0.2s;
}
.model:hover { border-color: rgba(34, 211, 238, 0.3); background: rgba(22, 35, 60, 0.7); }
.model-logo {
  width: 34px; height: 34px; flex: 0 0 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.08);
  font-size: 12px; font-weight: 800; color: #cbd5e1;
}
.model-name { font-family: var(--mono); font-size: 12px; color: #dbeafe; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.model-meta { font-size: 10px; color: #64748b; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.price-card {
  position: relative;
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(22, 35, 60, 0.7), rgba(11, 18, 32, 0.85));
  padding: 24px;
}
.price-card.featured {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 20px 60px rgba(34, 211, 238, 0.12);
  background: linear-gradient(180deg, rgba(23, 48, 80, 0.85), rgba(11, 18, 32, 0.92));
}
.badge-featured {
  position: absolute; top: -12px; left: 20px;
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #04101f;
  font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
}
.price-name { font-size: 14px; font-weight: 750; color: #cbd5e1; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 10px 0 4px; }
.price strong { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; }
.price span { font-size: 12px; color: var(--muted); }
.price-sub { font-size: 11px; color: #64748b; margin-bottom: 18px; }
.price-features { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.price-features li { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; color: #cbd5e1; }
.price-features svg { width: 15px; height: 15px; flex: 0 0 15px; margin-top: 2px; color: var(--green); }
.price-card .btn { margin-top: auto; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(16,26,46,0.55); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cyan);
  margin-bottom: 14px;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 13.5px; }

/* Code */
.code-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: center;
}
.code-box {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #0a1120;
  overflow: hidden;
}
.code-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.code-head span { font-family: var(--mono); font-size: 11px; color: #64748b; }
.copy-btn { border: 1px solid var(--line); background: transparent; color: #cbd5e1; border-radius: 8px; padding: 5px 10px; font-size: 11px; cursor: pointer; }
.copy-btn:hover { background: rgba(148,163,184,0.1); }
pre { margin: 0; padding: 20px; overflow-x: auto; font-family: var(--mono); font-size: 12px; line-height: 1.8; color: #cbd5e1; }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 10px; }
details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(16, 26, 46, 0.55);
  padding: 0 18px;
}
details[open] { border-color: rgba(34, 211, 238, 0.3); }
summary {
  cursor: pointer;
  list-style: none;
  padding: 17px 0;
  font-weight: 700;
  font-size: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 20px; color: var(--cyan); line-height: 1; }
details[open] summary::after { content: "−"; }
details p { padding: 0 0 17px; font-size: 13.5px; }

/* CTA */
.cta {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 26px;
  padding: 48px;
  background:
    radial-gradient(700px 300px at 15% 0%, rgba(59,130,246,0.25), transparent 65%),
    radial-gradient(600px 300px at 90% 100%, rgba(34,211,238,0.18), transparent 65%),
    rgba(16, 26, 46, 0.7);
  text-align: center;
}
.cta h2 { margin-bottom: 12px; }
.cta p { max-width: 620px; margin: 0 auto 24px; }
.cta .hero-actions { justify-content: center; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 34px 0 26px; margin-top: 40px; }
.footer-grid { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-brand p { max-width: 360px; font-size: 12px; margin-top: 10px; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { font-size: 12px; color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 11px; color: #64748b; }

/* Utilities */
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.small { font-size: 12px; color: #64748b; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 1020px) {
  .hero-grid, .code-wrap { grid-template-columns: 1fr; }
  .terminal { max-width: 620px; }
  .cards-3, .steps { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .model-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .section { padding: 68px 0; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; left: 20px; right: 20px; top: 68px;
    padding: 18px; border: 1px solid var(--line); border-radius: 16px;
    background: rgba(7, 11, 20, 0.97); backdrop-filter: blur(18px);
  }
  .menu-toggle { display: grid; place-items: center; }
  .nav-actions .btn { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .cards-3, .steps, .pricing-grid { grid-template-columns: 1fr; }
  .model-grid { grid-template-columns: 1fr 1fr; }
  .cta { padding: 32px 20px; }
  .footer-grid { flex-direction: column; }
}
@media (max-width: 640px) {
  .model-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .container { width: calc(100% - 28px); }
  .model-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .price strong { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
