/**
 * PDVclover - Design System & Custom Styles
 * Padrão Visual Ecossistema Lasertech
 */

:root {
  /* Cores Principais - Tema Escuro Padrão */
  --bg-primary: #0A0E17;
  --bg-secondary: #0F172A;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-card-solid: #111827;
  --bg-card-hover: rgba(31, 41, 55, 0.85);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: #10B981;
  --border-glow: rgba(16, 185, 129, 0.35);

  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  --accent-emerald: #10B981;
  --accent-emerald-dark: #059669;
  --accent-cyan: #06B6D4;
  --accent-blue: #3B82F6;
  --accent-purple: #8B5CF6;

  --badge-bg: rgba(16, 185, 129, 0.12);
  --badge-text: #34D399;
  --badge-border: rgba(16, 185, 129, 0.25);

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 35px -5px rgba(16, 185, 129, 0.3);
  --shadow-cyan-glow: 0 0 35px -5px rgba(6, 182, 212, 0.3);

  --nav-bg: rgba(10, 14, 23, 0.85);
  --input-bg: rgba(15, 23, 42, 0.8);
}

/* Modo Claro Premium */
html[data-theme="light"] {
  --bg-primary: #F8FAFC;
  --bg-secondary: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-solid: #FFFFFF;
  --bg-card-hover: #F1F5F9;

  --border-subtle: rgba(15, 23, 42, 0.1);
  --border-focus: #059669;
  --border-glow: rgba(5, 150, 105, 0.3);

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;

  --accent-emerald: #059669;
  --accent-emerald-dark: #047857;
  --accent-cyan: #0284C7;
  --accent-blue: #2563EB;

  --badge-bg: rgba(5, 150, 105, 0.1);
  --badge-text: #059669;
  --badge-border: rgba(5, 150, 105, 0.2);

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 25px -5px rgba(5, 150, 105, 0.2);

  --nav-bg: rgba(255, 255, 255, 0.9);
  --input-bg: #FFFFFF;
}

/* Reset Base & Tipografia */
body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

/* Scrollbar Personalizada */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-emerald);
}

/* Gradientes e Textos */
.text-gradient-emerald {
  background: linear-gradient(135deg, #10B981 0%, #34D399 50%, #06B6D4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-laser {
  background: linear-gradient(135deg, #38BDF8 0%, #818CF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-radial-gradient {
  background-image: radial-gradient(circle at 50% -20%, rgba(16, 185, 129, 0.15), transparent 70%),
                    radial-gradient(circle at 80% 60%, rgba(6, 182, 212, 0.1), transparent 60%);
}

/* Glassmorphism & Cartões */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.glass-panel:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

/* Botões de Alta Conversão Lasertech */
.btn-laser-primary {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-laser-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6);
  background: linear-gradient(135deg, #059669, #047857);
}

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

.btn-laser-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-weight: 600;
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.btn-laser-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-cyan);
  color: #38BDF8;
}

/* Navbar Fixa com Blur */
.header-glass {
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

/* Badges e Selos */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  background: var(--badge-bg);
  color: var(--badge-text);
  border: 1px solid var(--badge-border);
}

/* Animações e Efeitos */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.animate-float {
  animation: floatSlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

.animate-pulse-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}

/* Marquee Infinito de Segmentos */
.marquee-container {
  overflow: hidden;
  user-select: none;
  display: flex;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-content {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 2rem;
  animation: scrollMarquee 28s linear infinite;
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

/* Calculadora de ROI Interativa */
.range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background: #1E293B;
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #10B981;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.8);
  border: 2px solid #FFFFFF;
  transition: transform 0.15s ease;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* FAQ Accordion */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  opacity: 1;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent-emerald);
}

/* Notificações Toast Flutuantes */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 12px;
  background: #111827;
  color: #FFFFFF;
  border: 1px solid #1F2937;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  font-size: 14px;
  transform: translateX(120%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 380px;
}

.toast.show {
  transform: translateX(0);
}

.toast-success {
  border-left: 4px solid #10B981;
}

.toast-error {
  border-left: 4px solid #EF4444;
}

/* Botão Flutuante do WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 900;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-4px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
}

/* Modal do Blog */
.blog-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.blog-modal.active {
  display: flex;
}

/* Posicionamento dos cards em smartphones: topo do card 10px acima do rodapé da imagem */
@media (max-width: 639px) {
  .card-overlay-mobile {
    position: absolute !important;
    top: calc(100% - 10px) !important;
    bottom: auto !important;
    left: 0.5rem !important;
    right: 0.5rem !important;
    z-index: 20 !important;
  }
}

