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

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --bg:          #010101;
  --surface:     #0c0c0c;
  --surface-2:   #131313;
  --surface-3:   #1b1b1b;
  --line:        rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.14);
  --text:        #ffffff;
  --text-2:      rgba(255,255,255,0.55);
  --text-3:      rgba(255,255,255,0.28);
  --accent:      #2dd4bf;
  --accent-dim:  rgba(45,212,191,0.08);
  --accent-glow: rgba(45,212,191,0.12);
  --warning-dim:    rgba(217,148,63,0.10);
  --warning-border: rgba(217,148,63,0.25);
  --warning-color:  #d9943f;
  --header-height: 4.5rem;
  --pad-x: 2rem;
}

/* ── BASE ────────────────────────────────────────────────── */
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Helvetica Neue', Helvetica, Arial, system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(45,212,191,0.25); }

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

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ── HEADER ─────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(1,1,1,0.88);
  border-color: var(--line);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.header-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: inline-flex; align-items: center; gap: 0.5rem; }
.brand-icon { width: 1.4rem; height: 1.4rem; object-fit: contain; }
.brand-name {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  gap: 2rem;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--text-2);
}
.nav a { transition: color 0.2s; }
.nav a:hover { color: var(--text); }

.header-right { display: flex; align-items: center; gap: 1rem; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  border-radius: 0;
  border: none;
  cursor: pointer;
  transition: opacity 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

/* Primary — white fill → transparent outline on hover (Anduril .secondary) */
.button-primary {
  background: var(--text);
  color: #010101;
  opacity: 1;
}
.button-primary:hover {
  background: transparent;
  color: var(--text);
  outline: 1px solid var(--text);
}

/* Ghost — border-based */
.button-ghost {
  background: transparent;
  color: var(--text-2);
  outline: 1px solid var(--line-strong);
}
.button-ghost:hover { color: var(--text); outline-color: rgba(255,255,255,0.35); }

/* Text CTA with arrow — opacity-based (Anduril .CtaButton) */
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text);
  opacity: 0.6;
  transition: opacity 0.25s ease, gap 0.2s ease;
  cursor: pointer;
}
.cta-link:hover { opacity: 1; gap: 0.65rem; }

.button-sm { padding: 0.38rem 0.7rem; font-size: 0.72rem; }
.button-lg { padding: 0.7rem 1.4rem; font-size: 0.82rem; }

/* ── MOBILE NAV TOGGLE ───────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  padding: 8px 6px;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 20px; height: 1px;
  background: var(--text);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── MOBILE DRAWER ───────────────────────────────────────── */
.nav-drawer {
  display: none;
  flex-direction: column;
  background: #000;
  border-bottom: 1px solid var(--line);
  padding: 0.5rem var(--pad-x) 1.5rem;
  position: fixed;
  top: var(--header-height); left: 0; right: 0;
  z-index: 99;
}
.nav-drawer.open { display: flex; }

.nav-drawer-link {
  display: block;
  padding: 0.85rem 0;
  color: var(--text-2);
  font-size: 0.75rem;
  border-bottom: 1px solid var(--line);
  transition: color 0.15s;
}
.nav-drawer-link:hover { color: var(--text); }

.nav-drawer-cta {
  margin-top: 1rem;
  background: var(--text);
  color: #000;
  padding: 0.6rem 1rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.2s;
}
.nav-drawer-cta:hover { background: transparent; color: var(--text); outline: 1px solid var(--text); }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

/* dot grid — very faint */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* bottom split — headline left, copy+cta right */
.hero-bottom {
  margin-top: auto;
  position: relative;
  z-index: 1;
  padding: 0 var(--pad-x) 3.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4rem;
}

.hero-headline h1 {
  font-size: clamp(3rem, 6.5vw, 6rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--text);
  max-width: 14ch;
}

.hero-meta {
  max-width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  padding-bottom: 0.25rem;
}

.hero-meta p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.7;
}

/* ── STATS STRIP ─────────────────────────────────────────── */
.stats-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 3rem var(--pad-x);
}

.stats-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stat-item {
  padding: 0 3rem;
  border-right: 1px solid var(--line);
}
.stat-item:first-child { padding-left: 0; }
.stat-item:last-child  { border-right: none; padding-right: 0; }

.stat-number {
  font-size: clamp(2.5rem, 4.5vw, 3.8rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.6rem;
}
.stat-number span { color: var(--accent); }

.stat-label {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
  opacity: 0.6;
}

/* ── FEATURE SECTIONS ────────────────────────────────────── */
.section { padding: 6rem var(--pad-x); }

.section-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.feature-section { border-top: 1px solid var(--line); }

.section-label {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.55;
  margin-bottom: 3.5rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.feature-grid-rev .feature-copy  { order: 2; }
.feature-grid-rev .feature-visual { order: 1; }

.feature-copy h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.copy-text {
  color: var(--text-2);
  font-size: 0.875rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 34rem;
}

/* ── DEMO WINDOW ─────────────────────────────────────────── */
.demo-window {
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.8);
}

.demo-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-3);
}

.demo-dot { width: 8px; height: 8px; border-radius: 50%; background: #252525; }

.demo-title {
  margin-left: 0.4rem;
  font-size: 0.65rem;
  color: var(--text-3);
  letter-spacing: 0.06em;
}

.demo-body {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.query-box {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line-strong);
  background: var(--surface-3);
  font-size: 0.82rem;
  color: var(--text);
}

.query-prefix {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  flex-shrink: 0;
  opacity: 0.8;
}

.query-text::after {
  content: '';
  display: inline-block;
  width: 1.5px; height: 0.78rem;
  margin-left: 1px;
  background: var(--accent);
  vertical-align: middle;
  animation: blink 0.9s steps(1) infinite;
}

.result-card {
  padding: 0.9rem;
  border: 1px solid var(--line-strong);
  background: var(--surface-3);
}

.result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  font-size: 0.58rem;
  font-weight: 600;
  background: var(--surface-3);
  color: var(--text-2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
}

.result-badge-alert {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: rgba(45,212,191,0.22);
}

.badge-warn {
  background: var(--warning-dim);
  color: var(--warning-color);
  border: 1px solid var(--warning-border);
}

.result-time { font-size: 0.68rem; color: var(--text-3); }

.result-title {
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.result-sub { font-size: 0.72rem; color: var(--text-2); }

/* ── ALERT ROWS ──────────────────────────────────────────── */
.alert-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--text-2);
}
.alert-row:last-child { border-bottom: none; }
.alert-row-muted { opacity: 0.28; }
.alert-time { margin-left: auto; flex-shrink: 0; }

/* ── COMPATIBILITY ───────────────────────────────────────── */
.compat-panel { padding: 0.25rem 0; }

.compat-kicker {
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

.compat-cloud { display: flex; flex-wrap: wrap; gap: 0.45rem; }

.compat-pill {
  display: inline-flex;
  align-items: center;
  height: 2rem;
  padding: 0 0.85rem;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 0.75rem;
  transition: border-color 0.15s, color 0.15s;
}
.compat-pill:hover { border-color: rgba(255,255,255,0.26); color: var(--text); }

.compat-pill-strong {
  border-color: rgba(45,212,191,0.3);
  color: var(--accent);
  background: var(--accent-dim);
}

.compat-pill-soft { border-style: dashed; }

/* ── CTA SECTION ─────────────────────────────────────────── */
.cta-section {
  padding: 8rem var(--pad-x);
  border-top: 1px solid var(--line);
}

.cta-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4rem;
}

.cta-inner h2 {
  font-size: clamp(2.5rem, 4.5vw, 4.2rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.0;
  max-width: 18ch;
}

.cta-right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  max-width: 260px;
}

.cta-right p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.7;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem var(--pad-x);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--text-3);
  letter-spacing: 0.02em;
}

.footer-link { color: var(--text-3); transition: color 0.15s; }
.footer-link:hover { color: var(--text-2); }

.footer-mission {
  font-size: 0.72rem;
  color: var(--text-3);
}

/* ── ANIMATIONS ──────────────────────────────────────────── */
@keyframes blink { 50% { opacity: 0; } }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 2.5rem; }
  .hero-meta { max-width: 100%; }
  .feature-grid { grid-template-columns: 1fr; gap: 3rem; }
  .feature-grid-rev .feature-copy,
  .feature-grid-rev .feature-visual { order: unset; }
  .section { padding: 4rem var(--pad-x); }
  .cta-inner { flex-direction: column; align-items: flex-start; gap: 2.5rem; }
  .cta-right { max-width: 100%; }
}

@media (max-width: 640px) {
  :root { --pad-x: 1.25rem; --header-height: 4rem; }

  .nav { display: none; }
  .nav-toggle { display: flex; }

  .hero-headline h1 { font-size: 2.4rem; }
  .hero-eyebrow-right { display: none; }

  .stats-grid { grid-template-columns: 1fr; gap: 0; }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 1.5rem 0 !important;
  }
  .stat-item:last-child { border-bottom: none; }

  .compat-cloud { flex-direction: column; }
  .compat-pill { width: 100%; justify-content: center; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 0.5rem; }

  .section { padding: 3rem var(--pad-x); }
}
