/* ==========================================================================
   DESIGN SYSTEM: SYNC COMING SOON
   REPRODUÇÃO 100% FIEL À IMAGEM 2 (MODELO EXEMPLO ORIGINAL)
   ========================================================================== */
:root {
  /* Paleta Exata da Imagem 2 */
  --color-pine-green: #1a6845;
  --color-emerald-deep: #22784e;
  --color-emerald-light: #288c5c;
  --color-navy-deep: #060a18;
  --color-navy-dark: #080d22;

  --color-text-primary: #FFFFFF;
  --color-text-secondary: rgba(255, 255, 255, 0.85);
  --color-input-border: rgba(255, 255, 255, 0.45);
  --color-checkbox-border: rgba(255, 255, 255, 0.45);
  --color-btn-bg: #FFFFFF;
  --color-btn-text: #060a18;

  --color-error: #FF6B6B;
  --color-success: #38EF7D;

  --font-base: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --transition-fast: 0.18s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100%;
  font-family: var(--font-base);
  color: var(--color-text-primary);
  background-color: var(--color-navy-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   BACKGROUND DINÂMICO COM ÁPICE EM (48% 34%) FIEL À IMAGEM 2
   ========================================================================== */
.ambient-background {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background-color: var(--color-navy-deep);
}

/* 
 * Ponto de ancoragem fixo posicionado exatamente na altura da Imagem 2:
 * top: 34%; left: 48%; (entre o final de 'Coming' e o início de 'Soon')
 */
.prism-anchor {
  position: absolute;
  top: 34%;
  left: 48%;
  width: 0;
  height: 0;
}

/* 
 * O disco gigante rotativo:
 * No início (0s), a linha nítida corta de (48% 34%) em direção a (100% 38%),
 * deixando a metade superior em Verde Esmeralda/Pinheiro e a inferior em Azul Noturno.
 */
.rotating-prism {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320vmax;
  height: 320vmax;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: conic-gradient(
    from 94deg,
    #060a18 0deg,
    #060a18 95deg,
    rgba(6, 10, 24, 0.85) 120deg,
    rgba(26, 104, 69, 0.45) 150deg,
    var(--color-pine-green) 180deg,
    var(--color-emerald-light) 270deg,
    var(--color-emerald-deep) 359.85deg,
    #060a18 360deg
  );
  animation: sweepPrism 16s linear infinite;
  transform-origin: center center;
  will-change: transform;
}

@keyframes sweepPrism {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rotating-prism,
  .react-rotating-prism {
    animation: none !important;
  }
}

/* Iluminação ambiente suave no topo */
.top-ambient-glow {
  position: absolute;
  top: -15%;
  left: 20%;
  width: 60vw;
  height: 50vh;
  background: radial-gradient(circle, rgba(40, 140, 92, 0.25) 0%, transparent 70%);
  filter: blur(60px);
}

/* ==========================================================================
   PAGE CONTAINER & LAYOUT
   ========================================================================== */
.page-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: 42px 110px;
}

@media (min-width: 1440px) {
  .page-container {
    padding: 48px 130px;
  }
}

@media (max-width: 1024px) {
  .page-container {
    padding: 32px 60px;
  }
}

@media (max-width: 640px) {
  .page-container {
    padding: 24px 28px;
  }
}

/* ==========================================================================
   HEADER / NAVBAR (COM "WE'RE ALMOST THERE" NO TOPO ESQUERDO)
   ========================================================================== */
.header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  animation: fadeInDown 0.7s var(--transition-smooth) both;
}

.brand-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.eyebrow {
  display: block;
  font-family: var(--font-base);
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--color-text-secondary);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--color-text-primary);
  user-select: none;
  cursor: default; /* Sem link */
}

/* ==========================================================================
   CUBO TRIDIMENSIONAL TRANSPARENTE (3D GLASS CUBE)
   ========================================================================== */
.cube-scene {
  width: 26px;
  height: 26px;
  perspective: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cube {
  width: 20px;
  height: 20px;
  position: relative;
  transform-style: preserve-3d;
  /* Ângulo isométrico de repouso para visão 3D natural */
  transform: rotateX(-22deg) rotateY(32deg);
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Faces transparentes do cubo */
.cube-face {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  background-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(1.5px);
  box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.15);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

/* Posicionamento das 6 faces (10px = metade de 20px) */
.cube-front  { transform: translateZ(10px); }
.cube-back   { transform: rotateY(180deg) translateZ(10px); }
.cube-right  { transform: rotateY(90deg) translateZ(10px); }
.cube-left   { transform: rotateY(-90deg) translateZ(10px); }
.cube-top    { transform: rotateX(90deg) translateZ(10px); }
.cube-bottom { transform: rotateX(-90deg) translateZ(10px); }

/* Rotação 360° suave ao passar o mouse ou o dedo */
.cube-scene:hover .cube,
.cube-scene:active .cube,
.cube.spinning {
  transform: rotateX(338deg) rotateY(392deg);
}

.cube-scene:hover .cube-face,
.cube-scene:active .cube-face,
.cube.spinning .cube-face {
  border-color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.45), inset 0 0 6px rgba(255, 255, 255, 0.3);
}

.brand-name {
  font-family: var(--font-base);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.nav-desktop {
  display: block;
  padding-top: 4px;
}

.nav-link {
  font-family: var(--font-base);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  opacity: 0.95;
  transition: opacity var(--transition-fast);
}

.nav-link:hover {
  opacity: 1;
  text-decoration-thickness: 1.5px;
}

/* Botão Mobile Hambúrguer */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  z-index: 10;
}

.hamburger-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text-primary);
  border-radius: 2px;
  transition: transform var(--transition-normal);
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: flex; }
}

/* ==========================================================================
   DRAWER MOBILE EM TELA CHEIA
   ========================================================================== */
.mobile-drawer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: #FFFFFF;
  color: #111827;
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.mobile-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-header {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #111827;
}

.drawer-close:hover {
  transform: rotate(90deg);
}

.mobile-nav-links {
  margin-top: 50px;
}

.mobile-nav-item {
  font-family: var(--font-base);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: #111827;
  padding: 12px 0;
  display: inline-block;
}

/* ==========================================================================
   HERO / CONTEÚDO PRINCIPAL (ESCALA MAIOR CONFORME IMAGEM 2)
   ========================================================================== */
.main-content {
  display: flex;
  align-items: center;
  flex: 1;
  width: 100%;
  padding: 18px 0;
}

.hero-wrapper {
  max-width: 620px;
  animation: fadeInUp 0.8s var(--transition-smooth) both;
  animation-delay: 0.15s;
}

/* Título Coming Soon com escala imponente e tipografia Light 300 */
.hero-title {
  display: flex;
  flex-direction: column;
  font-family: var(--font-base);
  font-size: clamp(4.2rem, 9.4vw, 8.4rem);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin-top: 10px;
  margin-bottom: 24px;
}

.hero-description {
  font-family: var(--font-base);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 440px;
  margin-bottom: 32px;
}

/* ==========================================================================
   FORMULÁRIO DE CAPTURA
   ========================================================================== */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 500px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-family: var(--font-base);
  font-size: 13.5px;
  font-weight: 400;
  color: var(--color-text-secondary);
}

.input-container {
  position: relative;
  width: 100%;
}

.form-input {
  width: 100%;
  height: 50px;
  padding: 0 24px;
  border-radius: 9999px;
  background-color: transparent;
  border: 1.5px solid var(--color-input-border);
  color: #FFFFFF;
  font-family: var(--font-base);
  font-size: 15px;
  outline: none;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.form-input:hover {
  border-color: rgba(255, 255, 255, 0.8);
}

.form-input:focus {
  border-color: #FFFFFF;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.04);
}

.form-input.has-error {
  border-color: var(--color-error);
  box-shadow: 0 0 12px rgba(255, 107, 107, 0.3);
}

.error-message {
  font-family: var(--font-base);
  font-size: 12.5px;
  color: var(--color-error);
  min-height: 18px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.error-message.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Linha de Ações: Checkbox e Botão */
.form-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.checkbox-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 250px;
}

.custom-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.custom-checkbox-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-box {
  width: 17px;
  height: 17px;
  border-radius: 2px;
  border: 1.5px solid var(--color-checkbox-border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.custom-checkbox-label:hover .checkbox-box {
  border-color: #FFFFFF;
}

.custom-checkbox-input:checked + .checkbox-box {
  background-color: #FFFFFF;
  border-color: #FFFFFF;
}

.check-icon {
  width: 11px;
  height: 11px;
  color: var(--color-btn-text);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.custom-checkbox-input:checked + .checkbox-box .check-icon {
  opacity: 1;
  transform: scale(1);
}

.checkbox-text {
  font-family: var(--font-base);
  font-size: 13.5px;
  color: var(--color-text-secondary);
}

/* Botão Sign Up - Pílula Compacta Branca */
.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 38px;
  border-radius: 9999px;
  background-color: var(--color-btn-bg);
  color: var(--color-btn-text);
  font-family: var(--font-base);
  font-size: 14.5px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: transform var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.submit-btn:hover {
  background-color: #F1F5F9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(6, 10, 24, 0.25);
  border-top-color: var(--color-btn-text);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 8px;
}

.submit-btn.loading .spinner {
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-success-banner {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 12px;
  background: rgba(56, 239, 125, 0.15);
  border: 1px solid rgba(56, 239, 125, 0.4);
  color: #EAFFF3;
  font-family: var(--font-base);
  font-size: 14px;
}

.form-success-banner.visible {
  display: flex;
}

.form-success-banner svg {
  color: var(--color-success);
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .form-actions-row {
    flex-direction: column;
    align-items: stretch;
  }
  .submit-btn {
    width: 100%;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 20px;
  gap: 20px;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s var(--transition-smooth) both;
  animation-delay: 0.25s;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.footer-link {
  font-family: var(--font-base);
  font-size: 13.5px;
  font-weight: 400;
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  opacity: 0.9;
  transition: opacity var(--transition-fast);
}

.footer-link:hover {
  opacity: 1;
}

.footer-copyright {
  font-family: var(--font-base);
  font-size: 13.5px;
  font-weight: 400;
  color: var(--color-text-secondary);
}

.footer-logo-link {
  display: block;
  width: clamp(190px, 20vw, 270px);
  flex-shrink: 0;
  line-height: 0;
  opacity: 0.72;
  transition: opacity var(--transition-fast);
}

.footer-logo-link:hover {
  opacity: 1;
}

.footer-logo {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .footer {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
  }
  .footer-links {
    justify-content: center;
    gap: 16px;
    width: 100%;
  }
  .footer-copyright {
    font-size: 12px;
    line-height: 1.5;
  }
  .footer-logo-link {
    width: min(190px, 60vw);
    align-self: center;
  }
}

/* ==========================================================================
   MODAL DE INFORMAÇÕES
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(6, 10, 24, 0.78);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

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

.modal-card {
  position: relative;
  background: #060a18;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  padding: 36px;
  color: #FFFFFF;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  transform: scale(0.96);
  transition: transform var(--transition-smooth);
}

.modal-backdrop.open .modal-card {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 6px;
}

.modal-close:hover {
  color: #FFFFFF;
  transform: rotate(90deg);
}

.modal-title {
  font-family: var(--font-base);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 18px;
}

.modal-body {
  font-family: var(--font-base);
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.modal-body p {
  margin-bottom: 14px;
}

/* Animações de Entrada */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: translateY(0); }
}
