:root {
  --bg: #fff;
  --bg-soft: #f5f5f4;
  --text: #1c1917;
  --muted: #57534e;
  --faint: #78716c;
  --line: #e7e5e4;
  --fill: #1c1917;
  --fill-ink: #fff;
  --ok: #166534;
  --err: #b91c1c;
  --code-bg: #1c1917;
  --code-ink: #e7e5e4;
  --max: 1080px;
  --narrow: 720px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { background: var(--bg); color: var(--text); }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
}
a { color: inherit; }
a:hover { text-decoration-thickness: 2px; }
code, pre, kbd {
  font-family: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; width: min(var(--max), calc(100% - 48px)); }
.logo {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
}
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  background: var(--fill);
  color: var(--fill-ink);
}
.btn:hover { background: #292524; }
.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border-color: var(--line);
}
.btn-secondary:hover { background: var(--bg-soft); }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* Hero */
.hero { padding: 72px 0 28px; text-align: left; max-width: 40rem; }
.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 600;
}
.lede {
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }

/* Demo */
.demo {
  margin: 12px 0 80px;
}
.demo-frame {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #0d1117;
  line-height: 0;
}
.demo-frame video,
.demo-frame .demo-still {
  width: 100%;
  height: auto;
}
.demo-motion { display: block; }
.demo-still { display: none; }
.demo-caption {
  margin-top: 10px;
  color: var(--faint);
  font-size: 13px;
}

/* Sections */
section { margin-bottom: 80px; }
h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin-bottom: 8px;
}
.section-lead { color: var(--muted); margin-bottom: 28px; max-width: 40rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 24px;
  margin-bottom: 28px;
}
.step h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }
.step .n {
  display: inline-block;
  color: var(--faint);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

pre.snippet {
  background: var(--code-bg);
  color: var(--code-ink);
  border-radius: 10px;
  padding: 18px 20px;
  font-size: 13.5px;
  line-height: 1.65;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
pre.snippet .prompt { color: #a8a29e; }
pre.snippet .ok { color: #86efac; }
pre.snippet .fail { color: #fca5a5; }
pre.snippet .note { color: #fde68a; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq + .faq { border-top: 1px solid var(--line); }
.faq:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 600;
  font-size: 15px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  float: right;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-right: 1.5px solid var(--faint);
  border-bottom: 1.5px solid var(--faint);
  transform: rotate(45deg);
}
.faq[open] summary::after { transform: rotate(-135deg); margin-top: 10px; }
.faq .a { color: var(--muted); font-size: 15px; padding: 0 0 18px; max-width: 42rem; }
.faq .a p + p { margin-top: 10px; }
.faq .a code {
  font-size: 0.9em;
  background: var(--bg-soft);
  padding: 1px 5px;
  border-radius: 4px;
}

/* Waitlist */
.waitlist {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 36px 32px;
}
.waitlist h2 { margin-bottom: 8px; }
.waitlist .sub { color: var(--muted); margin-bottom: 24px; max-width: 40em; }
form { display: grid; gap: 14px; }
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 6px;
}
input[type="email"], textarea {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  font-size: 15px;
}
textarea { resize: vertical; min-height: 88px; }
input[type="email"]:hover, textarea:hover { border-color: #d6d3d1; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-msg { font-size: 14px; min-height: 1.4em; color: var(--muted); }
.form-msg.err { color: var(--err); }
.success-box { display: none; }
.waitlist.is-done form { display: none; }
.waitlist.is-done .success-box { display: block; color: var(--ok); font-size: 16px; }

/* Footer + docs typography */
footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--faint);
  font-size: 13px;
}
footer a { color: var(--faint); text-decoration: none; }
footer a:hover { color: var(--text); }
.docs { padding: 56px 0 80px; max-width: var(--narrow); }
.docs h1 { font-size: 32px; letter-spacing: -0.03em; font-weight: 600; margin-bottom: 12px; }
.docs h2 { margin-top: 36px; }
.docs p, .docs li { color: var(--muted); }
.docs p + p { margin-top: 12px; }
.docs ul, .docs ol { margin: 12px 0 0 1.2em; }
.docs li + li { margin-top: 6px; }
.docs pre { margin: 16px 0; }
.docs code {
  font-size: 0.9em;
  background: var(--bg-soft);
  padding: 1px 5px;
  border-radius: 4px;
}
.docs pre code { background: none; padding: 0; color: inherit; }
.docs table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 14px; }
.docs th, .docs td { text-align: left; border-bottom: 1px solid var(--line); padding: 8px 12px 8px 0; vertical-align: top; }
.docs th { font-weight: 600; color: var(--text); }
.docs td { color: var(--muted); }
.docs a { color: var(--text); }

@media (max-width: 720px) {
  .wrap, .nav .wrap { width: calc(100% - 32px); }
  .hero { padding-top: 48px; }
  .steps { grid-template-columns: 1fr; }
  .waitlist { padding: 24px 20px; }
  section { margin-bottom: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .demo-motion { display: none; }
  .demo-still { display: block; }
}
