/* ============================================================
   CONDÁ PREMIUM — LANDING PAGE
   Sistema de tokens: cores, tipografia, espaçamento, componentes
   ============================================================ */

:root {
  /* Cores */
  --green: #00c853;
  --green-dark: #009e41;
  --green-glow: rgba(0, 200, 83, 0.35);
  --black: #050505;
  --graphite: #0d0d0d;
  --charcoal: #1c1c1c;
  --charcoal-soft: #141414;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --white: #ffffff;
  --off-white: rgba(255, 255, 255, 0.72);
  --off-white-dim: rgba(255, 255, 255, 0.48);

  /* Tipografia */
  --font: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Espaçamento */
  --section-pad: clamp(72px, 10vw, 140px);
  --container: 1240px;
  --radius: 16px;
  --radius-sm: 10px;

  /* Transições */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select { font-family: inherit; }

::selection { background: var(--green); color: var(--black); }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* Textura sutil de fibra de carbono, usada em fundos escuros */
.carbon-texture {
  background-color: var(--graphite);
  background-image:
    linear-gradient(27deg, #0a0a0a 5px, transparent 5px),
    linear-gradient(207deg, #0a0a0a 5px, transparent 5px),
    linear-gradient(27deg, #0a0a0a 5px, transparent 5px),
    linear-gradient(207deg, #0a0a0a 5px, transparent 5px),
    linear-gradient(90deg, #0c0c0c 10px, transparent 10px),
    linear-gradient(#0c0c0c 25%, transparent 25%);
  background-size: 20px 35px;
  background-position: 0 0, 0 0, 10px 18px, 10px 18px, 0 0, 0 0;
}

/* ---------- Utilitários ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--green);
  box-shadow: 0 0 8px var(--green-glow);
}

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(32px, 4vw, 46px);
  margin-top: 14px;
}

.section-head p {
  margin-top: 16px;
  color: var(--off-white);
  font-size: 17px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ============================================================
   SCROLL REVEAL — animações ao entrar na viewport
   ============================================================ */

/* Base: todos os elementos animados começam invisíveis */
.reveal,
.reveal-left,
.reveal-right,
.reveal-scale,
.reveal-line {
  opacity: 0;
  will-change: opacity, transform;
}

/* Subir (padrão) */
.reveal {
  transform: translateY(32px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

/* Entrar pela esquerda */
.reveal-left {
  transform: translateX(-40px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

/* Entrar pela direita */
.reveal-right {
  transform: translateX(40px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

/* Escalar a partir do centro (cards, destaques) */
.reveal-scale {
  transform: scale(0.94) translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

/* Linha que cresce (separadores, eyebrows) */
.reveal-line {
  transform: scaleX(0);
  transform-origin: left center;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

/* Estado visível — igual para todos */
.reveal.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-scale.is-visible,
.reveal-line.is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger por índice */
.reveal.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-scale.is-visible {
  transition-delay: calc(var(--i, 0) * 80ms);
}

/* Reveal em grupo: filhos com stagger */
.reveal-group .reveal-child {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: 0ms;
  will-change: opacity, transform;
}
.reveal-group.is-visible .reveal-child {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--i, 0) * 110ms);
}

/* Reduz motion quando o usuário preferir */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale, .reveal-line,
  .reveal-group .reveal-child {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Em mobile reduz duração para não parecer lento */
@media (max-width: 640px) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale, .reveal-line,
  .reveal-group .reveal-child {
    transition-duration: 0.5s !important;
  }
}

/* Lenis: evita conflito entre o smooth-scroll nativo e o da lib */
html.lenis,
html.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth iframe { pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal-group .reveal-child { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Performance em telas menores: reduz o custo de blur/backdrop-filter */
@media (max-width: 640px) {
  .header.is-scrolled { backdrop-filter: blur(8px); }
  .btn-secondary, .ba-label, .nav-links.mobile-open { backdrop-filter: blur(6px); }
  .reveal, .reveal-group .reveal-child { transition-duration: 0.55s; }
}

html, body { overflow-x: hidden; max-width: 100%; }
/* overscroll-behavior-y: none apenas em mobile para evitar pull-to-refresh */
@media (pointer: coarse) {
  html, body { overscroll-behavior-y: none; }
}
* { -webkit-tap-highlight-color: transparent; }

/* ===== Vídeo PPF resultado ===== */
.ppf-video-wrap{
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}
.ppf-video-copy h3{ margin: 6px 0 0; }

/* Trilho horizontal arrastável com os vídeos (mesmo padrão da galeria de certificados) */
.ppf-video-track{
  display: flex;
  gap: 20px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 4px 16px;
  margin: 0 -4px;
  cursor: grab;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  user-select: none;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.ppf-video-track.dragging{
  cursor: grabbing;
  scroll-snap-type: none;
}
.ppf-video-track::-webkit-scrollbar { height: 6px; }
.ppf-video-track::-webkit-scrollbar-track { background: transparent; }
.ppf-video-track::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 10px; }

.ppf-video-frame{
  position: relative;
  flex: 0 0 auto;
  width: min(520px, 72vw);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
  background: #000;
  line-height: 0;
  scroll-snap-align: start;
}
.ppf-video{
  display: block;
  width: 100%;
  height: auto;
  background: #000;
  pointer-events: none;
  -webkit-user-drag: none;
}
.ppf-video-toggle{
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background .2s ease, transform .2s ease;
}
.ppf-video-toggle:hover{ background: rgba(0,0,0,.8); transform: scale(1.05); }
.ppf-video-toggle svg{ display: block; }

.ppf-video-hint{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--off-white-dim);
}
.ppf-video-hint svg{ width: 16px; height: 16px; color: var(--green); flex-shrink: 0; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}

.btn-primary {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--black);
  box-shadow: 0 8px 24px -8px var(--green-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -8px rgba(0, 200, 83, 0.55); }

.btn-secondary {
  border: 1px solid var(--line-strong);
  color: var(--white);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);
}
.btn-secondary:hover { border-color: var(--green); background: rgba(0, 200, 83, 0.08); }

.btn-block { width: 100%; }

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.header.is-scrolled {
  padding: 14px 0;
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.logo-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 9px;
  background: var(--white);
  padding: 3px;
}

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

.logo--footer { margin-bottom: 2px; }

.logo-full {
  width: 168px;
  object-fit: contain;
  border-radius: 12px;
  background: var(--white);
  padding: 10px 14px;
}

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

.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--off-white);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--green);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

.nav-links > .btn { display: none; }

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

.header .btn-primary { padding: 12px 24px; font-size: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  z-index: 110;
}
.nav-toggle span {
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh; /* evita "pulo" de altura quando a barra do navegador mobile recolhe/expande */
  display: flex;
  align-items: center;
  padding-top: 110px;
  overflow: hidden;
  background: var(--black);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  will-change: transform;
}

.hero-bg svg { width: 100%; height: 100%; }

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) brightness(0.62) contrast(1.05);
}

/* A ilustração SVG fica atrás como plano B, e some assim que o vídeo carrega */
.hero-fallback-svg { position: relative; z-index: -1; }
.hero-bg.has-video .hero-fallback-svg { display: none; }
.hero-bg:not(.has-video) .hero-video { display: none; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 78% 45%, rgba(0, 200, 83, 0.14), transparent 70%),
    linear-gradient(100deg, rgba(5,5,5,0.98) 32%, rgba(5,5,5,0.75) 55%, rgba(5,5,5,0.35) 100%),
    linear-gradient(0deg, rgba(5,5,5,1) 0%, rgba(5,5,5,0.2) 40%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 660px;
}

.hero-content h1 {
  font-size: clamp(38px, 5.6vw, 64px);
  margin-top: 20px;
}

.hero-content h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--green) 20%, #6fffb0 60%, var(--green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin-top: 20px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--off-white);
  max-width: 520px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.hero-tags span {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--off-white);
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 24px;
  margin-top: 56px;
}

.trust-row li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--off-white);
}

.trust-row li svg { width: 17px; height: 17px; color: var(--green); flex-shrink: 0; }

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--off-white-dim);
}
.scroll-cue .line {
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--green), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.1% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Seções gerais ---------- */
section { padding: var(--section-pad) 0; position: relative; }

/* ---------- Serviços ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.service-card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--charcoal-soft), var(--black));
  padding: 28px 24px 26px;
  overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}

.service-card:hover { transform: translateY(-6px); border-color: rgba(0,200,83,0.35); }

/* Cantos estilo HUD/telemetria — o elemento assinatura da página */
.hud-corner { position: absolute; width: 18px; height: 18px; border-color: var(--green); opacity: 0; transition: opacity 0.4s var(--ease); }
.hud-corner.tl { top: 10px; left: 10px; border-top: 2px solid; border-left: 2px solid; border-radius: 4px 0 0 0; }
.hud-corner.br { bottom: 10px; right: 10px; border-bottom: 2px solid; border-right: 2px solid; border-radius: 0 0 4px 0; }
.service-card:hover .hud-corner, .diff-card:hover .hud-corner { opacity: 1; }

.service-card .icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: rgba(0, 200, 83, 0.1);
  border: 1px solid rgba(0, 200, 83, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.service-card .icon-wrap svg { width: 24px; height: 24px; color: var(--green); }

.service-card .thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}

.service-card h3 { font-size: 20px; margin-bottom: 8px; }
.service-card p { color: var(--off-white); font-size: 14.5px; margin-bottom: 20px; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--green);
}
.card-link svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.card-link:hover svg { transform: translateX(4px); }

/* ---------- Antes e Depois ---------- */
.ba-wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }

.ba-slider {
  position: relative;
  aspect-ratio: 16/10.5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  user-select: none;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.7);
}

.ba-slider img,
.ba-panel { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.ba-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ba-panel.before { background: linear-gradient(150deg, #2a2a2a, #0a0a0a); color: rgba(255,255,255,0.35); }
.ba-panel.after {
  background: linear-gradient(150deg, #123322, #050505 70%);
  color: rgba(255,255,255,0.55);
}

.ba-panel.after { clip-path: inset(0 0 0 50%); }

.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--green);
  box-shadow: 0 0 14px var(--green-glow);
  cursor: ew-resize;
  transform: translateX(-1.5px);
  z-index: 3;
}
.ba-handle::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--green);
  transform: translate(-50%, -50%);
  box-shadow: 0 6px 20px -4px rgba(0,0,0,0.6);
}
.ba-handle::before {
  content: "⇄";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  color: var(--black);
  font-weight: 700;
  font-size: 17px;
}

.ba-label {
  position: absolute;
  top: 16px;
  z-index: 2;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  border: 1px solid var(--line-strong);
}
.ba-label.left { left: 16px; }
.ba-label.right { right: 16px; color: var(--green); }

.ba-copy h3 { font-size: 30px; margin-bottom: 16px; }
.ba-copy p { color: var(--off-white); margin-bottom: 28px; }

.ba-stats { display: flex; gap: 32px; margin-bottom: 32px; }
.ba-stats div strong { display: block; font-size: 28px; color: var(--green); }
.ba-stats div span { font-size: 12.5px; color: var(--off-white-dim); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Diferenciais ---------- */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.diff-card {
  position: relative;
  padding: 30px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  overflow: hidden;
  transition: background 0.35s var(--ease), transform 0.35s var(--ease);
}
.diff-card:hover { background: rgba(0,200,83,0.05); transform: translateY(-4px); }

.diff-card .num {
  font-size: 12px;
  font-weight: 700;
  color: var(--off-white-dim);
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  display: block;
}

.diff-card svg { width: 26px; height: 26px; color: var(--green); margin-bottom: 16px; }
.diff-card h4 { font-size: 17px; margin-bottom: 8px; }
.diff-card p { font-size: 14px; color: var(--off-white-dim); }

/* ---------- Certificados ---------- */
.cert-gallery {
  position: relative;
}

.cert-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 4px 28px;
  margin: 0 -4px;
  cursor: grab;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  user-select: none;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.cert-track.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.cert-track::-webkit-scrollbar { height: 6px; }
.cert-track::-webkit-scrollbar-track { background: transparent; }
.cert-track::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 10px; }

.cert-card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(150px, 22vw, 190px);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--charcoal-soft);
  overflow: hidden;
  scroll-snap-align: start;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.cert-card:hover { border-color: var(--line-strong); transform: translateY(-4px); }

.cert-card .cert-thumb {
  position: relative;
  aspect-ratio: 3 / 4;
  background: linear-gradient(155deg, #161616, #0a0a0a);
  overflow: hidden;
}

.cert-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}

.cert-card .cert-zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5,5,5,0.55);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.cert-card .cert-zoom svg { width: 22px; height: 22px; color: var(--white); }
.cert-card:hover .cert-zoom { opacity: 1; }

.cert-card .cert-label {
  padding: 12px 14px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--off-white);
}

.cert-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 13px;
  color: var(--off-white-dim);
}

.cert-hint svg { width: 16px; height: 16px; color: var(--green); }

/* Lightbox de certificados */
.cert-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5,5,5,0.92);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

.cert-lightbox.is-open { opacity: 1; visibility: visible; }

.cert-lightbox-inner {
  position: relative;
  max-width: min(560px, 90vw);
  width: 100%;
  transform: scale(0.96);
  transition: transform 0.3s var(--ease);
}

.cert-lightbox.is-open .cert-lightbox-inner { transform: scale(1); }

.cert-lightbox-frame {
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  overflow: hidden;
  background: var(--charcoal-soft);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

.cert-lightbox-frame img { width: 100%; display: block; }

.cert-lightbox-caption {
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
  color: var(--off-white);
}

.cert-lightbox-close,
.cert-lightbox-prev,
.cert-lightbox-next {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(20,20,20,0.8);
  color: var(--white);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.cert-lightbox-close:hover,
.cert-lightbox-prev:hover,
.cert-lightbox-next:hover { background: rgba(0,200,83,0.14); border-color: var(--green); }

.cert-lightbox-close svg,
.cert-lightbox-prev svg,
.cert-lightbox-next svg { width: 18px; height: 18px; }

.cert-lightbox-close { top: -54px; right: 0; }
.cert-lightbox-prev { left: -56px; top: 50%; transform: translateY(-50%); }
.cert-lightbox-next { right: -56px; top: 50%; transform: translateY(-50%); }

@media (max-width: 720px) {
  .cert-lightbox-close { top: -48px; right: -4px; }
  .cert-lightbox-prev { left: 0; top: auto; bottom: -54px; transform: none; }
  .cert-lightbox-next { right: 0; top: auto; bottom: -54px; transform: none; }
}

/* ---------- CTA Final ---------- */
.cta-final {
  position: relative;
  border-radius: 28px;
  margin: 0 24px;
  padding: 90px 40px;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(135deg, #062615 0%, var(--black) 55%, var(--black) 100%);
  border: 1px solid rgba(0,200,83,0.25);
}
@media (min-width: 900px) { .cta-final { margin: 0 auto; max-width: var(--container); } }

.cta-final::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 30% 30%, rgba(0,200,83,0.35), transparent 55%);
  filter: blur(60px);
  z-index: 0;
}

.cta-final > * { position: relative; z-index: 1; }

.cta-final h2 { font-size: clamp(30px, 4.4vw, 48px); max-width: 700px; margin: 16px auto 0; }
.cta-final p { max-width: 520px; margin: 18px auto 36px; color: var(--off-white); font-size: 17px; }

/* ---------- Rodapé ---------- */
.footer { padding: 64px 0 28px; border-top: 1px solid var(--line); }

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}

.footer-brand p { color: var(--off-white-dim); font-size: 14px; margin-top: 16px; max-width: 280px; }

.footer-col h5 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--off-white-dim);
  margin-bottom: 18px;
}
.footer-col a, .footer-col p {
  display: block;
  color: var(--off-white);
  font-size: 14.5px;
  margin-bottom: 12px;
  transition: color 0.25s;
}
.footer-col a:hover { color: var(--green); }

.social-row { display: flex; gap: 12px; margin-top: 6px; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s, background 0.3s;
}
.social-row a:hover { border-color: var(--green); background: rgba(0,200,83,0.08); }
.social-row a svg { width: 17px; height: 17px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--off-white-dim);
}

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 90;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px -6px rgba(0,200,83,0.55);
  animation: floatPulse 2.6s ease-in-out infinite;
}
.wa-float svg { width: 28px; height: 28px; color: var(--black); }
@keyframes floatPulse {
  0%, 100% { box-shadow: 0 10px 30px -6px rgba(0,200,83,0.55); }
  50% { box-shadow: 0 10px 40px -4px rgba(0,200,83,0.85); }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .ba-wrap { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-links, .header-actions .btn { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    top: 0;
    background: rgba(5,5,5,0.98);
    backdrop-filter: blur(10px);
    align-items: flex-start;
    justify-content: center;
    padding: 40px;
    gap: 28px;
    z-index: 105;
  }
  .nav-links.mobile-open a { font-size: 22px; }
  .nav-links.mobile-open .btn { display: inline-flex; margin-top: 12px; }

  .trust-row { grid-template-columns: repeat(2, auto); row-gap: 14px; }
}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .diff-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; white-space: normal; text-align: center; line-height: 1.3; }
  .cta-final { padding: 60px 22px; border-radius: 20px; }
  .cta-final .btn { width: 100%; max-width: 100%; white-space: normal; text-align: center; line-height: 1.3; padding: 18px 24px !important; }
  .ba-stats { gap: 20px; }
}

@media (max-width: 400px) {
  .btn { font-size: 14px; padding: 14px 20px; }
  .hero-content h1 { font-size: clamp(28px, 9vw, 40px); }
}


/* ============================================================
   REFINAMENTO DE ANIMAÇÕES — movimento profissional e suave
   ============================================================ */
:root {
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-emph: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Curva mais elegante + leve desfoque na entrada */
.reveal,
.reveal-left,
.reveal-right,
.reveal-scale,
.reveal-group .reveal-child {
  filter: blur(6px);
  transition-property: opacity, transform, filter;
  transition-duration: 0.9s;
  transition-timing-function: var(--ease-emph);
}
.reveal.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-scale.is-visible,
.reveal-group.is-visible .reveal-child {
  filter: blur(0);
}
.reveal { transform: translateY(28px); }
.reveal-left { transform: translateX(-34px); }
.reveal-right { transform: translateX(34px); }
.reveal-scale { transform: scale(0.965) translateY(18px); }
.reveal-line { transition: opacity 0.7s var(--ease-emph), transform 0.9s var(--ease-emph); }

/* Após a animação, libera a GPU e evita blur residual no texto */
.reveal.anim-done,
.reveal-left.anim-done,
.reveal-right.anim-done,
.reveal-scale.anim-done,
.reveal-group.anim-done .reveal-child {
  will-change: auto;
  filter: none;
}

/* ---- Títulos: revelação por palavra com máscara ---- */
.split-words { display: inline; }
.split-words .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.split-words .word > span {
  display: inline-block;
  transform: translateY(105%) rotate(2deg);
  opacity: 0;
  transition: transform 0.95s var(--ease-emph), opacity 0.7s var(--ease-soft);
  transition-delay: calc(var(--w, 0) * 55ms);
}
.is-visible .split-words .word > span,
.split-words.is-visible .word > span {
  transform: translateY(0) rotate(0);
  opacity: 1;
}

/* ---- Entrada do hero no carregamento ---- */
.hero-intro-el {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(8px);
  transition: opacity 1s var(--ease-emph), transform 1.1s var(--ease-emph), filter 1s var(--ease-emph);
  transition-delay: calc(var(--i, 0) * 120ms + 120ms);
}
.hero-ready .hero-intro-el {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* ---- Imagens: zoom sutil ao revelar ---- */
.img-reveal { overflow: hidden; }
.img-reveal > img {
  transform: scale(1.08);
  transition: transform 1.4s var(--ease-emph);
  will-change: transform;
}
.img-reveal.is-visible > img,
.is-visible .img-reveal > img { transform: scale(1); }

/* ---- Micro-interações ---- */
.btn {
  transition: transform 0.35s var(--ease-emph), box-shadow 0.35s var(--ease-emph),
              background 0.35s var(--ease-soft), border-color 0.35s var(--ease-soft), color 0.3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.985); transition-duration: 0.12s; }

.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0; left: -140%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.22), transparent);
  transform: skewX(-18deg);
  transition: left 0.85s var(--ease-emph);
  pointer-events: none;
}
.btn-primary:hover::after { left: 140%; }

.logo-icon { transition: transform 0.5s var(--ease-emph); }
.logo:hover .logo-icon { transform: rotate(-6deg) scale(1.06); }

.card, .cert-card, .ppf-video-frame {
  transition: transform 0.5s var(--ease-emph), box-shadow 0.5s var(--ease-emph),
              border-color 0.4s var(--ease-soft), background 0.4s var(--ease-soft);
}

/* ---- Parallax suave (aplicado via JS) ---- */
.parallax { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .split-words .word > span { transform: none !important; opacity: 1 !important; transition: none !important; }
  .hero-intro-el { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .img-reveal > img { transform: none !important; transition: none !important; }
  .btn:hover { transform: none; }
  .parallax { transform: none !important; }
  .reveal, .reveal-left, .reveal-right, .reveal-scale, .reveal-group .reveal-child { filter: none !important; }
}

/* ---- Modo leve (mobile/toque): menos custo de composição ---- */
.anim-light .reveal,
.anim-light .reveal-left,
.anim-light .reveal-right,
.anim-light .reveal-scale,
.anim-light .reveal-group .reveal-child {
  filter: none;
  transition-property: opacity, transform;
  transition-duration: 0.55s;
}
.anim-light .reveal { transform: translateY(18px); }
.anim-light .reveal-left { transform: translateX(-18px); }
.anim-light .reveal-right { transform: translateX(18px); }
.anim-light .reveal-scale { transform: translateY(14px); }
.anim-light .img-reveal > img { transform: none; transition: none; will-change: auto; }
.anim-light .btn-primary::after { display: none; }
.anim-light .wa-float { animation: none; }

@media (max-width: 640px) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale, .reveal-group .reveal-child {
    filter: none;
    transition-duration: 0.55s !important;
  }
  .split-words .word > span { transition-duration: 0.7s; }
}

/* ============================================================
   TRANSIÇÕES AO SCROLL — camada profissional adicional
   ============================================================ */

/* Barra de progresso de leitura */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--verde, #2ecc71), color-mix(in oklab, var(--verde, #2ecc71) 55%, #ffffff));
  z-index: 9999;
  pointer-events: none;
  will-change: transform;
}

/* Linha animada sob os títulos de seção */
.section-head h2 { position: relative; }
.section-head h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: -10px;
  height: 2px;
  width: 72px;
  background: var(--verde, #2ecc71);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}
.section-head.center h2::after { left: 50%; margin-left: -36px; transform-origin: 50% 50%; }
.section-head h2.is-visible::after,
.section-head.is-visible h2::after { transform: scaleX(1); }

/* Revelação por máscara (clip) para mídias */
.clip-reveal {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.clip-reveal.is-visible { clip-path: inset(0 0 0 0); }

/* Números dos passos entram girando/subindo */
.diff-card .num,
.num {
  display: inline-block;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
}
.num.num-enter { opacity: 0; transform: translateY(14px) scale(0.9); }
.num.num-enter.is-visible { opacity: 1; transform: none; }

/* Seção “respira” conforme entra e sai da tela */
.scroll-fade { transition: opacity 0.5s linear; }

/* Deslocamento suave das bordas de seção */
.edge-rise { transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.9s ease; }

@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
  .section-head h2::after { transition: none; transform: scaleX(1); }
  .clip-reveal { clip-path: none !important; transition: none; }
  .num, .num.num-enter { opacity: 1 !important; transform: none !important; transition: none !important; }
}

.anim-light .clip-reveal { transition-duration: 0.7s; }
