:root {
  --bg: #0d0d0d;
  --red: #ff0033;
  --text: #f5f5f5;
  --muted: #9a9a9a;
  --line: #2a2a2a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Class display rules must not override the hidden attribute. */
[hidden] {
  display: none !important;
}

body {
  font-family: "Roboto", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ---------- background layers ---------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  background: var(--bg) url("assets/img/hero.jpg") center / cover no-repeat;
  filter: brightness(0.4) saturate(0.85) contrast(1.05);
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: radial-gradient(
    ellipse 90% 70% at 50% 45%,
    transparent 25%,
    rgba(13, 13, 13, 0.92) 78%,
    #0d0d0d 100%
  );
}

.glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(55% 40% at 50% 8%, rgba(255, 0, 51, 0.22), transparent 70%),
    radial-gradient(38% 26% at 50% 96%, rgba(255, 0, 51, 0.14), transparent 72%);
}

/* ---------- main ---------- */

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) 1.25rem;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.play-mark {
  width: clamp(56px, 9vw, 84px);
  height: auto;
  filter: drop-shadow(0 6px 32px rgba(255, 0, 51, 0.45));
}

.brand-name {
  margin-top: 1.1rem;
  font-size: clamp(0.95rem, 2.6vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
}

.brand-badge {
  margin-top: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1.1rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
  animation: pulse 1.5s ease-in-out infinite;
}

.headline {
  margin: 2.2rem 0 1.8rem;
  font-size: clamp(2.8rem, 11vw, 6.2rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.015em;
  text-wrap: balance;
  text-shadow: 0 0 60px rgba(255, 0, 51, 0.25);
}

/* ---------- waveform ---------- */

.wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 1vw, 8px);
  height: 64px;
  margin-bottom: 2.6rem;
}

.wave span {
  width: clamp(4px, 0.8vw, 6px);
  height: calc(var(--h, 50%));
  border-radius: 99px;
  background: linear-gradient(180deg, #ff5c77, var(--red) 65%, #b30024);
  box-shadow: 0 0 14px rgba(255, 0, 51, 0.35);
  transform-origin: center;
  animation: eq 1.1s ease-in-out infinite alternate;
}

/* ---------- notify form ---------- */

.notify-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.notify {
  display: flex;
  width: 100%;
  max-width: 26rem;
}

.notify input {
  flex: 1;
  min-width: 0;
  padding: 0.95rem 1.4rem;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-right: none;
  border-radius: 999px 0 0 999px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.notify input::placeholder {
  color: #8a8a8a;
}

.notify input:focus {
  border-color: var(--red);
  background: rgba(255, 0, 51, 0.06);
}

.notify button {
  padding: 0.95rem 1.6rem;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #ff1a4d, var(--red));
  border: 1px solid transparent;
  border-radius: 0 999px 999px 0;
  cursor: pointer;
  transition: filter 0.2s, transform 0.15s;
}

.notify button:hover {
  filter: brightness(1.15);
}

.notify button:active {
  transform: scale(0.97);
}

.notify-err {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: #ff8a9b;
}

.notify-done {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  max-width: 26rem;
  padding: 1rem 1.6rem;
  border: 1px solid rgba(255, 0, 51, 0.4);
  border-radius: 999px;
  background: rgba(255, 0, 51, 0.08);
}

.notify-done svg {
  flex: none;
}

footer {
  position: relative;
  z-index: 1;
  padding: 1.4rem 1rem 1.6rem;
  text-align: center;
  color: #6f6f6f;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

/* ---------- animations ---------- */

@keyframes eq {
  from {
    transform: scaleY(0.25);
  }
  to {
    transform: scaleY(1);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.8);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes shake {
  10%,
  90% {
    transform: translateX(-2px);
  }
  20%,
  80% {
    transform: translateX(3px);
  }
  30%,
  50%,
  70% {
    transform: translateX(-5px);
  }
  40%,
  60% {
    transform: translateX(5px);
  }
}

.brand,
.headline,
.wave,
.notify-wrap,
footer {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.headline {
  animation-delay: 0.12s;
}

.wave {
  animation-delay: 0.24s;
}

.notify-wrap {
  animation-delay: 0.36s;
}

.notify.shake {
  animation: shake 0.45s both;
}

/* ---------- responsive ---------- */

@media (max-width: 480px) {
  .notify {
    flex-direction: column;
    gap: 0.7rem;
  }

  .notify input,
  .notify button {
    width: 100%;
    border-radius: 999px;
  }

  .notify input {
    border-right: 1px solid var(--line);
  }

  .notify button {
    padding-block: 1.05rem;
  }
}

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