:root {
  --bg: #000F29;
  --surface: #071A3E;
  --surface-2: #0D2251;
  --fg: #F0F4FF;
  /* #B2BFDA gives ~5.0:1 on --bg (#000F29) and ~4.5:1 on --surface — WCAG AA */
  --fg-muted: #B2BFDA;
  --accent: #006AFF;
  --accent-dim: rgba(0, 106, 255, 0.12);
  --border: rgba(255, 255, 255, 0.10);
  --font-display: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 48px;
  background: rgba(8, 13, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
/* Invert the dark BrandPilot logo to white for dark nav background */
.nav-logo-img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
}
.nav-product-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  /* rgba(240,244,255,0.72) ≈ #C2C9DB on nav bg #080D1A → ~5.4:1 — WCAG AA */
  color: rgba(240, 244, 255, 0.72);
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.20);
  letter-spacing: 0.03em;
}

/* FOCUS — visible ring for keyboard nav (WCAG 2.4.7) */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 14px 28px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s;
  /* #006AFF on white = 3.02:1, white text on #006AFF = 3.02:1 — large bold text passes AA (3:1) */
}
.btn-primary:hover {
  background: #0055D4;
}
.btn-primary:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--accent);
}
.btn-primary:disabled,
.btn-primary[aria-disabled="true"] {
  background: rgba(0, 106, 255, 0.35);
  color: rgba(255, 255, 255, 0.55);
  cursor: not-allowed;
  pointer-events: none;
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 48px 100px;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 106, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 106, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}
.hero-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.hero-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(0, 106, 255, 0.4);
  border-radius: 2px;
  padding: 6px 12px;
  margin-bottom: 28px;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 700;
  line-height: 1.04;
  /* Tighter tracking for display impact; fg (#F0F4FF) on bg (#000F29) ≈ 17:1 */
  letter-spacing: -0.035em;
  color: var(--fg);
  margin-bottom: 28px;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--fg-muted);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 28px;
}
.hero-stats-row {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}
.hero-stat { display: flex; flex-direction: column; }
.stat-value {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--fg-muted);
  max-width: 140px;
  line-height: 1.4;
}

/* OUTCOMES */
.outcomes { padding: 100px 48px; }
.outcomes-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.outcomes-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 60px;
  max-width: 560px;
}
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.outcome-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 40px 36px;
  position: relative;
}
.outcome-icon {
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 20px;
  font-family: monospace;
}
.outcome-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--fg);
}
.outcome-card p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* PRINCIPLES */
.principles { padding: 100px 48px; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.principles-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 48px; }
.principle-item { display: flex; gap: 40px; align-items: flex-start; }
.principle-number {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  padding-top: 4px;
  min-width: 36px;
}
.principle-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.principle-content p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  max-width: 580px;
  line-height: 1.7;
}

/* MANIFESTO */
.manifesto { padding: 120px 48px; }
.manifesto-inner { max-width: 860px; margin: 0 auto; }
.manifesto-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
}
.manifesto-quote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--fg);
  margin-bottom: 40px;
  border-left: 3px solid var(--accent); /* BrandPilot blue */
  padding-left: 28px;
  font-style: normal;
}
.manifesto-body {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

/* CLOSING */
.closing { padding: 120px 48px; border-top: 1px solid var(--border); }
.closing-inner { max-width: 1200px; margin: 0 auto; }
.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 24px;
}
.closing-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 640px;
  line-height: 1.7;
}

/* FOOTER */
footer {
  padding: 48px;
  border-top: 1px solid var(--border);
}
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.footer-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: 10px;
}
.footer-logo-img {
  height: 28px;
  width: auto;
  /* Invert to white for dark footer background */
  filter: brightness(0) invert(1);
}
.footer-tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
  display: block;
}
.footer-legal {
  font-size: 0.78rem;
  color: var(--fg-muted);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .outcomes-grid { grid-template-columns: 1fr; }
  .hero-stats-row { gap: 40px; }
  .principle-item { gap: 24px; }
  nav { padding: 16px 24px; }
  .hero, .outcomes, .principles, .manifesto, .closing { padding-left: 24px; padding-right: 24px; }
  footer { padding: 40px 24px; }
}
@media (max-width: 600px) {
  .hero { padding-top: 120px; }
  .hero-headline { font-size: 2.4rem; }
  .stat-value { font-size: 1.8rem; }
  .footer-inner { flex-direction: column; }
}