/* ─── Variables ──────────────────────────────────────────────────────────── */
:root {
  --bg: #f1f5f9;
  --surface: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --accent: #2563eb;
  --gold: #d97706;
  --dark: #0f172a;
  --dark-mid: #1e293b;
  --border: #e2e8f0;
  --font:
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --nav-h: 64px;
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
}

/* ─── Nav ────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background-color: var(--dark);
  border-bottom: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  gap: 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav-brand-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition:
    color 0.15s,
    background-color 0.15s;
}
.nav-links a:hover,
.nav-links a:focus-visible {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}
.nav-links .nav-cta a {
  background-color: var(--gold);
  color: var(--dark);
  font-weight: 700;
}
.nav-links .nav-cta a:hover {
  background-color: #b45309;
  color: #fff;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition:
    transform 0.2s,
    opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  background-color: var(--dark);
  background-image:
    radial-gradient(
      ellipse 80% 60% at 50% 120%,
      rgba(37, 99, 235, 0.18) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 40% 40% at 80% -10%,
      rgba(217, 119, 6, 0.12) 0%,
      transparent 60%
    );
  color: #fff;
  text-align: center;
  padding: 5rem 2rem 4.5rem;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero-subtitle {
  max-width: 540px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.65;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.hero-stat dt {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.hero-stat dd {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.3rem;
}

/* ─── Main ───────────────────────────────────────────────────────────────── */
main {
  min-height: 60vh;
  padding: 1em;
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  background-color: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3.5rem 2rem 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
  max-width: 280px;
}
.footer-brand strong {
  display: block;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.footer-brand-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-col h3 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.footer-col a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}
.footer-col a:hover {
  color: #fff;
}
.footer-col p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
}
.footer-col p + p {
  margin-top: 0.4rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ─── Footer sources ─────────────────────────────────────────────────────── */
.footer-sources {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-sources-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 2rem;
  margin-bottom: 1rem;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav {
    padding: 0 1.25rem;
  }
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background-color: var(--dark-mid);
    border-bottom: 2px solid var(--gold);
    padding: 0.75rem 1rem;
  }
  .nav-links.is-open {
    display: flex;
  }
  .nav-links a {
    padding: 0.65rem 0.75rem;
  }

  .hero {
    padding: 3.5rem 1.25rem 3rem;
  }
  .hero-stats {
    gap: 2rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 1.25rem 2rem;
  }
  .footer-bottom {
    padding: 1rem 1.25rem;
  }
}
