/* General Section Styles */
.section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

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

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.section-subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* === BENEFÍCIOS IA === */
#beneficios {
  background: var(--bg-color);
}

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

.benefit-card {
  padding: 40px 32px;
  border-radius: 24px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: all var(--transition-normal);
  position: relative;
  z-index: 1;
}

.benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
  border-color: rgba(255, 90, 31, 0.3);
}

.benefit-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 90, 31, 0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 24px;
}

.benefit-card:nth-child(2) .benefit-icon {
  background: rgba(32, 66, 192, 0.1);
  color: var(--ai-highlight);
}

.benefit-card:nth-child(3) .benefit-icon {
  background: rgba(0, 212, 255, 0.1);
  color: var(--secondary-color);
}

.benefit-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.benefit-text {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* === CRM AUTÔNOMO === */
#automacao {
  background: #ffffff; /* Slightly different background to separate sections */
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.automacao-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.automacao-content {
  max-width: 500px;
}

.tech-text-box {
  margin-top: 32px;
  padding: 28px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--ai-highlight);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.tech-text-box p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}
.tech-text-box p:last-child {
  margin-bottom: 0;
}

/* Animated Kanban */
.kanban-wrapper {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
  height: 400px;
  overflow-x: auto;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.kanban-wrapper::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

.kanban-inner {
  display: flex;
  gap: 16px;
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 600px; /* Reduces horizontal scrolling on normal desktop screens */
}

.kanban-col {
  flex: 1;
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.03);
}

.kanban-col-header {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 14px;
  border-bottom: 2px solid rgba(0,0,0,0.03);
}

.kanban-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
  height: 64px;
}

.kanban-card-placeholder {
  background: rgba(0,0,0,0.01);
  border: 2px dashed rgba(0,0,0,0.06);
  border-radius: 10px;
  height: 64px;
}

/* The Animated Card */
.kanban-card-animated {
  position: absolute;
  top: 61px; /* Matches placeholder position */
  width: calc(20% - 44.8px); /* 20% - 12.8px (col gap math) - 32px (padding) */
  background: #fff;
  border: 2px solid var(--ai-highlight);
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 10px 25px rgba(32, 66, 192, 0.15);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: moveKanban 10s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.kanban-card-animated .avatar {
  width: 24px;
  height: 24px;
  margin: 0;
  background: var(--ai-highlight);
  color: #fff;
  border: none;
}

.kanban-card-animated .lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.kanban-card-animated .line {
  height: 4px;
  background: #f0f0f0;
  border-radius: 2px;
}
.kanban-card-animated .line.short { width: 40%; }

@keyframes moveKanban {
  0%, 5% { left: 16px; opacity: 0; transform: scale(0.9); }
  10%, 15% { left: 16px; opacity: 1; transform: scale(1); }
  25%, 35% { left: calc(20% + 19.2px); }
  45%, 55% { left: calc(40% + 22.4px); }
  65%, 75% { left: calc(60% + 25.6px); }
  85%, 90% { left: calc(80% + 28.8px); opacity: 1; transform: scale(1); }
  95%, 100% { left: calc(80% + 28.8px); opacity: 0; transform: scale(0.9); }
}

/* === FUNIL INTELIGENTE === */
#funil {
  background: var(--bg-color);
}

.funil-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.funil-content {
  order: 2; /* Content on right, Dashboard on left visually? Actually, let's keep content left, dashboard right */
}

.funil-features {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.funil-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 500;
}

.feature-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 90, 31, 0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* Dashboard Mockup */
.dashboard-mockup {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0,0,0,0.05);
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.dashboard-mockup::after {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  bottom: -20px;
  left: -20px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, rgba(255,255,255,0) 70%);
  z-index: -1;
  border-radius: 40px;
}

.widget {
  background: var(--bg-color);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.widget.full-width {
  grid-column: 1 / -1;
}

.widget-title {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
}

.widget-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.widget-chart {
  margin-top: 16px;
  height: 60px;
  background: repeating-linear-gradient(
    90deg,
    #f0f0f0,
    #f0f0f0 2px,
    transparent 2px,
    transparent 20px
  );
  position: relative;
}

.chart-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 90, 31, 0.2) 0%, rgba(255, 90, 31, 0) 100%);
  border-top: 3px solid var(--primary-color);
  clip-path: polygon(0 80%, 20% 60%, 40% 70%, 60% 40%, 80% 50%, 100% 20%, 100% 100%, 0 100%);
}

.widget-trend {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--primary-color);
  font-weight: 600;
}
.widget-trend.negative {
  color: #FF3B30;
}

/* === DASHBOARD CAROUSEL === */
.dashboard-carousel-wrapper {
  padding: 0 40px; /* space for arrows */
}

.dashboard-carousel {
  overflow: hidden;
  border-radius: 20px;
}

.dashboard-carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.dashboard-slide {
  min-width: 100%;
  flex: 0 0 100%;
  padding: 0;
  box-sizing: border-box;
}

.carousel-arrow {
  position: absolute;
  top: calc(50% - 24px);
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: all var(--transition-fast);
  z-index: 10;
}

.carousel-arrow:hover {
  background: #fff;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  color: var(--primary-color);
}

.carousel-prev { left: -24px; }
.carousel-next { right: -24px; }

.dashboard-carousel-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.dash-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0,0,0,0.1);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition-fast);
}

.dash-dot.active {
  background: var(--primary-color);
  transform: scale(1.3);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .automacao-grid, .funil-grid {
    grid-template-columns: 1fr;
  }
  .automacao-content {
    max-width: 100%;
    text-align: center;
  }
  .tech-text-box {
    text-align: left;
  }
  .kanban-wrapper {
    overflow-x: auto;
    width: 100%;
  }
  .kanban-col {
    min-width: 150px;
  }
}

@media (max-width: 768px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-mockup {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 80px 0;
  }
  .section-title {
    font-size: 2rem;
  }
}

/* === INTEGRAÇÕES === */
#integracoes {
  background: linear-gradient(180deg, #ffffff 0%, #f0f4f8 100%);
  border-top: 1px solid rgba(0,0,0,0.05);
}

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

.integracoes-header p {
  margin-bottom: 8px;
}
.integracoes-header p.highlight-text {
  font-weight: 600;
  color: var(--primary-color);
}

/* Marquee / Animated Grid */
.logos-marquee {
  width: 100%;
  overflow: hidden;
  padding: 32px 0;
  position: relative;
  margin-bottom: 64px;
}

/* Fading edges for marquee */
.logos-marquee::before, .logos-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.logos-marquee::before {
  left: 0;
  background: linear-gradient(to right, #f8fafc 0%, transparent 100%); /* approx bg */
}
.logos-marquee::after {
  right: 0;
  background: linear-gradient(to left, #f8fafc 0%, transparent 100%);
}

.logos-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: scrollMarquee 20s linear infinite;
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-secondary);
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  transition: all var(--transition-fast);
}

.logo-item:hover {
  color: var(--text-primary);
  border-color: rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 24px)); } /* 50% of the duplicated track width minus half gap */
}

/* Integration Cards */
.integracoes-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.int-card {
  padding: 40px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 20px 40px rgba(0,0,0,0.04);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.int-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.08);
}

.int-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.int-card:nth-child(1) .int-card-icon {
  color: #25D366; /* WhatsApp color */
  background: rgba(37, 211, 102, 0.1);
}

.int-card:nth-child(2) .int-card-icon {
  color: #1877F2; /* Meta/Facebook color */
  background: rgba(24, 119, 242, 0.1);
}

.int-card-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.int-card-text {
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .integracoes-cards {
    grid-template-columns: 1fr;
  }
}

/* === DEPOIMENTOS === */
#depoimentos {
  background: #0B1220; /* Dark premium background */
  color: #ffffff;
}

#depoimentos .section-title {
  color: #ffffff;
}

#depoimentos .section-subtitle {
  color: #a0aec0;
}

.testimonial-slider {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  padding: 20px 0;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.testimonial-card {
  min-width: 100%;
  padding: 48px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.testimonial-text {
  font-size: 1.25rem;
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 32px;
  color: #e2e8f0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #fff;
  font-size: 1.2rem;
}

.author-info h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.author-info span {
  font-size: 0.9rem;
  color: #a0aec0;
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slider-dot.active {
  background: var(--primary-color);
  transform: scale(1.2);
}

/* === FAQ === */
#faq {
  background: var(--bg-color);
}

.faq-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.faq-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid #f1f5f9;
  border-radius: 0;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.faq-item.active .faq-question {
  color: var(--primary-color);
}

.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  position: relative;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: #94a3b8;
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.faq-icon::before {
  width: 12px;
  height: 2px;
}

.faq-icon::after {
  width: 2px;
  height: 12px;
}

.faq-item.active .faq-icon {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: rotate(180deg);
}

.faq-item.active .faq-icon::before {
  background: #ffffff;
}

.faq-item.active .faq-icon::after {
  transform: scaleY(0);
  background: #ffffff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
}

.faq-answer-inner {
  padding: 0 24px 24px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* arbitrary large value */
}

/* === CTA FINAL === */
#cta-final {
  background: #0B1220;
  color: #fff;
  position: relative;
  text-align: center;
  padding: 160px 0;
  overflow: hidden;
}

#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.cta-glow-1, .cta-glow-2 {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 1;
  opacity: 0.5;
  pointer-events: none;
}

.cta-glow-1 {
  top: -200px;
  left: -200px;
  background: rgba(255, 90, 31, 0.3);
}

.cta-glow-2 {
  bottom: -200px;
  right: -200px;
  background: rgba(0, 212, 255, 0.3);
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.cta-headline {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #fff 0%, #a0aec0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-subheadline {
  font-size: 1.25rem;
  color: #a0aec0;
  margin-bottom: 48px;
}

.btn-large {
  padding: 20px 40px;
  font-size: 1.125rem;
  border-radius: 16px;
}

/* Footer (Basic cleanup) */
.footer {
  background: #0B1220;
  padding: 40px 0;
  text-align: center;
  color: #a0aec0;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .cta-headline {
    font-size: 2.5rem;
  }
  .testimonial-card {
    padding: 24px;
  }
}
