:root {
  --bg: #f8fafc;
  --bg-cool: #f1f5f9;
  --surface: #ffffff;
  --surface-sunken: #e2e8f0;
  --ink: #0f172a;
  --ink-strong: #020617;
  --muted: #475569;
  --faint: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --accent: #10b981;
  --accent-hover: #059669;
  --accent-text: #036348;
  --accent-soft: #d1fae5;
  --accent-tint: #ecfdf5;
  --accent-line: #a7f3d0;
  --danger: #ab1a1a;
  --warning: #8d4107;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-md: 0 12px 34px -16px rgba(15, 23, 42, .22);
  --shadow-lg: 0 28px 70px -30px rgba(15, 23, 42, .28);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --header-h: 80px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { border: 0; background: none; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--accent-soft); color: var(--ink-strong); }

.container {
  width: min(100% - 32px, 1440px);
  margin-inline: auto;
}
@media (min-width: 640px) { .container { width: min(100% - 48px, 1440px); } }

.grain {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: .035;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.3'/%3E%3C/svg%3E");
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -.01em;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.99); }
.btn-primary {
  background: linear-gradient(180deg, #14b8a6 0%, #0d9488 100%);
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(13, 148, 136, .7), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.btn-primary:hover { background: linear-gradient(180deg, #10b981 0%, #0f766e 100%); box-shadow: 0 14px 26px -12px rgba(13, 148, 136, .8); }
.btn-secondary {
  background: rgba(255, 255, 255, .86);
  border-color: var(--border-strong);
  color: var(--ink);
  box-shadow: var(--shadow-sm), inset 0 1px 0 #fff;
}
.btn-secondary:hover { background: #fff; border-color: #94a3b8; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 12px; border-radius: 10px; }
.btn-lg { min-height: 50px; padding: 0 22px; border-radius: 14px; font-size: 14px; }
.btn-white { background: #fff; color: var(--accent-text); box-shadow: 0 10px 26px -14px rgba(0, 0, 0, .4); }
.btn-white:hover { background: #f0fdfa; }
.btn-ghost-light { border-color: rgba(255, 255, 255, .32); color: #fff; background: rgba(255, 255, 255, .06); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); }
.btn.full { width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 12px 0 0;
  transition: padding .2s ease;
}
.header-inner {
  height: var(--header-h);
  max-width: 1440px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 22px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 20px;
  background: rgba(255, 255, 255, .58);
  box-shadow: 0 12px 34px -18px rgba(15, 23, 42, .25), inset 0 1px 0 rgba(255, 255, 255, .9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.site-header.scrolled .header-inner { background: rgba(255, 255, 255, .82); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-name { display: flex; align-items: center; gap: 6px; font-size: 18px; font-weight: 800; letter-spacing: -.035em; }
.brand-sub { margin-top: 5px; font-size: 10.5px; font-weight: 600; letter-spacing: .05em; color: #64748b; }
.id-badge {
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent-text);
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, .25);
  font-size: 9px;
  letter-spacing: .06em;
  transform: translateY(-1px);
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline: auto;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 999px;
  background: rgba(255, 255, 255, .58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
  backdrop-filter: blur(8px);
}
.desktop-nav a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 9px;
  border-radius: 999px;
  color: #475569;
  font-size: 11.5px;
  font-weight: 700;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.desktop-nav a:hover { background: #fff; color: var(--ink); box-shadow: 0 2px 8px -2px rgba(15, 23, 42, .18); }
.nav-ico { color: #94a3b8; font-size: 12px; line-height: 1; transition: color .18s ease; }
.desktop-nav a:hover .nav-ico { color: var(--accent-text); }
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.text-link { padding: 8px 6px; font-size: 12px; font-weight: 700; color: #334155; }
.text-link:hover { color: var(--ink-strong); }
.menu-toggle { display: none; width: 40px; height: 40px; border-radius: 50%; place-items: center; }
.menu-toggle span { display: block; width: 18px; height: 2px; margin: 3px auto; border-radius: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.mobile-menu {
  position: fixed;
  inset: 76px 12px auto;
  z-index: 55;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 20px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(24px);
}
.mobile-menu nav { display: flex; flex-direction: column; gap: 2px; }
.mobile-menu nav > a { padding: 12px 14px; border-radius: 10px; font-weight: 700; color: #334155; }
.mobile-menu nav > a:hover { background: var(--bg); color: var(--ink); }
.mobile-menu-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--border); }
.mobile-menu-actions .btn { width: 100%; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 76px 0 88px;
  scroll-margin-top: 92px;
  background-image: radial-gradient(circle, rgba(148, 163, 184, .25) 1px, transparent 1px);
  background-size: 32px 32px;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(10px); }
.hero-glow.one { width: 46vw; height: 46vw; left: -8vw; top: -16vw; background: radial-gradient(circle, rgba(20, 184, 166, .42), transparent 66%); }
.hero-glow.two { width: 42vw; height: 42vw; right: -8vw; top: -18vw; background: radial-gradient(circle, rgba(45, 212, 191, .5), transparent 64%); }
.hero-glow.three { width: 58vw; height: 48vw; left: 42vw; bottom: -34vw; background: radial-gradient(circle, rgba(13, 148, 136, .26), transparent 68%); }
.hero-fade { position: absolute; inset: 55% 0 0; background: linear-gradient(to bottom, transparent, rgba(248, 250, 252, .72) 55%, var(--bg)); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 52px; align-items: start; }
.hero-copy { padding-top: 12px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: rgba(236, 253, 245, .82);
  color: var(--accent-text);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 #fff;
}
.pulse-dot { position: relative; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.pulse-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--accent); opacity: .35; animation: ping 2s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .5; } 80%, 100% { transform: scale(1.8); opacity: 0; } }
.hero h1 {
  margin-top: 24px;
  max-width: 14ch;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.045em;
  font-weight: 800;
  text-wrap: balance;
}
.hero h1 > span { display: block; }
.gradient-text {
  background: linear-gradient(100deg, var(--accent-text) 0%, #10b981 48%, #0f766e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  max-width: 590px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.hero-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  max-width: 570px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(203, 213, 225, .6);
}
.hero-checks li { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 12.5px; font-weight: 700; }
.hero-checks li span { color: var(--accent-text); font-size: 12px; font-weight: 900; }

.hero-demo { position: relative; min-width: 0; }
.hero-demo::before { content: ""; position: absolute; inset: 12% -10% -8% 10%; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(45, 212, 191, .22), transparent 68%); filter: blur(26px); }
.demo-card {
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 24px 60px -28px rgba(15, 23, 42, .28), 0 4px 12px -4px rgba(15, 23, 42, .08), inset 0 1px 0 #fff;
}
.demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
}
.demo-path { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--faint); font-family: var(--mono); font-size: 10.5px; }
.demo-path strong { color: var(--ink-strong); font-weight: 700; }
.demo-path span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-indicator { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; color: var(--accent-text); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.live-indicator i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(16, 185, 129, .15); }
.live-indicator span { color: var(--faint); font-weight: 600; letter-spacing: .04em; }
.demo-models { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.micro-label { color: var(--faint); font-size: 9.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.model-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.model-chip { padding: 5px 8px; border: 1px solid var(--border); border-radius: 7px; background: #fff; color: #475569; font-family: var(--mono); font-size: 10px; font-weight: 600; }
.model-chip.active { border-color: var(--accent-line); background: var(--accent-tint); color: var(--accent-text); }
.demo-request { border-bottom: 1px solid var(--border); }
.mini-tabs { display: flex; gap: 2px; padding: 8px 12px 0; }
.mini-tabs button { padding: 6px 8px; border-radius: 6px 6px 0 0; color: var(--faint); font-family: var(--mono); font-size: 9.5px; font-weight: 600; }
.mini-tabs button.active { background: #fff; color: var(--accent-text); box-shadow: inset 0 -2px 0 var(--accent); }
.code-window {
  margin: 0;
  padding: 12px 16px 14px;
  overflow: auto;
  color: #1e293b;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.65;
  white-space: pre;
  tab-size: 2;
}
.tok-key { color: #0369a1; }
.tok-str { color: #047857; }
.tok-num { color: #b45309; }
.tok-comment { color: #94a3b8; }
.tok-fn { color: #7c3aed; }
.demo-reply { position: relative; padding: 12px 16px 14px; background: linear-gradient(180deg, #f8fafc, #fff); }
.reply-title { display: flex; justify-content: space-between; align-items: center; color: var(--faint); font-size: 9.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.stream-state { display: inline-flex; align-items: center; gap: 5px; color: var(--accent-text); letter-spacing: .06em; }
.stream-state i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.demo-reply p { min-height: 54px; margin-top: 9px; color: #334155; font-size: 11px; line-height: 1.65; }
.demo-reply p::after { content: ""; display: inline-block; width: 5px; height: 12px; margin-left: 2px; background: var(--accent); vertical-align: -2px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.demo-cost { display: flex; align-items: baseline; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--border); background: #fff; color: var(--faint); font-size: 10px; }
.demo-cost strong { color: var(--accent-text); font-size: 14px; letter-spacing: -.02em; }
.demo-cost span:first-child { font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.demo-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--border); background: #f8fafc; color: #94a3b8; font-size: 9.5px; }
.demo-buttons { display: flex; gap: 4px; flex-shrink: 0; }
.link-btn { padding: 5px 8px; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: #475569; font-size: 9.5px; font-weight: 700; }
.link-btn:hover { border-color: var(--accent-line); color: var(--accent-text); }

.sdk-strip { position: relative; padding: 6px 0 44px; }
.sdk-panel {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 18px 22px;
  border: 1px solid rgba(203, 213, 225, .7);
  border-radius: 16px;
  background: rgba(255, 255, 255, .64);
  box-shadow: inset 0 1px 0 #fff;
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.sdk-title { flex: 0 0 auto; font-size: 11px; font-weight: 800; letter-spacing: .02em; color: #64748b; }
.sdk-logos { display: flex; align-items: center; gap: 26px; min-width: 0; overflow: hidden; }
.sdk-logo { display: inline-flex; align-items: center; gap: 7px; color: #64748b; font-size: 12px; font-weight: 800; white-space: nowrap; opacity: .9; }
.sdk-logo i { width: 8px; height: 8px; border-radius: 3px; background: var(--c, #94a3b8); }
.sdk-logo.openai { --c: #0f172a; }
.sdk-logo.anthropic { --c: #d97757; }
.sdk-logo.gemini { --c: #4796e3; }
.sdk-logo.deepseek { --c: #4d6bfe; }
.sdk-logo.langchain { --c: #1c3c3c; }
.sdk-logo.vercel { --c: #000; }
.sdk-logo.python { --c: #3776ab; }
.sdk-logo.node { --c: #5fa04e; }
.sdk-logo.curl { --c: #073551; }

.live-section { padding: 58px 0 72px; }
.section-heading { display: flex; flex-direction: column; gap: 12px; max-width: 780px; }
.section-kicker { color: var(--accent-text); font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.section-kicker.light { color: #a7f3d0; }
.section-heading h2, .faq-copy h2 {
  max-width: 23ch;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: -.045em;
  font-weight: 800;
  text-wrap: balance;
}
.section-sub { max-width: 590px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.split-heading { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 40px; max-width: none; }
.split-heading > div { max-width: 660px; }
.split-heading .section-sub { max-width: 390px; padding-bottom: 4px; }
.center-heading { align-items: center; text-align: center; margin-inline: auto; }
.center-heading h2 { max-width: 25ch; }
.center-heading .section-sub { max-width: 650px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 34px; }
.stat-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm), inset 0 1px 0 #fff;
}
.stat-card::after { content: ""; position: absolute; width: 100px; height: 100px; right: -40px; top: -48px; border-radius: 50%; background: radial-gradient(circle, rgba(16, 185, 129, .13), transparent 68%); }
.stat-label { display: block; color: var(--faint); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.stat-value { display: block; margin-top: 10px; font-size: clamp(1.45rem, 2.4vw, 1.95rem); line-height: 1.1; letter-spacing: -.055em; font-weight: 800; }
.stat-note { display: block; margin-top: 5px; color: #94a3b8; font-size: 10.5px; font-weight: 600; }
.sparkline { display: flex; align-items: flex-end; gap: 3px; height: 26px; margin-top: 16px; }
.sparkline i { flex: 1; border-radius: 2px 2px 0 0; background: linear-gradient(180deg, #2dd4bf, #0d9488); opacity: .7; }
.sparkline i:nth-child(1) { height: 35%; } .sparkline i:nth-child(2) { height: 62%; } .sparkline i:nth-child(3) { height: 46%; } .sparkline i:nth-child(4) { height: 78%; } .sparkline i:nth-child(5) { height: 58%; } .sparkline i:nth-child(6) { height: 88%; } .sparkline i:nth-child(7) { height: 72%; } .sparkline i:nth-child(8) { height: 100%; }
.sparkline.alt i { background: linear-gradient(180deg, #5eead4, #14b8a6); }
.model-dots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; margin-top: 16px; }
.model-dots i { aspect-ratio: 1; border-radius: 2px; background: var(--accent-soft); }
.model-dots i:nth-child(3n) { background: #5eead4; }
.model-dots i:nth-child(4n) { background: #99f6e4; }
.signal { display: flex; align-items: flex-end; gap: 3px; height: 26px; margin-top: 16px; }
.signal i { width: 6px; border-radius: 3px; background: var(--accent); opacity: .65; }
.signal i:nth-child(1) { height: 35%; } .signal i:nth-child(2) { height: 55%; } .signal i:nth-child(3) { height: 75%; } .signal i:nth-child(4) { height: 95%; }

.quickstart { padding: 76px 0 86px; }
.quickstart-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 42px; align-items: start; margin-top: 34px; }
.code-card { overflow: hidden; border: 1px solid #1e293b; border-radius: 18px; background: #0b1220; box-shadow: 0 24px 56px -30px rgba(2, 6, 23, .55); }
.code-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-bottom: 1px solid rgba(148, 163, 184, .16); background: #111b2e; }
.code-tabs { display: flex; flex-wrap: wrap; gap: 2px; }
.code-tabs button { padding: 7px 9px; border-radius: 6px; color: #94a3b8; font-family: var(--mono); font-size: 9.5px; font-weight: 600; }
.code-tabs button:hover { color: #e2e8f0; background: rgba(255, 255, 255, .04); }
.code-tabs button.active { background: rgba(16, 185, 129, .14); color: #5eead4; box-shadow: inset 0 -2px 0 #10b981; }
.copy-small { flex-shrink: 0; padding: 6px 8px; border: 1px solid rgba(148, 163, 184, .22); border-radius: 6px; color: #cbd5e1; font-size: 9.5px; font-weight: 700; }
.copy-small:hover { border-color: rgba(94, 234, 212, .5); color: #fff; }
.code-window.large { min-height: 380px; padding: 18px 20px; color: #cbd5e1; font-size: 11px; line-height: 1.8; }
.code-window.large .tok-key { color: #7dd3fc; }
.code-window.large .tok-str { color: #6ee7b7; }
.code-window.large .tok-num { color: #fcd34d; }
.code-window.large .tok-comment { color: #64748b; }
.code-window.large .tok-fn { color: #c4b5fd; }
.code-card-foot { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-top: 1px solid rgba(148, 163, 184, .14); color: #94a3b8; font-size: 9.5px; }
.dot-ok { width: 6px; height: 6px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, .12); }
.steps { display: flex; flex-direction: column; gap: 0; }
.steps li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.steps li:first-child { padding-top: 4px; }
.steps li:last-child { border-bottom: 0; }
.step-num { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border: 1px solid var(--accent-line); border-radius: 9px; background: var(--accent-tint); color: var(--accent-text); font-family: var(--mono); font-size: 10px; font-weight: 700; }
.steps h3 { font-size: 13.5px; letter-spacing: -.02em; }
.steps p { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.65; }

.architecture { position: relative; overflow: hidden; padding: 66px 0 76px; background: linear-gradient(180deg, #f8fafc, #f1f5f9 65%, #f8fafc); }
.architecture::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(148, 163, 184, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .08) 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent); pointer-events: none; }
.topology {
  position: relative;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 56px minmax(190px, 1.1fr) 56px minmax(140px, .8fr);
  align-items: center;
  gap: 0;
  margin-top: 38px;
  padding: 30px;
  border: 1px solid rgba(203, 213, 225, .8);
  border-radius: 22px;
  background: rgba(255, 255, 255, .7);
  box-shadow: 0 20px 60px -36px rgba(15, 23, 42, .28), inset 0 1px 0 #fff;
  backdrop-filter: blur(14px);
}
.provider-stack { display: flex; flex-direction: column; gap: 8px; }
.provider-pill { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 9px; background: #fff; color: #334155; font-size: 10.5px; font-weight: 700; box-shadow: var(--shadow-sm); }
.provider-pill small { margin-left: auto; color: #94a3b8; font-size: 8.5px; font-weight: 600; }
.p-dot { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; }
.p-dot.openai { background: #0f172a; } .p-dot.anthropic { background: #d97757; } .p-dot.gemini { background: #4796e3; } .p-dot.deepseek { background: #4d6bfe; }
.flow-lane { position: relative; height: 160px; }
.lane-line { position: absolute; left: 0; right: 0; height: 1px; border-top: 1px dashed #94a3b8; opacity: .55; }
.lane-line:nth-child(1) { top: 20%; } .lane-line:nth-child(2) { top: 40%; } .lane-line:nth-child(3) { top: 60%; } .lane-line:nth-child(4) { top: 80%; }
.flow-lane::after { content: ""; position: absolute; top: 19%; bottom: 19%; left: 50%; width: 1px; border-left: 1px dashed #94a3b8; opacity: .55; }
.packet { position: absolute; left: 8%; top: calc(20% - 2px); width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(16, 185, 129, .13); animation: travel 2.8s linear infinite; }
@keyframes travel { 0% { left: 4%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: 92%; opacity: 0; } }
.flow-lane.right { transform: scaleY(-1); }
.flow-lane.right::after { display: none; }
.packet.reverse { animation-delay: -.9s; }
.gateway-node { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; padding: 16px; border: 1px solid var(--accent-line); border-radius: 14px; background: linear-gradient(145deg, #fff, #f0fdfa); box-shadow: 0 12px 28px -20px rgba(13, 148, 136, .5), inset 0 1px 0 #fff; }
.gateway-node img { width: 42px; height: 42px; border-radius: 12px; }
.gateway-node div { display: flex; flex-direction: column; line-height: 1.2; }
.gateway-node strong { font-size: 13px; letter-spacing: -.03em; }
.gateway-node span { margin-top: 3px; color: var(--faint); font-size: 9px; }
.gateway-status { display: inline-flex; align-items: center; gap: 5px; width: 100%; margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--accent-line); color: var(--accent-text); font-size: 8.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.gateway-status i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.app-node { display: flex; align-items: center; gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: 13px; background: #fff; box-shadow: var(--shadow-sm); }
.app-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 16px; }
.app-node div { display: flex; flex-direction: column; }
.app-node strong { font-size: 12px; }
.app-node span { margin-top: 2px; color: var(--faint); font-size: 9px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.feature-card { position: relative; padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: rgba(255, 255, 255, .8); box-shadow: var(--shadow-sm); }
.feature-icon { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--accent-line); border-radius: 9px; background: var(--accent-tint); color: var(--accent-text); font-size: 15px; font-weight: 700; }
.feature-card h3 { margin-top: 12px; font-size: 13.5px; letter-spacing: -.02em; }
.feature-card p { margin-top: 7px; color: var(--muted); font-size: 11.5px; line-height: 1.7; }
.feature-meta { display: inline-block; margin-top: 14px; padding: 4px 7px; border-radius: 5px; background: #f1f5f9; color: #64748b; font-family: var(--mono); font-size: 9px; }

.catalog { padding: 80px 0 86px; }
.catalog-tools { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 30px; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.filter-tabs button { padding: 8px 11px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: #64748b; font-size: 10.5px; font-weight: 700; }
.filter-tabs button:hover { border-color: var(--accent-line); color: var(--accent-text); }
.filter-tabs button.active { border-color: var(--accent); background: var(--accent-tint); color: var(--accent-text); box-shadow: inset 0 0 0 1px rgba(16, 185, 129, .15); }
.search-box { display: flex; align-items: center; gap: 7px; width: 220px; padding: 8px 11px; border: 1px solid var(--border); border-radius: 9px; background: #fff; color: #94a3b8; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 11px; }
.search-box input::placeholder { color: #94a3b8; }
.model-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.model-card {
  display: flex;
  flex-direction: column;
  min-height: 192px;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.model-card:hover { transform: translateY(-2px); border-color: var(--accent-line); box-shadow: 0 16px 34px -24px rgba(15, 23, 42, .3); }
.model-top { display: flex; align-items: flex-start; gap: 10px; }
.model-logo { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 10px; background: var(--brand-soft, #f1f5f9); color: var(--brand, #334155); font-size: 13px; font-weight: 900; }
.model-name { min-width: 0; }
.model-name strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; letter-spacing: -.02em; }
.model-name span { display: block; margin-top: 3px; color: #94a3b8; font-size: 9.5px; }
.model-badge { margin-left: auto; padding: 3px 5px; border-radius: 4px; background: #f1f5f9; color: #64748b; font-size: 8px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.model-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 13px; }
.model-meta span { padding: 3px 5px; border: 1px solid var(--border); border-radius: 4px; color: #64748b; font-family: var(--mono); font-size: 8px; }
.model-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 16px; border-top: 1px solid #f1f5f9; }
.price-label { display: block; color: #94a3b8; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.price-value { display: block; margin-top: 2px; color: var(--ink); font-size: 11px; font-weight: 800; }
.price-value small { color: #94a3b8; font-size: 8px; font-weight: 600; }
.model-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; color: #94a3b8; font-size: 8.5px; }
.model-foot a { color: var(--accent-text); font-weight: 800; }
.catalog-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); color: #64748b; font-size: 10.5px; }
.catalog-foot span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.catalog-foot a { color: var(--accent-text); font-weight: 800; }
.catalog-foot a span { margin-left: 3px; }
.empty-models { grid-column: 1 / -1; padding: 44px; border: 1px dashed var(--border-strong); border-radius: 14px; color: var(--faint); text-align: center; }

.wallet { padding: 40px 0 86px; }
.wallet-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr); gap: 42px; align-items: start; margin-top: 34px; }
.wallet-features { display: flex; flex-direction: column; }
.wallet-feature { display: flex; gap: 15px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.wallet-feature:first-child { padding-top: 4px; }
.wallet-feature:last-child { border-bottom: 0; }
.wallet-icon { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border: 1px solid var(--accent-line); border-radius: 10px; background: var(--accent-tint); color: var(--accent-text); font-size: 15px; }
.wallet-feature h3 { font-size: 13.5px; letter-spacing: -.02em; }
.wallet-feature p { margin-top: 6px; color: var(--muted); font-size: 11.5px; line-height: 1.7; }
.wallet-feature a { display: inline-block; margin-top: 9px; color: var(--accent-text); font-size: 10px; font-weight: 800; }
.wallet-feature a span { margin-left: 3px; }
.wallet-mock { padding: 20px; border: 1px solid var(--border); border-radius: 18px; background: #fff; box-shadow: var(--shadow-md); }
.wallet-mock-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #64748b; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.status-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px; border-radius: 4px; background: var(--accent-tint); color: var(--accent-text); font-size: 8px; letter-spacing: .05em; }
.status-chip i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.wallet-balance { display: block; margin-top: 12px; font-size: 30px; letter-spacing: -.055em; font-weight: 800; }
.wallet-note { display: block; margin-top: 3px; color: #94a3b8; font-size: 9.5px; }
.wallet-chart { display: flex; align-items: flex-end; gap: 3px; height: 64px; margin: 21px 0 18px; padding-top: 8px; border-top: 1px solid #f1f5f9; }
.wallet-chart span { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #5eead4, #0d9488); opacity: .72; }
.wallet-chart span:nth-child(1) { height: 32%; } .wallet-chart span:nth-child(2) { height: 46%; } .wallet-chart span:nth-child(3) { height: 38%; } .wallet-chart span:nth-child(4) { height: 60%; } .wallet-chart span:nth-child(5) { height: 52%; } .wallet-chart span:nth-child(6) { height: 72%; } .wallet-chart span:nth-child(7) { height: 62%; } .wallet-chart span:nth-child(8) { height: 82%; } .wallet-chart span:nth-child(9) { height: 74%; } .wallet-chart span:nth-child(10) { height: 90%; } .wallet-chart span:nth-child(11) { height: 84%; } .wallet-chart span:nth-child(12) { height: 100%; }
.topup-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-top: 1px solid #f1f5f9; color: #64748b; font-size: 10px; font-weight: 700; }
.amount-chips { display: flex; gap: 3px; }
.amount-chips button { padding: 4px 6px; border: 1px solid var(--border); border-radius: 4px; color: #64748b; font-size: 8px; font-weight: 700; }
.amount-chips button.active { border-color: var(--accent-line); background: var(--accent-tint); color: var(--accent-text); }
.wallet-mock .btn { margin-top: 4px; }
.wallet-fine { margin-top: 8px; color: #94a3b8; font-size: 8.5px; text-align: center; }

.faq { padding: 68px 0 80px; border-top: 1px solid var(--border); background: #fff; }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 52px; align-items: start; }
.faq-copy { position: sticky; top: 108px; }
.faq-copy h2 { margin-top: 12px; }
.faq-copy > p { max-width: 350px; margin-top: 12px; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.faq-help { color: #94a3b8 !important; }
.faq-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.faq-list { border-top: 1px solid var(--border); }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 0; cursor: pointer; font-size: 12.5px; font-weight: 800; letter-spacing: -.01em; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { display: grid; place-items: center; flex: 0 0 23px; height: 23px; border: 1px solid var(--border); border-radius: 50%; color: #64748b; font-size: 14px; font-weight: 400; transition: transform .2s ease, background .2s ease; }
.faq-list details[open] summary span { transform: rotate(45deg); background: var(--accent-tint); color: var(--accent-text); border-color: var(--accent-line); }
.faq-list details p { max-width: 610px; padding: 0 0 18px 0; color: var(--muted); font-size: 11.5px; line-height: 1.75; }

.final-cta { padding: 34px 0 72px; background: #fff; }
.cta-panel { position: relative; overflow: hidden; padding: 54px 34px; border-radius: 24px; background: linear-gradient(125deg, #064e3b 0%, #0f766e 48%, #0d9488 100%); color: #fff; text-align: center; box-shadow: 0 30px 70px -38px rgba(6, 78, 59, .7); }
.cta-glow { position: absolute; width: 480px; height: 480px; right: -160px; top: -240px; border-radius: 50%; background: radial-gradient(circle, rgba(153, 246, 228, .34), transparent 65%); }
.cta-panel::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255, 255, 255, .16) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(to left, #000, transparent 70%); opacity: .28; }
.cta-panel > * { position: relative; z-index: 1; }
.cta-panel h2 { margin-top: 10px; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.05em; line-height: 1.05; }
.cta-panel p { max-width: 590px; margin: 14px auto 0; color: #d1fae5; font-size: 13px; line-height: 1.7; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 25px; }
.cta-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 24px; color: #a7f3d0; font-size: 9.5px; font-weight: 700; letter-spacing: .03em; }
.cta-meta span { display: inline-flex; align-items: center; gap: 5px; }
.cta-meta span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #5eead4; }

.site-footer { padding: 46px 0 20px; border-top: 1px solid var(--border); background: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.7fr .7fr .7fr .9fr; gap: 38px; }
.footer-brand p { max-width: 330px; margin-top: 13px; color: var(--muted); font-size: 11.5px; line-height: 1.7; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; margin-top: 15px; padding: 5px 8px; border: 1px solid var(--accent-line); border-radius: 999px; background: var(--accent-tint); color: var(--accent-text); font-size: 9px; font-weight: 800; }
.status-pill i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(16, 185, 129, .12); }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 { margin-bottom: 4px; color: var(--ink); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.footer-col a { color: var(--muted); font-size: 11px; }
.footer-col a:hover { color: var(--accent-text); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 38px; padding-top: 16px; border-top: 1px solid var(--border); color: #94a3b8; font-size: 9.5px; }
.footer-bottom div { display: flex; gap: 16px; }
.footer-bottom a:hover { color: var(--accent-text); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 100;
  padding: 10px 14px;
  border: 1px solid var(--accent-line);
  border-radius: 9px;
  background: #fff;
  color: var(--accent-text);
  box-shadow: var(--shadow-lg);
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 1240px) {
  .desktop-nav a { padding: 8px 7px; font-size: 10.5px; }
  .header-inner { gap: 14px; }
  .brand-name { font-size: 16px; }
  .docs-link { display: none; }
}
@media (max-width: 1100px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: grid; }
  .header-inner { justify-content: space-between; }
  .header-actions { margin-left: auto; }
  .login-link { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero-copy { max-width: 760px; }
  .hero-demo { max-width: 620px; }
  .hero h1 { max-width: 16ch; }
  .footer-grid { grid-template-columns: 1.4fr .7fr .7fr .9fr; gap: 24px; }
}
@media (max-width: 900px) {
  .split-heading { flex-direction: column; align-items: flex-start; gap: 14px; }
  .split-heading .section-sub { max-width: 590px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .quickstart-grid { grid-template-columns: 1fr; }
  .code-window.large { min-height: 300px; }
  .steps { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .steps li:first-child { padding-top: 18px; }
  .topology { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
  .provider-stack { display: grid; grid-template-columns: 1fr 1fr; }
  .flow-lane { display: none; }
  .gateway-node { order: -1; }
  .app-node { justify-self: start; }
  .feature-grid { grid-template-columns: 1fr; }
  .model-grid { grid-template-columns: repeat(2, 1fr); }
  .wallet-grid { grid-template-columns: 1fr; }
  .wallet-mock { max-width: 440px; }
  .faq-grid { grid-template-columns: 1fr; gap: 28px; }
  .faq-copy { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .container { width: min(100% - 24px, 1440px); }
  .site-header { padding-top: 8px; }
  .header-inner { height: 60px; padding: 0 12px; border-radius: 16px; }
  .brand img { width: 32px; height: 32px; }
  .brand-name { font-size: 15px; }
  .brand-sub { font-size: 9px; }
  .header-actions .btn-sm { display: none; }
  .mobile-menu { inset: 72px 8px auto; }
  .hero { padding: 56px 0 64px; }
  .hero h1 { margin-top: 20px; font-size: 2rem; }
  .lead { margin-top: 18px; font-size: 13.5px; }
  .hero-actions { align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-checks { grid-template-columns: 1fr; gap: 8px; }
  .demo-path { font-size: 9px; }
  .demo-foot { align-items: flex-start; flex-direction: column; }
  .sdk-panel { align-items: flex-start; flex-direction: column; gap: 14px; padding: 16px; }
  .sdk-logos { flex-wrap: wrap; gap: 16px; }
  .live-section { padding: 44px 0 58px; }
  .section-heading h2, .faq-copy h2 { font-size: 1.65rem; }
  .stat-grid { gap: 10px; }
  .stat-card { padding: 15px; }
  .quickstart { padding: 56px 0 64px; }
  .code-card-head { align-items: flex-start; flex-direction: column; }
  .code-tabs { gap: 0; }
  .code-tabs button { padding: 6px 6px; font-size: 8.5px; }
  .code-window.large { font-size: 10px; padding: 14px; }
  .steps { grid-template-columns: 1fr; }
  .steps li:first-child { padding-top: 18px; }
  .architecture { padding: 50px 0 58px; }
  .provider-stack { grid-template-columns: 1fr; }
  .catalog { padding: 56px 0 64px; }
  .catalog-tools { align-items: stretch; flex-direction: column; gap: 10px; }
  .search-box { width: 100%; }
  .filter-tabs { gap: 3px; }
  .filter-tabs button { padding: 7px 8px; font-size: 9.5px; }
  .model-grid { grid-template-columns: 1fr; }
  .model-card { min-height: 180px; }
  .catalog-foot { align-items: flex-start; flex-direction: column; }
  .wallet { padding: 26px 0 64px; }
  .wallet-balance { font-size: 27px; }
  .topup-row { align-items: flex-start; flex-direction: column; }
  .faq { padding: 48px 0 60px; }
  .cta-panel { padding: 40px 20px; border-radius: 20px; }
  .cta-actions .btn { width: 100%; }
  .cta-meta { gap: 10px 14px; }
  .footer-grid { gap: 26px 16px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 430px) {
  .hero h1 { font-size: 1.8rem; }
  .stat-grid { grid-template-columns: 1fr; }
  .eyebrow { font-size: 9px; }
  .demo-head { align-items: flex-start; flex-direction: column; gap: 5px; }
  .demo-cost { flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
