:root {
  --bg: #0a0a0b;
  --bg-glow: #151517;
  --text: #f5f5f5;
  --text-muted: #a0a0a5;
  --whatsapp: #25d366;
  --whatsapp-hover: #1fb855;
  --border: #232326;
}

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

html, body {
  height: 100%;
}

body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Inter", Roboto, sans-serif;
  background: radial-gradient(circle at 50% 0%, var(--bg-glow) 0%, var(--bg) 60%);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(12px, 3vh, 32px) 24px 24px;
}

.page {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.brand-logo {
  width: clamp(220px, 60vw, 340px);
  height: auto;
  border-radius: 20px;
  object-fit: contain;
}

.hero-title {
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.hero-title span {
  color: var(--whatsapp);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 28px;
  max-width: 380px;
}

.whatsapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 380px;
  padding: 20px 28px;
  background: var(--whatsapp);
  color: #0a0a0b;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 700;
  text-decoration: none;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.whatsapp-button:hover,
.whatsapp-button:focus-visible {
  background: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(37, 211, 102, 0.35);
}

.whatsapp-button:active {
  transform: translateY(0);
}

.whatsapp-button svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.urgency-badge {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffb020;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

.countdown-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 22px;
  margin-bottom: 20px;
  background: rgba(255, 176, 32, 0.08);
  border: 1px solid rgba(255, 176, 32, 0.3);
  border-radius: 12px;
}

.countdown-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.countdown-timer {
  font-size: clamp(1.6rem, 6vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ffb020;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 400px) {
  .whatsapp-button {
    padding: 18px 20px;
  }
}

/* Mobile: logo bem próximo do topo e conteúdo compacto (360–430px) */
@media (max-width: 480px) {
  body {
    padding-top: 8px;
  }

  .brand {
    margin-bottom: 8px;
  }

  .hero-title {
    margin-bottom: 8px;
  }

  .hero-subtitle {
    margin-bottom: 16px;
  }

  .urgency-badge {
    margin-bottom: 8px;
  }

  .countdown-box {
    padding: 8px 18px;
    margin-bottom: 16px;
  }
}

/* Notificação "acabou de entrar" */
.join-notification {
  position: fixed;
  left: 50%;
  bottom: clamp(20px, 8vh, 72px);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 280px;
  padding: 12px 16px;
  background: #131315;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translate(-50%, 140%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
  pointer-events: none;
}

.join-notification.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.join-notification-avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 211, 102, 0.15);
  color: var(--whatsapp);
  font-weight: 700;
  font-size: 0.9rem;
}

.join-notification-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.25;
}

.join-notification-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.join-notification-city {
  font-size: 0.78rem;
  color: var(--text-muted);
}

@media (max-width: 520px) {
  .join-notification {
    max-width: min(calc(100vw - 32px), 250px);
    bottom: clamp(16px, 6vh, 56px);
  }
}
