:root {
  --brand: #4f46e5;
  --brand-dark: #4338ca;
  --accent: #22c55e;
  --surface: #0f172a;
  --neutral-0: #ffffff;
  --neutral-50: #f9fafb;
  --neutral-100: #f1f5f9;
  --neutral-200: #e2e8f0;
  --neutral-700: #334155;
  --neutral-900: #0f172a;
  --max-width: 1180px;
  --rounded-lg: 1rem;
  --shadow-soft: 0 20px 60px rgba(15, 23, 42, 0.12);
  --transition: all 0.25s ease;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--neutral-700);
  background-color: var(--neutral-0);
  line-height: 1.7;
  font-size: 1rem;
}

body.dark-mode {
  background-color: #080b16;
  color: #e2e8f0;
}

img {
  max-width: 100%;
  height: auto;
}

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

a:hover,
a:focus {
  color: var(--brand-dark);
}

section {
  padding: 5rem 0;
}

.section-heading {
  max-width: 680px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--neutral-900);
  margin-bottom: 1rem;
}

.section-heading p {
  color: var(--neutral-700);
  font-size: 1.05rem;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 8rem 0 6rem;
  background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.18), transparent 55%),
              radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.18), transparent 55%);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  font-size: 0.95rem;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.12);
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--neutral-900);
}

.hero__subtitle {
  font-size: 1.2rem;
  color: var(--neutral-700);
  margin: 1.5rem 0 2rem;
}

.card-feature {
  height: 100%;
  border: none;
  border-radius: var(--rounded-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.99));
  box-shadow: var(--shadow-soft);
  padding: 2rem;
  transition: var(--transition);
}

.card-feature:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(79, 70, 229, 0.12);
}

.badge-soft {
  background-color: rgba(79, 70, 229, 0.12);
  color: var(--brand);
  border-radius: 999px;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat {
  flex: 1 1 200px;
}

.stat strong {
  display: block;
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--brand);
}

.embed-responsive {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: var(--rounded-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.embed-responsive iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.integrations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.integration-tile {
  border: 1px solid var(--neutral-200);
  border-radius: var(--rounded-lg);
  padding: 1.5rem;
  background-color: var(--neutral-0);
  transition: var(--transition);
}

.integration-tile:hover {
  border-color: var(--brand);
  box-shadow: 0 16px 40px rgba(67, 56, 202, 0.12);
}

.testimonial-card {
  border: none;
  border-radius: 1.25rem;
  padding: 2.5rem;
  background: linear-gradient(160deg, rgba(79, 70, 229, 0.9), rgba(14, 165, 233, 0.9));
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.image-frame {
  position: relative;
  border-radius: clamp(1.5rem, 3vw, 2.25rem);
  overflow: hidden;
  box-shadow: 0 32px 70px rgba(15, 23, 42, 0.22);
}

.image-frame::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.image-frame__img {
  display: block;
  width: 100%;
}

.metric-card {
  border-radius: clamp(1.4rem, 3vw, 2rem);
  padding: clamp(1.8rem, 3vw, 2.4rem);
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.3);
}

.metric-card strong {
  display: block;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  line-height: 1.05;
  font-weight: 700;
}

.metric-card span {
  display: block;
  margin-top: 0.5rem;
  font-size: 1.05rem;
  color: rgba(226, 232, 240, 0.82);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.8rem;
}

footer {
  background: #0b1121;
  color: rgba(226, 232, 240, 0.92);
  padding: 4rem 0 2rem;
}

footer a {
  color: rgba(226, 232, 240, 0.92);
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  margin-top: 2rem;
  padding-top: 1.5rem;
  font-size: 0.95rem;
}

.btn-primary {
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-dark);
  --bs-btn-hover-border-color: var(--brand-dark);
  --bs-btn-active-bg: var(--brand-dark);
  --bs-btn-active-border-color: var(--brand-dark);
  box-shadow: 0 12px 24px rgba(67, 56, 202, 0.25);
}

.btn-outline-primary {
  --bs-btn-color: var(--brand);
  --bs-btn-border-color: rgba(79, 70, 229, 0.4);
  --bs-btn-hover-bg: rgba(79, 70, 229, 0.08);
  --bs-btn-hover-border-color: var(--brand);
}

.navbar {
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
  transition: var(--transition);
}

.navbar-scrolled {
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(12px);
}

.navbar-nav .nav-link {
  font-weight: 600;
  margin: 0 0.35rem;
  color: rgba(15, 23, 42, 0.75);
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.8);
}

.navbar .btn {
  margin-left: 0.75rem;
}

.badge-light {
  background-color: rgba(226, 232, 240, 0.2);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
}

.feature-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(79, 70, 229, 0.14);
  color: var(--brand);
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.timeline {
  border-left: 2px solid var(--neutral-200);
  padding-left: 2rem;
}

.timeline-step {
  margin-bottom: 2.5rem;
  position: relative;
}

.timeline-step::before {
  content: "";
  position: absolute;
  left: -2.65rem;
  top: 0.35rem;
  width: 0.75rem;
  height: 0.75rem;
  background-color: var(--brand);
  border-radius: 999px;
}

.legal-list ul {
  padding-left: 1.25rem;
}

.legal-list li + li {
  margin-top: 0.6rem;
}

@media (max-width: 991px) {
  .navbar .btn {
    margin-left: 0;
    margin-top: 1rem;
  }

  .stats {
    gap: 1.25rem;
  }

  section {
    padding: 4rem 0;
  }
}

@media (prefers-color-scheme: dark) {
  body:not(.light-mode) {
    background-color: #080b16;
    color: #e2e8f0;
  }
}

body.dark-mode .card-feature,
body.dark-mode .integration-tile {
  background: rgba(15, 23, 42, 0.75);
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.15);
}

body.dark-mode .metric-card {
  background: rgba(12, 18, 32, 0.95);
  color: #f8fafc;
  box-shadow: 0 28px 60px rgba(8, 12, 21, 0.5);
}

body.dark-mode .metric-card span {
  color: rgba(226, 232, 240, 0.78);
}

body.dark-mode .section-heading h2,
body.dark-mode .hero__title {
  color: #f8fafc;
}

body.dark-mode .section-heading p {
  color: rgba(226, 232, 240, 0.78);
}

body.dark-mode .navbar {
  background-color: rgba(8, 11, 22, 0.9) !important;
}

body.dark-mode footer {
  background-color: #050910;
}

/* ============================================
   NOVOS COMPONENTES - MOCKUP 2024
   ============================================ */

/* Gradientes adicionais */
:root {
  --gradient-purple: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-blue: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-green: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  --gradient-orange: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  --shadow-dramatic: 0 30px 80px rgba(79, 70, 229, 0.25);
  --section-spacing: 8rem;
}

/* Video Player Custom com Play Button */
.video-player-wrapper {
  position: relative;
  border-radius: var(--rounded-lg);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-soft);
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: var(--transition);
  z-index: 2;
}

.video-overlay:hover {
  background: rgba(0, 0, 0, 0.6);
}

.play-btn-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(79, 70, 229, 0.95);
  border: 3px solid rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 8px 32px rgba(79, 70, 229, 0.4);
}

.play-btn-large:hover {
  transform: scale(1.15);
  background: var(--brand);
  box-shadow: 0 12px 48px rgba(79, 70, 229, 0.6);
}

.play-btn-large svg {
  width: 32px;
  height: 32px;
  fill: white;
  margin-left: 4px;
}

/* Benefits Grid - Cards Roxos do Mockup */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.benefit-card {
  background: var(--gradient-purple);
  color: white;
  padding: 2rem;
  border-radius: 1.25rem;
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.benefit-card:hover::before {
  opacity: 1;
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 80px rgba(102, 126, 234, 0.4);
}

.benefit-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: white;
}

.benefit-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.95;
  margin: 0;
}

.benefit-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Metric Cards Animados - Estilo do Mockup */
.metric-card-animated {
  background: var(--gradient-purple);
  border-radius: 1.5rem;
  padding: 2.5rem;
  color: white;
  box-shadow: 0 24px 60px rgba(102, 126, 234, 0.3);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.metric-card-animated::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.metric-card-animated:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 32px 80px rgba(102, 126, 234, 0.5);
}

.metric-card-animated:hover::after {
  opacity: 1;
}

.metric-card-animated strong {
  display: block;
  font-size: clamp(2.8rem, 5vw, 4rem);
  line-height: 1;
  font-weight: 800;
  margin-bottom: 0.75rem;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.metric-card-animated span {
  display: block;
  font-size: 1.05rem;
  opacity: 0.95;
  line-height: 1.5;
}

/* Variantes de color para métricas */
.metric-card-animated.variant-blue {
  background: var(--gradient-blue);
}

.metric-card-animated.variant-green {
  background: var(--gradient-green);
}

.metric-card-animated.variant-orange {
  background: var(--gradient-orange);
}

/* Stats Counter com animação */
.stats-large {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.stat-large {
  flex: 1 1 240px;
  text-align: center;
}

.stat-large strong {
  display: block;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-large span {
  display: block;
  font-size: 1rem;
  color: var(--neutral-700);
  line-height: 1.4;
}

/* Module Showcase Grid */
.module-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.module-card {
  background: white;
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
  transition: var(--transition);
  border: 1px solid var(--neutral-200);
}

.module-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(79, 70, 229, 0.15);
  border-color: var(--brand);
}

.module-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.module-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(79, 70, 229, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
}

.module-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--neutral-900);
  margin: 0;
}

.module-card p {
  color: var(--neutral-700);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.module-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.module-card ul li {
  padding: 0.5rem 0;
  padding-left: 1.75rem;
  position: relative;
  color: var(--neutral-700);
  font-size: 0.95rem;
}

.module-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
}

/* Results Timeline Section */
.results-timeline {
  position: relative;
  padding: 3rem 0;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  position: relative;
}

.timeline-item {
  text-align: center;
  position: relative;
}

.timeline-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-purple);
  color: white;
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  box-shadow: 0 12px 32px rgba(102, 126, 234, 0.3);
}

.timeline-item h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--neutral-900);
  margin-bottom: 0.75rem;
}

.timeline-item p {
  color: var(--neutral-700);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

/* Comparison Table Enhanced */
.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--rounded-lg);
  box-shadow: var(--shadow-soft);
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
}

.comparison-table thead {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.comparison-table th {
  padding: 1.25rem 1rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.comparison-table td {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--neutral-200);
}

.comparison-table tbody tr:hover {
  background: var(--neutral-50);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

/* CTA Banner com gradiente */
.cta-banner {
  background: var(--gradient-purple);
  color: white;
  padding: 4rem 2rem;
  border-radius: 2rem;
  text-align: center;
  margin: 4rem 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(102, 126, 234, 0.3);
}

.cta-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.cta-banner h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.cta-banner p {
  font-size: 1.25rem;
  opacity: 0.95;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.cta-banner .btn {
  position: relative;
  z-index: 1;
}

/* Dark mode adjustments para novos componentes */
body.dark-mode .benefit-card,
body.dark-mode .metric-card-animated {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

body.dark-mode .module-card {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(148, 163, 184, 0.15);
}

body.dark-mode .module-card h3 {
  color: #f8fafc;
}

body.dark-mode .timeline-item h4 {
  color: #f8fafc;
}

body.dark-mode .comparison-table {
  background: rgba(15, 23, 42, 0.75);
}

body.dark-mode .comparison-table td {
  border-bottom-color: rgba(148, 163, 184, 0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-large {
    gap: 2rem;
  }
  
  .timeline-grid {
    grid-template-columns: 1fr;
  }
  
  .metric-card-animated {
    padding: 2rem;
  }
  
  .cta-banner {
    padding: 3rem 1.5rem;
  }
}
