: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);
}

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

.title-word {
  display: inline-flex;
  flex-wrap: nowrap;
  white-space: nowrap;
  justify-content: center;
  gap: clamp(0.02rem, 0.32vw, 0.28rem);
  color: var(--text);
  letter-spacing: 0.01em;
}

.title-letter {
  display: inline-block;
  color: var(--text);
  -webkit-text-fill-color: currentColor;
  opacity: 1;
  filter: blur(0px);
  transform: translateY(0) scale(1);
  will-change: transform, opacity, filter;
}

@keyframes vropace-gradient-flow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .title-letter {
    background-image: linear-gradient(92deg, #f8fafc 0%, #d1fae5 28%, #34d399 48%, #60a5fa 70%, #f8fafc 100%);
    background-size: 220% 100%;
    background-repeat: no-repeat;
    background-position: 0% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: saturate(112%) contrast(108%);
    animation: vropace-gradient-flow 8s ease-in-out infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  .title-letter {
    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-word {
    gap: clamp(0.01rem, 0.6vw, 0.08rem);
    letter-spacing: -0.012em;
    transform: scaleX(0.89);
    transform-origin: center;
    max-width: 100%;
  }

  .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-word {
    transform: scaleX(0.85);
  }

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