:root {
  --bg: #0c0e13;
  --bg-elev: #161a22;
  --bg-card: #12151c;
  --border: rgba(255, 255, 255, 0.09);
  --text: #e7eaf0;
  --muted: #98a1b2;
  --accent: #5b9bff;
  --accent-deep: #2d72d2;
  --maxw: 1080px;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

/* ── Ambient background video (decorative; the real engine, dimmed to a hint) ─
   Tuning knobs live here — adjust these four to taste:               */
.bg-stage {
  --bg-video-opacity: 0.38;   /* overall presence (0 = gone, 1 = full)   */
  --bg-video-blur: 0px;       /* softness                                */
  --bg-video-dim: 0.66;       /* brightness multiplier                   */
  --bg-wash: 0.52;            /* dark overlay alpha for text legibility   */
  position: fixed;
  inset: 0;
  z-index: -2;                /* behind all content + the hero glow (-1)  */
  overflow: hidden;
  background: var(--bg);      /* base + fallback before the video paints  */
}
.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: var(--bg-video-opacity);
  filter: blur(var(--bg-video-blur)) brightness(var(--bg-video-dim)) saturate(0.95);
}
/* Dark wash + soft top vignette so copy stays legible over the motion. */
.bg-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 0%, transparent, rgba(12, 14, 19, calc(var(--bg-wash) * 0.55)) 65%),
    linear-gradient(180deg, rgba(12, 14, 19, calc(var(--bg-wash) * 0.5)), rgba(12, 14, 19, var(--bg-wash)));
}
@media (prefers-reduced-motion: reduce) {
  .bg-video { display: none; }   /* honor reduced-motion — dark theme stands alone */
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }

/* ── Header ───────────────────────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-name { font-weight: 650; font-size: 1.15rem; letter-spacing: -0.01em; }
.nav-launch {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.nav-launch:hover { color: var(--text); }

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 84px 24px 72px;
  text-align: center;
  position: relative;
}
/* Subtle seismic-section glow behind the hero. */
.hero::before {
  content: "";
  position: absolute;
  inset: -10% 0 auto 0;
  height: 460px;
  background: radial-gradient(60% 100% at 50% 0%, rgba(91, 155, 255, 0.16), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 18px;
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.9rem);
  font-weight: 700;
}
.lede {
  max-width: 660px;
  margin: 24px auto 0;
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  color: var(--muted);
}
.lede strong { color: var(--text); font-weight: 600; }
.hero-note { margin-top: 22px; font-size: 0.86rem; color: var(--muted); }

/* ── Buttons ──────────────────────────────────────────── */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 34px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  color: #fff;
  box-shadow: 0 6px 22px rgba(45, 114, 210, 0.35);
}
.btn-primary:hover { box-shadow: 0 9px 28px rgba(45, 114, 210, 0.45); }
.btn-secondary {
  background: var(--bg-elev);
  border-color: var(--border);
  color: var(--text);
}
.btn-secondary:hover { border-color: rgba(255, 255, 255, 0.22); }
/* Disabled CTA (e.g. the sample download until the Blob link is wired). */
.btn-disabled {
  background: var(--bg-elev);
  border-color: var(--border);
  color: var(--muted);
  opacity: 0.6;
  cursor: not-allowed;
}
.btn-disabled:hover { transform: none; }
.btn-disabled small {
  margin-left: 6px;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  opacity: 0.85;
}

/* ── Panels ───────────────────────────────────────────── */
.panel {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 24px;
  border-top: 1px solid var(--border);
}
.panel h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
.panel-lede { max-width: 680px; margin: 16px 0 0; color: var(--muted); font-size: 1.08rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: 0.96rem; }
.card em { color: var(--text); font-style: normal; font-weight: 600; }

/* ── Steps ────────────────────────────────────────────── */
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 14px; }
.steps li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.step-n {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--accent);
  background: rgba(91, 155, 255, 0.12);
  border: 1px solid rgba(91, 155, 255, 0.3);
}
.steps h3 { font-size: 1.08rem; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* ── CTA band ─────────────────────────────────────────── */
.cta-band {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px 24px 88px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.cta-band h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-bottom: 8px; }

/* ── Footer ───────────────────────────────────────────── */
.site-footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 24px 56px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; margin: 0 0 6px; }
.footer-note { max-width: 520px; margin: 0 0 14px; }
.footer-legal { margin: 0; opacity: 0.7; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 720px) {
  .cards { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  .hero h1 br { display: none; }
}

/* ── Desktop-only launch gating ───────────────────────────────────────────
   Fathom needs a desktop browser + WebGPU, so on touch devices (phones/tablets,
   any orientation) the Launch CTAs are disabled and a note explains why. */
.desktop-only-note { display: none; }
@media (hover: none) and (pointer: coarse) {
  .launch-link { pointer-events: none; cursor: not-allowed; }
  .btn-primary.launch-link {
    background: var(--bg-elev);
    border-color: var(--border);
    color: var(--muted);
    box-shadow: none;
  }
  .nav-launch.launch-link { opacity: 0.4; }
  .desktop-only-note {
    display: block;
    margin-top: 18px;
    font-size: 0.9rem;
    color: var(--accent);
  }
}

/* ── Legal pages (terms, privacy) ─────────────────────────────────────── */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.legal .updated { color: var(--muted); font-size: 0.9rem; margin: 12px 0 32px; }
.legal .lead { color: var(--muted); font-size: 1.08rem; }
.legal h2 { font-size: 1.18rem; margin: 36px 0 10px; }
.legal p { margin: 12px 0; color: var(--text); }
.legal ul { margin: 12px 0; padding-left: 22px; }
.legal li { margin: 7px 0; color: var(--text); }
.legal a { color: var(--accent); }
.legal code {
  font-size: 0.92em;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 5px;
}
/* Bracketed fill-ins for the lawyer to finalize — easy to spot. */
.legal .placeholder { color: var(--accent); font-style: italic; }

.footer-links { margin: 0 0 10px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
