@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --bg: #05080a;
  --ink: #eaf4ee;
  --muted: #8a9a93;
  --line: rgba(160, 255, 210, 0.16);
  --green: #2bff88;
  --green-deep: #12c463;
  --mint: #5dffc4;
  --danger: #ff7a6b;
  --sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --pad: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: minmax(0, 1fr);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Keeps the copy readable where the point cloud passes behind it. */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 0% 55%, rgba(5, 8, 10, 0.92) 0%, rgba(5, 8, 10, 0.55) 38%, transparent 62%),
    linear-gradient(to bottom, rgba(5, 8, 10, 0.7), transparent 22%, transparent 78%, rgba(5, 8, 10, 0.85));
}

.frame {
  position: fixed;
  inset: calc(var(--pad) * 0.5);
  z-index: 1;
  pointer-events: none;
}
.frame i {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
}
.frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.top, .hero, .bottom, .telemetry {
  position: relative;
  z-index: 2;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--pad) * 1.1) var(--pad) 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  width: 62px;
  height: auto;
  filter: drop-shadow(0 0 12px rgba(43, 255, 136, 0.45));
}
.brand-name {
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.34em;
}

.status {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(43, 255, 136, 0.6);
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(43, 255, 136, 0.55); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(43, 255, 136, 0); }
}

.hero {
  align-self: center;
  max-width: 660px;
  padding: clamp(32px, 6vh, 72px) var(--pad);
}

.eyebrow {
  margin: 0 0 22px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--green);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  margin-right: 14px;
  vertical-align: middle;
  background: var(--green);
}

h1 {
  margin: 0;
  font-size: clamp(40px, 6.6vw, 84px);
  line-height: 1.0;
  font-weight: 500;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.accent {
  background: linear-gradient(92deg, var(--green-deep), var(--mint) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 26px 0 0;
  max-width: 30em;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
  color: #b9c7c0;
}

.signup { margin-top: 38px; max-width: 480px; }

.field {
  display: flex;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 18, 15, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field:focus-within {
  border-color: rgba(43, 255, 136, 0.7);
  box-shadow: 0 0 0 4px rgba(43, 255, 136, 0.12), 0 0 40px rgba(43, 255, 136, 0.12);
}

.field input {
  flex: 1;
  min-width: 0;
  padding: 0 18px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.field input::placeholder { color: #5f6f68; }

.field button {
  flex: none;
  padding: 13px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #03130a;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}
.field button:hover { background: var(--mint); box-shadow: 0 0 28px rgba(43, 255, 136, 0.45); }
.field button:active { transform: scale(0.97); }
.field button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.field button:disabled { opacity: 0.6; cursor: progress; }

.note {
  margin: 14px 0 0 20px;
  min-height: 1.5em;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.signup.is-done .note { color: var(--green); }
.signup.is-error .note { color: var(--danger); }
.signup.is-done .field { border-color: rgba(43, 255, 136, 0.5); }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.telemetry {
  position: fixed;
  right: var(--pad);
  bottom: calc(var(--pad) * 1.9);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #5f7068;
  text-align: right;
}
.telemetry p { margin: 0 0 5px; }
.telemetry b {
  display: inline-block;
  min-width: 8.5ch;
  font-weight: 400;
  color: #a9e9c9;
}

.bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 0 var(--pad) calc(var(--pad) * 1.1);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.bottom p { margin: 0; }
.bottom a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); }
.bottom a:hover { color: var(--green); border-color: var(--green); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Entrance */
.top, .eyebrow, h1, .lede, .signup, .bottom, .telemetry {
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.eyebrow { animation-delay: 0.15s; }
h1 { animation-delay: 0.25s; }
.lede { animation-delay: 0.4s; }
.signup { animation-delay: 0.55s; }
.bottom, .telemetry { animation-delay: 0.8s; }
/* The footer only fades: sliding it up from below the window made the page 14px too tall. */
.bottom { animation-name: fade; }
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 820px) {
  .vignette {
    background:
      linear-gradient(to bottom, rgba(5, 8, 10, 0.94) 0%, rgba(5, 8, 10, 0.8) 52%, rgba(5, 8, 10, 0.15) 74%, rgba(5, 8, 10, 0.8) 100%);
  }
  .hero { align-self: start; padding-top: clamp(36px, 8vh, 72px); }
  .telemetry { display: none; }
  .brand-mark { width: 50px; }
  .brand-name { font-size: 17px; }
}

/* Short phones: tighten the copy so the robot keeps some room under the form. */
@media (max-width: 820px) and (max-height: 720px) {
  .top { padding-top: calc(var(--pad) * 0.9); }
  .hero { padding-top: 26px; padding-bottom: 12px; }
  .eyebrow { margin-bottom: 14px; }
  h1 { font-size: 34px; }
  .lede { margin-top: 16px; font-size: 15px; }
  .signup { margin-top: 24px; }
  .note { margin-top: 10px; }
}

@media (max-width: 420px) {
  .status { font-size: 10px; letter-spacing: 0.16em; }
  .field button { padding: 13px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.back { color: var(--green); }

/* Text pages (privacy) */
.note a, .status a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); }
.note a:hover, .status a:hover { color: var(--green); border-color: var(--green); }
.doc {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 720px;
  padding: clamp(40px, 8vh, 88px) var(--pad) 72px;
}
.doc h1 { font-size: clamp(34px, 5vw, 56px); animation: none; }
.doc .eyebrow { animation: none; }
.doc-date { margin: 14px 0 36px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--muted); }
.doc h2 { margin: 44px 0 12px; font-size: 21px; font-weight: 500; letter-spacing: -0.01em; }
.doc p, .doc li { font-size: 16px; line-height: 1.65; color: #b9c7c0; }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 14px; padding-left: 1.2em; }
.doc li { margin-bottom: 4px; }
.doc li::marker { color: var(--green-deep); }
.doc strong { color: var(--ink); font-weight: 500; }
.doc a { color: var(--green); text-underline-offset: 3px; }
