/* Martech Master - Dark Theme Styles (Exact Recreation) */

:root {
  --primary: #8B5CF6;
  --primary-dark: #7C3AED;
  --primary-light: #A78BFA;
  --dark: #0A0A1A;
  --dark-secondary: #12122A;
  --dark-tertiary: #0F0F23;
  --gray-800: #1e293b;
  --gray-700: #334155;
  --gray-600: #475569;
  --gray-500: #64748b;
  --gray-400: #94a3b8;
  --gray-300: #cbd5e1;
}

/* Base styles */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #0A0A1A 0%, #0F0F23 30%, #12122A 100%);
  min-height: 100vh;
}

/* Custom background gradients - Darker */
.bg-dark-950 {
  background: linear-gradient(135deg, #0A0A1A 0%, #0F0F23 30%, #12122A 100%);
  position: relative;
}

.bg-dark-950::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at top, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.bg-card-gradient {
  background: linear-gradient(145deg, rgba(15, 15, 35, 0.8) 0%, rgba(26, 26, 46, 0.6) 100%);
  backdrop-filter: blur(10px);
}

.bg-gradient-purple {
  background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%);
}

/* Resource cards - Hover color change */
.resource-card {
  background: linear-gradient(145deg, rgba(10, 10, 26, 0.9) 0%, rgba(18, 18, 42, 0.7) 100%);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 1.5rem;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
}

.resource-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.1) 0%, rgba(124, 58, 237, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.resource-card:hover {
  transform: translateY(-12px);
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.15) 0%, rgba(124, 58, 237, 0.1) 100%);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 25px 50px rgba(139, 92, 246, 0.25), 0 0 40px rgba(139, 92, 246, 0.15);
}

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

.resource-card:hover h3,
.resource-card:hover p {
  color: #ffffff !important;
}

.resource-card:hover .fas {
  color: #ffffff !important;
  text-shadow: 0 0 20px rgba(139, 92, 246, 0.8);
}

/* Statistics counter animation - Interactive counting */
.stat-counter {
  opacity: 0;
  transform: translateY(30px);
  animation: slideUpFade 1s ease forwards;
}

.stat-counter:nth-child(2) {
  animation-delay: 0.3s;
}

.stat-counter:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes slideUpFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animated counter number */
.counter-number {
  font-variant-numeric: tabular-nums;
  transition: all 0.1s ease;
}

.counter-number.counting {
  color: #8B5CF6 !important;
  text-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
}

/* Counter glow effect */
@keyframes counterGlow {
  0%, 100% {
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
  }
  50% {
    text-shadow: 0 0 25px rgba(139, 92, 246, 0.8), 0 0 35px rgba(139, 92, 246, 0.6);
  }
}

.counter-number.animate-glow {
  animation: counterGlow 2s ease-in-out;
}

/* Hover animations for resource cards */
.resource-card .fas {
  transition: transform 0.3s ease;
}

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

.resource-card a {
  transition: all 0.3s ease;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .resource-card {
    padding: 1.5rem;
  }
  
  h1 {
    font-size: 3rem !important;
    line-height: 1.1;
  }
  
  .stat-counter div:first-child {
    font-size: 3rem !important;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 15, 35, 0.5);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #8B5CF6, #A78BFA);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #7C3AED, #8B5CF6);
}

/* Focus states for accessibility */
button:focus-visible,
a:focus-visible {
  outline: 2px solid #8B5CF6;
  outline-offset: 2px;
}

/* Loading animation */
.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(139, 92, 246, 0.3);
  border-radius: 50%;
  border-top-color: #8B5CF6;
  animation: spin 1s linear infinite;
}

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

/* Fade in animation for sections */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Gradient text effect - Branco para Roxo */
.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #E5E7EB 30%, #A78BFA 70%, #8B5CF6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  text-shadow: 0 4px 8px rgba(139, 92, 246, 0.3);
}

/* Hero title gradient - EXATO do original */
.hero-title {
  font-weight: 900;
  text-shadow: 0 8px 16px rgba(139, 92, 246, 0.4);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.8));
}

/* Marketing - Branco puro */
.hero-title .marketing-text {
  color: #ffffff;
  display: block;
}

/* Amplificado - Gradiente roxo vibrante */
.hero-title .amplificado-text {
  background: linear-gradient(135deg, #A855F7 0%, #9333EA 25%, #7C3AED 50%, #6366F1 75%, #4F46E5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

/* Section titles base styles */
.section-title {
  font-weight: 800;
  font-size: 3.5rem !important; /* Maior que o padrão */
  line-height: 1.1;
  letter-spacing: -0.02em;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.7));
}

/* Texto branco para palavras normais */
.section-title-white {
  color: #ffffff;
}

/* Gradiente para palavras-chave específicas */
.section-title-gradient {
  background: linear-gradient(90deg, #ffffff 0%, #8B5CF6 50%, #3B82F6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Mobile responsiveness for section titles */
@media (max-width: 768px) {
  .section-title {
    font-size: 2.5rem !important;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 2rem !important;
  }
}

/* Testimonial cards hover effect */
.testimonial-card {
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(139, 92, 246, 0.1);
}

/* Button hover effects */
.hero-btn {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hero-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.hero-btn:hover::before {
  left: 100%;
}

/* Pricing section enhancement */
.pricing-card {
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #8B5CF6, #A78BFA);
}

/* Mobile menu slide animation */
#mobileMenu {
  transition: all 0.3s ease;
  transform: translateY(-10px);
  opacity: 0;
}

#mobileMenu:not(.hidden) {
  transform: translateY(0);
  opacity: 1;
}

/* Performance optimizations */
.resource-card,
.testimonial-card,
.stat-counter {
  will-change: transform;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .resource-card:hover,
  .testimonial-card:hover {
    transform: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .resource-card {
    border-width: 2px;
    border-color: #8B5CF6;
  }
  
  .bg-card-gradient {
    background: #1A1A2E;
    border: 2px solid #8B5CF6;
  }
}

/* Print styles */
@media print {
  body {
    background: white !important;
    color: black !important;
  }
  
  .resource-card,
  .testimonial-card {
    border: 1px solid #000;
    background: white;
    color: black;
  }
  
  .text-primary-400,
  .text-white {
    color: black !important;
  }
}