/* ========================================
   BASE.CSS — Shared design system for all pages
   Extracted from inline <style> blocks (L3.6)
   ======================================== */

/* ========================================
   DESIGN SYSTEM
   ======================================== */

:root {
  --navy-deep: #011040;
  --navy-dark: #011d5e;
  --navy: #022a8e;
  --blue: #0884ed;
  --blue-bright: #0090ff;
  --blue-glow: rgba(8,132,237,0.35);
  --white: #ffffff;
  --off-white: #f7f8fb;
  --text-primary: #0d1117;
  --text-body: #3b4252;
  --text-muted: #6b7280;
  --border-light: #e2e8f0;
  --font-display: 'DM Serif Display', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 6px 24px rgba(0,0,0,0.06);
  --shadow-card-hover: 0 8px 40px rgba(8, 132, 237, 0.12), 0 2px 8px rgba(0,0,0,0.06);
  --shadow-glow: 0 0 40px rgba(8, 132, 237, 0.25);
  --transition-smooth: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-spring: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ========================================
   SKIP LINK
   ======================================== */

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--navy);
  color: var(--white);
  padding: 8px 16px;
  z-index: 10000;
  font-family: var(--font-body);
  font-size: 14px;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* ========================================
   RESET & BASE
   ======================================== */

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ========================================
   LAYOUT UTILITIES
   ======================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad { padding: 96px 0; }
.text-center { text-align: center; }

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; }
h1 { font-size: 44px; line-height: 1.08; color: var(--white); letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; line-height: 1.3; }
@media (min-width: 768px) { h1 { font-size: 56px; } }

.highlight { color: #5eb8ff; }

.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
  display: inline-block;
  font-family: var(--font-body);
}
.eyebrow-white { color: rgba(255,255,255,0.6); }

.section-heading {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 400;
  line-height: 1.12;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
@media (min-width: 768px) { .section-heading { font-size: 46px; } }
.section-heading-white { color: var(--white); }
.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 52px;
  line-height: 1.75;
}

/* ========================================
   GRAIN OVERLAY
   ======================================== */

.grain::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* ========================================
   SCROLL REVEAL
   ======================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ========================================
   HERO ANIMATIONS
   ======================================== */

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-animate {
  opacity: 0;
  animation: heroFadeUp 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.hero-animate-1 { animation-delay: 0.15s; }
.hero-animate-2 { animation-delay: 0.3s; }
.hero-animate-3 { animation-delay: 0.45s; }
.hero-animate-4 { animation-delay: 0.6s; }
.hero-animate-5 { animation-delay: 0.75s; }

/* ========================================
   CTA GLOW PULSE
   ======================================== */

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 2px 12px var(--blue-glow); }
  50% { box-shadow: 0 4px 24px var(--blue-glow), 0 0 40px rgba(8, 132, 237, 0.1); }
}
.btn-glow { animation: glowPulse 3s ease-in-out infinite; }

/* ========================================
   WAVE DIVIDERS
   ======================================== */

.wave-divider {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.wave-divider svg {
  display: block;
  width: 100%;
  height: 48px;
}
@media (min-width: 768px) {
  .wave-divider svg { height: 64px; }
}
.wave-divider.flip { transform: scaleY(-1); }

/* ========================================
   ACCENT LINE
   ======================================== */

.accent-line {
  width: 60px;
  height: 4px;
  background: var(--blue);
  margin: 18px auto 24px;
  border-radius: 2px;
}
.accent-line-left {
  margin-left: 0;
  margin-right: auto;
}
.accent-line-light { background: #5eb8ff; }

/* ========================================
   BUTTONS
   ======================================== */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-smooth);
  box-shadow: 0 2px 12px var(--blue-glow);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.03em;
  text-decoration: none;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.btn-primary:hover::before { transform: translateX(100%); }
.btn-primary:hover {
  background: #0672d0;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px var(--blue-glow);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-smooth);
  letter-spacing: 0.03em;
  text-decoration: none;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.5);
}

/* ========================================
   NAV
   ======================================== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  background: rgba(1,16,64,0.95);
  backdrop-filter: blur(12px);
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img { height: 42px; }
.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}
.nav-cta-btn {
  padding: 10px 24px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.25s, box-shadow 0.25s;
}
.nav-cta-btn:hover {
  background: var(--blue-bright);
  box-shadow: 0 4px 16px var(--blue-glow);
}
.nav-mobile {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.75rem;
  cursor: pointer;
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown .arrow { font-size: 0.65em; margin-left: 2px; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  min-width: 220px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s;
}
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  color: var(--text-primary) !important;
  padding: 10px 16px !important;
  border-radius: 6px;
  font-size: 0.9rem !important;
}
.dropdown-menu a:hover {
  background: var(--off-white) !important;
  color: var(--blue) !important;
}

/* Mobile nav overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(1,16,64,0.97);
  z-index: 1001;
  flex-direction: column;
  align-items: center;
  padding-top: 80px;
  overflow-y: auto;
  gap: 0;
}
.mobile-nav-overlay.active { display: flex; }
.mobile-nav-overlay > a,
.mobile-nav-overlay > button.btn-primary {
  color: var(--white);
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 600;
  padding: 14px 0;
  width: 260px;
  text-align: center;
  justify-content: center;
}
.mobile-nav-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}
.mobile-dropdown {
  width: 260px;
  text-align: center;
}
.mobile-dropdown-toggle {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 600;
  padding: 14px 0;
  width: 100%;
  cursor: pointer;
  font-family: var(--font-body);
}
.mobile-dropdown-toggle .mobile-arrow {
  display: inline-block;
  font-size: 0.7rem;
  margin-left: 6px;
  transition: transform 0.25s ease;
}
.mobile-dropdown.open .mobile-arrow {
  transform: rotate(180deg);
}
.mobile-dropdown-links {
  display: none;
  flex-direction: column;
  gap: 0;
  padding-bottom: 8px;
}
.mobile-dropdown.open .mobile-dropdown-links {
  display: flex;
}
.mobile-dropdown-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 10px 0;
}
.mobile-dropdown-links a:hover {
  color: var(--white);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  background: var(--navy-deep);
  padding: 64px 0 32px;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.88rem;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 32px;
  text-align: center;
}
.footer-logo { text-align: center; margin-bottom: 12px; }
.footer-logo img { height: 52px; margin-left: auto; margin-right: auto; }
.footer-quote {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 20px;
  font-style: italic;
  line-height: 1.65;
}
.footer-disclaimer {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  text-align: center;
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}

/* ========================================
   RESPONSIVE — NAV + FOOTER
   ======================================== */

@media (max-width: 899px) {
  .nav-links, .nav-cta-btn { display: none; }
  .nav-mobile { display: block; }
}

@media (max-width: 768px) {
  .section-heading { font-size: 36px; }
  .section-pad { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ========================================
   REDUCED MOTION
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
