@import url('https://fonts.googleapis.com/css2?family=Oxanium:wght@500;600;700;800&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --bg: #020308;
  --bg-soft: #060913;
  --panel: rgba(10, 14, 25, 0.82);
  --panel-strong: #0a0f1b;
  --line: rgba(255,255,255,.10);
  --line-strong: rgba(255,255,255,.18);
  --text: #f7f9ff;
  --muted: #9ea9bc;
  --muted-2: #6f7b91;
  --cyan: #3fe5ff;
  --blue: #4674ff;
  --purple: #9168ff;
  --pink: #ff4fa3;
  --red: #ff3d5f;
  --green: #62f5ad;
  --gold: #ffd75a;
  --page-accent: var(--cyan);
  --page-accent-2: var(--purple);
  --display: 'Oxanium', 'Segoe UI', sans-serif;
  --body: 'Poppins', Arial, sans-serif;
  --shell: min(1180px, calc(100% - 40px));
  --radius: 20px;
  --shadow: 0 24px 70px rgba(0,0,0,.34);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% -10%, color-mix(in srgb, var(--page-accent) 10%, transparent), transparent 32rem),
    radial-gradient(circle at 90% 30%, color-mix(in srgb, var(--page-accent-2) 8%, transparent), transparent 36rem),
    var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.65;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -5;
  opacity: .025;
  background-image:
    linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 36px 36px;
  content: '';
  pointer-events: none;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--page-accent); color: #001015; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  transform: translateY(-160%);
  background: #fff;
  color: #000;
  font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }

/* Centered top navigation on every redesigned page */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  justify-content: center;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  background: linear-gradient(180deg, rgba(2,3,8,.96), rgba(2,3,8,.82));
  backdrop-filter: blur(18px);
}
.topnav {
  display: flex;
  max-width: min(100%, 900px);
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  box-shadow: 0 10px 34px rgba(0,0,0,.26);
  scrollbar-width: none;
}
.topnav::-webkit-scrollbar { display: none; }
.topnav a {
  flex: 0 0 auto;
  position: relative;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  color: #b7c0d0;
  font: 700 9px/1 var(--display);
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.topnav a:hover,
.topnav a:focus-visible {
  background: rgba(255,255,255,.07);
  color: #fff;
  outline: none;
  transform: translateY(-1px);
}
.topnav a.active,
.topnav a[aria-current='page'] {
  background: linear-gradient(115deg, color-mix(in srgb, var(--page-accent) 82%, #fff 0%), var(--page-accent-2));
  color: #02050a;
  box-shadow: 0 0 26px color-mix(in srgb, var(--page-accent) 20%, transparent);
}
.topnav a.nav-donate {
  border: 1px solid color-mix(in srgb, var(--red) 55%, transparent);
  color: #ffdbe3;
}

.shell { width: var(--shell); margin-inline: auto; }
.page-section { padding: clamp(78px, 9vw, 130px) 0; position: relative; }
.page-section.compact { padding-block: clamp(60px, 7vw, 92px); }
.section-rule { border-top: 1px solid rgba(255,255,255,.07); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--page-accent);
  font: 800 9px/1.2 var(--display);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow::before {
  width: 24px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
  content: '';
}
.display-title,
.section-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.055em;
  text-transform: uppercase;
}
.display-title { font-size: clamp(54px, 9vw, 122px); line-height: .87; }
.section-title { font-size: clamp(38px, 5.4vw, 72px); line-height: .96; }
.outline-word {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--page-accent);
  text-shadow: 0 0 28px color-mix(in srgb, var(--page-accent) 16%, transparent);
}
.lead {
  max-width: 760px;
  margin: 24px 0 0;
  color: #c2cad8;
  font-size: clamp(15px, 1.4vw, 18px);
}
.muted { color: var(--muted); }

.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: 800 9px/1 var(--display);
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); outline: none; }
.btn-primary {
  background: linear-gradient(115deg, var(--page-accent), var(--page-accent-2));
  color: #001016;
  box-shadow: 0 12px 34px color-mix(in srgb, var(--page-accent) 14%, transparent);
}
.btn-secondary {
  border-color: var(--line-strong);
  background: rgba(255,255,255,.035);
  color: #fff;
}
.btn-secondary:hover, .btn-secondary:focus-visible {
  border-color: var(--page-accent);
  background: color-mix(in srgb, var(--page-accent) 6%, transparent);
}

.glass-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 18px;
}
.feature-card {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-strong);
  box-shadow: 0 20px 48px rgba(0,0,0,.24);
  isolation: isolate;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.feature-card:hover {
  transform: translateY(-7px);
  border-color: color-mix(in srgb, var(--page-accent) 35%, transparent);
  box-shadow: 0 30px 65px rgba(0,0,0,.34);
}
.feature-card > img,
.feature-card .card-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .62;
  transition: transform .55s ease, opacity .3s ease;
}
.feature-card:hover > img,
.feature-card:hover .card-image { transform: scale(1.04); opacity: .72; }
.feature-card::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, rgba(2,3,8,.08) 15%, rgba(2,3,8,.95) 90%);
  content: '';
}
.feature-card-content {
  position: absolute;
  inset: auto 24px 24px;
}
.feature-card small {
  color: var(--page-accent);
  font: 800 8px/1 var(--display);
  letter-spacing: .15em;
  text-transform: uppercase;
}
.feature-card h3 {
  margin: 8px 0 8px;
  font: 800 25px/1.02 var(--display);
  letter-spacing: -.03em;
  text-transform: uppercase;
}
.feature-card p { margin: 0; color: #b5bfd0; font-size: 12px; }

.split-heading {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 460px);
  gap: 50px;
  align-items: end;
  margin-bottom: 46px;
}
.split-heading p { margin: 0; color: var(--muted); font-size: 13px; }

.site-footer {
  padding: 38px 20px 46px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: #010207;
}
.footer-inner {
  width: var(--shell);
  margin-inline: auto;
  text-align: center;
}
.footer-brand {
  color: #fff;
  font: 800 14px/1 var(--display);
  letter-spacing: .12em;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
  margin-top: 16px;
}
.footer-links a {
  color: #9ba6b8;
  font: 650 8px/1 var(--display);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.footer-links a:hover, .footer-links a:focus-visible { color: var(--page-accent); outline: none; }
.footer-credit,
.footer-copy {
  margin: 16px auto 0;
  color: #657084;
  font-size: 10px;
}
.footer-credit a { color: #aab4c5; }

/* Generic visual hero used by inner pages */
.visual-hero {
  position: relative;
  min-height: min(760px, 82vh);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.visual-hero .hero-media {
  position: absolute;
  inset: 0;
  z-index: -4;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.visual-hero::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(2,3,8,.96) 0%, rgba(2,3,8,.68) 46%, rgba(2,3,8,.20) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(2,3,8,.08) 55%);
  content: '';
}
.visual-hero::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .15;
  background: linear-gradient(120deg, transparent 40%, color-mix(in srgb, var(--page-accent) 26%, transparent));
  content: '';
}
.hero-copy-block {
  width: var(--shell);
  margin-inline: auto;
  padding: clamp(110px, 14vw, 170px) 0 clamp(70px, 9vw, 110px);
}
.hero-copy-block .lead { max-width: 700px; }

@media (max-width: 900px) {
  .split-heading { grid-template-columns: 1fr; gap: 20px; }
  .topnav { justify-content: flex-start; }
}

@media (max-width: 620px) {
  :root { --shell: calc(100% - 24px); --radius: 16px; }
  html { scroll-padding-top: 78px; }
  .site-header { padding: 9px 8px; }
  .topnav { width: 100%; border-radius: 16px; padding: 5px; }
  .topnav a { min-height: 35px; padding-inline: 11px; font-size: 8px; }
  .page-section { padding-block: 72px; }
  .button-row { flex-direction: column; }
  .btn { width: 100%; }
  .display-title { font-size: clamp(49px, 16vw, 78px); }
  .section-title { font-size: clamp(35px, 11vw, 52px); }
  .visual-hero { min-height: 650px; }
  .visual-hero::before {
    background:
      linear-gradient(180deg, rgba(2,3,8,.25) 0%, rgba(2,3,8,.82) 48%, var(--bg) 100%);
  }
  .hero-copy-block { padding-top: 150px; }
  .feature-card { min-height: 290px; }
}

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


/* Progressive same-origin page transition.
   Supported browsers animate between redesigned Duffball16 pages;
   unsupported browsers ignore this safely. */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 260ms;
  animation-timing-function: ease;
}


/* =========================================================
   FINAL PHONE NAVIGATION CAPSULE
   Desktop keeps the centered full bar.
   Phones get one small clickable current-page box.
   ========================================================= */
.mobile-nav-toggle {
  display: none;
}

/* Keep the original full bar centered on tablets too. */
@media (min-width: 701px) and (max-width: 900px) {
  .topnav {
    justify-content: center;
    overflow-x: visible;
  }

  .topnav a {
    padding-inline: 11px;
    font-size: 8px;
  }
}

@media (max-width: 700px) {
  :root {
    --mobile-nav-height: 64px;
  }

  html {
    scroll-padding-top: 74px;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 500;
    display: block;
    width: 100%;
    min-height: var(--mobile-nav-height);
    padding: 8px 10px;
    overflow: visible;
    border-bottom: 0;
    background:
      linear-gradient(180deg, rgba(2, 3, 8, .98), rgba(2, 3, 8, .88));
  }

  .mobile-nav-toggle {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    width: min(100%, 520px);
    min-height: 48px;
    margin: 0 auto;
    align-items: center;
    gap: 10px;
    padding: 6px 10px 6px 7px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background:
      linear-gradient(
        115deg,
        color-mix(in srgb, var(--page-accent) 8%, transparent),
        rgba(255, 255, 255, .035)
      );
    box-shadow: 0 10px 30px rgba(0, 0, 0, .32);
    color: #fff;
    cursor: pointer;
    text-align: left;
  }

  .mobile-nav-toggle:focus-visible {
    border-color: var(--page-accent);
    outline: 2px solid
      color-mix(in srgb, var(--page-accent) 30%, transparent);
    outline-offset: 2px;
  }

  .mobile-nav-brand {
    display: grid;
    width: 34px;
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid
      color-mix(in srgb, var(--page-accent) 48%, transparent);
    border-radius: 11px;
    background:
      color-mix(in srgb, var(--page-accent) 10%, transparent);
    color: var(--page-accent);
    font: 800 8px/1 var(--display);
    letter-spacing: .06em;
  }

  .mobile-nav-current {
    min-width: 0;
    overflow: hidden;
    color: #fff;
    font: 800 10px/1 var(--display);
    letter-spacing: .08em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .mobile-nav-hint {
    color: var(--muted-2);
    font: 700 7px/1 var(--display);
    letter-spacing: .12em;
    text-transform: uppercase;
  }

  .mobile-nav-chevron {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border-radius: 9px;
    background: rgba(255, 255, 255, .055);
    color: var(--page-accent);
    font-size: 16px;
    line-height: 1;
    transition: transform .22s ease, background .22s ease;
  }

  .site-header.mobile-nav-open .mobile-nav-chevron {
    background:
      color-mix(in srgb, var(--page-accent) 12%, transparent);
    transform: rotate(180deg);
  }

  .site-header .topnav {
    position: absolute;
    top: calc(100% - 4px);
    left: 50%;
    z-index: 2;
    display: grid;
    width: min(calc(100% - 20px), 520px);
    max-width: none;
    max-height: 0;
    margin: 0;
    padding: 0 8px;
    overflow: hidden;
    grid-template-columns: 1fr;
    gap: 5px;
    border: 0;
    border-radius: 18px;
    background: rgba(7, 10, 18, .985);
    box-shadow: 0 24px 55px rgba(0, 0, 0, .48);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -8px);
    transition:
      max-height .30s ease,
      padding .30s ease,
      opacity .20s ease,
      transform .30s cubic-bezier(.2, .75, .2, 1),
      visibility 0s linear .30s;
  }

  .site-header.mobile-nav-open .topnav {
    max-height: 520px;
    padding: 9px;
    border: 1px solid var(--line-strong);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
    transition:
      max-height .30s ease,
      padding .30s ease,
      opacity .20s ease,
      transform .30s cubic-bezier(.2, .75, .2, 1),
      visibility 0s;
  }

  .site-header .topnav a {
    width: 100%;
    min-height: 42px;
    justify-content: flex-start;
    padding: 0 14px;
    border-radius: 11px;
    font-size: 8px;
  }

  .site-header .topnav a[aria-current="page"] {
    justify-content: space-between;
  }

  .site-header .topnav a[aria-current="page"]::after {
    content: "CURRENT";
    opacity: .58;
    font-size: 6px;
    letter-spacing: .12em;
  }

  .site-header .topnav a.nav-donate {
    justify-content: center;
    margin-top: 2px;
  }

  body,
  main,
  .shell,
  .page-section,
  .visual-hero {
    max-width: 100%;
  }
}
