:root {
  --color-bg-start: #1a1030;
  --color-bg-end: #2d1b4e;
  --color-yellow: #FFC93C;
  --color-coral: #FF6B6B;
  --color-turquoise: #4ECDC4;
  --color-text: #FFFFFF;
  --color-text-soft: #F4F1FF;
  --font-stack: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-stack);
  color: var(--color-text);
  background: linear-gradient(135deg, var(--color-bg-start), var(--color-bg-end));
  background-size: 200% 200%;
  animation: gradient-shift 18s ease infinite;
  overflow-x: hidden;
  min-height: 100vh;
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.page {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3rem;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  animation: bounce-in 0.8s ease;
}

@keyframes bounce-in {
  0% { opacity: 0; transform: translateY(-40px) scale(0.9); }
  60% { opacity: 1; transform: translateY(10px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.logo-image {
  width: min(220px, 60vw);
  height: auto;
}

.logo {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  margin: 0;
}

.subtitle {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--color-yellow);
  font-weight: 700;
  margin: 0;
  animation: fade-up 0.8s ease 0.2s both;
}

.description {
  font-size: 1.05rem;
  color: var(--color-text-soft);
  max-width: 480px;
  line-height: 1.5;
  margin: 0;
  animation: fade-up 0.8s ease 0.4s both;
}

.bg-decor {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.floaty {
  position: absolute;
  font-size: 2.5rem;
  opacity: 0.25;
  animation: float 12s ease-in-out infinite;
}

.f1 { top: 8%; left: 6%; animation-duration: 14s; }
.f2 { top: 20%; left: 82%; animation-duration: 10s; animation-delay: 1s; }
.f3 { top: 65%; left: 10%; animation-duration: 16s; animation-delay: 2s; }
.f4 { top: 75%; left: 78%; animation-duration: 11s; animation-delay: 0.5s; }
.f5 { top: 40%; left: 45%; animation-duration: 13s; animation-delay: 3s; }
.f6 { top: 10%; left: 50%; animation-duration: 15s; animation-delay: 1.5s; }
.f7 { top: 55%; left: 90%; animation-duration: 12s; animation-delay: 2.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(15deg); }
}

.countdown {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fade-up 0.8s ease 0.6s both;
}

.countdown-card {
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid var(--color-turquoise);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  min-width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.countdown-number {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-soft);
}

.social {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fade-up 0.8s ease 0.8s both;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.social-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.social-btn:hover,
.social-btn:focus-visible {
  transform: scale(1.06) rotate(-2deg);
}

.social-instagram:hover { background: #E1306C; border-color: #E1306C; }
.social-tiktok:hover { background: #010101; border-color: var(--color-turquoise); }
.social-youtube:hover { background: #FF0000; border-color: #FF0000; }

.notify {
  width: 100%;
  max-width: 420px;
  animation: fade-up 0.8s ease 1s both;
}

.notify-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 1.75rem;
}

/* The [hidden] attribute is normally handled by the browser's default
   stylesheet ([hidden] { display: none }), but that user-agent rule always
   loses to an author rule like `.notify-form { display: flex }` regardless
   of source order or specificity, because author-origin declarations beat
   user-agent-origin declarations in the cascade. This rule re-asserts
   `display: none` at the author level (with higher specificity than the
   bare `.notify-form` class) so the hidden form actually disappears. */
.notify-form[hidden] {
  display: none;
}

.notify-title {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
}

.field label {
  font-size: 0.85rem;
  color: var(--color-text-soft);
}

.field input {
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 2px solid transparent;
  font-size: 1rem;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.9);
  color: #1a1030;
}

.field input:focus {
  outline: none;
  border-color: var(--color-turquoise);
}

.field-error {
  color: var(--color-coral);
  font-size: 0.85rem;
  margin: 0;
}

.notify-submit {
  padding: 0.9rem 1.5rem;
  border: none;
  border-radius: 999px;
  background: var(--color-yellow);
  color: #1a1030;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.notify-submit:hover,
.notify-submit:focus-visible {
  transform: scale(1.05);
}

.notify-thanks {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 2rem;
  animation: fade-up 0.5s ease both;
}

.notify-thanks-emoji {
  font-size: 2.5rem;
  margin: 0 0 0.5rem;
}

.notify-thanks-text {
  margin: 0;
  font-size: 1.05rem;
  color: var(--color-text-soft);
}

.footer {
  color: var(--color-text-soft);
  font-size: 0.85rem;
  opacity: 0.8;
}

@media (max-width: 480px) {
  .countdown {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .social {
    flex-direction: column;
    width: 100%;
  }

  .social-btn {
    justify-content: center;
    width: 100%;
  }
}
