:root {
  color-scheme: dark;
  --bg: #020705;
  --bg-2: #07120d;
  --ink: #f4fff8;
  --muted: rgba(244, 255, 248, 0.62);
  --line: rgba(146, 255, 193, 0.18);
  --sigma: #00f083;
  --sigma-2: #83ffe1;
  --violet: #7a5cff;
  --pink: #ff4f8a;
  --panel: rgba(8, 18, 13, 0.72);
  --glass: rgba(255, 255, 255, 0.075);
  --shadow: 0 40px 120px rgba(0, 0, 0, 0.58);
  --radius: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  max-width: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Avenir Next", "Helvetica Neue", Helvetica, sans-serif;
  background:
    radial-gradient(circle at var(--heat-x, 47%) 18%, rgba(0, 240, 131, 0.12), transparent 18rem),
    linear-gradient(115deg, transparent 0 58%, rgba(131, 255, 225, 0.06) 58.2%, transparent 74%),
    radial-gradient(circle at 78% 12%, rgba(24, 255, 160, 0.22), transparent 24rem),
    radial-gradient(circle at 8% 34%, rgba(122, 92, 255, 0.13), transparent 24rem),
    linear-gradient(180deg, #020403 0%, #050b08 42%, #020403 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: soft-light;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 3px 3px;
}

.cursor-light {
  position: fixed;
  width: 34rem;
  height: 34rem;
  left: var(--x, 50vw);
  top: var(--y, 20vh);
  z-index: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0.42;
  background: radial-gradient(circle, rgba(0, 240, 131, 0.2), transparent 64%);
  filter: blur(14px);
}

.topbar {
  position: fixed;
  top: 22px;
  left: 50%;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  width: min(1220px, calc(100vw - 48px));
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  transform: translateX(-50%);
  transition: opacity 220ms ease;
}

.topbar::before {
  content: none;
}

.topbar::after {
  content: "";
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 1px;
  transform-origin: left;
  transform: scaleX(var(--scroll-progress, 0));
  background: linear-gradient(90deg, var(--sigma), var(--sigma-2), transparent);
  box-shadow: 0 0 14px rgba(0, 240, 131, 0.68);
}

.brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-shadow: 0 0 22px rgba(0, 240, 131, 0.32);
}

.nav-pulse {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 42px);
  min-width: 0;
  padding: 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.nav-pulse::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(131, 255, 225, 0.34), transparent);
  transform: translateY(-50%);
}

.nav-chip {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-height: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  color: rgba(244, 255, 248, 0.58);
  font-size: 12px;
  white-space: nowrap;
  transition:
    color 190ms ease,
    background 190ms ease,
    border-color 190ms ease,
    transform 190ms ease;
}

.nav-chip::after {
  content: "";
  position: absolute;
  top: -6px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0, 240, 131, 0.28), transparent 64%);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-chip span {
  position: relative;
  z-index: 1;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(244, 255, 248, 0.24);
  box-shadow: none;
  transition: background 190ms ease, box-shadow 190ms ease, transform 190ms ease;
}

.nav-chip:hover,
.nav-chip.active {
  color: var(--ink);
  background: transparent;
  transform: translateY(-1px);
}

.nav-chip:hover::after,
.nav-chip.active::after {
  opacity: 1;
  transform: scale(1);
}

.nav-chip:hover span,
.nav-chip.active span {
  background: var(--sigma);
  box-shadow: 0 0 18px rgba(0, 240, 131, 0.9);
  transform: scale(1.2);
}

.brand-mark {
  display: block;
  width: 19px;
  height: 16px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0, 240, 131, 0.72));
}

.top-link,
.close-lightbox {
  border: 1px solid rgba(244, 255, 248, 0.12);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.top-link:hover,
.close-lightbox:hover {
  border-color: rgba(0, 240, 131, 0.52);
  color: #06130c;
  background: linear-gradient(135deg, var(--sigma), var(--sigma-2));
  transform: translateY(-1px);
}

.top-link {
  position: relative;
  z-index: 2;
  padding: 0 0 3px;
  border: 0;
  border-bottom: 1px solid rgba(131, 255, 225, 0.42);
  border-radius: 0;
  background: transparent;
  font-size: 12px;
  color: rgba(244, 255, 248, 0.7);
}

.top-link:hover {
  color: var(--sigma-2);
  background: transparent;
  transform: translateY(-1px);
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(380px, 1.18fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  min-height: 100svh;
  padding: 110px max(20px, 7vw) 96px;
  overflow: clip;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -12% -14% -8% 44%;
  z-index: -2;
  background: radial-gradient(circle at 58% 44%, rgba(0, 240, 131, 0.24), transparent 36rem);
  filter: blur(10px);
  opacity: 0.82;
  transform: translate3d(calc(var(--hero-x, 0) * -10px), calc(var(--hero-y, 0) * -6px), 0);
}

.hero::after {
  content: none;
}

.hero-field {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.speed-lines {
  position: absolute;
  inset: -10%;
  z-index: 0;
  overflow: hidden;
  opacity: 0.48;
  filter: drop-shadow(0 0 12px rgba(0, 240, 131, 0.2));
  transform: translate3d(calc(var(--hero-x, 0) * -18px), calc(var(--hero-y, 0) * -10px), 0);
  transition: transform 140ms ease-out;
  mask-image:
    radial-gradient(circle at 58% 48%, black 0 42%, rgba(0, 0, 0, 0.68) 58%, transparent 82%),
    linear-gradient(90deg, transparent 0, black 14%, black 88%, transparent 100%);
}

.speed-lines::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 58% 48%, rgba(0, 240, 131, 0.14), transparent 32%);
  opacity: 0.52;
}

.speed-lines span {
  position: absolute;
  left: 58%;
  top: 48%;
  width: var(--line-len);
  height: var(--line-weight);
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0, var(--line-color) 20%, var(--line-color) 78%, transparent 100%);
  opacity: var(--line-alpha);
  transform: rotate(var(--line-angle)) translateX(var(--line-start));
  transform-origin: left center;
  animation: speed-line-breathe var(--line-duration) ease-in-out infinite;
  animation-delay: var(--line-delay);
  will-change: opacity, transform;
}

.pulse,
.orbit {
  position: absolute;
  display: block;
  border-radius: 999px;
}

.pulse {
  width: 12px;
  height: 12px;
  background: var(--sigma);
  box-shadow: 0 0 28px rgba(0, 240, 131, 0.9);
  animation: pulse 2.8s ease-in-out infinite;
}

.pulse-a {
  left: 17%;
  top: 28%;
}

.pulse-b {
  right: 16%;
  bottom: 22%;
  animation-delay: 1.2s;
}

.orbit {
  border: 1px solid rgba(131, 255, 225, 0.22);
  transform: rotate(-14deg);
  animation: drift 11s ease-in-out infinite;
}

.orbit-a {
  width: 28vw;
  height: 28vw;
  right: 9%;
  top: 18%;
}

.orbit-b {
  width: 15vw;
  height: 15vw;
  left: -4%;
  bottom: 4%;
  border-color: rgba(131, 255, 225, 0.12);
  animation-delay: -4s;
}

@keyframes pulse {
  50% {
    transform: scale(1.8);
    opacity: 0.48;
  }
}

@keyframes drift {
  50% {
    transform: translateY(-18px) rotate(-10deg);
  }
}

@keyframes speed-line-breathe {
  0%,
  100% {
    opacity: calc(var(--line-alpha) * 0.42);
    transform: rotate(var(--line-angle)) translateX(calc(var(--line-start) - 26px)) scaleX(0.76);
  }
  48%,
  62% {
    opacity: var(--line-alpha);
    transform: rotate(var(--line-angle)) translateX(var(--line-start)) scaleX(1);
  }
}

@keyframes hero-title-in {
  from {
    opacity: 0;
    filter: blur(18px);
    transform: translate3d(-34px, 22px, 0) scale(0.96);
  }
  62% {
    opacity: 1;
    filter: blur(0);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes hero-mark-pulse {
  0% {
    opacity: 0;
    filter: drop-shadow(0 0 0 rgba(0, 240, 131, 0));
    transform: translateY(0.02em) scale(0.86);
  }
  54% {
    opacity: 1;
    filter:
      drop-shadow(0 0 34px rgba(0, 240, 131, 0.72))
      drop-shadow(0 30px 78px rgba(0, 0, 0, 0.64));
    transform: translateY(0.02em) scale(1.04);
  }
  100% {
    opacity: 1;
    filter:
      drop-shadow(0 0 22px rgba(0, 240, 131, 0.52))
      drop-shadow(0 26px 70px rgba(0, 0, 0, 0.58));
    transform: translateY(0.02em) scale(1);
  }
}

@keyframes hero-word-scan {
  from {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: translateX(-18px);
  }
  44% {
    opacity: 1;
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateX(0);
  }
}

@keyframes hero-copy-in {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--sigma-2);
  font-size: clamp(12px, 1.1vw, 14px);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(0, 240, 131, 0.22);
  animation: hero-copy-in 760ms cubic-bezier(0.18, 0.82, 0.24, 1) 120ms both;
}

.hero-title-lockup {
  display: inline-flex;
  align-items: center;
  gap: clamp(18px, 2.25vw, 34px);
  margin: 0 0 -0.08em;
  padding-bottom: 0.12em;
  max-width: 100%;
  color: var(--ink);
  font-size: clamp(78px, 10.4vw, 150px);
  line-height: 1;
  letter-spacing: 0.012em;
  white-space: nowrap;
  overflow: visible;
  text-shadow:
    0 0 32px rgba(0, 240, 131, 0.26),
    0 34px 96px rgba(0, 0, 0, 0.78);
  animation: hero-title-in 980ms cubic-bezier(0.16, 0.86, 0.22, 1) both;
}

.hero-title-mark {
  display: block;
  flex: 0 0 auto;
  width: 0.92em;
  height: 0.79em;
  object-fit: contain;
  filter:
    drop-shadow(0 0 22px rgba(0, 240, 131, 0.52))
    drop-shadow(0 26px 70px rgba(0, 0, 0, 0.58));
  transform: translateY(0.02em);
  animation: hero-mark-pulse 1.45s cubic-bezier(0.16, 0.86, 0.22, 1) both;
}

.hero-title-word {
  display: block;
  padding-bottom: 0.06em;
  overflow: visible;
  animation: hero-word-scan 1.2s cubic-bezier(0.16, 0.86, 0.22, 1) 120ms both;
}

.hero-text {
  max-width: 560px;
  margin: 30px 0 0;
  color: rgba(244, 255, 248, 0.74);
  font-size: clamp(16px, 1.5vw, 22px);
  line-height: 1.6;
  animation: hero-copy-in 760ms cubic-bezier(0.18, 0.82, 0.24, 1) 260ms both;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin-top: 36px;
  color: var(--ink);
  font-size: 14px;
  animation: hero-copy-in 760ms cubic-bezier(0.18, 0.82, 0.24, 1) 380ms both;
}

.hero-cta span {
  width: 58px;
  height: 1px;
  background: var(--sigma);
  box-shadow: 0 0 18px rgba(0, 240, 131, 0.85);
}

.hero-console {
  width: min(420px, 100%);
  margin-top: 26px;
  padding: 18px 20px 20px;
  border: 1px solid rgba(131, 255, 225, 0.16);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(131, 255, 225, 0.06), rgba(4, 12, 8, 0.5));
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  backdrop-filter: blur(18px);
  animation: hero-copy-in 760ms cubic-bezier(0.18, 0.82, 0.24, 1) 500ms both;
}

.hero-console-label {
  display: block;
  margin: 0 0 12px;
  color: var(--sigma-2);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.78;
}

.mode-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mode-chip {
  min-height: 36px;
  border: 1px solid rgba(244, 255, 248, 0.1);
  border-radius: 999px;
  color: rgba(244, 255, 248, 0.72);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.mode-chip:hover,
.mode-chip.active {
  border-color: rgba(0, 240, 131, 0.58);
  color: #06130c;
  background: linear-gradient(135deg, var(--sigma), var(--sigma-2));
  transform: translateY(-1px);
}

.intensity-control {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.intensity-control input {
  width: 100%;
  accent-color: var(--sigma);
  cursor: pointer;
}

.hero-gallery {
  position: relative;
  --hero-screen-width: clamp(240px, 22vw, 320px);
  min-height: min(66svh, 640px);
  perspective: 1400px;
  transform: translate3d(calc(var(--hero-x, 0) * 12px), calc(var(--hero-y, 0) * 8px), 0);
  transition: transform 120ms ease-out;
}

.hero-route {
  position: absolute;
  inset: 9% 2% auto auto;
  z-index: 4;
  width: 72%;
  height: 78%;
  pointer-events: none;
  opacity: 0.88;
  filter: drop-shadow(0 0 12px rgba(0, 240, 131, 0.46));
}

.hero-route path {
  fill: none;
  stroke: var(--sigma);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 980;
  stroke-dashoffset: 980;
  animation: hero-route 5.6s ease-in-out infinite;
}

@keyframes hero-route {
  45%,
  78% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -980;
  }
}

.hero-video-stage {
  --hero-video-radius: clamp(42px, 3.4vw, 58px);
  position: absolute;
  right: 14%;
  top: 4%;
  width: var(--hero-screen-width);
  aspect-ratio: 720 / 1566;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(131, 255, 225, 0.28);
  border-radius: var(--hero-video-radius);
  background:
    linear-gradient(120deg, rgba(131, 255, 225, 0.16), transparent 38%),
    rgba(255, 255, 255, 0.035);
  box-shadow:
    0 48px 170px rgba(0, 0, 0, 0.76),
    0 0 0 1px rgba(255, 255, 255, 0.035) inset,
    0 0 110px rgba(0, 240, 131, 0.18);
  clip-path: inset(0 round var(--hero-video-radius));
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  transform: translateZ(0);
  transform-style: preserve-3d;
  animation: device-enter 1.08s cubic-bezier(0.16, 0.86, 0.22, 1) 160ms both;
}

.hero-video-stage::before,
.hero-video-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
}

.hero-video-stage::before {
  background:
    radial-gradient(circle at 68% 28%, rgba(131, 255, 225, 0.18), transparent 26%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.34), transparent 32%, transparent 72%, rgba(0, 0, 0, 0.38));
  mix-blend-mode: screen;
}

.hero-video-stage::after {
  inset: -36% -16%;
  background: linear-gradient(112deg, transparent 42%, rgba(131, 255, 225, 0.2) 50%, transparent 58%);
  transform: translateX(-66%);
  animation: card-scan 5.4s ease-in-out infinite;
}

.hero-video {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.06) contrast(1.04) brightness(0.96);
}

.video-edge {
  position: absolute;
  left: 7%;
  right: 8%;
  z-index: 3;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(131, 255, 225, 0.68), transparent);
  pointer-events: none;
}

.video-edge-top {
  top: 18px;
}

.video-edge-bottom {
  bottom: 18px;
}

.hero-card {
  position: absolute;
  margin: 0;
  border: 1px solid rgba(131, 255, 225, 0.28);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  box-shadow:
    0 40px 140px rgba(0, 0, 0, 0.68),
    0 0 80px rgba(0, 240, 131, 0.14);
  transform-style: preserve-3d;
  animation: card-arrive 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: linear-gradient(110deg, transparent 42%, rgba(131, 255, 225, 0.22) 50%, transparent 58%);
  transform: translateX(-60%);
  animation: card-scan 4.8s ease-in-out infinite;
  pointer-events: none;
}

.hero-card img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-card-main {
  right: 0;
  top: 8%;
  width: min(56vw, 860px);
  transform: rotateY(-12deg) rotateZ(1deg);
}

.hero-card-tall {
  left: 3%;
  bottom: 2%;
  width: min(21vw, 260px);
  transform: rotateY(18deg) rotateZ(-3deg);
  animation-delay: 110ms;
}

.hero-card-small {
  right: 11%;
  bottom: 0;
  width: min(34vw, 480px);
  transform: rotateY(-8deg) rotateZ(-2deg);
  animation-delay: 220ms;
}

@keyframes card-arrive {
  from {
    opacity: 0;
    filter: blur(10px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes device-enter {
  from {
    opacity: 0;
    filter: blur(18px) saturate(0.82);
    transform: translate3d(74px, 64px, 0) rotateY(-16deg) rotateZ(2deg) scale(0.92);
  }
  62% {
    opacity: 1;
    filter: blur(0) saturate(1.06);
  }
  to {
    opacity: 1;
    filter: blur(0) saturate(1);
    transform: translateZ(0) rotateY(0) rotateZ(0) scale(1);
  }
}

@keyframes card-scan {
  0%,
  38% {
    transform: translateX(-68%);
  }
  68%,
  100% {
    transform: translateX(68%);
  }
}

.hero-hud,
.coach-bubble {
  position: absolute;
  z-index: 5;
  border: 1px solid rgba(131, 255, 225, 0.25);
  border-radius: var(--radius-lg);
  background: rgba(4, 12, 8, 0.66);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.38), 0 0 38px rgba(0, 240, 131, 0.16);
  backdrop-filter: blur(16px);
}

.hero-hud {
  display: grid;
  gap: 3px;
  min-width: 118px;
  padding: 12px 14px;
  animation: float-card 5.8s ease-in-out infinite;
}

.hero-hud span,
.hero-hud small {
  color: var(--muted);
  font-size: 11px;
}

.hero-hud strong {
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
}

.hud-run {
  left: auto;
  right: calc(14% + var(--hero-screen-width) - 34px);
  top: 32%;
}

.hud-glow {
  right: 3%;
  top: 12%;
  animation-delay: -2s;
}

.coach-bubble {
  right: calc(14% + var(--hero-screen-width) - clamp(54px, 4vw, 72px));
  bottom: 27%;
  width: min(300px, 30vw);
  padding: 14px 16px;
  color: rgba(244, 255, 248, 0.82);
  font-size: 13px;
  line-height: 1.45;
  animation: float-card 6.5s ease-in-out infinite reverse;
}

.coach-bubble span {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--sigma);
  box-shadow: 0 0 18px rgba(0, 240, 131, 0.9);
}

@keyframes float-card {
  50% {
    transform: translateY(-12px);
  }
}

.motion-lab {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr 0.92fr;
  gap: 14px;
  width: min(1240px, calc(100vw - 32px));
  margin: clamp(24px, 4vw, 64px) auto 56px;
  position: relative;
  z-index: 4;
}

.lab-card {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(131, 255, 225, 0.2);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(0, 240, 131, 0.2), transparent 16rem),
    rgba(4, 12, 8, 0.68);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.lab-card:hover {
  border-color: rgba(0, 240, 131, 0.55);
  box-shadow: 0 38px 130px rgba(0, 0, 0, 0.56), 0 0 70px rgba(0, 240, 131, 0.16);
  transform: translateY(-4px);
}

.lab-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.lab-head span {
  color: var(--sigma);
  font-weight: 800;
}

.lab-head strong {
  color: var(--ink);
  font-size: 15px;
}

.route-map {
  width: 100%;
  height: 190px;
  margin-top: 18px;
}

.route-grid {
  fill: none;
  stroke: rgba(244, 255, 248, 0.09);
  stroke-width: 1;
}

.route-line {
  fill: none;
  stroke: var(--sigma);
  stroke-width: 5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 12px rgba(0, 240, 131, 0.74));
  stroke-dasharray: 640;
  stroke-dashoffset: 640;
  animation: draw-route 4s ease-in-out infinite;
}

.route-dot {
  fill: var(--sigma-2);
  filter: drop-shadow(0 0 12px rgba(131, 255, 225, 0.9));
  animation: dot-pop 4s ease-in-out infinite;
}

.dot-b {
  animation-delay: 0.7s;
}

.dot-c {
  animation-delay: 1.4s;
}

@keyframes draw-route {
  45%,
  80% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -640;
  }
}

@keyframes dot-pop {
  50% {
    transform: scale(1.35);
  }
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.metric-row span {
  padding: 11px 10px;
  border: 1px solid rgba(244, 255, 248, 0.1);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  font-size: 12px;
}

.metric-row strong {
  display: block;
  color: var(--ink);
  font-size: 22px;
}

.coach-thread {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.message {
  margin: 0;
  width: fit-content;
  max-width: 92%;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.45;
}

.message.user {
  justify-self: end;
  color: #06130c;
  background: linear-gradient(135deg, var(--sigma), var(--sigma-2));
}

.message.ai {
  color: rgba(244, 255, 248, 0.82);
  background: rgba(255, 255, 255, 0.075);
}

.message.typing {
  display: flex;
  gap: 5px;
  padding: 12px;
}

.message.typing span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--sigma);
  animation: typing 1.2s ease-in-out infinite;
}

.message.typing span:nth-child(2) {
  animation-delay: 0.16s;
}

.message.typing span:nth-child(3) {
  animation-delay: 0.32s;
}

@keyframes typing {
  50% {
    transform: translateY(-5px);
    opacity: 0.55;
  }
}

.lab-button {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 9px 13px;
  border: 1px solid rgba(0, 240, 131, 0.35);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(0, 240, 131, 0.08);
  cursor: pointer;
}

.mood-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.mood-orbit {
  position: relative;
  min-height: 210px;
  margin-top: 18px;
  border: 1px solid rgba(131, 255, 225, 0.15);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(0, 240, 131, 0.2) 0 2px, transparent 3px),
    radial-gradient(circle at 50% 50%, rgba(0, 240, 131, 0.14), transparent 52%);
  background-size: 34px 34px, auto;
  animation: slow-spin 18s linear infinite;
}

.mood-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 18px;
  height: 18px;
  border: 1px solid rgba(244, 255, 248, 0.62);
  border-radius: 999px;
  background: rgba(131, 255, 225, 0.36);
  box-shadow: 0 0 20px rgba(131, 255, 225, 0.5);
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.mood-node.active {
  background: var(--sigma);
  box-shadow: 0 0 28px rgba(0, 240, 131, 0.95);
}

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

.mood-label {
  margin: 16px 0 0;
  color: rgba(244, 255, 248, 0.76);
  font-size: 14px;
}

.progress-wrap {
  position: fixed;
  right: 20px;
  top: 50%;
  z-index: 18;
  width: 2px;
  height: 40vh;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(244, 255, 248, 0.12);
  transform: translateY(-50%);
}

.progress-bar {
  width: 100%;
  height: var(--progress, 0%);
  background: linear-gradient(180deg, var(--sigma-2), var(--sigma), var(--pink));
  box-shadow: 0 0 20px rgba(0, 240, 131, 0.72);
}

.page-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: auto;
  padding: clamp(16px, 2vw, 28px) clamp(8px, 1.6vw, 22px) clamp(10px, 1.4vw, 20px);
  isolation: isolate;
  opacity: 0.32;
  filter: blur(10px);
  transform: translateY(74px) scale(0.982);
  transition:
    opacity 760ms ease,
    filter 760ms ease,
    transform 920ms cubic-bezier(0.16, 0.86, 0.22, 1);
  transition-delay: calc(var(--reveal-index, 0) * 36ms);
  will-change: opacity, filter, transform;
}

.page-stage.reveal-in {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

.page-stage::before {
  content: "";
  position: absolute;
  inset: 12% 4%;
  z-index: -1;
  opacity: 0.68;
  background:
    radial-gradient(circle at 22% 72%, rgba(0, 240, 131, 0.15), transparent 28rem),
    radial-gradient(circle at 78% 30%, rgba(131, 255, 225, 0.1), transparent 30rem),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.035), transparent);
  filter: blur(8px);
}

.page-stage::after {
  content: "";
  position: absolute;
  inset: auto 5% 9% 5%;
  z-index: -1;
  height: 18vh;
  opacity: 0.36;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 131, 0.38), rgba(131, 255, 225, 0.18), transparent);
  filter: blur(34px);
}

.page-stage:nth-of-type(4n + 1)::before {
  background:
    radial-gradient(circle at 66% 36%, rgba(0, 240, 131, 0.16), transparent 30rem),
    radial-gradient(circle at 16% 70%, rgba(122, 92, 255, 0.13), transparent 24rem);
}

.stage-meta {
  position: absolute;
  top: clamp(72px, 7vw, 92px);
  left: clamp(12px, 2vw, 30px);
  z-index: 3;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: rgba(244, 255, 248, 0.82);
  font-size: 12px;
  background: rgba(2, 7, 5, 0.42);
  backdrop-filter: blur(14px);
  transition: opacity 520ms ease, transform 680ms cubic-bezier(0.16, 0.86, 0.22, 1);
}

.page-stage:not(.reveal-in) .stage-meta {
  opacity: 0;
  transform: translateY(-14px);
}

.stage-meta span {
  color: var(--sigma);
  font-weight: 800;
}

.sheet {
  position: relative;
  width: min(98vw, 1880px);
  margin: 0;
  border: 1px solid rgba(146, 255, 193, 0.2);
  border-radius: var(--radius-md);
  overflow: visible;
  background: rgba(255, 255, 255, 0.03);
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(255, 255, 255, 0.035) inset,
    0 0 70px rgba(0, 240, 131, 0.13);
  transform-style: preserve-3d;
  transition:
    width 260ms ease,
    transform 820ms cubic-bezier(0.16, 0.86, 0.22, 1),
    box-shadow 260ms ease,
    opacity 420ms ease;
}

.page-stage:not(.reveal-in) .sheet {
  transform: translateY(34px) scale(0.986);
}

.sheet:hover {
  transform: translateY(-6px) scale(1.006);
  box-shadow:
    0 54px 160px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(131, 255, 225, 0.34) inset,
    0 0 120px rgba(0, 240, 131, 0.24);
}

.sheet img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  user-select: none;
  -webkit-user-drag: none;
}

.page-stage.portrait {
  align-items: start;
  padding-top: clamp(18px, 2.4vw, 34px);
}

.page-stage.portrait .sheet {
  width: min(86vw, 1120px);
}

.page-stage.hero-sheet .sheet {
  width: min(98vw, 1880px);
}

.page-stage.banner {
  min-height: auto;
}

.page-stage.banner .sheet {
  width: min(98vw, 1880px);
}

.closing {
  padding-bottom: 10vh;
}

.page-map {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(16px);
  transition: opacity 180ms ease;
}

.page-map.open {
  opacity: 1;
  pointer-events: auto;
}

.map-panel {
  width: min(1120px, 100%);
  max-height: min(760px, 90svh);
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 12, 8, 0.92);
  box-shadow: var(--shadow);
}

.map-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0 14px;
  background: rgba(5, 12, 8, 0.92);
  color: var(--muted);
  font-size: 13px;
}

.map-head button,
.close-lightbox {
  padding: 9px 13px;
}

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

.thumb-grid a {
  position: relative;
  min-height: 116px;
  overflow: hidden;
  border: 1px solid rgba(244, 255, 248, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

.thumb-grid img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 116px;
  object-fit: contain;
  transition: transform 220ms ease;
}

.thumb-grid a:hover img {
  transform: scale(1.04);
}

.thumb-grid span {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #06130c;
  background: var(--sigma);
  font-size: 11px;
  font-weight: 800;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 72px 20px 42px;
  opacity: 0;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.9);
  transition: opacity 180ms ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: none;
  width: min(180vw, 2600px);
  height: auto;
  max-height: none;
  cursor: grab;
  border-radius: var(--radius);
  box-shadow: 0 30px 130px rgba(0, 0, 0, 0.8);
  transform: translate(var(--pan-x, 0), var(--pan-y, 0)) scale(var(--zoom, 1));
}

.close-lightbox {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 2;
}

@media (max-width: 900px) {
  .cursor-light {
    display: none;
  }

  .topbar {
    justify-content: space-between;
  }

  .progress-wrap {
    right: 8px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 96px 20px 52px;
  }

  .hero-gallery {
    --hero-screen-width: min(48vw, 330px);
    min-height: 560px;
  }

  .hero-video-stage {
    --hero-video-radius: 42px;
    top: -8px;
    right: 10%;
    width: min(48vw, 330px);
    min-height: auto;
    clip-path: inset(0 round var(--hero-video-radius));
    transform: translateZ(0);
  }

  .hero-video {
    min-height: 0;
  }

  .hero-card-main {
    width: min(92vw, 720px);
    right: 0;
    top: 0;
  }

  .hero-card-tall {
    width: min(34vw, 210px);
    left: 0;
    bottom: 4%;
  }

  .hero-card-small {
    width: min(58vw, 360px);
    right: 3%;
    bottom: 2%;
  }

  .hero-hud {
    min-width: 98px;
    padding: 10px 12px;
  }

  .hud-run {
    left: auto;
    right: calc(10% + var(--hero-screen-width) - 24px);
    top: 38%;
  }

  .hud-glow {
    right: 2%;
    top: 8%;
  }

  .coach-bubble {
    right: calc(10% + var(--hero-screen-width) - 42px);
    bottom: 20%;
    width: min(250px, 38vw);
  }

  .motion-lab {
    grid-template-columns: 1fr;
    width: min(720px, calc(100vw - 32px));
    margin: 28px auto 44px;
  }

  .page-stage {
    display: grid;
    place-items: center;
    min-height: auto;
    padding: 18px 10px 12px;
    overflow-x: hidden;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
  }

  .page-stage.wide .sheet,
  .page-stage.banner .sheet {
    width: min(96vw, 720px);
    margin-left: auto;
    margin-right: auto;
  }

  .page-stage.portrait .sheet {
    width: min(96vw, 520px);
    margin-left: auto;
    margin-right: auto;
  }

  .stage-meta {
    top: 72px;
    left: 10px;
  }

  .thumb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .topbar {
    top: 10px;
    left: 10px;
    right: auto;
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    width: calc(100svw - 20px);
    max-width: calc(100svw - 20px);
    transform: none;
  }

  .brand {
    padding-left: 8px;
  }

  .nav-pulse {
    position: fixed;
    top: 22px;
    right: 18px;
    flex: 0 0 auto;
    gap: 2px;
    margin-left: auto;
    padding: 5px 6px;
  }

  .nav-chip {
    justify-content: center;
    width: 18px;
    min-height: 22px;
    padding: 0;
    font-size: 0;
    gap: 0;
  }

  .nav-chip span {
    width: 6px;
    height: 6px;
    background: rgba(244, 255, 248, 0.42);
  }

  .ghost-button {
    display: none;
  }

  .top-link {
    display: none;
  }

  .page-stage.portrait .sheet {
    width: 96vw;
  }

  .hero {
    min-height: 100svh;
    padding: 92px 16px 48px;
  }

  .hero-title-lockup {
    gap: clamp(12px, 4vw, 18px);
    font-size: clamp(58px, 17vw, 82px);
  }

  .hero-title-mark {
    width: 0.82em;
    height: 0.72em;
  }

  .hero-text {
    max-width: 29ch;
    font-size: 15px;
  }

  .hero-gallery {
    --hero-screen-width: min(58vw, 270px);
    min-height: 460px;
  }

  .hero-video-stage {
    --hero-video-radius: 34px;
    top: 10px;
    right: 8%;
    width: min(58vw, 270px);
    min-height: auto;
    border-radius: var(--hero-video-radius);
    clip-path: inset(0 round var(--hero-video-radius));
  }

  .hero-video {
    min-height: 0;
  }

  .hero-card-main {
    width: 94vw;
    left: 0;
    right: auto;
  }

  .hero-card-tall {
    width: 41vw;
  }

  .hero-card-small {
    width: 66vw;
    right: -3vw;
  }

  .hero-hud strong {
    font-size: 22px;
  }

  .hud-run {
    left: 0;
    top: 58%;
  }

  .hud-glow {
    display: none;
  }

  .coach-bubble {
    left: 0;
    right: auto;
    bottom: 14%;
    width: min(250px, 72vw);
    font-size: 12px;
  }

  .motion-lab {
    width: calc(100vw - 20px);
    gap: 10px;
    margin: 24px auto 24px;
  }

  .lab-card {
    min-height: 260px;
    padding: 14px;
  }

  .route-map {
    height: 150px;
  }

  .metric-row {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .metric-row span {
    padding: 9px 8px;
    font-size: 11px;
  }

  .metric-row strong {
    font-size: 18px;
  }

  .mood-orbit {
    min-height: 180px;
  }

  .lightbox {
    overflow: auto;
    place-items: start center;
  }

  .lightbox img {
    width: 210vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
