/* styles.css */
/* --------------------------------------------- */
/* Global Reset                                */
/* --------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --------------------------------------------- */
/* Layout                                      */
/* --------------------------------------------- */
html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  font-family: "Courier New", monospace;
  color: #0c0;
}

canvas#bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  transition: background 0.5s;
  z-index: 2;
}

.overlay.dim {
  background: rgba(0, 0, 0, 1);
}

.content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 3;
  padding: 1rem;
}

/* --------------------------------------------- */
/* Typography                                  */
/* --------------------------------------------- */
.glow {
  font-size: 6rem;
  text-shadow: 0 0 10px #0f0, 0 0 20px #0f0;
}

.tagline {
  margin-top: 1rem;
  font-size: 1.5rem;
  opacity: 0.8;
}

.desc {
  margin-top: 1.5rem;
  max-width: 600px;
  font-size: 1rem;
  opacity: 0.6;
  line-height: 1.4;
}

/* --------------------------------------------- */
/* Buttons                                     */
/* --------------------------------------------- */
.cta {
  margin-top: 2rem;
  padding: 1rem 2rem;
  background: transparent;
  border: 2px solid #0c0;
  color: #0c0;
  font-size: 1.1rem;
  cursor: pointer;
  animation: pulse 2s infinite;
}

.cta:hover {
  background: rgba(0, 255, 0, 0.2);
  color: #fff;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 8px #0f0, 0 0 16px #0f0;
  }
  50% {
    box-shadow: 0 0 20px #0f0, 0 0 30px #0f0;
  }
}

/* --------------------------------------------- */
/* Modal                                       */
/* --------------------------------------------- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  pointer-events: all;
}

.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}

.modal-content {
  background: rgba(17, 17, 17, 0.6);
  padding: 2rem;
  border: 1px solid #0c0;
  text-align: center;
  position: relative;
  transform: scale(0.8);
  transition: transform 0.5s;
  z-index: 5;
}

.modal-content.zoom {
  transform: scale(1.2);
}

/* --------------------------------------------- */
/* Close Button                                */
/* --------------------------------------------- */
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  color: #0c0;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.7;
}

.close-btn:hover {
  opacity: 1;
}

/* --------------------------------------------- */
/* Eyes & Blinking                             */
/* --------------------------------------------- */
.eyes {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 3rem;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.5s;
}

.eyes.visible {
  opacity: 1;
}

.eye {
  width: 200px;
  height: 120px;
  background: #111;
  border: 2px solid #0c0;
  border-radius: 100px / 60px;
  position: relative;
  overflow: hidden;
}

.lid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: #000;
  animation: blink 5s infinite ease-in-out;
  transform-origin: center top;
}

@keyframes blink {
  0%,
  89%,
  90%,
  100% {
    height: 0;
  }
  91%,
  98% {
    height: 100%;
  }
}

.pupil {
  width: 40px;
  height: 40px;
  background: #f00;
  border-radius: 50%;
  position: absolute;
  top: calc(50% - 20px);
  left: calc(50% - 20px);
  transition: transform 0.1s;
  z-index: 1;
}

.pupil.glow {
  box-shadow: 0 0 16px #f00, 0 0 32px #f00;
  animation: pupilGlow 1s infinite alternate;
}

@keyframes pupilGlow {
  from {
    box-shadow: 0 0 8px #800;
  }
  to {
    box-shadow: 0 0 24px #f00;
  }
}

/* --------------------------------------------- */
/* Inputs & Submit                              */
/* --------------------------------------------- */
#emailInput {
  width: 220px;
  padding: 0.5rem;
  background: transparent;
  border: 1px solid #0c0;
  color: #0c0;
  font-size: 1rem;
}

.submit {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid #0c0;
  color: #0c0;
  cursor: pointer;
}

/* --------------------------------------------- */
/* Footer                                      */
/* --------------------------------------------- */
footer {
  position: absolute;
  bottom: 1rem;
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.4;
  color: #0c0;
  z-index: 3;
}
