/* Estilos Globais e Estrutura — EcoAds V2 (Versão Corporativa Premium) */

@import './variables.css';

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--dark-bg-primary);
  color: var(--dark-text-primary);
  font-family: var(--font-body);
}

body {
  min-height: 100vh;
  background-color: var(--dark-bg-primary);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar Customizada Premium */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #030303;
}
::-webkit-scrollbar-thumb {
  background: #222222;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #444444;
}

/* Tipografia de Precisão */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* Container Central */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================
   ANIMAÇÕES E EFEITOS TECNOLÓGICOS (AURA STYLE)
   ========================================== */
@keyframes revealUp {
  0% { opacity: 0; transform: translateY(20px); filter: blur(3px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes wordReveal {
  0% { opacity: 0; transform: translateY(8px); filter: blur(3px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes dashboardEnter {
  0% { opacity: 0; transform: translateY(30px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes subtle-pulse {
  0%, 100% { opacity: 0.3; transform: scale(1) translate(-50%, -20%); }
  50% { opacity: 0.55; transform: scale(1.04) translate(-50%, -18%); }
}

@keyframes slow-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes drift-horizontal {
  0% { transform: translateX(-5%) translateY(0); opacity: 0.2; }
  50% { transform: translateX(5%) translateY(1%); opacity: 0.35; }
  100% { transform: translateX(-5%) translateY(0); opacity: 0.2; }
}

@keyframes scanLineAnim {
  0% { left: 0%; opacity: 0.2; }
  5% { opacity: 1; }
  95% { opacity: 1; }
  100% { left: 100%; opacity: 0.2; }
}

/* Classes de Animação Utilitárias */
.animate-reveal {
  animation: revealUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  will-change: transform, opacity, filter;
}

.animate-word {
  animation: wordReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  display: inline-block;
  will-change: transform, opacity, filter;
}

.animate-dashboard-entry {
  animation: dashboardEnter 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  opacity: 0;
  will-change: transform, opacity;
}

/* Delays de Animação */
.delay-0 { animation-delay: 0ms; }
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-600 { animation-delay: 600ms; }
.delay-900 { animation-delay: 900ms; }

/* ==========================================
   AMBIENTES DE BACKGROUND (ATMOSPHERE)
   ========================================== */
.bg-atmosphere {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -10;
  overflow: hidden;
  background-color: #030303;
}

.glow-top-beam {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 120vw;
  height: 80vh;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: subtle-pulse 10s ease-in-out infinite;
}

.interference-conic {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(0, 255, 102, 0.01) 60deg, transparent 120deg);
  opacity: 0.3;
  pointer-events: none;
  animation: slow-rotate 120s linear infinite;
}

.interference-conic-reverse {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(0, 229, 255, 0.008) 60deg, transparent 120deg);
  opacity: 0.2;
  pointer-events: none;
  animation: slow-rotate 150s linear infinite reverse;
}

.glow-lower-streak {
  position: absolute;
  bottom: 10%;
  left: -20%;
  width: 140%;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(0, 229, 255, 0.01) 0%, transparent 70%);
  animation: drift-horizontal 20s ease-in-out infinite;
  transform: rotate(-5deg);
  pointer-events: none;
}

.vignette-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, #030303 100%);
  pointer-events: none;
}

/* ==========================================
   BOTÕES DE ALTA INOVAÇÃO (NEON GLASS)
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 12px;
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  gap: 8px;
}

.btn-primary {
  background: rgba(10, 10, 10, 0.8);
  color: #ffffff;
  border: 1px solid rgba(0, 255, 102, 0.45);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.5),
    0 0 15px rgba(0, 255, 102, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn-primary:hover {
  background: rgba(0, 255, 102, 0.08);
  color: var(--brand-green-accent);
  border-color: var(--brand-green-accent);
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.6),
    0 0 25px rgba(0, 255, 102, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

/* ==========================================
   CARROSSEL DE LOGOS — CLIENTES
   ========================================== */
.clients-section {
  background: #ffffff;
  padding: 36px 0 40px;
  border-top: 1px solid #f0f3f0;
  border-bottom: 1px solid #f0f3f0;
  overflow: hidden;
}

.clients-label {
  text-align: center;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #7a9a7a;
  margin-bottom: 28px;
  font-weight: 600;
}

.clients-track-wrapper {
  overflow: hidden;
  position: relative;
}

.clients-track-wrapper::before,
.clients-track-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}
.clients-track-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #fff 30%, transparent);
}
.clients-track-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #fff 30%, transparent);
}

.clients-track {
  display: flex;
  align-items: center;
  gap: 72px;
  width: max-content;
  animation: clients-marquee 36s linear infinite;
  padding: 0 40px;
  /* sem pausa no hover — carrossel nunca para */
}

@keyframes clients-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.333%); }
}

.client-logo {
  height: 60px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  opacity: 0.82;
  filter: grayscale(0%);
  transition: opacity 0.25s;
  flex-shrink: 0;
}

.client-logo:hover {
  opacity: 1;
}

/* ==========================================
   CARDS E COMPONENTES GLASSMORPHISM
   ========================================== */
.service-card, .app-card, .tool-card, .contact-card, .testimonial-card {
  padding: 32px;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  transition: var(--transition-smooth);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.service-card:hover, .app-card:hover, .tool-card:hover, .testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.7),
    0 0 30px rgba(255, 255, 255, 0.03);
}

/* Glow específico de hover para produtos */
#card-app-leafbook:hover {
  border-color: rgba(0, 255, 102, 0.25);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.7),
    0 0 30px rgba(0, 255, 102, 0.08);
}

#card-app-leaftag:hover {
  border-color: rgba(0, 229, 255, 0.25);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.7),
    0 0 30px rgba(0, 229, 255, 0.08);
}

.service-icon-wrapper {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-green-accent);
  margin-bottom: 24px;
}

/* ==========================================
   HEADER / MENU DE NAVEGAÇÃO FLUTUANTE
   ========================================== */
.main-header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: var(--max-width);
  height: 60px;
  z-index: 1000;
  /* Liquid glass — translúcido com tint verde escuro */
  background: rgba(12, 20, 12, 0.50);
  backdrop-filter: blur(28px) saturate(190%) brightness(1.06);
  -webkit-backdrop-filter: blur(28px) saturate(190%) brightness(1.06);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-bottom-color: rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.22),
    0 12px 40px rgba(0, 0, 0, 0.16),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.20),
    inset 0 -1px 0 rgba(0, 255, 102, 0.06);
  transition:
    top 0.50s cubic-bezier(0.25, 1, 0.5, 1),
    height 0.50s cubic-bezier(0.25, 1, 0.5, 1),
    width 0.50s cubic-bezier(0.25, 1, 0.5, 1),
    background 0.40s ease,
    box-shadow 0.40s ease,
    border-color 0.40s ease;
  display: flex;
  align-items: center;
  will-change: width, height;
}

.main-header.scrolled {
  top: 10px;
  height: 52px;
  background: rgba(8, 16, 8, 0.65);
  border-color: rgba(255, 255, 255, 0.16);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  box-shadow:
    0 6px 28px rgba(0, 0, 0, 0.30),
    0 18px 56px rgba(0, 0, 0, 0.20),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 255, 102, 0.08);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 20px;
  height: 100%;
  position: relative;
}

.header-logo-link {
  display: flex;
  align-items: center;
}

.header-logo-img {
  height: 22px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
}

.nav-hover-pill {
  position: absolute;
  height: 30px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 30px;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition:
    left 0.35s cubic-bezier(0.25, 1, 0.5, 1),
    width 0.35s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.25s ease;
}

.nav-link {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.82);
  padding: 6px 14px;
  border-radius: 30px;
  transition: var(--transition-fast);
  display: inline-block;
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-green-accent);
}

.nav-badge-new {
  display: inline-block;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #030303;
  background: var(--brand-green-accent);
  padding: 2px 5px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 5px;
  line-height: 1.5;
  position: relative;
  top: -1px;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 18px;
  border-radius: 50px;
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(0, 255, 102, 0.45);
  box-shadow: 0 0 14px rgba(0, 255, 102, 0.10);
  transition: var(--transition-smooth);
}

.header-cta:hover {
  background: rgba(0, 255, 102, 0.10);
  border-color: var(--brand-green-accent);
  color: var(--brand-green-accent) !important;
  box-shadow: 0 0 28px rgba(0, 255, 102, 0.26);
  transform: scale(1.02);
}

.header-cta-mobile {
  display: none !important;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
  opacity: 1;
  transition: opacity 0.30s ease, transform 0.38s cubic-bezier(0.25, 1, 0.5, 1);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background-color: rgba(255, 255, 255, 0.82);
  transition: var(--transition-smooth);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ==========================================
   SEÇÕES DA PÁGINA
   ========================================== */
.section-padding {
  padding: 120px 0;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}

.section-subtitle {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brand-green-accent);
  font-weight: 500;
  margin-bottom: 16px;
  display: block;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--dark-text-secondary);
}

/* ==========================================
   WOOD RINGS CANVAS BACKGROUND & HERO
   ========================================== */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 6; /* acima de #servicos-dobra-clara (z-index:5) */
}

/* Container do hero centralizado com compensação do header fixo */
.hero-center-container {
  padding-top: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Scroll Hint — banner que espia da base para convidar à rolagem */
.hero-scroll-hint {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 0 24px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(100%);
  animation: heroScrollPeek 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 2.5s;
}

.hero-scroll-hint .conversion-banner-wrapper {
  margin: 0 auto;
  pointer-events: none;
}

@keyframes heroScrollPeek {
  from { opacity: 0; transform: translateY(100%); }
  to   { opacity: 0.92; transform: translateY(56%); }
}

@keyframes heroScrollPeekMobile {
  from { opacity: 0; transform: translateY(100%); }
  to   { opacity: 0.92; transform: translateY(91%); }
}

@media (max-width: 768px) {
  .hero-scroll-hint {
    animation-name: heroScrollPeekMobile;
  }
}

#hero-growth-rings-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto; /* Para mouseover */
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 30%, #030303 95%);
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
  pointer-events: none; /* Deixar passar cliques para o canvas */
}

/* Permitir eventos de ponteiro nos elementos interativos do hero */
.hero-badge-container, .hero-title, .hero-subtitle, .hero-actions, .dashboard-wrapper {
  pointer-events: auto;
}

.hero-badge-container {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

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

.hero-badge-text {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 500;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 24px;
}

.hero-title span {
  color: var(--brand-green-accent);
}

.hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--dark-text-secondary);
  max-width: 620px;
  margin: 0 auto 40px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Seta de scroll — visível só no mobile, substitui os botões do hero */
.hero-scroll-down {
  display: none;
}

@media (max-width: 768px) {
  .hero-actions {
    display: none;
  }

  .hero-scroll-down {
    display: flex;
    justify-content: center;
    margin-top: 28px;
    color: rgba(0, 255, 102, 0.65);
    animation: scrollDownBounce 1.9s ease-in-out infinite;
    pointer-events: none;
  }
}

@keyframes scrollDownBounce {
  0%, 100% { transform: translateY(0);   opacity: 0.55; }
  50%       { transform: translateY(9px); opacity: 1;    }
}

/* ==========================================
   PAINEL GEOTECNOLÓGICO (INTERACTIVE DASHBOARD)
   ========================================== */
.conversion-banner-wrapper {
  max-width: 1000px;
  margin: 64px auto 0;
  position: relative;
  z-index: 10;
}

.conversion-banner-glow {
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle at 50% 100%, rgba(0, 255, 102, 0.04) 0%, transparent 60%);
  filter: blur(20px);
  pointer-events: none;
}

.conversion-banner-container {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 8, 8, 0.85);
  backdrop-filter: blur(20px);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  text-align: left;
}

.conversion-banner-header {
  height: 38px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  padding: 0 20px;
  justify-content: space-between;
}

.conversion-banner-dots {
  display: flex;
  gap: 6px;
}

.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.banner-dot.dot-green { background-color: var(--brand-green-accent); }
.banner-dot.dot-blue { background-color: var(--brand-blue-accent); }
.banner-dot.dot-yellow { background-color: var(--brand-yellow); }

.conversion-banner-tag {
  font-size: 0.68rem;
  font-family: var(--font-body);
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.conversion-banner-status {
  font-size: 0.65rem;
  font-family: var(--font-title);
  color: var(--brand-green-accent);
  letter-spacing: 0.05em;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.conversion-banner-status::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--brand-green-accent);
  box-shadow: 0 0 6px var(--brand-green-accent);
}

.conversion-banner-content {
  padding: 32px 40px;
}

.conversion-headline {
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.4;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.conversion-headline span {
  color: var(--brand-green-accent);
}

.conversion-subheadline {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--dark-text-secondary);
  margin-bottom: 0;
  max-width: 820px;
}

/* ==========================================
   PARTNERS SECTION
   ========================================== */
.partners-section {
  padding: 40px 0;
  background-color: rgba(10, 10, 10, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.partners-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 24px;
  font-weight: 500;
}

.partners-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 64px;
  flex-wrap: wrap;
}

.partner-logo {
  height: 32px;
  width: auto;
  opacity: 0.3;
  filter: grayscale(1) brightness(2);
  transition: var(--transition-fast);
}

.partner-logo:hover {
  opacity: 0.8;
  filter: grayscale(0) brightness(1);
}

/* ==========================================
   SERVIÇOS EM GRID (TEMA ESCURO PADRÃO E TEMA CLARO ADAPTADO)
   ========================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-title {
  font-size: 1.15rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 12px;
}

.service-text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--dark-text-secondary);
}

/* ==========================================
   DOBRA DE SOLUÇÕES (SERVIÇOS) — TEMA CLARO
   ========================================== */
#servicos-dobra-clara {
  background-color: #f6f8f6;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  color: #111111;
  position: relative;
  z-index: 5;
  border-radius: 24px 24px 0 0;
}

/* Botão secundário dentro da dobra clara */
#servicos-dobra-clara .btn-secondary {
  color: #111;
  border-color: rgba(0, 0, 0, 0.18);
  background: transparent;
}
#servicos-dobra-clara .btn-secondary:hover {
  color: #000;
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.35);
  box-shadow: none;
}

#servicos-dobra-clara .section-subtitle {
  color: #009c3b; /* Verde nacional florestal */
}

#servicos-dobra-clara .section-title {
  color: #050505;
}

#servicos-dobra-clara .section-desc {
  color: #444444;
}

#servicos-dobra-clara .service-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.02);
}

#servicos-dobra-clara .service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 255, 102, 0.3);
  box-shadow: 
    0 15px 30px rgba(0, 255, 102, 0.04),
    0 0 20px rgba(0, 255, 102, 0.02);
}

#servicos-dobra-clara .service-title {
  color: #050505;
}

#servicos-dobra-clara .service-text {
  color: #444444;
}

#servicos-dobra-clara .service-icon-wrapper {
  background: rgba(0, 156, 59, 0.06);
  border: 1px solid rgba(0, 156, 59, 0.1);
  color: #009c3b;
}

/* ==========================================
   APLICATIVOS E VALOR (STATS)
   ========================================== */
#apps-dobra-escura .container,
#apps-sistemas-hero .container {
  max-width: 1400px;
}

.apps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}

.app-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 500;
  width: fit-content;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
}

.app-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--brand-green-accent);
  box-shadow: 0 0 6px var(--brand-green-accent);
}

.app-card-title {
  font-size: 1.5rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 12px;
}

.app-card-desc {
  font-size: 0.92rem;
  color: var(--dark-text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.app-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.app-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--dark-text-secondary);
}

.app-features-list svg {
  color: var(--brand-green-accent);
  flex-shrink: 0;
}

.app-price-tag {
  font-size: 1.25rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 24px;
}

.app-price-tag span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  display: block;
  font-weight: 400;
  margin-top: 4px;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 64px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 300;
  color: #ffffff;
  font-family: var(--font-title);
  margin-bottom: 4px;
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 4px;
}

.stat-desc {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ==========================================
   INTEGRAÇÕES
   ========================================== */
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 32px 40px;
  align-items: center;
  justify-items: center;
  padding: 24px 0;
}

.integration-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(255, 255, 255, 0.4);
  transition: var(--transition-fast);
  cursor: default;
}

.integration-item:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.integration-item span {
  font-size: 0.65rem;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0;
  transition: var(--transition-fast);
}

.integration-item:hover span {
  opacity: 0.6;
}

/* ==========================================
   TESTEMUNHOS
   ========================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  height: 100%;
}

.testimonial-quote-icon {
  color: rgba(255, 255, 255, 0.15);
  margin-bottom: 24px;
}

.testimonial-text {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--dark-text-secondary);
  margin-bottom: 24px;
  flex: 1;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar-initials {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: #ffffff;
}

.user-name {
  font-size: 0.82rem;
  font-weight: 500;
  color: #ffffff;
}

.user-role {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ==========================================
   TESTEMUNHOS — TEMA CLARO
   ========================================== */
#testimonials-section {
  background-color: #f6f8f6;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 5;
}

#testimonials-section .section-subtitle { color: #009c3b; }
#testimonials-section .section-title { color: #050505; }
#testimonials-section .section-desc { color: #555555; }

#testimonials-section .testimonial-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

#testimonials-section .testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 156, 59, 0.2);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.08);
}

#testimonials-section .testimonial-quote-icon { color: rgba(0, 0, 0, 0.12); }
#testimonials-section .testimonial-text { color: #444444; }
#testimonials-section .user-name { color: #111111; }
#testimonials-section .user-role { color: #777777; }

#testimonials-section .user-avatar-initials {
  background: rgba(0, 156, 59, 0.08);
  border: 1px solid rgba(0, 156, 59, 0.15);
  color: #009c3b;
  font-weight: 600;
}

/* ==========================================
   TABELA DE PREÇOS (PRICING)
   ========================================== */
.pricing-toggle-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.toggle-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition-fast);
}

.toggle-label.active {
  color: #ffffff;
  font-weight: 500;
}

.pricing-toggle-btn {
  position: relative;
  display: inline-flex;
  height: 28px;
  width: 54px;
  align-items: center;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  padding: 3px;
  transition: var(--transition-fast);
}

.pricing-toggle-knob {
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.pricing-toggle-btn.active .pricing-toggle-knob {
  transform: translateX(26px);
  background: var(--brand-green-accent);
}

.badge-discount {
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 100px;
  background: rgba(255, 211, 0, 0.1);
  border: 1px solid rgba(255, 211, 0, 0.2);
  color: var(--brand-yellow);
  margin-left: 8px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pricing-card {
  padding: 32px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Destaque para o plano Pro (Featured) */
.pricing-card.featured {
  border-color: rgba(0, 255, 102, 0.25);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%), rgba(10, 10, 10, 0.8);
}

.pricing-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-green-accent), var(--brand-blue-accent));
}

.pricing-card-header {
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.plan-name {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.plan-price {
  font-size: 2.25rem;
  font-weight: 400;
  color: #ffffff;
  margin-top: 8px;
  display: flex;
  align-items: baseline;
  font-family: var(--font-title);
}

.plan-period {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  margin-left: 4px;
}

.badge-featured {
  font-size: 0.65rem;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(0, 255, 102, 0.08);
  border: 1px solid rgba(0, 255, 102, 0.2);
  color: var(--brand-green-accent);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  margin-bottom: 32px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--dark-text-secondary);
}

.pricing-features svg {
  color: var(--brand-green-accent);
  flex-shrink: 0;
}

/* ==========================================
   CONTATO / CTA FINAL
   ========================================== */
.final-cta-section {
  padding: 120px 0;
  text-align: center;
  background: radial-gradient(circle at center, rgba(0, 255, 102, 0.015) 0%, transparent 70%);
}

.final-cta-container {
  max-width: 650px;
  margin: 0 auto;
}

.final-cta-title {
  font-size: 2.75rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.final-cta-desc {
  font-size: 1.05rem;
  color: var(--dark-text-secondary);
  margin-bottom: 40px;
  line-height: 1.7;
}

/* ==========================================
   RODAPÉ (FOOTER) CORPORATIVO SLIM
   ========================================== */
.main-footer {
  background: #030303;
  color: var(--dark-text-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 80px 0 40px;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.footer-logo-img {
  height: 24px;
  width: auto;
  object-fit: contain;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-title {
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--brand-green-accent);
}

.footer-contact-info {
  list-style: none;
}

.footer-contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.social-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.social-icon:hover {
  color: #ffffff;
  background: rgba(0, 255, 102, 0.1);
  border-color: rgba(0, 255, 102, 0.3);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.75rem;
}

/* ==========================================
   MEDIA QUERIES (RESPONSIVIDADE)
   ========================================== */
@media (max-width: 1024px) {
  .hero-title { font-size: 2.75rem; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: span 3; }
  .pricing-grid { grid-template-columns: 1fr; gap: 32px; }
  .testimonials-grid { grid-template-columns: 1fr; gap: 32px; }
  .apps-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root {
    --header-height: 54px;
  }
  .main-header {
    top: 12px;
    height: var(--header-height);
    width: calc(100% - 24px);
  }
  .menu-toggle {
    display: flex;
  }
  .nav-hover-pill {
    display: none;
  }

  /* === DRAWER LATERAL MOBILE === */
  .nav-menu {
    position: fixed;
    top: calc(var(--header-height) + 14px);
    right: -110%;
    width: 76%;
    max-width: 272px;
    height: auto;
    max-height: calc(100vh - var(--header-height) - 36px);
    background: rgba(5, 12, 5, 0.97);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid rgba(0, 255, 102, 0.12);
    border-radius: 20px;
    flex-direction: column;
    align-items: stretch;
    padding: 20px 14px 22px;
    gap: 4px;
    transition:
      right 0.44s cubic-bezier(0.25, 1, 0.5, 1),
      opacity 0.30s ease;
    box-shadow:
      -6px 8px 48px rgba(0, 0, 0, 0.70),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
  }
  .nav-menu::before {
    content: '';
    display: block;
    width: 30px;
    height: 3px;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 2px;
    margin: 0 auto 16px;
    flex-shrink: 0;
  }
  .nav-menu.active {
    right: 12px;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-link {
    width: 100%;
    font-size: 0.9rem;
    padding: 12px 16px;
    border-radius: 10px;
    border-bottom: none;
    color: rgba(255, 255, 255, 0.78) !important;
  }
  .nav-link:hover, .nav-link.active {
    color: var(--brand-green-accent) !important;
    background: rgba(0, 255, 102, 0.07);
  }
  .main-header .header-cta {
    display: none;
  }
  .nav-menu .header-cta-mobile {
    display: flex !important;
    justify-content: center;
    margin-top: 14px;
    width: 100%;
  }

  /* === LOGO-ONLY (rola para baixo — encolhe e centra) === */
  .main-header.nav-logo-only {
    width: 148px;
  }
  .main-header.nav-logo-only.scrolled {
    width: 140px;
    height: 46px;
  }
  .main-header.nav-logo-only .header-container {
    justify-content: center;
  }
  .main-header.nav-logo-only .menu-toggle {
    position: absolute;
    right: 18px;
    opacity: 0;
    transform: scale(0.55) translateX(10px);
    pointer-events: none;
  }
  
  /* Layout da Hero e do Banner de Conversão */
  .hero-title { font-size: 2.25rem; }
  .hero-subtitle { font-size: 0.95rem; }
  .conversion-banner-content { padding: 24px; }
  .conversion-headline { font-size: 1.2rem; }
  .conversion-subheadline { font-size: 0.85rem; margin-bottom: 0; }
  
  /* Grids */
  .services-grid { grid-template-columns: 1fr; }
  .apps-container { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .integrations-grid { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 24px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid > div:last-child { grid-column: span 1; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ==========================================
   PÁGINAS INTERNAS — TEMA CLARO (Serviços)
   ========================================== */
.page-light-main {
  background: #f4f8f4;
  padding-top: 100px;
  min-height: 80vh;
}

.page-hero-light {
  padding: 72px 0 60px;
  background: #f4f8f4;
}

.page-hero-light .section-subtitle {
  color: var(--brand-green);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  display: block;
  margin-bottom: 14px;
}

.page-hero-light .page-title {
  font-size: 2.8rem;
  color: #0d1a0d;
  margin-bottom: 16px;
  line-height: 1.18;
}

.page-hero-light .page-title span { color: var(--brand-green); }

.page-hero-light .page-desc {
  font-size: 1.05rem;
  color: #556655;
  max-width: 580px;
  line-height: 1.72;
}

/* Cards de serviço — light */
.services-light-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 0 0 80px;
  background: #f4f8f4;
}

.svc-card-l {
  background: #ffffff;
  border: 1px solid #e2ede2;
  border-radius: 16px;
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.svc-card-l:hover {
  box-shadow: 0 8px 28px rgba(0, 100, 40, 0.1);
  transform: translateY(-2px);
}

.svc-card-l .svc-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(0, 155, 59, 0.08);
  border: 1px solid rgba(0, 155, 59, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-green);
  margin-bottom: 16px;
  flex-shrink: 0;
}

.svc-card-l h3 {
  font-size: 1.05rem;
  color: #0d1a0d;
  margin-bottom: 8px;
}

.svc-card-l p {
  font-size: 0.86rem;
  color: #637563;
  line-height: 1.65;
}

/* Seção de formulário — light */
.svc-form-section {
  background: #ffffff;
  padding: 80px 0 100px;
  border-top: 1px solid #e2ede2;
}

.svc-form-wrap {
  max-width: 680px;
  margin: 0 auto;
}

.svc-form-header h2 {
  font-size: 2rem;
  color: #0d1a0d;
  margin-bottom: 8px;
}

.svc-form-header p {
  color: #778877;
  margin-bottom: 36px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.fg {
  margin-bottom: 18px;
}

.fg label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #334433;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.fg input,
.fg select,
.fg textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #d5e8d5;
  border-radius: 10px;
  font-size: 0.9rem;
  color: #1a2a1a;
  background: #fafdf8;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  font-family: var(--font-body);
  appearance: none;
}

.fg input:focus,
.fg select:focus,
.fg textarea:focus {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(0, 155, 59, 0.1);
  background: #fff;
}

.fg textarea { resize: vertical; }

/* ==========================================
   PÁGINAS INTERNAS — APPS / SISTEMAS (dark)
   ========================================== */
.apps-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.app-card-v2 {
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color 0.2s, transform 0.2s;
}

.app-card-v2:hover {
  border-color: rgba(0, 255, 102, 0.22);
  transform: translateY(-2px);
}

.app-card-v2 .acp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-family: var(--font-title);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 20px;
}

.acp-badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-green-accent);
  box-shadow: 0 0 5px var(--brand-green-accent);
}

.acp-badge-dot.blue { background: var(--brand-blue-accent); box-shadow: 0 0 5px var(--brand-blue-accent); }
.acp-badge-dot.yellow { background: var(--brand-yellow); box-shadow: 0 0 5px var(--brand-yellow); }

.app-card-v2 .acp-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-green-accent);
  margin-bottom: 16px;
  overflow: hidden;
}

.app-card-v2 .acp-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 13px;
}

.app-card-v2 h3 {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 10px;
}

.app-card-v2 p {
  font-size: 0.875rem;
  color: var(--dark-text-secondary);
  line-height: 1.68;
  margin-bottom: 22px;
  flex: 1;
}

.app-card-v2 .acp-features {
  list-style: none;
  margin-bottom: 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-card-v2 .acp-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
}

.app-card-v2 .acp-features li iconify-icon { color: var(--brand-green-accent); margin-top: 1px; flex-shrink: 0; }

/* Mentoria CTA block */
.mentoria-cta-block {
  margin-top: 80px;
  background: linear-gradient(135deg, rgba(0,255,102,0.04) 0%, rgba(0,229,255,0.04) 100%);
  border: 1px solid rgba(0,255,102,0.12);
  border-radius: 20px;
  padding: 52px 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.mentoria-cta-block .men-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-family: var(--font-title);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-green-accent);
  margin-bottom: 12px;
}

.mentoria-cta-block h3 {
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 10px;
}

.mentoria-cta-block p {
  font-size: 0.9rem;
  color: var(--dark-text-secondary);
  line-height: 1.7;
  max-width: 520px;
}

.mentoria-cta-block .men-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

/* ==========================================
   PÁGINAS INTERNAS — CURSOS
   ========================================== */
.courses-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 48px;
}

.course-card {
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 36px 40px;
  display: flex;
  flex-direction: row;
  gap: 36px;
  align-items: flex-start;
  transition: border-color 0.2s, transform 0.2s;
}

.course-card:hover {
  border-color: rgba(0, 255, 102, 0.2);
  transform: translateY(-2px);
}

.course-card-icon-wrap {
  flex-shrink: 0;
  padding-top: 2px;
}

.course-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-title);
  color: rgba(255,255,255,0.4);
  margin-bottom: 14px;
}

.course-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-green-accent);
}

.course-card h3 {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 10px;
}

.course-card p {
  font-size: 0.875rem;
  color: var(--dark-text-secondary);
  line-height: 1.68;
  margin-bottom: 24px;
  flex: 1;
}

.course-price {
  font-size: 0.8rem;
  color: var(--brand-green-accent);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

/* ==========================================
   FERRAMENTAS — light bg override (tool pages)
   ========================================== */
body.tools-light {
  /* Override CSS custom properties so all var() references resolve to light values */
  --dark-text-primary: #0d1a0d;
  --dark-text-secondary: #556655;
  --dark-text-muted: #778877;
  --dark-bg-primary: #f4f8f4;
  --dark-bg-secondary: #ffffff;
  --dark-bg-tertiary: #eef4ee;
  --dark-border: rgba(0, 0, 0, 0.08);
  --brand-green-accent: #1a7a35;
  --brand-blue-accent: #005f7a;
  --brand-yellow: #6e5200;
  background: #f4f8f4;
  color: #1a2a1a;
}
body.tools-light .bg-atmosphere { display: none; }

/* headings */
body.tools-light h1,
body.tools-light h2,
body.tools-light h3 { color: #0d1a0d; }

/* Hub de ferramentas + tool page cards */
body.tools-light .service-card,
body.tools-light .tool-card {
  background: #fff !important;
  border-color: #e5ede5 !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body.tools-light .service-card:hover,
body.tools-light .tool-card:hover {
  border-color: rgba(0,155,59,0.35) !important;
  box-shadow: 0 8px 28px rgba(0,0,0,0.08) !important;
}
body.tools-light .service-title { color: #0d1a0d; }
body.tools-light .service-text { color: #556655; }
body.tools-light .section-title { color: #0d1a0d; }
body.tools-light .section-desc { color: #445544; }
body.tools-light .section-subtitle { color: var(--brand-green); }
body.tools-light .service-icon-wrapper {
  background: rgba(0,155,59,0.06);
  border-color: rgba(0,155,59,0.15);
}
body.tools-light .btn-secondary:not([style*="color"]) {
  border-color: rgba(0,155,59,0.3);
  color: var(--brand-green);
  background: transparent;
}
body.tools-light .btn-secondary:hover { background: rgba(0,155,59,0.06); }

/* Tool page text */
body.tools-light .tool-card-desc,
body.tools-light .tool-card-label + p { color: #556655; }
body.tools-light .tool-card-label { color: var(--brand-green) !important; }

/* Breadcrumb */
body.tools-light .breadcrumb { color: #778877; }
body.tools-light .breadcrumb a { color: #556655; }
body.tools-light .breadcrumb-current { color: #0d1a0d; }
body.tools-light .breadcrumb-sep { color: #aabcaa; }

/* Inputs */
body.tools-light .input-label { color: #445544 !important; }
body.tools-light .input-field {
  background: #f8fcf8 !important;
  border-color: #d5e8d5 !important;
  color: #1a2a1a !important;
}
body.tools-light .input-field::placeholder { color: #aabcaa !important; }
body.tools-light .input-field:focus {
  border-color: var(--brand-green) !important;
  box-shadow: 0 0 0 3px rgba(0,155,59,0.1) !important;
}
body.tools-light select.input-field option {
  background: #fff;
  color: #1a2a1a;
}
body.tools-light select.input-field optgroup { color: #778877; }

/* Biome toggle (calcular-rl) */
body.tools-light .biome-toggle-label { color: #445544; }
body.tools-light .biome-btn {
  background: #fff;
  border-color: #d5e8d5;
  color: #556655;
}
body.tools-light .biome-btn:hover {
  background: #f4f8f4;
  border-color: #b5d5b5;
  color: #445544;
}
body.tools-light .biome-btn.active {
  background: rgba(0,155,59,0.08);
  border-color: var(--brand-green);
  color: var(--brand-green);
}

/* Action button */
body.tools-light .calc-btn {
  background: var(--brand-green) !important;
  color: #fff !important;
}
body.tools-light .calc-btn:hover {
  background: #007a2f !important;
  box-shadow: 0 8px 30px rgba(0,155,59,0.2) !important;
}

/* Result areas */
body.tools-light .result-box {
  background: #fff;
  border-color: #e2ede2;
}
body.tools-light .result-main-card {
  background: rgba(0,155,59,0.04);
  border-color: rgba(0,155,59,0.15);
}
body.tools-light .result-item {
  background: #f8fcf8;
  border-color: #e2ede2;
}
body.tools-light .result-label { color: #778877; }
body.tools-light .result-value { color: #1a2a1a; }
body.tools-light .result-tag { color: #778877; }
body.tools-light .result-rule { color: #445544; }
body.tools-light .result-unit { color: #778877; }
body.tools-light .result-pct-label { color: #556655; }
body.tools-light .result-value-big,
body.tools-light .result-pct { color: var(--brand-green) !important; }
body.tools-light .result-article {
  color: var(--brand-green) !important;
  background: rgba(0,155,59,0.06) !important;
  border-color: rgba(0,155,59,0.18) !important;
}

/* Copy button */
body.tools-light .copy-btn {
  background: #fff;
  border-color: #d5e8d5;
  color: #556655;
}
body.tools-light .copy-btn:hover {
  background: rgba(0,155,59,0.08);
  border-color: var(--brand-green);
  color: var(--brand-green);
}

/* Category cards (coord/unidades pages) */
body.tools-light .category-card {
  background: #fff;
  border-color: #e2ede2;
  color: #1a2a1a;
}
body.tools-light .category-card:hover {
  background: #f4f8f4;
  border-color: #c5d8c5;
}
body.tools-light .category-card.active {
  background: rgba(0,155,59,0.08);
  border-color: var(--brand-green);
}

/* GIS visualizer specific */
body.tools-light #map {
  border-color: #d5e8d5 !important;
  background: #e8f0e8 !important;
}
body.tools-light .upload-zone {
  border-color: rgba(0,155,59,0.3);
  background: rgba(0,155,59,0.02);
}
body.tools-light .upload-zone:hover,
body.tools-light .upload-zone.drag-over {
  border-color: var(--brand-green);
  background: rgba(0,155,59,0.05);
}
body.tools-light .upload-zone iconify-icon { color: rgba(0,155,59,0.5); }
body.tools-light .upload-zone p { color: #778877; }
body.tools-light .file-badge {
  background: rgba(0,155,59,0.06);
  border-color: rgba(0,155,59,0.2);
  color: var(--brand-green);
}
body.tools-light .stats-panel {
  background: #fff !important;
  border-color: #d5e8d5 !important;
}
body.tools-light .stats-panel h3 { color: var(--brand-green) !important; }
body.tools-light .stat-label { color: #778877; }
body.tools-light .stat-value { color: var(--brand-green) !important; }
body.tools-light .stat-item { border-bottom-color: rgba(0,0,0,0.06); }

/* SEO content sections (all tool pages) */
body.tools-light .seo-content p,
body.tools-light .seo-content ul,
body.tools-light .seo-content ol,
body.tools-light .seo-content li { color: #445544; }
body.tools-light .seo-content strong { color: #0d1a0d; }

/* Breadcrumb variant used in GIS page (.sep / .current vs .breadcrumb-sep / .breadcrumb-current) */
body.tools-light .breadcrumb .sep { color: #aabcaa; }
body.tools-light .breadcrumb .current { color: #0d1a0d; }
body.tools-light .breadcrumb a:hover { color: var(--brand-green); }

/* Tool action buttons (GIS) */
body.tools-light .btn-primary-tool {
  background: rgba(0,155,59,0.08);
  border-color: rgba(0,155,59,0.25);
  color: var(--brand-green);
}
body.tools-light .btn-primary-tool:hover {
  background: rgba(0,155,59,0.14);
  border-color: var(--brand-green);
}
body.tools-light .btn-secondary-tool {
  background: #f4f8f4;
  border-color: #d5e8d5;
  color: #556655;
}
body.tools-light .btn-secondary-tool:hover {
  background: #e8f0e8;
  border-color: #c5d8c5;
  color: #0d1a0d;
}

/* File info bar */
body.tools-light .file-info-bar {
  background: rgba(0,155,59,0.04);
  border-color: rgba(0,155,59,0.12);
}
body.tools-light .file-info-bar iconify-icon { color: var(--brand-green); }
body.tools-light .file-info-bar .file-name { color: #1a2a1a; }
body.tools-light .file-info-bar .file-size { color: #778877; }

/* Privacy note */
body.tools-light .privacy-note {
  background: rgba(0,95,122,0.04);
  border-color: rgba(0,95,122,0.12);
  color: #556655;
}
body.tools-light .privacy-note iconify-icon { color: rgba(0,95,122,0.6); }

/* Comparison table */
body.tools-light .comparison-table th {
  background: rgba(0,155,59,0.06);
  border-color: rgba(0,155,59,0.12);
  color: var(--brand-green);
}
body.tools-light .comparison-table td {
  border-color: rgba(0,0,0,0.06);
  color: #445544;
}
body.tools-light .comparison-table tr:first-child td { color: #0d1a0d; }
body.tools-light .comparison-table tr:hover td { background: rgba(0,0,0,0.02); }

/* FAQ accordion */
body.tools-light .faq-item {
  background: #fff;
  border-color: #e5ede5;
}
body.tools-light .faq-question {
  color: #1a2a1a;
}
body.tools-light .faq-question:hover { color: #0d1a0d; }
body.tools-light .faq-question iconify-icon { color: rgba(0,155,59,0.6); }
body.tools-light .faq-answer p { color: #445544; }

/* Related tool cards */
body.tools-light .related-tool-card {
  background: #fff;
  border-color: #e5ede5;
}
body.tools-light .related-tool-card:hover {
  border-color: rgba(0,155,59,0.25);
  background: rgba(0,155,59,0.03);
}
body.tools-light .related-tool-card iconify-icon { color: rgba(0,155,59,0.6); }
body.tools-light .related-tool-card .rtc-title { color: #1a2a1a; }
body.tools-light .related-tool-card .rtc-desc { color: #778877; }

/* Leaflet popups — light theme */
body.tools-light .leaflet-popup-content-wrapper {
  background: #fff;
  border-color: rgba(0,155,59,0.2);
  color: #1a2a1a;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
body.tools-light .leaflet-popup-tip { background: #fff; }

/* Calcular-RL specific: result metrics, progress, pills */
body.tools-light .result-law-pill {
  color: #556655;
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.10);
}
body.tools-light .result-biome-pill {
  color: var(--brand-green);
  background: rgba(0,155,59,0.08);
  border-color: rgba(0,155,59,0.18);
}
body.tools-light .result-metric {
  background: #f8fcf8;
  border-color: #e2ede2;
}
body.tools-light .result-metric-label { color: #778877; }
body.tools-light .result-metric-value { color: #0d1a0d; }
body.tools-light .result-metric-unit { color: #778877; }
body.tools-light .rl-progress-wrap { background: #e2ede2; }
body.tools-light .rl-progress-bar {
  background: linear-gradient(90deg, var(--brand-green), #1a9a40);
}
body.tools-light .rl-progress-labels { color: #778877; }

/* RL Table */
body.tools-light .rl-table th {
  background: rgba(0,155,59,0.07);
  border-color: rgba(0,155,59,0.12);
  color: var(--brand-green);
}
body.tools-light .rl-table td {
  border-color: rgba(0,0,0,0.06);
}
body.tools-light .rl-table tr:hover td {
  background: rgba(0,0,0,0.02);
  color: #1a2a1a;
}
body.tools-light .rl-table td:last-child { color: var(--brand-green); }

/* RL FAQ (flat accordion style) */
body.tools-light .faq-item { border-bottom-color: #e5ede5; }
body.tools-light .faq-question { color: #1a2a1a; }
body.tools-light .faq-question:hover { color: var(--brand-green); }
body.tools-light .faq-question iconify-icon { color: rgba(0,155,59,0.4); }
body.tools-light .faq-item.open .faq-question iconify-icon { color: var(--brand-green); }
body.tools-light .faq-answer-inner { color: #445544; }

/* Example cards (RL) */
body.tools-light .example-card {
  background: #f8fcf8;
  border-color: #e2ede2;
}

/* Related tools sections */
body.tools-light .related-tools-section { border-top-color: #e5ede5; }
body.tools-light .related-card {
  background: #fff;
  border-color: #e5ede5;
}
body.tools-light .related-card:hover {
  background: rgba(0,155,59,0.04);
  border-color: rgba(0,155,59,0.2);
}
body.tools-light .related-card iconify-icon { color: var(--brand-green); }
body.tools-light .related-card span { color: #556655; }
body.tools-light .related-tools-section h2 { color: #1a2a1a; }

/* seo-content headings (used in coordenadas & unidades) */
body.tools-light .seo-content h2 { color: #0d1a0d; }
body.tools-light .seo-content h2::before { background: var(--brand-green); }
body.tools-light .seo-content h3 { color: #1a2a1a; }

/* info-table (generic table for seo content) */
body.tools-light .info-table th { background: rgba(0,155,59,0.07); color: var(--brand-green); border-color: #e5ede5; }
body.tools-light .info-table td { border-color: #e5ede5; color: #445544; }
body.tools-light .info-table td:first-child { color: #1a2a1a; }
body.tools-light .info-table tr:hover td { background: #f8fcf8; }
body.tools-light .info-table td:last-child { color: var(--brand-green); font-weight: 600; }

/* Result hero (calcular-area-basal, calcular-volume-lenha, conversor-declividade) */
body.tools-light .result-hero { background: rgba(0,155,59,0.04); border-color: rgba(0,155,59,0.15); }
body.tools-light .result-hero-label,
body.tools-light .result-hero-unit { color: #778877; }
body.tools-light .result-hero-value { color: var(--brand-green); }
body.tools-light .hint { color: #aabcaa; }
body.tools-light .error-box { color: #cc2200; background: rgba(200,0,0,0.05); border-color: rgba(200,0,0,0.18); }

/* Conversor de Declividade */
body.tools-light .classe-box { background: #f8fcf8; border-color: #e5ede5; }
body.tools-light .classe-desc { color: #778877; }

/* Responsive inner pages */
@media (max-width: 768px) {
  .page-hero-light .page-title { font-size: 2rem; }
  .services-light-grid { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .mentoria-cta-block { grid-template-columns: 1fr; padding: 36px 24px; }
  .mentoria-cta-block .men-cta { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; }
  .course-card { flex-direction: column; padding: 28px 24px; gap: 20px; }
  .apps-page-grid { grid-template-columns: 1fr; }
}

/* ==========================================
   MAPA INTERATIVO DE PRESENÇA NACIONAL
   ========================================== */
.map-section {
  background: var(--dark-bg-primary);
}

.map-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: center;
  margin-top: 0;
}

.map-header-inline {
  margin-bottom: 4px;
}

.map-title-inline {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-title);
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 6px 0 12px;
}

.map-desc-inline {
  font-size: 0.85rem;
  color: var(--dark-text-secondary);
  line-height: 1.65;
}

/* Wrapper do SVG */
.map-wrapper {
  position: relative;
  background: transparent;
  border-radius: 12px;
  padding: 8px;
}

/* SVG gerado pelo D3.js */
.br-map-d3 {
  width: 100%;
  height: auto;
  display: block;
}

/* Carregando */
.map-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 80px 20px;
  color: var(--dark-text-muted);
  font-size: 0.85rem;
}

/* Estados do mapa D3 — fill/stroke controlados via inline style no JS */
.br-state {
  transition: fill 0.15s ease;
}

/* Tooltip */
.map-tooltip {
  position: absolute;
  background: rgba(8, 8, 8, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 14px;
  pointer-events: none;
  z-index: 50;
  backdrop-filter: blur(12px);
  min-width: 168px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.map-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.tt-name {
  font-size: 0.86rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
  font-family: var(--font-title);
}

.tt-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-family: var(--font-title);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tt-status.active  { color: #00ff66; }
.tt-status.available { color: rgba(255, 255, 255, 0.45); }

.tt-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* Sidebar */
.map-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 100px;
}

.map-legend-heading {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark-text-muted);
  margin-bottom: 16px;
}

.map-legend {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
}

.map-legend-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.map-legend-item:last-child { margin-bottom: 0; }

.map-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 3px;
}

.map-legend-dot.active {
  background: #00ff66;
  box-shadow: 0 0 8px rgba(0, 255, 102, 0.6);
}

.map-legend-dot.available {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.map-legend-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.map-legend-states {
  font-size: 0.75rem;
  color: #00ff66;
  letter-spacing: 0.08em;
}

.map-legend-desc {
  font-size: 0.75rem;
  color: var(--dark-text-secondary);
  line-height: 1.55;
}

/* CTA card */
.map-cta-card {
  background: rgba(0, 255, 102, 0.04);
  border: 1px solid rgba(0, 255, 102, 0.12);
  border-radius: 14px;
  padding: 24px;
}

.map-cta-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(0, 255, 102, 0.08);
  border: 1px solid rgba(0, 255, 102, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00ff66;
  margin-bottom: 14px;
}

.map-cta-title {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 8px;
}

.map-cta-desc {
  font-size: 0.8rem;
  color: var(--dark-text-secondary);
  line-height: 1.65;
  margin-bottom: 18px;
}

@media (max-width: 900px) {
  .map-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .map-wrapper {
    order: 2;
  }
  .map-sidebar {
    position: static;
    order: 1;
  }
  .map-title-inline {
    font-size: 1.6rem;
  }
}

/* ==========================================
   PRELOADER DISRUPTIVO (AURA INTRO)
   ========================================== */
.preloader-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: #030303;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
  pointer-events: auto;
}

.preloader-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-canvas-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#preloader-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.preloader-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.preloader-motion-wrapper {
  position: relative;
  height: 48px;
  width: 100%;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 26px;
}

.motion-full-name, .motion-short-name {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  white-space: nowrap;
}

.motion-full-name {
  gap: 10px;
  animation: fullTextHide 4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.motion-word {
  opacity: 0;
  animation: wordReveal 4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.word-1 { animation-delay: 0s; }
.word-2 { animation-delay: 0.5s; }
.word-3 { animation-delay: 1.0s; }

.motion-short-name {
  gap: 0;
  opacity: 0;
  letter-spacing: 2px;
  font-weight: 800; /* EcoAds logo always has bold */
  animation: shortNameReveal 4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes wordReveal {
  0% { opacity: 0; transform: translateY(10px); filter: blur(4px); }
  10%, 100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes fullTextHide {
  0%, 70% { opacity: 1; filter: blur(0); transform: translate(-50%, -50%) scale(1); }
  80%, 100% { opacity: 0; filter: blur(6px); transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes shortNameReveal {
  0%, 70% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); filter: blur(6px); }
  80%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: blur(0); }
}

.preloader-status-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.preloader-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--brand-green-accent);
  box-shadow: 0 0 8px var(--brand-green-accent);
  animation: preloaderDotPulse 1s ease-in-out infinite alternate;
}

@keyframes preloaderDotPulse {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1.2); opacity: 1; }
}

.preloader-status-text {
  font-family: var(--font-title);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.65);
}

.preloader-progress-bar {
  width: 140px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  overflow: hidden;
}

.preloader-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--brand-blue-accent), var(--brand-green-accent));
  box-shadow: 0 0 8px var(--brand-green-accent);
  transition: width 0.1s ease;
}

/* ==========================================
   DIAGNÓSTICO DE MATURIDADE DIGITAL
   ========================================== */
.diagnostico-section {
  position: relative;
  overflow: hidden;
}

.diagnostico-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 20%, rgba(0, 255, 102, 0.06), transparent 45%);
  pointer-events: none;
}

.diagnostico-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.diag-progress-wrapper {
  margin-bottom: 32px;
}

.diag-progress-info {
  display: flex;
  justify-content: space-between;
  color: var(--dark-text-secondary);
  font-size: 13px;
  margin-bottom: 10px;
  font-family: var(--font-body);
}

.diag-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  overflow: hidden;
}

.diag-progress-fill {
  width: 10%;
  height: 100%;
  background: linear-gradient(90deg, var(--brand-green), var(--brand-green-accent));
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.diag-question h3 {
  font-size: clamp(20px, 2.8vw, 28px);
  color: var(--dark-text-primary);
  margin: 0 0 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.diag-options {
  display: grid;
  gap: 12px;
}

.diag-option {
  width: 100%;
  text-align: left;
  padding: 18px 22px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--dark-text-primary);
  font-size: 15px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.22s ease;
  line-height: 1.5;
}

.diag-option:hover {
  border-color: rgba(0, 255, 102, 0.4);
  background: rgba(0, 255, 102, 0.06);
  transform: translateY(-2px);
  color: #ffffff;
}

.diag-result {
  animation: revealUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.diag-result-level {
  display: inline-block;
  margin-bottom: 20px;
  padding: 9px 18px;
  border-radius: 999px;
  color: #030303;
  background: var(--brand-green-accent);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.diag-result h3 {
  font-size: clamp(22px, 3.2vw, 32px);
  margin: 0 0 14px;
  color: var(--dark-text-primary);
}

.diag-result-text {
  color: var(--dark-text-secondary);
  line-height: 1.7;
  font-size: 16px;
  margin-bottom: 24px;
}

.diag-result h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-green-accent);
  margin-bottom: 14px;
  font-weight: 600;
  font-family: var(--font-body);
}

.diag-opportunity-list {
  display: grid;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.diag-opportunity-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--dark-text-secondary);
  font-size: 15px;
  line-height: 1.45;
}

.diag-opportunity-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-green-accent);
  flex-shrink: 0;
}

.diag-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.diag-hidden {
  display: none !important;
}

@media (max-width: 640px) {
  .diagnostico-card {
    padding: 24px 18px;
    border-radius: 20px;
  }
}
