@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ─── RESET & BASE ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0a0f1a;
  --navy-mid: #111827;
  --navy-light: #1e293b;
  --gold: #eda600;
  --gold-light: rgba(237, 166, 0, 0.12);
  --gold-glow: rgba(237, 166, 0, 0.25);
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border: rgba(255,255,255,0.08);
  --card-bg: rgba(255,255,255,0.03);
  --card-border: rgba(255,255,255,0.06);
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color 0.2s, opacity 0.2s; }
a:hover { opacity: 0.85; }
a.text-dim { color: var(--text-dim); }
a.text-dim:hover { color: var(--gold); opacity: 1; }

/* ─── LAYOUT ────────────────────────────────────── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 800px; }

.section {
  padding: 96px 0;
  position: relative;
}
.section--sm { padding: 64px 0; }
.section--dark { background: var(--navy); }
.section--mid { background: var(--navy-mid); }
.section--light { background: var(--navy-light); }

/* ─── TYPOGRAPHY ────────────────────────────────── */
h1, h2, h3, h4 {
  color: var(--white);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.15;
}
h1 { font-size: 52px; }
h2 { font-size: 36px; }
h3 { font-size: 22px; }
h4 { font-size: 17px; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--gold);
}

.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-center { text-align: center; }

/* ─── NAV ───────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 72px;
  display: flex;
  align-items: center;
  background: rgba(10, 15, 26, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 19px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.3px;
}
.nav-logo img {
  height: 32px;
  width: auto;
}
.nav-logo .logo-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  display: inline-block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover, .nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.06);
  opacity: 1;
}
.nav-cta {
  margin-left: 12px;
  padding: 9px 22px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  background: var(--gold);
  border: none;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 2px 12px var(--gold-glow);
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--gold-glow);
  opacity: 1;
}
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.15s;
}
.hamburger:hover { background: rgba(255,255,255,0.08); }
.hamburger svg { display: block; }
.mobile-menu { display: none; }

/* ─── BUTTONS ───────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 4px 20px var(--gold-glow);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px var(--gold-glow);
  opacity: 1;
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.3);
  opacity: 1;
}

/* ─── CARDS ─────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 32px;
  transition: border-color 0.3s, background 0.3s;
}
.card:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 24px; height: 24px; color: var(--gold); }

/* ─── GRIDS ─────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ─── HERO ──────────────────────────────────────── */
.hero {
  padding: 160px 0 120px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(237,166,0,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero h1 { margin-bottom: 24px; }
.hero p { font-size: 19px; color: var(--text-muted); max-width: 600px; line-height: 1.7; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stagger > * {
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}
.hero-stagger > *:nth-child(1) { animation-delay: 0.1s; }
.hero-stagger > *:nth-child(2) { animation-delay: 0.25s; }
.hero-stagger > *:nth-child(3) { animation-delay: 0.4s; }
.hero-stagger > *:nth-child(4) { animation-delay: 0.55s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── STATS BAR ─────────────────────────────────── */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 32px 20px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat-value {
  font-size: 36px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -1px;
  margin-bottom: 4px;
}
.stat-label { font-size: 14px; color: var(--text-muted); font-weight: 500; }

/* ─── STEPS ─────────────────────────────────────── */
.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.step-num {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gold-light);
  color: var(--gold);
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-content h4 { margin-bottom: 6px; }
.step-content p { color: var(--text-muted); font-size: 15px; }

/* ─── TEAM ──────────────────────────────────────── */
.team-card {
  text-align: center;
}
.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--card-border);
  margin: 0 auto 16px;
  object-fit: cover;
  background: var(--navy-light);
}
.team-name { font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.team-title { font-size: 14px; color: var(--gold); font-weight: 600; margin-bottom: 12px; }
.team-bio { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ─── AFFILIATIONS ──────────────────────────────── */
.affiliations {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  opacity: 0.5;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s;
}
.affiliations:hover { opacity: 0.7; }
.affiliations img { height: 40px; width: auto; }

/* ─── TIMELINE ──────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  margin-bottom: 40px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--navy);
}
.timeline-era {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}
.timeline-text { font-size: 15px; color: var(--text-muted); line-height: 1.7; }

/* ─── FOOTER ────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  background: var(--navy);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-link {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--white); opacity: 1; }
.footer-desc { font-size: 13px; color: var(--text-dim); line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
}
.footer-bottom a { color: var(--gold); }

/* ─── CONTACT FORM ──────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  font-size: 15px;
  color: var(--white);
  font-family: var(--sans);
  transition: border-color 0.2s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-light);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-dim); }
.form-textarea { min-height: 120px; resize: vertical; }

/* ─── GOV BADGE ─────────────────────────────────── */
.gov-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--gold-light);
  border: 1px solid rgba(237,166,0,0.2);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
}

/* ─── SCROLL REVEAL ─────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.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; }

/* ─── RESPONSIVE: TABLET (≤768px) ────────────────── */
@media (max-width: 768px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  .section { padding: 64px 0; }
  .hero { padding: 120px 0 80px; }
  .hero p { font-size: 16px; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-bar .container { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .hamburger { display: block; }
  .mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(10, 15, 26, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    animation: menuIn 0.2s ease;
    z-index: 99;
  }
  @keyframes menuIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .mobile-menu .nav-link {
    padding: 14px 16px;
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    border-radius: 8px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .mobile-menu .nav-link:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    opacity: 1;
  }
  .mobile-menu .nav-cta {
    display: block;
    text-align: center;
    margin: 8px 0 0;
    padding: 14px 20px;
    font-size: 15px;
    border-radius: 10px;
    min-height: 44px;
  }

  /* HiddenBuild card: stack vertically */
  .product-card { flex-direction: column !important; text-align: center; gap: 20px !important; padding: 28px !important; }
  .product-card .product-icon { display: none; }

  /* Gov badges wrap nicely */
  .gov-badge { font-size: 12px; padding: 6px 12px; }

  /* Team photos slightly smaller on tablet */
  .team-photo { width: 100px; height: 100px; }

  /* Touch targets */
  .btn { min-height: 44px; }
  .form-input, .form-textarea, .form-select { min-height: 44px; font-size: 16px; }

  /* Container padding */
  .container { padding: 0 20px; }
}

/* ─── RESPONSIVE: MOBILE (≤480px) ────────────────── */
@media (max-width: 480px) {
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  h3 { font-size: 18px; }
  .section { padding: 48px 0; }
  .hero { padding: 100px 0 56px; }
  .hero p { font-size: 15px; max-width: 100%; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .stats-bar .container { grid-template-columns: 1fr; }
  .stat { padding: 20px 16px; }
  .stat-value { font-size: 28px; }
  .card { padding: 20px; border-radius: 12px; }
  .card-icon { width: 40px; height: 40px; border-radius: 10px; margin-bottom: 16px; }
  .card-icon svg { width: 20px; height: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .affiliations { gap: 24px; }
  .affiliations img { height: 28px; }

  /* Section label smaller */
  .section-label { font-size: 11px; letter-spacing: 1px; }

  /* Steps tighter */
  .step { gap: 14px; }
  .step-num { width: 40px; height: 40px; font-size: 16px; border-radius: 10px; }
  .step-content p { font-size: 14px; }

  /* Team */
  .team-photo { width: 88px; height: 88px; }
  .team-name { font-size: 16px; }
  .team-bio { font-size: 13px; }

  /* Footer compact */
  .footer { padding: 40px 0 24px; }
  .footer-bottom { font-size: 12px; }

  /* Contact form */
  .form-textarea { min-height: 100px; }

  /* Gov badges stack */
  .gov-badge { font-size: 11px; padding: 6px 10px; }
}

/* ─── REDUCED MOTION ────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-stagger > * { opacity: 1; animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
