@font-face {
  font-family: "Unbounded";
  src: url("/assets/fonts/unbounded.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --void: #05070f;
  --night: #0a0e1a;
  --night-2: #10152b;
  --ink: #eeedf9;
  --ink-2: #b3b5d2;
  --ink-3: #7d80a6;
  --indigo: #5b4bff;
  --violet: #9b8cff;
  --cyan: #22d3ee;
  --stroke: rgba(170, 160, 255, 0.14);
  --stroke-strong: rgba(190, 182, 255, 0.28);
  --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1240px;
  --ease-out: cubic-bezier(0.2, 0.75, 0.2, 1);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--void);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 400 1.0625rem / 1.62 var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

a {
  color: inherit;
}

::selection {
  background: rgba(91, 75, 255, 0.55);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------- Atmosphere ---------- */

.sky {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(1100px 760px at 78% -8%, rgba(91, 75, 255, 0.2), transparent 62%),
    radial-gradient(900px 700px at -12% 38%, rgba(34, 211, 238, 0.06), transparent 60%),
    radial-gradient(1200px 900px at 50% 120%, rgba(91, 75, 255, 0.14), transparent 60%), var(--void);
}

.stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: drift 38s ease-in-out infinite alternate;
}

.nebula-a {
  width: 46vw;
  height: 46vw;
  left: -14vw;
  top: 56vh;
  background: radial-gradient(circle, rgba(91, 75, 255, 0.35), transparent 70%);
}

.nebula-b {
  width: 38vw;
  height: 38vw;
  right: -10vw;
  top: 150vh;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.16), transparent 70%);
  animation-duration: 46s;
  animation-direction: alternate-reverse;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(6vw, -8vh, 0) scale(1.15);
  }
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 60;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}

@keyframes grain {
  0% {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(-3%, 2%);
  }
  40% {
    transform: translate(2%, -4%);
  }
  60% {
    transform: translate(-4%, -1%);
  }
  80% {
    transform: translate(3%, 3%);
  }
  100% {
    transform: translate(0, 0);
  }
}

/* ---------- Brand ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: auto;
  filter: drop-shadow(0 4px 14px rgba(91, 75, 255, 0.45));
}

.wordmark {
  font: 600 1.42rem / 1 var(--display);
  letter-spacing: -0.035em;
  color: var(--ink);
}

.wm-i {
  position: relative;
  display: inline-block;
}

.wm-i::after,
.wm-i::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.06em;
  width: 0.2em;
  height: 0.2em;
  margin-left: -0.1em;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.9);
}

.wm-i::before {
  background: transparent;
  box-shadow: 0 0 0 1.5px rgba(34, 211, 238, 0.7);
  animation: ping 2.8s var(--ease-out) infinite;
}

@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  70%,
  100% {
    transform: scale(3.2);
    opacity: 0;
  }
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px var(--gutter);
  transition:
    background 0.4s,
    border-color 0.4s,
    padding 0.4s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  padding-block: 10px;
  background: rgba(6, 8, 18, 0.62);
  border-color: var(--stroke);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.nav-links {
  display: flex;
  gap: 34px;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--ink-2);
  transition: color 0.25s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 24px 13px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 1.06rem / 1.1 var(--body);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    background 0.35s,
    border-color 0.35s;
}

.btn svg {
  width: 24px;
  height: 24px;
  flex: none;
}

.btn span {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.btn small {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.72;
  margin-bottom: 2px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, #8577ff 0%, #5b4bff 52%, #4a38f0 100%);
  box-shadow:
    0 14px 34px -12px rgba(91, 75, 255, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-primary:hover {
  box-shadow:
    0 20px 44px -12px rgba(91, 75, 255, 0.95),
    0 0 0 4px rgba(91, 75, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-pill {
  padding: 10px 18px;
  font-size: 0.92rem;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
}

.btn-pill:hover {
  background: var(--indigo);
  border-color: var(--indigo);
}

.btn[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 120px var(--gutter) 90px;
  isolation: isolate;
  overflow: clip;
}

/* The planet sits at 68% across its image and its ring starts at ~45%, so sizing the art from the
   viewport width and anchoring it right keeps the ring clear of the copy at every desktop size. */
.hero-art {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: -2vw;
  width: min(96vw, 175vh);
  aspect-ratio: 2000 / 1116;
  translate: 0 -50%;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 30%),
    linear-gradient(180deg, transparent 0%, #000 12%, #000 86%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 30%),
    linear-gradient(180deg, transparent 0%, #000 12%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-in 2.4s var(--ease-out) both;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: scale(1.08);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

.hero-copy {
  position: relative;
  width: min(var(--max), 100%);
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke-strong);
  background: rgba(10, 14, 30, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font: 500 0.74rem / 1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px var(--cyan);
  animation: ping 2.2s var(--ease-out) infinite;
}

h1,
h2,
h3 {
  font-family: var(--display);
  margin: 0;
}

h1 {
  font-size: clamp(2.9rem, 6.3vw, 6.8rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.h1-line {
  display: block;
}

.orbit-word {
  position: relative;
  display: inline-block;
  font-style: normal;
  background: linear-gradient(100deg, #c9c1ff 0%, var(--violet) 40%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.04em;
}

.orbit-ring {
  position: absolute;
  left: -9%;
  top: 50%;
  width: 118%;
  height: auto;
  transform: translateY(-47%) rotate(-7deg);
  overflow: visible;
  pointer-events: none;
}

.orbit-ring path {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw 2.2s 0.9s var(--ease-out) forwards;
}

.ring-dot {
  filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.95));
  opacity: 0;
  animation: fade-in 0.6s 2s forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

.lede {
  max-width: 27em;
  margin: 30px 0 0;
  font-size: clamp(1.05rem, 1.35vw, 1.24rem);
  color: var(--ink-2);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.cta-center {
  justify-content: center;
}

.fine {
  margin: 22px 0 0;
  font-size: 0.95rem;
  color: var(--ink-3);
}

.fine a {
  color: var(--ink);
  text-decoration-color: rgba(155, 140, 255, 0.5);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.25s;
}

.fine a:hover {
  text-decoration-color: var(--cyan);
}

/* Floating glass chips around the planet */

.chips {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.chip {
  --px: 0px;
  --py: 0px;
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 20px;
  background: var(--glass), rgba(12, 16, 36, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow:
    0 24px 60px -24px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  font-size: 0.86rem;
  line-height: 1.3;
  translate: var(--px) var(--py);
  transition: translate 0.9s var(--ease-out);
  animation:
    chip-in 1s var(--ease-out) both,
    float 7s ease-in-out infinite;
}

.chip b {
  font-weight: 600;
  color: var(--ink);
}

.chip small {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-3);
  font-size: 0.78rem;
}

.chip-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chip-map {
  right: 7%;
  top: 19%;
  animation-delay: 1.3s, 1.3s;
}

.chip-poll {
  right: 33%;
  bottom: 13%;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 210px;
  padding: 14px 16px;
  animation-delay: 1.55s, 0s;
  animation-duration: 1s, 8s;
}

.chip-moment {
  right: 5%;
  bottom: 22%;
  animation-delay: 1.8s, 0.6s;
  animation-duration: 1s, 9s;
}

@keyframes chip-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.94);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  font: 600 0.9rem / 1 var(--display);
  color: #fff;
}

.avatar-a {
  background: linear-gradient(135deg, #ff9ecf, #9b8cff);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.35);
}

.avatar-ring {
  background: linear-gradient(135deg, #5b4bff, #22d3ee);
  box-shadow:
    0 0 0 2px var(--night),
    0 0 0 4px var(--cyan);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.poll-row {
  position: relative;
  display: flex;
  align-items: center;
  height: 28px;
  padding-left: 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.poll-row small {
  position: relative;
  color: var(--ink);
}

.bar {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 9px;
  background: linear-gradient(90deg, rgba(91, 75, 255, 0.9), rgba(155, 140, 255, 0.7));
  transform-origin: left;
  animation: grow 1.4s 2s var(--ease-out) both;
}

.bar-72 {
  width: 72%;
}

.bar-44 {
  width: 44%;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.55), rgba(34, 211, 238, 0.3));
}

@keyframes grow {
  from {
    transform: scaleX(0);
  }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
}

.scroll-cue .cue-dot {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--ink);
  animation: cue 2s var(--ease-out) infinite;
}

@keyframes cue {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  80%,
  100% {
    transform: translateY(14px);
    opacity: 0;
  }
}

/* ---------- Ticker ---------- */

.ticker {
  position: relative;
  overflow: hidden;
  padding: 22px 0;
  border-block: 1px solid var(--stroke);
  background: rgba(8, 11, 24, 0.55);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}

.ticker-track span {
  display: inline-flex;
  align-items: center;
  font: 600 clamp(1.2rem, 2.4vw, 1.9rem) / 1 var(--display);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(190, 182, 255, 0.55);
}

.ticker-track span::after {
  content: "✦";
  margin: 0 0.9em;
  color: var(--cyan);
  -webkit-text-stroke: 0;
  font-size: 0.6em;
}

.ticker-track span:nth-child(3n + 2) {
  color: var(--ink);
  -webkit-text-stroke: 0;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  width: min(var(--max), 100% - var(--gutter) * 2);
  margin-inline: auto;
  padding-block: clamp(90px, 13vw, 170px) 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 20px 60px;
  align-items: end;
  margin-bottom: clamp(44px, 6vw, 72px);
}

.section-head-solo {
  grid-template-columns: 1fr;
}

.kicker {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font: 500 0.76rem / 1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.kicker span {
  color: var(--cyan);
}

.kicker::after {
  content: "";
  flex: 0 0 64px;
  height: 1px;
  background: linear-gradient(90deg, var(--stroke-strong), transparent);
}

h2 {
  font-size: clamp(2.3rem, 5.6vw, 4.8rem);
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.section-lede {
  margin: 0;
  max-width: 30em;
  color: var(--ink-2);
  font-size: 1.1rem;
}

/* ---------- Bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.card,
.pillar {
  --mx: 50%;
  --my: 0%;
  position: relative;
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 360px;
  padding: 30px;
  border-radius: 30px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(91, 75, 255, 0.2), transparent 58%),
    linear-gradient(180deg, rgba(24, 29, 60, 0.78), rgba(11, 14, 31, 0.86));
  border: 1px solid var(--stroke);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    transform 0.6s var(--ease-out),
    border-color 0.4s;
}

.card::after,
.pillar::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    360px circle at var(--mx) var(--my),
    rgba(170, 160, 255, 0.75),
    transparent 45%
  );
  mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.card:hover,
.pillar:hover {
  transform: translateY(-4px);
}

.card:hover::after,
.pillar:hover::after {
  opacity: 1;
}

.card {
  justify-content: flex-start;
}

.card h3 {
  margin-top: auto;
}

.card img {
  align-self: flex-end;
  width: 54%;
  margin: -22px -16px 10px 0;
  filter: drop-shadow(0 30px 40px rgba(18, 8, 80, 0.6));
  transition: transform 0.9s var(--ease-out);
  animation: float 9s ease-in-out infinite;
}

.card:nth-child(2n) img {
  animation-delay: -3s;
}

.card:nth-child(3n) img {
  animation-delay: -5s;
}

.card:hover img {
  transform: translateY(-10px) rotate(-4deg) scale(1.05);
}

.card h3,
.pillar h3 {
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.card p,
.pillar p {
  margin: 10px 0 0;
  max-width: 34ch;
  color: var(--ink-2);
  font-size: 0.98rem;
  line-height: 1.55;
}

.card-xl {
  grid-column: span 7;
  min-height: 460px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto auto;
  column-gap: 12px;
}

.card-xl img {
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: center;
  width: 108%;
  margin: 0 -8% 0 0;
}

.card-xl h3 {
  grid-column: 1;
  grid-row: 2;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
}

.card-xl p {
  grid-column: 1;
  grid-row: 3;
}

.card-lg {
  grid-column: span 5;
  min-height: 460px;
}

.card-lg img {
  width: 66%;
}

.card-lg h3 {
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
}

/* ---------- Privacy ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--stroke);
  margin-bottom: 40px;
}

.stat {
  padding: 34px 28px 38px 0;
}

.stat + .stat {
  padding-left: 32px;
  border-left: 1px solid var(--stroke);
}

.stat b {
  display: block;
  font: 800 clamp(4.2rem, 10vw, 8.6rem) / 0.9 var(--display);
  letter-spacing: -0.06em;
  background: linear-gradient(180deg, #fff 10%, var(--violet) 70%, rgba(91, 75, 255, 0.4));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span {
  display: block;
  margin-top: 14px;
  font: 500 0.8rem / 1.4 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}

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

.pillar {
  grid-column: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40%;
  grid-template-rows: 1fr auto auto 1fr;
  column-gap: 20px;
  min-height: 320px;
}

.pillar h3 {
  grid-column: 1;
  grid-row: 2;
}

.pillar p {
  grid-column: 1;
  grid-row: 3;
}

.pillar img {
  grid-column: 2;
  grid-row: 1 / 5;
  align-self: center;
  width: 118%;
  margin-right: -14%;
  filter: drop-shadow(0 30px 40px rgba(18, 8, 80, 0.6));
  animation: float 10s ease-in-out infinite;
}

.honest {
  margin: 30px 0 0;
  padding: 18px 22px;
  border-left: 2px solid var(--cyan);
  border-radius: 0 16px 16px 0;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.07), transparent 70%);
  color: var(--ink-2);
  font-size: 0.98rem;
}

.honest a {
  color: var(--ink);
  text-underline-offset: 4px;
}

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 34px 30px 36px;
  border-radius: 30px;
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(22, 27, 56, 0.6), rgba(10, 13, 29, 0.6));
}

.step-n {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 26px;
  border-radius: 50%;
  font: 700 1.3rem / 1 var(--display);
  color: #fff;
  background: radial-gradient(circle at 30% 25%, #a497ff, #5b4bff 70%);
  box-shadow:
    0 0 0 6px rgba(91, 75, 255, 0.14),
    0 12px 30px -8px rgba(91, 75, 255, 0.8);
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 62px;
  left: calc(30px + 58px + 14px);
  right: -18px;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    rgba(155, 140, 255, 0.5) 0 6px,
    transparent 6px 14px
  );
}

.step h3 {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.step p {
  margin: 10px 0 0;
  color: var(--ink-2);
}

code,
.code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 2px 7px;
  border-radius: 7px;
  background: rgba(155, 140, 255, 0.12);
  color: var(--ink);
  white-space: nowrap;
}

/* ---------- Finale ---------- */

.finale {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 92vh;
  margin-top: clamp(80px, 10vw, 140px);
  padding: 120px var(--gutter) 180px;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}

.finale-art {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
}

.finale-art img {
  width: 100%;
  min-height: 70vh;
  object-fit: cover;
  object-position: 50% 100%;
}

.finale-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, var(--void) 0%, transparent 40%);
}

.finale h2 {
  font-size: clamp(2.8rem, 7.4vw, 6.6rem);
  text-shadow: 0 10px 60px rgba(91, 75, 255, 0.35);
}

.finale .cta {
  margin-top: 44px;
}

/* ---------- Footer ---------- */

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), 100% - var(--gutter) * 2);
  margin: 0 auto;
  padding: 34px 0 44px;
  border-top: 1px solid var(--stroke);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  font-size: 0.95rem;
}

.footer-links a {
  color: var(--ink-2);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
}

.copy {
  margin: 0;
  width: 100%;
  color: var(--ink-3);
  font: 500 0.76rem / 1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Subpages (join, iPhone, privacy, 404) ---------- */

.page {
  width: min(820px, 100% - var(--gutter) * 2);
  margin: 0 auto;
  padding: 150px 0 110px;
}

.page h1 {
  font-size: clamp(2.5rem, 6.6vw, 4.8rem);
  line-height: 0.98;
}

.page .kicker {
  margin-bottom: 24px;
}

.page .lede {
  margin-top: 22px;
}

.panel {
  margin-top: 40px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 30px;
  border: 1px solid var(--stroke);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(91, 75, 255, 0.2), transparent 60%),
    linear-gradient(180deg, rgba(22, 27, 56, 0.72), rgba(10, 13, 29, 0.8));
}

.invite-code {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.invite-code output {
  font: 600 clamp(1.7rem, 5vw, 2.8rem) / 1 var(--mono);
  letter-spacing: 0.06em;
  background: linear-gradient(90deg, #fff, var(--violet) 60%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.label {
  margin: 0 0 12px;
  font: 500 0.74rem / 1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.code-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.code-form input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 15px 20px;
  border-radius: 999px;
  border: 1px solid var(--stroke-strong);
  background: rgba(5, 7, 15, 0.6);
  color: var(--ink);
  font: 500 1.1rem / 1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.code-form input::placeholder {
  color: var(--ink-3);
}

.code-form input:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(155, 140, 255, 0.18);
}

.form-hint {
  margin: 12px 0 0;
  min-height: 1.4em;
  font-size: 0.92rem;
  color: var(--ink-3);
}

.form-hint.bad {
  color: #ff9eb8;
}

.list-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: s;
  display: grid;
  gap: 16px;
}

.list-steps li {
  position: relative;
  padding-left: 52px;
  counter-increment: s;
  color: var(--ink-2);
}

.list-steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: -3px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font: 700 0.95rem / 1 var(--display);
  color: #fff;
  background: radial-gradient(circle at 30% 25%, #a497ff, #5b4bff 70%);
}

.list-steps b {
  color: var(--ink);
}

.hidden {
  /* biome-ignore lint/complexity/noImportantStyles: hiding must beat any component's display */
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.prose h2 {
  margin: 48px 0 12px;
  font-size: 1.45rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.prose p,
.prose li {
  color: var(--ink-2);
}

.prose strong {
  color: var(--ink);
}

.prose a {
  color: var(--violet);
  text-underline-offset: 3px;
}

.prose ul {
  padding-left: 22px;
}

.prose li + li {
  margin-top: 8px;
}

.meta {
  margin-top: 14px;
  font: 500 0.8rem / 1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- Reveal ---------- */

@media (scripting: enabled) {
  .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition:
      opacity 1s var(--ease-out),
      transform 1s var(--ease-out);
  }

  .reveal.in {
    opacity: 1;
    transform: none;
  }

  html:not(.js) .reveal {
    animation: fade-in 0.6s 1.2s forwards;
  }

  .hero .reveal:nth-child(2) {
    transition-delay: 0.12s;
  }

  .hero .reveal:nth-child(3) {
    transition-delay: 0.26s;
  }

  .hero .reveal:nth-child(4) {
    transition-delay: 0.4s;
  }

  .hero .reveal:nth-child(5) {
    transition-delay: 0.52s;
  }

  .bento .reveal:nth-child(3n + 2),
  .steps .reveal:nth-child(2),
  .pillars .reveal:nth-child(2) {
    transition-delay: 0.1s;
  }

  .bento .reveal:nth-child(3n),
  .steps .reveal:nth-child(3) {
    transition-delay: 0.2s;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  /* Stacked hero: the art on top, centred on the planet, the copy over its faded lower edge. */
  .hero {
    --w: 130vw;
    align-items: start;
    padding-top: calc(var(--w) * 0.41 + 40px);
    padding-bottom: 80px;
  }

  .hero-art {
    top: 0;
    right: auto;
    left: calc(50% - var(--w) * 0.68);
    width: var(--w);
    translate: none;
    mask-image: linear-gradient(180deg, #000 55%, transparent 97%);
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 97%);
    mask-composite: add;
    -webkit-mask-composite: source-over;
  }

  h1 {
    font-size: min(10.2vw, 5.6rem);
  }

  .chip-poll,
  .scroll-cue {
    display: none;
  }

  .chip-map {
    top: calc(var(--w) * 0.08 + 56px);
    right: auto;
    left: var(--gutter);
  }

  .chip-moment {
    top: calc(var(--w) * 0.34);
    bottom: auto;
    right: var(--gutter);
  }

  .card,
  .card-xl,
  .card-lg {
    grid-column: span 6;
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .section-head {
    grid-template-columns: 1fr;
  }

  .pillars,
  .steps {
    grid-template-columns: 1fr;
  }

  .step:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 760px) {
  .hero {
    --w: 175vw;
    padding-top: calc(var(--w) * 0.41 + 84px);
  }

  .hero-art {
    top: 44px;
  }

  .chip {
    font-size: 0.8rem;
    padding: 9px 12px 9px 9px;
  }

  .chip .avatar {
    width: 30px;
    height: 30px;
  }

  .card,
  .card-xl,
  .card-lg {
    grid-column: 1 / -1;
    min-height: 0;
    padding: 24px;
  }

  .card-xl {
    display: flex;
  }

  .card img,
  .card-xl img,
  .card-lg img {
    width: 44%;
    margin: -14px -10px 6px 0;
  }

  .stat {
    padding: 22px 10px 24px 0;
  }

  .stat + .stat {
    padding-left: 14px;
  }

  .stat b {
    font-size: 3.6rem;
  }

  .stat span {
    font-size: 0.64rem;
    letter-spacing: 0.06em;
  }

  .pillar {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 24px;
  }

  .pillar img {
    align-self: flex-end;
    width: 44%;
    margin: -14px -10px 6px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  /* biome-ignore-start lint/complexity/noImportantStyles: reduced motion must beat every animation */
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  /* biome-ignore-end lint/complexity/noImportantStyles: reduced motion must beat every animation */

  .grain {
    animation: none;
  }
}
