:root {
  --space: #04051F;
  --electric: #2A44FF;
  --pale: #EEF1FA;
  --ink: #0A0E2C;
  --ink-soft: #4A5078;
  --cyan: #3FE3FF;
  --violet: #8B3DFF;
  --magenta: #FF2E8A;
  --amber: #FFB31A;
  --spectrum: linear-gradient(90deg, var(--cyan), var(--electric) 30%, var(--violet) 55%, var(--magenta) 78%, var(--amber));
  --display: "Geist", system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
  --ease: cubic-bezier(.22, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--space);
  color: var(--pale);
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: -.011em;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--magenta); color: #fff; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--pale); color: var(--ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* the swarm lives behind everything; light sections are opaque and cover it */
#swarm { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
main, .foot { position: relative; z-index: 1; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: 18px var(--gutter);
  transition: background .4s var(--ease), color .4s var(--ease);
}
.nav.is-scrolled { background: rgba(4, 5, 31, .55); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); }
.nav.is-light { background: rgba(238, 241, 250, .8); color: var(--ink); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); }
.wordmark { font-weight: 600; font-size: 20px; text-decoration: none; letter-spacing: -.035em; }
.nav nav { display: flex; gap: 28px; margin-left: auto; }
.nav nav a { text-decoration: none; font-size: 15px; opacity: .75; transition: opacity .2s; }
.nav nav a:hover { opacity: 1; }
.nav-cta {
  text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 9px 18px; border-radius: 999px; border: 1px solid currentColor;
  transition: background .2s, color .2s;
}
.nav-cta:hover { background: var(--pale); color: var(--ink); }
.nav.is-light .nav-cta:hover { background: var(--ink); color: var(--pale); }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-block; text-decoration: none; font-weight: 500; font-size: 16px;
  padding: 14px 26px; border-radius: 999px;
  transition: transform .25s var(--ease), box-shadow .3s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-light { background: var(--pale); color: var(--ink); }
.btn-light:hover { box-shadow: -10px 8px 32px -8px rgba(63, 227, 255, .6), 10px 8px 32px -8px rgba(255, 46, 138, .6); }
.btn-ghost { color: var(--pale); box-shadow: inset 0 0 0 1px rgba(238, 241, 250, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--pale); }
.btn-big { font-size: 18px; padding: 18px 32px; }

/* ---------- hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; position: relative; }
.hero-copy { width: 100%; max-width: 1240px; margin: 0 auto; padding: 120px var(--gutter) 80px; pointer-events: none; }
.hero-copy a { pointer-events: auto; }
.hero-kicker { font-size: 17px; font-weight: 400; opacity: .7; margin-bottom: 24px; }
.hero-title {
  font-weight: 500; line-height: .96; letter-spacing: -.047em;
  font-size: clamp(54px, 8.6vw, 148px); max-width: 7em;
}
.hero-title span { display: inline-block; }
.hero-sub { max-width: 30em; margin-top: 30px; font-size: clamp(17px, 1.5vw, 20px); color: rgba(238, 241, 250, .82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.hero-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); font-size: 13px; opacity: .5; white-space: nowrap; }

/* load: copy arrives as the swarm assembles */
.js .hero-title span { opacity: 0; transform: translateY(.35em); filter: blur(12px); }
.js .hero-kicker, .js .hero-sub, .js .hero-actions, .js .hero-hint { opacity: 0; }
.js.loaded .hero-title span { opacity: 1; transform: none; filter: none; transition: opacity 1.1s var(--ease), transform 1.4s var(--ease), filter 1.2s var(--ease); transition-delay: .9s; }
.js.loaded .hero-title span:nth-child(2) { transition-delay: 1.08s; }
.js.loaded .hero-kicker { opacity: .75; transition: opacity 1s .7s; }
.js.loaded .hero-sub { opacity: 1; transition: opacity 1s 1.5s; }
.js.loaded .hero-actions { opacity: 1; transition: opacity 1s 1.7s; }
.js.loaded .hero-hint { opacity: .5; transition: opacity 1s 2.6s; }

/* ---------- statement ---------- */
.statement { min-height: 120vh; display: flex; align-items: center; padding: 10vh var(--gutter); max-width: 1400px; margin: 0 auto; }
.statement-text {
  font-weight: 450; letter-spacing: -.045em; line-height: 1.08;
  font-size: clamp(32px, 5vw, 80px);
}
.statement-text .w { opacity: .16; transition: opacity .35s linear; }
.statement-text .w.on { opacity: 1; }

/* ---------- section titles ---------- */
.section-title {
  font-weight: 500; letter-spacing: -.05em; line-height: 1;
  font-size: clamp(40px, 5.6vw, 88px);
  margin-bottom: clamp(40px, 6vw, 72px);
}

/* ---------- light sections ---------- */
.light { background: var(--pale); color: var(--ink); }

/* ---------- what we build ---------- */
.what { padding: 16vh 0; }
.rows { list-style: none; margin: 0; padding: 0; }
.row {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: baseline;
  padding: clamp(30px, 4vw, 52px) 0;
}
/* a hairline of spectrum that fills on hover */
.row::before, .row::after { content: ""; position: absolute; left: 0; top: 0; height: 1px; }
.row::before { right: 0; background: rgba(10, 14, 44, .14); }
.row::after { width: 100%; height: 2px; top: -.5px; background: linear-gradient(90deg, var(--c1), var(--c2)); transform: scaleX(.12); transform-origin: left; transition: transform .8s var(--ease); }
.row:hover::after { transform: scaleX(1); }
.rows::after { content: ""; display: block; height: 1px; background: rgba(10, 14, 44, .14); }
.row h3 { font-weight: 500; font-size: clamp(26px, 2.8vw, 40px); line-height: 1.08; letter-spacing: -.04em; }
.row p { color: var(--ink-soft); max-width: 34em; }

/* ---------- how we work ---------- */
.how { padding: 18vh 0; background: linear-gradient(90deg, rgba(4, 5, 31, .88) 0%, rgba(4, 5, 31, .55) 100%); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps li { padding: 0 28px 0 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid rgba(238, 241, 250, .16); }
.step-n {
  display: block; font-weight: 200; line-height: 1; margin-bottom: 28px; letter-spacing: -.06em;
  font-size: clamp(72px, 7vw, 120px);
  background: var(--spectrum); background-size: 400% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
}
.steps li:nth-child(1) .step-n { background-position: 0% 0; }
.steps li:nth-child(2) .step-n { background-position: 33% 0; }
.steps li:nth-child(3) .step-n { background-position: 66% 0; }
.steps li:nth-child(4) .step-n { background-position: 100% 0; }
.steps h3 { font-size: 21px; font-weight: 500; letter-spacing: -.025em; margin-bottom: 12px; }
.steps p { color: rgba(238, 241, 250, .72); font-size: 16px; }

/* ---------- contact ---------- */
.contact { padding: 22vh 0 26vh; }
.contact-title { font-weight: 500; letter-spacing: -.047em; line-height: 1; font-size: clamp(42px, 6.6vw, 112px); max-width: 10em; }
.contact-sub { margin: 28px 0 40px; max-width: 32em; font-size: clamp(18px, 1.6vw, 21px); color: rgba(238, 241, 250, .82); }

.foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding: 28px var(--gutter); font-size: 14px; color: rgba(238, 241, 250, .5);
  border-top: 1px solid rgba(238, 241, 250, .1); background: rgba(4, 5, 31, .6);
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav nav { display: none; }
  .nav-cta { margin-left: auto; }
  .row { grid-template-columns: 1fr; gap: 14px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .how { background: rgba(4, 5, 31, .78); }
  .hero { align-items: flex-end; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 0; border-left: 0; }
  .hero-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero-title span, .js .hero-kicker, .js .hero-sub, .js .hero-actions, .js .hero-hint { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .statement-text .w { opacity: 1; }
}
