:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-hover: #eef2f6;
  --fg: #0f1b2d;
  --muted: #4b5a6e;
  --subtle: #7a8799;
  --border: rgba(15, 27, 45, 0.1);
  --accent: #0f766e;
  --accent-fg: #f8fafc;
  --brand: #0d9488;
  --hero-wash: rgba(13, 148, 136, 0.08);
  --shadow: 0 1px 2px rgba(15, 27, 45, 0.05), 0 8px 24px rgba(15, 27, 45, 0.06);
  --radius: 1rem;
}

.dark {
  --bg: #0b1018;
  --surface: #141b26;
  --surface-hover: #1c2533;
  --fg: #eef2f7;
  --muted: #a3b0c2;
  --subtle: #7d8a9c;
  --border: rgba(238, 242, 247, 0.1);
  --accent: #2dd4bf;
  --accent-fg: #042f2e;
  --brand: #2dd4bf;
  --hero-wash: rgba(45, 212, 191, 0.1);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 28px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.logo-sm {
  height: 2.5rem;
  width: auto;
  max-width: 12.5rem;
  object-fit: contain;
  object-position: left center;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.25rem;
}

.nav-desktop a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

.nav-desktop a:hover {
  color: var(--fg);
}

.nav-mobile-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle,
.menu-btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  font-size: 1rem;
}

.dark .icon-moon,
html:not(.dark) .icon-sun {
  display: none;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.mobile-nav a {
  padding: 0.75rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.mobile-nav a:hover {
  background: var(--surface-hover);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.15rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: var(--surface);
  color: var(--fg);
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.btn-secondary:hover {
  background: var(--surface-hover);
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-glow {
  position: absolute;
  inset: 0 0 auto 0;
  height: 20rem;
  background: radial-gradient(ellipse 70% 55% at 50% 0%, var(--hero-wash), transparent 72%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 40rem;
  margin: 0 auto;
  padding: 3.5rem 1rem 4rem;
  text-align: center;
}

.logo-hero {
  width: 100%;
  max-width: 28rem;
  height: auto;
  margin: 0 auto 1.75rem;
  display: block;
  object-fit: contain;
}

.eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

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

h1 {
  margin: 0.75rem 0 0;
  font-size: clamp(1.75rem, 4vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
}

h2 {
  margin: 0.75rem 0 0;
  font-size: clamp(1.45rem, 3vw, 1.75rem);
  letter-spacing: -0.02em;
  font-weight: 600;
}

h3 {
  margin: 1rem 0 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.lead,
.sub {
  margin: 1rem auto 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.section {
  padding: 4rem 1rem;
}

.section-alt {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}

.narrow {
  max-width: 42rem;
  margin: 0 auto;
}

.wide {
  max-width: 64rem;
  margin: 0 auto;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 0.25rem);
  box-shadow: var(--shadow);
}

.mission-card {
  margin-top: 1.75rem;
  padding: 1.5rem;
}

.mission-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.cards {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.program-card {
  padding: 1.35rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.program-card:hover {
  transform: translateY(-2px);
}

.icon-box {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.program-card p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.involved-card {
  overflow: hidden;
}

.involved-top {
  padding: 1.75rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.involved-top .sub {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.involved-grid {
  display: grid;
}

.involved-grid > div {
  padding: 1.5rem;
}

.involved-grid > div + div {
  border-top: 1px solid var(--border);
}

.label {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.email {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--brand);
  font-weight: 600;
  font-size: 1.05rem;
}

.email:hover {
  text-decoration: underline;
}

.domain {
  margin: 0.5rem 0 0;
  font-weight: 600;
  font-size: 1.05rem;
}

.hint {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.footer-name {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-tag,
.footer-copy {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-copy {
  color: var(--subtle);
  font-size: 0.8rem;
}

@media (min-width: 640px) {
  .header-inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .hero-inner {
    padding: 5rem 1.5rem;
  }

  .section {
    padding: 5rem 1.5rem;
  }

  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }

  .mission-card {
    padding: 2rem;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .involved-grid {
    grid-template-columns: 1fr 1fr;
  }

  .involved-grid > div + div {
    border-top: 0;
    border-left: 1px solid var(--border);
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    align-items: center;
  }
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }

  .nav-mobile-actions {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }

  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .program-card {
    transition: none;
  }
}
