:root {
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --ink: #15233b;
  --ink-soft: #4a5a72;
  --brand: #1c75bc;
  --brand-dark: #155d96;
  --accent: #7ab800;
  --line: #e4eaf2;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 12px 30px -12px rgba(21, 35, 59, 0.18);
  --shadow-soft: 0 6px 18px -10px rgba(21, 35, 59, 0.2);
  --maxw: 1120px;
  --space: clamp(3.5rem, 8vw, 6.5rem);
  --header-h: 104px;
}

/* Offset anchor jumps so the sticky header doesn't overlap section tops */
section[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--brand); text-decoration: none; }

h1, h2, h3 { font-family: "Poppins", "Inter", system-ui, sans-serif; font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 2px solid var(--brand);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow-soft);
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn-ghost { background: transparent; color: var(--brand); box-shadow: none; }
.btn-ghost:hover { background: rgba(31, 111, 235, 0.08); color: var(--brand-dark); }
.btn-light { background: #fff; color: var(--brand-dark); border-color: #fff; }
.btn-light:hover { background: #eef3ff; border-color: #eef3ff; }
.btn-small { padding: 0.55rem 1.1rem; font-size: 0.95rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 104px; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 88px; width: auto; }
.brand-mark { font-size: 1.3rem; }
.brand-accent { color: var(--brand); }

.nav { display: flex; align-items: center; }
.nav-menu { list-style: none; display: flex; align-items: center; gap: 1.5rem; margin: 0; padding: 0; }
.nav-menu a { color: var(--ink-soft); font-weight: 600; font-size: 0.98rem; }
.nav-menu a:hover { color: var(--brand); }
.nav-menu a.btn { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }
.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 { padding: clamp(2.5rem, 6vw, 5rem) 0 var(--space); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 600; color: var(--brand); margin: 0 0 0.75rem; }
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 38ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.75rem; }
.hero-actions-center { justify-content: center; }
.hero-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  object-position: center top;
  aspect-ratio: 1 / 1;
  background: var(--bg-alt);
}

/* Stats */
.stats { padding-bottom: var(--space); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.stat {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
}
.stat-num { display: block; font-family: "Poppins", "Inter", system-ui, sans-serif; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 600; color: var(--brand); letter-spacing: -0.03em; }
.stat-label { color: var(--ink-soft); font-size: 0.98rem; }

/* Sections */
.section { padding: var(--space) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin: 0 auto 2.5rem; text-align: center; }
.section-intro { color: var(--ink-soft); font-size: 1.08rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.split-copy p { color: var(--ink-soft); }
.split-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  object-position: center top;
  aspect-ratio: 1 / 1;
  background: var(--bg-alt);
}
.split-reverse .split-media { order: 2; }
.split-reverse .split-media img { aspect-ratio: 1 / 1; }

.ways { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.6rem; }
.ways li { padding-left: 2rem; position: relative; color: var(--ink-soft); }
.ways li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.2rem;
  height: 1.2rem;
  background: url("cropped-favicon-192x192.png") center / contain no-repeat;
}
.ways strong { color: var(--ink); }

/* Facts */
.facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.facts li {
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
  font-weight: 500;
  box-shadow: var(--shadow-soft);
}

/* Active navigation link */
.nav-menu a[aria-current="page"]:not(.btn) { color: var(--brand); }

/* Subpage hero band */
.page-hero {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.page-hero h1 { margin: 0 0 0.75rem; }
.page-hero p { color: var(--ink-soft); font-size: 1.12rem; max-width: 60ch; margin: 0; }

/* Sponsors */
.sponsors-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}
.sponsor {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 130px;
  padding: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  color: var(--ink-soft);
}
/* Normalize wildly different source logos into one consistent footprint */
.sponsor img {
  max-height: 64px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.sponsor-placeholder { font-weight: 600; color: var(--brand); }

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  padding: var(--space) 0;
}
.cta-inner { text-align: center; max-width: 620px; margin: 0 auto; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, 0.9); font-size: 1.08rem; }
.signature { margin-top: 1.75rem; font-style: italic; font-weight: 600; color: #fff; }

/* Footer */
.site-footer { background: var(--ink); color: #c8d2e0; padding: 2.5rem 0; }
.footer-inner { display: flex; flex-direction: column; gap: 1.25rem; align-items: center; text-align: center; }
.footer-brand { display: inline-flex; align-items: center; }
.footer-logo { height: 96px; width: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: center; }
.footer-nav a { color: #c8d2e0; font-weight: 600; font-size: 0.95rem; }
.footer-nav a:hover { color: #fff; }
.footer-legal { font-size: 0.92rem; color: #c8d2e0; max-width: 56ch; margin: 0; }
.footer-note { font-size: 0.85rem; color: #93a1b5; max-width: 52ch; margin: 0; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 420px; }
  .split { grid-template-columns: 1fr; }
  .split-reverse .split-media { order: -1; }
  .stats-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 104px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 0.5rem 1.25rem 1rem;
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { width: 100%; }
  .nav-menu a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .nav-menu a.btn { margin-top: 0.75rem; border-bottom: 0; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}
