/* ------------------------------------
   LANÇAMENTO - REDESIGN MODULAR
------------------------------------ */

body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%; /* Força exatamente 1 dobra */
  overflow: hidden; /* Elimina rolagem */
  background-color: var(--c-white);
  font-family: 'Aeonik Pro', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Base do Layout */
.modular-layout {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* Logo Absoluta */
.logo-area {
  position: absolute;
  top: 4rem;
  left: 4rem;
  z-index: 20;
}
.official-logo {
  height: 40px;
  width: auto;
}
.pattern-pink {
  /* Fundo Rosa com Bolinhas Amarelas */
  background-color: var(--c-pink, #FFC2E2);
  background-image: radial-gradient(var(--c-yellow, #F9E547) 3px, transparent 4px);
  background-size: 24px 24px;
  background-position: calc(50% - 12px) top; /* Alinha a malha do grid perfeitamente no centro (50%), onde o card azul começa */
}

/* Texto Sólido Gigante no Fundo Direito */
.huge-background-text {
  position: absolute;
  top: -4%;
  left: -2%; /* Vaza para a área branca levemente */
  font-size: 26vw;
  line-height: 0.8;
  font-family: var(--font-display);
  font-weight: normal !important; /* Força peso único */
  text-transform: uppercase;
  color: var(--c-white);
  z-index: 1; /* Atrás do bloco vermelho */
  pointer-events: none;
  white-space: nowrap;
}

/* BLOCO FLUTUANTE (SOBREPOSTO) */
.action-block-overlay {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 50%;
  min-width: 450px;
  height: auto; /* Altura compacta, envolve o conteúdo */
  background-color: var(--c-red, #E63836);
  z-index: 10;
  padding: 3rem 3rem 2rem 3rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Bloco de Sucesso (Página de Obrigado) */
.action-block-overlay.success-overlay {
  background-color: var(--c-blue);
}
.action-block-overlay.success-overlay .action-title,
.action-block-overlay.success-overlay .action-text {
  color: var(--c-white) !important;
}

/* Tipografia dentro do Bloco */
.action-title {
  font-family: var(--font-display);
  font-size: 3rem; /* Tamanho levemente menor para o card compacto */
  font-weight: normal !important; /* Garante que o navegador não force negrito em <h1> */
  color: var(--c-white) !important; /* Sobrescreve o !important do wireframe-theme.css */
  line-height: 0.95;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  text-wrap: balance;
}

.action-text {
  font-size: 1.1rem;
  color: var(--c-white);
  line-height: 1.5;
  margin-bottom: 0.75rem;
  font-weight: 500;
  max-width: 85%;
  text-wrap: pretty;
}

.action-text:last-of-type {
  margin-bottom: 2.5rem;
}

/* Formulário Brutalista dentro do bloco */
.action-form {
  display: flex;
  align-items: stretch;
  gap: 0;
  height: 56px; /* Altura mais elegante e menos gritante */
  width: 100%;
}

.input-wrapper {
  flex-grow: 1;
  display: flex;
  align-items: center;
  background-color: var(--c-white);
  border: 3px solid var(--c-white);
  border-right: none;
  padding-left: 1.15rem; /* Ajuste óptico: mesmo padding do visual superior/inferior (caixa 56px) */
}
.input-wrapper .iconify {
  font-size: 1.25rem;
  color: var(--c-black);
  opacity: 0.4;
}

.action-input {
  flex-grow: 1;
  background-color: transparent;
  border: none;
  padding: 0 0.75rem;
  font-size: 1rem;
  color: var(--c-black);
  font-weight: 500;
  font-family: inherit;
  outline: none;
  height: 100%;
}
.action-input::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

.action-btn {
  background-color: var(--c-black);
  border: 3px solid var(--c-black);
  border-left: none;
  color: var(--c-white);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 1.15rem 0 1.5rem; /* Ajuste óptico: padding direito igual ao visual superior/inferior para emoldurar a seta perfeitamente */
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.1s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border-radius: 0;
}
.action-btn:hover {
  background-color: var(--c-pink);
  color: var(--c-black);
  border-color: var(--c-pink);
}
.action-btn:active {
  transform: scale(0.96);
}

/* Aviso de Dados Seguros */
.safe-data-notice {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-family: var(--font-body);
}
.safe-data-notice .iconify {
  font-size: 1.1rem;
}

/* Selo Giratório Ajustes */
.spinning-badge.black-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  width: 140px;
  height: 140px;
  color: var(--c-black);
  z-index: 5;
}
.spinning-badge svg.badge-text {
  animation: spin 20s linear infinite;
  display: block;
}
@keyframes spin {
  100% { transform: rotate(360deg); }
}
.badge-center-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 3.5rem;
  height: 3.5rem;
  background-color: var(--c-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.arrow-rotator {
  transition: opacity 250ms cubic-bezier(0.23, 1, 0.32, 1), filter 250ms ease;
  color: var(--c-white);
  font-size: 1.5rem;
}
.badge-center-circle:hover .arrow-rotator,
.spinning-badge.active .arrow-rotator {
  opacity: 0;
  filter: blur(4px);
}

.badge-emoji {
  position: absolute;
  font-size: 1.5rem;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 250ms cubic-bezier(0.23, 1, 0.32, 1), transform 250ms cubic-bezier(0.23, 1, 0.32, 1), filter 250ms ease;
  pointer-events: none;
  filter: blur(4px);
}
.badge-center-circle:hover .badge-emoji,
.spinning-badge.active .badge-emoji {
  opacity: 1;
  transform: scale(1);
  filter: blur(0px);
}

/* =========================================================================
   CUSTOM CURSOR
   ========================================================================= */
/* Esconde o cursor padrão do SO para quase tudo */
html, body, a, button {
  cursor: none !important; 
}
/* Retorna o cursor padrão apenas para campos de texto */
input, textarea {
  cursor: text !important;
}

.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 32px; height: 32px;
  margin-left: -16px; margin-top: -16px;
  background-color: var(--c-white);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: difference;
  opacity: 0; 
  transition: opacity 250ms ease;
}

.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 120px; height: 120px;
  /* Centraliza no cursor */
  margin-left: -60px; margin-top: -60px;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 250ms ease;
  opacity: 0; 
}
.cursor-ring-svg {
  animation: spin 10s linear infinite;
  display: block;
}

/* =========================================================================
   ANIMAÇÕES DE ENTRADA (REVEAL)
   ========================================================================= */

.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-left {
  opacity: 0;
  transform: translateX(40px);
  animation: slideLeftFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  animation: scaleUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Stagger Delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }

@keyframes slideUpFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideLeftFade {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleUpFade {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* RESPONSIVIDADE BÁSICA E MOBILE */
@media (max-width: 1024px) {
  html, body {
    height: auto !important;
    min-height: 0 !important;
    overflow: auto !important;
    overflow-x: hidden !important;
  }
  .modular-layout {
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .logo-area { top: 2rem; left: 2rem; display: inline-block; position: relative; margin-bottom: 2rem; }
  .spinning-badge.black-badge { position: relative; margin: 2rem; align-self: flex-start; }
  .action-block-overlay {
    position: relative;
    width: 100%;
    min-width: unset;
    height: auto;
    right: 0;
    bottom: 0;
    padding: 2.5rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .logo-area {
    margin: 16rem 2rem 2rem 2rem;
    padding: 0;
    left: 0;
    top: 0;
    background-color: transparent;
    width: auto;
    display: block;
    order: 2;
  }
  .official-logo {
    max-width: 50vw;
    height: auto;
  }
  .huge-background-text {
    position: absolute;
    top: 0; 
    left: -1vw;
    width: 102vw;
    font-size: 28vw;
    line-height: 0.85;
    white-space: nowrap;
    opacity: 0.8;
    z-index: 0; 
  }
  .spinning-badge.black-badge {
    position: absolute;
    top: calc(17vw + 22px); 
    right: 8vw;
    left: auto;
    bottom: auto;
    margin: 0;
    z-index: 10;
    width: 90px;
    height: 90px;
  }
  .action-block-overlay {
    margin-top: 0;
    padding: 3rem 2rem;
    position: relative;
    z-index: 10;
    order: 3;
  }
  
  .action-title {
    font-size: 2.25rem;
  }
  .action-text {
    font-size: 1rem;
    max-width: 100%;
  }
  
  .action-form {
    flex-direction: column;
    height: auto;
    gap: 0.75rem;
  }
  .input-wrapper {
    height: 56px;
    border-right: 3px solid var(--c-white);
  }
  .action-btn {
    height: 56px;
    border-left: 3px solid var(--c-black);
    justify-content: space-between;
  }
  
  /* Esconder cursor customizado em telas touch/mobile */
  .cursor-dot, .cursor-ring {
    display: none !important;
  }
  
  /* Restaurar cursor nativo */
  html, body, a, button, input {
    cursor: auto !important; 
  }
}
