/* WAVE PROGRESS - CONVERSION OPTIMIZATION CSS */
/* Táticas Avançadas de Retenção e Conversão */

:root {
  --primary-blue: #1c92d2;
  --primary-blue-dark: #1774a8;
  --accent-gold: #FFD700;
  --accent-gold-dark: #e6c200;
  --success-green: #10b981;
  --urgency-red: #ef4444;
  --trust-purple: #8b5cf6;
}

/* EFEITOS DE ENTRADA AVANÇADOS */
@keyframes slideInFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-100px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  0% {
    opacity: 0;
    transform: translateX(100px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(28, 146, 210, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(28, 146, 210, 0.6);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translateY(0);
  }
  40%, 43% {
    transform: translateY(-10px);
  }
  70% {
    transform: translateY(-5px);
  }
  90% {
    transform: translateY(-2px);
  }
}

/* INTERSECTION OBSERVER ANIMATIONS */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.animate {
  opacity: 1;
  transform: translateY(0);
}

.animate-left {
  opacity: 0;
  transform: translateX(-100px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-left.animate {
  opacity: 1;
  transform: translateX(0);
}

.animate-right {
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-right.animate {
  opacity: 1;
  transform: translateX(0);
}

.animate-scale {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-scale.animate {
  opacity: 1;
  transform: scale(1);
}

/* BOTÕES DE CONVERSÃO SOFISTICADOS */
.conversion-btn {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  border: none;
  border-radius: 12px;
  padding: 16px 32px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.5px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: linear-gradient(135deg, 
    var(--primary-blue) 0%, 
    var(--primary-blue-dark) 100%);
  color: white;
  border: 2px solid transparent;
  box-shadow:
    0 8px 25px rgba(28, 146, 210, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.conversion-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 15px 35px rgba(28, 146, 210, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  border-color: rgba(255, 255, 255, 0.2);
}

.conversion-btn:active {
  transform: translateY(-1px) scale(0.98);
  transition: all 0.1s ease;
}

/* Botão Premium - Principal */
.premium-btn {
  background: linear-gradient(135deg, 
    var(--primary-blue) 0%, 
    var(--primary-blue-dark) 50%,
    var(--accent-gold) 100%);
  box-shadow:
    0 12px 30px rgba(28, 146, 210, 0.3),
    0 0 0 1px rgba(255, 215, 0, 0.1) inset;
}

.premium-btn:hover {
  box-shadow:
    0 20px 40px rgba(28, 146, 210, 0.4),
    0 0 0 1px rgba(255, 215, 0, 0.2) inset;
  transform: translateY(-4px) scale(1.03);
}

/* Botão Secondary - Secundário */
.secondary-btn {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    rgba(255, 255, 255, 0.05) 100%);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  backdrop-filter: blur(10px);
  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.secondary-btn:hover {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.15) 0%, 
    rgba(255, 255, 255, 0.1) 100%);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

/* BOTÃO URGÊNCIA */
.urgency-btn {
  background: linear-gradient(135deg, var(--urgency-red) 0%, #dc2626 100%);
  animation: pulse 2s infinite;
}

.urgency-btn::after {
  content: '🔥';
  margin-left: 10px;
  animation: bounce 1s infinite;
}

/* BOTÃO SECUNDÁRIO ELEGANTE */
.secondary-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  box-shadow: 
    0 16px 48px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(28, 146, 210, 0.1) inset;
}

/* CARDS SOFISTICADOS */
.conversion-card {
  background: rgba(17, 24, 39, 0.4);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .conversion-card {
    padding: 20px;
    margin: 0 0.5rem;
    border-radius: 12px;
  }
}

.conversion-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-gold), var(--primary-blue));
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

.conversion-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(28, 146, 210, 0.2);
  box-shadow: 
    0 16px 48px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(28, 146, 210, 0.1) inset;
}

/* BADGES DE CONFIANÇA */
.trust-badge {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.trust-badge:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.15) 0%, 
    rgba(255, 255, 255, 0.08) 100%);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}



/* PROVA SOCIAL */
.social-proof {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  backdrop-filter: blur(15px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.social-proof::before {
  content: '👥';
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  opacity: 0.7;
}

.social-proof-number {
  font-size: 32px;
  font-weight: 900;
  color: var(--trust-purple);
  display: block;
}

/* ELEMENTOS FLUTUANTES */
.floating-element {
  position: absolute;
  pointer-events: none;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(2n) {
  animation-delay: -2s;
  animation-duration: 8s;
}

.floating-element:nth-child(3n) {
  animation-delay: -4s;
  animation-duration: 10s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-20px) rotate(5deg);
  }
  66% {
    transform: translateY(-10px) rotate(-5deg);
  }
}

/* SEÇÃO HERO OTIMIZADA */
.hero-optimized {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: radial-gradient(ellipse at center, rgba(28, 146, 210, 0.1) 0%, rgba(0, 0, 0, 0.9) 70%);
  overflow: hidden;
  padding: 6rem 0 2rem 0; /* Padding-top reduzido para header menor */
}

@media (max-width: 640px) {
  .hero-optimized {
    padding: 5rem 0 1rem 0; /* Padding-top ajustado para header menor em mobile */
    min-height: 100vh;
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  animation: fadeInUp 1s ease-out;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 640px) {
  .hero-content {
    padding: 0 0.5rem;
  }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 30px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  background: linear-gradient(135deg, #ffffff 0%, var(--primary-blue) 50%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideInFromLeft 1s ease-out 0.3s both;
}

@media (max-width: 640px) {
  .hero-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 20px;
  }
}

.hero-subtitle {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  animation: slideInFromRight 1s ease-out 0.6s both;
}

/* NÚMEROS DE IMPACTO */
.impact-numbers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin: 60px 0;
}

.impact-number {
  text-align: center;
  padding: 30px 20px;
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
}

.impact-number:hover {
  transform: translateY(-10px) scale(1.05);
  border-color: var(--primary-blue);
  box-shadow: 0 20px 40px rgba(28, 146, 210, 0.2);
}

.impact-value {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 10px;
}

.impact-label {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* TESTIMONIALS OTIMIZADOS */
.testimonial-card {
  background: rgba(17, 24, 39, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px;
  position: relative;
  transition: all 0.4s ease;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 60px;
  color: var(--accent-gold);
  font-family: serif;
  line-height: 1;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-gold);
  box-shadow: 0 15px 40px rgba(255, 215, 0, 0.2);
}

.testimonial-text {
  font-style: italic;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.9);
}

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

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
}

.testimonial-info h4 {
  color: white;
  font-weight: 700;
  margin-bottom: 5px;
}

.testimonial-info p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

/* SEÇÃO DE GARANTIA */
.guarantee-section {
  background: linear-gradient(135deg, var(--success-green) 0%, #059669 100%);
  padding: 60px 30px;
  border-radius: 20px;
  text-align: center;
  margin: 80px 0;
  position: relative;
  overflow: hidden;
}

.guarantee-section::before {
  content: '🛡️';
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 40px;
  opacity: 0.7;
}

.guarantee-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: white;
  margin-bottom: 20px;
}

.guarantee-text {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
}

/* STICKY CTA */
.sticky-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background: linear-gradient(135deg, var(--urgency-red) 0%, #dc2626 100%);
  color: white;
  padding: 15px 25px;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4);
  animation: pulse 2s infinite;
  transition: all 0.3s ease;
}

.sticky-cta:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 40px rgba(239, 68, 68, 0.6);
}

/* PROGRESS BAR */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-gold));
  z-index: 10000;
  transition: width 0.3s ease;
}



/* LOADING ANIMATIONS */
.loading-skeleton {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 25%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.1) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 10px;
}

/* MICRO-INTERAÇÕES */
.hover-lift {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hover-lift:hover {
  transform: translateY(-5px);
}

.hover-scale {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hover-scale:hover {
  transform: scale(1.05);
}

.hover-glow {
  transition: all 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 30px rgba(28, 146, 210, 0.4);
}

/* MACBOOK MOCKUPS */
.macbook-container {
  perspective: 1000px;
  margin-bottom: 3rem;
}

.macbook-mockup {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto 2rem;
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.macbook-mockup:hover {
  transform: rotateX(-5deg) rotateY(5deg);
}

.macbook-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  background: #1a1a1a;
  border-radius: 12px 12px 0 0;
  border: 8px solid #2d2d2d;
  border-bottom: none;
  overflow: hidden;
  box-shadow: 
    0 0 0 2px rgba(255, 255, 255, 0.1),
    0 20px 40px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.website-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.3s ease;
}

.macbook-mockup:hover .website-screenshot {
  transform: scale(1.02);
}

.macbook-base {
  width: 100%;
  height: 20px;
  background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 50%, #c0c0c0 100%);
  border-radius: 0 0 20px 20px;
  position: relative;
  box-shadow: 
    0 5px 15px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.macbook-base::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #999 0%, #bbb 50%, #999 100%);
  border-radius: 2px;
}

.macbook-notch {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 6px;
  background: #2d2d2d;
  border-radius: 0 0 8px 8px;
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.3);
}

.project-info {
  background: rgba(17, 24, 39, 0.4);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.project-info:hover {
  background: rgba(17, 24, 39, 0.6);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
  .conversion-btn {
    padding: 15px 30px;
    font-size: 16px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .impact-numbers {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  
  .sticky-cta {
    bottom: 10px;
    right: 10px;
    padding: 12px 20px;
    font-size: 14px;
  }
}

@media (max-width: 1024px) {
  .macbook-container {
    margin-bottom: 2rem;
  }
  
  .macbook-mockup {
    max-width: 500px;
  }
}

@media (max-width: 640px) {
  .hero-optimized {
    padding: 1rem 0;
    min-height: 100vh;
  }
  
  .hero-content {
    padding: 0 0.5rem;
  }
  
  .conversion-card {
    padding: 20px;
    margin: 0 0.5rem;
    border-radius: 12px;
  }
  
  .hero-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 20px;
  }
  
  .macbook-mockup {
    max-width: 100%;
    margin-bottom: 1.5rem;
  }
  
  .macbook-mockup:hover {
    transform: none;
  }
  
  .project-info {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .impact-numbers {
    grid-template-columns: 1fr;
  }
  
  .conversion-card {
    padding: 20px;
  }
  
  .testimonial-card {
    padding: 20px;
  }
}

/* PERFORMANCE OPTIMIZATIONS */
* {
  will-change: auto;
}

.animate-on-scroll,
.conversion-btn,
.conversion-card {
  will-change: transform, opacity;
}

/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* DARK MODE SUPPORT */
@media (prefers-color-scheme: dark) {
  .conversion-card {
    background: rgba(17, 24, 39, 0.8);
  }
}
