/* ============================================================
   VIVA SOFTWARES - Main Stylesheet
   ============================================================ */

/* ----------------------------------------------------------
   1. RESET & CSS CUSTOM PROPERTIES
   ---------------------------------------------------------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors */
  --color-bg: #0A0E1A;
  --color-bg-dark: #070A12;
  --color-bg-section: #0B1120;
  --color-bg-card: #121826;
  --color-bg-light: #F4F6FB;
  --color-text: #E8ECF3;
  --color-text-muted: #C4CDDB;
  --color-text-dark: #1A1F2E;
  --color-primary: #0979cc;
  --color-primary-rgb: 9, 121, 204;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-light: #E4E8F0;
  --color-whatsapp: #25D366;
  --color-wa-header: #075E54;
  --color-wa-body: #ECE5DD;

  /* Typography */
  --font-heading: 'Sora', sans-serif;
  --font-body: 'Manrope', sans-serif;

  /* Spacing */
  --container-max: 1200px;
  --section-padding: 100px 32px;

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-2xl: 28px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ----------------------------------------------------------
   2. GLOBAL STYLES
   ---------------------------------------------------------- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--color-text);
}

a {
  text-decoration: none;
  color: var(--color-primary);
  transition: color var(--transition-fast);
}

a:hover {
  color: #3a9ae0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: var(--font-body);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}

/* Section common */
.section-label {
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1.5px;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 12px;
}

.section-title {
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 42px);
  margin-bottom: 20px;
}

.section-desc {
  color: var(--color-text-muted);
  font-size: 17px;
  line-height: 1.7;
  max-width: 600px;
}

.highlight {
  color: var(--color-primary);
}

/* ----------------------------------------------------------
   BUTTONS
   ---------------------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.btn-primary:hover {
  background: #0668b0;
  color: #fff;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--color-text);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  background: rgba(9, 121, 204, 0.06);
  color: var(--color-text);
  transform: translateY(-1px);
}

/* ----------------------------------------------------------
   3. NAVBAR
   ---------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base), backdrop-filter var(--transition-base);
}

.navbar.scrolled {
  background: rgba(8, 11, 20, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-inner {
  max-width: 1200px;
  height: 72px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-img {
  height: 44px;
  width: auto;
}

/* Troca de logo na navbar: escura no topo (hero branco), branca ao rolar */
.brand-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.brand-img--light {
  display: none;
}

.navbar.scrolled .brand-img--dark {
  display: none;
}

.navbar.scrolled .brand-img--light {
  display: block;
}

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

.nav-links li {
  list-style: none;
}

.nav-links a {
  color: #3A4457;
  font-size: 15px;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text-dark);
}

/* Quando a navbar ganha fundo escuro (scrolled), volta aos tons claros */
.navbar.scrolled .nav-links a {
  color: #C4CDDB;
}

.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active {
  color: #fff;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 10px;
  font-family: var(--font-heading);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.nav-cta:hover {
  background: #0668b0;
  color: #fff;
  transform: translateY(-1px);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 72px;
  left: 0;
  width: 100%;
  background: rgba(8, 11, 20, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 24px 32px;
  flex-direction: column;
  gap: 20px;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  color: #C4CDDB;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 0;
}

.mobile-menu a:hover {
  color: #fff;
}

/* ----------------------------------------------------------
   4. HERO SECTION (redesign: canvas gravity-field + tech cards)
   ---------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(9, 121, 204, 0.10), transparent 55%),
    linear-gradient(180deg, #FFFFFF 0%, #F4F6FB 100%);
}

/* Canvas de partículas */
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
}

/* Grade técnica sutil sobre o fundo */
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(26, 31, 46, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 31, 46, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 80% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(80% 80% at 50% 40%, #000 30%, transparent 80%);
  pointer-events: none;
}

/* Glow central pulsante (inspiração antigravity) */
.hero-glow {
  position: absolute;
  top: 38%;
  left: 50%;
  width: 680px;
  height: 680px;
  transform: translate(-50%, -50%);
  z-index: 0;
  background: radial-gradient(circle, rgba(9, 121, 204, 0.18) 0%, rgba(9, 121, 204, 0.04) 40%, transparent 70%);
  filter: blur(30px);
  pointer-events: none;
  animation: heroPulse 6s ease-in-out infinite;
}

@keyframes heroPulse {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 940px;
  margin: 0 auto;
  padding: 140px 32px 90px;
  width: 100%;
  text-align: center;
}

.hero-content .hero-buttons {
  justify-content: center;
}

/* Botão secundário no hero claro */
.hero .btn-secondary {
  color: var(--color-text-dark);
  border-color: var(--color-border-light);
}

.hero .btn-secondary:hover {
  border-color: var(--color-primary);
  background: rgba(9, 121, 204, 0.06);
  color: var(--color-text-dark);
}

.hero-title {
  font-size: clamp(38px, 6vw, 74px);
  font-weight: 800;
  letter-spacing: -1.8px;
  line-height: 1.03;
  margin: 22px auto 24px;
  max-width: 900px;
  color: var(--color-text-dark);
}

.hero-subtitle {
  font-size: clamp(17px, 1.6vw, 21px);
  color: #566072;
  line-height: 1.6;
  max-width: 620px;
  margin: 0 auto 38px;
}

/* Cards técnicos estilo terminal (inspiração dexadata) */
.hero-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 64px;
  text-align: left;
}

.hero-card {
  border: 1px solid var(--color-border-light);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 18px rgba(26, 31, 46, 0.05);
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.hero-card:hover {
  transform: translateY(-4px);
  border-color: rgba(9, 121, 204, 0.4);
}

.hero-card-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--color-primary);
}

.hero-card-line {
  font-family: 'Manrope', monospace;
  font-size: 13px;
  color: #8A94A4;
  font-feature-settings: 'tnum';
}

.hero-card-value {
  font-size: 14px;
  color: #566072;
}

.hero-card-value b {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 18px;
}

/* Indicador de scroll */
.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #6B7688;
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-scroll i {
  font-size: 18px;
  animation: scrollBounce 1.8s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* Label técnico com bullet (reuso global, inspiração dexadata) */
.tech-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-heading);
  text-transform: lowercase;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: #8A94A4;
  font-weight: 600;
}

.tech-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(9, 121, 204, 0.18);
  flex-shrink: 0;
  animation: dotPulse 2.4s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(9, 121, 204, 0.15); }
  50% { box-shadow: 0 0 0 6px rgba(9, 121, 204, 0.05); }
}

/* ----------------------------------------------------------
   5. ABOUT SECTION
   ---------------------------------------------------------- */
.about {
  background: var(--color-bg-light);
  padding: var(--section-padding);
}

.about .section-title,
.about .section-label,
.about .section-desc,
.about h3,
.about p {
  color: var(--color-text-dark);
}

.about .section-label {
  color: var(--color-primary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-card {
  border: 1px solid #E4E8F0;
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.stat-label {
  font-size: 14px;
  color: #6b7a8d;
  font-weight: 500;
}

/* ----------------------------------------------------------
   6. SERVICES SECTION
   ---------------------------------------------------------- */
.services {
  background: var(--color-bg-section);
  padding: var(--section-padding);
}

.services-header {
  text-align: center;
  margin-bottom: 56px;
}

.services-header .section-desc {
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(9, 121, 204, 0.3);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(9, 121, 204, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
  color: var(--color-primary);
}

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ----------------------------------------------------------
   7. METHODOLOGY SECTION
   ---------------------------------------------------------- */
.methodology {
  background: var(--color-bg-light);
  padding: var(--section-padding);
}

.methodology .section-title,
.methodology .section-label,
.methodology h3,
.methodology p {
  color: var(--color-text-dark);
}

.methodology .section-label {
  color: var(--color-primary);
}

.methodology-header {
  text-align: center;
  margin-bottom: 56px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

/* Timeline connector */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 27px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), rgba(9, 121, 204, 0.2));
  z-index: 0;
}

.step-item {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  border: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-bg-light);
  margin: 0 auto 20px;
}

.step-item h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-item p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ----------------------------------------------------------
   8. SEGMENTS SECTION
   ---------------------------------------------------------- */
.segments {
  background: var(--color-bg-section);
  padding: var(--section-padding);
}

.segments-header {
  text-align: center;
  margin-bottom: 56px;
}

.segments-header .section-desc {
  margin: 0 auto;
}

.segments-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.segment-card {
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  text-align: center;
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.segment-card:hover {
  transform: translateY(-4px);
  border-color: rgba(9, 121, 204, 0.3);
}

.segment-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.segment-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.segment-card p {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Clients logos */
.clients-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  opacity: 0.7;
}

.clients-logos img {
  height: 36px;
  filter: brightness(0) invert(1);
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}

.clients-logos img:hover {
  opacity: 1;
}

/* ----------------------------------------------------------
   9. TESTIMONIALS SECTION
   ---------------------------------------------------------- */
.testimonials {
  background: var(--color-bg-light);
  padding: var(--section-padding);
}

.testimonials .section-title,
.testimonials .section-label,
.testimonials h3,
.testimonials p {
  color: var(--color-text-dark);
}

.testimonials .section-label {
  color: var(--color-primary);
}

.testimonials-header {
  text-align: center;
  margin-bottom: 56px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.testimonial-card {
  background: #fff;
  border: 1px solid #E4E8F0;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.testimonial-text {
  font-size: 15px;
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

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

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-dark);
}

.testimonial-role {
  font-size: 13px;
  color: #6b7a8d;
}

/* Metrics */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.metric-card {
  text-align: center;
  padding: 24px;
}

.metric-num {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.metric-label {
  font-size: 14px;
  color: #6b7a8d;
}

/* ----------------------------------------------------------
   10. FAQ SECTION
   ---------------------------------------------------------- */
.faq {
  background: var(--color-bg-section);
  padding: var(--section-padding);
}

.faq-header {
  text-align: center;
  margin-bottom: 48px;
}

.faq-header .section-desc {
  margin: 0 auto;
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--color-bg-card);
}

.item-header {
  font-size: 17px;
  font-weight: 600;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: var(--color-text);
  transition: color var(--transition-fast);
  width: 100%;
  background: none;
  text-align: left;
}

.item-header:hover {
  color: var(--color-primary);
}

.item-header .icon {
  font-size: 20px;
  transition: transform var(--transition-base);
}

.item-header.active .icon {
  transform: rotate(45deg);
}

.item-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.item-body.open {
  max-height: 200px;
}

.item-body-inner {
  padding: 0 24px 22px;
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ----------------------------------------------------------
   11. CTA SECTION
   ---------------------------------------------------------- */
.cta-section {
  padding: var(--section-padding);
}

.cta-box {
  border-radius: 28px;
  border: 1px solid rgba(9, 121, 204, 0.25);
  background: linear-gradient(135deg, #101a33, #0b1220);
  padding: 72px 48px;
  text-align: center;
  max-width: var(--container-max);
  margin: 0 auto;
}

.cta-box .section-title {
  margin-bottom: 16px;
}

.cta-box .section-desc {
  margin: 0 auto 32px;
  text-align: center;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ----------------------------------------------------------
   12. FOOTER
   ---------------------------------------------------------- */
.footer {
  background: var(--color-bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 64px 32px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer-brand p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-top: 16px;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--color-text);
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  max-width: var(--container-max);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--color-text-muted);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: var(--color-text-muted);
  font-size: 18px;
  transition: color var(--transition-fast);
}

.footer-social a:hover {
  color: var(--color-primary);
}

/* ----------------------------------------------------------
   13. WHATSAPP FLOATING BUTTON & CHAT PANEL
   ---------------------------------------------------------- */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  background: var(--color-whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  z-index: 999;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  animation: pulseWhatsapp 2.4s infinite;
}

.whatsapp-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

@keyframes pulseWhatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.wa-panel {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 330px;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.32);
  z-index: 998;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
}

.wa-panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.wa-panel-header {
  background: var(--color-wa-header);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.wa-panel-header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.wa-panel-header h4 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.wa-panel-header span {
  font-size: 12px;
  opacity: 0.8;
}

.wa-panel-close {
  margin-left: auto;
  background: none;
  color: #fff;
  font-size: 20px;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.wa-panel-close:hover {
  opacity: 1;
}

.wa-panel-body {
  background: var(--color-wa-body);
  padding: 24px 18px;
  min-height: 120px;
}

.wa-message {
  background: #fff;
  padding: 12px 16px;
  border-radius: 0 12px 12px 12px;
  font-size: 14px;
  color: #333;
  line-height: 1.5;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  max-width: 85%;
}

.wa-panel-footer {
  background: #f0f0f0;
  padding: 14px 18px;
  display: flex;
  gap: 10px;
}

.wa-panel-footer input {
  flex: 1;
  border: none;
  background: #fff;
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 14px;
  outline: none;
}

.wa-panel-footer button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ----------------------------------------------------------
   14. ANIMATIONS / KEYFRAMES
   ---------------------------------------------------------- */
@keyframes floatUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseRing {
  0% {
    box-shadow: 0 0 0 0 rgba(9, 121, 204, 0.5);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(9, 121, 204, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(9, 121, 204, 0);
  }
}

.animate-float-up {
  animation: floatUp 0.6s ease forwards;
  opacity: 0;
}

/* ----------------------------------------------------------
   15. RESPONSIVIDADE
   ---------------------------------------------------------- */

/* <= 960px */
@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-menu {
    display: none;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .steps-grid::before {
    display: none;
  }

  .segments-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* <= 860px */
@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-title {
    max-width: 100%;
  }

  .cta-box {
    padding: 56px 32px;
  }
}

/* <= 640px */
@media (max-width: 640px) {
  :root {
    --section-padding: 72px 20px;
  }

  .container {
    padding: 0 20px;
  }

  .nav-inner {
    padding: 0 20px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .segments-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .hero-content {
    padding: 120px 20px 70px;
  }

  /* Hero: permite crescer com os cards empilhados e ajusta espaçamentos */
  .hero {
    min-height: auto;
  }

  .hero-cards {
    margin-top: 40px;
    gap: 12px;
  }

  .hero-scroll {
    display: none;
  }

  /* Marquee de logos: chips menores em telas estreitas */
  .client-chip {
    height: 60px;
    min-width: 120px;
    padding: 10px 18px;
  }

  .client-chip img {
    max-height: 34px;
    max-width: 110px;
  }

  .marquee {
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  }

  .cta-box {
    padding: 48px 24px;
  }

  .wa-panel {
    right: 16px;
    width: calc(100vw - 32px);
    max-width: 330px;
  }
}

/* <= 580px */
@media (max-width: 580px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* <= 540px */
@media (max-width: 540px) {
  .segments-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    letter-spacing: -0.5px;
  }

  .brand-img {
    height: 36px;
  }

  .whatsapp-fab {
    width: 52px;
    height: 52px;
    font-size: 24px;
    bottom: 20px;
    right: 20px;
  }

  /* Hero de soluções: reduz o topo em telas pequenas */
  .solutions-hero {
    padding: 130px 20px 60px;
  }
}

/* ----------------------------------------------------------
   SOLUTIONS PAGE
   ---------------------------------------------------------- */
.solutions-hero {
  position: relative;
  padding: 190px 32px 90px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(100% 80% at 50% -10%, rgba(9, 121, 204, 0.10), transparent 55%),
    linear-gradient(180deg, #FFFFFF, #F4F6FB);
}

.solutions-hero .hero-title {
  color: var(--color-text-dark);
}

.solutions-hero .hero-subtitle {
  color: #566072;
}

.solutions-hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  width: 560px;
  height: 560px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(9, 121, 204, 0.14) 0%, transparent 68%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.solutions-hero .section-title {
  margin-bottom: 16px;
}

.solutions-hero .section-desc {
  margin: 0 auto;
}

.products-section {
  padding: var(--section-padding);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.product-card {
  border-radius: 22px;
  background: linear-gradient(160deg, #121826, #0d1220);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(9, 121, 204, 0.3);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.product-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.product-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: rgba(9, 121, 204, 0.9);
  color: #fff;
  padding: 5px 12px;
  border-radius: 6px;
}

.product-content {
  padding: 28px 24px;
}

.product-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.product-content p {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-features span {
  font-size: 12px;
  background: rgba(9, 121, 204, 0.1);
  color: var(--color-primary);
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 500;
}


/* ----------------------------------------------------------
   ADDITIONAL UTILITIES & MISSING CLASSES
   ---------------------------------------------------------- */

/* Visually hidden (acessibilidade) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Button large */
.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: 12px;
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(9, 121, 204, 0.35);
  background: rgba(9, 121, 204, 0.08);
  color: #7fbce9;
  padding: 7px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 26px;
  font-family: var(--font-heading);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
  display: inline-block;
}

/* Section subtitle */
.section-subtitle {
  font-size: 17px;
  color: #566072;
  line-height: 1.6;
  margin-top: -8px;
  margin-bottom: 48px;
}

.methodology .section-subtitle {
  color: var(--color-text-muted);
}

/* Complement tag */
.complement-tag {
  color: #7C8798;
  font-weight: 500;
  font-size: 14px;
}

/* Services complementary */
.services-complementary {
  margin-top: 20px;
}

.service-card--complementary {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.02);
}

/* FAQ - classes usadas no HTML */
.faq-question {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  color: var(--color-text);
  transition: color var(--transition-fast);
  width: 100%;
  background: none;
  text-align: left;
  border: none;
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-icon {
  font-size: 20px;
  color: var(--color-primary);
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer.open {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 24px 22px;
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* Scroll animations */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----------------------------------------------------------
   REDESIGN - HERO BUTTONS, MARQUEE & TECH ACCENTS
   ---------------------------------------------------------- */

/* Re-inclui hero-buttons (usado no hero e nos CTAs) */
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* section-label agora com bullet técnico (estilo dexadata) */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-transform: lowercase;
  font-family: var(--font-heading);
}

.section-label::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(9, 121, 204, 0.16);
  flex-shrink: 0;
}

/* Centraliza label quando o header da seção é centralizado */
.services-header .section-label,
.methodology-header .section-label,
.faq-header .section-label {
  justify-content: center;
}

/* Marquee de clientes (inspiração dexadata) */
.clients-wrap {
  margin-top: 60px;
  text-align: center;
}

.marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: marqueeScroll 32s linear infinite;
}

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

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.client-chip {
  height: 72px;
  min-width: 160px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  color: #8A94A4;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

/* Logos dentro dos chips */
.client-chip img {
  max-height: 44px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  opacity: 0.75;
  filter: grayscale(100%);
  transition: opacity var(--transition-fast), filter var(--transition-fast);
}

.client-chip:hover img {
  opacity: 1;
  filter: grayscale(0%);
}

.client-chip:hover {
  color: var(--color-text);
  border-color: rgba(9, 121, 204, 0.4);
}

/* Detalhe de "terminal" nos cards de serviço */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.service-card:hover::before {
  transform: scaleX(1);
}

/* Reduz movimento para quem prefere */
@media (prefers-reduced-motion: reduce) {
  .hero-glow,
  .tech-dot,
  .marquee-track,
  .hero-scroll i {
    animation: none !important;
  }
}

/* Hero cards responsivos */
@media (max-width: 860px) {
  .hero-cards {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ----------------------------------------------------------
   REDESIGN - SISTEMA DE TEMAS ZEBRADOS (.sec-light / .sec-dark)
   Aplicado no HTML de cada seção para alternar fundo escuro/branco
   de forma consistente, com contraste correto em todos os textos.

   Ordem: Hero(branco) → About(escuro) → Services(branco) →
   Methodology(escuro) → Segments(branco) → Testimonials(escuro) →
   FAQ(branco) → CTA(escuro).
   ---------------------------------------------------------- */

/* ---------- TEMA CLARO (fundo branco, texto escuro) ---------- */
.sec-light {
  background: var(--color-bg-light) !important;
  border-top: 1px solid var(--color-border-light);
}

.sec-light .section-title,
.sec-light h3,
.sec-light h4,
.sec-light strong {
  color: var(--color-text-dark);
}

.sec-light .section-label {
  color: var(--color-primary);
}

.sec-light p,
.sec-light .section-desc,
.sec-light .section-subtitle,
.sec-light .step-item p {
  color: #4a5568;
}

.sec-light .stat-label,
.sec-light .testimonial-role,
.sec-light .metric-label {
  color: #6b7a8d;
}

.sec-light .testimonial-text {
  color: #4a5568;
}

.sec-light .testimonial-name {
  color: var(--color-text-dark);
}

/* Cards em tema claro */
.sec-light .stat-card,
.sec-light .service-card,
.sec-light .segment-card,
.sec-light .testimonial-card,
.sec-light .faq-item {
  background: #fff;
  border: 1px solid var(--color-border-light);
}

.sec-light .stat-card:hover,
.sec-light .service-card:hover,
.sec-light .segment-card:hover,
.sec-light .testimonial-card:hover {
  border-color: rgba(9, 121, 204, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.sec-light .stat-num,
.sec-light .metric-num,
.sec-light .step-num {
  color: var(--color-primary);
}

.sec-light .step-num {
  background: #fff;
}

.sec-light .service-icon,
.sec-light .segment-icon {
  color: var(--color-primary);
}

/* FAQ em tema claro */
.sec-light .faq-question {
  color: var(--color-text-dark);
}

.sec-light .faq-answer p {
  color: #4a5568;
}

/* Marquee de clientes em tema claro */
.sec-light .client-chip {
  border-color: var(--color-border-light);
  background: #fff;
  color: #6b7a8d;
}

.sec-light .client-chip:hover {
  color: var(--color-text-dark);
  border-color: rgba(9, 121, 204, 0.4);
}

.sec-light .client-chip img {
  opacity: 0.7;
  filter: grayscale(100%);
}

.sec-light .client-chip:hover img {
  opacity: 1;
  filter: grayscale(0%);
}

.sec-light .tech-label {
  color: #6b7a8d;
}

/* ---------- TEMA ESCURO (texto claro) ---------- */
.sec-dark {
  background: linear-gradient(180deg, #0B1120, #0A0E1A) !important;
  border-top: 1px solid var(--color-border);
}

/* alterna a direção do gradiente em faixas escuras ímpares/pares p/ profundidade */
.sec-dark.sec-dark--alt {
  background: linear-gradient(180deg, #0A0E1A, #0B1120) !important;
}

.sec-dark .section-title,
.sec-dark h3,
.sec-dark h4,
.sec-dark strong {
  color: var(--color-text);
}

.sec-dark .section-label {
  color: var(--color-primary);
}

.sec-dark p,
.sec-dark .section-desc,
.sec-dark .section-subtitle,
.sec-dark .step-item p {
  color: var(--color-text-muted);
}

.sec-dark .stat-label,
.sec-dark .testimonial-role,
.sec-dark .metric-label {
  color: #7C8798;
}

.sec-dark .testimonial-text {
  color: var(--color-text-muted);
}

.sec-dark .testimonial-name {
  color: var(--color-text);
}

/* Cards em tema escuro */
.sec-dark .stat-card,
.sec-dark .service-card,
.sec-dark .segment-card,
.sec-dark .testimonial-card,
.sec-dark .faq-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
}

.sec-dark .stat-card:hover,
.sec-dark .service-card:hover,
.sec-dark .segment-card:hover,
.sec-dark .testimonial-card:hover {
  border-color: rgba(9, 121, 204, 0.3);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.sec-dark .stat-num,
.sec-dark .metric-num,
.sec-dark .step-num {
  color: var(--color-primary);
}

.sec-dark .step-num {
  background: var(--color-bg-card);
}

.sec-dark .service-icon,
.sec-dark .segment-icon {
  color: var(--color-primary);
}

/* FAQ em tema escuro */
.sec-dark .faq-question {
  color: var(--color-text);
}

.sec-dark .faq-answer p {
  color: var(--color-text-muted);
}

.sec-dark .client-chip {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  color: #8A94A4;
}

.sec-dark .client-chip:hover {
  color: var(--color-text);
  border-color: rgba(9, 121, 204, 0.4);
}

.sec-dark .tech-label {
  color: #8A94A4;
}

.steps-grid::before {
  background: linear-gradient(90deg, var(--color-primary), rgba(9, 121, 204, 0.15));
}

/* Metric number base */
.metric-num {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  color: var(--color-primary);
  display: block;
  margin-bottom: 12px;
}
