/* VARIÁVEIS E ESTILOS GERAIS */
:root {
  --primary: #2c3e50;  
  --primary-dark: #1d4ed8;
  --secondary: #f59e0b;
  --dark: #1e293b;
  --light: #f8fafc;
  --gray: #64748b;
  --success: #10b981;
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.16);
}

* {
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: #ffffff;
  overflow-x: hidden;
}
/*
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}
*/
p {
  margin-bottom: 1.5rem;
  color: var(--gray);
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* HEADER DA METODOLOGIA */
.methodology-header {
  text-align: center;
  padding: 6rem 0 4rem;
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.methodology-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.05;
  z-index: 0;
}

.methodology-header h1 {
  font-size: 3rem;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.methodology-header h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--secondary);
  border-radius: 2px;
}

.methodology-header p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

/* HERO IMAGE COM EFEITO PARALLAX */
.methodology-hero-image {
  margin: 3rem auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: opacity 0.6s ease;
  max-width: 1000px;
  position: relative;
}

.parallax-wrapper {
  perspective: 1000px;
  transform-style: preserve-3d;
  overflow: visible;
  position: relative;
  z-index: 0;
}

.methodology-hero-image {
  transform: rotateX(5deg);
  transition: var(--transition);
  z-index: 0;
}

.methodology-hero-image:hover {
  transform: perspective(1000px) rotateX(0deg);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}


.methodology-hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 100%);
  z-index: 2;
}

/* PASSOS COM IMAGEM - EFEITO ZOOM E OVERLAY */
.step-with-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin: 8rem 0;
  position: relative;
  padding:60px 5%;
}

.step-with-image.reverse {
  grid-template-columns: 1fr 1fr;
  direction: rtl;
}

.step-content {
  direction: ltr;
  position: relative;
  z-index: 2;
}

.step-with-image.reverse .step-content {
  direction: ltr;
}

.step-content h2 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  color: var(--dark);
  position: relative;
  display: inline-block;
}

.step-content h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
}

.methodology-list {
  list-style: none;
  margin: 2rem 0;
}

.methodology-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.methodology-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  background-color: var(--primary);
  border-radius: 50%;
  transform: scale(0);
  transition: var(--transition);
}

.step-with-image:hover .methodology-list li::before {
  transform: scale(1);
}

.step-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  transform: translateZ(0);
}

.step-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(37, 99, 235, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
  z-index: 1;
  opacity: 0;
  transition: var(--transition);
}

.step-with-image:hover .step-image::before {
  opacity: 1;
}

.step-image img {
  transition: var(--transition);
  transform: scale(1);
}

.step-with-image:hover .step-image img {
  transform: scale(1.05);
}

/* SEÇÃO DE CARACTERÍSTICAS */
.methodology-features {
  padding: 6rem 0;
  text-align: center;
  background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
  position: relative;
  padding:60px 5%;
}

.methodology-features h2 {
  font-size: 2.5rem;
  margin-bottom: 5rem;
  position: relative;
  display: inline-block;
}

.methodology-features h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--secondary);
  border-radius: 2px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--primary);
  transition: var(--transition);
  z-index: -1;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
  height: 100%;
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
  border-radius: 50%;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  transform: rotate(10deg) scale(1.1);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(245, 158, 11, 0.2) 100%);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

/* TABELA COMPARATIVA MODERNA */
.methodology-comparison {
  padding: 60px 5%;
}

.methodology-comparison h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 4rem;
  position: relative;
}

.methodology-comparison h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--secondary);
  border-radius: 2px;
}

.comparison-table {
  overflow-x: auto;
  padding: 1rem 0;
}

.comparison-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 800px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.comparison-table th {
  background: var(--primary);
  color: white;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-weight: 600;
}

.comparison-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:nth-child(even) {
  background-color: #f8fafc;
}

.comparison-table tr:hover td {
  background-color: #f1f5f9;
}

.comparison-table td:nth-child(3) {
  font-weight: 600;
  color: var(--primary);
}

.comparison-table td:nth-child(3)::after {
  content: '✓';
  margin-left: 8px;
  color: var(--success);
}

/* CTA FINAL COM EFEITO GRADIENTE */
.cta-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 60px 5%;
  border-radius: 16px;
  margin: 6rem auto;
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-demo::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
  z-index: 1;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  color: white;
}

.cta-content p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: white;
  color: var(--primary);
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.cta-image {
  position: relative;
  z-index: 2;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: perspective(1000px) rotateY(-10deg);
  transition: var(--transition);
}

.cta-image:hover {
  transform: perspective(1000px) rotateY(0deg);
}

/* ANIMAÇÕES E EFEITOS ESPECIAIS */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.feature-icon {
  animation: float 4s ease-in-out infinite;
}

.feature-card:nth-child(2) .feature-icon {
  animation-delay: 0.2s;
}

.feature-card:nth-child(3) .feature-icon {
  animation-delay: 0.4s;
}

.feature-card:nth-child(4) .feature-icon {
  animation-delay: 0.6s;
}

/* RESPONSIVIDADE */
@media (max-width: 1024px) {
  .step-with-image, .cta-demo {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .step-with-image.reverse {
    direction: ltr;
  }
  
  .step-image, .cta-image {
    order: -1;
  }
  
  .methodology-header h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .methodology-header {
    padding: 4rem 0;
  }
  
  .methodology-header h1 {
    font-size: 2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .cta-demo {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .methodology-header h1 {
    font-size: 1.75rem;
  }
  
  .step-content h2, .methodology-features h2, .methodology-comparison h2 {
    font-size: 1.75rem;
  }
}
/* ANIMAÇÕES */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animated {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* TOOLTIPS */
.tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 10;
  margin-bottom: 10px;
}

.tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: var(--dark) transparent transparent transparent;
}

/* LOADING LAZY */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
}