body {
  overflow: hidden;
}

/* Page transition */
.page-exit {
  animation: pageExit 0.5s ease forwards;
}

@keyframes pageExit {
  to {
    opacity: 0;
    transform: scale(0.98);
  }
}

/* Layout */
main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 1s ease;
}

.hero {
  text-align: center;
  transition: all 1s ease;
}

/* STATES */

/* Initial hidden */
.state-hidden .hero {
  opacity: 0;
  transform: translateY(30px);
}

/* Centered visible */
.state-center .hero {
  opacity: 1;
  transform: translateY(0);
}

/* Fade out */
.state-fadeout .hero {
  opacity: 0;
  transform: translateY(-20px);
}

/* Side aligned reappear */
.state-side {
  align-items: flex-start;
  padding-left: 80px;
}

.state-side .hero {
  opacity: 1;
  transform: translateY(0);
  text-align: left;
}

/* Typography */
h1 { font-size: 3rem; }
h2 { font-size: 1.6rem; font-weight: 300; margin-top: 0.5rem; }

.credits {
  margin-top: 2rem;
  opacity: 0.7;
  line-height: 1.4;
}

.credits span {
  font-size: 0.75rem;
  letter-spacing: 2px;
}

/* Button */
.cta-button {
  margin-top: 3rem;
  padding: 0.8rem 2rem;
  border: 1px solid rgba(255,255,255,0.5);
  background: transparent;
  color: white;
  font-size: 0.9rem;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.4s ease;
}

.cta-button.hidden {
  opacity: 0;
  transform: translateY(10px);
}

.cta-button.show {
  opacity: 1;
  transform: translateY(0);
}

.cta-button:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

.cta-button:active {
  transform: scale(0.96);
}


/* ================= MOBILE ================= */
@media (max-width: 768px) {

  h1 { font-size: 2rem; }
  h2 { font-size: 1.2rem; }

  .state-side {
    align-items: center;
    padding-left: 20px;
    padding-right: 20px;
  }

  .state-side .hero {
    text-align: center;
  }

  .cta-button {
    width: 90%;
    max-width: 320px;
  }
}
