:root {
  --bg: #07111f;
  --surface: #101c31;
  --surface-soft: #17253f;
  --text: #eef4ff;
  --muted: #aab7c9;
  --primary: #7c6cff;
  --accent: #30d7c8;
  --border: rgba(255, 255, 255, 0.12);
  --scroll-tint: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(48, 215, 200, 0.22), transparent 24%),
    radial-gradient(circle at bottom right, rgba(124, 108, 255, 0.25), transparent 30%),
    linear-gradient(135deg, rgba(7, 17, 31, 1) 0%, rgba(15, 32, 61, 1) 50%, rgba(78, 53, 123, calc(0.16 + var(--scroll-tint) * 0.3)) 100%);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 30;
  box-shadow: 0 0 16px rgba(48, 215, 200, 0.35);
}

.particle-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  width: var(--size, 8px);
  height: var(--size, 8px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(48, 215, 200, 0.85), rgba(124, 108, 255, 0.16));
  animation: driftParticle 8s ease-in-out infinite;
  opacity: 0.55;
}

main,
header,
footer {
  position: relative;
  z-index: 2;
}

.site-header {
  padding: 1rem 0;
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(7, 17, 31, 0.8);
  z-index: 10;
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--muted);
}

.nav-pill {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
}

.hero {
  padding: 4rem 0 3rem;
  position: relative;
}

.background-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 20% 20%, rgba(48,215,200,0.13), transparent 24%);
  animation: driftGlow 10s ease-in-out infinite alternate;
}

.hero-shell {
  position: relative;
  text-align: center;
  padding: 3rem 2rem;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 30px 60px rgba(0,0,0,0.18);
  overflow: hidden;
  transform: perspective(1000px) rotateX(var(--rotateX, 0deg)) rotateY(var(--rotateY, 0deg));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-shell:hover {
  transform: perspective(1000px) rotateX(var(--rotateX, 0deg)) rotateY(var(--rotateY, 0deg)) translateY(-4px);
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.25);
}

.hero-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--glowX, 50%) var(--glowY, 50%), rgba(255, 255, 255, 0.16), transparent 55%);
  pointer-events: none;
}

.hero-shell::before {
  content: "";
  position: absolute;
  inset: auto -10% -35% auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(124, 108, 255, 0.18), transparent 70%);
  pointer-events: none;
}

.spark {
  position: absolute;
  color: var(--accent);
  font-size: 1rem;
  opacity: 0.8;
  animation: floatSpark 4s ease-in-out infinite;
  pointer-events: none;
}

.sparkle-one {
  top: 1.2rem;
  left: 1.4rem;
  animation-delay: 0s;
}

.sparkle-two {
  top: 2rem;
  right: 1.6rem;
  animation-delay: 1s;
}

.sparkle-three {
  bottom: 1.4rem;
  left: 2.2rem;
  animation-delay: 2s;
}

.spotlight {
  position: absolute;
  inset: -20% 20% auto auto;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(124,108,255,0.28), transparent 70%);
  filter: blur(8px);
  animation: pulse 6s ease-in-out infinite;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.3vw, 3.8rem);
  line-height: 1.08;
  margin: 0 auto 1rem;
  max-width: 760px;
}

.hero-text,
.section-heading p,
.cta-box p,
.info-card p,
.step p,
.split-layout p {
  color: var(--muted);
  font-size: 1rem;
}

.hero-text {
  max-width: 690px;
  margin: 0 auto;
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
}

.btn-ripple {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: translate(-50%, -50%) scale(0);
  animation: ripple 0.6s ease-out forwards;
  pointer-events: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #9a8cff);
  color: white;
  box-shadow: 0 10px 24px rgba(124, 108, 255, 0.3);
}

.btn-secondary {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.hero-card,
.info-card,
.cta-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.info-card:nth-child(2) {
  border-color: rgba(48, 215, 200, 0.28);
}

.info-card:nth-child(3) {
  border-color: rgba(124, 108, 255, 0.28);
}

.opportunity-card:nth-child(2n) {
  background: rgba(255, 255, 255, 0.08);
}

.opportunity-card:nth-child(3n) {
  border-color: rgba(48, 215, 200, 0.24);
}

.hero-visual {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  animation: spin 10s linear infinite;
}

.orbit-one {
  width: 280px;
  height: 280px;
  border-color: rgba(124, 108, 255, 0.35);
}

.orbit-two {
  width: 340px;
  height: 340px;
  border-color: rgba(48, 215, 200, 0.28);
  animation-direction: reverse;
  animation-duration: 14s;
}

.hero-card {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
  width: min(100%, 460px);
  margin: 2rem auto 0;
  text-align: left;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -20% auto auto -10%;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(48, 215, 200, 0.24), transparent 70%);
  pointer-events: none;
}

.story-row {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin: 1rem 0;
  padding: 0.9rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.avatar {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.story-row h4 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
}

.story-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.8rem 0 0;
}

.chip-row span {
  padding: 0.38rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #dfe8ff;
  font-size: 0.82rem;
}

.hero-card blockquote {
  margin: 0;
  padding-left: 0.8rem;
  border-left: 2px solid rgba(48, 215, 200, 0.45);
  color: #e8f4ff;
  font-style: italic;
}

.card-top h3 {
  margin: 0.2rem 0 1rem;
  font-size: 1.3rem;
}

.card-label {
  margin: 0;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.hero-card ul {
  padding-left: 1.1rem;
  color: #e1e8f5;
}

.mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 1rem;
}

.mini-stats div {
  padding: 0.8rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.mini-stats strong {
  display: block;
  font-size: 1.1rem;
}

.info-section {
  padding: 1rem 0 4rem;
  position: relative;
}

.why-shell {
  display: grid;
  gap: 1.2rem;
}

.why-intro {
  padding: 1.4rem 1.6rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.why-intro h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.why-intro p {
  margin: 0;
  color: var(--muted);
}

.info-section::before {
  content: "";
  position: absolute;
  inset: 0 0 1.5rem;
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(124, 108, 255, 0.08), rgba(48, 215, 200, 0.05));
  z-index: -1;
  margin: 0 1rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.info-card {
  padding: 1.4rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  border-color: rgba(48, 215, 200, 0.45);
}

.impact-section {
  padding: 0 0 3rem;
  position: relative;
}

.impact-shell,
.showcase-shell {
  padding: 1.6rem;
  border-radius: 32px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.16);
}

.impact-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.stat-card {
  padding: 1.1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-card strong {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #f6fbff;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.95rem;
}

.showcase-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.showcase-card {
  padding: 1.15rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.showcase-card ul {
  margin: 0.4rem 0 0;
  padding-left: 1rem;
  color: var(--muted);
}

.showcase-section {
  padding: 0 0 4rem;
}

.testimonial-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.8rem;
  align-items: center;
  margin-top: 1rem;
}

.testimonial-track {
  position: relative;
  min-height: 150px;
}

.testimonial-card {
  display: none;
  padding: 1.2rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(124, 108, 255, 0.22), rgba(48, 215, 200, 0.18));
  border: 1px solid rgba(48, 215, 200, 0.24);
}

.testimonial-card.active {
  display: block;
}

.testimonial-card p {
  margin: 0 0 0.6rem;
  color: #f6fbff;
  font-size: 1.05rem;
}

.testimonial-card span {
  color: var(--accent);
  font-weight: 600;
}

.carousel-btn {
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 0;
}

.carousel-dot.active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.back-to-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  font-size: 1.15rem;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 20;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.opportunities-section {
  padding: 0 0 4rem;
  position: relative;
}

.opportunities-section::before {
  content: "";
  position: absolute;
  inset: 0 0 1rem;
  border-radius: 40px;
  background: linear-gradient(135deg, rgba(48, 215, 200, 0.06), rgba(124, 108, 255, 0.08));
  z-index: -1;
  margin: 0 1rem;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.opportunity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.opportunity-card {
  padding: 1.25rem;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
  min-height: 180px;
  transform-style: preserve-3d;
}

.opportunity-card::before {
  content: "";
  position: absolute;
  inset: auto auto -24px -20px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(48, 215, 200, 0.14), transparent 72%);
  pointer-events: none;
}

.opportunity-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(48, 215, 200, 0.45);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.22);
}

.card-icon {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124, 108, 255, 0.28), rgba(48, 215, 200, 0.22));
  color: #f6fbff;
  font-size: 1rem;
  margin-bottom: 0.85rem;
}

.card-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.card-tag-row span {
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #dfe8ff;
  font-size: 0.78rem;
}

.opportunity-card h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
}

.opportunity-card p {
  margin: 0;
  color: var(--muted);
}

.donate-hero {
  padding-bottom: 2rem;
}

.donate-card {
  border-color: rgba(124, 108, 255, 0.28);
}

.donate-grid {
  gap: 1.2rem;
}

.donate-panel {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: flex-start;
}

.donate-panel .btn {
  margin-top: 0.4rem;
}

.site-footer {
  padding: 1.5rem 0 2rem;
  color: var(--muted);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
}


@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

@keyframes driftGlow {
  0% {
    transform: translate3d(-1%, -2%, 0);
  }
  100% {
    transform: translate3d(2%, 2%, 0);
  }
}

@keyframes floatSpark {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-8px) scale(1.1);
    opacity: 1;
  }
}

@keyframes ripple {
  from {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0.6;
  }
  to {
    transform: translate(-50%, -50%) scale(18);
    opacity: 0;
  }
}

@keyframes driftParticle {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.2;
  }
  50% {
    transform: translate3d(var(--drift, -30px), -30px, 0) scale(1.2);
    opacity: 0.75;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  .info-grid,
  .opportunity-grid,
  .impact-stats,
  .showcase-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-shell {
    padding: 2rem 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
