/* =========================
   RESET & BASE
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* =========================
   HERO
========================= */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
}

/* =========================
   BACKGROUND
========================= */
.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;

  transform: scale(1.08);
  opacity: 0;
  animation: bgIn 6s ease forwards;
}

@keyframes bgIn {
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* =========================
   TOP BAR
========================= */
.top-bar {
  position: absolute;
  top: 20px;
  left: 24px;
  right: 24px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

/* HAMBURGER */
.hamburger {
  width: 34px;
  cursor: pointer;

  opacity: 0;
  transform: translateX(-20px);
  animation: slideInLeft 1s ease forwards;
  animation-delay: 0.6s;
}

/* LOGO */
.logo {
  height: 44px;
  object-fit: contain;

  transform: scale(1.12);

  opacity: 0;
  animation: slideInRight 1s ease forwards;
  animation-delay: 0.8s;
}

/* =========================
   CENTER CONTENT
========================= */
.content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  text-align: center;
  color: white;
  width: 100%;
  padding: 0 16px;
}

/* =========================
   TITLE IMAGE (S2RP)
========================= */
.title-image {
  width: 420px;
  max-width: 100%;

  display: block;
  margin: 0 auto 6px auto;

  opacity: 0;
  transform: scale(0.9);
  filter: blur(8px);
  animation: titleIn 1.6s ease forwards;
  animation-delay: 1.2s;
}

/* =========================
   TEXT
========================= */
.subtitle {
  margin-top: 0;
  line-height: 1.25;

  font-size: 1.3rem;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 1s ease forwards;
  animation-delay: 2s;
}

.era {
  margin-top: 4px;
  font-size: 0.95rem;

  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 1s ease forwards;
  animation-delay: 2.15s;
}

/* =========================
   CTA BUTTON
========================= */
.cta {
  display: inline-block;
  margin-top: 22px;

  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 1s ease forwards;
  animation-delay: 2.45s;
}

.cta img {
  width: 320px;
  max-width: 100%;

  display: block;
  margin: 0 auto 6px auto;

  transition: transform 0.25s ease;
}

.cta:hover img {
  transform: scale(1.05);
}

/* =========================
   DISCORD TEXT
========================= */
.discord {
  font-size: 0.85rem;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: 2.9s;
}

/* =========================
   ANIMATIONS
========================= */
@keyframes titleIn {
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  to {
    opacity: 1;
  }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* =========================
   MOBILE OPTIMIZATION
========================= */
@media (max-width: 768px) {

  .top-bar {
    top: 16px;
    left: 16px;
    right: 16px;
  }

  .hamburger {
    width: 30px;
  }

  .logo {
    height: 36px;
  }

  .title-image {
    width: 300px;
    margin-bottom: 4px;
  }

  .subtitle {
    font-size: 1.05rem;
  }

  .era {
    font-size: 0.85rem;
  }

  .cta {
    margin-top: 18px;
  }

  .cta img {
    width: 260px;
  }

  .discord {
    font-size: 0.75rem;
  }
}

/* =========================
   SMALL PHONES
========================= */
@media (max-width: 480px) {

  .title-image {
    width: 240px;
  }

  .subtitle {
    font-size: 0.95rem;
  }

  .cta img {
    width: 220px;
  }
}
