/* ============ Tokens ============ */
:root {
  --navy: #0B1F3A;
  --navy-dark: #071627;
  --steel: #1F3864;
  --amber: #D97706;
  --amber-light: #F59E0B;
  --red: #B91C1C;
  --orange: #C2410C;
  --slate: #475569;
  --bg: #F5F6F8;
  --card: #FFFFFF;
  --white: #FFFFFF;
  --border: #E2E8F0;

  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(11, 31, 58, 0.08);
  --shadow-md: 0 8px 24px rgba(11, 31, 58, 0.12);
  --shadow-lg: 0 16px 48px rgba(11, 31, 58, 0.18);

  --transition: 200ms ease;
  --nav-height: 72px;
}

/* ============ Fonts (self-hosted, no third-party requests) ============ */
@font-face {
  font-family: 'Space Grotesk';
  src: url('/assets/fonts/space-grotesk-variable.woff2') format('woff2-variations'),
       url('/assets/fonts/space-grotesk-variable.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-variable.woff2') format('woff2-variations'),
       url('/assets/fonts/inter-variable.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-mono-variable.woff2') format('woff2-variations'),
       url('/assets/fonts/jetbrains-mono-variable.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* ============ 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: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate);
  background: var(--card);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0 0 var(--space-2);
  line-height: 1.2;
}
p { margin: 0 0 var(--space-2); }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-3);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--amber);
  color: var(--navy);
  padding: var(--space-2);
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus {
  left: var(--space-2);
  top: var(--space-2);
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

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

/* ============ Nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 31, 58, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}
.nav__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
  letter-spacing: 0.02em;
}
.nav__logo span { color: var(--amber); }
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.nav__links a:not(.btn) {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
}
.nav__links a:not(.btn):hover { color: var(--white); }
.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  padding: var(--space-1);
}

@media (max-width: 768px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed;
    inset: var(--nav-height) 0 0 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-4) var(--space-3);
    gap: var(--space-3);
    transform: translateX(100%);
    transition: transform var(--transition);
  }
  .nav__links.is-open { transform: translateX(0); }
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
  min-height: 44px;
}
.btn--sm { padding: 0.5rem 1rem; font-size: 0.875rem; min-height: 36px; }
.btn--lg { padding: 1rem 2rem; font-size: 1rem; }
.btn--primary {
  background: var(--amber);
  color: var(--navy);
}
.btn--primary:hover { background: var(--amber-light); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }

.section--white .btn--ghost,
.section--bg .btn--ghost {
  border-color: var(--steel);
  color: var(--steel);
}
.section--white .btn--ghost:hover,
.section--bg .btn--ghost:hover {
  background: var(--steel);
  color: var(--white);
}

/* ============ Icons ============ */
.icon { stroke: currentColor; flex-shrink: 0; }
.icon--sm { width: 16px; height: 16px; }

/* ============ Hero ============ */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: var(--space-7) 0 var(--space-6);
  text-align: center;
}
.hero__inner { max-width: 780px; margin-inline: auto; }
.eyebrow {
  font-family: var(--font-mono);
  color: var(--amber);
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.hero__title {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}
.hero__subtitle {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.125rem;
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: var(--space-4);
}
.badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}
.hero__ctas--center { margin-bottom: 0; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  max-width: 640px;
  margin: 0 auto;
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.stat { margin: 0; }
.stat__value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--amber);
}
.stat__label {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .stat-row { grid-template-columns: 1fr; gap: var(--space-2); }
}

/* ============ Sections ============ */
.section { padding: var(--space-7) 0; }
.section--white { background: var(--card); }
.section--bg { background: var(--bg); }
.section--navy { background: var(--navy); }
.section--cta-final { padding: var(--space-6) 0; }

.section__title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.section__title--center { text-align: center; max-width: 720px; margin-inline: auto; margin-bottom: var(--space-5); }
.section__title--light { color: var(--white); }
.section__subtitle {
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  margin: 0 auto var(--space-4);
  font-size: 1.1rem;
}
.section__subtitle--dark {
  color: var(--slate);
  margin-bottom: var(--space-5);
}
.section__footnote {
  text-align: center;
  margin-top: var(--space-4);
  font-style: italic;
  color: var(--steel);
}
.section__footnote--light {
  color: rgba(255, 255, 255, 0.6);
}

.grid { display: grid; gap: var(--space-3); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: 1fr; }
}

/* ============ Framework badges ============ */
.framework-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.framework-badge {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
}

/* ============ Footer ============ */
.footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.7);
  padding-top: var(--space-6);
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
}
.footer__brand p { color: rgba(255, 255, 255, 0.55); font-size: 0.9rem; margin-top: var(--space-2); }
.footer h4 { color: var(--white); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--space-2); }
.footer__links, .footer__contact { display: flex; flex-direction: column; gap: var(--space-1); }
.footer a { transition: color var(--transition); }
.footer__links a:hover, .footer__contact a:hover { color: var(--white); }
.footer__contact a { display: inline-flex; align-items: center; gap: 0.4rem; }
.footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: var(--space-3);
  font-size: 0.85rem;
}
@media (max-width: 768px) {
  .footer__inner { grid-template-columns: 1fr; }
}
