:root {
  --bg-1: #0a0a12;
  --bg-2: #15101c;
  --card-bg: rgba(14, 12, 20, 0.72);
  --card-border: rgba(255, 170, 60, 0.18);
  --gold: #ffc933;
  --gold-soft: #f5d56b;
  --orange: #ff7a2f;
  --text: #e9e6f0;
  --text-dim: #b9b3c7;
  --green: #8fd14f;
  --blue: #3d7bff;
}

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

html,
body {
  height: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, #1a1326 0%, transparent 55%),
    radial-gradient(circle at 80% 80%, #161020 0%, transparent 50%),
    linear-gradient(160deg, var(--bg-1), var(--bg-2) 70%, #07060c);
  min-height: 100%;
  overflow-x: hidden;
  position: relative;
}

/* Firework canvas behind everything */
#fireworks {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.card {
  width: 100%;
  max-width: 620px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  padding: 44px 40px 48px;
  text-align: center;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 30px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.logo {
  width: 190px;
  max-width: 60%;
  height: auto;
  margin: 0 auto 26px;
  display: block;
  filter: drop-shadow(0 6px 24px rgba(255, 180, 50, 0.25));
}

.logo-fallback {
  display: block;
  font-family: "Cinzel", serif;
  font-weight: 900;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  letter-spacing: 0.06em;
  margin: 0 auto 26px;
  background: linear-gradient(180deg, #ffd84d 0%, #8fd14f 55%, #3d7bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge {
  display: inline-block;
  padding: 9px 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(120, 55, 20, 0.55), rgba(70, 30, 10, 0.5));
  border: 1px solid rgba(255, 140, 50, 0.35);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 4px 18px rgba(255, 120, 40, 0.12);
}

.headline {
  font-family: "Cinzel", serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 3.7rem);
  line-height: 1.05;
  margin: 26px 0 22px;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffd84d 0%, #ff8a2b 55%, #ff5e2b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 6px 40px rgba(255, 120, 40, 0.25);
}

.subtitle {
  font-size: clamp(0.98rem, 2.4vw, 1.12rem);
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 440px;
  margin: 0 auto 38px;
}

.subtitle strong {
  color: var(--gold);
  font-weight: 700;
}

.countdown-label,
.notify-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-soft);
  margin-bottom: 18px;
}

.countdown {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
}

.time-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 84px;
}

.time-value {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 18px 8px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(30, 24, 16, 0.85), rgba(16, 12, 8, 0.85));
  border: 1px solid rgba(255, 180, 60, 0.28);
  font-family: "Cinzel", serif;
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--gold);
  text-shadow: 0 0 22px rgba(255, 190, 60, 0.45);
  box-shadow:
    inset 0 0 22px rgba(255, 160, 40, 0.08),
    0 8px 24px rgba(0, 0, 0, 0.4);
  font-variant-numeric: tabular-nums;
}

.time-unit {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-soft);
}

.time-sep {
  font-family: "Cinzel", serif;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 700;
  color: var(--gold-soft);
  opacity: 0.7;
  padding-top: 18px;
}

.divider {
  width: 90px;
  height: 1px;
  margin: 40px auto;
  background: linear-gradient(90deg, transparent, rgba(255, 190, 70, 0.5), transparent);
}

.notify-form {
  display: flex;
  gap: 12px;
  max-width: 460px;
  margin: 0 auto;
}

.email-input {
  flex: 1;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 180, 60, 0.22);
  background: rgba(10, 8, 14, 0.7);
  color: var(--text);
  font-size: 0.98rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.email-input::placeholder {
  color: #7f7a8c;
}

.email-input:focus {
  border-color: rgba(255, 190, 70, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 170, 50, 0.12);
}

.notify-btn {
  padding: 16px 28px;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2a1500;
  cursor: pointer;
  white-space: nowrap;
  background: linear-gradient(180deg, #ffd24d, #ff8e2b);
  box-shadow: 0 8px 24px rgba(255, 140, 40, 0.35);
  transition: transform 0.12s ease, box-shadow 0.2s ease, filter 0.2s;
}

.notify-btn:hover {
  filter: brightness(1.05);
  box-shadow: 0 10px 30px rgba(255, 150, 50, 0.5);
}

.notify-btn:active {
  transform: translateY(1px);
}

.notify-msg {
  margin-top: 14px;
  font-size: 0.9rem;
  min-height: 1.2em;
  color: var(--green);
}

.notify-msg.error {
  color: #ff7a7a;
}

/* Responsive */
@media (max-width: 560px) {
  .card {
    padding: 32px 20px 36px;
    border-radius: 22px;
  }

  .countdown {
    gap: 4px;
  }

  .time-box {
    min-width: 0;
    flex: 1;
    gap: 8px;
  }

  .time-value {
    padding: 14px 4px;
    border-radius: 12px;
  }

  .time-sep {
    display: none;
  }

  .notify-form {
    flex-direction: column;
  }

  .notify-btn {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .time-unit {
    font-size: 0.6rem;
  }
}
