@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/geist-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/jetbrains-mono-latin.woff2) format('woff2');
}

:root {
  --bg: #0b0c0e;
  --fg: #ececee;
  --surface: #111215;
  --muted: #17191d;
  --muted-fg: #9a9ea6;
  --edge: #222429;
  --edge-strong: #34373e;
  --accent: #2dd4bf;
  --amber: #f2b45a;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --section-y: clamp(4.5rem, 3rem + 5vw, 8rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: inherit; text-decoration-color: var(--edge-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
code, pre, dt, .call, .chat-bar em { font-family: var(--mono); }
code { font-size: 0.88em; color: #cfd2d8; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 600; }
.accent { color: var(--accent); }
.dim { color: var(--muted-fg); }

.col { width: 100%; max-width: 1040px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .col { padding-inline: 24px; } }

.skip { position: absolute; left: 12px; top: -48px; background: var(--fg); color: var(--bg); padding: 8px 12px; border-radius: 6px; z-index: 20; }
.skip:focus { top: 12px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(11, 12, 14, 0.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--edge); }
.nav-in { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.nav nav { display: none; margin-left: auto; gap: 4px; }
.nav nav a { text-decoration: none; color: var(--muted-fg); font-size: 14px; padding: 8px 10px; border-radius: 6px; }
.nav nav a:hover { color: var(--fg); background: var(--muted); }
.nav .btn { margin-left: auto; }
@media (min-width: 760px) { .nav nav { display: flex; } .nav .btn { margin-left: 8px; } }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 6px; font-weight: 500; font-size: 15px; text-decoration: none; transition: transform 160ms var(--ease), box-shadow 200ms var(--ease), border-color 200ms var(--ease); }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-ghost { border: 1px solid var(--edge-strong); background: rgba(255, 255, 255, 0.02); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.18), 0 0 32px rgba(45, 212, 191, 0.25); }
  .btn-ghost:hover { border-color: #5a5e66; }
  .btn span[aria-hidden] { transition: transform 200ms var(--ease); }
  .btn:hover span[aria-hidden] { transform: translateX(3px); }
}

/* hero */
.hero { display: grid; gap: 48px; padding-top: clamp(3.5rem, 2rem + 6vw, 7rem); padding-bottom: 3rem; align-items: center; }
@media (min-width: 960px) { .hero { grid-template-columns: 1.15fr 1fr; gap: 56px; } }
h1 { font-size: clamp(2.4rem, 1.3rem + 4.6vw, 4.25rem); line-height: 1.02; letter-spacing: -0.045em; }
.lead { color: var(--muted-fg); font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); max-width: 34em; margin: 24px 0 0; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 28px 0 0; }
.badges img { display: block; height: 20px; width: auto; }

/* chat mock */
.chat { position: relative; margin: 0; padding: 0 0 20px; border-radius: 12px; border: 1px solid var(--edge); background: linear-gradient(#121418, #0d0e11); box-shadow: 0 0 80px -20px rgba(45, 212, 191, 0.22); overflow: hidden; }
.chat::before { content: ''; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0.7; }
.chat-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--edge); }
.chat-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--edge-strong); }
.chat-bar em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--muted-fg); }
.msg { margin: 16px 16px 0; padding: 12px 14px; border-radius: 8px; font-size: 15px; }
.msg.user { background: var(--muted); margin-left: 48px; }
.msg.user code { word-break: break-all; }
.msg.bot { border: 1px solid var(--edge); color: #d4d6da; }
.call { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 12px 16px 0; font-size: 13px; color: var(--accent); }
.call .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.call .args { color: var(--muted-fg); }
.call .args::before { content: '('; }
.call .args::after { content: ')'; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-block: 1px solid var(--edge); padding-block: 0; margin-top: 2rem; }
.stats div { padding: 24px 16px; border-left: 1px solid var(--edge); }
.stats div:nth-child(odd) { border-left: 0; }
.stats div:nth-child(n + 3) { border-top: 1px solid var(--edge); }
.stats strong { display: block; font-size: clamp(1.9rem, 1.3rem + 2vw, 2.75rem); font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stats div:first-child strong { color: var(--accent); }
.stats span { color: var(--muted-fg); font-size: 14px; }
@media (min-width: 760px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stats div:nth-child(n) { border-left: 1px solid var(--edge); border-top: 0; }
  .stats div:first-child { border-left: 0; padding-left: 0; }
}

/* sections */
.section { padding-top: var(--section-y); }
h2 { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); letter-spacing: -0.03em; line-height: 1.1; position: relative; padding-top: 20px; }
h2::before { content: ''; position: absolute; top: 0; left: 0; width: min(240px, 50%); height: 1px; background: linear-gradient(90deg, var(--accent), transparent); }
.sub { color: var(--muted-fg); margin: 12px 0 0; max-width: 40em; }
h3 { font-size: 17px; letter-spacing: -0.01em; }

.grid4 { display: grid; gap: 12px; margin-top: 32px; }
@media (min-width: 640px) { .grid4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid4 { grid-template-columns: 1.3fr 1fr 1fr 1.3fr; } }
.card { padding: 22px; border: 1px solid var(--edge); border-radius: 12px; background: var(--surface); transition: border-color 200ms var(--ease), transform 200ms var(--ease); }
.card p { color: var(--muted-fg); margin: 10px 0 0; font-size: 15px; }
@media (hover: hover) and (pointer: fine) { .card:hover { border-color: rgba(45, 212, 191, 0.45); transform: translateY(-3px); } }

/* examples */
.examples { list-style: none; padding: 0; margin: 32px 0 0; border-top: 1px solid var(--edge); }
.examples li { display: grid; gap: 6px 32px; padding: 22px 0; border-bottom: 1px solid var(--edge); }
@media (min-width: 860px) { .examples li { grid-template-columns: 1.1fr 0.9fr; grid-template-areas: 'q a' 't a'; } .examples .q { grid-area: q; } .examples .t { grid-area: t; } .examples .a { grid-area: a; } }
.examples p { margin: 0; }
.examples .q { font-size: 1.12rem; font-weight: 500; letter-spacing: -0.01em; }
.examples .t code { color: var(--accent); font-size: 13px; }
.examples .a { color: var(--muted-fg); font-size: 15px; }

/* tools */
.tools { display: grid; gap: 12px; margin-top: 32px; }
@media (min-width: 860px) { .tools { grid-template-columns: 1fr 1fr; } }
.tool-group { padding: 24px; border: 1px solid var(--edge); border-radius: 12px; background: var(--surface); }
.tool-group h3 + dl { margin-top: 14px; }
.tool-group dl + h3 { margin-top: 28px; }
.tool-group small { font-family: var(--mono); font-weight: 400; font-size: 12px; color: var(--muted-fg); margin-left: 6px; }
dl { margin: 0; }
dt { color: var(--accent); font-size: 13.5px; word-break: break-word; }
dd { margin: 2px 0 14px; color: var(--muted-fg); font-size: 15px; }
dd:last-child { margin-bottom: 0; }

/* install */
.steps { display: grid; gap: 12px; margin-top: 32px; }
.step, .client { border: 1px solid var(--edge); border-radius: 12px; background: var(--surface); padding: 20px; }
.step p, .client p { color: var(--muted-fg); font-size: 15px; margin: 12px 0 0; }
.client summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 28px; }
.client summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.client summary::after, .faq summary::after { content: '+'; font-family: var(--mono); color: var(--muted-fg); transition: transform 200ms var(--ease); }
.client[open] summary::after, .faq details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.code { position: relative; margin-top: 12px; border: 1px solid var(--edge); border-radius: 8px; background: #0d0e11; }
.code pre { margin: 0; padding: 16px; padding-right: 84px; overflow-x: auto; font-size: 13.5px; line-height: 1.55; }
.code code { color: var(--fg); font-size: inherit; }
.copy { position: absolute; top: 8px; right: 8px; min-height: 32px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--edge-strong); background: var(--muted); color: var(--muted-fg); font: 500 12px var(--sans); cursor: pointer; }
.copy:hover { color: var(--fg); }
.copy[data-ok] { color: var(--accent); border-color: rgba(45, 212, 191, 0.5); }
.env { margin-top: 14px; }

/* faq */
.faq { margin-top: 32px; border-top: 1px solid var(--edge); }
.faq details { border-bottom: 1px solid var(--edge); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 500; font-size: 1.05rem; }
.faq details p { margin: -6px 0 22px; color: var(--muted-fg); max-width: 46em; }

/* cta */
.cta { padding-top: clamp(6rem, 4rem + 6vw, 10rem); padding-bottom: 4rem; text-align: left; position: relative; }
.cta h2 { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.5rem); letter-spacing: -0.045em; max-width: 16em; }
.cta p { color: var(--muted-fg); margin: 16px 0 0; }
.cta::after { content: ''; position: absolute; left: 10%; right: 10%; bottom: 0; height: 120px; background: radial-gradient(ellipse at bottom, rgba(242, 180, 90, 0.10), transparent 70%); pointer-events: none; }

.foot { border-top: 1px solid var(--edge); padding-block: 32px 48px; font-size: 14px; color: var(--muted-fg); }
.foot p { margin: 6px 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.hero > *, .grid4 > *, .tools > *, .steps > *, .examples li > * { min-width: 0; }
.step p code, .client p code { overflow-wrap: anywhere; }
