/*
Theme Name: Ágil Gestão TECH 2026 v6.7
Theme URI: https://agilassistencia.com.br
Author: Grupo Ágil
Description: Tema oficial do Grupo Ágil com hero em vídeo, impressora 3D interativa, logos coloridas e efeitos tech.
Version: 6.7.0
License: GNU General Public License v2 or later
Text Domain: agil-gestao-tech-2026-v63
*/

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #111D58;
  --navy-dark:  #0B1440;
  --navy-mid:   #1a2a6e;
  --charcoal:   #1C1C1E;
  --dark-text:  #272727;
  --sage:       #B8C4B0;
  --sage-dark:  #8FA085;
  --steel:      #9FB1D4;
  --steel-light:#C4D4EC;
  --white:      #FFFFFF;
  --off:        #F8FAFC;
  --light-bg:   #EEF3FA;
  --light-mid:  #E4EBF5;
  --border:     #D8E2F0;
  --text-muted: #6B7A99;
  --font-main:  'Space Grotesk', 'Manrope', sans-serif;
  --font-mono:  'IBM Plex Mono', monospace;
  --section-py: 120px;
  --container:  1200px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  color: var(--dark-text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
h1, h2, h3, h4 { font-family: var(--font-main); line-height: 1.1; letter-spacing: -0.02em; }

/* =========================================================
   CONTAINERS
   ========================================================= */
.ag-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 48px;
}
.ag-container--sm {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 48px;
}

/* =========================================================
   HEADER
   ========================================================= */
.agil-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 72px;
  display: flex;
  align-items: center;
  background: rgba(17, 29, 88, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(159, 177, 212, 0.15);
  transition: background 0.3s, box-shadow 0.3s;
}
.agil-header.scrolled {
  background: rgba(11, 20, 64, 0.99);
  box-shadow: 0 2px 32px rgba(0,0,0,0.35);
}
.nav-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.agil-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  text-decoration: none;
}
.agil-logo svg { width: 26px; height: 34px; flex-shrink: 0; }
.logo-wordmark { display: flex; flex-direction: column; line-height: 1; }
.logo-wordmark .lw-main {
  font-family: var(--font-main);
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 0.28em;
  color: var(--white);
  text-transform: uppercase;
}
.logo-wordmark .lw-sub {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.38em;
  color: var(--steel);
  text-transform: lowercase;
  margin-top: 3px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  margin-left: 20px;
  padding: 9px 24px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--white);
  border-radius: 1px;
  transition: all 0.2s;
  flex-shrink: 0;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--steel-light); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: 4px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); }
.nav-close-btn { display: none; color: var(--white); font-size: 1.3rem; align-self: flex-end; margin-bottom: 24px; }

/* =========================================================
   HERO
   ========================================================= */
.ag-hero {
  min-height: 100vh;
  background: #0B1440; /* fallback quando o vídeo ainda carrega */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}
.ag-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(159,177,212,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159,177,212,0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  animation: grid-drift 30s linear infinite;
}
@keyframes grid-drift {
  0% { background-position: 0 0; }
  100% { background-position: 64px 64px; }
}
.ag-hero::after {
  content: '';
  position: absolute;
  top: 15%;
  right: 8%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(159,177,212,0.12) 0%, transparent 65%);
  pointer-events: none;
  animation: glow-pulse 6s ease-in-out infinite alternate;
}
@keyframes glow-pulse {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.15); }
}
/* Cursor piscando do efeito de digitação */
.ag-cursor {
  display: inline-block;
  width: 2px;
  height: 0.85em;
  background: #9FB1D4;
  margin-left: 3px;
  vertical-align: middle;
  animation: blink-cur 0.75s step-end infinite;
}
@keyframes blink-cur {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.ag-hero__body {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 80px 48px;
  width: 100%;
}
.ag-hero__tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.ag-hero__tag::before {
  content: '';
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--steel);
}
.ag-hero__title {
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 300;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 820px;
  margin-bottom: 32px;
}
.ag-hero__title strong { font-weight: 800; display: block; }
.ag-hero__desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.55);
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: 48px;
}
.ag-hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* Stats bar */
.ag-hero__stats {
  border-top: 1px solid rgba(159,177,212,0.18);
  background: rgba(0,0,0,0.22);
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 2;
}
.ag-hero__stats-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.ag-stat {
  padding: 28px 0 28px 40px;
  border-right: 1px solid rgba(159,177,212,0.12);
}
.ag-stat:first-child { padding-left: 0; }
.ag-stat:last-child { border-right: none; }
.ag-stat__val {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
  display: block;
}
.ag-stat__lbl {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  display: block;
  margin-top: 5px;
}

/* =========================================================
   BOTÕES
   ========================================================= */
.ag-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 1px;
  transition: all 0.22s;
  cursor: pointer;
}
.ag-btn--white { background: var(--white); color: var(--navy); }
.ag-btn--white:hover { background: var(--steel-light); transform: translateY(-1px); }
.ag-btn--outline { background: transparent; color: rgba(255,255,255,0.8); border: 1px solid rgba(255,255,255,0.22); }
.ag-btn--outline:hover { border-color: rgba(255,255,255,0.6); color: var(--white); transform: translateY(-1px); }
.ag-btn--navy { background: var(--navy); color: var(--white); }
.ag-btn--navy:hover { background: var(--navy-dark); transform: translateY(-1px); }
.ag-btn--sage { background: var(--sage); color: var(--charcoal); }
.ag-btn--sage:hover { background: var(--sage-dark); color: var(--white); }

/* =========================================================
   SEÇÕES
   ========================================================= */
.ag-section { padding: var(--section-py) 0; }
.ag-section--light { background: linear-gradient(160deg, var(--off) 0%, var(--light-bg) 100%); }
.ag-section--white { background: var(--white); }
.ag-section--dark { background: linear-gradient(135deg, #0B1440 0%, #111D58 100%); color: var(--white); }
.ag-section--sage-light { background: linear-gradient(160deg, #EEF3FA 0%, #E2EBE2 100%); }

.ag-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.ag-eyebrow::before { content: ''; display: inline-block; width: 28px; height: 1px; background: currentColor; }
.ag-eyebrow--light { color: var(--steel); }
.ag-eyebrow--sage { color: var(--sage-dark); }

.ag-section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--charcoal);
  margin-bottom: 20px;
}
.ag-section-title strong { font-weight: 800; }
.ag-section-title--white { color: var(--white); }
.ag-section-title--white strong { color: var(--steel-light); }

.ag-section-lead { font-size: 1rem; color: var(--text-muted); max-width: 540px; line-height: 1.75; }
.ag-section-lead--singleline { max-width: none; white-space: nowrap; }
.ag-section-lead--white { color: rgba(255,255,255,0.6); }

.ag-divider { width: 36px; height: 2px; background: var(--navy); margin: 24px 0; }
.ag-divider--sage { background: var(--sage); }
.ag-divider--steel { background: var(--steel); }

/* =========================================================
   SEÇÃO: O PROBLEMA
   ========================================================= */
.ag-problema {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
}
.ag-problema__left {
  padding: 72px 56px;
  border-right: 1px solid var(--border);
}
.ag-problema__right {
  padding: 72px 56px;
  background: var(--light-bg);
}
.ag-problema__list { display: flex; flex-direction: column; }
.ag-problema__item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.ag-problema__item:last-child { border-bottom: none; }
.ag-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--steel);
  letter-spacing: 0.08em;
  flex-shrink: 0;
  padding-top: 2px;
  min-width: 28px;
}
.ag-problema__item p { font-size: 0.92rem; color: var(--charcoal); line-height: 1.55; }

/* =========================================================
   SEÇÃO: BRIDGE
   ========================================================= */
.ag-bridge {
  padding: 100px 0;
  background: linear-gradient(135deg, #0B1440 0%, #111D58 60%, #0f1e5a 100%);
  position: relative;
  overflow: hidden;
}
.ag-bridge::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(159,177,212,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159,177,212,0.05) 1px, transparent 1px);
  background-size: 80px 80px;
}
.ag-bridge__inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 48px;
  text-align: center;
}
.ag-bridge__text {
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.ag-bridge__text strong { font-weight: 700; color: var(--steel-light); }

/* =========================================================
   CARDS GRID (diferenciais)
   ========================================================= */
.ag-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
}
.ag-card {
  padding: 48px 40px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.ag-card:nth-child(3n) { border-right: none; }
.ag-card:nth-last-child(-n+3) { border-bottom: none; }
.ag-card:hover { background: var(--light-bg); }

.ag-card--dark { border-color: rgba(159,177,212,0.12); background: transparent; }
.ag-card--dark:hover { background: rgba(255,255,255,0.04); }
.ag-card--dark .ag-card__title { color: var(--white); }
.ag-card--dark .ag-card__text { color: rgba(255,255,255,0.5); }

.ag-card__num {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.2em;
  color: var(--steel);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.ag-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.ag-card__text { font-size: 0.87rem; color: var(--text-muted); line-height: 1.65; }

/* =========================================================
   SOLUÇÕES
   ========================================================= */
.ag-solucoes-list { display: flex; flex-direction: column; border: 1px solid var(--border); }
.ag-solucao {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: start;
  gap: 40px;
  padding: 52px 56px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.ag-solucao:last-child { border-bottom: none; }
.ag-solucao:hover { background: var(--light-bg); }
.ag-solucao__num {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--steel);
  letter-spacing: -0.03em;
  line-height: 1;
}
.ag-solucao__title { font-size: 1.3rem; font-weight: 700; color: var(--charcoal); letter-spacing: -0.02em; margin-bottom: 10px; }
.ag-solucao__text { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; max-width: 520px; }
.ag-solucao__tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage-dark);
  background: rgba(184,196,176,0.2);
  padding: 6px 14px;
  border-radius: 1px;
  white-space: nowrap;
  align-self: start;
  margin-top: 4px;
}

/* =========================================================
   OPERAÇÃO NACIONAL
   ========================================================= */
.ag-nacional {
  display: grid;
  grid-template-columns: 5px 1fr 1fr;
  min-height: 420px;
}
.ag-nacional__accent { background: var(--sage); }
.ag-nacional__left {
  padding: 80px 64px;
  background: var(--navy);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ag-nacional__right {
  padding: 80px 64px;
  background: var(--light-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ag-nacional__items { display: flex; flex-direction: column; gap: 20px; margin-top: 36px; }
.ag-nacional__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.92rem;
  line-height: 1.5;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.ag-nacional__item:last-child { border-bottom: none; }
.ag-nacional__item::before { content: '→'; font-family: var(--font-mono); color: var(--sage); flex-shrink: 0; }
.ag-nacional__item--dark { color: var(--charcoal); }
.ag-nacional__item--dark::before { color: var(--navy); border-color: var(--border); }

/* =========================================================
   NÚMEROS
   ========================================================= */
.ag-numeros-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
}
.ag-numero {
  padding: 72px 56px;
  border-right: 1px solid var(--border);
  text-align: center;
}
.ag-numero:last-child { border-right: none; }
.ag-numero__val {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.03em;
  display: block;
  line-height: 1;
}
.ag-numero__label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-top: 14px;
}
.ag-numero__desc { font-size: 0.82rem; color: var(--text-muted); margin-top: 8px; line-height: 1.5; }

/* =========================================================
   CASES
   ========================================================= */
.ag-cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ag-case {
  border: 1px solid var(--border);
  background: var(--white);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.ag-case:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(17,29,88,0.1); }
.ag-case__accent { height: 4px; background: var(--navy); }
.ag-case:nth-child(2) .ag-case__accent { background: var(--steel); }
.ag-case:nth-child(3) .ag-case__accent { background: var(--sage); }
.ag-case__body { padding: 40px 36px; }
.ag-case__logo { height: 56px; margin-bottom: 24px; display: flex; align-items: center; }
.ag-case__logo img { max-height: 52px; max-width: 170px; object-fit: contain; filter: none; opacity: 1; transition: all 0.3s; }
.ag-case:hover .ag-case__logo img { filter: none; opacity: 1; }
.ag-case__client {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.ag-case__title { font-size: 1.2rem; font-weight: 700; color: var(--charcoal); letter-spacing: -0.02em; margin-bottom: 14px; }
.ag-case__text { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 28px; }
.ag-case__result {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--navy);
  font-weight: 600;
  text-transform: uppercase;
}

/* =========================================================
   PARA QUEM
   ========================================================= */
.ag-paraquem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
}
.ag-paraquem-item {
  padding: 40px 36px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ag-paraquem-item:nth-child(3n) { border-right: none; }
.ag-paraquem-item:nth-last-child(-n+3) { border-bottom: none; }
.ag-paraquem-item__num { font-family: var(--font-mono); font-size: 0.62rem; color: var(--sage-dark); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 14px; }
.ag-paraquem-item__title { font-size: 1rem; font-weight: 700; color: var(--charcoal); margin-bottom: 10px; letter-spacing: -0.01em; }
.ag-paraquem-item__text { font-size: 0.84rem; color: var(--text-muted); line-height: 1.62; }

/* =========================================================
   CTA FINAL
   ========================================================= */
.ag-cta {
  padding: 120px 0;
  background: linear-gradient(135deg, #0B1440 0%, #111D58 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ag-cta::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(159,177,212,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159,177,212,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}
.ag-cta__inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; padding: 0 48px; }
.ag-cta__title { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 300; color: var(--white); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 24px; }
.ag-cta__title strong { font-weight: 800; }
.ag-cta__text { font-size: 1rem; color: rgba(255,255,255,0.55); line-height: 1.75; margin-bottom: 48px; }
.ag-cta__btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* =========================================================
   CONTATO
   ========================================================= */
.ag-contato { padding: var(--section-py) 0; background: var(--off); }
.ag-contato-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; align-items: start; }
.ag-contato-info__list { display: flex; flex-direction: column; gap: 0; margin-top: 36px; }
.ag-contato-info__item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.ag-contato-info__item:last-child { border-bottom: none; }
.ag-contato-info__label { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.2em; color: var(--steel); text-transform: uppercase; min-width: 72px; padding-top: 3px; }
.ag-contato-info__val { font-size: 0.9rem; color: var(--charcoal); line-height: 1.5; }
.ag-contato-info__val a { color: var(--navy); transition: color 0.2s; }
.ag-contato-info__val a:hover { color: var(--steel); }

.ag-form { display: flex; flex-direction: column; gap: 16px; background: var(--white); padding: 48px; border: 1px solid var(--border); }
.ag-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ag-field { display: flex; flex-direction: column; gap: 7px; }
.ag-field label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.ag-field input, .ag-field select, .ag-field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  background: var(--off);
  font-family: var(--font-main);
  font-size: 0.9rem;
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  border-radius: 0;
  -webkit-appearance: none;
}
.ag-field input:focus, .ag-field select:focus, .ag-field textarea:focus { border-color: var(--navy); background: var(--white); }
.ag-field textarea { resize: vertical; min-height: 120px; }

/* =========================================================
   FOOTER
   ========================================================= */
.agil-footer { background: var(--charcoal); }
.footer-inner { max-width: var(--container); margin: 0 auto; padding: 0 48px; }
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 72px;
  padding: 72px 0 56px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand p { margin-top: 20px; font-size: 0.84rem; line-height: 1.7; color: rgba(255,255,255,0.4); max-width: 260px; }
.footer-col h4 { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 24px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col ul a { font-size: 0.87rem; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-col ul a:hover { color: var(--white); }
.footer-col p { font-size: 0.84rem; line-height: 1.65; color: rgba(255,255,255,0.4); }
.footer-col a { color: rgba(255,255,255,0.4); transition: color 0.2s; display: block; margin-top: 8px; }
.footer-col a:hover { color: var(--steel-light); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 28px 0; gap: 24px; }
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.28); font-family: var(--font-mono); letter-spacing: 0.05em; }
.footer-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-tag { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.28); border: 1px solid rgba(255,255,255,0.1); padding: 4px 10px; }

/* =========================================================
   ANIMAÇÕES
   ========================================================= */
/* Conteúdo sempre visível — sem fade-in que cause problemas */
.ag-fade { opacity: 1; transform: none; }
.ag-fade.is-visible { opacity: 1; transform: none; }
.ag-fade-delay-1 { }
.ag-fade-delay-2 { }
.ag-fade-delay-3 { }

/* WHATSAPP */
.ag-whatsapp { position: fixed; bottom: 28px; right: 28px; width: 52px; height: 52px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 200; box-shadow: 0 4px 20px rgba(37,211,102,0.35); transition: transform 0.2s; animation: wa-pulse 2.5s ease-in-out infinite; }
.ag-whatsapp:hover { transform: scale(1.1); }
.ag-whatsapp svg { width: 26px; height: 26px; fill: white; }
@keyframes wa-pulse {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.35); }
  50% { box-shadow: 0 4px 40px rgba(37,211,102,0.75), 0 0 60px rgba(37,211,102,0.25); }
}

/* =========================================================
   CANVAS DE PARTÍCULAS (hi-tech)
   ========================================================= */
#ag-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.ag-hero__body, .ag-hero__stats { position: relative; z-index: 2; }

/* Scanlines suaves sobre o hero */
.ag-hero::before {
  z-index: 3;
}

/* Nav com glassmorphism */
.agil-header {
  background: rgba(11,20,64,0.45) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(159,177,212,0.1);
}
.agil-header.scrolled {
  background: rgba(11,20,64,0.80) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(159,177,212,0.18);
  box-shadow: 0 4px 30px rgba(11,20,64,0.5);
}

/* Números com glow pulsante */
.ag-numero__val {
  animation: num-glow 3s ease-in-out infinite;
}
@keyframes num-glow {
  0%,100% { text-shadow: 0 0 20px rgba(159,177,212,0.4); }
  50% { text-shadow: 0 0 60px rgba(159,177,212,1), 0 0 100px rgba(159,177,212,0.5); }
}

/* Cards hover premium */
.ag-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.ag-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 60px rgba(159,177,212,0.15), 0 0 0 1px rgba(159,177,212,0.25);
}

/* Botões com glow */
.ag-btn { transition: all 0.3s ease !important; }
.ag-btn:hover {
  box-shadow: 0 0 28px rgba(159,177,212,0.4), 0 4px 20px rgba(17,29,88,0.3) !important;
}

/* Links do nav com underline animado */
.nav-links a { position: relative; }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: #9FB1D4;
  transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

/* Linha decorativa com gradiente animado */
.ag-section-label::before {
  background: linear-gradient(90deg, #9FB1D4, #B8C4B0, #9FB1D4) !important;
  background-size: 200% auto !important;
  animation: label-shine 3s linear infinite;
}
@keyframes label-shine {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Inputs com brilho no foco */
.ag-field input:focus,
.ag-field textarea:focus,
.ag-field select:focus {
  outline: none;
  border-color: rgba(159,177,212,0.6) !important;
  box-shadow: 0 0 0 3px rgba(159,177,212,0.12), 0 0 20px rgba(159,177,212,0.1);
}

/* UTILITÁRIOS */
.ag-text-center { text-align: center; }
.ag-text-center .ag-eyebrow::before { display: none; }
.ag-text-center .ag-section-lead { margin: 0 auto; }
.ag-mt-8{margin-top:8px}.ag-mt-16{margin-top:16px}.ag-mt-24{margin-top:24px}.ag-mt-40{margin-top:40px}.ag-mt-56{margin-top:56px}
.ag-mb-8{margin-bottom:8px}.ag-mb-16{margin-bottom:16px}.ag-mb-24{margin-bottom:24px}.ag-mb-40{margin-bottom:40px}.ag-mb-56{margin-bottom:56px}

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 1024px) {
  :root { --section-py: 80px; }
  .ag-container, .nav-inner, .footer-inner { padding: 0 32px; }
  .ag-hero__body, .ag-bridge__inner, .ag-cta__inner { padding-left: 32px; padding-right: 32px; }
  .ag-hero__stats-inner { padding: 0 32px; }
  .ag-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .ag-cases-grid { grid-template-columns: repeat(2, 1fr); }
  .ag-nacional { grid-template-columns: 5px 1fr; }
  .ag-nacional__right { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  :root { --section-py: 60px; }
  .ag-container, .nav-inner, .footer-inner { padding: 0 20px; }
  .ag-hero__body { padding: 64px 20px; }
  .ag-hero__stats-inner { padding: 0 20px; grid-template-columns: repeat(2, 1fr); }
  .ag-bridge__inner, .ag-cta__inner { padding: 0 20px; }
  .nav-links { display: none; position: fixed; inset: 0; background: var(--navy-dark); flex-direction: column; justify-content: center; align-items: center; gap: 36px; z-index: 99; padding: 40px; }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.1rem; }
  .nav-cta { display: none; }
  .nav-close-btn { display: block; }
  .nav-toggle { display: flex; }
  .ag-problema { grid-template-columns: 1fr; }
  .ag-problema__left { border-right: none; border-bottom: 1px solid var(--border); }
  .ag-cards-grid { grid-template-columns: 1fr; }
  .ag-cards-grid .ag-card { border-right: none; }
  .ag-paraquem-grid { grid-template-columns: 1fr; }
  .ag-paraquem-item { border-right: none; }
  .ag-numeros-grid { grid-template-columns: 1fr; }
  .ag-numero { border-right: none; border-bottom: 1px solid var(--border); }
  .ag-numero:last-child { border-bottom: none; }
  .ag-cases-grid { grid-template-columns: 1fr; }
  .ag-solucao { grid-template-columns: 60px 1fr; padding: 32px 20px; gap: 20px; }
  .ag-solucao__tag { display: none; }
  .ag-contato-grid { grid-template-columns: 1fr; gap: 40px; }
  .ag-form { padding: 28px 20px; }
  .ag-form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .ag-nacional__left { padding: 60px 28px; }
}

/* Override scroll-snap do tema antigo */
html, body { scroll-snap-type: none !important; }
* { scroll-snap-align: none !important; scroll-snap-stop: normal !important; }

/* =========================================================
   LOGO IMAGEM (quando enviada via WordPress)
   ========================================================= */
.agil-logo-img {
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1); /* forçar branco no fundo escuro */
}

/* =========================================================
   SEÇÃO: SPLIT FOTO + TEXTO (Sobre a Ágil)
   ========================================================= */
.ag-photo-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}
.ag-photo-split__img {
  background-size: cover;
  background-position: center;
  min-height: 420px;
}
.ag-photo-split__content {
  padding: 80px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Quote premium */
.ag-quote {
  font-size: 1rem;
  font-style: italic;
  color: var(--navy);
  font-weight: 600;
  padding-left: 20px;
  border-left: 3px solid var(--sage);
  line-height: 1.5;
}

/* =========================================================
   SEÇÃO: FOTO FULLWIDTH com overlay
   ========================================================= */
.ag-fullphoto {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* parallax */
  min-height: 480px;
  display: flex;
  align-items: center;
}
.ag-fullphoto__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,20,64,0.88) 0%, rgba(17,29,88,0.78) 100%);
}
.ag-fullphoto__content {
  position: relative;
  z-index: 1;
  padding-top: 80px;
  padding-bottom: 80px;
}
.ag-fullphoto__stats {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}
.ag-fullphoto__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ag-fullphoto__stat .ag-stat__val {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
}
.ag-fullphoto__stat .ag-stat__lbl {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
}

/* =========================================================
   EFEITOS TECH PREMIUM
   ========================================================= */

/* Glow sutil no hover dos cards */
.ag-card:hover {
  background: var(--light-bg);
  box-shadow: 0 0 0 1px var(--steel-light), 0 8px 32px rgba(17,29,88,0.08);
}

/* Número que conta com animação */
.ag-counter {
  transition: opacity 0.3s;
}

/* Linha animada no eyebrow */
.ag-eyebrow {
  overflow: hidden;
}

/* Glow effect nos stats do hero */
.ag-stat__val {
  position: relative;
}

/* Borda tech nas cards de cases */
.ag-case:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 56px rgba(17,29,88,0.14), 0 0 0 1px rgba(159,177,212,0.3);
}

/* Linha de progresso nos items de problema */
.ag-problema__item {
  transition: background 0.2s;
  padding-left: 12px;
  padding-right: 12px;
  margin: 0 -12px;
  border-radius: 2px;
}
.ag-problema__item:hover {
  background: rgba(159,177,212,0.1);
}

/* Efeito shimmer nos números grandes */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.ag-numero__val {
  background: linear-gradient(90deg, var(--navy) 30%, var(--steel) 50%, var(--navy) 70%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

/* Linha scan no hero (efeito tech) */
@keyframes scan {
  0% { transform: translateY(-100%); opacity: 0; }
  10% { opacity: 0.4; }
  90% { opacity: 0.4; }
  100% { transform: translateY(100vh); opacity: 0; }
}
.ag-hero::before {
  pointer-events: none;
}

/* Glow sutil nos botões */
.ag-btn--white:hover {
  box-shadow: 0 4px 20px rgba(255,255,255,0.25);
}
.ag-btn--navy:hover {
  box-shadow: 0 4px 20px rgba(17,29,88,0.4);
}

/* Stats do hero com separador mais visível */
.ag-stat__val {
  text-shadow: 0 0 20px rgba(159,177,212,0.3);
}

/* Hover nos items de solução */
.ag-solucao {
  position: relative;
}
.ag-solucao::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--steel);
  transform: scaleY(0);
  transition: transform 0.3s;
  transform-origin: bottom;
}
.ag-solucao:hover::before {
  transform: scaleY(1);
}

/* =========================================================
   CASES SCROLL HORIZONTAL
   ========================================================= */
.ag-cases-scroll-wrap {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 48px 24px;
  box-sizing: border-box;
  cursor: grab;
  user-select: none;
}
.ag-cases-scroll-wrap::-webkit-scrollbar { display: none; }
.ag-cases-scroll-wrap.dragging { cursor: grabbing; }
.ag-cases-scroll {
  display: flex;
  gap: 24px;
  width: max-content;
}
.ag-cases-scroll .ag-case {
  width: 360px;
  flex-shrink: 0;
}
.ag-case__logo-text {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.04em;
}

/* =========================================================
   LOGO MARQUEE INFINITO
   ========================================================= */
.ag-logo-marquee {
  overflow: hidden;
  padding: 40px 0 48px;
  background: var(--white);
  border-top: 1px solid var(--border);
  margin-top: 56px;
}
.ag-marquee-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 28px;
}
.ag-marquee-overflow { overflow: hidden; }
.ag-marquee-track {
  display: flex;
  gap: 72px;
  width: max-content;
  animation: ag-marquee-scroll 45s linear infinite;
  align-items: center;
}
.ag-marquee-track:hover { animation-play-state: paused; }
@keyframes ag-marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ag-marquee-item {
  flex-shrink: 0;
  width: 220px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ag-marquee-item img {
  height: 68px;       /* altura fixa igual para todos */
  width: auto;        /* largura proporcional */
  max-width: 205px;   /* evita logos muito largos */
  object-fit: contain;
  filter: none;
  opacity: 1;
  transition: opacity 0.3s, filter 0.3s;
}
.ag-marquee-item:hover img { filter: none; opacity: 1; }
.ag-marquee-item-text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.55;
}

/* =========================================================
   RESPONSIVO - NOVAS SEÇÕES
   ========================================================= */
@media (max-width: 1024px) {
  .ag-photo-split { grid-template-columns: 1fr; }
  .ag-photo-split__img { min-height: 320px; }
  .ag-photo-split__content { padding: 60px 40px; }
}
@media (max-width: 768px) {
  .ag-photo-split__content { padding: 48px 20px; }
  .ag-fullphoto { background-attachment: scroll; }
  .ag-fullphoto__stats { gap: 32px; }
  .ag-nacional__item--dark { border-color: var(--border) !important; }
  .ag-cases-scroll-wrap { padding: 0 20px 20px; }
  .ag-cases-scroll .ag-case { width: 290px; }
}

/* =========================================================
   LANGUAGE SWITCHER (PT / EN / ZH)
   ========================================================= */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 14px;
  flex-shrink: 0;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.75);
  transition: background 0.2s, border-color 0.2s;
  text-transform: uppercase;
}
.lang-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.lang-btn.active {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.lang-btn img {
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 1px;
  display: block;
  flex-shrink: 0;
}
.goog-te-banner-frame { display: none !important; }
.skiptranslate { display: none !important; }
body { top: 0 !important; }
#google_translate_element { display: none !important; }
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf { display: none !important; }
@media (max-width: 768px) {
  .lang-switcher { margin-left: 8px; gap: 4px; }
  .lang-btn span { display: none; }
  .lang-btn { padding: 5px 6px; }
}


/* =========================================================
   HERO — VÍDEO DE FUNDO
   ========================================================= */
.ag-hero-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}
/* Overlay azul escuro sobre o vídeo para manter legibilidade */
.ag-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,20,64,0.72) 0%, rgba(17,29,88,0.60) 60%, rgba(11,20,64,0.76) 100%);
  z-index: 1;
  pointer-events: none;
}
/* Tudo dentro do hero sobe acima do overlay */
.ag-hero canvas,
.ag-hero__body,
.ag-hero__stats,
.ag-hero::before,
.ag-hero::after {
  z-index: 2;
}
/* Mobile: pausa o vídeo para economizar dados */
@media (max-width: 768px) {
  .ag-hero-video { display: none; }
  .ag-hero { background:
    linear-gradient(135deg, rgba(11,20,64,0.72) 0%, rgba(17,29,88,0.60) 100%),
    url('https://grupoagilassistencia.com.br/wp-content/uploads/2026/03/Gemini_Generated_Image_55rvdc55rvdc55rv.png') center/cover no-repeat !important; }
}

/* =========================================================
   AJUSTES FINAIS - VIDEO, 3D, OPERACAO E LOGOS COLORIDAS
   ========================================================= */
.ag-hero-video {
  opacity: 0.92;
  filter: saturate(1.45) contrast(1.22) brightness(0.96);
  transform: scale(1.02);
}
.ag-hero-overlay {
  background:
    radial-gradient(circle at 76% 18%, rgba(236,98,85,0.12), transparent 28%),
    radial-gradient(circle at 22% 28%, rgba(159,177,212,0.14), transparent 34%),
    linear-gradient(135deg, rgba(11,20,64,0.46) 0%, rgba(17,29,88,0.30) 54%, rgba(11,20,64,0.62) 100%);
}
.ag-hero__desc {
  color: rgba(255,255,255,0.68);
}

.ag-section--printer {
  background:
    radial-gradient(circle at 12% 18%, rgba(159,177,212,0.18), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%);
}
.ag-about-tech {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 48px;
  grid-template-columns: minmax(420px, 1.05fr) minmax(360px, .95fr);
  gap: 48px;
  align-items: center;
}
.ag-about-tech .ag-photo-split__content {
  padding: 64px 0;
}
.ag-printer-stage {
  position: relative;
  min-height: 580px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #070d2a 0%, #111d58 58%, #0b1440 100%);
  border: 1px solid rgba(159,177,212,0.22);
  box-shadow: 0 28px 90px rgba(11,20,64,0.24);
  cursor: crosshair;
  isolation: isolate;
}
.ag-printer-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(159,177,212,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159,177,212,0.08) 1px, transparent 1px);
  background-size: 54px 54px;
  animation: grid-drift 28s linear infinite;
  pointer-events: none;
}
.ag-printer-stage::after {
  content: '';
  position: absolute;
  inset: auto -18% -18% auto;
  width: 72%;
  height: 58%;
  z-index: 1;
  background: radial-gradient(circle, rgba(159,177,212,0.22), transparent 66%);
  filter: blur(28px);
  pointer-events: none;
}
.ag-printer-stage canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
}
.ag-printer-stage__panel {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 138px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(14px);
  color: #fff;
  box-shadow: 0 16px 44px rgba(0,0,0,0.18);
}
.ag-printer-stage__panel span {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.2em;
  color: rgba(196,212,236,0.75);
}
.ag-printer-stage__panel strong {
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}
.ag-printer-stage__panel--top {
  top: 28px;
  left: 28px;
}
.ag-printer-stage__panel--bottom {
  right: 28px;
  bottom: 28px;
}
.ag-printer-stage.is-active {
  box-shadow: 0 34px 110px rgba(17,29,88,0.34), 0 0 0 1px rgba(159,177,212,0.45) inset;
}
.ag-printer-stage--fallback::before {
  background:
    linear-gradient(rgba(159,177,212,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159,177,212,0.08) 1px, transparent 1px);
  background-size: 54px 54px;
}

.ag-fullphoto {
  min-height: 560px;
  background-position: center 46%;
}
.ag-fullphoto__content {
  max-width: 900px;
  padding-top: 120px;
  padding-bottom: 110px;
}
.ag-fullphoto__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 0;
  max-width: 760px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(14px);
}
.ag-fullphoto__stat {
  padding: 22px 24px;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.ag-fullphoto__stat:last-child {
  border-right: 0;
}

.ag-nacional {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr);
  gap: 28px;
  min-height: auto;
  padding: 96px max(48px, calc((100vw - var(--container)) / 2 + 48px));
  background:
    radial-gradient(circle at 80% 18%, rgba(236,98,85,0.14), transparent 28%),
    linear-gradient(135deg, #081033 0%, #111d58 58%, #07102f 100%);
  overflow: hidden;
}
.ag-nacional::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(159,177,212,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159,177,212,0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
}
.ag-nacional__accent {
  display: none;
}
.ag-nacional__left,
.ag-nacional__right {
  position: relative;
  z-index: 1;
  padding: 52px;
  border-radius: 8px;
  border: 1px solid rgba(159,177,212,0.18);
  box-shadow: 0 24px 80px rgba(0,0,0,0.18);
}
.ag-nacional__left {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(16px);
}
.ag-nacional__right {
  background: rgba(246,248,252,0.96);
}
.ag-nacional__items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.ag-nacional__item {
  min-height: 84px;
  padding: 18px 18px 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.ag-nacional__right .ag-nacional__items {
  grid-template-columns: 1fr;
}
.ag-nacional__right .ag-nacional__item {
  min-height: 0;
  border-bottom: 1px solid rgba(17,29,88,0.1);
}

.ag-case__logo img {
  filter: none !important;
  opacity: 1 !important;
}
.ag-case__logo--multi {
  gap: 14px;
  flex-wrap: wrap;
  height: auto;
  min-height: 58px;
}
.ag-case__logo--multi img {
  max-height: 34px;
  max-width: 104px;
}
.ag-marquee-item img {
  filter: none !important;
  opacity: 1 !important;
}
.ag-logo-marquee {
  background:
    radial-gradient(circle at 50% 0%, rgba(159,177,212,0.16), transparent 38%),
    #ffffff;
}
.ag-marquee-item {
  border-radius: 8px;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.ag-marquee-item:hover {
  background: rgba(159,177,212,0.08);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(17,29,88,0.08);
}

@media (max-width: 1024px) {
  .ag-about-tech {
    grid-template-columns: 1fr;
  }
  .ag-printer-stage {
    min-height: 480px;
  }
  .ag-nacional {
    grid-template-columns: 1fr;
    padding: 72px 32px;
  }
  .ag-nacional__right {
    display: flex;
  }
}
@media (max-width: 768px) {
  .ag-hero-video {
    display: block;
  }
  .ag-hero {
    background: #0B1440 !important;
  }
  .ag-about-tech {
    padding: 0 20px;
    gap: 32px;
  }
  .ag-printer-stage {
    min-height: 360px;
  }
  .ag-printer-stage__panel {
    min-width: 118px;
    padding: 10px 12px;
  }
  .ag-printer-stage__panel--top {
    top: 16px;
    left: 16px;
  }
  .ag-printer-stage__panel--bottom {
    right: 16px;
    bottom: 16px;
  }
  .ag-fullphoto__stats {
    grid-template-columns: 1fr;
  }
  .ag-fullphoto__stat {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }
  .ag-fullphoto__stat:last-child {
    border-bottom: 0;
  }
  .ag-nacional {
    padding: 64px 20px;
  }
  .ag-nacional__left,
  .ag-nacional__right {
    padding: 34px 24px;
  }
  .ag-nacional__items {
    grid-template-columns: 1fr;
  }
}

/* Real product image with lightweight 3D hover */
.ag-printer-stage {
  perspective: 1200px;
  transform-style: preserve-3d;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
}
.ag-printer-stage__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 22% 18%, rgba(159,177,212,0.24), transparent 28%),
    radial-gradient(circle at 78% 80%, rgba(236,98,85,0.14), transparent 30%),
    linear-gradient(135deg, #081033 0%, #111d58 55%, #070d2a 100%);
}
.ag-printer-stage__grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(159,177,212,0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159,177,212,0.09) 1px, transparent 1px);
  background-size: 54px 54px;
  animation: grid-drift 22s linear infinite;
}
.ag-printer-stage__image {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: min(126%, 980px);
  max-width: none;
  height: auto;
  object-fit: contain;
  object-position: center;
  transform:
    translate3d(-50%, -49%, 68px)
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y))
    scale(1.04);
  transform-origin: center;
  filter: drop-shadow(0 34px 44px rgba(0,0,0,0.34));
  transition: transform 0.18s ease-out, filter 0.25s ease;
}
.ag-printer-stage.is-active .ag-printer-stage__image {
  filter: drop-shadow(0 42px 60px rgba(0,0,0,0.42));
}
.ag-printer-stage canvas {
  display: none !important;
}
.ag-printer-stage__panel {
  transform: translateZ(86px);
}
.ag-printer-stage__panel--bottom {
  display: flex;
}

.ag-hero-video {
  opacity: 1;
}
.ag-hero::after {
  background:
    radial-gradient(circle at 78% 24%, rgba(236,98,85,0.18), transparent 34%),
    linear-gradient(100deg, transparent 0%, rgba(255,255,255,0.10) 44%, transparent 68%);
  animation: agHeroSweep 5.5s ease-in-out infinite;
}
@keyframes agHeroSweep {
  0%, 100% { transform: translateX(-14%) scale(1); opacity: .45; }
  50% { transform: translateX(10%) scale(1.08); opacity: .95; }
}

@media (max-width: 768px) {
  .ag-printer-stage__image {
    width: 138%;
  }
}

.ag-marquee-item img[alt="Positivo"] {
  height: 78px;
  max-width: 235px;
}

.ag-case__logo--multi img[alt="Rede D'Or"] {
  max-height: 34px;
  max-width: 140px;
}

.ag-marquee-item img[alt="Rede D'Or"] {
  height: 56px;
  max-width: 230px;
}

@media (max-width: 768px) {
  .ag-section-lead--singleline {
    white-space: normal;
  }
}

/* =========================================================
   V6.7 - ajustes solicitados: 3D procedural, logos e stats centralizados
   ========================================================= */
.ag-hero__stats-inner {
  max-width: none;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
}
.ag-stat {
  padding: 28px 24px;
  text-align: center;
}
.ag-stat:first-child {
  padding-left: 24px;
}

.ag-printer-stage {
  background:
    radial-gradient(circle at 28% 18%, rgba(159,177,212,0.34), transparent 24%),
    radial-gradient(circle at 82% 74%, rgba(236,98,85,0.18), transparent 24%),
    linear-gradient(135deg, #070d2a 0%, #111d58 58%, #0b1440 100%);
}
.ag-printer-stage canvas {
  display: block !important;
}
.ag-printer-stage__grid,
.ag-printer-stage__image {
  display: none !important;
}

.ag-marquee-track {
  gap: 86px;
}
.ag-marquee-item {
  width: 270px;
  height: 112px;
}
.ag-marquee-item img {
  height: 78px;
  max-height: 78px;
  max-width: 250px;
}
.ag-marquee-item img[alt="Pantum"] {
  height: 70px;
  max-height: 70px;
  max-width: 270px;
}
.ag-marquee-item img[alt="Positivo"] {
  height: 92px;
  max-height: 92px;
  max-width: 270px;
}
.ag-marquee-item img[alt="Rede D'Or"] {
  height: 68px;
  max-height: 68px;
  max-width: 280px;
}
.ag-case__logo--multi img[alt="Rede D'Or"] {
  max-height: 40px;
  max-width: 154px;
}

@media (max-width: 768px) {
  .ag-hero__stats-inner {
    grid-template-columns: 1fr;
  }
  .ag-stat,
  .ag-stat:first-child {
    padding: 14px 16px;
    text-align: center;
  }
}
