*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0a0a0f;
  --bg-2: #12121a;
  --lime: #c8ff00;
  --hot: #ff2d8a;
  --cyan: #00f5ff;
  --purple: #a855f7;
  --text: #f5f5f7;
  --muted: #9ca3af;
  --tape: #ffe066;
  --font-display: "Archivo Black", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: crosshair;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.15) 2px,
    rgba(0, 0, 0, 0.15) 4px
  );
  opacity: 0.35;
}

.cursor-glow {
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 255, 0, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 50;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  mix-blend-mode: screen;
}

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  border-bottom: 2px solid var(--lime);
  background: var(--bg-2);
}

.marquee-wrap {
  overflow: hidden;
  padding: 0.65rem 0;
}

.marquee {
  display: flex;
  width: max-content;
  animation: marquee 22s linear infinite;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lime);
}

.marquee span {
  padding-right: 2rem;
  white-space: nowrap;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 45, 138, 0.25), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(0, 245, 255, 0.12), transparent),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(200, 255, 0, 0.1), transparent),
    var(--bg);
}

.stickers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sticker {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(0.65rem, 2vw, 0.85rem);
  padding: 0.4rem 0.75rem;
  background: var(--tape);
  color: #111;
  border: 2px solid #111;
  box-shadow: 4px 4px 0 var(--hot);
  animation: wobble 4s ease-in-out infinite;
}

.sticker-1 {
  top: 18%;
  left: 8%;
  transform: rotate(-12deg);
  animation-delay: 0s;
}

.sticker-2 {
  top: 22%;
  right: 6%;
  transform: rotate(8deg);
  background: var(--cyan);
  box-shadow: 4px 4px 0 var(--purple);
  animation-delay: 0.5s;
}

.sticker-3 {
  bottom: 28%;
  left: 5%;
  transform: rotate(6deg);
  background: var(--hot);
  color: #fff;
  box-shadow: 4px 4px 0 var(--lime);
  animation-delay: 1s;
}

.sticker-4 {
  bottom: 32%;
  right: 8%;
  transform: rotate(-8deg);
  animation-delay: 1.5s;
}

@keyframes wobble {
  0%,
  100% {
    transform: rotate(var(--r, -12deg)) translateY(0);
  }
  50% {
    transform: rotate(calc(var(--r, -12deg) + 4deg)) translateY(-8px);
  }
}

.sticker-1 { --r: -12deg; }
.sticker-2 { --r: 8deg; }
.sticker-3 { --r: 6deg; }
.sticker-4 { --r: -8deg; }

.floating-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  opacity: 0.5;
  animation: float 6s ease-in-out infinite;
}

.shape-star {
  top: 35%;
  left: 15%;
  color: var(--lime);
  animation-delay: 0s;
}

.shape-bolt {
  top: 45%;
  right: 12%;
  color: var(--cyan);
  animation-delay: 1.2s;
}

.shape-heart {
  bottom: 40%;
  left: 20%;
  color: var(--hot);
  animation-delay: 2s;
}

.shape-plus {
  bottom: 38%;
  right: 18%;
  color: var(--purple);
  animation-delay: 0.8s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(15deg);
  }
}

.eyebrow {
  position: relative;
  font-size: clamp(0.7rem, 2vw, 0.85rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
  animation: fadeUp 0.8s ease-out both;
}

.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  opacity: 0.8;
}

.glitch::before {
  color: var(--cyan);
  animation: glitch-1 2.5s infinite linear alternate-reverse;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch::after {
  color: var(--hot);
  animation: glitch-2 2s infinite linear alternate-reverse;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitch-1 {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 1px); }
  40% { transform: translate(2px, -1px); }
  60% { transform: translate(-1px, 2px); }
  80% { transform: translate(1px, -2px); }
  100% { transform: translate(0); }
}

@keyframes glitch-2 {
  0% { transform: translate(0); }
  25% { transform: translate(2px, 0); }
  50% { transform: translate(-2px, 1px); }
  75% { transform: translate(1px, -1px); }
  100% { transform: translate(0); }
}

.logo {
  font-family: var(--font-display);
  line-height: 0.9;
  margin-bottom: 1.25rem;
  animation: fadeUp 0.8s ease-out 0.15s both;
}

.logo-line {
  display: block;
  font-size: clamp(3.5rem, 15vw, 9rem);
  text-transform: uppercase;
}

.logo-only {
  color: var(--text);
  text-shadow:
    3px 3px 0 var(--hot),
    6px 6px 0 rgba(200, 255, 0, 0.4);
  animation: pulse-shadow 3s ease-in-out infinite;
}

.logo-enux {
  background: linear-gradient(90deg, var(--lime), var(--cyan), var(--hot), var(--lime));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 4s ease infinite, skew-pop 0.6s ease-out 0.4s both;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes pulse-shadow {
  0%, 100% {
    text-shadow:
      3px 3px 0 var(--hot),
      6px 6px 0 rgba(200, 255, 0, 0.4);
  }
  50% {
    text-shadow:
      4px 4px 0 var(--cyan),
      8px 8px 0 rgba(255, 45, 138, 0.35);
  }
}

@keyframes skew-pop {
  from {
    opacity: 0;
    transform: skewX(-8deg) translateY(20px);
  }
  to {
    opacity: 1;
    transform: skewX(0) translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tagline {
  font-size: clamp(1rem, 3vw, 1.35rem);
  font-weight: 500;
  min-height: 2em;
  margin-bottom: 2rem;
  color: var(--lime);
  animation: fadeUp 0.8s ease-out 0.3s both;
}

.caret {
  display: inline-block;
  animation: blink 0.8s step-end infinite;
  margin-left: 2px;
}

@keyframes blink {
  50% { opacity: 0; }
}

.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 1.75rem;
  animation: fadeUp 0.8s ease-out 0.45s both;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 4rem;
  padding: 0.75rem 0.5rem;
  background: var(--bg-2);
  border: 2px solid var(--text);
  box-shadow: 5px 5px 0 var(--lime);
  transform: rotate(-1deg);
  transition: transform 0.2s, box-shadow 0.2s;
}

.countdown-unit:nth-of-type(even) {
  transform: rotate(1deg);
  box-shadow: 5px 5px 0 var(--hot);
}

.countdown-unit:hover {
  transform: rotate(0) scale(1.05);
}

.count-num {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 6vw, 2.75rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.count-num.tick {
  animation: tick-pop 0.35s ease;
}

@keyframes tick-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); color: var(--cyan); }
  100% { transform: scale(1); }
}

.count-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-top: 0.25rem;
}

.count-sep {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--hot);
  animation: sep-pulse 1s ease-in-out infinite;
  padding-bottom: 1rem;
}

@keyframes sep-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.drop-copy {
  max-width: 28rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 1.75rem;
  animation: fadeUp 0.8s ease-out 0.55s both;
}

.notify-form {
  width: 100%;
  max-width: 26rem;
  animation: fadeUp 0.8s ease-out 0.65s both;
}

.input-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border: 2px dashed var(--purple);
  padding: 0.5rem;
  background: rgba(18, 18, 26, 0.8);
  transform: rotate(-0.5deg);
  transition: border-color 0.3s;
}

.input-wrap:focus-within {
  border-color: var(--lime);
  border-style: solid;
}

.notify-form input {
  width: 100%;
  padding: 1rem 1.1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 2px solid var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.notify-form input::placeholder {
  color: #6b7280;
}

.notify-form input:focus {
  border-color: var(--cyan);
  box-shadow: 4px 4px 0 var(--hot);
}

.notify-form input.invalid {
  border-color: #ef4444;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.btn-submit {
  position: relative;
  overflow: hidden;
  padding: 1rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: #111;
  background: var(--lime);
  border: 2px solid #111;
  cursor: pointer;
  box-shadow: 5px 5px 0 #111;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-submit:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 #111;
}

.btn-submit:active {
  transform: translate(5px, 5px);
  box-shadow: 0 0 0 #111;
}

.btn-submit:disabled {
  cursor: wait;
  opacity: 0.85;
  transform: none;
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
  0% { left: -100%; }
  40%, 100% { left: 150%; }
}

.form-msg {
  min-height: 1.5rem;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-msg.success {
  color: var(--lime);
}

.form-msg.error {
  color: #f87171;
}

.footer {
  padding: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#confettiCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 500;
}

@media (min-width: 640px) {
  .input-wrap {
    flex-direction: row;
    align-items: stretch;
  }

  .notify-form input {
    flex: 1;
  }

  .btn-submit {
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .cursor-glow {
    display: none;
  }
}
