:root {
  --bg-dark: #0b0c10;
  --bg-gradient-end: #1f2833;
  --neon-blue: #3a8fff;
  --neon-purple: #b13cff;
  --card-bg: rgba(19, 21, 34, 0.8);
  --text-light: #e9ecff;
  --text-muted: #b0b8d4;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Orbitron', sans-serif;
  color: var(--text-light);
  background: radial-gradient(
      circle at top,
      rgba(58, 143, 255, 0.15),
      transparent 45%
    ),
    linear-gradient(180deg, var(--bg-dark), var(--bg-gradient-end));
  overflow: hidden;
}

canvas#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.02) 1px,
    transparent 1px,
    transparent 3px
  );
  animation: scan 6s linear infinite;
  mix-blend-mode: screen;
  z-index: 1;
}

@keyframes scan {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 100%;
  }
}

.container {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.logo {
  font-weight: 700;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: var(--text-light);
  text-shadow: 0 0 10px rgba(58, 143, 255, 0.6);
}

.card {
  max-width: 520px;
  width: 100%;
  background: var(--card-bg);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(58, 143, 255, 0.3);
  padding: 2.5rem;
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(177, 60, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(177, 60, 255, 0.25), transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

.tagline {
  letter-spacing: 0.3em;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.tagline span {
  color: var(--neon-blue);
}

.glitch {
  font-size: clamp(2rem, 6vw, 3rem);
  margin: 1rem 0;
  position: relative;
  color: var(--text-light);
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(58, 143, 255, 0.6);
  animation: glitch-pulse 3s infinite;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  left: 2px;
  text-shadow: -2px 0 var(--neon-blue);
  clip: rect(24px, 9999px, 90px, 0);
  animation: glitch-anim 2.5s infinite ease-in-out alternate-reverse;
}

.glitch::after {
  left: -2px;
  text-shadow: -2px 0 var(--neon-purple);
  clip: rect(85px, 9999px, 130px, 0);
  animation: glitch-anim 2s infinite ease-in-out alternate;
}

@keyframes glitch-pulse {
  0%,
  100% {
    text-shadow: 0 0 10px rgba(58, 143, 255, 0.6);
  }
  45%,
  55% {
    text-shadow: 0 0 4px rgba(177, 60, 255, 0.8);
  }
}

@keyframes glitch-anim {
  0% {
    clip: rect(20px, 9999px, 25px, 0);
    transform: skew(0.5deg);
  }
  50% {
    clip: rect(65px, 9999px, 76px, 0);
    transform: skew(-0.5deg);
  }
  100% {
    clip: rect(5px, 9999px, 14px, 0);
    transform: skew(0.5deg);
  }
}

.subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.progress {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.progress-track {
  position: relative;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(
      90deg,
      rgba(177, 60, 255, 0.12),
      rgba(58, 143, 255, 0.05)
    ),
    rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.45);
}

.progress-indicator {
  position: absolute;
  inset: 1px;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
  border-radius: inherit;
  transform-origin: left center;
  animation: progressSweep 3.2s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(58, 143, 255, 0.65),
    0 0 30px rgba(177, 60, 255, 0.35);
}

.progress-glow {
  position: absolute;
  inset: -6px;
  background: radial-gradient(
    circle,
    rgba(177, 60, 255, 0.25),
    transparent 70%
  );
  animation: pulseGlow 2.6s ease-in-out infinite;
}

.progress-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.progress-text {
  font-weight: 500;
}

.progress-percent {
  font-size: 0.95rem;
  color: var(--text-light);
}

@keyframes progressSweep {
  0% {
    transform: scaleX(0.25);
  }
  40% {
    transform: scaleX(0.65);
  }
  70% {
    transform: scaleX(0.9);
  }
  100% {
    transform: scaleX(0.35);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.1;
  }
}

.notify-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.notify-form input {
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-light);
  font-size: 1rem;
  text-align: center;
  outline: none;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.notify-form input:focus {
  border-color: var(--neon-blue);
  box-shadow: 0 0 12px rgba(58, 143, 255, 0.5);
}

.notify-btn {
  border: none;
  padding: 0.9rem 2.5rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-light);
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 15px 30px rgba(58, 143, 255, 0.35);
}

.notify-btn::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.18);
  animation: pulse 2s infinite;
}

.notify-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 25px 40px rgba(177, 60, 255, 0.4);
}

.notify-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@keyframes pulse {
  0% {
    opacity: 0.5;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 0.5;
  }
}

.notify-message {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: rgba(58, 255, 170, 0.8);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.notify-message.visible {
  opacity: 1;
}

.notify-message.error {
  color: rgba(255, 103, 129, 0.9);
}

.notify-message.success {
  color: rgba(58, 255, 170, 0.85);
}

@media (max-width: 600px) {
  .card {
    padding: 1.8rem;
  }

  .tagline {
    letter-spacing: 0.2em;
  }

  .subtitle {
    font-size: 0.95rem;
  }

  .notify-form,
  .notify-btn {
    width: 100%;
  }
}
