/* 
   Atende Contábil - Design System & Custom CSS
   Tokens de Cores extraídos da Logomarca
*/

:root {
  /* Brand Colors */
  --color-primary: #0A192F; /* Azul Escuro puxado pro Marinho */
  --color-primary-light: #112A46;
  --color-secondary: #20C49F; /* Verde Água do Logo */
  --color-secondary-dark: #179E7F;
  --color-secondary-glow: rgba(32, 196, 159, 0.4);
  
  /* Neutral Colors */
  --color-bg: #030811; /* Fundo principal mega clean dark */
  --color-text: #E2E8F0;
  --color-text-muted: #94A3B8;
  --color-glass: rgba(10, 25, 47, 0.4);
  --color-glass-border: rgba(32, 196, 159, 0.15);

  /* Typography */
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s ease-in-out;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.section {
  padding: 100px 0;
}

/* Tipografia */
h1, h2, h3, h4 {
  color: #fff;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  margin-bottom: 20px;
}

p {
  color: var(--color-text-muted);
  font-size: 1.125rem;
  margin-bottom: 24px;
}

/* Botões */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  transition: var(--transition-fast);
  text-align: center;
}

.btn-primary {
  background-color: var(--color-secondary);
  color: #000;
  padding: 12px 24px;
  border: border: 1px solid transparent;
}

.btn-primary:hover {
  background-color: var(--color-secondary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--color-secondary-glow);
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 12px;
}

.btn-glow {
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 var(--color-secondary-glow); }
  70% { box-shadow: 0 0 0 20px rgba(32, 196, 159, 0); }
  100% { box-shadow: 0 0 0 0 rgba(32, 196, 159, 0); }
}

/* Glassmorphism Classes */
.glass-card {
  background: var(--color-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-glass-border);
  border-radius: 16px;
  padding: 32px;
  transition: var(--transition-normal);
}

.glass-card:hover {
  border-color: rgba(32, 196, 159, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0, 0.5);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
  transition: var(--transition-normal);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(3, 8, 17, 0.85);
  backdrop-filter: blur(12px);
  padding: 15px 0;
  border-bottom: 1px solid var(--color-glass-border);
}

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

.brand {
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  gap: 5px;
}

.brand-atende {
  color: var(--color-secondary); /* Verde Água */
}

.brand-contabil {
  color: #fff; /* Fica branco e será contrastado com azul marinho ao redor */
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

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

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 30px;
  height: 2px;
  background-color: var(--color-text);
  transition: var(--transition-fast);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: var(--color-primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  z-index: 999;
  transition: var(--transition-normal);
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu a {
  color: #fff;
  font-size: 1.5rem;
  text-decoration: none;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.5;
  animation: float 10s ease-in-out infinite;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: var(--color-secondary-glow);
  top: 10%;
  left: -10%;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: rgba(10, 25, 47, 0.8);
  bottom: -20%;
  right: -10%;
  animation-delay: -5s;
}

@keyframes float {
  0% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-30px) scale(1.1); }
  100% { transform: translateY(0px) scale(1); }
}

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

.badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(32, 196, 159, 0.1);
  color: var(--color-secondary);
  border: 1px solid var(--color-glass-border);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.ratings {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.stars {
  color: #fbbf24;
  letter-spacing: 2px;
}

.glass-mockup {
  position: relative;
  border-radius: 20px;
  padding: 10px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.0));
  border: 1px solid var(--color-glass-border);
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: var(--transition-normal);
}

.glass-mockup:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.glass-mockup img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* Features Section */
.section-title {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(32, 196, 159, 0.1);
  color: var(--color-secondary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

/* Benefits Section */
.container-flex {
  display: flex;
  align-items: center;
  gap: 60px;
}

.benefits-image, .benefits-content {
  flex: 1;
}

.benefits-list {
  list-style: none;
  margin-top: 32px;
}

.benefits-list li {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}

.check {
  width: 32px;
  height: 32px;
  background: rgba(32, 196, 159, 0.1);
  color: var(--color-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: bold;
}

.benefits-list strong {
  color: #fff;
  font-size: 1.125rem;
  display: block;
  margin-bottom: 4px;
}

/* Metrics Card */
.metrics-card {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 350px;
  margin: 0 auto;
}

.metric .number {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-secondary);
  line-height: 1;
  margin-bottom: 8px;
}

.metric .label {
  color: var(--color-text);
  font-weight: 500;
}

/* CTA Section */
.cta-box {
  text-align: center;
  padding: 60px 40px;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  border-radius: 24px;
}

.cta-box h2 {
  max-width: 600px;
  margin: 0 auto 20px;
}

.cta-box p {
  max-width: 500px;
  margin: 0 auto 40px;
}

.cta-disclaimer {
  display: block;
  margin-top: 20px !important;
  font-size: 0.875rem;
  opacity: 0.7;
}

/* Footer */
.footer {
  border-top: 1px solid var(--color-glass-border);
  padding: 60px 0 20px;
  background: var(--color-primary);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  margin-top: 15px;
  max-width: 300px;
}

.footer-links h4, .footer-contact h4 {
  color: #fff;
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  color: var(--color-text-muted);
  text-decoration: none;
  margin-bottom: 12px;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-secondary);
}

.footer-bottom {
  border-top: 1px solid var(--color-glass-border);
  padding-top: 20px;
  text-align: center;
  font-size: 0.875rem;
}

/* Animations Triggered via JS */
.animate-on-load {
  opacity: 0;
  animation: slideUp 0.8s ease forwards;
}

.animate-on-load-delay {
  opacity: 0;
  animation: slideUp 0.8s ease 0.3s forwards;
}

.animate-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

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

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-text {
    order: 1;
  }
  
  .hero-image {
    order: 2;
  }
  
  .ratings {
    justify-content: center;
  }
  
  .container-flex {
    flex-direction: column;
  }
  
  .benefits-image {
    order: 2;
  }
  
  .benefits-content {
    order: 1;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
  }
  
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
}
