/* Layout: a night-time "camera view" hero, then a light spec-sheet page,
   closing on a night band with the second form. */
:root {
  --bg: #f0f0ec;
  --surface: #fbfbf9;
  --ink: #172033;         /* indigo-tinted ink */
  --muted: #586176;
  --line: #d6d8dd;
  --laser: #ff4b3a;       /* the dot */
  --laser-ink: #c92f1e;   /* laser red that passes contrast as text on light */
  --ok: #2f7d5b;
  --panel: #f8f8f8;       /* illustration panel, light in both themes */
  --night: #0f1729;
  --night-2: #1b2846;
  --moon: #dbe2ef;
  --moon-muted: #9ba8c0;
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --w: 1120px;
  --r: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1220; --surface: #131b2c; --ink: #e6e9f1; --muted: #9ba4b7; --line: #263149;
    --laser-ink: #ff7565; --ok: #5cc596; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1220; --surface: #131b2c; --ink: #e6e9f1; --muted: #9ba4b7; --line: #263149;
  --laser-ink: #ff7565; --ok: #5cc596; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 var(--font-body); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--laser-ink); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--laser); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap {
  width: 100%; max-width: calc(var(--w) + 2 * 24px); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 700px) { .wrap { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); } }
.mono { font-family: var(--font-mono); }
.eyebrow {
  font: 500 12.5px/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--night); }
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: var(--night);
  border-bottom: 1px solid rgba(155, 168, 192, 0.14);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--moon); text-decoration: none; font: 700 18px/1 var(--font-display); letter-spacing: -0.01em; }
.brand svg { width: 26px; height: 26px; flex: none; }
.brand small { font: 500 11px/1 var(--font-mono); letter-spacing: 0.08em; color: var(--moon-muted); text-transform: uppercase; }
.top__cta {
  font: 600 15px/1 var(--font-body); color: var(--night); background: var(--moon); text-decoration: none;
  padding: 10px 16px; border-radius: 999px; white-space: nowrap;
}
.top__cta:hover { background: #fff; }
@media (max-width: 420px) { .top__cta .long { display: none; } .brand { font-size: 17px; } }

/* Hero: night camera view */
.hero { background: var(--night); color: var(--moon); padding-block: 40px 56px; }
.hero__grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 940px) { .hero__grid { grid-template-columns: 1fr 1.08fr; gap: 56px; } .hero { padding-block: 64px 80px; } }
.hero__text { display: grid; gap: 20px; min-width: 0; }
.hero .eyebrow { color: var(--moon-muted); }
.hero h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 800; color: #fff; }
.hero h1 em { font-style: normal; color: var(--laser); }
.hero__lede { font-size: 17.5px; color: var(--moon); max-width: 34em; }
.hero__safe { font-size: 15px; color: var(--moon-muted); max-width: 34em; padding-left: 14px; border-left: 2px solid var(--laser); }
.hero__safe b { color: var(--moon); font-weight: 600; }
@media (min-width: 700px) { .hero__lede { font-size: 19px; } }

.scene-wrap { position: relative; min-width: 0; }
.scene { width: 100%; height: auto; display: block; border-radius: 18px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(155, 168, 192, 0.16); }
.scene-cap { margin-top: 10px; font: 400 12.5px/1.5 var(--font-mono); color: var(--moon-muted); }
.hud { font: 500 11px var(--font-mono); letter-spacing: 0.06em; fill: #9ba8c0; }
.hud-red { fill: #ff7565; }
.scene .dot { animation: hunt 8s cubic-bezier(.45,.05,.3,1) infinite; }
.scene .lock { animation: lock 8s steps(1, end) infinite; }
.scene .rec { animation: rec 1.6s ease-in-out infinite; }
@keyframes hunt {
  0% { transform: translate(-250px, 150px); }
  14% { transform: translate(-170px, 40px); }
  24% { transform: translate(-60px, 110px); }
  33% { transform: translate(-18px, 22px); }
  40%, 100% { transform: translate(0, 0); }
}
@keyframes lock { 0% { opacity: 0; } 40% { opacity: 1; } }
@keyframes rec { 50% { opacity: 0.25; } }
.scene { touch-action: manipulation; }
.scene.live { cursor: none; }
.scene.live .dot, .scene.live .lock { animation: none; }
.scene .dot { transition: opacity .15s; }
.scene .wing { transform-box: fill-box; transform-origin: center; }
.scene.flying .wing { animation: flap 70ms linear infinite alternate; }
.scene .zone { transition: stroke .2s, stroke-opacity .2s; }
.scene.blocked .zone { stroke: #ff7565; stroke-opacity: 1; }
.scene.blocked .zone-label { fill: #ff7565; }
@keyframes flap { to { transform: scaleY(0.35); } }
@media (prefers-reduced-motion: reduce) {
  .scene .dot, .scene .lock, .scene .rec, .scene.flying .wing { animation: none; }
  html { scroll-behavior: auto; }
}

/* Waitlist form */
.join { display: grid; gap: 10px; max-width: 520px; }
.join__row { display: flex; gap: 8px; flex-wrap: wrap; }
.join input[type="email"] {
  flex: 1 1 220px; min-width: 0; font: 400 17px/1.2 var(--font-body); color: #0f1729; background: #fff;
  border: 2px solid transparent; border-radius: 12px; padding: 14px 16px;
}
.join input[type="email"]:focus { outline: none; border-color: var(--laser); }
.join input[aria-invalid="true"] { border-color: var(--laser); }
.btn {
  flex: 0 0 auto; font: 700 17px/1 var(--font-body); color: #fff; background: var(--laser);
  border: 0; border-radius: 12px; padding: 15px 20px; cursor: pointer; transition: transform .15s, background .15s;
}
.btn:hover { background: #ff3a27; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .65; cursor: progress; }
.join__note { font-size: 14px; line-height: 1.5; color: var(--moon-muted); }
.join__note b { color: var(--moon); font-weight: 600; }
.join__note a { color: var(--moon); }
.join__msg { font-size: 15px; color: #ffb3a9; min-height: 0; }
.join__msg:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.thanks {
  display: grid; gap: 16px; max-width: 560px; padding: 22px; border-radius: var(--r);
  background: var(--night-2); color: var(--moon); border: 1px solid rgba(155, 168, 192, 0.2);
}
.thanks h3 { color: #fff; font-size: 23px; }
.thanks p { font-size: 15.5px; color: var(--moon); }
.thanks fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.thanks legend { font-weight: 600; font-size: 15.5px; margin-bottom: 8px; color: #fff; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label {
  position: relative; display: inline-flex; align-items: center; font-size: 14.5px; cursor: pointer;
  padding: 8px 13px; border-radius: 999px; border: 1px solid rgba(155, 168, 192, 0.35); color: var(--moon);
}
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips label:has(input:checked) { background: var(--moon); color: var(--night); border-color: var(--moon); }
.chips label:has(input:focus-visible) { outline: 3px solid var(--laser); outline-offset: 2px; }
.btn--ghost { background: transparent; color: var(--moon); border: 1px solid rgba(219, 226, 239, 0.45); padding: 11px 16px; font-size: 15px; }
.btn--ghost:hover { background: rgba(219, 226, 239, 0.08); }
.thanks__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.thanks small { font-size: 13.5px; color: var(--moon-muted); }

/* Sections */
.section { padding-block: 72px; border-top: 1px solid var(--line); }
.section:first-of-type { border-top: 0; }
.section__head { display: grid; gap: 14px; max-width: 760px; margin-bottom: 40px; }
.section__head p { color: var(--muted); font-size: 18.5px; }

/* Problem: scale ruler */
.ruler { display: grid; gap: 14px; }
.ruler__bar { position: relative; height: 72px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.ruler__bar::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 18px;
  background: repeating-linear-gradient(90deg, var(--muted) 0 1px, transparent 1px 10%);
  opacity: .35;
}
.ruler__speck { position: absolute; left: 63%; top: 26px; width: 3px; height: 3px; border-radius: 50%; background: var(--ink); }
.ruler__ring { position: absolute; left: calc(63% - 13px); top: 14px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--laser); }
.ruler__legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font: 500 13.5px/1.4 var(--font-mono); color: var(--muted); }
.ruler__legend b { color: var(--ink); font-weight: 500; }
.problem { display: grid; gap: 36px; }
@media (min-width: 900px) { .problem { grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; } }
.problem p { color: var(--muted); font-size: 18px; }
.problem p + p { margin-top: 14px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.step { display: grid; gap: 12px; align-content: start; padding-top: 18px; border-top: 2px solid var(--ink); }
.step__n { font: 500 13px/1 var(--font-mono); color: var(--laser-ink); letter-spacing: 0.06em; }
.step p { color: var(--muted); }
.tag {
  display: inline-block; font: 500 11.5px/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); vertical-align: 2px; margin-left: 4px;
}

/* Device */
.device { display: grid; gap: 32px; }
@media (min-width: 960px) { .device { grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: start; } }
.figure { margin: 0; display: grid; gap: 10px; min-width: 0; }
.figure__img { background: var(--panel); border-radius: var(--r); padding: clamp(12px, 3vw, 28px); border: 1px solid var(--line); }
.figure figcaption { font: 400 12.5px/1.5 var(--font-mono); color: var(--muted); }
.concept { width: 100%; height: auto; display: block; }
.specs { margin: 0; display: grid; border-top: 1px solid var(--line); }
.specs > div { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 16px; padding-block: 13px; border-bottom: 1px solid var(--line); }
.specs dt { font: 500 13px/1.5 var(--font-mono); color: var(--muted); letter-spacing: 0.02em; }
.specs dd { margin: 0; font-size: 16px; min-width: 0; }
.specs-note { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* Safety */
.safety { display: grid; gap: 32px; }
@media (min-width: 760px) { .safety__list { grid-template-columns: 1fr 1fr; gap: 28px 40px; } }
.safety__list { display: grid; gap: 22px; }
.safety__item { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.safety__item svg { width: 34px; height: 34px; }
.safety__item p { color: var(--muted); margin-top: 4px; }

/* Status */
.status { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.status li { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding-block: 18px; border-top: 1px solid var(--line); }
.status li:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 560px) { .status li { grid-template-columns: 1fr; gap: 6px; } }
.pill { justify-self: start; font: 500 12px/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; border: 1px solid currentColor; height: fit-content; }
.pill--done { color: var(--ok); }
.pill--now { color: var(--laser-ink); }
.pill--next { color: var(--muted); }
.status p { color: var(--muted); }
.status h3 { font-size: 19px; margin-bottom: 4px; }

/* FAQ */
.faq { display: grid; max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative;
  font: 700 19px/1.3 var(--font-display); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font: 400 26px/1 var(--font-mono); color: var(--laser-ink); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 20px; color: var(--muted); max-width: 64ch; }

/* Final CTA */
.final { background: var(--night); color: var(--moon); padding-block: 72px; }
.final .wrap { display: grid; gap: 22px; }
.final h2 { color: #fff; max-width: 18ch; }
.final p.lede { max-width: 38em; font-size: 18px; }

/* Footer */
.foot { background: var(--night); color: var(--moon-muted); border-top: 1px solid rgba(155, 168, 192, 0.14); padding-block: 28px 36px; font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; }
.foot a { color: var(--moon); }
.foot__mail { font-family: var(--font-mono); user-select: all; }

/* Simple text pages (privacy, 404) */
.page { padding-block: 56px 80px; }
.page .wrap { max-width: calc(760px + 48px); display: grid; gap: 18px; }
.page h1 { font-size: clamp(34px, 5vw, 48px); font-weight: 800; }
.page h2 { font-size: 24px; margin-top: 18px; }
.page p, .page li { color: var(--muted); }
.page ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
