:root {
  --bg: #050705;
  --bg-soft: #0a0d0a;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.09);
  --text: #f4f7f4;
  --muted: rgba(244, 247, 244, 0.68);
  --green: #9cff5b;
  --green-soft: rgba(156, 255, 91, 0.18);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --max-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(156, 255, 91, 0.09), transparent 28%),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.05), transparent 24%),
    linear-gradient(180deg, #050705 0%, #040504 45%, #060806 100%);
  overflow-x: hidden;
}

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

button,
input {
  font: inherit;
}

.page-shell {
  position: relative;
  padding: 24px;
}

.ambient {
  position: fixed;
  inset: auto;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.ambient-left {
  top: -12rem;
  left: -10rem;
  background: rgba(156, 255, 91, 0.08);
}

.ambient-right {
  top: 18rem;
  right: -12rem;
  background: rgba(255, 255, 255, 0.04);
}

.topbar,
.section,
.footer {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #c9ff9d 0%, var(--green) 45%, rgba(156, 255, 91, 0.35) 80%, transparent 100%);
  box-shadow: 0 0 18px rgba(156, 255, 91, 0.45);
}

.topnav {
  display: inline-flex;
  gap: 24px;
  color: var(--muted);
}

.topnav a {
  transition: color 180ms ease;
}

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

.section {
  padding: 4rem 0 7rem;
}

.hero {
  min-height: calc(100vh - 100px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: 4rem;
  padding-top: 1rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--green);
  font-size: 0.88rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Syncopate", sans-serif;
  font-weight: 700;
  line-height: 0.96;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3.5rem, 8vw, 7rem);
}

h2 {
  max-width: 12ch;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

h3 {
  font-size: 1.35rem;
}

.hero-subtitle,
.section-copy,
.hero-note,
.footer-brand p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-subtitle {
  margin: 1.4rem 0 0;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin: 2rem 0 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 144px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid var(--border);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background 220ms ease;
  backdrop-filter: blur(16px);
}

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

.button-primary {
  background: linear-gradient(180deg, rgba(156, 255, 91, 0.18), rgba(156, 255, 91, 0.08));
  box-shadow: 0 10px 40px rgba(156, 255, 91, 0.16);
}

.button-primary:hover {
  border-color: rgba(156, 255, 91, 0.44);
  box-shadow: 0 14px 56px rgba(156, 255, 91, 0.2);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.03);
}

.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-device {
  display: flex;
  justify-content: center;
  position: relative;
}

.device-halo,
.device-aura {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, rgba(156, 255, 91, 0.18) 0%, rgba(156, 255, 91, 0.08) 26%, rgba(156, 255, 91, 0) 64%);
  filter: blur(16px);
  animation: pulseHalo 7s ease-in-out infinite;
}

.phone-mockup {
  position: relative;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #101210, #080908);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 28px 90px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  animation: floatDevice 7.5s ease-in-out infinite;
}

.phone-large {
  width: min(26rem, 86vw);
  aspect-ratio: 0.52;
}

.phone-slim {
  width: min(18rem, 62vw);
  aspect-ratio: 0.52;
}

.phone-top {
  display: flex;
  justify-content: center;
  padding: 12px 0 0;
}

.phone-top span {
  display: block;
  width: 34%;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.phone-screen,
.cluster-screen {
  position: relative;
  height: calc(100% - 30px);
  margin: 12px;
  border-radius: 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 28%, rgba(156, 255, 91, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    #090b09;
}

.screen-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 42%, transparent 88%);
}

.screen-glow {
  position: absolute;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  filter: blur(36px);
}

.screen-glow-top {
  top: -9rem;
  right: -5rem;
  background: rgba(156, 255, 91, 0.14);
}

.screen-glow-bottom {
  bottom: -10rem;
  left: -5rem;
  background: rgba(255, 255, 255, 0.06);
}

.screen-header,
.screen-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.pill,
.signal {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
}

.signal {
  color: var(--green);
}

.wheel-ui {
  position: relative;
  z-index: 1;
  width: 82%;
  aspect-ratio: 1;
  margin: 2.6rem auto 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  animation: spinSlow 16s linear infinite;
}

.wheel-core {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 34%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(156, 255, 91, 0.32), rgba(156, 255, 91, 0.08) 60%, rgba(255, 255, 255, 0.04) 100%);
  font-size: 1.2rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.wheel-node {
  position: absolute;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: counterSpin 16s linear infinite;
}

.node-1 { top: 8%; left: 50%; transform: translateX(-50%); }
.node-2 { top: 42%; right: -3%; }
.node-3 { bottom: 10%; left: 52%; transform: translateX(-50%); }
.node-4 { top: 42%; left: -8%; }

.screen-bottom {
  gap: 10px;
  margin-top: 2rem;
}

.meter {
  flex: 1;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(156, 255, 91, 0.85), rgba(156, 255, 91, 0.12));
}

.meter-small {
  max-width: 20%;
}

.meter-tall {
  max-width: 28%;
}

.section-heading {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.8rem;
}

.gesture-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.gesture-card {
  position: relative;
  min-height: 25rem;
  padding: 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    transform 240ms ease,
    border-color 240ms ease,
    box-shadow 240ms ease;
}

.gesture-card:hover {
  transform: translateY(-8px);
  border-color: rgba(156, 255, 91, 0.22);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.52), 0 0 60px rgba(156, 255, 91, 0.08);
}

.card-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
}

.shake-icon,
.tilt-icon,
.tap-icon {
  position: relative;
  width: 42px;
  height: 42px;
}

.shake-icon span,
.tap-icon span,
.tilt-icon span {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  border: 1px solid rgba(156, 255, 91, 0.5);
}

.shake-icon span:nth-child(1) { transform: rotate(-8deg); }
.shake-icon span:nth-child(2) { transform: rotate(8deg); opacity: 0.7; }
.shake-icon span:nth-child(3) { transform: scale(0.74); opacity: 0.45; }

.tilt-icon span { transform: rotate(-18deg); }

.tap-icon span {
  border-radius: 50%;
  transform: scale(0.64);
  box-shadow: 0 0 30px rgba(156, 255, 91, 0.16);
}

.gesture-card p,
.preset-card,
.footer-links,
.signup-form input {
  color: var(--muted);
}

.mini-device {
  position: absolute;
  inset: auto 22px 22px 22px;
  height: 12rem;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 40%, rgba(156, 255, 91, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.mini-wave,
.tilt-gradient,
.tap-pulse {
  position: absolute;
  inset: 0;
}

.mini-wave {
  background:
    radial-gradient(circle at 50% 50%, rgba(156, 255, 91, 0.22), transparent 26%),
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 16px);
  animation: pulseWave 4s ease-in-out infinite;
}

.tilt-gradient {
  background: linear-gradient(130deg, rgba(156, 255, 91, 0.44), transparent 34%, rgba(255, 255, 255, 0.04) 65%);
  animation: tiltSweep 4.8s ease-in-out infinite;
}

.tap-pulse {
  background:
    radial-gradient(circle at 50% 58%, rgba(156, 255, 91, 0.22), transparent 18%),
    radial-gradient(circle at 50% 58%, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: auto, 24px 24px;
  animation: pulseTap 3.2s ease-in-out infinite;
}

.sound-wheel-wrap,
.fx-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 40px;
  align-items: center;
}

.sound-orbit {
  position: relative;
  min-height: 35rem;
  border-radius: var(--radius-xl);
  display: grid;
  place-items: center;
}

.sound-core {
  position: relative;
  z-index: 2;
  width: 9rem;
  height: 9rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(156, 255, 91, 0.32), rgba(156, 255, 91, 0.08) 64%, rgba(255, 255, 255, 0.04));
  font-family: "Syncopate", sans-serif;
  letter-spacing: 0.18em;
}

.orbit-line {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  animation: spinSlow 20s linear infinite;
}

.orbit-a {
  width: 20rem;
  height: 20rem;
}

.orbit-b {
  width: 28rem;
  height: 28rem;
  animation-direction: reverse;
  opacity: 0.7;
}

.orbit-dot {
  position: absolute;
  z-index: 2;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 32px rgba(156, 255, 91, 0.08);
}

.dot-a { top: 12%; left: 50%; transform: translateX(-50%); }
.dot-b { top: 36%; right: 6%; }
.dot-c { bottom: 16%; right: 18%; }
.dot-d { bottom: 16%; left: 18%; }
.dot-e { top: 36%; left: 6%; }

.multiplayer-stage {
  position: relative;
  min-height: 34rem;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 50% 50%, rgba(156, 255, 91, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.phone-cluster {
  position: absolute;
  width: 14rem;
  aspect-ratio: 0.52;
  padding: 10px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  animation: floatDevice 8s ease-in-out infinite;
}

.phone-left { left: 10%; top: 24%; transform: rotate(-12deg); }
.phone-center { left: 39%; top: 9%; z-index: 2; }
.phone-right { right: 10%; top: 24%; transform: rotate(12deg); }

.cluster-screen {
  display: grid;
  place-items: end start;
  padding: 22px;
}

.cluster-screen span {
  color: var(--text);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.connection {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(156, 255, 91, 0.6), transparent);
  box-shadow: 0 0 24px rgba(156, 255, 91, 0.22);
}

.connection-1 {
  top: 46%;
  left: 22%;
  width: 31%;
  transform: rotate(-16deg);
}

.connection-2 {
  top: 46%;
  right: 22%;
  width: 31%;
  transform: rotate(16deg);
}

.connection-3 {
  top: 58%;
  left: 30%;
  width: 40%;
}

.fx-panel {
  padding: 32px;
  border-radius: var(--radius-xl);
}

.slider-bank {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
  min-height: 28rem;
}

.slider {
  display: grid;
  gap: 16px;
  justify-items: center;
}

.track {
  position: relative;
  width: 100%;
  max-width: 48px;
  height: 21rem;
  display: flex;
  align-items: end;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.track span {
  display: block;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(201, 255, 157, 1), rgba(156, 255, 91, 0.26));
  box-shadow: 0 0 28px rgba(156, 255, 91, 0.22);
  animation: sliderGlow 4.5s ease-in-out infinite;
}

.slider label {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 0.82rem;
}

.preset-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 1.8rem;
}

.preset-card {
  min-width: 9rem;
  padding: 16px 18px;
  border-radius: 18px;
  transition: border-color 200ms ease, transform 200ms ease;
}

.preset-card:hover {
  transform: translateY(-2px);
  border-color: rgba(156, 255, 91, 0.26);
}

.immersive-section {
  min-height: 92vh;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 3rem;
}

.immersive-copy h2 {
  max-width: none;
  font-size: clamp(3rem, 8vw, 7.2rem);
}

.space-screen {
  display: grid;
  place-items: center;
}

.space-ring,
.space-pulse {
  position: absolute;
  border-radius: 50%;
}

.space-ring {
  width: 70%;
  height: 70%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: spinSlow 18s linear infinite;
}

.space-pulse {
  width: 38%;
  height: 38%;
  background: radial-gradient(circle, rgba(156, 255, 91, 0.42), rgba(156, 255, 91, 0.08) 58%, transparent 100%);
  filter: blur(6px);
  animation: pulseHalo 5.5s ease-in-out infinite;
}

.footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(320px, 0.9fr);
  gap: 28px;
  align-items: center;
  padding: 28px;
  margin-bottom: 24px;
  border-radius: 32px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

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

.signup-form input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.signup-form input:focus {
  outline: 1px solid rgba(156, 255, 91, 0.42);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 900ms ease,
    transform 900ms ease,
    filter 900ms ease;
  filter: blur(12px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

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

@keyframes pulseHalo {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(0.96); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}

@keyframes pulseWave {
  0%, 100% { transform: scale(0.96); opacity: 0.8; }
  50% { transform: scale(1.03); opacity: 1; }
}

@keyframes tiltSweep {
  0%, 100% { transform: translateX(-10%) rotate(0deg); }
  50% { transform: translateX(10%) rotate(10deg); }
}

@keyframes pulseTap {
  0%, 100% { transform: scale(0.96); opacity: 0.7; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes counterSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

@keyframes sliderGlow {
  0%, 100% { filter: saturate(0.9) brightness(0.95); }
  50% { filter: saturate(1.1) brightness(1.08); }
}

@media (max-width: 1080px) {
  .hero,
  .sound-wheel-wrap,
  .fx-layout,
  .footer {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-device {
    order: -1;
  }

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

  .multiplayer-stage {
    min-height: 42rem;
  }

  .phone-left { left: 6%; top: 35%; }
  .phone-center { left: 34%; top: 8%; }
  .phone-right { right: 6%; top: 35%; }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 18px;
  }

  .topbar {
    gap: 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .topnav {
    flex-wrap: wrap;
    gap: 14px 18px;
  }

  .section {
    padding: 3rem 0 5rem;
  }

  .hero-actions,
  .signup-form {
    flex-direction: column;
  }

  .button,
  .signup-form input {
    width: 100%;
  }

  .sound-orbit {
    min-height: 28rem;
  }

  .orbit-a {
    width: 14rem;
    height: 14rem;
  }

  .orbit-b {
    width: 20rem;
    height: 20rem;
  }

  .multiplayer-stage {
    min-height: 48rem;
  }

  .phone-cluster {
    width: 11rem;
  }

  .phone-left {
    top: 52%;
    left: 4%;
  }

  .phone-center {
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
  }

  .phone-right {
    top: 52%;
    right: 4%;
  }

  .connection-1,
  .connection-2,
  .connection-3 {
    width: 38%;
  }

  .slider-bank {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: auto;
  }

  .track {
    height: 15rem;
  }
}

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

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