:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --ink: #131622;
  --muted: #5f677a;
  --primary: #1d4ed8;
  --primary-dark: #1e3a8a;
  --accent: #0f766e;
  --border: #e3e6ef;
  --shadow: 0 20px 60px rgba(16, 24, 40, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  scroll-behavior: smooth;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(29, 78, 216, 0.3);
  outline-offset: 2px;
}

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

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--primary);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  transition: top 0.2s ease;
  z-index: 100;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 50;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav {
  display: flex;
  gap: 20px;
  font-weight: 500;
  color: var(--muted);
  align-items: center;
}

.site-nav a {
  padding: 6px 0;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 600;
}

.hero {
  padding: 90px 0 80px;
  background: radial-gradient(circle at top right, #eaf0ff, transparent 55%),
    var(--bg);
}

.hero-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin: 12px 0 16px;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 16px;
}

h3 {
  margin: 8px 0;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-badges span {
  background: #eef2ff;
  color: var(--primary-dark);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.button {
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}

.button.nav-cta {
  padding: 10px 18px;
  background: #eef2ff;
  border-color: #c7d2fe;
  color: var(--primary-dark);
}

.button.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
}

.button.primary:hover {
  background: var(--primary-dark);
}

.button.ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}

.hero-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 24px;
}

.hero-card-top p {
  margin: 0;
  color: var(--muted);
}

.stats {
  display: grid;
  gap: 12px;
}

.stats strong {
  display: block;
  font-size: 1.1rem;
}

.stats span {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-logo {
  display: flex;
  justify-content: flex-start;
}

.hero-logo img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
}

.section {
  padding: 80px 0;
  background: var(--bg);
}

.section.muted {
  background: #eef1f7;
}

.section.partners {
  background: #f5f7fb;
}

.section-lead {
  color: var(--muted);
  font-weight: 600;
}

.split {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--surface);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.panel {
  position: relative;
  overflow: hidden;
}

.membership-form {
  display: grid;
  gap: 16px;
}

.membership-form label {
  display: grid;
  gap: 8px;
  font-weight: 500;
  color: var(--muted);
}

.membership-form input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f9fafc;
  font-size: 0.95rem;
}

.form-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.grid-2 {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.membership-form label.inline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.membership-form label.inline input {
  margin: 0;
}

.inline-group {
  display: grid;
  gap: 10px;
  font-weight: 600;
  color: var(--ink);
}

.inline-group span {
  color: var(--muted);
  font-weight: 600;
}

.donate-grid {
  margin-top: 32px;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.highlight {
  background: linear-gradient(135deg, #ffffff, #f1f5ff);
}

.mono {
  font-family: "SF Mono", "Fira Mono", monospace;
  font-weight: 600;
}

.qr {
  display: grid;
  place-items: center;
  text-align: center;
  align-content: start;
}

.qr-image {
  width: 160px;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 6px;
  margin-bottom: 12px;
  object-fit: contain;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

.social-grid {
  display: grid;
  gap: 12px;
  font-weight: 600;
}

.social-grid a {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  width: fit-content;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.social-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #eff2f9;
  border: 1px solid var(--border);
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: #1f2937;
}

.highlight-text {
  background: #f0f9ff;
  padding: 16px;
  border-left: 4px solid var(--primary);
  border-radius: 12px;
}

.logo-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow);
}

.logo-image {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 2px solid var(--border);
  object-fit: cover;
  background: #fff;
  margin: 0 auto 16px;
  display: block;
}

.cards {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.cards ul {
  padding-left: 18px;
  color: var(--muted);
}

.article {
  max-width: 760px;
}

.quote {
  padding: 16px 20px;
  border-left: 4px solid var(--accent);
  background: #f7faf9;
  border-radius: 12px;
}

.site-footer {
  padding: 24px 0 32px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-link {
  display: inline-flex;
  font-weight: 600;
  color: var(--primary-dark);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.footer-credit {
  margin: 0 0 6px;
  color: var(--muted);
}

.footer-credit a {
  color: var(--primary-dark);
  font-weight: 600;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--ink);
}

.footer-contact a {
  color: var(--primary-dark);
  font-weight: 600;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-social-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: #eff2f9;
  border: 1px solid var(--border);
}

.footer-social-icon svg {
  width: 14px;
  height: 14px;
  fill: #1f2937;
}

.partners-grid {
  margin-top: 28px;
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.partners-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.partners-carousel {
  margin-top: 28px;
  overflow-x: hidden;
  overflow-y: hidden;
  padding-bottom: 12px;
}

.partners-track {
  display: flex;
  gap: 22px;
  width: max-content;
  will-change: transform;
}

.partner-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 22px;
  display: grid;
  place-items: center;
  min-height: 110px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  flex: 0 0 240px;
}

.partner-card img {
  max-height: 52px;
  width: 100%;
  object-fit: contain;
  filter: saturate(0.9);
}


.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 100;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%);
  width: min(520px, 92%);
  background: var(--surface);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 110;
  display: grid;
  gap: 16px;
}

.modal.open,
.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal.open {
  transform: translate(-50%, -50%);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.modal-close {
  border: none;
  background: #eef2ff;
  color: var(--primary-dark);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-weight: 700;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.modal-check {
  background: #f8fafc;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

@media (max-width: 880px) {
  .site-nav {
    position: absolute;
    top: 70px;
    right: 4%;
    flex-direction: column;
    background: var(--surface);
    padding: 16px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: none;
  }

  .site-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }
}
