:root {
  --purple: #7b3fe4;
  --purple-deep: #6430d6;
  --orange: #ff8f00;
  --pink: #ff4dab;
  --ink: #2e2e2e;
  --muted: #66627a;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --background: #f5f6fa;
  --border: rgba(123, 63, 228, 0.08);
  --shadow: 0 24px 60px rgba(123, 63, 228, 0.12);
  --shadow-soft: 0 16px 30px rgba(66, 41, 114, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(123, 63, 228, 0.18), transparent 18%),
    radial-gradient(circle at 88% 6%, rgba(255, 143, 0, 0.22), transparent 16%),
    radial-gradient(circle at 75% 24%, rgba(255, 77, 171, 0.12), transparent 22%),
    radial-gradient(circle at 92% 74%, rgba(123, 63, 228, 0.1), transparent 18%),
    linear-gradient(180deg, #f4f1fb 0%, #f6f7fb 100%);
}

body.modal-open {
  overflow: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
}

body::before {
  top: 0;
  left: -6vw;
  width: 48vw;
  height: 34vw;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.8), transparent 9%),
    radial-gradient(circle at 62% 52%, rgba(255, 255, 255, 0.55), transparent 5%),
    linear-gradient(135deg, rgba(123, 63, 228, 0.12), rgba(255, 77, 171, 0.08));
  border-bottom-right-radius: 70% 100%;
  filter: blur(2px);
}

body::after {
  right: -10vw;
  bottom: 8vh;
  width: 42vw;
  height: 20vw;
  background: linear-gradient(135deg, rgba(123, 63, 228, 0.08), rgba(255, 143, 0, 0.1));
  border-top-left-radius: 100% 100%;
  transform: rotate(-6deg);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  margin: 30px auto 44px;
}

.site-header,
.section-card,
.cause-card,
.cta,
.site-footer {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 28px;
  border-radius: 28px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  width: 170px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
}

.site-nav a,
.site-footer p:last-child {
  color: var(--muted);
}

.site-nav a,
.button,
.brand {
  text-decoration: none;
}

.site-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--purple);
}

main {
  display: grid;
  gap: 34px;
  margin-top: 26px;
}

.section-card,
.cta {
  position: relative;
  overflow: hidden;
  border-radius: 42px;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.95), transparent 18%),
    radial-gradient(circle at 14% 84%, rgba(171, 131, 255, 0.18), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(250, 246, 255, 0.84));
  box-shadow: var(--shadow);
}

.section-card::before,
.cta::before {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -10%;
  height: 48%;
  background:
    radial-gradient(120% 120% at 18% 14%, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 48%),
    linear-gradient(180deg, rgba(204, 189, 255, 0.28), rgba(255, 220, 233, 0.22));
  border-top-left-radius: 60% 100%;
  border-top-right-radius: 40% 100%;
  pointer-events: none;
}

.section-card::after,
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.16), transparent 26%, rgba(255, 189, 217, 0.16) 54%, transparent 76%);
  opacity: 1;
  pointer-events: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  align-items: center;
  padding: 62px 60px 54px;
  min-height: 470px;
}

.hero::before {
  content: "";
  position: absolute;
  left: -12%;
  bottom: -16%;
  width: 72%;
  height: 42%;
  background:
    radial-gradient(100% 140% at 20% 12%, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 45%),
    linear-gradient(180deg, rgba(214, 203, 255, 0.36), rgba(255, 226, 238, 0.16));
  border-top-left-radius: 40% 90%;
  border-top-right-radius: 60% 90%;
  pointer-events: none;
  z-index: 0;
}

.hero-copy,
.impact-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--purple);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  letter-spacing: -0.03em;
}

h1 {
  max-width: 8.4ch;
  font-size: clamp(2.9rem, 5.7vw, 4.7rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.05;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.1;
}

.lead,
.mission-copy p,
.impact-copy p,
.cta p:last-of-type,
.cause-card p,
.stat-card span,
.site-footer p {
  line-height: 1.7;
  color: var(--muted);
}

.lead {
  max-width: 34rem;
  margin-top: 20px;
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 164px;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 10px 22px rgba(123, 63, 228, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, #8c52ff, var(--purple-deep));
}

.button-secondary {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 22px rgba(34, 30, 58, 0.08);
}

.button-accent {
  background: linear-gradient(135deg, #ff6ca8, var(--orange));
}

.button-donate-glow {
  min-width: 280px;
  padding: 0 38px;
  background: linear-gradient(135deg, #8c52ff, #6f37e2, #8c52ff);
  background-size: 220% 220%;
  box-shadow: 0 10px 22px rgba(123, 63, 228, 0.22);
  animation: donateGradientShift 6s ease infinite;
}

@keyframes donateGradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.button-small {
  min-width: 122px;
  min-height: 48px;
  padding: 0 20px;
}

.hero-art {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 440px;
  margin-left: 0;
  padding: 0;
  background: transparent;
  overflow: visible;
}

.hero-art img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 432px);
  max-width: 432px;
  max-height: 432px;
  margin: 0 auto;
  object-fit: contain;
  object-position: center center;
  transform: translateY(-40px);
  filter: drop-shadow(0 24px 40px rgba(123, 63, 228, 0.14));
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52%;
  aspect-ratio: 1 / 0.78;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.98) 0 10%, rgba(255, 194, 79, 0.24) 10% 16%, rgba(255, 255, 255, 0) 30%),
    radial-gradient(circle at 50% 55%, rgba(123, 63, 228, 0.1), transparent 52%);
  filter: blur(1.5px);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.85fr);
  gap: 34px;
  align-items: center;
  padding: 54px 58px;
}

.cases {
  padding: 52px 44px 46px;
}

.cases-head {
  max-width: 780px;
  margin-bottom: 26px;
}

.cases-head h2 {
  margin-bottom: 12px;
}

.cases-head p:last-child {
  color: var(--muted);
  line-height: 1.7;
}

.cases-rail {
  position: relative;
  z-index: 1;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(123, 63, 228, 0.5) rgba(255, 255, 255, 0.6);
  padding-bottom: 10px;
}

.cases-rail::-webkit-scrollbar {
  height: 10px;
}

.cases-rail::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
}

.cases-rail::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(140, 82, 255, 0.9), rgba(255, 143, 0, 0.85));
}

.cases-track {
  display: flex;
  gap: 18px;
  width: max-content;
  padding-right: 6px;
}

.case-card {
  scroll-snap-align: start;
  flex: 0 0 min(360px, 78vw);
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 80% 16%, rgba(255, 255, 255, 0.92), transparent 16%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 245, 255, 0.88));
  box-shadow: var(--shadow-soft);
}

.case-gallery {
  position: relative;
  height: 360px;
  overflow: hidden;
  padding-bottom: 34px;
}

.case-gallery-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.case-photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 0;
  object-fit: contain;
  object-position: center top;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease;
  background: linear-gradient(180deg, rgba(248, 245, 255, 0.88), rgba(255, 255, 255, 0.94));
}

.case-photo.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
}

.case-photo-p2 {
  object-position: center top;
}

.case-photo-p3 {
  object-position: center top;
}

.case-photo-portrait {
  object-position: center top;
}

.case-gallery-dots {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.case-gallery-dot {
  display: block;
  flex: 1 1 0;
  max-width: 44px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(74, 67, 114, 0.16);
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.case-gallery-dot:hover,
.case-gallery-dot:focus-visible {
  background: rgba(123, 63, 228, 0.28);
}

.case-gallery-dot.is-active {
  background: linear-gradient(135deg, rgba(140, 82, 255, 0.9), rgba(255, 143, 0, 0.82));
}

.case-gallery-static .elder-photo {
  opacity: 0;
  visibility: hidden;
}

#elder-photo-1:checked ~ .elder-photo-1,
#elder-photo-2:checked ~ .elder-photo-2,
#elder-photo-3:checked ~ .elder-photo-3,
#elder-photo-4:checked ~ .elder-photo-4,
#elder-photo-5:checked ~ .elder-photo-5 {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.case-gallery-static .case-gallery-dot {
  cursor: pointer;
}

.case-gallery-static .case-gallery-dot.is-active {
  background: rgba(74, 67, 114, 0.16);
}

#elder-photo-1:checked ~ .case-gallery-dots label[for="elder-photo-1"],
#elder-photo-2:checked ~ .case-gallery-dots label[for="elder-photo-2"],
#elder-photo-3:checked ~ .case-gallery-dots label[for="elder-photo-3"],
#elder-photo-4:checked ~ .case-gallery-dots label[for="elder-photo-4"],
#elder-photo-5:checked ~ .case-gallery-dots label[for="elder-photo-5"] {
  background: linear-gradient(135deg, rgba(140, 82, 255, 0.9), rgba(255, 143, 0, 0.82));
}

.case-content {
  position: relative;
  z-index: 3;
  padding: 16px 16px 18px;
}

.case-content h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.case-content p {
  margin-bottom: 12px;
  color: var(--muted);
  line-height: 1.65;
}

.case-progress {
  margin: 0 0 14px;
  padding: 14px 14px 12px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.92), transparent 18%),
    linear-gradient(180deg, rgba(246, 240, 255, 0.96), rgba(255, 255, 255, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.case-progress-head,
.case-progress-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.case-progress-head {
  margin-bottom: 10px;
}

.case-progress-head strong,
.case-progress-foot span:first-child {
  color: #4a4372;
  font-weight: 700;
}

.case-progress-head span,
.case-progress-foot span:last-child {
  color: var(--muted);
  font-size: 0.88rem;
}

.case-progress-bar {
  position: relative;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(123, 63, 228, 0.12);
}

.case-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #8c52ff, #ff8f00);
  box-shadow: 0 4px 12px rgba(123, 63, 228, 0.22);
}

.case-progress-foot {
  margin-top: 10px;
}

.case-content span {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: #4a4372;
}

.case-actions {
  position: relative;
  z-index: 4;
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.case-action-button {
  position: relative;
  z-index: 5;
  flex: 1 1 0;
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.case-action-button:hover,
.case-action-button:focus-visible {
  transform: translateY(-1px);
}

.case-action-primary {
  color: #fff;
  background: linear-gradient(135deg, #8c52ff, var(--purple-deep));
  box-shadow: 0 10px 22px rgba(123, 63, 228, 0.22);
}

.case-action-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 18px rgba(52, 41, 82, 0.08);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(28, 20, 47, 0.38);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.modal-backdrop[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.modal-window {
  position: relative;
  width: min(680px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  padding: 30px 26px 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 84% 16%, rgba(255, 255, 255, 0.94), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 245, 255, 0.94));
  box-shadow: 0 30px 80px rgba(37, 28, 63, 0.2);
}

.modal-window-wide {
  width: min(860px, 100%);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #4a4372;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(52, 41, 82, 0.12);
}

.modal-copy {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.modal-copy p,
.modal-subtitle {
  color: var(--muted);
  line-height: 1.7;
}

.modal-subtitle {
  margin-top: 12px;
}

.wallet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.wallet-card {
  position: relative;
  padding: 18px 16px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.94), transparent 16%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(245, 240, 255, 0.92));
  box-shadow: var(--shadow-soft);
}

.wallet-card:nth-child(2) {
  transform: translateY(-6px);
  border: 1px solid rgba(123, 63, 228, 0.18);
  box-shadow: 0 18px 36px rgba(123, 63, 228, 0.14);
  isolation: isolate;
}

.wallet-card:nth-child(2)::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(194, 175, 255, 0.92), rgba(255, 208, 232, 0.88), rgba(255, 228, 191, 0.9), rgba(206, 192, 255, 0.92));
  background-size: 220% 220%;
  opacity: 0.92;
  filter: saturate(0.96);
  pointer-events: none;
  animation: walletGradientShift 6s linear infinite;
}

.wallet-card h4 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.wallet-card code {
  display: block;
  overflow-wrap: anywhere;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #4a4372;
}

.wallet-address {
  cursor: pointer;
  user-select: all;
  transition: color 160ms ease, transform 160ms ease;
}

.wallet-address:hover,
.wallet-address:focus-visible {
  color: var(--purple-deep);
}

.wallet-address.is-copied {
  color: #1f8f57;
}

.wallet-qr {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 14px;
  border-radius: 18px;
  padding: 14px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.96), transparent 18%),
    linear-gradient(145deg, rgba(248, 243, 255, 0.98), rgba(255, 255, 255, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 12px 30px rgba(123, 63, 228, 0.08);
}

.wallet-qr-placeholder {
  color: #4a4372;
  font-weight: 800;
  letter-spacing: 0.08em;
  border: 1px dashed rgba(123, 63, 228, 0.24);
}

.wallet-qr img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 8px 24px rgba(52, 41, 82, 0.08);
}

.wallet-card-bitcoin .wallet-qr {
  background:
    radial-gradient(circle at 84% 16%, rgba(255, 214, 153, 0.4), transparent 18%),
    radial-gradient(circle at 14% 84%, rgba(140, 82, 255, 0.14), transparent 22%),
    linear-gradient(145deg, rgba(255, 248, 240, 0.98), rgba(255, 255, 255, 0.95));
}

.wallet-card-badge {
  position: absolute;
  top: -12px;
  right: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #8c52ff, var(--purple-deep));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(123, 63, 228, 0.22);
}

@keyframes walletGradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.team {
  padding: 52px 44px 44px;
}

.team-head {
  max-width: 760px;
  margin-bottom: 24px;
}

.team-head h2 {
  margin-bottom: 12px;
}

.team-head p:last-child {
  color: var(--muted);
  line-height: 1.7;
}

.team-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.team-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 84% 14%, rgba(255, 255, 255, 0.92), transparent 16%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 245, 255, 0.88));
  box-shadow: var(--shadow-soft);
}

.team-card img {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center 18%;
}

.team-content {
  padding: 14px 14px 16px;
}

.team-content h3 {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.team-content p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.mission-copy {
  position: relative;
  z-index: 1;
  max-width: 480px;
}

.mission-copy h2 {
  max-width: 10ch;
  margin-bottom: 18px;
}

.mission-media {
  position: relative;
  z-index: 1;
}

.mission-media img {
  display: block;
  width: 100%;
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(79, 52, 117, 0.16);
}

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

.cause-card {
  position: relative;
  overflow: hidden;
  padding: 24px 24px 26px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.96), transparent 18%),
    radial-gradient(circle at 16% 78%, rgba(255, 255, 255, 0.86), transparent 14%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 244, 255, 0.84));
  box-shadow: var(--shadow-soft);
}

.cause-card::before {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -14%;
  height: 38%;
  background: linear-gradient(180deg, rgba(209, 198, 255, 0.28), rgba(255, 217, 231, 0.18));
  border-top-left-radius: 60% 100%;
  border-top-right-radius: 40% 100%;
  pointer-events: none;
}

.cause-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 1) 0 0.62%, transparent 1.1%),
    radial-gradient(circle at 82% 24%, rgba(255, 255, 255, 0.94) 0 0.44%, transparent 0.88%),
    radial-gradient(circle at 72% 76%, rgba(255, 255, 255, 0.82) 0 0.32%, transparent 0.7%);
  pointer-events: none;
}

.cause-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 106px;
  height: 72px;
  border-radius: 26px;
  margin-bottom: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 14px 30px rgba(123, 63, 228, 0.14);
}

.cause-icon svg {
  width: 42px;
  height: 42px;
  fill: rgba(255, 255, 255, 0.94);
  stroke: rgba(255, 255, 255, 0.94);
}

.cause-icon-people {
  background: linear-gradient(135deg, rgba(140, 82, 255, 0.95), rgba(255, 195, 88, 0.72) 82%, rgba(255, 108, 168, 0.72));
}

.cause-icon-animals {
  background: linear-gradient(135deg, rgba(255, 108, 168, 0.92), rgba(255, 143, 0, 0.72));
}

.cause-icon-nature {
  background: linear-gradient(135deg, rgba(104, 219, 170, 0.92), rgba(236, 255, 158, 0.76), rgba(95, 197, 255, 0.88));
}

.cause-card h3 {
  margin-bottom: 10px;
}

.impact {
  padding: 48px 50px 38px;
}

.impact-copy {
  max-width: 690px;
  margin: 0 auto;
  text-align: center;
}

.impact-copy .eyebrow {
  color: var(--ink);
}

.impact-copy h2 {
  margin-top: 8px;
}

.impact-copy p {
  max-width: 620px;
  margin: 14px auto 0;
}

.stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  padding: 28px 24px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.98), transparent 15%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 244, 255, 0.9));
  box-shadow: var(--shadow-soft);
}

.stat-card::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -20%;
  height: 40%;
  background: linear-gradient(180deg, rgba(206, 194, 255, 0.24), rgba(255, 227, 236, 0.16));
  border-top-left-radius: 60% 100%;
  border-top-right-radius: 40% 100%;
  pointer-events: none;
}

.stat-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1;
  color: #4a4372;
}

.impact-visual {
  position: relative;
  height: 160px;
  margin-top: 8px;
}

.plant-blob {
  position: absolute;
  right: 10px;
  bottom: -16px;
  width: 300px;
  height: 130px;
  border-radius: 100px 0 28px 100px;
  background:
    radial-gradient(circle at 80% 28%, rgba(255, 204, 93, 0.9), transparent 14%),
    radial-gradient(circle at 88% 72%, rgba(255, 255, 255, 0.8), transparent 6%),
    linear-gradient(135deg, rgba(255, 240, 180, 0.92), rgba(241, 215, 125, 0.28));
  filter: blur(0.3px);
}

.plant-figure {
  position: absolute;
  right: 72px;
  bottom: 0;
  width: 122px;
  height: 132px;
}

.plant-figure::before {
  content: "";
  position: absolute;
  right: 20px;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f0c19a;
}

.plant-figure::after {
  content: "";
  position: absolute;
  right: 0;
  top: 28px;
  width: 94px;
  height: 92px;
  border-radius: 44px 44px 18px 18px;
  background: linear-gradient(160deg, #8f6b43, #c49668 48%, #5c4a3b 48%, #5c4a3b 100%);
  transform: skewX(-18deg);
}

.plant-figure span {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 86px;
  height: 42px;
  border-radius: 28px;
  background: #7b5d46;
  transform: rotate(6deg);
}

.plant-leaf {
  position: absolute;
  bottom: 44px;
  width: 44px;
  height: 72px;
  background: linear-gradient(160deg, #98df6e, #4eb76f);
  border-radius: 100% 0 100% 0;
  transform-origin: bottom center;
}

.plant-leaf-a {
  right: 194px;
  transform: rotate(-22deg);
}

.plant-leaf-b {
  right: 160px;
  bottom: 54px;
  width: 38px;
  height: 58px;
  transform: rotate(6deg);
}

.plant-leaf-c {
  right: 138px;
  bottom: 26px;
  width: 34px;
  height: 44px;
  background: linear-gradient(160deg, #b7ea82, #63bf75);
  transform: rotate(36deg);
}

.cta {
  padding: 56px 28px 60px;
  text-align: center;
}

.cta h2 {
  margin-top: 8px;
}

.cta p:last-of-type {
  max-width: 640px;
  margin: 14px auto 0;
}

.cta-actions {
  justify-content: center;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 20px;
  padding: 20px 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-soft);
}

.site-footer p:first-child {
  font-weight: 700;
  color: var(--ink);
}

.footer-link {
  color: var(--purple-deep);
  font-weight: 700;
  text-decoration: none;
}

.footer-link:hover,
.footer-link:focus-visible {
  text-decoration: underline;
}

@media (max-width: 980px) {
  .page-shell {
    width: min(100% - 28px, 1180px);
  }

  .site-header,
  .hero,
  .section-grid,
  .impact,
  .cta,
  .site-footer {
    border-radius: 28px;
  }

  .site-header {
    flex-wrap: wrap;
    justify-content: center;
  }

  .site-nav {
    order: 3;
    margin-left: 0;
    justify-content: center;
    width: 100%;
    gap: 20px;
  }

  .hero,
  .section-grid {
    grid-template-columns: 1fr;
    padding: 42px 28px;
  }

  .cases {
    padding: 40px 24px 28px;
  }

  .case-card {
    flex-basis: min(360px, 86vw);
  }

  .team {
    padding: 40px 24px 28px;
  }

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

  .team-card img {
    height: 320px;
  }

  .hero-art {
    min-height: 320px;
    margin-left: 0;
  }

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

  .wallet-card:nth-child(2) {
    transform: none;
  }

  .causes,
  .stats {
    grid-template-columns: 1fr;
  }

  .impact {
    padding: 40px 24px 28px;
  }

  .impact-visual {
    height: 110px;
    margin-top: 16px;
  }

  .plant-blob {
    width: 220px;
    height: 92px;
  }

  .plant-figure {
    right: 42px;
    transform: scale(0.82);
    transform-origin: bottom right;
  }

  .plant-leaf-a {
    right: 132px;
  }

  .plant-leaf-b {
    right: 102px;
  }

  .plant-leaf-c {
    right: 82px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: calc(100% - 20px);
    margin: 10px auto 24px;
  }

  .site-header {
    padding: 16px 18px 18px;
  }

  .brand-logo {
    width: 144px;
  }

  .site-nav {
    gap: 14px 18px;
  }

  .site-nav a {
    font-size: 0.88rem;
  }

  h1 {
    max-width: none;
    font-size: 2.65rem;
  }

  h2 {
    font-size: 2rem;
  }

  .button,
  .button-small {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-art img {
    width: 100%;
    max-width: 348px;
    max-height: 348px;
    transform: translateY(-26px);
  }

  .cause-card {
    padding: 22px 18px 24px;
  }

  .case-card {
    flex-basis: min(320px, 90vw);
  }

  .case-gallery {
    height: 320px;
  }

  .case-actions {
    flex-direction: column;
  }

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

  .team-card img {
    height: 380px;
  }

  .cta {
    padding-left: 18px;
    padding-right: 18px;
  }
}
