/* Drwup OS waitlist, dark theme
   Structure and motion after jeton.com. Colour from the drwup OS Brand essentials sheet,
   Type: Poppins throughout, Playfair Display italic for highlighted words. */

:root {
  /* Brand essentials palette */
  --ink: #111114;
  --white: #ffffff;
  --navy: #080458;
  --electric: #3500f5;
  --orchid: #a43cf4;
  --lilac: #f6d8ff;
  --violet: #6b35ff;       /* bridging tone from the Brand Book gradient */

  /* Text and surfaces on ink */
  --text: #ffffff;
  --text-2: #b9b4cc;
  --text-3: #8f8aa6;
  --dim: #2b2942;          /* unrevealed statement words */
  --hairline: rgba(255, 255, 255, 0.1);
  --glass: rgba(255, 255, 255, 0.06);
  --error: #ff8fb5;

  /* Gradients */
  --grad-os: linear-gradient(90deg, #080458 0%, #3500f5 35%, #a43cf4 72%, #f6d8ff 100%);
  --grad-tile: linear-gradient(145deg, #a43cf4 0%, #3500f5 55%, #080458 100%);
  --field-hero:
    radial-gradient(42% 52% at 86% 8%, rgba(246, 216, 255, 0.55) 0%, rgba(246, 216, 255, 0) 70%),
    radial-gradient(60% 70% at 74% 26%, rgba(164, 60, 244, 0.55) 0%, rgba(164, 60, 244, 0) 70%),
    radial-gradient(80% 90% at 60% 40%, rgba(53, 0, 245, 0.85) 0%, rgba(53, 0, 245, 0) 70%),
    linear-gradient(170deg, #080458 0%, #0a0640 55%, #111114 100%);
  /* Brand essentials 06 / Colour field: lilac corner, electric middle, navy far corner */
  --field-06:
    radial-gradient(38% 46% at 0% 100%, rgba(246, 216, 255, 0.55) 0%, rgba(164, 60, 244, 0.35) 40%, rgba(164, 60, 244, 0) 75%),
    linear-gradient(45deg, #3500f5 0%, #1d0bb0 38%, #080458 72%, #111114 100%);
  --field-pass: linear-gradient(205deg, #f6d8ff 0%, #a43cf4 18%, #3500f5 50%, #080458 100%);

  --font: "Poppins", Helvetica, Arial, sans-serif;
  --font-label: "Poppins", Helvetica, Arial, sans-serif;
  --font-hl: "Playfair Display", Georgia, "Times New Roman", serif;
  --margin: clamp(16px, 4vw, 56px);
  --pill: 999px;

  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--ink); }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--electric); color: var(--white); }

img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol { margin: 0; }

:focus-visible {
  outline: 2px solid var(--lilac);
  outline-offset: 3px;
}

/* Light, open-tracked labels, after the Brand essentials sheet */
.label {
  font-family: var(--font-label);
  font-weight: 300;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
}

/* ---------- Pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--pill);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.pill:active { transform: scale(0.97); }
.pill--glass {
  background: rgba(17, 17, 20, 0.55);
  color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.pill--glass:hover { background: rgba(17, 17, 20, 0.8); box-shadow: inset 0 0 0 1px rgba(246, 216, 255, 0.45); }
.pill--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.pill--ghost:hover { background: rgba(255, 255, 255, 0.16); }
.pill--electric {
  background: var(--electric);
  color: var(--white);
  box-shadow: 0 12px 32px -12px rgba(53, 0, 245, 0.9);
}
.pill--electric:hover { background: var(--violet); }
.pill[disabled] { opacity: 0.6; cursor: default; transform: none; }

/* ---------- Top bar ---------- */
.topbar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px var(--margin);
}
/* The coloured logo sits on a dark glass chip so the gradient OS stays legible over the hero colour. */
.topbar__logo {
  display: inline-flex;
  padding: 12px 22px 12px 20px;
  border-radius: var(--pill);
  background: rgba(17, 17, 20, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.topbar__logo img { width: clamp(150px, 12vw, 188px); }

/* ---------- Hero: Colour field ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: 140px var(--margin) clamp(112px, 14vh, 150px);
  overflow: hidden;
  background: var(--field-hero);
  color: var(--white);
  isolation: isolate;
}
/* Settle into ink at the bottom so the hero runs straight into the next section. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, #111114 0%, rgba(17, 17, 20, 0.6) 22%, rgba(17, 17, 20, 0) 55%);
}

.hero__scene {
  position: absolute;
  inset: 0;
  z-index: -2;
  animation: scene-in 1.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.layer { position: absolute; inset: 0; will-change: transform; }

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Dark glass discs with lilac rims */
.disc {
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(120% 90% at 30% 18%, rgba(246, 216, 255, 0.42) 0%, rgba(246, 216, 255, 0) 42%),
    linear-gradient(150deg, rgba(164, 60, 244, 0.7) 0%, rgba(53, 0, 245, 0.62) 45%, rgba(8, 4, 88, 0.92) 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(246, 216, 255, 0.7),
    inset 0 0 0 9px rgba(255, 255, 255, 0.04),
    inset -40px -60px 120px rgba(8, 4, 88, 0.7),
    0 80px 140px -40px rgba(53, 0, 245, 0.6);
  will-change: transform;
}
.disc::before,
.disc::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.disc::before {
  inset: 3%;
  border: 3px solid rgba(246, 216, 255, 0.9);
  filter: blur(2px);
  -webkit-mask: linear-gradient(170deg, #000 0%, transparent 38%);
          mask: linear-gradient(170deg, #000 0%, transparent 38%);
}
.disc::after {
  inset: 14%;
  border: 1.5px solid rgba(246, 216, 255, 0.45);
  filter: blur(1px);
  -webkit-mask: linear-gradient(200deg, #000 0%, transparent 30%);
          mask: linear-gradient(200deg, #000 0%, transparent 30%);
}
.disc--a { width: 78vw; top: -34vw; right: -22vw; transform: rotate(-28deg) scaleY(0.46); animation: drift-a 26s ease-in-out infinite alternate; }
.disc--b { width: 62vw; top: 8vh; left: -30vw; transform: rotate(18deg) scaleY(0.4); opacity: 0.8; animation: drift-b 30s ease-in-out infinite alternate; }
.disc--c { width: 46vw; bottom: -14vw; right: 6vw; transform: rotate(-12deg) scaleY(0.38); opacity: 0.85; animation: drift-c 22s ease-in-out infinite alternate; }
.disc--d { width: 20vw; top: 22vh; left: 44vw; transform: rotate(34deg) scaleY(0.5); opacity: 0.9; animation: drift-d 18s ease-in-out infinite alternate; }

@keyframes drift-a { to { transform: translate(-3vw, 4vh) rotate(-22deg) scaleY(0.5); } }
@keyframes drift-b { to { transform: translate(4vw, -3vh) rotate(24deg) scaleY(0.44); } }
@keyframes drift-c { to { transform: translate(-4vw, -2vh) rotate(-6deg) scaleY(0.42); } }
@keyframes drift-d { to { transform: translate(3vw, 5vh) rotate(42deg) scaleY(0.54); } }

.hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 390px);
  align-items: end;
  gap: 32px 64px;
  width: 100%;
  will-change: transform, opacity;
}
.hero__title {
  max-width: 10.6em;
  font-size: clamp(3.25rem, 8.4vw, 8.5rem);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.035em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__title .line > span { display: inline-block; animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) both 0.2s; }
.hero__title .line + .line > span { animation-delay: 0.32s; }
.hero__aside { animation: fade-up 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both 0.7s; }
.hero__aside p {
  color: var(--text-2);
  font-size: 1.1875rem;
  line-height: 1.4;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero__aside .hero__note { margin-top: 18px; font-size: 0.875rem; color: var(--text-3); }

@keyframes scene-in { from { opacity: 0; transform: scale(1.08); } }
@keyframes rise { from { transform: translateY(108%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } }

.scroll-hint {
  position: absolute;
  left: var(--margin);
  bottom: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px var(--hairline);
  font-size: 0.8125rem;
  font-weight: 600;
}
.scroll-hint__dot {
  width: 6px;
  height: 10px;
  border-radius: 3px;
  background: var(--lilac);
  animation: hint 1.6s ease-in-out infinite;
}
@keyframes hint { 50% { transform: translateY(3px); opacity: 0.5; } }

/* ---------- Statement with floating cards ---------- */
.statement-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: max(760px, 112vh);
  overflow: hidden;
}
.statement {
  position: relative;
  z-index: 1;
  padding: 0 var(--margin);
  color: var(--white);
  text-align: center;
  font-size: clamp(3rem, 10.5vw, 10rem);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.floats { position: absolute; inset: 0; }
.float {
  position: absolute;
  height: auto;
  border-radius: clamp(12px, 1.4vw, 20px);
  box-shadow: 0 30px 70px -20px rgba(53, 0, 245, 0.65), 0 0 0 1px rgba(246, 216, 255, 0.14);
  transform: translate3d(0, var(--ty, 0px), 0) rotate(var(--r, 0deg));
  will-change: transform;
}
.float--1 { --r: -6deg; width: clamp(150px, 21vw, 320px); top: 5%;  left: 5%; }
.float--2 { --r: 5deg;  width: clamp(160px, 23vw, 340px); top: 3%;  right: 5%; }
.float--3 { --r: 4deg;  width: clamp(140px, 19vw, 290px); bottom: 5%; left: 12%; }
.float--4 { --r: -3deg; width: clamp(200px, 30vw, 460px); bottom: 11%; right: 5%; }

[data-reveal] .word { color: var(--dim); transition: color 0.35s ease; }
.statement .word.is-on,
.answers__lines .word.is-on { color: var(--white); }
.hl .word.is-on { color: var(--lilac); }

/* Highlighted words: Playfair Display italic against Poppins */
.hl {
  font-family: var(--font-hl);
  font-style: italic;
  font-weight: 500;
  font-size: 1.04em;
  letter-spacing: -0.01em;
  color: var(--lilac);
  padding-right: 0.05em;
}

/* ---------- Pinned steps ---------- */
.steps { position: relative; height: 420vh; }
.steps__sticky {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  height: 100vh;
  height: 100svh;
  padding: 72px var(--margin) 130px;
}

.steps__list { display: grid; gap: 8px; padding: 0; list-style: none; }
.step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  opacity: 0.22;
  transition: opacity 0.4s ease;
}
.step.is-active { opacity: 1; }
.step__tile {
  display: grid;
  place-items: center;
  width: clamp(48px, 4.4vw, 64px);
  aspect-ratio: 1;
  margin-top: 0.35em;
  border-radius: 18px;
  background: var(--grad-tile);
  box-shadow: inset 0 0 0 1px rgba(246, 216, 255, 0.35);
}
.step__tile svg {
  width: 52%;
  fill: none;
  stroke: var(--white);
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.step__label {
  font-size: clamp(2.5rem, 5.6vw, 5.5rem);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--white);
}
.step__text p {
  display: grid;
  max-width: 34ch;
  max-height: 0;
  overflow: hidden;
  color: var(--text-2);
  transition: max-height 0.5s ease, margin 0.5s ease;
}
.step.is-active .step__text p { max-height: 8em; margin: 12px 0 20px; }

.steps__media {
  position: relative;
  aspect-ratio: 1276 / 718;
  border-radius: 36px;
  background:
    radial-gradient(80% 90% at 80% 0%, rgba(164, 60, 244, 0.35), rgba(164, 60, 244, 0) 60%),
    linear-gradient(160deg, rgba(53, 0, 245, 0.35), rgba(8, 4, 88, 0.55));
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.step-img {
  position: absolute;
  inset: clamp(14px, 2vw, 28px);
  width: calc(100% - 2 * clamp(14px, 2vw, 28px));
  height: calc(100% - 2 * clamp(14px, 2vw, 28px));
  object-fit: cover;
  border-radius: 22px;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(246, 216, 255, 0.1);
}
.step-img.is-active { opacity: 1; transform: none; }

.steps__progress {
  position: absolute;
  left: var(--margin);
  right: calc(var(--margin) + 72px);
  bottom: 104px;
  height: 3px;
  border-radius: 3px;
  background: var(--hairline);
  overflow: hidden;
}
.steps__progress span {
  display: block;
  height: 100%;
  background: var(--grad-os);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}
.steps__count {
  position: absolute;
  right: var(--margin);
  bottom: 96px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

/* ---------- Demo: Colour field 06 ---------- */
.demo {
  position: relative;
  z-index: 2;
  margin-top: -48px;
  border-radius: 48px 48px 0 0;
  padding: clamp(80px, 12vw, 160px) var(--margin);
  background: var(--field-06);
  color: var(--white);
}
.demo__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  align-items: end;
  gap: 24px 64px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.demo__title {
  font-size: clamp(3.25rem, 9vw, 8.5rem);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.demo__head p { font-size: 1.1875rem; line-height: 1.4; }
.demo__frame {
  overflow: hidden;
  border-radius: clamp(20px, 2.6vw, 36px);
  background: var(--ink);
  box-shadow: 0 60px 120px -40px rgba(8, 4, 88, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.demo__frame video { width: 100%; aspect-ratio: 1276 / 718; }

/* ---------- Answers ---------- */
.answers {
  padding: clamp(96px, 14vw, 180px) var(--margin) clamp(72px, 10vw, 140px);
  text-align: center;
}
.answers__lines {
  font-size: clamp(2rem, 5.4vw, 5.25rem);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.answers__frame {
  max-width: 1080px;
  margin: clamp(48px, 7vw, 96px) auto 0;
  padding: clamp(14px, 2vw, 28px);
  border-radius: 36px;
  background: linear-gradient(160deg, rgba(53, 0, 245, 0.3), rgba(8, 4, 88, 0.5));
  box-shadow: inset 0 0 0 1px var(--hairline), 0 80px 160px -60px rgba(53, 0, 245, 0.6);
}
.answers__frame img { width: 100%; border-radius: 22px; }

/* ---------- Join: the demo's end card, a horizon rising ---------- */
.join {
  position: relative;
  z-index: 2;
  isolation: isolate;
  overflow: hidden;
  border-radius: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(48px, 6vw, 96px);
  padding: clamp(96px, 12vw, 160px) var(--margin) clamp(140px, 16vw, 220px);
  background:
    radial-gradient(70% 50% at 50% 100%, rgba(53, 0, 245, 0.45), rgba(53, 0, 245, 0) 70%),
    linear-gradient(180deg, #0c0a26 0%, #0a0738 100%);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.horizon {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: calc(100% - clamp(96px, 11vw, 160px));
  width: max(1800px, 170%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, #0b0826 0%, #0d0930 92%, #120c45 100%);
  box-shadow:
    0 -1px 0 0 rgba(246, 216, 255, 0.95),
    0 -6px 18px 0 rgba(164, 60, 244, 0.85),
    0 -30px 80px 0 rgba(107, 53, 255, 0.55),
    0 -90px 200px 0 rgba(53, 0, 245, 0.45),
    inset 0 18px 40px -10px rgba(164, 60, 244, 0.55);
  transform: translateX(-50%);
}

.join__copy,
.join__pass { position: relative; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 8px 16px;
  border-radius: var(--pill);
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--hairline);
  color: var(--lilac);
}
.status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lilac);
  box-shadow: 0 0 10px 2px rgba(164, 60, 244, 0.9);
}
.join__title {
  font-size: clamp(3.25rem, 8vw, 7.5rem);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.join__lede { max-width: 40ch; margin-top: 24px; color: var(--text-2); font-size: 1.1875rem; }

.signup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 580px;
  margin-top: 40px;
}
.field { display: grid; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: 0.875rem; font-weight: 500; }
.optional { font-weight: 400; color: var(--text-3); }
.field input,
.field select {
  width: 100%;
  height: 54px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font: inherit;
  font-size: 1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23ffffff' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 22px center;
  padding-right: 48px;
}
.field select option { background: var(--ink); color: var(--white); }
.field input:hover,
.field select:hover { border-color: rgba(255, 255, 255, 0.3); }
.field input:focus-visible,
.field select:focus-visible {
  outline: none;
  border-color: var(--lilac);
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 4px rgba(164, 60, 244, 0.35);
}
.field input::placeholder { color: var(--text-3); opacity: 1; }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field input:disabled,
.field select:disabled { opacity: 0.55; }

.field { position: relative; }
.field input { padding-right: 48px; }
.field__check {
  position: absolute;
  right: 18px;
  bottom: 17px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--lilac);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.2s, transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
  pointer-events: none;
}
.field select ~ .field__check { right: 46px; }
.field__check svg { width: 12px; fill: none; stroke: var(--navy); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset 0.35s ease 0.12s; }
.field.is-done .field__check { opacity: 1; transform: none; }
.field.is-done .field__check svg { stroke-dashoffset: 0; }
.field.is-done input,
.field.is-done select { border-color: rgba(246, 216, 255, 0.45); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.signup__submit { grid-column: 1 / -1; justify-self: start; height: 54px; padding: 0 32px; }
.signup__note { grid-column: 1 / -1; max-width: 46ch; font-size: 0.875rem; line-height: 1.5; color: var(--text-3); }
.signup__status { grid-column: 1 / -1; min-height: 1.5em; font-size: 1rem; }
.signup__status.is-error { color: var(--error); }
.signup__status.is-success { font-weight: 600; color: var(--lilac); }

.perks {
  display: grid;
  gap: 8px;
  max-width: 580px;
  margin-top: 32px;
  padding: 24px 0 0;
  border-top: 1px solid var(--hairline);
  list-style: none;
  color: var(--text-2);
  font-size: 0.9375rem;
}
.perks strong { color: var(--white); }

/* The pass: a dark ticket that builds itself as the form is filled */
.join__pass { display: grid; gap: 16px; }
.pass-wrap {
  filter: drop-shadow(0 40px 60px rgba(53, 0, 245, 0.45)) drop-shadow(0 0 50px rgba(164, 60, 244, 0.22));
  transition: filter 0.6s ease;
}
.pass {
  --progress: 0;
  --track: 104px; /* height of the timeline strip below the perforation */
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr var(--track);
  aspect-ratio: 1.45;
  padding: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 36px) 0;
  border-radius: 26px;
  background:
    radial-gradient(90% 70% at var(--mx, 92%) var(--my, 0%), rgba(164, 60, 244, 0.42), rgba(164, 60, 244, 0) 62%),
    radial-gradient(70% 60% at 0% 100%, rgba(53, 0, 245, 0.5), rgba(53, 0, 245, 0) 70%),
    linear-gradient(160deg, #17143a 0%, #0c0a2a 55%, #080458 100%);
  color: var(--white);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(246, 216, 255, 0.22);
  /* Ticket notches either side of the perforation */
  -webkit-mask:
    radial-gradient(circle at 0 calc(100% - var(--track)), transparent 13px, #000 13.5px) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% calc(100% - var(--track)), transparent 13px, #000 13.5px) right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle at 0 calc(100% - var(--track)), transparent 13px, #000 13.5px) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% calc(100% - var(--track)), transparent 13px, #000 13.5px) right / 51% 100% no-repeat;
}
/* Light sweep, played once when the pass is issued */
.pass::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 35%, rgba(246, 216, 255, 0.45) 50%, rgba(255, 255, 255, 0) 65%);
  transform: translateX(-110%);
  pointer-events: none;
}
.pass__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.pass__logo { width: clamp(150px, 44%, 230px); }
.pass__number {
  flex: none;
  padding: 6px 14px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(246, 216, 255, 0.25);
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.4s, color 0.4s, box-shadow 0.4s;
}
.pass__body { align-self: end; padding-bottom: 22px; min-width: 0; }
.pass__name {
  font-size: clamp(1.75rem, 3.4vw, 2.625rem);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.pass__email {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 0.9375rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pass__name.is-placeholder,
.pass__email.is-placeholder { opacity: 0.45; }
.pass__meta { margin-top: 10px; color: var(--lilac); font-size: 0.8125rem; font-weight: 500; }

/* Timeline strip: one keyframe per detail, like a render track */
.pass__track {
  position: relative;
  display: grid;
  align-content: center;
  gap: 12px;
  margin: 0 calc(-1 * clamp(24px, 3vw, 36px));
  padding: 0 clamp(24px, 3vw, 36px);
  border-top: 1.5px dashed rgba(246, 216, 255, 0.22);
  background: rgba(8, 4, 40, 0.35);
}
.pass__rail { position: relative; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); }
.pass__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--progress) * 100%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orchid), var(--violet) 60%, var(--lilac));
  box-shadow: 0 0 14px rgba(164, 60, 244, 0.8);
  transition: width 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.pass__keys {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  list-style: none;
  color: var(--text-3);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.pass__keys li { position: relative; text-align: right; transition: color 0.3s; }
/* Diamond keyframe sitting on the rail at the end of each segment */
.pass__keys li::before {
  content: "";
  position: absolute;
  right: -5px;
  top: -19px;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: #1b1840;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.28);
  transform: rotate(45deg);
  transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.pass__keys li:last-child::before { right: 0; }
.pass__keys li.is-on { color: var(--white); }
.pass__keys li.is-on::before {
  background: var(--lilac);
  box-shadow: 0 0 0 4px rgba(164, 60, 244, 0.35), 0 0 14px rgba(246, 216, 255, 0.9);
  animation: key-on 0.45s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.pass__keys li:last-child { padding-right: 6px; }

/* Issued */
.pass.is-joined .pass__number {
  background: var(--lilac);
  color: var(--navy);
  box-shadow: 0 0 24px rgba(246, 216, 255, 0.6);
  font-weight: 600;
}
.pass.is-joined { box-shadow: inset 0 0 0 1px rgba(246, 216, 255, 0.55); }
.pass.is-joined::after { animation: sweep 1.1s cubic-bezier(0.3, 0.6, 0.2, 1) 0.15s; }
.pass.is-joined .pass__meta { animation: number-in 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both 0.5s; }
.pass-wrap.is-joined { animation: pass-confirm 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.join__note { margin-top: 8px; text-align: center; font-size: 0.875rem; color: var(--text-2); }

@keyframes pass-confirm { 35% { transform: translateY(-6px) rotate(-1deg) scale(1.02); } }
@keyframes number-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes sweep { to { transform: translateX(110%); } }
@keyframes key-on { from { transform: rotate(45deg) scale(0.4); } }

/* ---------- Footer ---------- */
.footer { padding: clamp(56px, 7vw, 96px) var(--margin) 120px; }
.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px 48px;
  padding-bottom: clamp(40px, 6vw, 80px);
}
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer__links a { color: var(--white); font-weight: 600; text-decoration: none; }
.footer__links a:hover { color: var(--lilac); }
.footer__legal { max-width: 52ch; color: var(--text-3); font-size: 0.8125rem; }
.footer__mark { width: 100%; }

/* ---------- Floating dock ---------- */
.dock {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px;
  border-radius: var(--pill);
  background: rgba(17, 17, 20, 0.66);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 20px 40px -16px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  transform: translateX(-50%);
}
.dock a {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--pill);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}
.dock a:hover,
.dock a.is-current { background: rgba(255, 255, 255, 0.12); }
.dock__home { width: 40px; padding: 0 !important; justify-content: center; }
.dock__home svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.dock .dock__cta { background: var(--electric); }
.dock .dock__cta:hover,
.dock .dock__cta.is-current { background: var(--violet); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__content { grid-template-columns: 1fr; }
  .demo__head { grid-template-columns: 1fr; }
  /* Stack the join section so the pass sits between the intro and the form, visible while typing. */
  .join { grid-template-columns: 1fr; gap: 0; }
  .join__copy { display: contents; }
  .join__copy > .status { justify-self: start; }
  .join__pass { order: 1; width: 100%; max-width: 560px; margin-top: 40px; }
  .signup { order: 2; }
  .perks { order: 3; }

  .statement-wrap { min-height: max(620px, 96svh); }
  .float--1 { width: 38vw; top: 6%; left: -4%; }
  .float--2 { width: 42vw; top: 3%; right: -6%; }
  .float--3 { width: 36vw; bottom: 6%; left: 2%; }
  .float--4 { width: 52vw; bottom: 14%; right: -8%; }

  .steps { height: 360vh; }
  .steps__sticky {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    align-content: center;
    gap: 28px;
    padding-top: 64px;
  }
  .steps__media { order: -1; border-radius: 24px; }
  .step-img { border-radius: 14px; }
  .step { gap: 14px; }
  .step__label { font-size: clamp(1.75rem, 8vw, 2.75rem); }
  .step__tile { width: 40px; border-radius: 12px; margin-top: 0.15em; }
  .step.is-active .step__text p { margin: 6px 0 12px; }

  .demo { margin-top: -32px; border-radius: 32px 32px 0 0; }
  .join { border-radius: 32px; }
}

@media (max-width: 560px) {
  .topbar { padding-top: 16px; }
  .topbar__logo { padding: 10px 18px 10px 16px; }
  .topbar__logo img { width: 138px; }
  .topbar .pill { display: none; }
  .hero { padding-bottom: 104px; }
  .scroll-hint { display: none; }
  .signup { grid-template-columns: 1fr; }
  .signup__submit { width: 100%; }
  .pass { aspect-ratio: auto; min-height: 300px; border-radius: 22px; --track: 92px; }
  .pass__keys { font-size: 0.75rem; }
  .footer__links a { display: inline-block; padding: 10px 0; }
  .dock a { padding: 0 12px; font-size: 0.8125rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
