:root {
  --ink: #18181b;
  --paper: #fff9eb;
  --paper-deep: #f4e8cf;
  --red: #ff4f58;
  --orange: #ff9738;
  --yellow: #ffd84a;
  --green: #68d66d;
  --blue: #4fb9ff;
  --violet: #c67cff;
  --line: rgba(24, 24, 27, 0.16);
  --shadow: 0 24px 70px rgba(51, 38, 19, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 216, 74, 0.3), transparent 23rem),
    radial-gradient(circle at 92% 28%, rgba(79, 185, 255, 0.22), transparent 28rem),
    var(--paper);
  font-family: "Nunito Sans", Georgia, serif;
  font-size: 17px;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(24, 24, 27, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 24, 27, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
}

a { color: inherit; }
img { max-width: 100%; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.grain {
  position: fixed;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  width: min(1420px, calc(100% - 40px));
  margin: 20px auto 0;
  padding: 12px 14px 12px 18px;
  border: 1px solid transparent;
  border-radius: 22px;
  transition: 220ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(255, 249, 235, 0.86);
  box-shadow: 0 12px 40px rgba(51, 38, 19, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: "Chango", Impact, sans-serif;
  font-size: 1.22rem;
  text-decoration: none;
}

.brand img { filter: drop-shadow(0 8px 10px rgba(24, 24, 27, 0.12)); }

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 12px;
  font-family: "Azeret Mono", monospace;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover { background: rgba(24, 24, 27, 0.07); }
.site-nav .nav-cta { color: var(--paper); background: var(--ink); }
.site-nav .nav-cta:hover { color: var(--ink); background: var(--yellow); }

.menu-button { display: none; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(480px, 1.08fr);
  align-items: center;
  width: min(1420px, calc(100% - 40px));
  min-height: calc(100vh - 96px);
  margin: 0 auto;
  padding: 70px 0 90px;
  gap: 72px;
}

.launch-label,
.section-kicker {
  font-family: "Azeret Mono", monospace;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.launch-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.launch-label span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(104, 214, 109, 0.2);
}

.hero h1 {
  margin: 28px 0;
  font-family: "Chango", Impact, sans-serif;
  font-size: clamp(4rem, 8.5vw, 8.8rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.85;
}

.hero h1 em {
  color: transparent;
  background: linear-gradient(90deg, var(--red), var(--orange) 20%, #c69c00 38%, #269c50 58%, #247eca 78%, #8750b5);
  background-clip: text;
  -webkit-background-clip: text;
  font-style: normal;
}

.hero-lead {
  max-width: 640px;
  margin: 0;
  font-size: clamp(1.12rem, 2vw, 1.38rem);
  line-height: 1.6;
}

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

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 2px solid var(--ink);
  border-radius: 15px;
  font-family: "Azeret Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover { transform: translateY(-3px); box-shadow: 5px 6px 0 var(--ink); }
.button-dark { color: var(--paper); background: var(--ink); }
.button-light { background: rgba(255, 249, 235, 0.68); }

.spectrum-stage {
  position: relative;
  min-height: 670px;
  border: 2px solid var(--ink);
  border-radius: 48% 48% 42% 42% / 36% 36% 52% 52%;
  background: var(--blue);
  box-shadow: 18px 22px 0 var(--ink);
  overflow: hidden;
}

.sun-disc {
  position: absolute;
  top: 12%;
  right: 10%;
  width: 170px;
  height: 170px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 10px 10px 0 var(--ink);
}

.rainbow-arc {
  position: absolute;
  top: 15%;
  left: -20%;
  width: 88%;
  aspect-ratio: 1;
  border: 38px solid;
  border-bottom-color: transparent !important;
  border-left-color: transparent !important;
  border-radius: 50%;
  transform: rotate(-19deg);
}

.rainbow-red { border-color: var(--red); }
.rainbow-orange { inset: calc(15% + 30px) auto auto calc(-20% + 30px); width: calc(88% - 60px); border-color: var(--orange); }
.rainbow-yellow { inset: calc(15% + 60px) auto auto calc(-20% + 60px); width: calc(88% - 120px); border-color: var(--yellow); }
.rainbow-green { inset: calc(15% + 90px) auto auto calc(-20% + 90px); width: calc(88% - 180px); border-color: var(--green); }
.rainbow-blue { inset: calc(15% + 120px) auto auto calc(-20% + 120px); width: calc(88% - 240px); border-color: #2b78c9; }
.rainbow-violet { inset: calc(15% + 150px) auto auto calc(-20% + 150px); width: calc(88% - 300px); border-color: var(--violet); }

.stage-card {
  position: absolute;
  right: 8%;
  bottom: 9%;
  display: grid;
  width: 54%;
  gap: 14px;
  padding: 26px;
  border: 2px solid var(--ink);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 10px 12px 0 var(--ink);
  transform: rotate(3deg);
}

.stage-card span {
  font-family: "Azeret Mono", monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.stage-card strong { font-family: "Chango", Impact, sans-serif; font-size: clamp(1.25rem, 2.8vw, 2.3rem); line-height: 1.08; }

.stage-card img {
  width: 100%;
  max-height: 190px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  object-fit: cover;
}

.orbit-note {
  position: absolute;
  padding: 9px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-family: "Azeret Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.note-one { top: 7%; left: 7%; transform: rotate(-4deg); }
.note-two { right: 5%; bottom: 42%; transform: rotate(6deg); }

.marquee {
  border-block: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.marquee div {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 30px;
  padding: 18px 0;
  animation: ticker 26s linear infinite;
}

.marquee span { font-family: "Chango", Impact, sans-serif; font-size: 1.05rem; }
.marquee i { width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); }
@keyframes ticker { to { transform: translateX(-45%); } }

.section-wrap { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 130px 0; }

.manifesto-copy {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.72fr);
  justify-content: space-between;
  align-items: end;
  gap: 60px;
}

.manifesto-copy h2,
.roadmap-intro h2,
.family-callout h2 {
  margin: 22px 0;
  font-family: "Chango", Impact, sans-serif;
  font-size: clamp(2.8rem, 6vw, 6.2rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.manifesto-copy p,
.roadmap-intro p,
.family-callout p {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.7;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 70px;
}

.value-grid article {
  min-height: 290px;
  padding: 26px;
  border: 2px solid var(--ink);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.35);
}

.value-grid article:nth-child(1) { box-shadow: inset 0 8px 0 var(--red); }
.value-grid article:nth-child(2) { box-shadow: inset 0 8px 0 var(--green); }
.value-grid article:nth-child(3) { box-shadow: inset 0 8px 0 var(--blue); }
.value-number { font-family: "Azeret Mono", monospace; font-weight: 700; }
.value-grid h3 { margin: 70px 0 12px; font-family: "Chango", Impact, sans-serif; font-size: 1.45rem; }
.value-grid p { margin: 0; line-height: 1.6; }

.roadmap {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 90px;
  border-top: 2px solid var(--ink);
}

.roadmap-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.roadmap-list li {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.38);
}

.roadmap-list li > span,
.roadmap-list li > b { font-family: "Azeret Mono", monospace; font-size: 0.72rem; text-transform: uppercase; }
.roadmap-list li > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--paper-deep); }
.roadmap-list li strong { font-family: "Chango", Impact, sans-serif; font-size: 1.03rem; }
.roadmap-list li p { margin: 5px 0 0; font-size: 0.94rem; line-height: 1.45; }
.roadmap-list .complete { box-shadow: inset 8px 0 0 var(--green); }
.roadmap-list .active { color: var(--paper); background: var(--ink); box-shadow: inset 8px 0 0 var(--yellow); }
.roadmap-list .active > span { color: var(--ink); background: var(--yellow); }

.family-callout {
  position: relative;
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  align-items: center;
  min-height: 600px;
  padding-inline: clamp(30px, 7vw, 90px);
  border: 2px solid var(--ink);
  border-radius: 42px;
  background: var(--yellow);
  box-shadow: 14px 16px 0 var(--ink);
  overflow: hidden;
}

.family-callout > div:last-child { position: relative; z-index: 2; }
.family-rings { position: relative; min-height: 430px; }
.family-rings span { position: absolute; inset: 50% auto auto 45%; border: 34px solid; border-radius: 50%; transform: translate(-50%, -50%); }
.family-rings span:nth-child(1) { width: 390px; height: 390px; border-color: var(--red); }
.family-rings span:nth-child(2) { width: 270px; height: 270px; border-color: var(--blue); }
.family-rings span:nth-child(3) { width: 150px; height: 150px; border-color: var(--ink); background: var(--green); }

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(1420px, calc(100% - 40px));
  gap: 22px;
  margin: 130px auto 0;
  padding: 30px 0 38px;
  border-top: 2px solid var(--ink);
}

.site-footer p { margin: 0; text-align: center; }
.site-footer p a { font-weight: 900; }
.footer-links { display: flex; gap: 16px; font-family: "Azeret Mono", monospace; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }
.copyright { grid-column: 1 / -1; font-family: "Azeret Mono", monospace; font-size: 0.7rem; text-align: right; }

.error-page { display: grid; min-height: 100vh; place-items: center; padding: 24px; }
.error-card { max-width: 720px; padding: clamp(32px, 8vw, 80px); border: 2px solid var(--ink); border-radius: 36px; background: var(--yellow); box-shadow: 14px 16px 0 var(--ink); text-align: center; }
.error-card > span { display: block; margin-top: 22px; font-family: "Azeret Mono", monospace; font-size: 0.72rem; font-weight: 700; }
.error-card h1 { margin: 22px 0 12px; font-family: "Chango", Impact, sans-serif; font-size: clamp(2.6rem, 7vw, 5rem); line-height: 0.95; }
.error-card p { margin: 0 0 28px; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding-top: 50px; }
  .spectrum-stage { min-height: 590px; }
  .manifesto-copy, .roadmap, .family-callout { grid-template-columns: 1fr; }
  .family-rings { display: none; }
}

@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr auto; width: calc(100% - 24px); margin-top: 12px; background: rgba(255, 249, 235, 0.92); border-color: var(--line); }
  .menu-button { display: grid; width: 44px; height: 44px; place-content: center; gap: 6px; border: 0; border-radius: 12px; background: var(--ink); }
  .menu-button > span:not(.sr-only) { display: block; width: 20px; height: 2px; background: var(--paper); }
  .site-nav { position: absolute; top: calc(100% + 8px); right: 0; left: 0; display: none; align-items: stretch; padding: 12px; border: 2px solid var(--ink); border-radius: 18px; background: var(--paper); box-shadow: 8px 9px 0 var(--ink); }
  .site-nav.is-open { display: grid; }
  .site-nav a { text-align: center; }
  .hero { width: calc(100% - 24px); padding-top: 28px; gap: 42px; }
  .hero h1 { font-size: clamp(3.7rem, 18vw, 6rem); }
  .hero-actions, .button { width: 100%; }
  .spectrum-stage { min-height: 500px; border-radius: 36px; box-shadow: 9px 10px 0 var(--ink); }
  .sun-disc { width: 110px; height: 110px; }
  .rainbow-arc { border-width: 26px; }
  .rainbow-orange { inset: calc(15% + 20px) auto auto calc(-20% + 20px); }
  .rainbow-orange { width: calc(88% - 40px); }
  .rainbow-yellow { inset: calc(15% + 40px) auto auto calc(-20% + 40px); width: calc(88% - 80px); }
  .rainbow-green { inset: calc(15% + 60px) auto auto calc(-20% + 60px); width: calc(88% - 120px); }
  .rainbow-blue { inset: calc(15% + 80px) auto auto calc(-20% + 80px); width: calc(88% - 160px); }
  .rainbow-violet { inset: calc(15% + 100px) auto auto calc(-20% + 100px); width: calc(88% - 200px); }
  .stage-card { right: 6%; bottom: 7%; width: 72%; }
  .note-two { display: none; }
  .section-wrap { width: calc(100% - 24px); padding: 90px 0; }
  .manifesto-copy { grid-template-columns: 1fr; gap: 12px; }
  .value-grid { grid-template-columns: 1fr; }
  .value-grid article { min-height: 230px; }
  .roadmap { gap: 44px; }
  .roadmap-list li { grid-template-columns: 44px 1fr; }
  .roadmap-list li > b { grid-column: 2; }
  .family-callout { width: calc(100% - 24px); min-height: 540px; padding: 38px 26px; border-radius: 30px; }
  .site-footer { grid-template-columns: 1fr; width: calc(100% - 24px); text-align: center; }
  .footer-brand, .footer-links { justify-content: center; }
  .copyright { grid-column: auto; text-align: center; }
}

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