@font-face {
  font-family: "PP Neue Montreal";
  src: url("/fonts/PPNeueMontreal-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PP Neue Montreal";
  src: url("/fonts/PPNeueMontreal-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #030305;
  --ink: #f7f5ef;
  --muted: #b7b1a7;
  --line: rgba(255, 255, 255, 0.14);
  --panel: rgba(8, 10, 15, 0.56);
  --purple: #8f6dff;
  --green: #19c39a;
  --gold: #ffbf3c;
  --pink: #ff5fa2;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "PP Neue Montreal", Inter, system-ui, sans-serif;
  overflow-x: hidden;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

#mathu-scene {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 72% 42%, rgba(25, 195, 154, 0.14), transparent 26rem),
    radial-gradient(circle at 47% 47%, rgba(143, 109, 255, 0.18), transparent 34rem),
    #030305;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.19;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 3px 3px, 5px 5px;
  mix-blend-mode: screen;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(22px, 4vw, 56px);
  pointer-events: none;
}

.brand,
.site-nav {
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: conic-gradient(from 120deg, var(--green), var(--purple), var(--gold), var(--green));
  box-shadow: 0 0 28px rgba(143, 109, 255, 0.28);
  font-size: 15px;
}

.brand-name {
  font-size: 18px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 34px);
  color: rgba(247, 245, 239, 0.7);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav a {
  transition: color 180ms ease, transform 180ms ease;
}

.site-nav a:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

.section-band {
  position: relative;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(96px, 13vw, 190px) clamp(22px, 4vw, 48px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: end;
  min-height: 100vh;
  gap: clamp(32px, 8vw, 96px);
  padding-top: 140px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 26px;
  font-size: clamp(64px, 10.5vw, 152px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.88;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(42px, 6vw, 86px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.98;
}

h3 {
  margin-bottom: 16px;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.05;
}

.lede,
.outcome-copy p {
  max-width: 560px;
  color: rgba(247, 245, 239, 0.82);
  font-size: clamp(20px, 2.2vw, 27px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.mode-button {
  min-width: 96px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(247, 245, 239, 0.7);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.mode-button:hover,
.mode-button.is-active {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(143, 109, 255, 0.22);
  color: var(--ink);
  transform: translateY(-1px);
}

.mission-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--panel);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.panel-label {
  display: block;
  margin-bottom: 8px;
  color: rgba(247, 245, 239, 0.52);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mission-panel strong {
  display: block;
  font-size: 28px;
  font-weight: 400;
}

.mission-panel p {
  color: rgba(247, 245, 239, 0.72);
  line-height: 1.5;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 22px 0 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
}

.signal-grid div {
  padding: 14px 12px;
  background: rgba(5, 6, 10, 0.78);
}

.signal-grid dt {
  margin-bottom: 8px;
  color: rgba(247, 245, 239, 0.48);
  font-size: 11px;
  text-transform: uppercase;
}

.signal-grid dd {
  margin: 0;
  font-size: 20px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 48px;
}

.section-heading.narrow {
  max-width: 620px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature-card,
.pathway-list li {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(9, 11, 17, 0.52);
  backdrop-filter: blur(16px);
}

.feature-card {
  min-height: 300px;
  padding: 24px;
}

.feature-index {
  display: block;
  margin-bottom: 90px;
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
}

.feature-card p,
.pathway-list p {
  color: rgba(247, 245, 239, 0.68);
  line-height: 1.55;
}

.pathway-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: pathway;
}

.pathway-list li {
  min-height: 240px;
  padding: 22px;
  counter-increment: pathway;
}

.pathway-list li::before {
  content: "0" counter(pathway);
  display: block;
  margin-bottom: 54px;
  color: rgba(247, 245, 239, 0.42);
  font-size: 12px;
  font-weight: 600;
}

.pathway-list span {
  display: block;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 26px;
}

.outcomes-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
}

.nebula-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 600;
  white-space: nowrap;
  transition: background 180ms ease, transform 180ms ease;
}

.nebula-link:hover {
  background: rgba(25, 195, 154, 0.16);
  transform: translateY(-1px);
}

.nebula-link svg {
  width: 22px;
  height: 22px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 34px clamp(22px, 4vw, 48px) 52px;
  color: rgba(247, 245, 239, 0.58);
  font-size: 14px;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
  }

  .site-nav {
    gap: 14px;
    font-size: 11px;
  }

  .hero,
  .outcomes-section {
    grid-template-columns: 1fr;
  }

  .mission-panel {
    max-width: 520px;
  }

  .feature-grid,
  .pathway-list {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .pathway-list li {
    min-height: auto;
  }

  .feature-index,
  .pathway-list li::before {
    margin-bottom: 42px;
  }
}

@media (max-width: 620px) {
  #mathu-scene {
    opacity: 0.62;
  }

  .grain {
    opacity: 0.12;
  }

  .site-header {
    position: absolute;
  }

  .site-nav {
    display: none;
  }

  .hero {
    padding-top: 112px;
  }

  .mission-panel,
  .feature-card,
  .pathway-list li {
    background: rgba(5, 6, 10, 0.82);
  }

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

  .mode-button {
    min-width: 0;
    padding: 11px 10px;
  }

  .site-footer {
    flex-direction: column;
  }
}
