/* The landing site.
   One page, no framework, no third-party requests. Dark, because the product
   is dark. The tokens below are the app's own (src/styles.css), value for
   value: the same surfaces, the same cool blue-gray rules, the same radius,
   the same light blue accent, violet where the app uses violet. A
   near-enough copy — neutral alpha rules, a tighter radius — is what made
   the site read as a different product next to the app, so copy the values,
   do not approximate them. The look borrows from a CAD viewport: a faint
   grid, monospace labels. */

@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  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: #0b0c0e;
  --bg-2: #121418;
  --panel: #181b20;
  --line: #262a31;
  --line-soft: #1d2026;
  --text: #eceae4;
  --muted: #a3a5ab;
  --dim: #7a7d85;
  --accent: #57b6f5;
  --accent-strong: #33a3ef;
  --accent-fg: #04121e;
  --accent-2: #b08cff;
  --accent-soft: rgba(87, 182, 245, .12);
  --radius: 6px;
  --display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 10;
  background: var(--accent); color: var(--accent-fg); padding: 10px 16px; font-weight: 600;
}
.skip:focus { left: 0; }

:where(a, button):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- type ---------- */

h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; text-wrap: balance; }
h1 {
  font-size: clamp(44px, 5.4vw, 74px); line-height: .98; letter-spacing: -.045em;
  margin: 18px 0 0;
}
h2 { font-size: clamp(34px, 5.4vw, 68px); line-height: 1; letter-spacing: -.04em; margin: 12px 0 22px; }
h3 { font-size: 20px; line-height: 1.25; letter-spacing: -.015em; margin-bottom: 8px; }
.hl { color: var(--accent); }
p { margin: 0 0 16px; }
.muted { color: var(--muted); }
.sub { color: var(--muted); max-width: 720px; font-size: 18px; }

.label {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
}
.label .dot { width: 7px; height: 7px; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }



/* ---------- nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 12, 14, .8);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 19px; font-weight: 650; letter-spacing: -.02em; text-decoration: none; }
.brand .mark { width: 22px; height: 22px; color: var(--accent); flex: none; }
.nav-links { display: flex; align-items: center; gap: 26px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; }
/* The primary button keeps its own color on the accent fill: these nav
   rules outrank .btn-primary, and light text on light blue is unreadable. */
.nav-links a:not(.btn-primary) { color: var(--muted); text-decoration: none; }
.nav-links a:not(.btn-primary):hover { color: var(--text); }
.nav-links .btn:not(.btn-primary) { color: var(--text); }
@media (max-width: 780px) { .nav-links a:not(.btn) { display: none; } }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--radius);
  border: 1px solid var(--line);
  font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  background: transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .25); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn-sm { padding: 8px 14px; font-size: 12px; }
.btn:disabled { cursor: default; opacity: .8; }
.btn:disabled:hover { background: var(--accent); border-color: var(--accent); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- waitlist form ---------- */

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.waitlist { max-width: 580px; min-width: 0; }
.wl-row { display: flex; flex-wrap: wrap; gap: 10px; }
.wl-row input, .wl-row select {
  min-width: 0; padding: 12px 14px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
  font: 15px var(--sans);
}
.wl-row input { flex: 1 1 220px; }
.wl-row select { flex: 0 1 150px; color: var(--muted); }
.wl-row input:focus, .wl-row select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.wl-row .btn { flex: 1 0 auto; }
@media (max-width: 520px) { .wl-row select { flex: 1 1 100%; } }
.waitlist .cf-turnstile { margin-top: 10px; }
.wl-msg { min-height: 1.4em; margin: 10px 0 0; font-family: var(--mono); font-size: 13px; color: var(--accent); }
.wl-msg.bad { color: #f0a0a0; }
.wl-msg a { color: var(--text); }
.waitlist.done .wl-row { display: none; }
.waitlist.done .wl-msg {
  display: flex; align-items: center; gap: 14px; margin: 0; padding: 20px 22px;
  border: 1px solid rgba(87, 182, 245, .38); border-radius: var(--radius); background: var(--accent-soft);
  font: 600 clamp(18px, 2vw, 22px)/1.3 var(--display); letter-spacing: -.01em; color: var(--text);
}
.waitlist.done .wl-msg::before {
  content: "✓"; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: var(--accent-fg); font-size: 18px;
}

/* ---------- hero ---------- */

.hero {
  padding: 88px 0 40px;
  background:
    radial-gradient(1000px 520px at 78% 8%, rgba(87, 182, 245, .10), transparent 65%),
    linear-gradient(var(--bg), transparent 30%, transparent 70%, var(--bg)),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(var(--line-soft) 1px, transparent 1px) 0 0 / 48px 48px;
}
.hero-text .lede { margin: 28px 0 32px; }
.lede { max-width: 580px; font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); }
.lede em { color: var(--text); }
@media (max-width: 700px) { .hero { padding: 20px 0 32px; } h1 { margin-top: 14px; } .hero-text .lede { margin: 20px 0 24px; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(40px, 6vw, 72px) 0 0; border-top: 1px solid var(--line); }
.stats > div { padding: 18px 18px 4px 0; min-width: 0; }
.stats > div + div { padding-left: 18px; border-left: 1px solid var(--line-soft); }
.stats dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.stats dd { margin: 6px 0 0; font-family: var(--display); font-size: clamp(30px, 4vw, 44px); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.stats small { display: block; margin-top: 8px; font-family: var(--sans); font-size: 13.5px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
}

/* ---------- sections ---------- */

.band { padding: 100px 0; border-top: 1px solid var(--line-soft); }
@media (max-width: 700px) { .band { padding: 56px 0; } }

/* ---------- features ---------- */

.features { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 48px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.features > article { min-width: 0; padding: 28px 26px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .2s ease; }
.features > article:hover { background: var(--bg-2); }
.features .num { display: block; margin-bottom: 22px; font-family: var(--mono); font-size: 12px; color: var(--accent); }
.features p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
  .features { grid-template-columns: 1fr; margin-top: 32px; }
  .features > article { padding: 20px 4px 6px 0; border-right: 0; }
  .features { border-left: 0; }
  .features .num { display: inline; margin: 0 10px 0 0; }
  .features h3 { display: inline; }
  .features p { margin-top: 8px; }
}

/* ---------- final CTA ---------- */

.final { background: radial-gradient(900px 400px at 50% 100%, rgba(87, 182, 245, .09), transparent 70%); }
.final-in { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 48px; background: rgba(16, 17, 20, .7); border: 1px solid var(--line); border-radius: var(--radius); }
.final-in > * { min-width: 0; }
@media (max-width: 900px) { .final-in { grid-template-columns: 1fr; padding: 28px 20px; gap: 30px; } }

/* ---------- footer ---------- */

.foot { border-top: 1px solid var(--line-soft); padding: 48px 0 60px; }
.foot-in { display: grid; gap: 16px; }
.foot-brand { margin: 0; font-family: var(--display); font-size: clamp(56px, 12vw, 150px); font-weight: 600; letter-spacing: -.05em; line-height: .9; color: #1a1b1f; }
.foot nav { display: flex; flex-wrap: wrap; gap: 22px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; }
.foot nav a { color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--text); }

/* ---------- a page of text: /privacy ---------- */

.doc {
  padding: 72px 0 96px;
  background: radial-gradient(900px 420px at 82% 0, rgba(87, 182, 245, .08), transparent 65%) no-repeat;
}
.doc-grid { display: grid; grid-template-columns: minmax(0, 720px) 220px; justify-content: space-between; gap: 64px; align-items: start; }
.doc-text > .lede { margin: 24px 0 0; max-width: none; }
.doc-date { margin: 18px 0 0; font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.doc-text section { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); scroll-margin-top: 76px; }
.doc-text h2 { font-size: clamp(24px, 3vw, 30px); line-height: 1.15; letter-spacing: -.025em; margin: 0 0 16px; scroll-margin-top: 104px; }
.doc-text section p, .doc-text li { color: #cfcec9; }
.doc-text strong { color: var(--text); font-weight: 600; }
.doc-text section a { color: var(--accent); text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc-text section a:hover { color: var(--text); }
.doc-text code { font-family: var(--mono); font-size: .88em; color: #dbe7f2; }
.doc-text ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.doc-text li { position: relative; padding-left: 20px; }
.doc-text li::before { content: ""; position: absolute; left: 0; top: .68em; width: 6px; height: 6px; background: var(--accent); }
.doc-text .doc-items { gap: 16px; }
.doc-text section > :last-child { margin-bottom: 0; }
.doc-text .doc-brief {
  margin-top: 40px; padding: 22px 22px 24px;
  border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: var(--radius);
  background: linear-gradient(90deg, var(--accent-soft), transparent 70%), var(--bg-2);
}
.doc-brief h2 { font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.doc-text .doc-brief li { color: var(--text); }
.doc-toc { position: sticky; top: 92px; display: grid; gap: 10px; padding-left: 20px; border-left: 1px solid var(--line); font-size: 14.5px; }
.doc-toc p { margin: 0 0 4px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.doc-toc a { color: var(--muted); text-decoration: none; }
.doc-toc a:hover { color: var(--text); }
@media (max-width: 1000px) { .doc-grid { grid-template-columns: minmax(0, 720px); justify-content: start; } .doc-toc { display: none; } }
@media (max-width: 700px) {
  .doc { padding: 36px 0 64px; }
  .doc-text section { margin-top: 40px; padding-top: 22px; }
  .doc-text .doc-brief { margin-top: 30px; padding: 18px 16px 20px; }
}
