:root {
  --space-980: #03060e;
  --space-940: #070d18;
  --space-900: #0d1523;
  --space-840: #162034;
  --frost: #d5dde8;
  --line: rgba(255, 255, 255, 0.18);
  --ink: #0e1725;
  --ink-soft: #4b5a70;
  --paper: #f3f6fa;
  --white: #ffffff;
  --accent-blue: #2bc6ff;
  --accent-red: #f51f48;
  --accent-gold: #efc264;
  --radius: 18px;
  --max-width: 1180px;
  --shadow: 0 24px 44px rgba(4, 8, 15, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
  line-height: 1.6;
  background: var(--paper);
}

a {
  color: inherit;
}

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

h1,
h2,
h3 {
  margin: 0 0 0.7rem;
  font-family: "Avenir Next Condensed", "Franklin Gothic Medium", "Trebuchet MS", sans-serif;
  letter-spacing: 0.01em;
  line-height: 1.08;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

.container {
  width: min(var(--max-width), 92vw);
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem clamp(1rem, 2.6vw, 2rem);
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(2, 6, 12, 0.72) 0%, rgba(2, 6, 12, 0.22) 65%, rgba(2, 6, 12, 0) 100%);
  transition: background 0.28s ease, border-color 0.28s ease, backdrop-filter 0.28s ease;
}

.site-header.scrolled {
  backdrop-filter: blur(8px);
  background: rgba(6, 11, 19, 0.9);
  border-bottom-color: rgba(222, 233, 248, 0.2);
}

.brand {
  display: inline-flex;
  width: min(220px, 48vw);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.05rem;
}

.site-nav a {
  color: #eaf3ff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.site-nav .nav-cta {
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(11, 21, 34, 0.82);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: #f4f7fe;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #f7fbff;
  background:
    linear-gradient(180deg, rgba(2, 6, 12, 0.3), rgba(2, 6, 12, 0.94)),
    radial-gradient(circle at 70% 0%, #18253f 0%, var(--space-940) 48%, var(--space-980) 100%);
}

.hero-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.6;
  background-image:
    radial-gradient(2px 2px at 8% 22%, rgba(255, 255, 255, 0.8), transparent 60%),
    radial-gradient(1px 1px at 34% 68%, rgba(255, 255, 255, 0.6), transparent 55%),
    radial-gradient(1px 1px at 78% 19%, rgba(255, 255, 255, 0.75), transparent 58%),
    radial-gradient(1px 1px at 56% 82%, rgba(255, 255, 255, 0.44), transparent 55%),
    radial-gradient(2px 2px at 91% 49%, rgba(239, 194, 100, 0.8), transparent 60%),
    radial-gradient(420px 240px at 12% 86%, rgba(43, 198, 255, 0.15), transparent 66%);
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 130px;
  background: linear-gradient(180deg, rgba(3, 6, 11, 0) 0%, var(--paper) 92%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.3rem, 3vw, 2.2rem);
  padding: clamp(6.2rem, 13vw, 7.4rem) 0 clamp(3rem, 6vw, 4.1rem);
}

.kicker {
  margin-bottom: 0.85rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9fb6d0;
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 6.6vw, 5.2rem);
  text-transform: uppercase;
}

.hero-text {
  max-width: 65ch;
  color: #dce6f3;
  font-size: clamp(1rem, 1.55vw, 1.12rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.4rem 0 1.5rem;
}

.btn {
  border-radius: 10px;
  padding: 0.72rem 1.1rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(128deg, var(--accent-red), #ff6a33);
  color: #fff;
  box-shadow: 0 10px 24px rgba(245, 31, 72, 0.26);
}

.btn-outline {
  border: 1px solid rgba(233, 242, 255, 0.6);
  color: #eaf2ff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.09);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.hero-metrics article {
  border: 1px solid rgba(213, 221, 232, 0.28);
  border-radius: 12px;
  padding: 0.6rem 0.72rem;
  background: rgba(6, 12, 22, 0.45);
}

.hero-metrics span {
  display: block;
  font-size: 0.71rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #93a8c2;
}

.hero-metrics strong {
  font-size: 0.87rem;
  color: #f7fbff;
}

.hero-media {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(7, 13, 24, 0.82);
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  object-position: center;
}

.hero-media figcaption {
  padding: 0.7rem 0.85rem 0.75rem;
  color: #b8c8dd;
  font-size: 0.78rem;
}

.section {
  position: relative;
  padding: clamp(3rem, 7vw, 5.8rem) 0;
}

.section-title {
  margin-bottom: 1.45rem;
}

.section-title h2 {
  font-size: clamp(1.55rem, 4.5vw, 3rem);
}

.section-light {
  background: var(--paper);
  color: var(--ink);
}

.section-dark {
  color: #eff6ff;
  background:
    radial-gradient(circle at 88% 6%, rgba(33, 87, 146, 0.18) 0%, transparent 48%),
    linear-gradient(155deg, var(--space-940) 0%, var(--space-900) 45%, #0f1b2f 100%);
}

.section-dark .kicker {
  color: #9bb5cf;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: start;
}

.content-stack {
  color: var(--ink-soft);
  font-size: 1.03rem;
}

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

.info-card {
  border-radius: var(--radius);
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(2px);
}

.info-card ul {
  margin: 0.6rem 0 0;
  padding-left: 1rem;
}

.info-card li {
  margin-bottom: 0.45rem;
}

.facility-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.facility-steps {
  display: grid;
  gap: 0.75rem;
}

.facility-steps article {
  border: 1px solid rgba(14, 23, 37, 0.14);
  border-left: 4px solid var(--accent-blue);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  background: #f9fbff;
}

.facility-steps p {
  color: var(--ink-soft);
}

.facility-image {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(14, 23, 37, 0.14);
  min-height: 100%;
}

.facility-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.equipment-card {
  border: 1px solid rgba(14, 23, 37, 0.14);
  border-radius: 14px;
  padding: 0.95rem;
  background: #ffffff;
}

.equipment-card p {
  color: var(--ink-soft);
}

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

.impact-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
}

.impact-grid ul {
  margin: 0.6rem 0 0;
  padding-left: 1rem;
}

.badge-row {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.badge-row span {
  display: inline-block;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.26);
  font-size: 0.73rem;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.donate-section {
  background:
    linear-gradient(155deg, rgba(6, 11, 20, 0.95) 0%, rgba(8, 15, 26, 0.96) 60%, rgba(19, 31, 49, 0.98) 100%),
    radial-gradient(circle at 100% 0%, rgba(239, 194, 100, 0.3), transparent 45%);
  color: #f4f8ff;
}

.donate-wrap {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: clamp(1rem, 3.2vw, 1.6rem);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.02);
}

.donate-box {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  min-height: 180px;
  padding: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.97);
}

.faq-section {
  border-top: 1px solid rgba(14, 23, 37, 0.08);
}

.faq-list {
  display: grid;
  gap: 0.65rem;
}

.faq-list details {
  border: 1px solid rgba(14, 23, 37, 0.14);
  border-radius: 12px;
  background: #ffffff;
  padding: 0.8rem 0.9rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
  color: #101c2d;
}

.faq-list p {
  margin: 0.7rem 0 0;
  color: var(--ink-soft);
}

.legal-section {
  padding-top: 2.3rem;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.legal-card {
  display: block;
  border: 1px solid rgba(14, 23, 37, 0.14);
  border-radius: 14px;
  padding: 0.95rem 1rem;
  text-decoration: none;
  background: #ffffff;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.legal-card:hover {
  transform: translateY(-2px);
  border-color: #6ea4d8;
}

.site-footer {
  background: #08111d;
  color: #c5d4e8;
  border-top: 1px solid rgba(197, 212, 232, 0.2);
  text-align: center;
  padding: 2rem 1rem;
}

.site-footer p {
  margin: 0.2rem 0;
}

.footer-links {
  margin-top: 0.7rem;
}

.footer-links a {
  margin: 0 0.5rem;
  color: #e2efff;
  text-decoration: none;
  font-weight: 700;
}

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

.legal-page {
  padding: 6.4rem 0 3rem;
  background:
    linear-gradient(180deg, rgba(11, 20, 36, 0.9) 0%, rgba(10, 18, 30, 0.94) 220px, var(--paper) 220px);
}

.legal-wrap {
  width: min(920px, 92vw);
  margin: 0 auto;
  border-radius: 18px;
  border: 1px solid rgba(14, 23, 37, 0.16);
  padding: clamp(1rem, 3vw, 1.7rem);
  background: #fff;
  box-shadow: var(--shadow);
}

.legal-wrap h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-transform: uppercase;
}

.legal-wrap h2 {
  margin-top: 1.35rem;
  font-size: 1.2rem;
}

.source-note {
  border: 1px solid rgba(14, 23, 37, 0.14);
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  color: #2a425a;
  background: #eff6ff;
}

.legal-wrap iframe {
  width: 100%;
  min-height: 72vh;
  border: 1px solid #c4d7ea;
  border-radius: 12px;
  background: #fff;
}

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

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

@media (max-width: 1060px) {
  .hero-grid,
  .split,
  .facility-grid,
  .impact-grid,
  .donate-wrap,
  .card-grid,
  .equipment-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0.8rem;
    width: min(280px, 90vw);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(5, 11, 20, 0.96);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .site-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding-top: 6.9rem;
    padding-bottom: 2.8rem;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .hero-copy h1 {
    font-size: clamp(1.7rem, 12vw, 2.55rem);
  }

  .hero-text {
    font-size: 0.95rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .facility-steps article,
  .equipment-card,
  .impact-grid article,
  .info-card,
  .legal-card {
    padding: 0.82rem;
  }

  .site-footer {
    font-size: 0.92rem;
  }
}
