/* ==========================================================================
   NexoVale Premiações - Estilos da Página de Pré-Lançamento
   Totalmente compatível com hospedagem KingHost (CSS3 Puro / Sem dependências)
   ========================================================================== */

:root {
  --nv-green-neon: #39ff14;
  --nv-green-emerald: #00e676;
  --nv-green-lime: #a3e635;
  --nv-green-glow: rgba(57, 255, 20, 0.35);
  --nv-bg-dark: #060a08;
  --nv-bg-card: rgba(12, 18, 15, 0.78);
  --nv-bg-card-hover: rgba(18, 27, 22, 0.85);
  --nv-border-card: rgba(57, 255, 20, 0.38);
  --nv-text-white: #ffffff;
  --nv-text-silver: #c9d6ce;
  --nv-text-muted: #83958b;
  --nv-font-display: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --nv-font-body: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html, body {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--nv-bg-dark);
  color: var(--nv-text-white);
  font-family: var(--nv-font-body);
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container Principal com Background em Tela Cheia */
.nv-launch-wrapper {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background-color: #060a08;
  background-image: 
    radial-gradient(circle at 50% 18%, rgba(0, 0, 0, 0.15) 0%, rgba(6, 10, 8, 0.6) 45%, rgba(6, 10, 8, 0.92) 85%),
    linear-gradient(to bottom, rgba(6, 10, 8, 0.25) 0%, rgba(6, 10, 8, 0.45) 28%, rgba(6, 10, 8, 0.82) 60%, rgba(6, 10, 8, 0.96) 100%),
    url('../images/lancamento-nexovale.png'),
    url('https://i.imgur.com/y0kbZvq.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding: 0 1.25rem;
  overflow: hidden;
}

/* Camada extra de vinheta e profundidade sutil */
.nv-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, rgba(57, 255, 20, 0.04) 0%, transparent 70%);
  z-index: 1;
}

/* Canvas de Efeitos Visuais (Diamantes e Partículas) */
#nv-particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* Área Superior Reservada para Preservar a Logomarca da Imagem */
.nv-logo-safe-zone {
  width: 100%;
  height: clamp(140px, 26vh, 250px);
  min-height: 120px;
  flex-shrink: 0;
  position: relative;
  z-index: 5;
}

/* Conteúdo Central */
.nv-content-zone {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 2rem;
}

/* Badge de Pré-Lançamento */
.nv-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  background: rgba(12, 18, 15, 0.75);
  border: 1px solid rgba(57, 255, 20, 0.4);
  border-radius: 9999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 15px rgba(57, 255, 20, 0.15);
}

.nv-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--nv-green-neon);
  box-shadow: 0 0 10px var(--nv-green-neon);
  animation: nvPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.nv-badge-text {
  font-family: var(--nv-font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e2fbea;
}

/* Título Principal */
.nv-title {
  font-family: var(--nv-font-display);
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nv-text-white);
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8), 0 0 30px rgba(57, 255, 20, 0.35);
}

.nv-title-highlight {
  color: var(--nv-green-neon);
  text-shadow: 0 0 25px rgba(57, 255, 20, 0.6);
}

/* Subtítulo */
.nv-subtitle {
  font-family: var(--nv-font-body);
  font-size: clamp(0.95rem, 2.2vw, 1.25rem);
  font-weight: 500;
  color: var(--nv-text-silver);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

/* Grade do Contador Regressivo */
.nv-countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.75rem, 2vw, 1.5rem);
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
}

/* Cartão Individual do Contador */
.nv-count-card {
  position: relative;
  background: var(--nv-bg-card);
  border: 1px solid var(--nv-border-card);
  border-radius: 16px;
  padding: clamp(1rem, 2.2vw, 1.75rem) clamp(0.5rem, 1.5vw, 1rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 
    0 12px 35px -5px rgba(0, 0, 0, 0.8),
    0 0 25px -5px rgba(57, 255, 20, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.nv-count-card:hover {
  transform: translateY(-3px);
  border-color: rgba(57, 255, 20, 0.7);
  box-shadow: 
    0 16px 40px -5px rgba(0, 0, 0, 0.9),
    0 0 35px rgba(57, 255, 20, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Efeito de Feixe de Luz Percorrendo Ocasionalmente a Borda */
.nv-count-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 40%,
    rgba(57, 255, 20, 0.15) 48%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(57, 255, 20, 0.15) 52%,
    transparent 60%
  );
  transform: rotate(30deg) translateX(-120%);
  animation: nvBorderSheen 7s ease-in-out infinite;
  pointer-events: none;
}

.nv-count-card:nth-child(2)::after { animation-delay: 1.5s; }
.nv-count-card:nth-child(3)::after { animation-delay: 3s; }
.nv-count-card:nth-child(4)::after { animation-delay: 4.5s; }

/* Número da Unidade */
.nv-count-number-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 1.1em;
}

.nv-count-number {
  font-family: var(--nv-font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1;
  color: var(--nv-text-white);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  text-shadow: 0 0 20px rgba(57, 255, 20, 0.45);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Efeito sutil ao alterar o segundo */
.nv-number-tick {
  animation: nvTick 0.3s ease-out;
}

/* Rótulo da Unidade */
.nv-count-label {
  font-family: var(--nv-font-body);
  font-size: clamp(0.68rem, 1.2vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--nv-green-neon);
  margin-top: 0.6rem;
  white-space: nowrap;
}

/* Divisor sutil no topo do card */
.nv-card-glow-bar {
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--nv-green-neon), transparent);
  opacity: 0.7;
}

/* Estado Quando o Contador Zerar (Ao Vivo) */
.nv-launched-container {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: nvFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.nv-launched-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.25rem;
  background: rgba(57, 255, 20, 0.12);
  border: 1px solid var(--nv-green-neon);
  border-radius: 9999px;
  backdrop-filter: blur(12px);
  margin-bottom: 1.5rem;
}

.nv-launched-badge span {
  font-family: var(--nv-font-display);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--nv-green-neon);
  text-transform: uppercase;
}

.nv-launched-title {
  font-family: var(--nv-font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  color: var(--nv-text-white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
  text-shadow: 0 0 35px rgba(57, 255, 20, 0.7), 0 4px 20px rgba(0, 0, 0, 0.9);
}

.nv-launched-desc {
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  color: var(--nv-text-silver);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

/* Botão ACESSAR AGORA */
.nv-btn-access {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  font-family: var(--nv-font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #060a08;
  background: linear-gradient(135deg, #a3e635 0%, #39ff14 50%, #00e676 100%);
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 
    0 10px 30px rgba(57, 255, 20, 0.4),
    0 0 40px rgba(57, 255, 20, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.nv-btn-access:hover {
  transform: translateY(-3px) scale(1.02);
  filter: brightness(1.1);
  box-shadow: 
    0 15px 40px rgba(57, 255, 20, 0.6),
    0 0 60px rgba(57, 255, 20, 0.4);
}

.nv-btn-access:active {
  transform: translateY(-1px) scale(0.99);
}

.nv-btn-access svg {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.nv-btn-access:hover svg {
  transform: translateX(4px);
}

/* Rodapé Limpo e Informativo */
.nv-footer {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 960px;
  padding: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--nv-text-muted);
}

.nv-footer-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(57, 255, 20, 0.25), transparent);
  margin-bottom: 0.5rem;
}

.nv-footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  text-align: center;
}

.nv-footer-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--nv-text-silver);
}

.nv-footer-pill-icon {
  color: var(--nv-green-neon);
}

/* Animações */
@keyframes nvPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

@keyframes nvBorderSheen {
  0%, 75% {
    transform: rotate(30deg) translateX(-120%);
    opacity: 0;
  }
  80% {
    opacity: 0.8;
  }
  95%, 100% {
    transform: rotate(30deg) translateX(120%);
    opacity: 0;
  }
}

@keyframes nvTick {
  0% { transform: translateY(-4px); opacity: 0.8; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes nvFadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Responsividade Detalhada (Mobile-First Precision) */
@media (max-width: 640px) {
  .nv-launch-wrapper {
    padding: 0 1rem;
    background-position: center 10%;
  }

  .nv-logo-safe-zone {
    height: clamp(120px, 22vh, 180px);
    min-height: 100px;
  }

  .nv-title {
    font-size: 1.85rem;
    letter-spacing: 0.05em;
  }

  .nv-subtitle {
    font-size: 0.92rem;
    margin-bottom: 1.75rem;
    padding: 0 0.5rem;
  }

  /* Grid 4 colunas compacto e elegante no mobile sem quebrar ou cortar */
  .nv-countdown-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    max-width: 100%;
  }

  .nv-count-card {
    border-radius: 12px;
    padding: 0.9rem 0.25rem;
  }

  .nv-count-number {
    font-size: 1.85rem;
  }

  .nv-count-label {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    margin-top: 0.35rem;
  }

  .nv-footer {
    padding-bottom: 2rem;
  }
}

@media (max-width: 360px) {
  /* Em telas ultracompactas (<= 360px), 2x2 grid previne qualquer corte */
  .nv-countdown-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }
  
  .nv-count-number {
    font-size: 2rem;
  }
  
  .nv-count-label {
    font-size: 0.7rem;
  }
}

/* Suporte a Acessibilidade (prefers-reduced-motion) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  #nv-particles-canvas {
    display: none;
  }
}
