@font-face { font-family: "Jakarta"; src: url("/fonts/jakarta.woff2") format("woff2"); font-weight: 600 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #ffffff;
  --fg: #0b0b0c;
  --muted: #5d5d66;
  --faint: #8b8b94;
  --line: #e7e7e4;
  --card: #f6f6f4;
  --field: #ffffff;
  --button-bg: #0b0b0c;
  --button-fg: #ffffff;
  --button-hover: #2a2a2e;
  --error: #c4291c;
  --ok: #17803d;
  --ease: cubic-bezier(.2, 0, 0, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0c;
    --fg: #f4f4f5;
    --muted: #a1a1aa;
    --faint: #71717a;
    --line: #232326;
    --card: #141416;
    --field: #0f0f11;
    --button-bg: #f4f4f5;
    --button-fg: #0b0b0c;
    --button-hover: #d4d4d8;
    --error: #ff6b5e;
    --ok: #4ade80;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.55 "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-size: .9em; }

.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: block; color: var(--fg); }
.brand svg { display: block; height: 26px; width: auto; }
.nav nav { display: flex; align-items: center; gap: 20px; }
.nav nav a:not(.button) { color: var(--muted); text-decoration: none; font-size: 15px; transition: color .15s var(--ease); }
.nav nav a:not(.button):hover { color: var(--fg); }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 18px; border: 0; border-radius: 12px;
  background: var(--button-bg); color: var(--button-fg);
  font: 600 15px/1 "Inter", sans-serif; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s var(--ease), transform .15s var(--ease), opacity .15s var(--ease);
}
.button:hover { background: var(--button-hover); }
.button:active { transform: scale(.97); }
.button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.button.small { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.button[disabled] { opacity: .6; cursor: progress; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 56px; padding-top: 72px; padding-bottom: 96px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 5px 12px 5px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--muted); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent); }
h1, h2, h3 { font-family: "Jakarta", "Inter", sans-serif; font-weight: 800; color: var(--fg); margin: 0; }
h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.02; letter-spacing: -0.045em; }
.lead { margin: 20px 0 32px; max-width: 520px; font-size: 18px; line-height: 1.55; color: var(--muted); }

.signup { max-width: 480px; }
.field { display: flex; gap: 8px; padding: 6px; border: 1px solid var(--line); border-radius: 16px; background: var(--field); transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.field:focus-within { border-color: color-mix(in srgb, var(--fg) 35%, var(--line)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--fg) 6%, transparent); }
.field input { flex: 1; min-width: 0; height: 44px; padding: 0 10px; border: 0; background: transparent; color: var(--fg); font: 400 16px "Inter", sans-serif; outline: none; }
.field input::placeholder { color: var(--faint); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.note { min-height: 22px; margin: 10px 2px 0; font-size: 14px; color: var(--faint); transition: color .2s var(--ease); }
.note.error { color: var(--error); }
.note.done { color: var(--fg); }
.signup.joined .field { display: none; }
.signup.joined .note { margin-top: 0; font-size: 16px; animation: rise .35s var(--ease) both; }

.tuck { margin-left: -0.06em; }
.terminal { min-width: 0; margin: 0; border-radius: 16px; background: #0f0f11; color: #e4e4e7; border: 1px solid #232326; box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 24px 60px -24px rgba(0,0,0,.45); overflow: hidden; }
.terminal-bar { display: flex; gap: 7px; padding: 14px 16px; border-bottom: 1px solid #1c1c1f; }
.terminal-bar span { width: 11px; height: 11px; border-radius: 50%; background: #2c2c30; }
.terminal pre code { display: block; white-space: normal; }
.terminal pre { margin: 0; padding: 18px 20px 22px; overflow-x: auto; font: 400 13.5px/1.75 "JetBrains Mono", ui-monospace, Menlo, monospace; }
.terminal .line { display: block; white-space: pre; animation: rise .45s var(--ease) both; }
.terminal .line:nth-child(1) { animation-delay: .1s; }
.terminal .line:nth-child(2) { animation-delay: .7s; }
.terminal .line:nth-child(3) { animation-delay: .85s; }
.terminal .line:nth-child(4) { animation-delay: .9s; }
.terminal .line:nth-child(5) { animation-delay: 1.4s; }
.terminal .line:nth-child(6) { animation-delay: 1.9s; }
.terminal .line:nth-child(7) { animation-delay: 2.2s; }
.terminal .line:nth-child(8) { animation-delay: 2.8s; }
.terminal .prompt { color: #71717a; }
.terminal .ok { color: #4ade80; }
.terminal .url { color: #ffffff; text-decoration: underline; text-decoration-color: #52525b; text-underline-offset: 3px; }
.terminal .dim { color: #71717a; }
.terminal .method { color: #a1a1aa; }
.terminal .s2 { color: #4ade80; }
.terminal .s4 { color: #fbbf24; }

@keyframes rise { from { opacity: 0; transform: translateY(6px); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) {
  .terminal .line, .signup.joined .note { animation: none; }
}

.features { padding-top: 24px; padding-bottom: 96px; }
.features h2, .cta h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -0.035em; max-width: 640px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.grid article { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); transition: border-color .2s var(--ease); }
.grid article:hover { border-color: color-mix(in srgb, var(--fg) 22%, var(--line)); }
.grid svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.grid h3 { margin: 18px 0 6px; font-size: 18px; letter-spacing: -0.02em; font-weight: 700; }
.grid p { margin: 0; font-size: 15px; color: var(--muted); }
.grid .next { background: var(--card); border-style: dashed; }

.cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); align-items: center; gap: 40px; margin-bottom: 96px; padding-top: 48px; padding-bottom: 48px; border-radius: 24px; background: var(--card); max-width: 1072px; padding-left: 40px; padding-right: 40px; }
.cta p { margin: 12px 0 0; color: var(--muted); font-size: 17px; }

.footer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }
.footer p { margin: 0; }
.footer-brand { color: var(--fg); margin-right: auto; }
.footer-brand svg { display: block; height: 20px; width: auto; }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 40px; padding-bottom: 72px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta { grid-template-columns: minmax(0, 1fr); margin-left: 24px; margin-right: 24px; width: auto; padding: 32px 24px; }
}
@media (max-width: 560px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .nav nav a:not(.button) { display: none; }
  .grid { grid-template-columns: 1fr; }
  .cta { margin-left: 16px; margin-right: 16px; padding: 28px 20px; }
  .field { flex-direction: column; }
  .field .button { width: 100%; }
  .terminal pre { font-size: 12px; padding: 16px; }
}
