@font-face {
  font-family: 'Nexa';
  src: url('../fonts/NexaBoldataedit.ttf') format('truetype');
  font-weight: bold;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hintFloat {
  0% {
    transform: translateZ(35px) translateY(0px);
    opacity: 0.58;
  }
  50% {
    transform: translateZ(35px) translateY(-4px);
    opacity: 0.95;
  }
  100% {
    transform: translateZ(35px) translateY(0px);
    opacity: 0.58;
  }
}

:root {
  --bg: #f0eded;
  --text: #242524;
  --noise: rgba(0, 0, 0, 0.025);
}

body.dark {
  --bg: #242524;
  --text: #f0eded;
  --noise: rgba(255, 255, 255, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  background-color: var(--bg);
  background-image: radial-gradient(circle at center, var(--noise) 0%, rgba(0, 0, 0, 0) 60%);
  transition: background-color 0.4s ease, background-image 0.4s ease, color 0.4s ease;
  overflow: hidden;
}

.hero {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  padding: 20px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  animation: fadeUp 1s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.logo {
  width: 78px;
  margin-bottom: 10px;
  display: block;
  cursor: pointer;
  transform: translateZ(30px);
  transition: filter 0.4s ease, transform 0.2s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.hero h1 {
  font-family: 'Nexa', sans-serif;
  font-size: 76px;
  line-height: 1;
  letter-spacing: 2px;
  color: var(--text);
  margin: 0;
  transform: translateZ(60px);
  transition: color 0.4s ease;
  text-align: center;
  user-select: none;
}

body.dark .logo {
  filter: brightness(0) invert(1);
}

.color-hint {
  margin-top: -2px;
  padding: 12px 22px;
  border: 1px solid rgba(36, 37, 36, 0.18);
  border-radius: 999px;
  font-family: 'Nexa', sans-serif;
  font-size: 13px;
  color: var(--text);
  opacity: 0.78;
  letter-spacing: 0.4px;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transform: translateZ(35px);
  animation: hintFloat 2.2s ease-in-out infinite;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    color 0.4s ease,
    border-color 0.4s ease,
    background-color 0.4s ease,
    box-shadow 0.4s ease;
}

.color-hint:hover {
  opacity: 1;
  transform: translateZ(35px) scale(1.03);
  background-color: rgba(36, 37, 36, 0.04);
  box-shadow: 0 0 18px rgba(36, 37, 36, 0.08);
}

body.dark .color-hint {
  border-color: rgba(240, 237, 237, 0.2);
}

body.dark .color-hint:hover {
  background-color: rgba(240, 237, 237, 0.06);
  box-shadow: 0 0 18px rgba(240, 237, 237, 0.08);
}

.experience-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  width: 100%;
  max-width: 320px;
  transform: translateZ(40px);
}

.experience-btn {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
  font-family: 'Nexa', sans-serif;
  font-size: 13px;
  letter-spacing: 0.4px;
  text-align: center;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    opacity 0.3s ease,
    transform 0.2s ease,
    border-color 0.3s ease;
}

.experience-btn:hover {
  background-color: var(--text);
  color: var(--bg);
}

.experience-btn:active {
  transform: scale(0.98);
}

.experience-btn.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.volume-control {
  margin-top: 2px;
  width: 100%;
  display: flex;
  justify-content: center;
}

#volumeSlider {
  width: 180px;
  appearance: none;
  -webkit-appearance: none;
  height: 2px;
  background: var(--text);
  outline: none;
  opacity: 0.6;
  transition: opacity 0.2s ease, background 0.4s ease;
}

#volumeSlider:hover {
  opacity: 1;
}

#volumeSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  background: var(--text);
  cursor: pointer;
  border-radius: 50%;
}

#volumeSlider::-moz-range-thumb {
  width: 10px;
  height: 10px;
  background: var(--text);
  cursor: pointer;
  border-radius: 50%;
  border: none;
}

@media (max-width: 768px) {
  .hero {
    padding: 20px;
  }

  .logo {
    width: 78px;
    margin-bottom: 10px;
  }

  .hero h1 {
    font-size: 76px;
    letter-spacing: 2px;
  }

  .color-hint {
    font-size: 12px;
    padding: 11px 18px;
  }

  .experience-panel {
    max-width: 320px;
    gap: 14px;
    margin-top: 8px;
  }

  .experience-btn {
    width: 100%;
    padding: 14px 18px;
    font-size: 13px;
  }

  #volumeSlider {
    width: 180px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 20px;
  }

  .logo {
    width: 72px;
    margin-bottom: 8px;
  }

  .hero h1 {
    font-size: 58px;
    letter-spacing: 1px;
  }

  .color-hint {
    font-size: 11px;
    padding: 10px 16px;
  }

  .experience-panel {
    max-width: 300px;
    gap: 12px;
    margin-top: 6px;
  }

  .experience-btn {
    padding: 13px 16px;
    font-size: 12px;
  }

  #volumeSlider {
    width: 170px;
  }
}