/**
 * Meu Gabinete - Landing Page Styles
 * Estilos modernos para a landing page
 */

:root {
  /* Nova paleta principal */
  --primary: #3B82F6;         /* Azul mais moderno */
  --primary-dark: #2563EB;    /* Azul escuro */
  --primary-light: #60A5FA;   /* Azul claro */
  
  /* Cores secundárias */
  --secondary: #F3F4F6;       /* Cinza claro neutro */
  --secondary-dark: #E5E7EB;  /* Cinza mais escuro */
  --accent: #8B5CF6;          /* Roxo como cor de destaque */
  
  /* Cores base */
  --white: #FFFFFF;
  --light: #FFFFFF;
  --dark: #111827;
  
  /* Tons de azul mais suaves */
  --light-blue: #EFF6FF;
  --bright-blue: #3B82F6;
  
  /* Escala de cinza revisada */
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  
  /* Cores de estado */
  --success: #10B981;        /* Verde */
  --info: #3B82F6;           /* Azul */
  --warning: #F59E0B;        /* Amarelo */
  --danger: #EF4444;         /* Vermelho */
  
  /* Cores adicionais para gradientes e destaques */
  --indigo: #6366F1;
  --purple: #8B5CF6;
  --pink: #EC4899;
  --teal: #14B8A6;
}

/* === GERAL === */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.section-padding {
  padding: 100px 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 70px 0;
  }
}

.section-title {
  margin-bottom: 60px;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
  font-weight: 700;
}

.section-title h2::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 50px;
  height: 3px;
  background: var(--primary);
  transform: translateX(-50%);
}

.btn-rounded {
  border-radius: 30px;
  padding: 12px 30px;
}

.btn-primary-gradient {
  background: linear-gradient(135deg, var(--bright-blue) 0%, var(--primary-dark) 100%);
  border: none;
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
}

.btn-primary-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
  color: white;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--bright-blue) 100%);
}

.btn-outline-white {
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: transparent;
  transition: all 0.3s ease;
  padding: 12px 30px;
  font-weight: 600;
  text-align: center;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transform: translateY(-1px);
}

.btn-outline-primary {
  color: var(--bright-blue);
  border: 2px solid var(--bright-blue);
  background: transparent;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: rgba(59, 130, 246, 0.1);
  color: var(--bright-blue);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 15px 35px;
  font-size: 1rem;
  font-weight: 600;
}

.text-gradient {
  background: linear-gradient(135deg, var(--bright-blue) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* === ANIMAÇÕES === */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slideLeft {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideRight {
  from { transform: translateX(-50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.fade-in {
  animation: fadeIn 1s ease forwards;
}

.slide-up {
  animation: slideUp 1s ease forwards;
}

.slide-left {
  animation: slideLeft 1s ease forwards;
}

.slide-right {
  animation: slideRight 1s ease forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}

.delay-4 {
  animation-delay: 0.8s;
}

/* === DEMO SCREENS === */
.demo-screen-placeholder {
  background: linear-gradient(135deg, var(--light-blue) 0%, var(--secondary-dark) 100%);
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--secondary-dark);
}

.user-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--bright-blue) 0%, var(--primary-dark) 100%);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-left: -8px;
  border: 2px solid white;
  font-size: 16px;
}

.hero-mockup {
  text-align: center;
  padding: 3rem 2rem;
}

/* === HERO SECTION === */
.hero-section {
  background: linear-gradient(135deg, var(--bright-blue) 0%, var(--primary-dark) 100%);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 171, 228, 0.1);
  opacity: 0.3;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* === HERO ILLUSTRATION === */
.hero-illustration {
  position: relative;
  padding: 2rem;
}

.illustration-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 400px;
  margin: 0 auto;
  justify-items: center;  /* centra cada card na célula do grid */
}

.illustration-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 120px;
  max-width: 150px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  animation: float 3s ease-in-out infinite;
}

.illustration-card:nth-child(1) { animation-delay: 0s; }
.illustration-card:nth-child(2) { animation-delay: 0.5s; }
.illustration-card:nth-child(3) { animation-delay: 1s; }
.illustration-card:nth-child(4) { animation-delay: 1.5s; }

.illustration-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.illustration-card i {
  font-size: 2rem;
  color: white;
  margin-bottom: 0.5rem;
  display: block;
}

.illustration-card span {
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* === DEMO MOCKUP === */
.demo-mockup {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.mockup-device {
  position: relative;
  max-width: 300px;
  margin: 0 auto;
}

.device-frame {
  background: linear-gradient(145deg, var(--bright-blue), var(--primary-dark));
  border-radius: 25px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
  animation: deviceFloat 4s ease-in-out infinite;
}

.device-screen {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  min-height: 350px;
}

.demo-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--gray-200);
}

.demo-header i {
  font-size: 1.5rem;
  color: var(--primary);
  margin-right: 0.5rem;
}

.demo-header span {
  font-weight: 700;
  color: var(--dark);
  font-size: 1.1rem;
}

.demo-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.demo-feature {
  background: var(--gray-50);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  transition: all 0.3s ease;
}

.demo-feature:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.05);
}

.demo-feature i {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: block;
  color: var(--primary);
}

.demo-feature:hover i {
  color: white;
}

.demo-feature span {
  font-weight: 600;
  font-size: 0.9rem;
}

@keyframes deviceFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-10px) rotate(1deg); }
  50% { transform: translateY(-5px) rotate(0deg); }
  75% { transform: translateY(-15px) rotate(-1deg); }
}

/* === MODULE CARDS === */
.module-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  height: 100%;
  border: 2px solid var(--gray-200);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.module-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.module-card:hover::before {
  transform: scaleX(1);
}

.module-card:hover {
  border-color: var(--bright-blue);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(59, 130, 246, 0.15);
}

.module-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--bright-blue) 0%, var(--primary-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
  transition: all 0.3s ease;
}

.module-card:hover .module-icon {
  transform: scale(1.1) rotate(5deg);
}

.module-card h3 {
  color: var(--dark);
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.module-card p {
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}

/* === FEATURE CARDS === */
.feature-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  height: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid var(--gray-200);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  border-color: var(--primary);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--primary);
  font-size: 1.8rem;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

.feature-card h3 {
  color: var(--dark);
  font-weight: 600;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.hero-image {
  position: relative;
  z-index: 2;
}

.hero-app-image {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.25));
  transform: perspective(1000px) rotateY(-10deg);
  transition: transform 0.5s ease;
}

.hero-app-image:hover {
  transform: perspective(1000px) rotateY(0deg);
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* === FEATURES SECTION === */
.features-section {
  background-color: white;
}

.feature-card {
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid var(--gray-200);
  overflow: hidden;
  position: relative;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-light);
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, transparent 0%, rgba(114, 9, 183, 0.05) 100%);
  border-radius: 0 0 0 100%;
  pointer-events: none;
}

.feature-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  color: white;
  font-size: 24px;
  box-shadow: 0 10px 20px -10px rgba(67, 97, 238, 0.3);
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--dark);
}

.feature-card p {
  color: var(--gray-500);
  margin-bottom: 0;
  line-height: 1.6;
}

/* === PRICING SECTION === */
.pricing-section {
  background-color: var(--gray-100);
  position: relative;
  overflow: hidden;
}

.pricing-card {
  background-color: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  height: 100%;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.pricing-card.popular {
  transform: scale(1.05);
  z-index: 2;
  border: 2px solid var(--bright-blue);
}

.pricing-card.popular:hover {
  transform: scale(1.05) translateY(-10px);
}

.pricing-header {
  background: linear-gradient(135deg, var(--bright-blue) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 30px;
  text-align: center;
}

.pricing-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(5px);
}

.pricing-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  margin-top: 10px;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.pricing-price small {
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.8;
  position: absolute;
  top: 8px;
  right: -20px;
}

.pricing-period {
  font-size: 0.9rem;
  opacity: 0.8;
}

.pricing-body {
  padding: 30px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.pricing-features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-500);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features i {
  color: var(--success);
  margin-right: 10px;
}

.pricing-features i.disabled {
  color: var(--gray-400);
}

/* === CTA SECTION === */
.cta-section {
  background: linear-gradient(135deg, var(--bright-blue) 0%, var(--primary-dark) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.05);
  opacity: 0.5;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.cta-text {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* === FOOTER === */
.footer {
  background-color: var(--dark);
  color: white;
  padding: 80px 0 30px;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.footer-logo i {
  font-size: 2rem;
  margin-right: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-description {
  color: var(--gray-400);
  margin-bottom: 30px;
  line-height: 1.6;
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-links a {
  color: var(--gray-400);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  margin-bottom: 15px;
  display: flex;
  color: var(--gray-400);
}

.footer-contact i {
  color: var(--primary-light);
  margin-right: 10px;
  margin-top: 5px;
}

.footer-social {
  margin-top: 20px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  margin-right: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  margin-top: 50px;
}

.footer-copyright {
  color: var(--gray-500);
}

.footer-policy-links {
  text-align: right;
}

.footer-policy-links a {
  color: var(--gray-400);
  margin-left: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-policy-links a:hover {
  color: var(--primary-light);
}

/* Responsividade */
@media (max-width: 991px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .pricing-card.popular {
    transform: scale(1);
  }
  
  .pricing-card.popular:hover {
    transform: translateY(-10px);
  }
  
  .footer-policy-links {
    text-align: left;
    margin-top: 15px;
  }
  
  .footer-policy-links a {
    margin-left: 0;
    margin-right: 20px;
  }
}

/* Ajustes adicionais para o header mobile */
@media (max-width: 991px) {
  .landing-header .container {
    position: relative;
    z-index: 1000;
  }
  
  .landing-header.fixed-header {
    padding: 10px 0;
  }
  
  /* Garante que o botão de menu fique visível mesmo quando o header é fixo */
  .landing-header.fixed-header .menu-toggle {
    position: relative;
    z-index: 1001;
  }
  
  /* Garante que o ícone do menu seja sempre branco, em todos os estados */
  .landing-header .menu-toggle span,
  .landing-header.fixed-header .menu-toggle span,
  .menu-toggle.active span {
    background-color: white !important;
  }
  
  /* Transição suave para o header fixo em mobile */
  .landing-header.fixed-header {
    transition: all 0.3s ease;
  }
}

@media (max-width: 767px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .hero-image {
    margin-top: 40px;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .cta-title {
    font-size: 1.8rem;
  }
}

/* === GARANTIR CONSISTÊNCIA DE CORES AO ROLAR === */
.landing-header a,
.landing-header .nav-link,
.landing-header .header-logo a,
.landing-header .header-logo i,
.landing-header.fixed-header a,
.landing-header.fixed-header .nav-link,
.landing-header.fixed-header .header-logo a,
.landing-header.fixed-header .header-logo i {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    /* Desabilitar transição de cores para evitar flicker */
    transition-property: transform, box-shadow !important;
}

/* Força a cor do texto no header em todos os estados */
html body .landing-header .header-nav .nav-link {
    color: var(--gray-300) !important;
}
html body .landing-header .header-nav .nav-link:hover,
html body .landing-header.fixed-header .header-nav .nav-link:hover {
    color: white !important;
}
html body .landing-header .header-logo a,
html body .landing-header.fixed-header .header-logo a {
    color: white !important;
}
html body .landing-header .header-logo i,
html body .landing-header.fixed-header .header-logo i {
    color: var(--primary-light) !important;
}

/* === SISTEMA DE NOTIFICAÇÕES === */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  border-radius: 10px;
  padding: 1rem 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  transition: all 0.3s ease;
  z-index: 9999;
  max-width: 350px;
  border-left: 4px solid var(--primary);
}

.notification.show {
  transform: translateX(0);
}

.notification-success {
  border-left-color: var(--success);
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.1) 0%, white 100%);
}

.notification-error {
  border-left-color: var(--danger);
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.1) 0%, white 100%);
}

.notification-info {
  border-left-color: var(--info);
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.1) 0%, white 100%);
}

/* === MELHORIAS DE PERFORMANCE === */
.lazy-image {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lazy-image.loaded {
  opacity: 1;
}

/* === ESTADOS DE HOVER APRIMORADOS === */
.module-card,
.feature-card,
.pricing-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.module-card:hover,
.feature-card:hover,
.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* === MELHORIAS DE ACESSIBILIDADE === */
.btn:focus,
.nav-link:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* === RESPONSIVIDADE APRIMORADA === */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.8rem;
  }
  
  .illustration-grid {
    max-width: 350px;
  }
  
  .pricing-card {
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .illustration-grid {
    grid-template-columns: 1fr;
    max-width: 250px;
  }
  
  .demo-screen-placeholder {
    padding: 2rem 1rem;
    min-height: 200px;
  }
  
  .stats-counter {
    font-size: 2rem;
  }
  
  .module-card {
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .section-padding {
    padding: 50px 0;
  }
  
  .btn-lg {
    padding: 12px 25px;
    font-size: 0.9rem;
  }
  
  .pricing-card {
    padding: 2rem 1.5rem;
  }
  
  .faq-item {
    padding: 1.5rem;
  }
}

/* === SCROLLBAR PERSONALIZADA === */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* === SELEÇÃO DE TEXTO === */
::selection {
  background: var(--primary);
  color: white;
}

::-moz-selection {
  background: var(--primary);
  color: white;
}

/* === LAZYLOAD PLACEHOLDER === */
[data-src] {
  opacity: 0;
  transition: opacity 0.3s;
}

[data-src].loaded {
  opacity: 1;
}

/* === RESPONSIVE TABLES === */
@media (max-width: 768px) {
  .table-responsive {
    border: none;
  }
  
  .comparison-table {
    font-size: 0.875rem;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: 0.5rem;
  }
}

/* === LOADING STATES === */
.btn.loading {
  position: relative;
  color: transparent;
}

.btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: btn-loading 1s linear infinite;
}

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

/* === SEÇÕES COM FUNDO AZUL CLARO === */
.bg-light-blue {
  background-color: var(--light-blue) !important;
}

.section-light-blue {
  background: linear-gradient(135deg, var(--light-blue) 0%, var(--secondary-dark) 100%);
}

/* === OTIMIZAÇÕES MOBILE ADICIONAIS === */
@media (max-width: 480px) {
  .section-padding {
    padding: 50px 0;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }
  
  .btn-lg {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
  
  .pricing-card {
    margin-bottom: 2rem;
  }
  
  .notification {
    left: 10px;
    right: 10px;
    max-width: none;
  }
}

/* === MELHORIAS DE CONTRASTE === */
.text-on-light-blue {
  color: var(--gray-700) !important;
}

.text-on-light-blue h1,
.text-on-light-blue h2,
.text-on-light-blue h3,
.text-on-light-blue h4,
.text-on-light-blue h5,
.text-on-light-blue h6 {
  color: var(--gray-800) !important;
}

.btn-on-light-blue {
  background: var(--bright-blue);
  color: white;
  border: none;
}

.btn-on-light-blue:hover {
  background: var(--primary-dark);
  color: white;
}

/* === UTILITIES PARA NOVA PALETA === */
.bg-bright-blue {
  background-color: var(--bright-blue) !important;
}

.text-bright-blue {
  color: var(--bright-blue) !important;
}

.border-bright-blue {
  border-color: var(--bright-blue) !important;
}

/* === Landing Page Inline Styles moved from index.twig === */
.stats-counter {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--bright-blue);
    margin-bottom: 0.5rem;
    display: block;
}
.feature-preview {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.feature-preview:hover { transform: translateY(-10px); }
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.hero-benefits {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}
.integration-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(16,185,129,0.1);
    color: var(--success);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0.25rem;
}
.demo-screens { position: relative; margin-top: 4rem; }
.screen-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; margin-bottom: 4rem; }
.screen-showcase:nth-child(even) { direction: rtl; }
.screen-showcase:nth-child(even) > * { direction: ltr; }
@media (max-width: 768px) {
    .screen-showcase { grid-template-columns: 1fr; }
    .module-grid { grid-template-columns: 1fr; }
}
.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark);
    background-image: linear-gradient(180deg, var(--gray-800), var(--dark));
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.landing-header.fixed-header {
    background-color: var(--dark);
    background-image: linear-gradient(180deg, var(--gray-800), var(--dark));
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    /* Garantir que não haja alterações em outros aspectos */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.landing-header.fixed-header .header-logo a,
.landing-header.fixed-header .nav-link { 
    color: white !important; 
}
.header-logo a { 
    color: white !important; 
    font-weight: 700; 
    font-size: 1.5rem; 
    display: flex; 
    align-items: center; 
}
.header-logo i { 
    margin-right: 10px; 
    font-size: 1.8rem; 
    color: var(--primary-light) !important;
}
.header-nav .nav-link { 
    color: var(--gray-300) !important; 
    font-weight: 500; 
    padding: 0.5rem 1rem; 
    transition: all 0.3s ease; 
}
.header-nav .nav-link:hover { 
    color: white !important; 
}
.landing-header.fixed-header .nav-link:hover { 
    color: white !important; 
}
.menu-toggle { 
  background: transparent; 
  border: none; 
  width: 40px; 
  height: 30px; 
  position: relative; 
  cursor: pointer; 
  padding: 0; 
  z-index: 1000; 
}
.menu-toggle span { 
  display: block; 
  width: 100%; 
  height: 2px; 
  background-color: white; 
  position: absolute; 
  left: 0; 
  transition: all 0.3s ease; 
}
.landing-header.fixed-header .menu-toggle span { 
  background-color: white !important; 
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle span:nth-child(3) { bottom: 0; }

/* Estado ativo do botão toggle quando o menu está aberto */
.menu-toggle.active span { 
  background-color: white !important; 
}
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 40%;
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  bottom: 40%;
}

/* === Hero Section & About Hero === */
.hero-section,
.about-hero {
  background: var(--primary);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
}
.hero-section::before,
.about-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(59, 130, 246, 0.1);
  opacity: 0.3;
  pointer-events: none;
}

/* Remover linha horizontal do header */
.landing-header hr {
    display: none !important;
}

/* Alternativa para esconder a linha de forma mais específica, caso a primeira opção não funcione */
.landing-header hr[style*="border-bottom: 1.5px solid #e5eaf2"] {
    display: none !important;
}

/* === ESTILOS PARA MENU MOBILE === */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--dark);
  z-index: 999;
  padding-top: 80px;
  transform: translateY(-100%);
  transition: all 0.4s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.mobile-menu.active {
  transform: translateY(0);
}

.mobile-menu .nav-link {
  color: var(--gray-100) !important;
  font-size: 1.2rem;
  padding: 1rem 0;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.3s ease;
}

.mobile-menu .nav-link:hover,
.mobile-menu .nav-link:focus {
  color: var(--white) !important;
  text-decoration: none;
}

/* Adicionar pequeno gradiente sutil ao topo do menu, como no header */
.mobile-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

/* Estilização adicional para botões dentro do menu mobile */
.mobile-menu .btn {
  margin-top: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.mobile-menu hr {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 1rem 0;
}

/* Estilo para o corpo quando o menu está aberto */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* Ajuste para os botões dentro do menu mobile */
.mobile-menu .btn-primary-gradient {
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  border: none;
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(59, 130, 246, 0.25);
}

.mobile-menu .btn-primary-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(59, 130, 246, 0.3);
}
