:root {
  --bg: #ffffff;
  --panel: #f6f6f7;
  --line: #e7e7ea;
  --text: #0a0a0b;
  --muted: #6b6b74;
  --red: #ff2a1f;
  --red-dim: #ff2a1f14;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Space Grotesk", system-ui, -apple-system, Segoe UI, sans-serif;
  --display: "DM Sans", system-ui, -apple-system, Segoe UI, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
a { color: var(--text); text-decoration-color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red); }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
header.nav { border-bottom: 1px solid var(--line); }
header.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -0.03em; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.brand::before { content: ""; width: 10px; height: 10px; background: var(--red); border-radius: 2px; box-shadow: 0 0 12px var(--red); }
.brand small { color: var(--muted); font-weight: 400; }
nav.links { display: flex; gap: 18px; font-size: 14px; font-weight: 500; letter-spacing: -0.02em; flex-wrap: wrap; }
nav.links a { color: var(--muted); text-decoration: none; }
nav.links a:hover { color: var(--text); }
.hero { padding: 88px 0 56px; }
.eyebrow { font-family: var(--mono); color: var(--red); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; }
h1 { font-family: var(--display); font-size: clamp(40px, 7.4vw, 72px); line-height: 1.0; letter-spacing: -0.02em; font-weight: 500; margin: 12px 0 22px; }
h2 { font-family: var(--display); font-size: 24px; letter-spacing: -0.02em; font-weight: 500; margin: 48px 0 12px; }
h3 { font-family: var(--display); font-size: 17px; letter-spacing: -0.01em; font-weight: 600; margin: 28px 0 8px; }
.lede { color: var(--muted); font-size: 19px; font-weight: 500; line-height: 1.45; letter-spacing: -0.03em; max-width: 640px; }
.cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.btn { font-family: var(--sans); font-weight: 500; font-size: 15px; letter-spacing: -0.02em; padding: 11px 18px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:hover { color: #fff; filter: brightness(1.1); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 24px 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.card .k { font-family: var(--mono); font-size: 28px; color: var(--text); }
.card .l { color: var(--muted); font-size: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 16px 0; }
.table-scroll { overflow-x: auto; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 500; }
td.mono, code, pre { font-family: var(--mono); }
code { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; font-size: 13px; }
pre { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px; overflow-x: auto; font-size: 13px; line-height: 1.5; }
pre code { background: none; border: 0; padding: 0; }
.pill { font-family: var(--mono); font-size: 12px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.pill.red { color: var(--red); border-color: var(--red); background: var(--red-dim); }
.prose { max-width: 720px; padding: 48px 0 24px; }
.prose p, .prose li { color: #2a2a2e; }
.muted { color: var(--muted); }
footer { border-top: 1px solid var(--line); margin-top: 80px; padding: 28px 0; color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); }

/* shared */
html, body { overflow-x: clip; }
code { overflow-wrap: anywhere; }
nav.links { align-items: center; }
nav.links a.nav-cta { color: #fff; background: var(--text); padding: 6px 13px; border-radius: 999px; }
nav.links a.nav-cta:hover { color: #fff; background: var(--red); }

/* inline email signup */
.signup { display: flex; gap: 8px; margin-top: 28px; max-width: 460px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
          box-shadow: 0 1px 2px #0000000a, 0 12px 28px -20px #0000002e; transition: border-color 140ms, box-shadow 140ms; }
.signup:focus-within { border-color: var(--text); box-shadow: 0 0 0 3px #0a0a0b10; }
.signup input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 16px var(--sans); color: var(--text); padding: 0 14px; }
.signup input::placeholder { color: #a1a1aa; }
.signup .btn { cursor: pointer; white-space: nowrap; font-family: var(--sans); }
.subcta { margin-top: 14px; font-size: 14px; color: var(--muted); }
.subcta a { color: var(--muted); }
.band { margin-top: 88px; padding: 40px; border-radius: 20px; background: #0a0a0b; color: #f4f4f5; position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; right: -120px; top: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(closest-side, #ff2a1f55, transparent); pointer-events: none; }
.band h2 { color: #fff; margin: 0 0 8px; font-size: clamp(28px, 4.6vw, 40px); line-height: 1.05; }
.band p { color: #a1a1aa; margin: 0; max-width: 520px; }
.band .signup { background: #fff; border-color: transparent; position: relative; z-index: 1; }

/* models table */
.mtable a.pill { text-decoration: none; white-space: nowrap; }
.mtable a.pill:hover { background: var(--red); color: #fff; }

@media (max-width: 640px) {
  header.nav .wrap { height: 56px; }
  nav.links { gap: 14px; }
  .prose { padding-top: 32px; }
  .band { padding: 28px 20px; margin-top: 64px; }
  /* small screens: tolerate a stacked signup, keep it one tap */
  .signup { flex-direction: column; border-radius: 16px; padding: 6px; }
  .signup input { padding: 12px 12px; }
  .signup .btn { width: 100%; text-align: center; padding: 13px 18px; }
  /* models table -> cards */
  .mtable, .mtable tbody, .mtable tr, .mtable td { display: block; }
  .mtable tr:first-child { display: none; }
  .mtable tr { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 8px; }
  .mtable td { border: 0; padding: 0; white-space: normal; }
  .mtable td:nth-child(1) { grid-column: 1 / -1; order: -2; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
  .mtable td:nth-child(6) { grid-column: 1 / -1; order: 10; }
  .mtable td:nth-child(6) a.pill { display: block; text-align: center; padding: 9px; font-size: 13px; border-radius: 10px; }
  .mtable td:nth-child(2) { display: none; }
  .prose code { font-size: 11.5px; }
  .mtable td[data-l]::before { content: attr(data-l); display: block; font: 500 11px var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
  .stable td, .stable th { white-space: normal; padding: 10px 6px; }
}
