/* 
 * FACBY Design System - "Tech-Forward" Minimalist
 * UI/UX: Fintech Premium, SecOps-ready
 * Language: EN-US (Core Syntax), PT-BR (Interface/Labels)
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  /* Color Palette - Premium Fintech */
  --primary-color: #0066FF; /* Chargeflow Blue */
  --primary-glow: rgba(0, 102, 255, 0.15);
  --secondary-color: #0B0E14; /* Deep Tech Black */
  --accent-color: #00F0FF; /* Cyber Cyan */
  --background-light: #FFFFFF;
  --background-dark: #0B0E14;
  --text-primary: #1A1A1A;
  --text-secondary: #666666;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 102, 255, 0.1);
  --card-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background-light);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .hero-title {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
}

/* --- Layout Components --- */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Glassmorphism Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  transition: var(--transition-smooth);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--secondary-color);
  letter-spacing: -1px;
}

.logo span {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--primary-color);
}

.logo a {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
}

/* Hamburguer Menu */
.mobile-menu {
  display: none;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu div {
  width: 25px;
  height: 2px;
  background-color: var(--secondary-color);
  margin: 5px;
  transition: var(--transition-smooth);
}

.nav-login {
  color: var(--primary-color) !important;
  font-weight: 700;
  border: 1px solid var(--primary-color);
  padding: 6px 16px;
  border-radius: 6px;
  transition: var(--transition-smooth);
}

.nav-login:hover {
  background: var(--primary-glow);
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Espaçamento para evitar sobreposição no hover */
.solutions {
  padding: 100px 0;
  margin-bottom: 60px;
}

.cta-button {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 14px 0 var(--primary-glow);
  white-space: nowrap;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 var(--primary-glow);
  background: #0052CC;
}

/* --- Hero Section --- */
.hero {
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.hero-content {
  text-align: left;
}

.hero-visual {
  position: relative;
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.recovery-animation {
  position: relative;
  width: 100%;
  height: 100%;
}

.processing-node {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background: white;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px var(--primary-glow);
  z-index: 5;
  border: 1px solid var(--glass-border);
}

.processing-node .node-icon {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1rem;
}

.processing-node .pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background: var(--primary-color);
  opacity: 0.2;
  animation: pulseNode 3s infinite;
}

@keyframes pulseNode {
  0% { transform: scale(1); opacity: 0.2; }
  50% { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

.stats-float {
  position: absolute;
  bottom: 40px;
  right: 40px;
  padding: 16px 24px;
  background: white;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
  z-index: 10;
  animation: floatStat 4s ease-in-out infinite;
}

.stats-float .label { font-size: 0.8rem; color: var(--text-secondary); }
.stats-float .value { font-size: 1.25rem; font-weight: 700; color: #22C55E; }

@keyframes floatStat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Animated Cards Styling */
.anim-card {
  position: absolute;
  padding: 12px 18px;
  background: white;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
}

.anim-card.chargeback {
  border-left: 3px solid #EF4444;
  color: #EF4444;
}

.anim-card.recovered {
  border-left: 3px solid #22C55E;
  color: #22C55E;
}

@keyframes chargebackIn {
  0% { transform: translate(-150px, -50px) scale(0.8); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translate(0, 0) scale(1); opacity: 0; }
}

@keyframes recoveredOut {
  0% { transform: translate(0, 0) scale(1); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translate(150px, 50px) scale(0.8); opacity: 0; }
}

/* --- Animated Cards --- */

.solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  padding: 80px 0;
}

.card {
  background: white;
  border: 1px solid #F0F0F0;
  padding: 40px;
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-color);
}

.card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--primary-color);
  transition: var(--transition-smooth);
}

.card:hover::after {
  height: 100%;
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-glow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  margin-bottom: 24px;
}

/* --- Animations --- */

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

.reveal {
  opacity: 0;
  animation: fadeInUp 0.8s forwards;
}

/* --- Responsive --- */

input:focus, textarea:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background: #128C7E !important;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .mobile-menu {
    display: block;
  }

  .nav-links {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    width: 70%;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.4s ease-in;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    z-index: 1000;
  }

  .nav-links li {
    opacity: 0;
    margin: 20px 0;
  }

  .nav-active {
    transform: translateX(0%);
  }

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

  .toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
  .toggle .line2 { opacity: 0; }
  .toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }
  
  .container {
    padding: 0 20px;
  }

  .nav-actions .cta-button {
    display: none; /* Esconde o botão longo no mobile extra small se necessário */
  }
  
  /* Mantém apenas Acesso ao Sistema visível se o espaço for muito curto, 
     ou reduz a fonte de ambos */
  @media (max-width: 480px) {
    .nav-actions {
      gap: 6px;
    }
    .nav-login, .cta-button {
      padding: 8px 12px;
      font-size: 0.8rem;
    }
    .logo {
      font-size: 1.2rem;
    }
  }
  
  #contato .container > div {
    grid-template-columns: 1fr !important;
  }
}
