/* ============================================================
   TEZ & TEZ — Landing Page Design System
   ============================================================ */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Palette — Âmbar Premium */
  --amber-700: #B45309;
  --amber-600: #D97706;
  --amber-500: #F59E0B;
  --amber-400: #FBBF24;
  --amber-300: #FCD34D;
  --amber-100: #FEF3C7;
  --amber-50: #FFFBEB;

  /* Palette — Slate Executivo */
  --slate-950: #020617;
  --slate-900: #0F172A;
  --slate-800: #1E293B;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50: #F8FAFC;

  /* Palette — Azul Corporativo */
  --blue-700: #1D4ED8;
  --blue-600: #1E40AF;
  --blue-500: #3B82F6;

  /* Functional */
  --success: #059669;
  --error: #DC2626;
  --error-soft: #F87171;
  --info: #7C3AED;
  --whatsapp: #25D366;

  /* Surfaces */
  --bg-primary: #FFFFFF;
  --bg-secondary: var(--slate-50);
  --bg-tertiary: var(--slate-100);
  --bg-dark: var(--slate-900);
  --bg-dark-alt: var(--slate-800);

  /* Text */
  --text-primary: var(--slate-900);
  --text-secondary: var(--slate-500);
  --text-tertiary: var(--slate-400);
  --text-inverse: #FFFFFF;

  /* Gradients */
  --gradient-amber: linear-gradient(135deg, var(--amber-600), var(--amber-500));
  --gradient-amber-soft: linear-gradient(135deg, var(--amber-500), var(--amber-300));
  --gradient-dark: linear-gradient(135deg, var(--slate-900), var(--slate-800));
  --gradient-blue: linear-gradient(135deg, var(--blue-600), var(--blue-500));

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
  --shadow-amber: 0 4px 14px -2px rgba(217, 119, 6, 0.25);
  --shadow-amber-lg: 0 10px 30px -4px rgba(217, 119, 6, 0.3);

  /* Borders */
  --border-light: 1px solid var(--slate-200);
  --border-amber: 2px solid var(--amber-500);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Typography — Família única aprovada: Inter */
  --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

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

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Intensidade do "spotlight" dos cards — registrada para poder ser animada */
@property --spot {
  syntax: '<number>';
  inherits: true;
  initial-value: 0;
}


/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Scrollbar personalizada (Firefox / Chrome 121+) */
  scrollbar-color: var(--amber-500) var(--slate-900);
  scrollbar-width: thin;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

input,
textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Seleção de texto em âmbar */
::selection {
  background: rgba(245, 158, 11, 0.32);
}

/* Scrollbar personalizada (Safari / navegadores WebKit) */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--slate-900);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--amber-500), var(--amber-600));
  border-radius: 10px;
  border: 2px solid var(--slate-900);
}

/* Foco visível consistente para navegação por teclado */
:focus-visible {
  outline: 2px solid var(--amber-500);
  outline-offset: 3px;
}

/* --- Utility --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-padding);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-700);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--gradient-amber);
  border-radius: 2px;
}

/* Variante para fundos escuros */
.section-label--light {
  color: var(--amber-400);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 640px;
}

/* --- Scroll Reveal Animations --- */
/* Usa as propriedades individuais `translate`/`opacity` via animation,
   para não conflitar com os `transform` de hover dos cards e para que
   os atrasos escalonados (reveal-delay-*) funcionem de verdade. */
.reveal {
  opacity: 0;
  translate: 0 30px;
}

.reveal.visible {
  animation: revealUp 0.8s var(--ease-out) var(--reveal-delay, 0s) both;
}

@keyframes revealUp {
  from {
    opacity: 0;
    translate: 0 30px;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

.reveal-delay-1 {
  --reveal-delay: 0.1s;
}

.reveal-delay-2 {
  --reveal-delay: 0.2s;
}

.reveal-delay-3 {
  --reveal-delay: 0.3s;
}

.reveal-delay-4 {
  --reveal-delay: 0.4s;
}

.reveal-delay-5 {
  --reveal-delay: 0.5s;
}

.reveal-delay-6 {
  --reveal-delay: 0.6s;
}

.reveal-delay-7 {
  --reveal-delay: 0.7s;
}

/* --- Botões: efeito "shine" restrito exclusivamente ao envio de formulário --- */
.form-submit {
  position: relative;
  overflow: hidden;
}

.form-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.38) 50%, transparent 70%);
  transform: translateX(-120%);
  pointer-events: none;
}

.form-submit:not(:disabled):hover::before {
  transform: translateX(120%);
  transition: transform 0.8s var(--ease-out);
}


/* ============================================================
   1. NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
  transition: padding 0.4s var(--ease-out);
}

.navbar.scrolled {
  padding: 10px 0;
}

.navbar .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 2.5vw, 44px);
  transition: max-width 0.45s var(--ease-out), padding 0.45s var(--ease-out);
}

/* Fundo da "pílula de vidro" — fica num pseudo-elemento para que o
   backdrop-filter não vire containing block do menu mobile (fixed). */
.navbar .container::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0);
  border: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  pointer-events: none;
}

.navbar.scrolled .container {
  max-width: min(1280px, calc(100% - 32px));
  padding: 8px 12px 8px 24px;
  gap: clamp(16px, 2vw, 36px);
}

.navbar.scrolled .container::before {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.navbar-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.navbar-logo img {
  height: 40px;
  width: auto;
  transition: height 0.4s var(--ease-out);
}

.navbar.scrolled .navbar-logo img {
  height: 32px;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 24px);
  flex-shrink: 0;
}

.navbar.scrolled .navbar-nav {
  gap: clamp(10px, 1.2vw, 18px);
}

.navbar-nav a {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.01em;
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}

.navbar-nav a:not(.navbar-cta):hover {
  color: #FFFFFF;
}

.navbar.scrolled .navbar-nav a:not(.navbar-cta):hover,
.navbar-nav a.active:not(.navbar-cta) {
  color: var(--amber-500);
}

.navbar-nav a:not(.navbar-cta)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--amber-500);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-nav a:not(.navbar-cta):hover::after,
.navbar-nav a.active:not(.navbar-cta)::after {
  width: 100%;
}

.navbar-nav .navbar-cta {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--amber-500);
  border: 1px solid var(--amber-600);
  color: var(--slate-950);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s var(--ease-out), background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.navbar.scrolled .navbar-nav .navbar-cta {
  padding: 7px 15px;
  font-size: 0.82rem;
}

.navbar.scrolled .lang-switch-btn {
  padding: 6px 10px;
  font-size: 0.78rem;
  gap: 5px;
}

.navbar-nav .navbar-cta:hover {
  color: var(--slate-950);
  background: var(--amber-400);
  border-color: var(--amber-500);
  transform: translateY(-1px);
}

/* --- Seletor de Idioma Executivo (PT / EN / IT) --- */
.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-full);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  backdrop-filter: blur(8px);
}

.lang-switch-btn:hover,
.lang-switch.is-open .lang-switch-btn {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--amber-500);
  color: var(--amber-400);
}

.lang-globe-icon {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  flex-shrink: 0;
}

.lang-chevron {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  transition: transform 0.25s var(--ease-out);
}

.lang-switch.is-open .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 175px;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s var(--ease-out), visibility 0.2s ease;
}

.lang-switch.is-open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--slate-200);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.lang-option.is-active {
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber-400);
  font-weight: 600;
}

.lang-option .lang-flag {
  font-size: 1rem;
  line-height: 1;
}

.lang-option .lang-name {
  flex-grow: 1;
}

.lang-option .lang-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--slate-400);
}

.lang-option.is-active .lang-tag {
  background: var(--amber-500);
  color: var(--slate-950);
}

/* Base de mobile group oculto em desktop */
.lang-mobile-group {
  display: none;
}

/* Hamburger */
.navbar-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  position: relative;
  z-index: 1001;
  transition: background 0.3s ease;
}

.navbar-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.navbar-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #FFFFFF;
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out), opacity 0.2s ease;
}

/* X perfeitamente centralizado: 2px de altura + 5px de gap = 7px */
.navbar-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.navbar-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Overlay atrás do menu mobile */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}


/* ============================================================
   2. HERO SECTION — Vídeo Cinematográfico & Condutor de Energia
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  /* Fallback crepuscular natural alinhado ao primeiro frame do vídeo (zero fundo azul artificial) */
  background: linear-gradient(155deg, #1b2432 0%, #2d3c4e 52%, #4a4540 82%, #755b3e 100%);
  overflow: hidden;
  padding: 128px 0 96px;
  isolation: isolate;
}

/* Camada de Vídeo Full-Bleed */
.hero-media-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background-color: #0b0f17;
  background-image: url('assets/img/hero-poster.jpg');
  background-size: cover;
  background-position: center 44%;
  background-repeat: no-repeat;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
  display: block;
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

.hero-bg-video.is-active {
  opacity: 1;
}

.hero-loop-scrim {
  position: absolute;
  inset: 0;
  background: #0B0F17;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

.hero-loop-scrim.is-active {
  opacity: 0.88;
}

/* Máscara Óptica Direcional (Scrim Cinematográfico Neutro — sem matiz azul)
   1) Topo: protege a legibilidade da Navbar fixa transparente.
   2) Esquerda → Direita: garante contraste AAA no texto e abre ~90% limpo sobre o vídeo à direita.
   3) Base: vinheta sutil para ancorar a barra branca de indicadores sem encobrir o horizonte dourado. */
.hero-video-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(8, 11, 18, 0.72) 0%, rgba(8, 11, 18, 0.22) 16%, transparent 30%),
    linear-gradient(90deg, rgba(9, 13, 20, 0.82) 0%, rgba(9, 13, 20, 0.64) 34%, rgba(9, 13, 20, 0.22) 58%, rgba(9, 13, 20, 0.04) 80%, rgba(245, 158, 11, 0.06) 100%),
    linear-gradient(180deg, transparent 78%, rgba(9, 13, 20, 0.46) 100%);
  pointer-events: none;
}

/* --- Faixa Vertical Direita: Condutor de Energia Âmbar (Identidade Visual) --- */
.hero-energy-rail {
  position: absolute;
  top: 0;
  bottom: 0;
  right: clamp(16px, 2.6vw, 42px);
  width: 56px;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.15) 10%, #000 22%, #000 86%, rgba(0, 0, 0, 0.2) 95%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.15) 10%, #000 22%, #000 86%, rgba(0, 0, 0, 0.2) 95%, transparent 100%);
}

/* Bainha arquitetônica da faixa vertical com marcações técnicas em Âmbar */
.hero-energy-sheath {
  position: relative;
  width: 14px;
  height: 100%;
  display: flex;
  justify-content: center;
  background:
    repeating-linear-gradient(180deg, transparent 0px, transparent 36px, rgba(251, 191, 36, 0.18) 36px, rgba(251, 191, 36, 0.18) 37px),
    linear-gradient(180deg, rgba(245, 158, 11, 0.04), rgba(251, 191, 36, 0.11) 50%, rgba(245, 158, 11, 0.04));
  border-left: 1px solid rgba(251, 191, 36, 0.3);
  border-right: 1px solid rgba(251, 191, 36, 0.3);
  box-shadow: 0 0 26px rgba(245, 158, 11, 0.18), inset 0 0 10px rgba(245, 158, 11, 0.1);
}

/* Filamento condutor central */
.hero-energy-core {
  position: relative;
  width: 4px;
  height: 100%;
  background: rgba(245, 158, 11, 0.24);
  border-radius: var(--radius-full);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

/* Pulsos harmônicos de corrente elétrica percorrendo a faixa vertical */
.hero-energy-pulse {
  position: absolute;
  left: 0;
  width: 100%;
  border-radius: var(--radius-full);
  will-change: transform;
}

.hero-energy-pulse--primary {
  top: 0;
  height: 25%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--amber-600) 20%,
    var(--amber-500) 48%,
    var(--amber-400) 74%,
    var(--amber-300) 90%,
    var(--amber-50) 96%,
    transparent 100%
  );
  box-shadow:
    0 6px 18px 2px rgba(251, 191, 36, 0.85),
    0 0 34px 7px rgba(245, 158, 11, 0.45);
  animation: heroEnergyPrimary 3.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.hero-energy-pulse--secondary {
  top: 0;
  height: 16%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--amber-500) 28%,
    var(--amber-400) 68%,
    var(--amber-100) 93%,
    transparent 100%
  );
  box-shadow:
    0 4px 14px 2px rgba(252, 211, 77, 0.75),
    0 0 24px 4px rgba(245, 158, 11, 0.35);
  animation: heroEnergySecondary 2.1s linear 1.15s infinite;
}

@keyframes heroEnergyPrimary {
  from {
    transform: translate3d(0, -125%, 0);
  }

  to {
    transform: translate3d(0, 440%, 0);
  }
}

@keyframes heroEnergySecondary {
  from {
    transform: translate3d(0, -125%, 0);
  }

  to {
    transform: translate3d(0, 660%, 0);
  }
}

.hero .container {
  width: 100%;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 3;
}

.hero-content {
  max-width: 630px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(12, 17, 26, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate-100);
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--amber-500);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.8);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 4.2vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-inverse);
  margin-bottom: 20px;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.38);
}

.hero-title .highlight {
  color: var(--amber-500);
}

.hero-description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--slate-200);
  margin-bottom: 36px;
  max-width: 560px;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Botão principal em Âmbar com texto escuro de alto contraste */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: var(--radius-full);
  background: var(--amber-500);
  color: var(--slate-950);
  border: 1px solid var(--amber-600);
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  box-shadow: 0 4px 14px -2px rgba(245, 158, 11, 0.4);
  transition: transform 0.25s var(--ease-out), background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--amber-400);
  border-color: var(--amber-500);
  color: var(--slate-950);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -2px rgba(245, 158, 11, 0.5);
}

.btn-arrow {
  transition: transform 0.3s var(--ease-out);
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

/* Botão secundário com contorno (e vidro escuro no Hero sobre o vídeo) */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--slate-600);
  background: transparent;
  color: var(--slate-200);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition-smooth);
  cursor: pointer;
  text-decoration: none;
}

.btn-outline:hover {
  border-color: var(--slate-400);
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.hero .btn-outline {
  background: rgba(12, 17, 26, 0.48);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(255, 255, 255, 0.24);
  color: #FFFFFF;
}

.hero .btn-outline:hover {
  background: rgba(12, 17, 26, 0.72);
  border-color: var(--amber-400);
  color: #FFFFFF;
}


/* ============================================================
/* ============================================================
   3. FAIXA DE NÚMEROS E DESTAQUES (Barra Executiva Slim)
   ============================================================ */
.numbers-strip {
  padding: 0;
  position: relative;
  z-index: 2;
  margin-top: -36px;
}

.numbers-strip .container {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 36px -12px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  padding: 24px 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border: 1px solid var(--slate-200);
}

.number-item {
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.number-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 15%;
  height: 70%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--slate-200), transparent);
}

.number-value {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 2.5vw, 2.15rem);
  font-weight: 700;
  color: var(--slate-900);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  margin-bottom: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.number-value .highlight {
  color: var(--amber-600);
}

/* Badge sutil para "Desde" */
.number-prefix-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--amber-700);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

/* Ícone de escudo/selo ANEEL */
.number-seal-icon {
  color: var(--amber-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.number-seal-icon svg {
  width: 20px;
  height: 20px;
  color: var(--amber-500);
}

.number-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--slate-500);
  line-height: 1.35;
  max-width: 200px;
}


/* ============================================================
   4. QUEM SOMOS
   ============================================================ */
.about {
  padding: var(--section-padding);
}

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

.about-content {
  max-width: 540px;
}

.about-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

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

.conciliation-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-dark);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition-smooth);
  cursor: help;
}

.conciliation-item:hover,
.conciliation-item:focus-visible,
.conciliation-item.is-open {
  border-color: var(--amber-500);
  background: var(--slate-800);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.conciliation-item:focus-visible {
  outline-offset: 2px;
}

.conciliation-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--slate-800);
  color: var(--amber-500);
  border: 1px solid rgba(245, 158, 11, 0.25);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.conciliation-item:hover .conciliation-icon,
.conciliation-item:focus-visible .conciliation-icon,
.conciliation-item.is-open .conciliation-icon {
  background: var(--slate-700);
  color: var(--amber-400);
  border-color: var(--amber-500);
}

.conciliation-name {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: #FFFFFF;
}

/* Tooltip — abre com hover, foco de teclado ou toque (classe .is-open via JS) */
.conciliation-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 260px;
  padding: 14px 18px;
  background: var(--slate-900);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  line-height: 1.6;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 10;
}

.conciliation-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--slate-900);
}

.conciliation-item:hover .conciliation-tooltip,
.conciliation-item:focus-visible .conciliation-tooltip,
.conciliation-item.is-open .conciliation-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Visual Diagram — Conciliação Quádrupla animada */
.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.quad-diagram {
  --size: 380px;
  --node: 100px;
  --center: 120px;
  --icon: 22px;
  position: relative;
  width: var(--size);
  height: var(--size);
}

/* Anel orbital que conecta os 4 nós, com um ponto de luz girando */
.quad-orbit {
  position: absolute;
  inset: calc(var(--node) / 2);
  border-radius: 50%;
  border: 1px dashed rgba(217, 119, 6, 0.35);
  animation: orbitSpin 40s linear infinite;
  z-index: 0;
}

.quad-orbit::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--amber-500);
  box-shadow: 0 0 12px 3px rgba(245, 158, 11, 0.6);
}

/* Raios (nó → centro) com "pulsos de energia" percorrendo */
.quad-spoke {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(var(--size) / 2 - var(--node) / 2);
  height: 2px;
  margin-top: -1px;
  transform-origin: 0 50%;
  background: linear-gradient(90deg, rgba(217, 119, 6, 0.3), var(--slate-200));
  border-radius: 2px;
  overflow: hidden;
  z-index: 1;
}

.quad-spoke--top {
  rotate: -90deg;
}

.quad-spoke--right {
  rotate: 0deg;
}

.quad-spoke--bottom {
  rotate: 90deg;
}

.quad-spoke--left {
  rotate: 180deg;
}

.quad-spoke::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, var(--amber-300) 6%, var(--amber-500) 14%, transparent 42%);
  transform: translateX(100%);
  animation: energyPulse 2.8s cubic-bezier(0.55, 0, 0.45, 1) infinite;
}

.quad-spoke--right::after {
  animation-delay: 0.7s;
}

.quad-spoke--bottom::after {
  animation-delay: 1.4s;
}

.quad-spoke--left::after {
  animation-delay: 2.1s;
}

@keyframes energyPulse {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(-100%);
  }
}

.quad-center {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: var(--center);
  height: var(--center);
  background: var(--slate-900);
  border: 2.5px solid var(--amber-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber-400);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  text-align: center;
  line-height: 1.3;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 16px rgba(245, 158, 11, 0.2);
  z-index: 3;
}

/* Halo pulsante do centro */
.quad-center::before,
.quad-center::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(245, 158, 11, 0.5);
  animation: haloPulse 3s ease-out infinite;
  z-index: -1;
}

.quad-center::after {
  animation-delay: 1.5s;
}

@keyframes haloPulse {
  from {
    transform: scale(1);
    opacity: 0.8;
  }

  to {
    transform: scale(1.6);
    opacity: 0;
  }
}

.quad-node {
  position: absolute;
  width: var(--node);
  height: var(--node);
  background: var(--amber-100);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--slate-700);
  text-align: center;
  line-height: 1.3;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--amber-500);
  transition: scale 0.35s var(--ease-out), border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, background 0.3s ease;
  z-index: 2;
}

.quad-node svg {
  width: var(--icon);
  height: var(--icon);
  color: var(--amber-600);
  transition: color 0.3s ease;
}

.quad-node--top {
  top: 0;
  left: 50%;
  translate: -50% 0;
}

.quad-node--right {
  right: 0;
  top: 50%;
  translate: 0 -50%;
}

.quad-node--bottom {
  bottom: 0;
  left: 50%;
  translate: -50% 0;
}

.quad-node--left {
  left: 0;
  top: 50%;
  translate: 0 -50%;
}

/* Nó aceso — hover direto ou item correspondente da lista ao lado */
.quad-node:hover,
.quad-node.is-active {
  scale: 1.1;
  border-color: var(--amber-500);
  background: var(--amber-50);
  color: var(--amber-700);
  box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.12), var(--shadow-amber-lg);
}


/* ============================================================
   CARDS — "Spotlight" que segue o mouse (Serviços + Módulos)
   ============================================================ */
/* Borda que acende onde o cursor está */
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(320px circle at var(--x, 50%) var(--y, 50%), rgba(59, 130, 246, 0.65), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: var(--spot, 0);
  pointer-events: none;
  z-index: 2;
}

.module-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  /* Brilho Azul Secundário (Corporativo) */
  background: radial-gradient(320px circle at var(--x, 50%) var(--y, 50%), rgba(59, 130, 246, 0.65), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: var(--spot, 0);
  pointer-events: none;
  z-index: 2;
}

@media (hover: hover) {

  .service-card:hover,
  .module-card:hover {
    --spot: 1;
  }
}


/* ============================================================
   4.1. SEGMENTOS (Nova Seção)
   ============================================================ */
.segments {
  padding: var(--section-padding);
  background: var(--bg-secondary);
  position: relative;
}

.segments-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

.segments-header .section-subtitle {
  margin: 0 auto;
  color: var(--text-secondary);
}

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

.segment-card {
  background:
    radial-gradient(480px circle at var(--x, 50%) var(--y, 50%), rgba(59, 130, 246, calc(0.12 * var(--spot, 0))), transparent 45%),
    var(--bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s ease, --spot 0.4s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(2, 6, 23, 0.35);
}

.segment-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

.segment-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 20px 40px -12px rgba(2, 6, 23, 0.5);
}

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

.segment-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--slate-800);
  color: var(--amber-500);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition-fast);
  border: 1px solid rgba(245, 158, 11, 0.25);
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.3);
}

.segment-card:hover .segment-icon {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--amber-500);
  color: var(--amber-400);
  transform: scale(1.04);
}

.segment-icon svg {
  width: 24px;
  height: 24px;
  color: var(--amber-500);
  transition: var(--transition-fast);
}

.segment-card:hover .segment-icon svg {
  color: var(--amber-400);
}

.segment-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 12px;
  line-height: 1.3;
}

.segment-lead {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--slate-200);
  margin-bottom: 12px;
  line-height: 1.5;
}

.segment-description {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--slate-300);
  flex-grow: 1;
}

.segment-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--amber-400);
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.segment-tag svg {
  color: var(--amber-500);
  flex-shrink: 0;
}


/* ============================================================
   5. PLATAFORMA TGA — seção escura + ciclo do ativo
   ============================================================ */
.platform {
  padding: var(--section-padding);
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Brilho radial de profundidade na Plataforma TGA */
.platform::before {
  content: '';
  position: absolute;
  top: -220px;
  left: 50%;
  translate: -50% 0;
  width: min(1100px, 100vw);
  height: 550px;
  background: radial-gradient(ellipse, rgba(30, 64, 175, 0.28), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Textura de grade técnica (grid lines) na Plataforma TGA — suave e elegante */
.platform::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 30%, transparent 85%);
  pointer-events: none;
  z-index: 0;
}

.platform .container {
  position: relative;
  z-index: 1;
}

.platform-header {
  text-align: center;
  margin-bottom: 64px;
}

.platform .section-label {
  color: var(--amber-400);
}

.platform .section-title {
  color: var(--text-inverse);
}

.platform .section-subtitle {
  color: var(--slate-400);
}

.platform-header .section-subtitle {
  margin: 0 auto;
}

/* Grade dos 7 módulos no ciclo do ativo (3 + 3 + 1 transversal) */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.module-card {
  background:
    radial-gradient(500px circle at var(--x, 50%) var(--y, 50%), rgba(59, 130, 246, calc(0.12 * var(--spot, 0))), transparent 45%),
    var(--bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s ease, --spot 0.4s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.module-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

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

.module-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.55);
  border-color: rgba(59, 130, 246, 0.35);
}

.module-card>* {
  position: relative;
  z-index: 1;
}

/* Selo de etapa do ciclo do ativo */
.module-badge-step {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--amber-400);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  margin-bottom: 12px;
  width: fit-content;
}

.module-badge-step--transversal {
  color: #60A5FA;
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.3);
}

/* Ícones dos módulos: âmbar sobre Slate (conformidade WCAG e manual de marca v1.3) */
.module-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--slate-800);
  border: 1px solid rgba(245, 158, 11, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.module-icon svg {
  width: 24px;
  height: 24px;
  color: var(--amber-500);
  transition: var(--transition-fast);
}

.module-card:hover .module-icon {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--amber-500);
}

.module-card:hover .module-icon svg {
  color: var(--amber-400);
}

.module-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.module-description {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--slate-300);
  margin-bottom: 20px;
}

.module-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.module-tags > span {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.22);
  color: var(--amber-300);
}

.module-tags > span * {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

/* Card Transversal (VECTO): ocupa toda a largura da grade com layout horizontal */
.module-card--transversal {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 32px 36px;
}

.module-transversal-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.module-transversal-header .module-icon {
  margin-bottom: 0;
}

.module-transversal-header .module-name {
  margin-bottom: 0;
  font-size: 1.35rem;
}

.module-card--transversal .module-description {
  margin: 0;
  font-size: 0.95rem;
  color: var(--slate-300);
  max-width: 520px;
}

.module-card--transversal .module-tags {
  margin-top: 0;
  justify-content: flex-end;
}


/* ============================================================
   6. SERVIÇOS — Assessoria e consultoria
   ============================================================ */
.services {
  padding: var(--section-padding);
  background: var(--bg-tertiary);
}

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

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

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

.service-card {
  background:
    radial-gradient(480px circle at var(--x, 50%) var(--y, 50%), rgba(59, 130, 246, calc(0.12 * var(--spot, 0))), transparent 45%),
    var(--bg-dark);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s ease, --spot 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(59, 130, 246, 0.35);
}

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

/* Ícone de serviços: âmbar sobre Slate (conformidade manual v1.3) */
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--slate-800);
  border: 1px solid rgba(245, 158, 11, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--amber-500);
  transition: var(--transition-smooth);
}

.service-icon svg {
  width: 26px;
  height: 26px;
  color: var(--amber-500);
  transition: var(--transition-fast);
}

.service-card:hover .service-icon {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--amber-500);
}

.service-card:hover .service-icon svg {
  color: var(--amber-400);
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.service-description {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--slate-300);
}

/* Linha final institucional de serviços */
.services-footer-banner {
  margin-top: 48px;
  padding: 24px 32px;
  background: var(--bg-primary);
  border: 1px solid var(--slate-200);
  border-left: 4px solid var(--amber-500);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.services-footer-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--slate-700);
  font-weight: 500;
  margin: 0;
}

/* ============================================================
   7. CONFORMIDADE — Faixa escura de autoridade regulatória
   ============================================================ */
.compliance {
  padding: 80px 0;
  background: var(--slate-900);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.compliance .section-label {
  color: var(--amber-400);
}

.compliance .section-title {
  color: #FFFFFF;
}

.compliance-header {
  text-align: center;
  margin-bottom: 40px;
}

.compliance-header .section-subtitle {
  margin: 0 auto;
  max-width: 760px;
  color: var(--slate-300);
}

.compliance-strips {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 36px auto 0;
  max-width: 980px;
}

.compliance-strip {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-lg);
  padding: 20px 32px;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.4);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.compliance-strip:hover {
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 158, 11, 0.08);
}

.compliance-strip-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--amber-400);
  margin-bottom: 10px;
}

.compliance-strip-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.6;
}

.compliance-strip-content span:not(.bullet) {
  color: #F8FAFC;
  transition: color 0.2s ease;
}

.compliance-strip-content span:not(.bullet):hover {
  color: var(--amber-300);
}

.compliance-strip-content .bullet {
  color: var(--amber-500);
  font-size: 1.15rem;
  line-height: 1;
  user-select: none;
}

.compliance-badge:hover {
  border-color: var(--amber-500);
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber-300);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px -2px rgba(245, 158, 11, 0.3);
}

.compliance-badge svg {
  width: 18px;
  height: 18px;
  color: var(--amber-500);
  transition: var(--transition-fast);
}

.compliance-text {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--slate-300);
  font-weight: 500;
}


/* ============================================================
   8. FAQ
   ============================================================ */
.faq {
  padding: var(--section-padding);
  background: var(--bg-primary);
  position: relative;
}

.faq-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-primary);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.faq-item:hover {
  border-color: rgba(245, 158, 11, 0.5);
  background: #FFFFFF;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.faq-item:hover .faq-question {
  color: var(--amber-700);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 24px;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  /* Peso maior como solicitado */
  gap: 16px;
  transition: color 0.3s ease;
}

.faq-question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--amber-500);
  transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

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

.faq-answer-inner {
  padding: 0 24px 24px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 1rem;
}

/* ============================================================
   9. CTA / CONTATO
   ============================================================ */
.contact {
  padding: var(--section-padding);
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 100vw);
  height: 450px;
  background: radial-gradient(ellipse, rgba(30, 64, 175, 0.22) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Textura de grade técnica (grid lines) na seção de Contato */
.contact::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, #000 25%, transparent 80%);
  mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, #000 25%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.contact .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.contact-info {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.contact-info .section-title {
  color: var(--text-inverse);
}

.contact-info .section-subtitle {
  color: var(--slate-400);
  margin-bottom: 28px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-detail-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(217, 119, 6, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 22px;
  height: 22px;
  color: var(--amber-500);
}

.contact-detail-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.contact-detail-value {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-inverse);
}

.contact-detail-value a {
  color: var(--text-inverse);
}

.contact-detail-value a:hover {
  color: var(--amber-400);
}

.contact-detail-sub {
  font-size: 0.78rem;
  color: var(--slate-400);
  margin-top: 4px;
  line-height: 1.4;
}

/* Card de Endereço e Localização (sem iframe externo) */
.contact-map-card {
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.contact-map-card:hover {
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 158, 11, 0.08);
}

.contact-address-body {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 20px;
}

.contact-address-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contact-address-street {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-inverse);
  line-height: 1.4;
}

.contact-address-city {
  font-size: 0.85rem;
  color: var(--slate-400);
  line-height: 1.45;
}

.contact-map-card.has-map {
  flex: 1 1 0;
  min-height: 280px;
}

.contact-map-card.has-map .contact-map-frame-wrap {
  display: block !important;
  flex: 1 1 auto;
  position: relative;
  width: 100%;
  min-height: 220px;
}

.contact-map-card.has-map .contact-address-body {
  display: none;
}

.contact-map-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: none;
  filter: contrast(102%) brightness(96%);
}

.contact-map-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(15, 23, 42, 0.75);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.825rem;
  gap: 12px;
}

.contact-map-pin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--slate-300);
  font-weight: 500;
}

.contact-map-pin svg {
  width: 16px;
  height: 16px;
  color: var(--amber-500);
  flex-shrink: 0;
}

.contact-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--amber-400);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
  white-space: nowrap;
}

.contact-map-btn:hover {
  color: var(--amber-300);
  gap: 8px;
}

.contact-map-btn svg {
  width: 14px;
  height: 14px;
}

/* Form */
.contact-form {
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 40px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.5);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate-400);
}

.form-label .required {
  color: var(--amber-400);
}

/* Ícones dentro dos campos */
.input-wrap {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  translate: 0 -50%;
  width: 18px;
  height: 18px;
  color: var(--slate-500);
  pointer-events: none;
  transition: color 0.2s ease;
}

.input-wrap--textarea .input-icon {
  top: 14px;
  translate: none;
}

.input-wrap:focus-within .input-icon {
  color: var(--amber-400);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px 12px 44px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-inverse);
  font-size: 0.95rem;
  transition: var(--transition-fast);
  outline: none;
}

.form-input option {
  background-color: var(--slate-900);
  color: var(--text-inverse);
}

.form-input option:disabled {
  color: var(--slate-500);
}

select.form-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%2394a3b8%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 48px;
  /* space for the custom arrow */
}

/* Fix browser autofill styling */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #1e293b inset !important;
  -webkit-text-fill-color: white !important;
  caret-color: white;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--slate-500);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--amber-500);
  background: rgba(217, 119, 6, 0.05);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

/* Validação moderna: só fica vermelho DEPOIS que o usuário interage */
.form-input:user-invalid,
.form-textarea:user-invalid {
  border-color: var(--error-soft);
  background: rgba(248, 113, 113, 0.06);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12);
}

.input-wrap:has(:user-invalid) .input-icon {
  color: var(--error-soft);
}

.form-error {
  display: none;
  font-size: 0.78rem;
  color: #FCA5A5;
}

.form-group:has(:user-invalid) .form-error {
  display: block;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  background: var(--amber-500);
  color: var(--slate-950);
  border: 1px solid var(--amber-600);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px -2px rgba(245, 158, 11, 0.35);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  margin-top: 8px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.form-submit:not(:disabled):hover {
  background: var(--amber-400);
  border-color: var(--amber-500);
  color: var(--slate-950);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px -2px rgba(245, 158, 11, 0.45);
}

.form-submit:disabled {
  cursor: default;
}

.form-submit.is-success {
  background: #22C55E !important;
  border-color: #16A34A !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.4) !important;
  transform: none !important;
  cursor: default;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Honeypot anti-spam — fora da tela, invisível para pessoas */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Consentimento LGPD */
.form-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  column-gap: 12px;
  row-gap: 6px;
  margin: 4px 0 16px;
}

.form-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--amber-500);
  cursor: pointer;
}

.form-consent label {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--slate-400);
  cursor: pointer;
}

.form-consent label a {
  color: var(--amber-400);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-consent label a:hover {
  color: var(--amber-300);
}

.form-consent label .required {
  color: var(--amber-400);
}

.form-consent .form-error {
  grid-column: 2;
}

.form-consent:has(:user-invalid) .form-error {
  display: block;
}

.form-consent:has(:user-invalid) label {
  color: #FCA5A5;
}

/* Mensagem de retorno do envio (sucesso / erro) */
.form-feedback {
  margin-top: 12px;
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: center;
  color: var(--slate-300);
}

.form-feedback:empty {
  display: none;
}

.form-feedback.is-error {
  color: #FCA5A5;
}

.form-feedback.is-success {
  color: #6EE7B7;
}

.form-feedback a {
  color: var(--amber-400);
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* ============================================================
   10. FOOTER
   ============================================================ */
.footer {
  background: var(--slate-900);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 64px 0 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr;
  align-items: flex-start;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 24px;
  gap: 32px;
}

.footer-company-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 350px;
}

.footer-logo {
  display: inline-block;
}

.footer-logo img {
  width: 155px;
  max-width: 100%;
  height: auto;
  opacity: 0.95;
  transition: opacity var(--transition-fast);
}

.footer-logo:hover img {
  opacity: 1;
}

.footer-tagline {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--amber-400);
  margin-top: -6px;
  margin-bottom: 4px;
}

.footer-address {
  font-size: 0.85rem;
  color: var(--slate-400);
  line-height: 1.6;
}

.footer-address strong {
  color: var(--slate-200);
}

.footer-address-link {
  color: var(--slate-400);
  text-decoration: none;
  transition: color var(--transition-fast);
  display: inline-block;
  margin-top: 4px;
}

.footer-address-link:hover {
  color: var(--amber-400);
}

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

.footer-social a {
  color: var(--slate-400);
  transition: var(--transition-fast);
  display: inline-flex;
}

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

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--amber-500);
  margin-bottom: 16px;
  display: inline-block;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--slate-400);
  transition: var(--transition-fast);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--slate-400);
}

.footer-bottom-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0.6;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate-400);
  flex-wrap: wrap;
}

.footer-bottom-badges .bullet {
  opacity: 0.4;
  font-size: 0.8rem;
}


/* ============================================================
   10. BOTÃO FLUTUANTE — WHATSAPP
   ============================================================ */
.whatsapp-float {
  position: fixed;
  right: 36px;
  bottom: 36px;
  z-index: 900;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px -6px rgba(37, 211, 102, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out), visibility 0.4s ease, box-shadow 0.3s ease;
}

.whatsapp-float.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.whatsapp-float.is-visible:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px -6px rgba(37, 211, 102, 0.7);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

/* Anel pulsante */
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--whatsapp);
  z-index: -1;
  animation: waPulse 2.4s ease-out infinite;
}

@keyframes waPulse {
  from {
    transform: scale(1);
    opacity: 0.5;
  }

  to {
    transform: scale(1.6);
    opacity: 0;
  }
}

.whatsapp-float-label {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  translate: 0 -50%;
  white-space: nowrap;
  background: var(--slate-900);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out);
  pointer-events: none;
}

.whatsapp-float:hover .whatsapp-float-label,
.whatsapp-float:focus-visible .whatsapp-float-label {
  opacity: 1;
  transform: none;
}


/* ============================================================
   10.5. BANNER DE CONSENTIMENTO DE COOKIES LGPD
   Design executivo glassmorphism — posicionado à esquerda para não colidir com WhatsApp
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 950;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px;
  background: rgba(10, 18, 30, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 195, 255, 0.22);
  border-radius: var(--radius-md, 12px);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.65), 0 0 20px -5px rgba(0, 136, 204, 0.2);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out);
  pointer-events: none;
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-banner-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.cookie-banner-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--amber-400, #FBBF24);
  margin-top: 2px;
}

.cookie-banner-icon svg {
  width: 100%;
  height: 100%;
}

.cookie-banner-text {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--slate-300, #CBD5E1);
  margin: 0;
}

.cookie-banner-text a {
  color: #38BDF8;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.cookie-banner-text a:hover {
  color: #7DD3FC;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.btn-primary-cookie {
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-heading, inherit);
  border-radius: 6px;
  background: var(--amber-500, #F59E0B);
  color: #0F172A;
  border: 1px solid var(--amber-600, #D97706);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary-cookie:hover {
  background: var(--amber-400, #FBBF24);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.btn-outline-cookie {
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  font-family: var(--font-heading, inherit);
  border-radius: 6px;
  background: transparent;
  color: var(--slate-400, #94A3B8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn-outline-cookie:hover {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 640px) {
  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 8px;
    max-width: none;
    max-height: 136px;
    padding: 10px 12px;
    gap: 8px;
  }
  .cookie-banner-icon {
    display: none;
  }
  .cookie-banner-text {
    font-size: 0.76rem;
    line-height: 1.35;
  }
  .cookie-banner-actions {
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
  }
  .cookie-banner-actions button {
    flex: 1 1 0;
    width: auto;
    padding: 7px 10px;
    font-size: 0.78rem;
    text-align: center;
    white-space: nowrap;
  }
}


/* ============================================================
   11. PÁGINA LEGAL (Política de Privacidade)
   ============================================================ */
.legal-header {
  position: relative;
  background: var(--bg-dark);
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: visible;
  isolation: isolate;
  z-index: 100;
}

.legal-header::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  translate: -50% 0;
  width: min(900px, 100vw);
  height: 400px;
  background: radial-gradient(ellipse, rgba(30, 64, 175, 0.25), transparent 65%);
  pointer-events: none;
  z-index: -1;
}

.legal-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.legal-logo img {
  height: 38px;
  width: auto;
}

.legal-back {
  padding: 10px 20px;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legal-disclaimer {
  background: rgba(245, 158, 11, 0.08);
  border-left: 3px solid var(--amber-500);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 28px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--slate-700);
}

.legal-disclaimer strong {
  color: var(--amber-700);
}

.legal-main {
  padding: 72px 0 96px;
  background: var(--bg-secondary);
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-primary);
  border: var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 56px 64px;
  color: var(--slate-700);
}

.legal-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.legal-updated {
  font-size: 0.875rem;
  color: var(--slate-500);
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: var(--border-light);
}

.legal-content h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 40px 0 12px;
  letter-spacing: -0.01em;
}

.legal-content p {
  margin-bottom: 14px;
}

.legal-content ul {
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-content li {
  position: relative;
  padding-left: 20px;
}

.legal-content li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.7em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gradient-amber);
}

.legal-content a {
  color: var(--amber-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: var(--amber-600);
}

.legal-content strong {
  color: var(--text-primary);
}

.legal-page .footer {
  padding: 24px 0;
}

@media (max-width: 640px) {
  .legal-header-actions {
    gap: 8px;
  }

  .legal-main {
    padding: 40px 0 64px;
  }

  .legal-content {
    padding: 32px 24px;
    border-radius: var(--radius-lg);
  }

  .legal-back {
    padding: 8px 12px;
    font-size: 0.8125rem;
  }
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .hero-content {
    max-width: 580px;
  }


  .numbers-strip .container {
    grid-template-columns: repeat(2, 1fr);
    padding: 36px 40px;
  }

  .number-item:not(:last-child)::after {
    display: none;
  }

  .about .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-visual {
    order: -1;
  }

  .quad-diagram {
    --size: 300px;
    --node: 80px;
    --center: 100px;
    --icon: 18px;
  }

  .quad-center {
    font-size: 0.65rem;
  }

  .quad-node {
    font-size: 0.6rem;
  }

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

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

  .module-card--transversal {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .module-card--transversal .module-tags {
    justify-content: flex-start;
  }

  .contact .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-info {
    max-width: 100%;
  }

  .contact-map-card {
    flex: none;
    margin-top: 24px;
    min-height: 260px;
  }

  .contact-map-frame-wrap {
    height: 240px;
    min-height: 240px;
  }

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

/* Tablet & Mobile Navigation */
@media (max-width: 1024px) {
  /* Navbar mobile */
  .navbar.scrolled .container {
    padding: 6px 6px 6px 20px;
  }

  /* Menu lateral escuro com glassmorphism */
  .navbar-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1000;
    width: min(320px, 85vw);
    height: 100vh;
    height: 100dvh;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 96px 28px 32px;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.45s var(--ease-out), visibility 0.45s ease;
  }

  .navbar-nav.active {
    transform: none;
    visibility: visible;
  }

  .navbar-nav a:not(.navbar-cta) {
    font-size: 1.125rem;
    padding: 16px 4px;
    color: var(--slate-200);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .navbar-nav a:not(.navbar-cta)::after {
    display: none;
  }

  .navbar-nav .navbar-cta {
    margin-top: 28px;
    padding: 14px 20px;
    font-size: 1rem;
    text-align: center;
  }

  /* Idiomas no menu lateral mobile */
  .lang-switch {
    display: none;
  }

  .lang-mobile-group {
    display: block;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .lang-mobile-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--slate-400);
    margin-bottom: 10px;
  }

  .lang-mobile-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .lang-mobile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    color: var(--slate-300);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  }

  .lang-mobile-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
  }

  .lang-mobile-btn.is-active {
    background: rgba(245, 158, 11, 0.18);
    border-color: var(--amber-500);
    color: var(--amber-400);
  }

  /* Entrada escalonada dos links */
  .navbar-nav.active a {
    animation: navItemIn 0.5s var(--ease-out) both;
  }

  .navbar-nav.active a:nth-child(1) {
    animation-delay: 0.1s;
  }

  .navbar-nav.active a:nth-child(2) {
    animation-delay: 0.15s;
  }

  .navbar-nav.active a:nth-child(3) {
    animation-delay: 0.2s;
  }

  .navbar-nav.active a:nth-child(4) {
    animation-delay: 0.25s;
  }

  .navbar-nav.active a:nth-child(5) {
    animation-delay: 0.32s;
  }

  .navbar-toggle {
    display: flex;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --section-padding: 64px 0;
  }

  /* Hero */
  .hero {
    padding: 88px 0 64px;
    min-height: auto;
  }

  .hero-bg-video {
    display: none !important;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero-badge {
    margin-bottom: 12px;
  }

  .hero-description {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 18px;
  }

  .hero-video-scrim {
    background:
      linear-gradient(180deg, rgba(8, 11, 18, 0.84) 0%, rgba(9, 13, 20, 0.74) 48%, rgba(9, 13, 20, 0.86) 100%);
  }

  .hero-energy-rail {
    right: 4px;
    width: 30px;
    opacity: 0.72;
  }

  .hero-energy-sheath {
    width: 10px;
  }

  .hero-title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

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

  /* Numbers */
  .numbers-strip .container {
    grid-template-columns: 1fr 1fr;
    padding: 22px 18px;
    gap: 20px;
  }

  .number-item:not(:last-child)::after {
    display: none;
  }

  .number-value {
    font-size: 1.65rem;
  }

  /* About */
  .conciliation-grid {
    grid-template-columns: 1fr;
  }

  .quad-diagram {
    --size: 260px;
    --node: 70px;
    --center: 90px;
    --icon: 16px;
  }

  .quad-center {
    font-size: 0.6rem;
  }

  .quad-node {
    font-size: 0.55rem;
    gap: 2px;
  }

  /* Platform */
  .platform-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .module-card--transversal {
    grid-column: 1;
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }

  .services-footer-banner {
    padding: 20px 16px;
    text-align: left;
  }

  /* Form */
  .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 28px 20px;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .footer-company-info {
    align-items: center;
    margin: 0 auto;
  }

  .footer-nav {
    align-items: center;
  }

  .footer-links {
    text-align: center;
  }


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

  .footer-bottom-badges {
    justify-content: center;
  }

  /* WhatsApp */
  .whatsapp-float {
    right: 20px;
    bottom: 20px;
    width: 52px;
    height: 52px;
  }

  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }

  .whatsapp-float-label {
    display: none;
  }
}

@keyframes navItemIn {
  from {
    opacity: 0;
    translate: 24px 0;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

@media (max-width: 1024px) {
  .segments-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .segments-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .numbers-strip .container {
    grid-template-columns: 1fr;
  }

  .compliance-strip {
    padding: 16px 18px;
  }

  .compliance-strip-content {
    font-size: 0.88rem;
    gap: 6px 8px;
  }
}


/* ============================================================
   ACESSIBILIDADE — Reduzir movimento
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .reveal {
    opacity: 1;
    translate: none;
  }

  .hero-energy-pulse {
    animation: none !important;
    transform: none !important;
    top: 30%;
    height: 40%;
    opacity: 0.75;
  }

  .hero-energy-pulse--secondary {
    display: none;
  }
}

/* ============================================================
   SUPRESSÃO DO WIDGET PADRÃO DO GOOGLE TRANSLATE
   Garante visual executivo sem banners intrusivos ou deslocamento
   ============================================================ */
body {
  top: 0px !important;
  position: static !important;
}

.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
}

body > .skiptranslate {
  display: none !important;
}

.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}

font[style*="vertical-align"] {
  background: transparent !important;
}
/* Item 13: Publicação exclusivamente em português — oculta seletor de idioma */
.lang-switch,
.lang-mobile-group {
  display: none !important;
}

/* ============================================================
   INTRO REVEAL — CORTINA DE ABERTURA AUTOMÁTICA (TEMPORÁRIO)
   Para remover depois, basta apagar este bloco até o final
   ============================================================ */
.intro-curtain {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
  cursor: pointer;
  background: transparent;
}

.intro-curtain-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: radial-gradient(circle at center, #0d1527 0%, #060912 100%);
  transition: transform 0.95s cubic-bezier(0.83, 0, 0.17, 1);
  will-change: transform;
  z-index: 1;
}

.intro-curtain-left {
  left: 0;
  border-right: 1px solid rgba(229, 169, 60, 0.3);
  box-shadow: 12px 0 35px rgba(0, 0, 0, 0.7);
}

.intro-curtain-right {
  right: 0;
  border-left: 1px solid rgba(229, 169, 60, 0.3);
  box-shadow: -12px 0 35px rgba(0, 0, 0, 0.7);
}

.intro-curtain-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  pointer-events: none;
  transition: opacity 0.45s ease-out, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.intro-curtain-logo-wrap {
  width: 220px;
  max-width: 78vw;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 20px rgba(229, 169, 60, 0.25));
  animation: introLogoGlow 1.8s ease-in-out infinite alternate;
}

.intro-curtain-logo {
  width: 100%;
  height: auto;
  display: block;
}

.intro-curtain-divider {
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #E5A93C, transparent);
  margin-bottom: 14px;
}

.intro-curtain-tagline {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.85);
  margin: 0;
}

.intro-curtain-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 12px 28px;
  border-radius: 9999px;
  background: rgba(229, 169, 60, 0.12);
  border: 1px solid rgba(229, 169, 60, 0.45);
  color: #F8FAFC;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), 0 0 20px rgba(229, 169, 60, 0.15);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: introBtnPulse 2.2s ease-in-out infinite;
  cursor: pointer;
}

.intro-curtain-btn svg {
  width: 16px;
  height: 16px;
  stroke: #E5A93C;
  transition: transform 0.25s ease;
}

.intro-curtain:hover .intro-curtain-btn {
  background: rgba(229, 169, 60, 0.22);
  border-color: rgba(229, 169, 60, 0.75);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.45), 0 0 30px rgba(229, 169, 60, 0.35);
  transform: translateY(-2px);
}

.intro-curtain:hover .intro-curtain-btn svg {
  transform: translateX(4px);
}

@keyframes introBtnPulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), 0 0 15px rgba(229, 169, 60, 0.15);
    border-color: rgba(229, 169, 60, 0.4);
  }
  50% {
    box-shadow: 0 4px 26px rgba(0, 0, 0, 0.45), 0 0 26px rgba(229, 169, 60, 0.35);
    border-color: rgba(229, 169, 60, 0.75);
  }
}

@keyframes introLogoGlow {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 4px 15px rgba(229, 169, 60, 0.15));
  }
  100% {
    transform: scale(1.02);
    filter: drop-shadow(0 6px 28px rgba(229, 169, 60, 0.4));
  }
}

/* Estado de abertura das cortinas */
.intro-curtain.is-opening .intro-curtain-content {
  opacity: 0;
  transform: scale(1.06);
}

.intro-curtain.is-opening .intro-curtain-left {
  transform: translateX(-100%);
}

.intro-curtain.is-opening .intro-curtain-right {
  transform: translateX(100%);
}

.intro-curtain.is-done {
  display: none !important;
  pointer-events: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .intro-curtain {
    display: none !important;
  }
}
