/* ==========================================================================
   DATAZION Coming Soon Landing Page - Design System & Stylesheet
   ========================================================================== */

/* 1. VARIÁVEIS DE ESTILO (Design Tokens) */
:root {
  /* Paleta de Cores Oficial */
  --color-bg: #0D0D0D;
  --color-gray-dark: #2B2B2B;
  --color-gray-medium: #8B8B8B;
  --color-white: #FFFFFF;
  --color-green: #B7FF3C;
  --color-green-glow: rgba(183, 255, 60, 0.15);
  
  /* Tipografia */
  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* Alturas de Linha e Espaçamentos */
  --line-height-tight: 1.15;
  --line-height-normal: 1.6;
}

/* 2. RESET E ESTILOS GERAIS */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--color-bg);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: var(--line-height-normal);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Estado de travamento de scroll durante o loader */
body.loading-state {
  overflow: hidden;
}

/* 3. ESTRUTURA DE LAYOUT (Perfeitamente Centralizado) */
.main-wrapper {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Empurra o rodapé para baixo */
  align-items: center;
  padding: 40px 24px;
  z-index: 10;
  pointer-events: none; /* Permite interações de mouse no canvas no fundo */
}

/* Habilita ponteiros para elementos interativos no wrapper */
.content-container, .main-footer, .cta-btn, .modal {
  pointer-events: auto;
}

.content-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 680px;
  text-align: center;
  margin: 40px 0;
}

/* 4. FUNDO TECNOLÓGICO: CANVAS, GRID E GLOW */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Grid tecnológico sutil (opacidade entre 2% e 4%) */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 2;
  pointer-events: none;
}

/* Brilho radial que segue o cursor do mouse (Glow) */
#mouse-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle 450px at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(183, 255, 60, 0.035),
    transparent 80%
  );
  z-index: 3;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* 5. TELA DE LOADER INICIAL */
#loader {
  position: fixed;
  inset: 0;
  background-color: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: loader-pulse 2s infinite ease-in-out;
}

.loader-symbol {
  width: 72px;
  height: auto;
}

.loader-wordmark {
  width: 160px;
  height: auto;
}

#loader.fade-out {
  opacity: 0;
  pointer-events: none;
}

@keyframes loader-pulse {
  0%, 100% {
    transform: scale(0.98);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.02);
    opacity: 1;
  }
}

/* 6. SELO SUPERIOR (BADGE) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(43, 43, 43, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 6px 16px;
  border-radius: 100px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 36px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-green);
  position: relative;
}

.badge-dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--color-green);
  animation: dot-glow 2s infinite ease-in-out;
}

.badge-text {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--color-white);
  text-transform: uppercase;
}

/* 7. LOGO CONTAINER E MARCA */
.logo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.brand-symbol {
  width: 78px;
  height: auto;
}

.brand-wordmark {
  width: 180px;
  height: auto;
  color: var(--color-white);
}

/* Animações vetoriais no Símbolo */
.green-action-circle {
  animation: action-circle-pulse 3s infinite ease-in-out;
  transform-origin: 124px 26px; /* Coordenada exata de cx=124 cy=26 */
}

@keyframes action-circle-pulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 2px rgba(183, 255, 60, 0.4));
  }
  50% {
    transform: scale(1.2);
    filter: drop-shadow(0 0 12px rgba(183, 255, 60, 0.95));
  }
}

/* 8. TIPOGRAFIA DO CONTEÚDO */
.main-title {
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 600;
  line-height: var(--line-height-tight);
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin-bottom: 24px;
  max-width: 600px;
}

.main-description {
  font-size: clamp(0.95rem, 2vw, 1.125rem);
  font-weight: 400;
  color: var(--color-gray-medium);
  max-width: 580px;
  line-height: 1.6;
  margin-bottom: 36px;
}

.desktop-only {
  display: none;
}

@media (min-width: 768px) {
  .desktop-only {
    display: inline;
  }
}

/* 9. INDICADOR DE PROCESSO */
.indicator {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
}

.indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-green);
  box-shadow: 0 0 8px var(--color-green);
  position: relative;
}

.indicator-dot::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  border: 1px solid var(--color-green);
  animation: dot-glow-large 2.5s infinite ease-in-out;
}

.indicator-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-gray-medium);
  letter-spacing: 0.05em;
}

@keyframes dot-glow {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.5); opacity: 0; }
}

@keyframes dot-glow-large {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* 10. BOTÃO DE CTA COM EFEITO SHIMMER & HOVER GLOW */
.btn-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.cta-btn {
  position: relative;
  background-color: #000000;
  border: 1px solid rgba(183, 255, 60, 0.25);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 15px 32px;
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
  transition: 
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  outline: none;
}

.cta-btn .btn-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cta-btn .arrow {
  display: inline-block;
  font-size: 16px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Efeito Shimmer em Loop / Hover */
.btn-shimmer {
  position: absolute;
  top: 0;
  left: -150%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(183, 255, 60, 0.15),
    transparent
  );
  transform: skewX(-25deg);
  z-index: 1;
  pointer-events: none;
}

/* HOVER STATES */
.cta-btn:hover {
  transform: translateY(-3px);
  border-color: var(--color-green);
  box-shadow: 
    0 8px 30px rgba(183, 255, 60, 0.12),
    0 0 1px var(--color-green);
}

.cta-btn:hover .arrow {
  transform: translateX(4px);
}

.cta-btn:hover .btn-shimmer {
  animation: shimmer-sweep 1.8s infinite cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes shimmer-sweep {
  0% { left: -150%; }
  100% { left: 150%; }
}

/* Acessibilidade: Focus Ring */
.cta-btn:focus-visible {
  outline: 2px solid var(--color-green);
  outline-offset: 4px;
}

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

/* 11. RODAPÉ (FOOTER) */
.main-footer {
  width: 100%;
  max-width: 600px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 32px;
  margin-top: 40px;
}

.footer-tagline {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-gray-medium);
  line-height: 1.6;
  margin-bottom: 12px;
}

.footer-copyright {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.3);
}

.highlight-green {
  color: var(--color-green);
  font-weight: 600;
}

/* 12. ANIMAÇÕES DE ENTRADA SEQUENCIAIS (FADE UP / IN) */
.animate-element {
  opacity: 0;
  transition-property: opacity, transform;
  transition-duration: 0.8s;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-element.fade-up {
  transform: translateY(20px);
}

/* Gatilhos disparados pelo JS (.loaded) */
body.loaded .animate-element {
  opacity: 1;
}

body.loaded .animate-element.fade-up {
  transform: translateY(0);
}

/* Delays das animações baseados nos atributos de dados */
body.loaded [data-delay="1"] { transition-delay: 100ms; }
body.loaded [data-delay="2"] { transition-delay: 200ms; }
body.loaded [data-delay="3"] { transition-delay: 300ms; }
body.loaded [data-delay="4"] { transition-delay: 400ms; }
body.loaded [data-delay="5"] { transition-delay: 500ms; }
body.loaded [data-delay="6"] { transition-delay: 600ms; }
body.loaded [data-delay="7"] { transition-delay: 700ms; }

/* 13. MODAL DE CONTATO (GLASSMORPHISM) */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

/* Fundo desfocado escuro do Modal */
.modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1;
  cursor: pointer;
}

/* Container do Modal */
.modal-container {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: rgba(20, 20, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 40px;
  z-index: 2;
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.8),
    0 0 1px rgba(255, 255, 255, 0.1);
  transform: translateY(30px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.active .modal-container {
  transform: translateY(0);
}

/* Botão Fechar Modal */
.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--color-gray-medium);
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 
    color 0.2s ease,
    background-color 0.2s ease;
}

.modal-close-btn:hover {
  color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.05);
}

.modal-close-btn:focus-visible {
  outline: 2px solid var(--color-green);
  outline-offset: 2px;
}

/* Elementos Internos do Modal */
.modal-header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: rgba(183, 255, 60, 0.08);
  border: 1px solid rgba(183, 255, 60, 0.25);
  border-radius: 50%;
  margin-bottom: 24px;
}

.modal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-green);
  box-shadow: 0 0 6px var(--color-green);
}

.modal-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-white);
  margin-bottom: 16px;
}

.modal-description {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-gray-medium);
  margin-bottom: 32px;
}

/* Canais de Contato */
.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
}

.email-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.email-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-white);
  word-break: break-all;
}

/* Botão Copiar E-mail */
.copy-btn {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 3px;
  cursor: pointer;
  transition: 
    background-color 0.2s ease,
    border-color 0.2s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
}

.copy-icon-wrapper {
  display: flex;
  align-items: center;
  gap: 5px;
}

.copy-btn:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.copy-btn:focus-visible {
  outline: 2px solid var(--color-green);
  outline-offset: 2px;
}

/* Estados da Cópia (Feedback) */
.copied-feedback {
  display: none;
  color: var(--color-green);
  font-weight: 600;
}

.copy-btn.success {
  border-color: rgba(183, 255, 60, 0.3);
  background-color: rgba(183, 255, 60, 0.05);
}

.copy-btn.success #copy-normal-state {
  display: none;
}

.copy-btn.success #copy-success-state {
  display: block;
}

/* Responsividade Mobile do Modal */
@media (max-width: 480px) {
  .modal-container {
    padding: 30px 20px;
  }
}
