/* ============================================================
   Cyberleek — launchpad
   1. Tokens
   2. Reset & base
   3. Ambient layers (canvas, glow, grid, grain, cursor)
   4. Header + scroll progress
   5. Buttons
   6. Hero
   7. Ticker
   8. Panels, cards, section heads
   9. Links
   10. Disclaimer
   11. Footer + toast
   12. Motion utilities / reveal
   13. Responsive + reduced motion
   ============================================================ */

/* 1. Tokens ------------------------------------------------- */
:root {
  --bg: #08080b;
  --bg-soft: #0d0d11;
  --panel: #101016;
  --panel-alt: #16161e;
  --line: #24242f;
  --line-soft: #1a1a23;
  --text: #f2f2f7;
  --muted: #9494a3;
  --faint: #5f5f6e;
  --green: #3ee898;
  --purple: #a75cf7;
  --ink: #060a08;
  --radius: 14px;
  --radius-sm: 10px;

  --font-sans: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --nav-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* 2. Reset & base ------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

::selection {
  background: rgba(62, 232, 152, 0.28);
  color: #fff;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--panel-alt);
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* 3. Ambient layers ----------------------------------------- */
.fx,
.glow,
.grid,
.scanlines,
.cursor-glow,
.cursor-dot,
.cursor-ring,
.grain {
  pointer-events: none;
}

.fx {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0.75;
}

.cursor-ring {
  position: fixed;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid rgba(62, 232, 152, 0.45);
  border-radius: 50%;
  z-index: 4;
  transform: translate(-999px, -999px);
  pointer-events: none;
  mix-blend-mode: screen;
  will-change: transform;
  transition: width 0.3s var(--ease), height 0.3s var(--ease), margin 0.3s var(--ease),
    border-color 0.3s var(--ease), opacity 0.3s var(--ease);
}

body.is-hot .cursor-ring {
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-color: rgba(167, 92, 247, 0.65);
}

/* Click ripple */
.ripple {
  position: fixed;
  z-index: 6;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  border: 1px solid rgba(62, 232, 152, 0.7);
  pointer-events: none;
  animation: ripple 0.65s var(--ease) forwards;
}

@keyframes ripple {
  to {
    transform: scale(6);
    opacity: 0;
  }
}

.glow {
  position: fixed;
  width: 46vw;
  height: 46vw;
  max-width: 560px;
  max-height: 560px;
  border-radius: 50%;
  filter: blur(56px);
  z-index: 0;
  animation: drift 14s ease-in-out infinite alternate;
}

.glow-a {
  top: -18vh;
  left: -12vw;
  opacity: 0.4;
  background: radial-gradient(circle, rgba(62, 232, 152, 0.8), transparent 70%);
}

.glow-b {
  right: -14vw;
  bottom: -20vh;
  opacity: 0.46;
  background: radial-gradient(circle, rgba(167, 92, 247, 0.78), transparent 70%);
  animation-duration: 19s;
}

.glow-c {
  left: 36vw;
  top: 44vh;
  width: 30vw;
  height: 30vw;
  opacity: 0.18;
  background: radial-gradient(
    circle,
    rgba(62, 232, 152, 0.5),
    rgba(167, 92, 247, 0.4),
    transparent 70%
  );
  animation-duration: 11s;
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(4vw, 3vh) scale(1.14);
  }
}

.grid {
  position: fixed;
  inset: -60px;
  z-index: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(167, 92, 247, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62, 232, 152, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 76%);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 76%);
  animation: grid-shift 30s linear infinite;
}

@keyframes grid-shift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 56px 56px;
  }
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 3;
  opacity: 0.35;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.018) 0 1px,
    transparent 1px 3px
  );
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 3;
  opacity: 0.055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  z-index: 2;
  background: radial-gradient(
    circle,
    rgba(167, 92, 247, 0.2),
    rgba(62, 232, 152, 0.09) 42%,
    transparent 70%
  );
  transform: translate(-999px, -999px);
  mix-blend-mode: screen;
  will-change: transform;
}

.cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  z-index: 5;
  background: var(--green);
  box-shadow: 0 0 12px rgba(62, 232, 152, 0.8);
  transform: translate(-999px, -999px);
  mix-blend-mode: screen;
  pointer-events: none;
  will-change: transform;
  transition: width 0.2s var(--ease), height 0.2s var(--ease), margin 0.2s var(--ease),
    background 0.2s var(--ease);
}

body.is-hot .cursor-dot {
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  background: rgba(167, 92, 247, 0.28);
  box-shadow: 0 0 0 1px rgba(167, 92, 247, 0.6), 0 0 22px rgba(167, 92, 247, 0.5);
}

/* 4. Header + scroll progress -------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 40;
  background: rgba(255, 255, 255, 0.04);
}

.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--green), var(--purple));
  box-shadow: 0 0 12px rgba(167, 92, 247, 0.7);
  transform-origin: left;
}

.top,
main,
footer {
  position: relative;
  z-index: 4;
}

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--nav-h);
  padding: 0 28px;
  border-bottom: 1px solid transparent;
  background: rgba(8, 8, 11, 0.5);
  backdrop-filter: blur(14px) saturate(140%);
  transition: height 0.35s var(--ease), background 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.top.is-stuck {
  height: 58px;
  border-bottom-color: var(--line);
  background: rgba(8, 8, 11, 0.85);
}

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

.brand__text strong {
  display: block;
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: 700;
}

.brand__text small {
  display: block;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.mark {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--green), var(--purple));
  box-shadow: 0 0 18px rgba(62, 232, 152, 0.45);
}

.mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 3px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

nav {
  position: relative;
  display: flex;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

nav a {
  position: relative;
  z-index: 1;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.25s var(--ease);
}

nav a:hover {
  color: var(--text);
}

nav a.is-active {
  color: var(--text);
}

.nav__pill {
  position: absolute;
  top: 4px;
  left: 0;
  height: calc(100% - 8px);
  width: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  opacity: 0;
  transition: transform 0.45s var(--ease), width 0.45s var(--ease), opacity 0.3s;
  pointer-events: none;
}

/* 5. Buttons ------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn--sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
  border-radius: 8px;
}

.btn--primary {
  color: var(--ink);
  background: linear-gradient(135deg, var(--green), #7ee0a4 40%, var(--purple));
  box-shadow: 0 10px 30px -10px rgba(62, 232, 152, 0.6);
  font-weight: 700;
}

.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, 0.45), transparent 68%);
  transform: translateX(-130%);
  transition: transform 0.65s var(--ease);
}

.btn--primary:hover {
  box-shadow: 0 14px 40px -10px rgba(167, 92, 247, 0.75);
}

.btn--primary:hover::after {
  transform: translateX(130%);
}

.btn__chev {
  font-size: 15px;
  transition: transform 0.35s var(--ease);
}

.btn--primary:hover .btn__chev {
  transform: translateY(3px);
}

.btn--ghost {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.btn--ghost:hover {
  border-color: rgba(62, 232, 152, 0.5);
  background: rgba(62, 232, 152, 0.06);
  color: #fff;
}

.btn--solid {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.btn--solid:hover {
  border-color: rgba(167, 92, 247, 0.55);
  background: rgba(167, 92, 247, 0.12);
}

.btn.is-magnet {
  transition: transform 0.18s var(--ease), box-shadow 0.35s var(--ease),
    background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

/* 6. Hero ---------------------------------------------------- */
main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.7fr);
  gap: 40px;
  align-items: center;
  padding: 48px 44px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(600px 260px at 88% 4%, rgba(167, 92, 247, 0.18), transparent 60%),
    radial-gradient(420px 220px at 6% 96%, rgba(62, 232, 152, 0.1), transparent 60%),
    linear-gradient(150deg, #101019 0%, #0a0a0e 100%);
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  perspective: 1200px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(62, 232, 152, 0.14),
    transparent
  );
  transform: translateX(-100%);
}

.hero.is-entering::before {
  animation: sweep 1.4s var(--ease) 0.25s forwards;
}

@keyframes sweep {
  to {
    transform: translateX(100%);
  }
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 12px 5px 10px;
  border: 1px solid rgba(62, 232, 152, 0.25);
  border-radius: 999px;
  background: rgba(62, 232, 152, 0.06);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(62, 232, 152, 0.6);
  animation: ping 1.8s ease-out infinite;
}

@keyframes ping {
  70% {
    box-shadow: 0 0 0 9px rgba(62, 232, 152, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(62, 232, 152, 0);
  }
}

h1 {
  margin-top: 18px;
  font-size: clamp(32px, 5.4vw, 50px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

h1 .scramble {
  background: linear-gradient(100deg, #ffffff 30%, var(--green) 50%, var(--purple) 70%, #ffffff);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 8s linear infinite;
}

@keyframes sheen {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 250% 50%;
  }
}

.lede {
  max-width: 46ch;
  margin-top: 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

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

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 40px;
  border-top: 1px solid var(--line-soft);
  padding-top: 20px;
}

.stats__item dt {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.stats__item dd {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 500;
}

.hero__art {
  position: relative;
  margin: 0;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  /* Tilt and scroll-parallax are composed from JS-set custom properties. */
  transform: translateY(var(--shift, 0px)) rotateX(var(--tiltX, 0deg))
    rotateY(var(--tiltY, 0deg));
  transform-origin: center;
  will-change: transform;
  transition: box-shadow 0.5s var(--ease);
}

.hero__art.is-hover {
  box-shadow: 0 30px 70px -20px rgba(167, 92, 247, 0.35);
}

.hero__art img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

/* Frame treatment: a slow scan sweep over the art + corner brackets.
   Purely decorative, so both layers stay out of hit-testing. */
.hero__art::before,
.hero__art::after {
  content: "";
  position: absolute;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
}

.hero__art::before {
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 46%,
    rgba(62, 232, 152, 0.16) 50%,
    transparent 54%
  );
  transform: translateY(-120%);
  animation: art-scan 7s linear infinite;
}

@keyframes art-scan {
  0% {
    transform: translateY(-120%);
  }
  50% {
    transform: translateY(120%);
  }
  100% {
    transform: translateY(-120%);
  }
}

.hero__art::after {
  inset: 12px;
  border-radius: 10px;
  opacity: 0.5;
  background:
    linear-gradient(var(--green), var(--green)) 0 0 / 20px 1px no-repeat,
    linear-gradient(var(--green), var(--green)) 0 0 / 1px 20px no-repeat,
    linear-gradient(var(--purple), var(--purple)) 100% 0 / 20px 1px no-repeat,
    linear-gradient(var(--purple), var(--purple)) 100% 0 / 1px 20px no-repeat,
    linear-gradient(var(--purple), var(--purple)) 100% 100% / 20px 1px no-repeat,
    linear-gradient(var(--purple), var(--purple)) 100% 100% / 1px 20px no-repeat,
    linear-gradient(var(--green), var(--green)) 0 100% / 20px 1px no-repeat,
    linear-gradient(var(--green), var(--green)) 0 100% / 1px 20px no-repeat;
}

.orbit {
  position: absolute;
  inset: -16%;
  border: 1px dashed rgba(62, 232, 152, 0.25);
  border-radius: 50%;
  pointer-events: none;
  animation: spin 20s linear infinite;
}

.orbit--alt {
  inset: -28%;
  border-color: rgba(167, 92, 247, 0.18);
  animation-duration: 34s;
  animation-direction: reverse;
}

.orbit::after {
  content: "";
  position: absolute;
  top: 8%;
  left: 50%;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 14px var(--purple);
}

.orbit--alt::after {
  top: auto;
  bottom: 4%;
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hero__tag {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 8, 11, 0.72);
  backdrop-filter: blur(8px);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.hero__tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: blink 2.4s var(--ease) infinite;
}

@keyframes blink {
  50% {
    opacity: 0.25;
  }
}

/* 7. Ticker -------------------------------------------------- */
.ticker {
  position: relative;
  margin: 28px 0;
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.ticker__track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  padding: 12px 0;
  animation: marquee 32s linear infinite;
}

.ticker:hover .ticker__track {
  animation-play-state: paused;
}

.ticker__track span {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker__track i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--purple);
  opacity: 0.7;
}

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

/* 8. Panels, cards, section heads ----------------------------- */
.section {
  position: relative;
}

.panel {
  margin-top: 56px;
}

.section-head {
  position: relative;
  margin-bottom: 26px;
}

.section-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -12px;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, var(--purple), transparent 72%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s var(--ease);
}

.section-head.is-seen::after {
  transform: scaleX(1);
}

.section-head__index {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--purple);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
}

.section-head h2 {
  font-size: clamp(24px, 3.4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-head p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.card {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--panel) 0%, var(--bg-soft) 100%);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    280px circle at var(--mx, 50%) var(--my, 0%),
    rgba(167, 92, 247, 0.55),
    transparent 65%
  );
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.card--spot:hover::before {
  opacity: 1;
}

.card--spot:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -28px rgba(167, 92, 247, 0.8);
}

/* Diagonal sheen that sweeps across on hover */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 34%,
    rgba(255, 255, 255, 0.055) 46%,
    transparent 58%
  );
  transform: translateX(-70%);
  opacity: 0;
  transition: opacity 0.45s var(--ease), transform 0.9s var(--ease);
}

.card--spot:hover::after {
  opacity: 1;
  transform: translateX(70%);
}

/* Pointer-tracked depth: inner content drifts against the cursor */
.steps li h3,
.steps li p,
.steps li .chip {
  transform: translate3d(calc(var(--rx, 0) * -7px), calc(var(--ry, 0) * -7px), 0);
  transition: transform 0.4s var(--ease);
}

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

.steps__num {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.steps h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.steps p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.chip {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11px;
}

.chip--inline {
  display: inline;
  margin: 0;
  padding: 2px 7px;
  color: var(--green);
  border-color: rgba(62, 232, 152, 0.3);
  background: rgba(62, 232, 152, 0.07);
  font-size: 0.92em;
}

/* 9. Links --------------------------------------------------- */
.links {
  list-style: none;
  display: grid;
  gap: 12px;
}

.links li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
}

.links__key {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.25s var(--ease), gap 0.25s var(--ease);
}

.links a:hover {
  gap: 16px;
  color: var(--green);
}

.links__arrow {
  color: var(--faint);
  font-size: 13px;
  transition: color 0.25s var(--ease);
}

.links a:hover .links__arrow {
  color: var(--green);
}

/* 10. Disclaimer ---------------------------------------------- */
.disclaimer {
  margin-top: 56px;
  padding: 22px 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.022), transparent 70%);
  transition: border-color 0.5s var(--ease);
}

.disclaimer:hover {
  border-color: rgba(167, 92, 247, 0.28);
}

.disclaimer__label {
  display: block;
  margin-bottom: 10px;
  color: var(--purple);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.disclaimer p {
  max-width: 88ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

/* 11. Footer + toast ------------------------------------------ */
footer {
  border-top: 1px solid var(--line-soft);
  padding: 26px 28px 34px;
}

.footer__bar {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

.footer__meta {
  color: var(--faint);
}

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 45;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(8, 8, 11, 0.82);
  backdrop-filter: blur(10px);
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease),
    color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top:hover {
  color: var(--green);
  border-color: rgba(62, 232, 152, 0.45);
}

/* Progress ring — a conic sweep driven by --p (0 → 1) from JS */
.to-top::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  padding: 1px;
  background: conic-gradient(
    from -90deg,
    var(--green) calc(var(--p, 0) * 1turn),
    rgba(255, 255, 255, 0.06) 0
  );
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  pointer-events: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 50;
  padding: 10px 18px;
  border: 1px solid rgba(62, 232, 152, 0.35);
  border-radius: 999px;
  background: rgba(8, 8, 11, 0.9);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* 12. Motion utilities ---------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* 13. Responsive + reduced motion ----------------------------- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 36px 28px;
  }

  .hero__art {
    max-width: 300px;
    margin-inline: auto;
  }

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

@media (max-width: 720px) {
  .top {
    padding: 0 16px;
    gap: 12px;
  }

  .top .btn--sm {
    display: none;
  }

  .brand__text small {
    display: none;
  }

  nav a {
    padding: 6px 10px;
    font-size: 12.5px;
  }

  main {
    padding: 32px 18px 72px;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .links li {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .footer__bar {
    justify-content: center;
    text-align: center;
  }
}

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

  .glow,
  .grid,
  .orbit,
  .ticker__track,
  .pulse-dot,
  .hero__tag .dot,
  h1 .scramble,
  .hero.is-entering::before {
    animation: none !important;
  }

  .cursor-glow,
  .cursor-dot,
  .cursor-ring,
  .fx,
  .scanlines {
    display: none;
  }

  .to-top {
    transition: none;
  }

  .section-head::after {
    transform: scaleX(1);
    transition: none;
  }

  .steps li h3,
  .steps li p,
  .steps li .chip {
    transform: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* 14. Countdown drop timer ------------------------------------ */
.countdown {
  position: relative;
  margin-top: 26px;
  padding: 16px 20px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(170px 90px at 8% 0%, rgba(62, 232, 152, 0.08), transparent 70%),
    linear-gradient(160deg, rgba(16, 16, 22, 0.94), rgba(10, 10, 14, 0.94));
  overflow: hidden;
  transition: border-color 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

/* Faint sweep that runs down the card, echoing the hero's entrance. */
.countdown::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(62, 232, 152, 0.09) 50%,
    transparent 60%
  );
  transform: translateY(-120%);
  animation: cd-scan 7s linear infinite;
  opacity: 0.7;
}

@keyframes cd-scan {
  0% {
    transform: translateY(-120%);
  }
  50% {
    transform: translateY(120%);
  }
  100% {
    transform: translateY(-120%);
  }
}

.countdown__top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 13px;
}

.countdown__title {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.5s var(--ease);
}

.countdown__stamp {
  margin-left: auto;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.countdown__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.unit {
  position: relative;
  padding: 12px 6px 9px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
  overflow: hidden;
  transition: border-color 0.5s var(--ease), box-shadow 0.5s var(--ease),
    background 0.5s var(--ease);
}

.unit__val {
  display: flex;
  justify-content: center;
  gap: 1px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: clamp(20px, 4.6vw, 28px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 14px rgba(62, 232, 152, 0.35);
  transition: color 0.4s var(--ease), text-shadow 0.4s var(--ease);
}

.unit__lab {
  display: block;
  margin-top: 7px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.unit .digit {
  display: inline-block;
  will-change: transform;
}

/* Each digit rolls over as it changes rather than snapping. */
.unit .digit.is-flip {
  animation: digit-flip 0.42s var(--ease);
}

@keyframes digit-flip {
  0% {
    transform: translateY(0);
    opacity: 1;
    filter: blur(0);
  }
  32% {
    transform: translateY(-46%);
    opacity: 0;
    filter: blur(5px);
  }
  68% {
    transform: translateY(46%);
    opacity: 0;
    filter: blur(5px);
  }
  100% {
    transform: translateY(0);
    opacity: 1;
    filter: blur(0);
  }
}

/* Fill runs from empty toward full as the drop approaches. */
.countdown__bar {
  position: relative;
  height: 3px;
  margin-top: 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.countdown__fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--purple));
  box-shadow: 0 0 12px rgba(167, 92, 247, 0.55);
  transition: width 1s linear;
}

.countdown__spark {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 44px;
  opacity: 0;
  mix-blend-mode: screen;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: translateX(-100%);
  animation: cd-spark 4.5s linear infinite;
}

@keyframes cd-spark {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  15%,
  85% {
    opacity: 1;
  }
  100% {
    transform: translateX(110%);
    opacity: 0;
  }
}

.countdown__note {
  position: relative;
  margin-top: 12px;
  color: var(--faint);
  font-size: 12px;
  transition: color 0.4s var(--ease);
}

/* Last hour: the units warm up and the seconds column takes the pulse. */
.countdown.is-urgent .unit__val {
  color: var(--green);
  text-shadow: 0 0 18px rgba(62, 232, 152, 0.6);
}

.countdown.is-urgent .unit:last-child {
  border-color: rgba(167, 92, 247, 0.55);
  background: rgba(167, 92, 247, 0.06);
  box-shadow: 0 0 18px -8px rgba(167, 92, 247, 0.7);
}

/* Unlocked: the whole card settles into the green live state. */
.countdown.is-live {
  border-color: rgba(62, 232, 152, 0.55);
  box-shadow: 0 0 30px -16px rgba(62, 232, 152, 0.7);
}

.countdown.is-live .countdown__title {
  color: var(--green);
}

.countdown.is-live .unit {
  border-color: rgba(62, 232, 152, 0.35);
}

.countdown.is-live .unit__val {
  color: var(--green);
  text-shadow: 0 0 18px rgba(62, 232, 152, 0.55);
}

.countdown.is-live .countdown__fill {
  background: var(--green);
  box-shadow: 0 0 12px rgba(62, 232, 152, 0.7);
}

.countdown.is-live .countdown__note {
  color: var(--muted);
}

/* 15. Gate on the primary button ------------------------------- */
.btn--primary.is-locked {
  color: var(--faint);
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
  box-shadow: none;
  cursor: not-allowed;
  animation: lock-breath 3s ease-in-out infinite;
}

.btn--primary.is-locked::after {
  display: none;
}

.btn--primary.is-locked:hover {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  box-shadow: none;
}

@keyframes lock-breath {
  50% {
    border-color: rgba(167, 92, 247, 0.35);
  }
}

.btn--primary.is-unlocked {
  animation: unlock-pulse 1.3s var(--ease);
}

@keyframes unlock-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 10px 30px -10px rgba(62, 232, 152, 0.6);
  }
  30% {
    transform: scale(1.05);
    box-shadow: 0 18px 46px -10px rgba(167, 92, 247, 0.85);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 10px 30px -10px rgba(62, 232, 152, 0.6);
  }
}

/* 16. Hero copy entrance --------------------------------------- */
.hero__copy > * {
  animation: rise 0.8s var(--ease) both;
}

.hero__copy > :nth-child(1) {
  animation-delay: 0.05s;
}

.hero__copy > :nth-child(2) {
  animation-delay: 0.13s;
}

.hero__copy > :nth-child(3) {
  animation-delay: 0.21s;
}

.hero__copy > :nth-child(4) {
  animation-delay: 0.29s;
}

.hero__copy > :nth-child(5) {
  animation-delay: 0.37s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* 17. Countdown responsive -------------------------------------- */
@media (max-width: 620px) {
  .countdown {
    padding: 15px 15px 13px;
  }

  .countdown__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .countdown__stamp {
    margin-left: 0;
    order: 3;
  }

  .countdown__grid {
    gap: 7px;
  }

  .unit {
    padding: 10px 4px 8px;
  }

  .unit__lab {
    letter-spacing: 0.1em;
  }
}

/* 18. Countdown under reduced motion ---------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hero__copy > *,
  .unit .digit.is-flip,
  .countdown::before,
  .countdown__spark,
  .hero__art::before,
  .btn--primary.is-unlocked,
  .btn--primary.is-locked {
    animation: none !important;
  }

  .hero__copy > * {
    opacity: 1;
    transform: none;
  }

  .countdown__fill {
    transition: none !important;
  }
}
