:root {
  --color-bg: #ffffff;
  --color-dark: #0f1117;
  --color-text: #1c1f26;
  --color-muted: #5f6877;
  --color-light: #f5f7fa;
  --color-primary: #2d8cff;
  --color-secondary: #00c2ff;
  --color-border: rgba(28, 31, 38, 0.1);
  --shadow-soft: 0 24px 80px rgba(15, 17, 23, 0.1);
  --shadow-blue: 0 22px 70px rgba(45, 140, 255, 0.2);
  --radius: 8px;
  --container-narrow: 920px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: #0d6efd;
}

:focus-visible {
  outline: 3px solid rgba(45, 140, 255, 0.55);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10000;
  border-radius: var(--radius);
  background: var(--color-dark);
  color: #fff;
  padding: 0.75rem 1rem;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-color: var(--color-border);
  box-shadow: 0 12px 32px rgba(15, 17, 23, 0.06);
}

.navbar {
  min-height: 76px;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--color-text);
  font-weight: 760;
}

.navbar-brand span {
  letter-spacing: 0;
}

.nav-link {
  color: rgba(28, 31, 38, 0.72);
  font-weight: 650;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--color-text);
}

.btn {
  border-radius: 999px;
  font-weight: 740;
  letter-spacing: 0;
  padding: 0.78rem 1.2rem;
}

.btn-primary {
  border-color: var(--color-primary);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  box-shadow: 0 14px 34px rgba(45, 140, 255, 0.24);
}

.btn-primary:hover {
  border-color: #1779ef;
  background: linear-gradient(135deg, #1779ef, #00aee6);
}

.hero-section {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: 9rem 0 6rem;
}

.hero-section::after {
  position: absolute;
  inset: auto 0 0;
  height: 24%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff);
  content: "";
}

.hero-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}

.particle-field {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 28%, rgba(0, 194, 255, 0.28) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 22%, rgba(45, 140, 255, 0.25) 0 2px, transparent 3px),
    radial-gradient(circle at 65% 70%, rgba(0, 194, 255, 0.2) 0 2px, transparent 3px),
    radial-gradient(circle at 32% 76%, rgba(45, 140, 255, 0.18) 0 2px, transparent 3px);
  animation: drift 12s ease-in-out infinite alternate;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
  text-align: center;
}

.hero-logo {
  margin-bottom: 1.35rem;
  filter: drop-shadow(0 20px 42px rgba(45, 140, 255, 0.25));
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--color-text);
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.03;
}

h1 {
  max-width: 940px;
  margin: 0 auto;
  font-size: clamp(3.35rem, 8vw, 7.8rem);
}

h2 {
  font-size: clamp(2.35rem, 5vw, 4.6rem);
}

h3 {
  font-size: 1.65rem;
}

.hero-subtitle {
  max-width: 760px;
  margin: 1.4rem auto 0;
  color: var(--color-muted);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2rem;
}

.section {
  padding: clamp(5rem, 9vw, 8rem) 0;
}

.section-lead {
  color: var(--color-muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.challenge-section {
  border-top: 1px solid var(--color-border);
}

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

.threat-grid div,
.community-grid article,
.stat-card,
.org-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
}

.threat-grid div {
  display: flex;
  min-height: 96px;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem;
  box-shadow: 0 20px 50px rgba(15, 17, 23, 0.06);
}

.threat-grid i {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: rgba(45, 140, 255, 0.1);
  color: var(--color-primary);
}

.threat-grid span {
  font-weight: 740;
}

.mission-section {
  position: relative;
  overflow: hidden;
  background: var(--color-light);
}

.mission-section::before {
  position: absolute;
  inset: -35% 20% auto;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 194, 255, 0.22), transparent 65%);
  content: "";
}

.mission-section .container {
  position: relative;
  max-width: var(--container-narrow);
}

.mission-copy {
  max-width: 820px;
  margin: 1.5rem auto 0;
  color: var(--color-muted);
  font-size: 1.2rem;
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 3rem;
}

.org-section {
  background:
    linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

.org-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 1.6rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.org-card:hover {
  transform: translateY(-6px);
  border-color: rgba(45, 140, 255, 0.42);
  box-shadow: var(--shadow-blue);
}

.featured-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 248, 255, 0.98));
}

.card-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--color-dark);
  color: var(--color-secondary);
  font-size: 1.35rem;
}

.card-kicker {
  margin: 1.25rem 0 0.35rem;
  color: var(--color-primary);
  font-weight: 800;
  text-transform: uppercase;
}

.org-card p {
  color: var(--color-muted);
}

.org-card ul {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 1.4rem;
  padding-left: 1.15rem;
  color: var(--color-text);
}

.org-card a {
  margin-top: auto;
  font-weight: 800;
}

.ecosystem-section {
  overflow: hidden;
  background: var(--color-dark);
  color: #fff;
}

.light h2,
.ecosystem-section .eyebrow,
.final-cta .eyebrow {
  color: #fff;
}

.ecosystem-map {
  position: relative;
  min-height: 620px;
  max-width: 980px;
  margin: 0 auto;
}

.connection-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.connection-lines line {
  stroke: var(--color-secondary);
  stroke-dasharray: 7 13;
  stroke-linecap: round;
  stroke-width: 2;
  opacity: 0.75;
  animation: dash 18s linear infinite;
}

.node {
  position: absolute;
  display: grid;
  width: 156px;
  min-height: 72px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.14), 0 20px 50px rgba(0, 0, 0, 0.22);
  color: #fff;
  font-weight: 800;
  text-align: center;
  backdrop-filter: blur(14px);
  animation: float 6s ease-in-out infinite;
}

.center-node {
  left: 50%;
  top: 50%;
  width: 190px;
  min-height: 96px;
  transform: translate(-50%, -50%);
  border-color: rgba(0, 194, 255, 0.55);
  background: linear-gradient(135deg, rgba(45, 140, 255, 0.32), rgba(0, 194, 255, 0.18));
  box-shadow: 0 0 70px rgba(45, 140, 255, 0.25);
}

.node-1 { left: 50%; top: 0; transform: translateX(-50%); }
.node-2 { right: 6%; top: 9%; animation-delay: -.7s; }
.node-3 { right: 0; top: 50%; transform: translateY(-50%); animation-delay: -1.4s; }
.node-4 { right: 6%; bottom: 9%; animation-delay: -2.1s; }
.node-5 { left: 50%; bottom: 0; transform: translateX(-50%); animation-delay: -2.8s; }
.node-6 { left: 6%; bottom: 9%; animation-delay: -3.5s; }
.node-7 { left: 0; top: 50%; transform: translateY(-50%); animation-delay: -4.2s; }
.node-8 { left: 6%; top: 9%; animation-delay: -4.9s; }

.ai-section {
  background: #fff;
}

.ai-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.ai-list span {
  border: 1px solid rgba(45, 140, 255, 0.2);
  border-radius: 999px;
  background: rgba(45, 140, 255, 0.08);
  color: #155fb8;
  font-weight: 740;
  padding: 0.55rem 0.85rem;
}

.ai-graphic {
  filter: drop-shadow(0 24px 54px rgba(45, 140, 255, 0.14));
}

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

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

.community-grid article {
  display: flex;
  min-height: 110px;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.community-grid article:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 140, 255, 0.4);
  background: #fff;
}

.community-grid i {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: var(--radius);
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 10px 24px rgba(45, 140, 255, 0.12);
}

.community-grid span {
  color: var(--color-text);
  font-weight: 790;
}

.impact-section {
  background: #fff;
}

.stat-card {
  min-height: 250px;
  padding: 1.4rem;
  background: linear-gradient(180deg, #fff, #f8fbff);
  box-shadow: 0 20px 60px rgba(15, 17, 23, 0.07);
}

.stat-card strong {
  display: block;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  background-clip: text;
  color: transparent;
  font-size: clamp(3rem, 6vw, 4.4rem);
  font-weight: 850;
  line-height: 1;
}

.stat-card p {
  color: var(--color-muted);
  font-size: 1.06rem;
}

.final-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(5.5rem, 10vw, 9rem) 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 194, 255, 0.32), transparent 38%),
    linear-gradient(180deg, #111827, var(--color-dark));
  color: #fff;
}

.final-cta::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent);
}

.final-cta .container {
  position: relative;
}

.final-cta h2 {
  color: #fff;
}

.final-cta p {
  max-width: 640px;
  margin: 1rem auto;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.25rem;
}

.final-cta strong {
  display: block;
  margin-top: 1.35rem;
  color: #fff;
  font-size: clamp(2.25rem, 5vw, 4.8rem);
  font-weight: 850;
  line-height: 1.04;
}

.site-footer {
  padding: 2.5rem 0;
  background: #080a0f;
  color: rgba(255, 255, 255, 0.68);
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 820;
}

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

.copyright {
  font-size: 0.92rem;
}

.social-links {
  display: flex;
  gap: 0.7rem;
}

.social-links a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: #fff;
}

.social-links a:hover {
  border-color: rgba(0, 194, 255, 0.7);
  color: var(--color-secondary);
}

@keyframes drift {
  from { transform: translate3d(-10px, -8px, 0); }
  to { transform: translate3d(16px, 14px, 0); }
}

@keyframes dash {
  to { stroke-dashoffset: -320; }
}

@keyframes float {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -10px; }
}

@media (min-width: 768px) {
  .community-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .community-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    border-top: 1px solid var(--color-border);
    padding: 1rem 0;
  }

  .ecosystem-map {
    display: grid;
    min-height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .connection-svg {
    display: none;
  }

  .node,
  .center-node,
  .node-1,
  .node-2,
  .node-3,
  .node-4,
  .node-5,
  .node-6,
  .node-7,
  .node-8 {
    position: static;
    width: auto;
    min-height: 88px;
    transform: none;
  }

  .center-node {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575.98px) {
  .hero-section {
    padding-top: 7.5rem;
  }

  .hero-actions,
  .cta-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn-lg {
    width: 100%;
  }

  .threat-grid,
  .community-grid,
  .ecosystem-map {
    grid-template-columns: 1fr;
  }

  .site-footer .container {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
