:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #eef3fb;
  --text: #101828;
  --muted: #667085;
  --border: #dfe5ef;
  --primary: #1769e8;
  --primary-dark: #0d4eb7;
  --navy: #041b45;
  --shadow: 0 10px 30px rgba(21, 49, 91, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 72px;
  padding: 0 5vw;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(223,229,239,.8);
}

.brand { display: flex; align-items: center; gap: 18px; }
.brand-name { font-size: 2.05rem; font-weight: 800; color: var(--primary); }
.brand-subtitle { font-size: .72rem; color: #475467; line-height: 1.25; }

.main-nav { display: flex; justify-content: center; gap: 24px; font-size: .9rem; }
.main-nav a { padding: 26px 0 22px; border-bottom: 3px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--primary); border-bottom-color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-button, .menu-toggle {
  border: 0; background: transparent; cursor: pointer; font-size: 1.2rem;
}
.menu-toggle { display: none; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.button-small { padding: 10px 18px; font-size: .9rem; }
.button-large { padding: 14px 24px; }
.button-primary { background: linear-gradient(135deg, #2479f6, #0d55d6); color: #fff; }
.button-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.button-ghost { border-color: rgba(255,255,255,.7); color: #fff; background: rgba(255,255,255,.05); }

.hero {
  min-height: 520px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .75fr);
  align-items: center;
  gap: 60px;
  padding: 78px 10vw;
  color: #fff;
  background:
    radial-gradient(circle at 70% 115%, rgba(44,137,255,.9), transparent 31%),
    radial-gradient(circle at 72% 100%, #0e5ec4 0 22%, #071c46 45%, #020a1d 75%);
}
.stars {
  position: absolute; inset: 0; opacity: .6; pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.95) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(79,173,255,.9) 0 1px, transparent 1.5px);
  background-size: 85px 85px, 130px 130px;
  background-position: 0 0, 30px 45px;
}
.earth-glow {
  position: absolute;
  width: 850px; height: 300px;
  right: -70px; bottom: -110px;
  border-radius: 50%;
  border-top: 2px solid rgba(87,187,255,.75);
  box-shadow: 0 -25px 80px rgba(32,132,255,.45);
  transform: rotate(-6deg);
}
.earth-glow::before,
.earth-glow::after {
  content: "";
  position: absolute;
  inset: 12px 8%;
  border-radius: 50%;
  border-top: 1px solid rgba(81,176,255,.55);
}
.hero-content, .mission-card { position: relative; z-index: 2; }
.eyebrow { letter-spacing: .13em; font-weight: 700; font-size: .74rem; color: #52a8ff; }
.hero h1 { margin: 8px 0 4px; font-size: clamp(3.2rem, 6vw, 5.6rem); line-height: .95; }
.hero h2 { margin: 18px 0 12px; font-size: clamp(1.5rem, 2.6vw, 2.3rem); font-weight: 500; }
.hero h2 span { color: #29a0ff; font-weight: 800; }
.hero-copy { color: rgba(255,255,255,.88); font-size: 1.05rem; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.mission-card {
  align-self: center;
  padding: 28px;
  border: 1px solid rgba(98,170,255,.45);
  border-radius: 18px;
  background: rgba(5, 30, 74, .74);
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
}
.mission-card h3 { color: #3ca5ff; text-decoration: underline; text-underline-offset: 6px; }
.mission-card p { color: rgba(255,255,255,.88); }
.mission-card a { color: #35a9ff; font-weight: 700; }

.section { padding: 70px 8vw; }
.section-heading { text-align: center; margin-bottom: 34px; }
.section-heading h2 { margin: 0; font-size: 2rem; }
.section-heading h2::after {
  content: ""; display: block; width: 58px; height: 3px;
  background: var(--primary); margin: 12px auto 0; border-radius: 100px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}
.product-card {
  min-height: 260px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease;
}
.product-card:hover { transform: translateY(-6px); border-color: #9ec4ff; }
.product-icon {
  width: 54px; height: 54px; display: grid; place-items: center;
  border-radius: 14px; color: #fff; font-weight: 800; font-size: 1.05rem;
}
.purple { background: linear-gradient(135deg, #a268ff, #7338df); }
.blue { background: linear-gradient(135deg, #4b9cff, #1769e8); }
.green { background: linear-gradient(135deg, #54d36a, #10a441); }
.orange { background: linear-gradient(135deg, #ffb31d, #ff7d00); }
.cyan { background: linear-gradient(135deg, #42cbd4, #0ca1b0); }
.product-card h3 { margin: 18px 0 8px; }
.product-card p { color: var(--muted); min-height: 86px; }
.product-card a { color: var(--primary); font-weight: 700; font-size: .9rem; }

.lower-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 24px;
  padding-top: 16px;
}
.panel {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.panel-title { display: flex; gap: 12px; align-items: flex-start; }
.panel-title > span { color: var(--primary); font-size: 1.35rem; }
.panel-title h2 { margin: 0; font-size: 1.18rem; }
.panel-title p { margin: 4px 0 0; color: var(--muted); font-size: .84rem; }

.download-list, .news-list { margin-top: 18px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.download-list a {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: .9rem;
}
.download-list a:last-child { border-bottom: 0; }
.download-list strong { color: var(--primary); font-size: .8rem; }
.panel-link { display: block; margin-top: 18px; text-align: center; color: var(--primary); font-weight: 700; }

.news-list { border: 0; }
.news-list a {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 12px;
  align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border);
}
.news-thumb { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 8px; background: var(--surface-2); color: var(--primary); font-weight: 800; }
.news-list strong, .news-list small { display: block; }
.news-list small { color: var(--muted); }
.news-list time { color: var(--muted); font-size: .74rem; }

.donation-form { margin-top: 18px; }
.donation-row { display: grid; grid-template-columns: 1fr 92px; gap: 10px; }
.donation-row input, .donation-row select, .footer-column select {
  width: 100%; padding: 11px 12px; border: 1px solid var(--border);
  border-radius: 10px; background: var(--surface); color: var(--text);
}
.donate { width: 100%; padding: 12px; border: 0; border-radius: 9px; margin-top: 10px; font-weight: 800; cursor: pointer; }
.paypal { background: #1468e8; color: #fff; }
.card { background: #080808; color: #fff; }
.wallet-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.wallet-row button { padding: 11px; border-radius: 9px; border: 1px solid #aeb7c5; background: var(--surface); color: var(--text); }
.donation-message { min-height: 20px; text-align: center; color: #0b8d45; font-size: .85rem; }

.cta-section {
  margin: 25px 8vw 0;
  padding: 48px;
  border-radius: 24px;
  background: linear-gradient(135deg, #08295f, #115fc7);
  color: #fff;
  display: flex; justify-content: space-between; align-items: center; gap: 30px;
}
.cta-section h2 { margin: 6px 0; font-size: 2rem; }
.cta-section p { max-width: 700px; color: rgba(255,255,255,.82); }

.community-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.community-grid a {
  padding: 28px; border-radius: 16px; background: var(--surface);
  border: 1px solid var(--border); text-align: center; font-weight: 800;
  box-shadow: var(--shadow);
}

.site-footer {
  padding: 44px 8vw;
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 34px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer-brand strong { display: block; font-size: 1.8rem; color: var(--primary); }
.footer-brand span, .footer-brand small { display: block; color: var(--muted); margin-top: 8px; }
.footer-column h3 { font-size: .9rem; }
.footer-column a { display: block; color: var(--muted); margin: 8px 0; font-size: .84rem; }
.socials { display: flex; gap: 8px; margin-bottom: 16px; }
.socials a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--text); font-weight: 800; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

body.dark {
  --bg: #07111f;
  --surface: #0d1a2c;
  --surface-2: #13243a;
  --text: #edf4ff;
  --muted: #a5b4ca;
  --border: #233751;
  --shadow: 0 14px 40px rgba(0,0,0,.28);
}
body.dark .site-header { background: rgba(7,17,31,.92); }
body.dark .brand-subtitle { color: #a5b4ca; }

@media (max-width: 1180px) {
  .main-nav { gap: 14px; font-size: .82rem; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .lower-grid { grid-template-columns: 1fr 1fr; }
  .support-panel { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .menu-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    padding: 18px 5vw;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 0; border: 0; }
  .header-actions { display: none; }
  .hero { grid-template-columns: 1fr; padding: 70px 7vw; }
  .mission-card { max-width: 620px; }
  .site-footer { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 640px) {
  .brand-subtitle { display: none; }
  .hero { min-height: auto; padding-top: 62px; }
  .hero h1 { font-size: 3.2rem; }
  .product-grid, .lower-grid, .community-grid { grid-template-columns: 1fr; }
  .support-panel { grid-column: auto; }
  .section { padding: 54px 5vw; }
  .cta-section { margin: 10px 5vw 0; padding: 34px 24px; flex-direction: column; align-items: flex-start; }
  .site-footer { grid-template-columns: 1fr 1fr; padding: 40px 5vw; }
  .footer-brand { grid-column: 1 / -1; }
}
