/**
 * Modern Professional Style
 * Estilo moderno e profissional baseado em melhores práticas de design web
 */

/* ============================================
   ESPAÇAMENTO E LAYOUT MODERNO
   ============================================ */

/* Container principal com espaçamento generoso */
main {
  overflow-x: hidden;
}

/* IMPORTANTE:
 * Não aplicamos padding global em TODO <section>, pois conflita com classes Tailwind (py-*)
 * e cria espaçamento excessivo em páginas de conteúdo (políticas, termos, etc.).
 * Use `.section-modern` quando quiser o "respiro" extra.
 */

/* ============================================
   TIPOGRAFIA MODERNA
   ============================================ */

h1 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h2 {
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

h3, h4 {
  font-weight: 600;
  line-height: 1.3;
}

p {
  line-height: 1.7;
  letter-spacing: 0.01em;
}

/* ============================================
   CARDS MODERNOS COM PROFUNDIDADE
   ============================================ */

.card-modern {
  background: #FFFFFF;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.05),
    0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-modern:hover {
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.1),
    0 12px 32px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

/* ============================================
   BOTÕES MODERNOS
   ============================================ */

.btn-modern {
  padding: 0.875rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 0.75rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(74, 140, 255, 0.25);
}

.btn-modern:hover {
  box-shadow: 0 8px 24px rgba(74, 140, 255, 0.35);
  transform: translateY(-2px);
}

.btn-modern:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(74, 140, 255, 0.25);
}

/* ============================================
   GRADIENTES SUAVES
   ============================================ */

.gradient-modern {
  background: linear-gradient(135deg, 
    rgba(74, 140, 255, 0.1) 0%,
    rgba(95, 91, 255, 0.1) 50%,
    rgba(0, 209, 167, 0.1) 100%);
}

.gradient-text-modern {
  background: linear-gradient(135deg, #4A8CFF 0%, #5F5BFF 50%, #00D1A7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================
   SOMBRAS MODERNAS
   ============================================ */

.shadow-modern {
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.05),
    0 4px 12px rgba(0, 0, 0, 0.08),
    0 8px 24px rgba(0, 0, 0, 0.06);
}

.shadow-modern-lg {
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.1),
    0 12px 32px rgba(0, 0, 0, 0.12),
    0 24px 64px rgba(0, 0, 0, 0.08);
}

/* ============================================
   BORDAS E DIVISORES MODERNOS
   ============================================ */

.divider-modern {
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(0, 0, 0, 0.1) 50%,
    transparent 100%);
  border: none;
  margin: 2rem 0;
}

/* ============================================
   ANIMAÇÕES SUAVES
   ============================================ */

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

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-up-delay-1 {
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.animate-fade-in-up-delay-2 {
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.animate-fade-in-up-delay-3 {
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

/* ============================================
   GLASSMORPHISM MODERNO
   ============================================ */

.glass-modern {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* ============================================
   HERO SECTION MODERNA
   ============================================ */

.hero-modern {
  position: relative;
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(74, 140, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(95, 91, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(0, 209, 167, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* ============================================
   NAVEGAÇÃO MODERNA
   ============================================ */

.nav-modern {
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* ============================================
   BADGES E TAGS MODERNOS
   ============================================ */

.badge-modern {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ============================================
   RESPONSIVE IMPROVEMENTS
   ============================================ */

@media (max-width: 768px) {
  .hero-modern {
    min-height: 70vh;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .card-modern {
    padding: 1.5rem;
    border-radius: 1.25rem;
  }
}

/* ============================================
   UTILITÁRIOS MODERNOS
   ============================================ */

.text-balance {
  text-wrap: balance;
}

.container-modern {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 640px) {
  .container-modern {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1024px) {
  .container-modern {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

/* ============================================
   INTERAÇÕES MODERNAS
   ============================================ */

.interactive-modern {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.interactive-modern:hover {
  transform: translateY(-2px);
}

.interactive-modern:active {
  transform: translateY(0);
}

/* ============================================
   SEÇÕES COM FUNDO MODERNO
   ============================================ */

.section-modern {
  position: relative;
  padding-top: 4rem;
  padding-bottom: 4rem;
  isolation: isolate;
}

.section-modern.section-compact {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.section-modern.section-tight {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .section-modern {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .section-modern.section-compact {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .section-modern.section-tight {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .section-modern {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }

  .section-modern.section-compact {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .section-modern.section-tight {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

.section-modern::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 0% 0%, rgba(74, 140, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(0, 209, 167, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}
