:root {
  --bg: #121416;
  --text: #f8fafc;
}

* {
  box-sizing: border-box;
}

body {
  cursor: none;
  background-color: var(--bg);
  overflow-x: hidden;
}

.cursor-dot,
.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: #fff;
  mix-blend-mode: difference;
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
  mix-blend-mode: difference;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.25;
  z-index: -1;
  mix-blend-mode: screen;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

#start-overlay {
  background:
    radial-gradient(circle at 20% 10%, rgba(52, 211, 153, 0.12), transparent 36%),
    radial-gradient(circle at 82% 88%, rgba(96, 165, 250, 0.12), transparent 40%),
    #121416;
  backdrop-filter: blur(3px);
}

#start-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

#start-overlay-btn {
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.08);
}

#waitlist-success-modal {
  backdrop-filter: blur(4px);
}

.success-modal-panel {
  background:
    radial-gradient(circle at 14% 10%, rgba(52, 211, 153, 0.13), transparent 42%),
    radial-gradient(circle at 84% 88%, rgba(96, 165, 250, 0.12), transparent 46%),
    #0c0f14;
}

.hero-title {
  font-size: clamp(2.1rem, 9.3vw, 8.6rem);
  line-height: 0.9;
  width: 100%;
  overflow: hidden;
}

.title-mask {
  overflow: hidden;
  display: block;
  padding: 0.02em 0.03em;
}

.title-line {
  display: inline-block;
  white-space: nowrap;
  letter-spacing: 0.01em;
  color: #eaf7ff;
  will-change: transform;
}

.text-shimmer {
  background: linear-gradient(to right, #ffffff 20%, #34d399 40%, #60a5fa 60%, #ffffff 80%);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 5s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .text-shimmer {
    animation: none !important;
  }
}

@media (max-width: 768px) {
  body {
    cursor: auto;
  }

  main {
    padding-left: 1rem;
    padding-right: 1rem;
    justify-content: center;
  }

  .hero-title {
    font-size: clamp(2.4rem, 15.8vw, 4.9rem);
    line-height: 0.86;
    margin-bottom: 0.6rem;
  }

  .title-line {
    letter-spacing: 0.01em;
    transform: none;
  }

  .hero-desc {
    font-size: clamp(0.9rem, 3.9vw, 1.02rem) !important;
    line-height: 1.46;
    color: #9ca3af !important;
    max-width: 28ch;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-date {
    font-size: 0.72rem !important;
    letter-spacing: 0.34em !important;
  }

  .hero-form {
    max-width: 22rem !important;
    margin-top: 0.3rem;
  }

  #waitlist-input {
    font-size: 0.95rem;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }

  #nav {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
    gap: 0.55rem;
  }

  #nav > div:last-child {
    gap: 0.4rem;
  }

  #music-toggle,
  #open-modal {
    padding: 0.44rem 0.68rem !important;
    font-size: 0.62rem !important;
    letter-spacing: 0.09em;
  }

  .cursor-dot,
  .cursor-outline {
    display: none;
  }
}

@media (max-width: 430px) {
  .hero-title {
    font-size: clamp(2.15rem, 14.6vw, 3.95rem);
  }

  .title-line {
    letter-spacing: 0.01em;
    transform: none;
  }

  .hero-desc {
    font-size: 0.88rem !important;
    line-height: 1.42;
  }
}
