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

html, body {
  height: 100%;
  overflow: hidden;
  width: 100%;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #05050f;
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Michroma', sans-serif;
  font-weight: 400;
  font-size: 14pt;
  line-height: 1.65;
  padding: 3em;
}

body.is-preload *, body.is-preload *::before, body.is-preload *::after {
  animation: none !important;
  transition: none !important;
}

body > * {
  position: relative;
  z-index: 2;
}

#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* BG slideshow */
#bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.3;
  transition: opacity 2s ease-in-out;
}

#bg div {
  position: absolute;
  top: 0;
  left: 0;
  width: 130%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 3s ease;
  background-size: cover;
  background-position: center;
}

#bg div.visible {
  animation: pan 60s linear infinite;
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

#bg div.visible.top {
  z-index: 2;
}

body.is-preload #bg {
  opacity: 0;
}

@keyframes pan {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-23%); }
}

/* Hero */
#hero {
  text-align: center;
  max-width: 640px;
  z-index: 3;
}

#hero h1 {
  font-family: 'Michroma', sans-serif;
  font-weight: 700;
  font-size: 3.5em;
  color: #fff;
  margin-bottom: 0.35em;
  letter-spacing: -0.02em;
}

#hero p {
  font-size: 1em;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2em;
}

#hero p .word {
  display: inline-block;
  opacity: 0;
  transition: opacity 0.5s ease;
  margin-right: 0.3em;
}

#hero p .word.visible {
  opacity: 1;
}

#l1, #l2 {
  display: block;
  overflow: hidden;
  transition: height 0.5s ease;
}

#l1 {
  margin-bottom: 0.15em;
}

/* Form */
#signup {
  display: flex;
  gap: 0.75em;
  justify-content: center;
}

#signup input[type="email"] {
  appearance: none;
  font-family: 'Ubuntu Mono', monospace;
  font-weight: 700;
  font-size: 0.9em;
  padding: 0 1.25em;
  height: 3.2em;
  width: 18em;
  border-radius: 6px;
  border: solid 1.5px rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}

#signup input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

#signup input[type="email"]:focus {
  border-color: #d4a853;
  background: rgba(255, 255, 255, 0.1);
}

#signup button {
  appearance: none;
  font-family: 'Staatliches', sans-serif;
  font-weight: 400;
  font-size: 0.9em;
  height: 3.2em;
  padding: 0 1.75em;
  border: solid 1.5px transparent;
  border-radius: 6px;
  background: linear-gradient(135deg, #d4a853, #b8923a);
  color: #0a0a0a;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.25s ease, transform 0.2s ease;
}

#signup button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

#signup button:active {
  transform: translateY(0);
}

#signup .message {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2.5em;
  font-family: 'Staatliches', sans-serif;
  font-size: 0.85em;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

#signup .message.visible {
  opacity: 1;
}

#signup .message.success {
  color: #5bc0a3;
}

#signup .message.failure {
  color: #e74c6f;
}

/* Footer */
#footer {
  position: fixed;
  bottom: 2.5em;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 3;
}

#footer p {
  font-size: 0.75em;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.04em;
}

#footer a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.15);
}

#footer a:hover {
  border-bottom-color: rgba(255, 255, 255, 0.4);
}

/* Responsive */
@media screen and (max-width: 736px) {
  body {
    padding: 2em;
  }

  #hero h1 {
    font-size: 2.5em;
  }

  #hero p {
    font-size: 1em;
  }

  #signup {
    flex-direction: column;
    align-items: center;
  }

  #signup input[type="email"] {
    width: 100%;
    max-width: 22em;
  }
}

@media screen and (max-width: 480px) {
  body {
    padding: 1.5em;
  }

  #hero h1 {
    font-size: 2em;
  }
}
