/* Intelligence OS landing page.
 *
 * The palette is sampled straight out of the logo: a blue-black ground
 * (#020307), a cool silver mark (#D9DADE), and the blue gradient running
 * through the second glyph (#86CDF7 at the top, #1653E0 at its core,
 * #1C419E at the foot). Type follows the product's design tokens.
 * Dark, minimal, one accent. Infrastructure, not a glowing AI demo.
 */

:root {
  /* Surfaces & ink, keyed to the logo's blue-black and its silver. */
  --paper: #06080D;
  --card: #0D1119;
  --card-2: #131822;
  --ink: #D9DADE;
  --ink-2: #98A0AE;
  --ink-3: #6E7889;
  --rule: #1B2130;
  --rule-2: #2A3346;
  --video: #04060A;
  --video-2: #0E131C;
  --video-3: #1E2635;

  /* Failure red, used only by the waitlist form's error state. */
  --fired: #E27168;
  --fired-bg: #2A1917;
  --fired-line: #4A2723;

  /* The one accent: the logo's blue, in four stops.
     `acc` is the readable-on-dark tint for text and marks; `acc-solid`
     is the logo's core blue, used as a fill under white. */
  --acc: #4F9DF3;
  --acc-hi: #86CDF7;
  --acc-solid: #1653E0;
  --acc-solid-2: #2A6BEA;
  --acc-deep: #1C419E;
  --acc-ink: #FFFFFF;
  --acc-line: #23417A;
  --acc-bg: #0A1424;
  --acc-glow: 79, 157, 243;

  --shadow: 0 1px 3px rgba(0, 0, 0, .5), 0 12px 40px rgba(0, 0, 0, .55);

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: 'Space Grotesk', 'Inter', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --gut: 24px;
  --nav-h: 63px;   /* 62px bar + its 1px rule */
  --max: 1120px;
  --r: 10px;

  color-scheme: dark;
}

/* ── reset ─────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* The film sits on the html element's ground; body stays transparent so it shows. */
html { background: var(--paper); }

body {
  margin: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── background film ───────────────────────────────────────────────── */

.bg-film {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--paper);
  transition: opacity .45s ease;
}
/* Past the hero the film is only visible through the translucent nav, where a
   frozen frame reads as an artefact. Fade it out with the section it belongs to. */
.bg-film.off { opacity: 0; }
.bg-film video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Full strength. Nothing dims the film. */
  opacity: 1;
}

/* The film runs undimmed, so this is no longer a scrim: all that is left is a
   short fade at the very bottom so the hero does not end on a hard cut into
   the first opaque section. Everything above 76% is untouched film. */
.bg-film-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 76%, var(--paper) 100%);
}

img { max-width: 100%; display: block; }
a { color: var(--acc); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

.mono {
  font-family: var(--mono);
  font-size: .84em;
  font-variant-numeric: tabular-nums;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--acc-solid);
  color: var(--acc-ink);
  padding: 10px 16px;
  z-index: 100;
  font-weight: 500;
}
.skip:focus { left: 12px; top: 12px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ── layout primitives ─────────────────────────────────────────────── */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gut);
}

/* Every section below the hero is opaque, so the film is visible only up top. */
section { border-top: 1px solid var(--rule); position: relative; z-index: 1; background: var(--paper); }
section.flush { border-top: 0; }
section.hero { background: transparent; }

.band { padding-block: 82px; }
.band-sm { padding-block: 56px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--rule-2);
  flex: none;
}

.lede {
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.65;
  max-width: 62ch;
}

.head-2 { font-size: clamp(28px, 3.6vw, 40px); max-width: 20ch; }
.head-3 { font-size: 19px; letter-spacing: -.01em; }

.sect-head { margin-bottom: 40px; }
.sect-head .lede { margin-top: 18px; }

/* ── buttons ───────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -.005em;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn svg { flex: none; }

/* The fill carries the logo's own gradient, top-light to core-blue. Shallow
   enough to read as a solid button rather than as decoration. */
.btn-primary {
  background: linear-gradient(180deg, var(--acc-solid-2), var(--acc-solid));
  border-color: var(--acc-solid-2);
  color: var(--acc-ink);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #3D7DEE, #1B5CE6);
  border-color: #3D7DEE;
}

.btn-ghost {
  background: transparent;
  border-color: var(--rule-2);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--acc-line); background: var(--card); }

.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn-lg { height: 50px; padding: 0 26px; font-size: 15.5px; }

/* ── nav ───────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 62px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -.01em;
  margin-right: auto;
}
.brand:hover { text-decoration: none; }
.brand img { width: 26px; height: 26px; border-radius: 6px; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 450;
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }

@media (max-width: 860px) { .nav-links { display: none; } }

/* ── hero ──────────────────────────────────────────────────────────── */

/* The first screen is the film. Copy sits in the bottom-left corner and
   nothing else competes with it. 100svh so mobile browser chrome cannot
   push the CTAs below the fold. */
.hero {
  position: relative;
  /* fills what is left of the first screen under the sticky nav */
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: flex-end;
}
.hero .wrap { position: relative; }

/* Bottom-left: the copy stays on the same left edge as the nav brand. */
.hero-inner { padding-bottom: clamp(52px, 9vh, 92px); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 28px;
  padding: 0 12px 0 10px;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  background: var(--card);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-2);
  letter-spacing: .02em;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acc);
  flex: none;
}

h1 {
  font-size: clamp(40px, 6.6vw, 76px);
  letter-spacing: -.035em;
  line-height: 1.02;
  margin: 22px 0 0;
  max-width: 13ch;
}
h1 .dim { color: var(--ink-3); }

.hero-sub {
  margin-top: 24px;
  font-size: 18.5px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 46ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
  align-items: center;
}
.cta-note {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 16px;
}

.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: .02em;
}
.proof span { display: flex; align-items: center; gap: 8px; }
.proof span::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--rule-2);
}

/* ── the ask panel: the demo ───────────────────────────────────────── */

.panel {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--rule);
  background: var(--card-2);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: .04em;
}
.panel-bar .lights { display: flex; gap: 5px; margin-right: 4px; }
.panel-bar .lights i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--video-3);
  display: block;
}
.panel-bar .right { margin-left: auto; display: flex; align-items: center; gap: 7px; }
.pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--acc);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--acc-glow), .45); }
  70% { box-shadow: 0 0 0 7px rgba(var(--acc-glow), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--acc-glow), 0); }
}

.ask-panel { margin-top: 0; }

.ask {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--rule);
}
.ask .caret {
  font-family: var(--mono);
  color: var(--acc);
  font-size: 15px;
  line-height: 1.55;
  flex: none;
}
.ask q {
  font-size: 17px;
  color: var(--ink);
  quotes: none;
  line-height: 1.55;
}
.cursor {
  display: inline-block;
  width: 8px;
  height: 17px;
  background: var(--acc);
  vertical-align: -3px;
  margin-left: 3px;
  animation: blink 1.15s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.answer { padding: 22px 24px 24px; }
.answer p { font-size: 15.5px; color: var(--ink-2); line-height: 1.65; }
.answer p strong { color: var(--ink); font-weight: 500; }

.ev-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 20px 0 10px;
}

.ev-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ev {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border: 1px solid var(--rule-2);
  border-radius: 6px;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-2);
  transition: border-color .15s ease, color .15s ease;
}
.ev:hover { border-color: var(--acc-line); color: var(--ink); }
.ev .thumb {
  width: 22px;
  height: 16px;
  border-radius: 3px;
  background: linear-gradient(140deg, var(--video-2), var(--video-3));
  border: 1px solid var(--rule-2);
  flex: none;
}

/* ── pillars ───────────────────────────────────────────────────────── */

.grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
}
.cell { background: var(--card); padding: 30px 28px; }
.cell .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: .1em;
  margin-bottom: 16px;
}
.cell h3 { font-size: 18px; margin-bottom: 10px; }
.cell p { font-size: 14.5px; color: var(--ink-2); line-height: 1.65; }

@media (max-width: 760px) { .grid-4 { grid-template-columns: 1fr; } }

/* ── status: today vs production ───────────────────────────────────── */

.status {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
@media (max-width: 800px) { .status { grid-template-columns: 1fr; } }

.stat-card {
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--card);
  padding: 30px 28px;
}
.stat-card.next { border-color: var(--acc-line); background: linear-gradient(180deg, var(--acc-bg), var(--card) 55%); }

.stat-top {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.stat-card.next .stat-top { color: var(--acc); }

.stat-card h3 { font-size: 21px; margin-bottom: 10px; }
.stat-card > p { font-size: 14.5px; color: var(--ink-2); line-height: 1.65; }

.list { list-style: none; margin: 20px 0 0; padding: 0; }
.list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink-2);
  padding: 7px 0;
  line-height: 1.55;
}
/* Shipped reads silver: it exists, it is unremarkable. What is still coming
   takes the accent, because that is the thing the waitlist buys. */
.list li svg { margin-top: 4px; color: var(--ink); }
.list.pending li svg { color: var(--acc); }

.stat-card .btn { margin-top: 24px; }

/* ── waitlist ──────────────────────────────────────────────────────── */

.waitlist { text-align: center; }
.waitlist h2 { font-size: clamp(30px, 4.4vw, 46px); margin-inline: auto; max-width: 18ch; }
.waitlist .lede { margin: 20px auto 0; text-align: center; }

.form {
  display: flex;
  gap: 10px;
  max-width: 470px;
  margin: 34px auto 0;
}
.form input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 50px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--rule-2);
  background: var(--card);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  transition: border-color .15s ease;
}
.form input[type="email"]::placeholder { color: var(--ink-3); }
.form input[type="email"]:focus {
  outline: none;
  border-color: var(--acc);
  box-shadow: 0 0 0 3px rgba(var(--acc-glow), .16);
}
.form .btn:disabled { opacity: .55; cursor: progress; }

@media (max-width: 520px) {
  .form { flex-direction: column; }
  .form .btn { width: 100%; }
}

/* Swallows the waitlist POST response so the visitor is not navigated to
   LaunchList. Not display:none, because a hidden iframe is less reliably
   loaded; parked out of flow at zero size instead. */
.sink {
  position: absolute;
  width: 0;
  height: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.form-msg {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  min-height: 20px;
  color: var(--ink-3);
}
.form-msg.ok { color: var(--acc); }
.form-msg.err { color: var(--fired); }

.alt {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.alt p { font-size: 14px; color: var(--ink-2); }

/* ── footer ────────────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--rule);
  padding-block: 44px;
  position: relative;
  z-index: 1;
  background: var(--paper);
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  align-items: center;
  justify-content: space-between;
}
footer .brand { margin-right: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; }
.foot-links a { color: var(--ink-3); font-size: 13.5px; }
.foot-links a:hover { color: var(--ink-2); text-decoration: none; }
.foot-legal {
  width: 100%;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  line-height: 1.7;
}

/* ── reveal on scroll ──────────────────────────────────────────────── */

.rev { opacity: 0; transform: translateY(14px); }
.rev.in {
  opacity: 1;
  transform: none;
  transition: opacity .55s cubic-bezier(.2, .6, .3, 1), transform .55s cubic-bezier(.2, .6, .3, 1);
}
@media (prefers-reduced-motion: reduce) {
  .rev { opacity: 1; transform: none; }
}
