:root {
  --blue: #1f6fa5;
  --blue-dark: #0b3e61;
  --green: #4caf50;
  --green-dark: #267b3b;
  --gold: #d4a73c;
  --gold-soft: #fff0bd;
  --dark: #0b1f2a;
  --muted: #5f7280;
  --light: #f4f9fb;
  --white: #ffffff;
  --line: rgba(11, 31, 42, 0.12);
  --shadow: 0 24px 70px rgba(11, 31, 42, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  color: var(--dark);
  background: var(--light);
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

.section { padding: 96px 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 249, 251, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(11, 31, 42, 0.08);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  color: var(--blue-dark);
  letter-spacing: 0.05em;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 800;
  color: var(--dark);
}

.nav-links a:not(.nav-donate) {
  opacity: 0.82;
}

.nav-links a:hover { color: var(--blue); }

.nav-donate {
  padding: 12px 20px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 10px 28px rgba(31, 111, 165, 0.22);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 42px;
  height: 42px;
}

.menu-toggle span {
  display: block;
  height: 3px;
  margin: 6px 0;
  background: var(--dark);
  border-radius: 99px;
}

.hero {
  min-height: calc(100vh - 82px);
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(212, 167, 60, 0.22), transparent 28%),
    radial-gradient(circle at 85% 25%, rgba(76, 175, 80, 0.2), transparent 30%),
    linear-gradient(135deg, #081a24 0%, #0b1f2a 58%, #103f59 100%);
  color: var(--white);
  overflow: hidden;
  position: relative;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(1px);
  opacity: 0.8;
}

.orb-one {
  width: 340px;
  height: 340px;
  background: rgba(31, 111, 165, 0.28);
  left: -110px;
  bottom: -100px;
}

.orb-two {
  width: 240px;
  height: 240px;
  background: rgba(212, 167, 60, 0.2);
  right: -70px;
  top: 150px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 70px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

h1, h2 {
  font-family: 'Playfair Display', serif;
  line-height: 1.02;
  margin: 0;
}

h1 {
  font-size: clamp(3.2rem, 7vw, 6.6rem);
  letter-spacing: -0.06em;
}

h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  letter-spacing: -0.04em;
}

h3 { margin: 0; line-height: 1.2; }

.lead {
  max-width: 680px;
  color: rgba(255,255,255,0.78);
  font-size: 1.15rem;
  margin: 28px 0;
}

.hero-actions, .donate-badges, .pill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 900;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--green));
  color: #07151d;
  box-shadow: 0 18px 35px rgba(212, 167, 60, 0.18);
}

.btn-ghost {
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.08);
}

.btn-full { width: 100%; }

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 42px;
}

.hero-metrics span {
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.07);
  border-radius: 20px;
}

.hero-metrics strong, .hero-metrics small {
  display: block;
}

.hero-metrics strong { color: var(--gold); font-size: 1.1rem; }
.hero-metrics small { color: rgba(255,255,255,0.7); }

.hero-visual {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}

.logo-orbit {
  width: min(470px, 90vw);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 44px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: var(--shadow);
}

.logo-orbit img {
  filter: drop-shadow(0 25px 35px rgba(0,0,0,0.25));
}

.floating-note {
  position: absolute;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: var(--blue-dark);
  font-weight: 900;
  box-shadow: 0 18px 50px rgba(0,0,0,0.22);
}

.note-one { top: 80px; right: 15px; }
.note-two { bottom: 90px; left: 15px; }

.split-section {
  background: var(--white);
}

.split-grid, .programs-grid, .donate-grid, .contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.about-panel {
  padding: 34px;
  border-left: 6px solid var(--gold);
  background: var(--light);
  border-radius: 0 24px 24px 0;
}

.section-heading.center {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 52px;
}

.impact-section {
  background:
    linear-gradient(180deg, var(--light), #ffffff);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.impact-card, .help-card {
  min-height: 280px;
  padding: 28px;
  border-radius: 30px;
  background: var(--white);
  border: 1px solid rgba(11,31,42,0.08);
  box-shadow: 0 16px 45px rgba(11,31,42,0.06);
  transition: transform .25s ease, box-shadow .25s ease;
}

.impact-card:hover, .help-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.impact-icon {
  font-size: 2rem;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--gold-soft);
  margin-bottom: 24px;
}

.impact-card h3, .help-card h3, .program-row h3 {
  color: var(--blue-dark);
  margin-bottom: 10px;
}

.impact-card p, .help-card p, .program-row p, .programs-copy p, .tech-card p, .donate-story p, .contact-copy p {
  color: var(--muted);
}

.programs-section {
  background: #081a24;
  color: var(--white);
}

.programs-copy p, .program-row p {
  color: rgba(255,255,255,0.68);
}

.program-list {
  display: grid;
  gap: 14px;
}

.program-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 20px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
}

.program-row span {
  color: var(--gold);
  font-weight: 900;
  font-size: 1.5rem;
}

.program-row h3 { color: var(--white); }

.tech-section { padding-top: 0; background: #081a24; }

.tech-card {
  padding: 44px;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(31,111,165,0.96), rgba(76,175,80,0.86));
  color: var(--white);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: center;
  box-shadow: 0 30px 90px rgba(0,0,0,0.2);
}

.tech-card p { color: rgba(255,255,255,0.78); }

.pill-cloud span, .donate-badges span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.2);
  font-weight: 800;
}

.help-section {
  background: var(--white);
}

.help-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.donate-section {
  background:
    radial-gradient(circle at 15% 20%, rgba(212,167,60,0.18), transparent 28%),
    linear-gradient(135deg, #f4f9fb, #eaf5f1);
}

.donate-grid {
  align-items: center;
}

.donate-panel {
  padding: 18px;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.76), rgba(255,255,255,0.42));
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: var(--shadow);
}

.donation-form, .donation-success-card {
  padding: 24px;
  border-radius: 26px;
  background: rgba(255,255,255,0.88);
}

.donation-form label {
  display: block;
  font-weight: 900;
  color: var(--blue-dark);
  margin-bottom: 16px;
}

.donation-form input,
.donation-form select,
.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 15px 16px;
  border: 1px solid rgba(11,31,42,0.14);
  border-radius: 16px;
  outline: none;
  font: inherit;
  background: #fff;
  color: var(--dark);
}

.donation-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%230b1f2a' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}

.donation-form small {
  display: block;
  color: var(--muted);
  margin-top: 14px;
}

.donation-success-card { display: none; }

.success-icon {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: #fff;
  font-size: 1.7rem;
  font-weight: 900;
  margin-bottom: 16px;
}

.transaction-details {
  background: #f4f9fb;
  border-radius: 18px;
  padding: 16px;
  margin: 18px 0;
}

.transaction-details p {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 8px 0;
}

.transaction-details span {
  color: var(--blue-dark);
  font-weight: 900;
  text-align: right;
}

.contact-section {
  background: #ffffff;
}

.contact-list {
  padding: 24px;
  border-radius: 24px;
  background: var(--light);
  margin: 24px 0;
}

.contact-list a { color: var(--blue); font-weight: 900; }

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-links a {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--dark);
  color: var(--white);
  font-weight: 900;
}

.contact-form {
  padding: 26px;
  border-radius: 30px;
  background: var(--light);
  display: grid;
  gap: 14px;
}

.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.78);
  padding: 28px 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.back-to-top {
  background: transparent;
  border: 0;
  color: var(--gold);
  font-weight: 900;
  cursor: pointer;
}

.floating-back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: .25s ease;
  z-index: 60;
}

.floating-back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .menu-toggle { display: block; }

  .nav-links {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 88px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow);
  }

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

  .hero-grid, .split-grid, .programs-grid, .donate-grid, .contact-grid, .tech-card {
    grid-template-columns: 1fr;
  }

  .hero-visual { min-height: 420px; }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .help-cards { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .container { width: min(100% - 28px, 1140px); }
  .hero-metrics, .impact-grid { grid-template-columns: 1fr; }
  .floating-note { display: none; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
  .transaction-details p { display: block; }
  .transaction-details span { display: block; text-align: left; }
}
