:root {
  color-scheme: dark;
  --bg: #05070d;
  --bg-2: #08111d;
  --surface: #0d1422;
  --surface-2: #121d31;
  --surface-3: #182840;
  --line: #273955;
  --line-strong: #3d5d85;
  --text: #f5f7fb;
  --muted: #a7b4c7;
  --muted-2: #73829a;
  --cyan: #39d9ff;
  --blue: #6b8cff;
  --green: #9bf45d;
  --magenta: #f35ab7;
  --amber: #f6b646;
  --red: #ff7068;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --radius: 18px;
  --radius-sm: 10px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(90deg, rgba(57, 217, 255, 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(155, 244, 93, 0.035) 1px, transparent 1px),
    linear-gradient(145deg, #05070d 0%, #071221 42%, #0b0f19 100%);
  background-size: 44px 44px, 44px 44px, auto;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 7, 13, 0.05), rgba(5, 7, 13, 0.84)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 4px);
}

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

a {
  color: inherit;
}

p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

ul,
ol {
  margin: 0;
  padding-left: 1.15rem;
}

li + li {
  margin-top: 0.5rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 50;
  transform: translateY(-150%);
  border-radius: 999px;
  background: var(--cyan);
  color: #00121b;
  padding: 0.65rem 1rem;
  font-weight: 800;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(92, 132, 180, 0.28);
  background: rgba(5, 9, 17, 0.88);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  color: var(--text);
  font-size: 1.04rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(57, 217, 255, 0.52);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(57, 217, 255, 0.22), rgba(246, 182, 70, 0.12));
  color: var(--cyan);
  font-weight: 950;
  box-shadow: inset 0 0 24px rgba(57, 217, 255, 0.16);
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  padding: 0.52rem 0.82rem;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 750;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link[aria-current="page"] {
  background: rgba(57, 217, 255, 0.09);
  color: var(--text);
  outline: none;
}

.nav-link.donate {
  margin-left: 0.25rem;
  border: 1px solid rgba(155, 244, 93, 0.52);
  background: rgba(155, 244, 93, 0.1);
  color: var(--green);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  width: 18px;
  height: 2px;
  display: block;
  background: currentColor;
  border-radius: 999px;
}

.nav-toggle::before {
  transform: translateY(-6px);
}

.nav-toggle::after {
  transform: translateY(6px);
}

.section {
  padding: clamp(3.5rem, 8vw, 7rem) 0;
}

.section-tight {
  padding: clamp(2.2rem, 5vw, 4.5rem) 0;
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  padding: clamp(3rem, 7vw, 5.8rem) 0 clamp(2.8rem, 6vw, 4.5rem);
  border-bottom: 1px solid rgba(92, 132, 180, 0.22);
}

.hero-short {
  min-height: auto;
  padding-top: clamp(3.2rem, 7vw, 6.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.86fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.hero-stack {
  max-width: 820px;
}

.eyebrow,
.kicker {
  margin-bottom: 0.9rem;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 920px;
  font-size: clamp(2.55rem, 7vw, 6.5rem);
  font-weight: 900;
}

.hero-short h1 {
  font-size: clamp(2.35rem, 6vw, 5.2rem);
}

.lead {
  max-width: 760px;
  margin-top: 1.25rem;
  color: #dce6f5;
  font-size: clamp(1.08rem, 2vw, 1.34rem);
}

.muted {
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.7rem;
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid rgba(57, 217, 255, 0.56);
  border-radius: 999px;
  background: var(--cyan);
  color: #00121b;
  padding: 0.72rem 1.05rem;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 12px 34px rgba(57, 217, 255, 0.18);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.btn-secondary {
  background: rgba(155, 244, 93, 0.13);
  border-color: rgba(155, 244, 93, 0.52);
  color: var(--green);
  box-shadow: none;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(167, 180, 199, 0.32);
  color: var(--text);
  box-shadow: none;
}

.btn-disabled {
  cursor: not-allowed;
  border-color: rgba(167, 180, 199, 0.24);
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted-2);
  box-shadow: none;
}

.radio-panel,
.visual-panel {
  border: 1px solid rgba(57, 217, 255, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(18, 29, 49, 0.86), rgba(6, 13, 23, 0.94)),
    repeating-linear-gradient(90deg, rgba(57, 217, 255, 0.06) 0 1px, transparent 1px 14px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.radio-panel {
  padding: 1rem;
}

.radio-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.signal-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 22px rgba(155, 244, 93, 0.8);
}

zeno-player {
  display: block;
  width: 100%;
  min-height: 360px;
  border-radius: 14px;
  overflow: hidden;
}

.image-frame {
  position: relative;
  border: 1px solid rgba(92, 132, 180, 0.28);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.image-frame img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.image-frame.contain img {
  object-fit: contain;
  background: #071020;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-size: clamp(1.9rem, 4vw, 3.4rem);
}

.section-heading p {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 1.06rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

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

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

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

.card,
.project-card,
.note-card {
  border: 1px solid rgba(92, 132, 180, 0.28);
  border-radius: var(--radius);
  background: rgba(13, 20, 34, 0.84);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.card,
.note-card {
  padding: clamp(1.1rem, 2vw, 1.45rem);
}

.project-card {
  overflow: hidden;
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid rgba(92, 132, 180, 0.28);
}

.project-card .project-body {
  padding: clamp(1.15rem, 2.3vw, 1.65rem);
}

.card h3,
.project-card h3,
.note-card h3 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.card p,
.project-card p,
.note-card p {
  margin-top: 0.7rem;
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}

.tag-list li,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  border: 1px solid rgba(92, 132, 180, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: #dce6f5;
  padding: 0.28rem 0.66rem;
  font-size: 0.82rem;
  font-weight: 750;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.stat {
  border: 1px solid rgba(92, 132, 180, 0.25);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  padding: 1rem;
}

.stat strong {
  display: block;
  color: var(--cyan);
  font-size: 1.5rem;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.2rem, 4vw, 3rem);
  align-items: start;
}

.callout {
  border-block: 1px solid rgba(92, 132, 180, 0.22);
  background: rgba(6, 13, 23, 0.62);
}

.subnav-wrap {
  border-bottom: 1px solid rgba(92, 132, 180, 0.22);
  background: rgba(8, 17, 29, 0.74);
}

.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.85rem 0;
}

.subnav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid rgba(92, 132, 180, 0.26);
  border-radius: 999px;
  color: var(--muted);
  padding: 0.42rem 0.75rem;
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration: none;
}

.subnav a:hover,
.subnav a:focus-visible,
.subnav a[aria-current="page"] {
  color: var(--text);
  border-color: rgba(57, 217, 255, 0.5);
  background: rgba(57, 217, 255, 0.08);
  outline: none;
}

.timeline {
  display: grid;
  gap: 0.85rem;
  padding: 0;
  list-style: none;
}

.timeline li {
  margin: 0;
  border-left: 2px solid rgba(57, 217, 255, 0.5);
  padding: 0.25rem 0 0.25rem 1rem;
  color: var(--muted);
}

.timeline strong {
  display: block;
  color: var(--text);
}

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

.faq-item {
  border: 1px solid rgba(92, 132, 180, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(13, 20, 34, 0.84);
  padding: 1rem 1.1rem;
}

.faq-item summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 850;
}

.faq-item p {
  margin-top: 0.75rem;
  color: var(--muted);
}

.notice {
  border: 1px solid rgba(246, 182, 70, 0.38);
  border-radius: var(--radius);
  background: rgba(246, 182, 70, 0.08);
  color: #ffe6af;
  padding: 1rem 1.15rem;
}

.download-box {
  border: 1px solid rgba(155, 244, 93, 0.34);
  border-radius: var(--radius);
  background: rgba(155, 244, 93, 0.08);
  padding: clamp(1.2rem, 2.5vw, 1.8rem);
}

.source-box {
  border: 1px dashed rgba(167, 180, 199, 0.4);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  padding: clamp(1.1rem, 2vw, 1.4rem);
}

.site-footer {
  border-top: 1px solid rgba(92, 132, 180, 0.24);
  background: #05070d;
  padding: 2.6rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: start;
}

.footer-title {
  font-size: 1.08rem;
  font-weight: 900;
}

.footer-copy {
  margin-top: 0.5rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem 1rem;
}

.footer-links a {
  color: var(--muted);
  font-weight: 750;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--cyan);
  outline: none;
}

.tiny {
  font-size: 0.88rem;
  color: var(--muted-2);
}

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .header-inner {
    min-height: auto;
    flex-wrap: wrap;
    padding: 0.75rem 0;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    display: none;
    width: 100%;
    margin-left: 0;
    padding-top: 0.4rem;
    flex-direction: column;
    align-items: stretch;
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .nav-link {
    justify-content: flex-start;
    border: 1px solid rgba(92, 132, 180, 0.2);
    border-radius: 12px;
    padding-inline: 0.9rem;
  }

  .nav-link.donate {
    margin-left: 0;
  }

  .hero {
    min-height: auto;
  }

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

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

  .btn {
    width: 100%;
  }

  zeno-player {
    min-height: 300px;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}
