/* =========================================================
   ZX STORE — Landing "Em breve"
   Paleta: preto (#0a0a0a), branco (#f5f5f5), dourado (#c9a24b)
   ========================================================= */

:root {
  --color-bg: #0a0a0a;
  --color-bg-soft: #121212;
  --color-white: #f5f5f5;
  --color-gold: #c9a24b;
  --color-gold-soft: #e6c878;
  --color-muted: #9a9a9a;
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Poppins', sans-serif;
}

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

html, body {
  height: 100%;
}

body {
  background: var(--color-bg);
  color: var(--color-white);
  font-family: var(--font-body);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  min-height: 100dvh; /* respeita a barra dinâmica no mobile */
}

/* ===================== LOADER ===================== */
#loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  width: 110px;
  height: auto;
  animation: pulse 1.4s ease-in-out infinite;
}

.loader-bar {
  width: 140px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  border-radius: 2px;
}

.loader-bar span {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--color-gold);
  animation: loader-slide 1.1s ease-in-out infinite;
}

@keyframes loader-slide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

/* ===================== FUNDO ===================== */
.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at 20% 20%, rgba(201, 162, 75, 0.12), transparent 45%),
              radial-gradient(circle at 80% 80%, rgba(201, 162, 75, 0.08), transparent 50%),
              linear-gradient(135deg, #0a0a0a, #141414 50%, #0a0a0a);
  background-size: 200% 200%;
  animation: gradient-shift 16s ease infinite;
}

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

#particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: block;
}

/* ===================== LAYOUT ===================== */
.container {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(32px + env(safe-area-inset-top)) calc(20px + env(safe-area-inset-right))
           calc(32px + env(safe-area-inset-bottom)) calc(20px + env(safe-area-inset-left));
  gap: 28px;
}

/* ===================== MARCA ===================== */
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  width: auto;
  height: 260px;
  max-width: 70vw;
  object-fit: contain;
  filter: drop-shadow(0 0 26px rgba(201, 162, 75, 0.3));
}

/* ===================== TÍTULO ===================== */
.title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.6rem);
  max-width: 780px;
  line-height: 1.2;
  background: linear-gradient(90deg, var(--color-white), var(--color-gold-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  max-width: 560px;
  color: var(--color-muted);
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  line-height: 1.7;
  font-weight: 300;
}

/* ===================== CONTADOR ===================== */
.countdown {
  display: flex;
  gap: 18px;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
  padding: 14px 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(201, 162, 75, 0.25);
  border-radius: 10px;
  backdrop-filter: blur(6px);
}

.countdown-item span {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-gold-soft);
}

.countdown-item small {
  margin-top: 2px;
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-muted);
}

.countdown.is-hidden {
  display: none;
}

/* ===================== PROGRESSO ===================== */
.progress-wrapper {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  border: 1px solid rgba(201, 162, 75, 0.2);
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-soft));
  box-shadow: 0 0 12px rgba(201, 162, 75, 0.6);
  transition: width 1.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.progress-label {
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: var(--color-muted);
}

/* ===================== BOTÕES ===================== */
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-bg);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn-whatsapp {
  background: linear-gradient(135deg, var(--color-gold-soft), var(--color-gold));
}

.btn-instagram {
  background: transparent;
  color: var(--color-white);
  border: 1px solid var(--color-gold);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(201, 162, 75, 0.35);
}

/* brilho ao passar o mouse */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.5) 50%, transparent 80%);
  transform: translateX(-150%);
  transition: transform 0.6s ease;
}

.btn:hover::before {
  transform: translateX(150%);
}

/* ===================== FOOTER ===================== */
.footer {
  margin-top: 12px;
  font-size: 0.75rem;
  color: rgba(154, 154, 154, 0.6);
  letter-spacing: 0.5px;
}

.footer .credits {
  margin-top: 6px;
  font-size: 0.72rem;
}

.footer .credits a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer .credits a:hover {
  color: var(--color-gold-soft);
}

/* ===================== ANIMAÇÕES DE ENTRADA ===================== */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== RESPONSIVO ===================== */
@media (max-width: 480px) {
  .countdown-item {
    min-width: 52px;
    padding: 10px 6px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 0.85rem;
  }

  .buttons {
    width: 100%;
  }

  .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}
