/* ===========================
   CRM INTELIGENTE - CUSTOM STYLES
   Estética Futurista com Paleta Ciano
   =========================== */

/* ===========================
   1. VARIÁVEIS CSS
   =========================== */
:root {
  /* Dark Theme Base Colors */
  --color-white: #0A0E27;
  --color-black: #141829;
  --color-graphite: #1A202C;
  --color-graphite-dark: #232F4B;

  /* Neon Cyan Accents */
  --color-cyan: #00D9FF;
  --color-blue: #0EA5E9;
  --color-cyan-light: #1AC8E0;

  /* Text Colors for Dark Theme */
  --color-dark: #F0F4F8;
  --color-dark-medium: #E2E8F0;
  --color-gray: #B0BCC4;
  --color-gray-light: #8A98A8;
  --color-gray-muted: #4A5568;

  /* Borders & Dividers */
  --color-border: #2D3E5F;
  --color-border-light: #384860;

  /* Neon Gradients */
  --gradient-cyan: linear-gradient(135deg, #00D9FF 0%, #1AC8E0 100%);
  --gradient-blue-cyan: linear-gradient(135deg, #0EA5E9 0%, #00D9FF 100%);
  --gradient-text-cyan: linear-gradient(135deg, #00D9FF 0%, #1AC8E0 100%);
  --gradient-divider: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.4), transparent);

  /* Neon Glow Shadows */
  --shadow-cyan: 0 0 20px rgba(0, 217, 255, 0.2);
  --shadow-cyan-lg: 0 0 40px rgba(0, 217, 255, 0.3);
  --shadow-cyan-glow: 0 0 60px rgba(0, 217, 255, 0.25);
  --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* ===========================
   2. RESET & GLOBAL STYLES
   =========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #0A0E27 0%, #141829 50%, #0A0E27 100%);
  color: var(--color-dark);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-graphite);
}

::-webkit-scrollbar-thumb {
  background: var(--color-cyan);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-blue);
}

/* ===========================
   3. HEADER STYLES
   =========================== */
#header {
  backdrop-filter: blur(10px);
  background: rgba(20, 24, 41, 0.9);
  border-bottom: 1px solid rgba(0, 217, 255, 0.2);
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

#header.scrolled {
  background: rgba(20, 24, 41, 0.95);
  box-shadow: 0 4px 20px rgba(0, 217, 255, 0.15);
}

.nav-link {
  color: var(--color-gray);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 4px;
}

.nav-link:hover {
  color: var(--color-cyan);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-cyan);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ===========================
   4. BUTTONS
   =========================== */
.btn-primary {
  background: var(--gradient-cyan);
  color: var(--color-white);
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

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

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-cyan-lg);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-large {
  padding: 16px 40px;
  font-size: 18px;
}

.btn-secondary {
  background: transparent;
  color: var(--color-cyan);
  padding: 12px 32px;
  border: 2px solid var(--color-cyan);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--color-cyan);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-cyan);
}

.btn-whatsapp {
  background: var(--gradient-cyan);
  color: var(--color-white);
  padding: 18px 40px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-cyan);
}

.btn-whatsapp:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-cyan-glow);
}

/* ===========================
   5. GRADIENT TEXT
   =========================== */
.gradient-text-cyan {
  background: var(--gradient-text-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* ===========================
   6. CARDS
   =========================== */
.card-base {
  background: var(--color-graphite-dark);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.card-base:hover {
  transform: translateY(-4px);
  border-color: var(--color-cyan);
  box-shadow: var(--shadow-cyan);
}

.card-premium {
  background: var(--color-graphite-dark);
  border: 2px solid transparent;
  border-radius: 20px;
  padding: 48px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  animation: techGlow 4s ease-in-out infinite;
  transform-style: preserve-3d;
}

.card-premium::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--gradient-cyan);
  border-radius: 20px;
  z-index: -1;
  opacity: 0.4;
  filter: blur(20px);
  animation: pulseGlow 3s ease-in-out infinite;
}

.card-premium::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-graphite-dark);
  border-radius: 20px;
  z-index: -1;
}

/* Animated border for premium card */
.card-premium-border {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 20px;
  background: linear-gradient(135deg, #00D9FF, #1AC8E0, #00D9FF, #1AC8E0);
  background-size: 300% 300%;
  z-index: -2;
  animation: gradientRotate 6s ease infinite;
}

.card-feature {
  background: var(--color-graphite);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

.card-feature:hover {
  transform: translateY(-8px);
  border-color: var(--color-cyan);
  box-shadow: var(--shadow-cyan-lg);
}

.card-feature:hover::before {
  left: 100%;
}

/* Tech scan line effect for feature cards */
.card-feature::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-cyan), transparent);
  box-shadow: 0 0 10px var(--color-cyan);
  animation: scanLine 3s ease-in-out infinite;
}

/* ===========================
   7. ICONS
   =========================== */
.icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.icon-circle-small {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-circle-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-circle-premium {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-circle-feature {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

/* ===========================
   8. ANIMATIONS
   =========================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulseCyan {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.6);
  }
  50% {
    opacity: 0.9;
    box-shadow: 0 0 60px rgba(0, 217, 255, 0.9);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Technological animations for premium card */
@keyframes techGlow {
  0%, 100% {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  }
  50% {
    box-shadow: 0 12px 50px rgba(0, 217, 255, 0.4), 0 0 80px rgba(0, 217, 255, 0.2);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.4;
    filter: blur(20px);
  }
  50% {
    opacity: 0.6;
    filter: blur(25px);
  }
}

@keyframes gradientRotate {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Scan line effect for feature cards */
@keyframes scanLine {
  0% {
    top: -10%;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    top: 110%;
    opacity: 0;
  }
}

/* Subtle pulse for feature cards on hover */
@keyframes subtlePulse {
  0%, 100% {
    transform: translateY(-6px) scale(1);
  }
  50% {
    transform: translateY(-6px) scale(1.01);
  }
}

/* 3D Card Flip for differentials section */
@keyframes cardFlip3D {
  0% {
    transform: perspective(1000px) rotateY(0deg);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: perspective(1000px) rotateY(360deg);
    opacity: 1;
  }
}

.card-flip-on-scroll {
  opacity: 0;
  transform: perspective(1000px) rotateY(0deg);
}

.card-flip-on-scroll.visible {
  animation: cardFlip3D 1.2s ease-out forwards;
}

.fade-in {
  animation: fadeIn 0.8s ease-out;
}

.fade-in-up {
  animation: slideInUp 0.8s ease-out;
  animation-fill-mode: both;
}

.slide-in-right {
  animation: slideInRight 1s ease-out;
}

.animate-pulse-cyan {
  animation: pulseCyan 2s ease-in-out infinite;
}

/* ===========================
   9. METRIC NUMBERS
   =========================== */
.metric-number {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  background: var(--gradient-text-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(44, 201, 255, 0.3);
}

/* ===========================
   10. FORM INPUTS
   =========================== */
.input-field {
  width: 100%;
  background: var(--color-graphite);
  border: 2px solid rgba(0, 217, 255, 0.3);
  border-radius: 8px;
  padding: 14px 18px;
  color: var(--color-dark);
  font-size: 16px;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.input-field:focus {
  outline: none;
  border-color: var(--color-cyan);
  background: var(--color-graphite-dark);
  box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.15), 0 0 20px rgba(0, 217, 255, 0.1);
}

.input-field::placeholder {
  color: var(--color-gray-muted);
}

textarea.input-field {
  resize: vertical;
  min-height: 120px;
}

/* ===========================
   11. BACKGROUND PATTERNS
   =========================== */
.bg-grid-pattern {
  background-image:
    linear-gradient(rgba(0, 217, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 217, 255, 0.08) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* ===========================
   12. SHADOWS & GLOWS
   =========================== */
.shadow-cyan-glow {
  box-shadow: var(--shadow-cyan-glow);
}

.glow-text {
  text-shadow: 0 0 20px rgba(0, 217, 255, 0.5), 0 0 40px rgba(0, 217, 255, 0.3);
}

/* ===========================
   13. UTILITIES
   =========================== */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* ===========================
   14. SECTION SPACING
   =========================== */
section {
  position: relative;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

/* ===========================
   15. RESPONSIVE DESIGN
   =========================== */

/* Tablet */
@media (max-width: 1024px) {
  .metric-number {
    font-size: 2.5rem;
  }

  .card-premium {
    padding: 32px;
  }

  h2 {
    font-size: 2.5rem !important;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .metric-number {
    font-size: 2rem;
  }

  .card-base,
  .card-feature {
    padding: 24px;
  }

  .card-premium {
    padding: 24px;
  }

  h2 {
    font-size: 2rem !important;
  }

  .icon-circle-large {
    width: 64px;
    height: 64px;
  }

  .icon-circle-feature {
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 480px) {
  h2 {
    font-size: 1.75rem !important;
  }

  .btn-large {
    padding: 14px 28px;
    font-size: 16px;
  }

  .metric-number {
    font-size: 1.75rem;
  }
}

/* ===========================
   16. LOADING STATES
   =========================== */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* ===========================
   17. FORM STATUS MESSAGES
   =========================== */
#form-status.success {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid var(--color-cyan);
  color: var(--color-cyan);
}

#form-status.error {
  background: rgba(255, 77, 77, 0.1);
  border: 1px solid #ff4d4d;
  color: #ff4d4d;
}

/* ===========================
   18. SECTION DIVIDERS & RHYTHM
   =========================== */
.section-divider {
  height: 1px;
  background: var(--gradient-divider);
  margin: 0 auto;
  max-width: 1200px;
}

/* Backgrounds alternados com maior contraste - Dark Theme */
.bg-white-strong {
  background: #0A0E27;
}

.bg-gray-soft {
  background: #141829;
}

.bg-gray-medium {
  background: var(--color-graphite);
}

/* ===========================
   19. TYPOGRAPHY IMPROVEMENTS
   =========================== */
h1 {
  color: var(--color-dark);
  font-weight: 900;
  letter-spacing: -0.02em;
}

h2 {
  color: var(--color-dark);
  font-weight: 800;
  letter-spacing: -0.01em;
}

h3 {
  color: var(--color-dark-medium);
  font-weight: 700;
}

p {
  color: var(--color-gray);
  line-height: 1.7;
}

.text-body-light {
  font-weight: 300;
  color: var(--color-gray-light);
}

.text-body-strong {
  font-weight: 500;
  color: var(--color-gray);
}

/* ===========================
   20. BADGES & VISUAL ELEMENTS
   =========================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.badge:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.badge-success {
  background: rgba(16, 185, 129, 0.2);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-success:hover {
  background: rgba(16, 185, 129, 0.3);
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.badge-primary {
  background: rgba(0, 217, 255, 0.15);
  color: var(--color-cyan);
  border: 1px solid rgba(0, 217, 255, 0.4);
}

.badge-primary:hover {
  background: rgba(0, 217, 255, 0.25);
  border-color: rgba(0, 217, 255, 0.6);
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.3);
}

.badge-new {
  background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.badge-new:hover {
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

/* Stats/Numbers highlight */
.stat-number {
  font-size: 3.5rem;
  font-weight: 900;
  background: var(--gradient-text-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

/* ===========================
   18. ACCESSIBILITY
   =========================== */
.focus-visible:focus {
  outline: 2px solid var(--color-cyan);
  outline-offset: 2px;
}

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

/* ===========================
   19. PRINT STYLES
   =========================== */
@media print {
  body {
    background: white;
    color: black;
  }

  .gradient-text-cyan {
    -webkit-text-fill-color: #3B82F6;
    color: #3B82F6;
  }

  header,
  footer,
  .btn-primary,
  .btn-secondary {
    display: none;
  }
}
