:root {
  --bg: #06070a;
  --surface: #0d0f14;
  --text: #f4f5f7;
  --text-muted: #9aa0af;
  --text-faint: #5b6170;
  --accent: #ff9142;
  --accent-2: #ffd166;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* Ambient background */

#globe {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  z-index: -2;
  opacity: 0.5;
  pointer-events: none;
}

.glow-a {
  width: 620px;
  height: 620px;
  top: -220px;
  left: -160px;
  background: radial-gradient(circle, var(--accent), transparent 70%);
}

.glow-b {
  width: 560px;
  height: 560px;
  bottom: -260px;
  right: -180px;
  background: radial-gradient(circle, var(--accent-2), transparent 70%);
}


/* Topbar */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 40px;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 16px 2px var(--accent);
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.topbar-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.topbar-link:hover {
  color: var(--text);
}

.topbar-link:focus-visible,
.cta-button:focus-visible,
.waitlist-form input:focus-visible,
.waitlist-form button:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

main {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
  flex: 1;
}

/* Hero */

.hero {
  text-align: center;
  padding: 96px 16px 72px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-faint);
  margin: 0 0 28px;
}

h1 {
  font-size: 68px;
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 26px;
  letter-spacing: -0.03em;
}

.brand-highlight {
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  display: block;
  margin-top: 0.28em;
  font-size: 0.48em;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.lede {
  max-width: 600px;
  margin: 0 auto 44px;
  font-size: 18px;
  color: var(--text-muted);
  font-weight: 400;
}

.hero .fine-print {
  margin-top: 18px;
}

.cta-button {
  display: inline-block;
  padding: 15px 32px;
  border-radius: 999px;
  background: var(--text);
  color: #08090c;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.cta-button:hover {
  transform: translateY(-1px);
}

.cta-button:active {
  transform: translateY(0);
}

.waitlist-form {
  display: flex;
  gap: 6px;
  max-width: 460px;
  margin: 0 auto;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.waitlist-form:focus-within {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 4px rgba(255, 145, 66, 0.12);
}

.waitlist-form input {
  flex: 1;
  padding: 12px 18px;
  border: none;
  background: transparent;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  min-width: 0;
}

.waitlist-form input::placeholder {
  color: var(--text-faint);
}

.waitlist-form input:focus {
  outline: none;
}

.waitlist-form button {
  padding: 12px 22px;
  border: none;
  border-radius: 999px;
  background: var(--text);
  color: #08090c;
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.waitlist-form button:hover {
  transform: translateY(-1px);
}

.waitlist-form button:active {
  transform: translateY(0);
}

.waitlist-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.waitlist-form button.is-subscribed:disabled {
  opacity: 1;
  background: #7ee0b8;
  color: #06301c;
}

.waitlist-form input:disabled {
  opacity: 0.6;
}

.form-status {
  min-height: 20px;
  margin: 18px 0 0;
  font-size: 14px;
  font-weight: 500;
}

.form-status[data-state="ok"] {
  color: #7ee0b8;
}

.form-status[data-state="error"] {
  color: #ff9a8f;
}

.fine-print {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--text-faint);
}

/* Section rhythm: whitespace only, no dividing rules between sections */

.loop,
.findings,
.agents,
.flagship,
.trust,
.waitlist-section {
  padding: 64px 16px;
}

.waitlist-section {
  text-align: center;
}

.waitlist-section h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.waitlist-section .lede {
  margin-bottom: 36px;
}

.loop h2 {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 48px;
  color: var(--text-muted);
}

.loop h2 span {
  color: var(--text-faint);
  padding: 0 4px;
}

.loop-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.loop-list.six {
  grid-template-columns: repeat(6, 1fr);
}

.loop-list li {
  padding: 0 20px;
  border-left: 1px solid var(--border);
}

.loop-list li:first-child {
  border-left: none;
  padding-left: 0;
}

.loop-index {
  display: block;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 28px;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.loop-step {
  display: block;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 10px;
}

.loop-list p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* Section headings and eyebrows shared across findings, flagship, agents, trust */

.agents h2,
.findings h2,
.flagship h2,
.trust h2 {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--text-muted);
}

.agents .eyebrow,
.flagship .eyebrow,
.trust .eyebrow {
  text-align: center;
  margin: 0 0 10px;
}

.flagship .lede {
  margin-bottom: 8px;
}

/* Findings and trust rows: a short label on the left, detail on the right.
   Fixed columns instead of space-between, because a long label such as
   "The dispatch that never arrived" would otherwise push the right-hand
   content into a narrow, ragged column that lands in a different place on
   every row. */

.finding-rows,
.trust-rows {
  max-width: 640px;
  margin: 40px auto 0;
}

.finding-row,
.trust-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(0, 2fr);
  align-items: baseline;
  gap: 24px;
  padding: 18px 4px;
  border-top: 1px solid var(--border);
  font-size: 15px;
}

.finding-row:last-child,
.trust-row:last-child {
  border-bottom: 1px solid var(--border);
}

.finding-row strong,
.trust-row strong {
  font-weight: 600;
}

.trust-row span {
  color: var(--text-muted);
  text-align: left;
  font-size: 14px;
  line-height: 1.55;
}

.finding-sources {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.finding-sources span {
  position: relative;
  padding-left: 14px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.finding-sources span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-strong);
}

.finding-sources span:first-child::before {
  background: var(--accent);
}

@media (max-width: 860px) {
  .finding-row,
  .trust-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* Flagship scenario */

.flagship-steps {
  list-style: none;
  counter-reset: flagship;
  margin: 40px auto 0;
  padding: 0;
  max-width: 640px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.flagship-steps li {
  counter-increment: flagship;
  position: relative;
  padding: 18px 24px 18px 56px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.flagship-steps li:first-child {
  border-top: none;
}

.flagship-steps li strong {
  color: var(--text);
  font-weight: 600;
}

.flagship-steps li::before {
  content: counter(flagship);
  position: absolute;
  left: 20px;
  top: 18px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 13px;
  color: var(--text);
  background: linear-gradient(135deg, rgba(255, 145, 66, 0.35), rgba(255, 209, 102, 0.2));
  border: 1px solid var(--border-strong);
}

/* Footer */

.site-footer {
  text-align: center;
  padding: 48px 16px 64px;
  font-size: 12px;
  color: var(--text-faint);
}

/* Scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: calc(var(--i, 0) * 70ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 860px) {
  h1 {
    font-size: 44px;
  }
  .loop-list,
  .loop-list.six {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .loop-list li {
    border-left: none;
    padding-left: 16px;
    border-left: 2px solid var(--border);
  }
  .loop-list li:first-child {
    padding-left: 16px;
    border-left: 2px solid var(--border);
  }
}

@media (max-width: 520px) {
  .topbar {
    padding: 20px 20px;
    flex-wrap: wrap;
    gap: 16px;
  }
  .topbar-nav {
    gap: 16px;
  }
  main {
    padding: 0 20px;
  }
  h1 {
    font-size: 34px;
  }
  .waitlist-form {
    flex-direction: column;
    border-radius: 20px;
  }
  .waitlist-form button {
    border-radius: 14px;
  }
}

/* Teammates pass one work card along a shared track. */
.team-section { padding: 16px 0 48px; text-align: center; }
.team-section .eyebrow { margin-bottom: 12px; }
.team-section h2 { margin: 0 0 12px; font-size: 30px; letter-spacing: -.03em; }
.team-intro, .team-summary { color: var(--text-muted); font-size: 15px; }
.team-summary { margin: 26px 0 0; line-height: 1.8; }
.handoff-panel { max-width: 780px; margin: 32px auto 0; border: 1px solid var(--border-strong); border-radius: 24px; background: linear-gradient(135deg, rgba(255,145,66,.045), rgba(13,15,20,.9) 45%, rgba(158,224,190,.035)); overflow: hidden; }
.handoff-scene { position: relative; padding-top: 26px; }
.robot-team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: relative; }
.robot-teammate { color: var(--robot-color); min-width: 0; }
.mini-robot { display: block; width: 124px; height: auto; margin: 0 auto 56px; overflow: visible; }
.robot-teammate h3 { color: var(--text); font-size: 14px; margin: 0 0 6px; font-weight: 600; }
.robot-teammate p { color: var(--text-muted); font-size: 12px; margin: 0; padding: 0 6px; }
.handoff-track { position: absolute; left: 16.6667%; right: 16.6667%; top: 182px; height: 1px; background: linear-gradient(90deg, #ffb36d55, #9fc8ff55, #9ee0be55); }
.handoff-track::before, .handoff-track::after { content: ''; position: absolute; width: 5px; height: 5px; top: -2px; border-radius: 50%; background: var(--text-muted); }
.handoff-track::after { right: 0; }
.work-card { position: absolute; z-index: 2; top: 162px; left: 16.6667%; width: 52px; height: 40px; transform: translateX(-50%); border-radius: 8px; border: 1px solid #f1b877; background: #27201a; box-shadow: 0 0 24px #ffb36d20; padding: 9px; animation: pass-work 9s ease-in-out infinite; }
.card-dot { display: block; width: 5px; height: 5px; border-radius: 50%; background: #ffcb8a; margin-bottom: 5px; }
.card-line { display: block; height: 2px; border-radius: 2px; background: #ffcb8a88; margin-bottom: 3px; }
.card-line.short { width: 65%; }
.robot-body { animation: robot-bob 3s ease-in-out infinite; animation-delay: var(--robot-delay); }
.robot-eyes { transform-box: fill-box; transform-origin: center; animation: robot-blink 6s infinite; animation-delay: var(--robot-delay); }
.robot-arm { transform-box: fill-box; transform-origin: top center; animation: robot-pass 9s ease-in-out infinite; animation-delay: var(--robot-delay); }
.robot-arm-left { animation-direction: reverse; }
.handoff-caption { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--border); margin-top: 28px; padding: 14px 22px; text-align: left; color: var(--text-muted); font-size: 11px; }
.animation-toggle { font: inherit; color: var(--text-muted); padding: 6px 10px; border: 1px solid var(--border-strong); border-radius: 20px; background: transparent; cursor: pointer; white-space: nowrap; }
.animation-toggle:hover { color: var(--text); border-color: var(--text-muted); }
.animation-toggle:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.handoff-panel.is-paused *, .handoff-panel.is-paused *::before, .handoff-panel.is-paused *::after { animation-play-state: paused; }
@keyframes pass-work {
  0%, 12% { left: 16.6667%; opacity: 1; }
  32%, 46% { left: 50%; opacity: 1; }
  66%, 84% { left: 83.3333%; opacity: 1; }
  90% { left: 83.3333%; opacity: 0; }
  91% { left: 16.6667%; opacity: 0; }
  100% { left: 16.6667%; opacity: 1; }
}
@keyframes robot-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes robot-blink { 0%, 43%, 47%, 100% { transform: scaleY(1); } 45% { transform: scaleY(.15); } }
@keyframes robot-pass { 0%, 10%, 36%, 100% { transform: rotate(0deg); } 20%, 28% { transform: rotate(-28deg); } }
@media (max-width: 520px) {
  .hero { padding: 56px 0 48px; }
  .team-section h2 { font-size: 25px; }
  .team-section .eyebrow { font-size: 9px; letter-spacing: .1em; }
  .team-intro, .team-summary { font-size: 13px; }
  .mini-robot { width: 78px; margin-bottom: 52px; }
  .handoff-panel { border-radius: 18px; }
  .robot-teammate h3 { font-size: 10px; }
  .robot-teammate p { font-size: 10px; }
  .handoff-track { top: 137px; }
  .work-card { top: 120px; width: 42px; height: 34px; padding: 6px; }
  .handoff-caption { padding: 12px; font-size: 10px; gap: 8px; }
  .animation-toggle { padding: 6px 8px; }
  .waitlist-section { padding: 32px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .handoff-panel * { animation: none !important; }
  .work-card { left: 50%; }
  .animation-toggle { display: none; }
}
