/* ===== FONT ===== */
@font-face {
  font-family: "New Science";
  src: url("fonts/NewScience-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "New Science";
  src: url("fonts/NewScience-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
  min-height: 100dvh;
  font-size: 16px;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  background: #0c0a1e;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(90, 50, 140, 0.25) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(180, 60, 30, 0.12) 0%, transparent 60%);
  color: #fff;
  font-family: "New Science", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== FADE-IN ANIMATION ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fade-in:nth-child(2) {
  animation-delay: 0.2s;
}

.fade-in:nth-child(3) {
  animation-delay: 0.4s;
}

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  min-height: 100%;
  min-height: 100dvh;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vh, 2.5rem);
  padding: clamp(2rem, 5vh, 4rem) clamp(1rem, 5vw, 3rem);
  position: relative;
}

/* ===== MAIN TITLE ===== */
.coming-soon {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(1rem, 3.5vw, 1.7rem);
  font-weight: 700;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.5rem;
  width: 100%;
}

.coming-soon span:last-child {
  color: #d4a853;
  text-shadow: 0 0 24px rgba(212, 168, 83, 0.28);
}

/* ===== CONTENT SPLIT ===== */
.content-split {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: clamp(2rem, 5vw, 4rem);
}

.signup-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

/* ===== HERO IMAGE ===== */
.hero-image {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: min(520px, 80vw);
  filter: drop-shadow(0 8px 40px rgba(140, 80, 200, 0.18))
          drop-shadow(0 2px 12px rgba(0, 0, 0, 0.4));
}

.hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 100%;
}

/* ===== GAME TITLE ===== */
.game-title {
  flex-shrink: 0;
  color: #fff;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
  margin-bottom: -0.5rem; /* Tighten gap with tagline */
}

/* ===== TAGLINE ===== */
.tagline {
  flex-shrink: 0;
  color: #fff;
  font-size: clamp(1.02rem, 2.3vw, 1.45rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.34;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.tagline-line {
  display: block;
}

.tagline .highlight {
  color: #b8892a;
  text-shadow: 0 0 10px rgba(183, 136, 42, 0.18);
}

/* ===== EMAIL FORM ===== */
.email-form {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.75rem, 1.8vh, 1rem);
  width: 100%;
  max-width: 500px;
}

.input-row {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0.72rem;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.input-row:focus-within {
  box-shadow: none;
  transform: none;
}

.email-form input[type="email"] {
  width: 100%;
  padding: clamp(0.95rem, 2vh, 1.14rem) clamp(1rem, 2.4vw, 1.2rem);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: #ffffff;
  color: #000;
  font-size: clamp(0.98rem, 1.95vw, 1.1rem);
  font-weight: 500;
  font-family: inherit;
  letter-spacing: 0.02em;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.email-form input[type="email"]:focus {
  border-color: rgba(0, 0, 0, 0.2);
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.email-form input[type="email"]::placeholder {
  color: rgba(0, 0, 0, 0.5);
  letter-spacing: 0.02em;
}

.email-form button {
  width: 100%;
  padding: clamp(0.95rem, 2vh, 1.14rem) clamp(1.2rem, 2.5vw, 1.8rem);
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #b13d25 0%, #972f1b 100%);
  color: #fff3df;
  font-size: clamp(0.95rem, 1.75vw, 1.04rem);
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.2s, transform 0.15s, box-shadow 0.2s;
}

.email-form button:hover {
  filter: brightness(1.07);
  box-shadow: 0 6px 18px rgba(137, 45, 27, 0.38);
}

.email-form button:active {
  transform: scale(0.985);
}

.email-form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== STATUS MESSAGE ===== */
.status-msg {
  font-size: clamp(0.8rem, 1.4vw, 0.92rem);
  min-height: 1.3em;
  letter-spacing: 0.02em;
  transition: opacity 0.3s;
}

.status-msg.success {
  color: #a5d6a7;
}

.status-msg.error {
  color: #ef9a9a;
}

/* ===== RESPONSIVE — MOBILE ===== */
@media (max-width: 600px) {
  .container {
    gap: clamp(1.5rem, 4vh, 2.5rem);
    padding: clamp(2rem, 5vh, 3rem) clamp(1.5rem, 6vw, 2.5rem);
    justify-content: space-evenly;
  }

  .coming-soon {
    font-size: clamp(1.1rem, 6vw, 1.48rem);
    line-height: 1.1;
    letter-spacing: 0.06em;
  }

  .hero-image {
    max-width: 85vw;
  }

  .game-title {
    font-size: clamp(1.4rem, 8vw, 1.8rem);
    margin-bottom: 0;
  }

  .tagline {
    font-size: clamp(1.05rem, 5vw, 1.35rem);
    letter-spacing: 0.035em;
    line-height: 1.38;
  }

  .email-form {
    max-width: 88vw;
    gap: clamp(0.72rem, 1.6vh, 1rem);
  }

  .input-row {
    gap: 0.72rem;
  }

  .email-form input[type="email"] {
    text-align: center;
    width: 100%;
    padding: clamp(0.98rem, 2.3vh, 1.2rem) 0.95rem;
    font-size: clamp(1rem, 4.4vw, 1.12rem);
  }

  .email-form button {
    padding: clamp(0.98rem, 2.3vh, 1.2rem) 1.5rem;
    font-size: clamp(0.98rem, 4.2vw, 1.1rem);
  }

  .status-msg {
    font-size: clamp(0.82rem, 3.5vw, 0.95rem);
  }
}

/* ===== DESKTOP SIDE-BY-SIDE ===== */
@media (min-width: 1024px) {
  .content-split {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
  }

  .hero-image {
    flex: 1;
    max-width: 550px;
  }

  .signup-section {
    flex: 1;
    align-items: flex-start;
    text-align: left;
    max-width: 500px;
  }

  .game-title {
    text-align: left;
  }

  .email-form {
    align-items: flex-start;
  }

  .email-form input[type="email"] {
    text-align: left;
  }
}

/* ===== VERY SMALL HEIGHTS (landscape phones etc) ===== */
@media (max-height: 500px) {
  .container {
    gap: 0.6rem;
    padding: 0.6rem 1.2rem;
    justify-content: center;
  }

  .coming-soon {
    font-size: clamp(1.25rem, 6vh, 1.9rem);
  }

  .tagline {
    font-size: clamp(0.75rem, 2.2vw, 0.95rem);
  }

  .email-form input[type="email"],
  .email-form button {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }
}
