/* =========================================
   GVENDAS — MOTION v3
   Movimento agressivo, institucional, vivo
   ========================================= */

/* ---- LOADER DE ENTRADA ---- */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .5s ease, visibility .5s ease;
}
.page-loader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.loader__logo {
  height: 56px;
  animation: loaderPulse 1s ease-in-out infinite;
}
.loader__bar {
  width: 160px;
  height: 2px;
  background: rgba(255,255,255,.1);
  border-radius: 2px;
  overflow: hidden;
}
.loader__bar::after {
  content: '';
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--sky));
  animation: loaderFill .8s ease forwards;
  animation-delay: .1s;
}
@keyframes loaderFill {
  to { width: 100%; }
}
@keyframes loaderPulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .7; transform: scale(.97); }
}

/* ---- HERO TEXTO ROTATIVO ---- */
.hero__rotating-wrap {
  display: inline-block;
  position: relative;
  overflow: hidden;
  vertical-align: bottom;
  height: 1.1em;
  clip-path: inset(8% 0 0 0);
}

.hero__rotating {
  display: flex;
  flex-direction: column;
  animation: rotateWords 6s cubic-bezier(.4,0,.2,1) infinite;
}
.hero__rotating span {
  display: block;
  font-style: italic;
  color: var(--sky);
  white-space: nowrap;
  line-height: 1.08;
}
@keyframes rotateWords {
  0%,28%  { transform: translateY(0); }
  33%,61% { transform: translateY(-1.08em); }
  66%,94% { transform: translateY(-2.16em); }
  99%,100%{ transform: translateY(0); }
}

/* ---- HERO LINHA DECORATIVA ANIMADA ---- */
.hero__line-anim {
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--sky), transparent);
  margin-bottom: 20px;
  animation: lineExpand 1s ease forwards;
  animation-delay: .8s;
  border-radius: 2px;
}
@keyframes lineExpand {
  to { width: 60px; }
}

/* ---- HERO PARTÍCULAS FLUTUANTES ---- */
.hero__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.hero__particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(91,154,248,.35);
  animation: particleFloat linear infinite;
}
@keyframes particleFloat {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: .4; }
  100% { transform: translateY(-20px) scale(1); opacity: 0; }
}

/* ---- SEÇÃO DE NÚMEROS IMPACTANTES (nova) ---- */
.numeros-section {
  background: var(--navy);
  padding: 0;
  position: relative;
  overflow: hidden;
}
.numeros-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20,80,180,.15) 0%, transparent 60%);
  pointer-events: none;
}
.numeros__track {
  display: flex;
  border-top: 1px solid rgba(255,255,255,.07);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.numero__item {
  flex: 1;
  padding: 52px 32px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.07);
  position: relative;
  transition: background .3s;
  overflow: hidden;
}
.numero__item:last-child { border-right: none; }
.numero__item::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--sky));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}
.numero__item:hover::before { transform: scaleX(1); }
.numero__item:hover { background: rgba(255,255,255,.03); }
.numero__val {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 400;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -2px;
}
.numero__val em {
  font-style: italic;
  color: var(--sky);
}
.numero__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}

/* ---- SCROLL REVEAL PESADO ---- */
[data-motion] {
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1);
}
[data-motion="up"]    { transform: translateY(50px); }
[data-motion="down"]  { transform: translateY(-50px); }
[data-motion="left"]  { transform: translateX(-60px); }
[data-motion="right"] { transform: translateX(60px); }
[data-motion="scale"] { transform: scale(.88); }
[data-motion="fade"]  { transform: none; }
[data-motion].in-view {
  opacity: 1;
  transform: none;
}
[data-delay="100"] { transition-delay: .1s; }
[data-delay="200"] { transition-delay: .2s; }
[data-delay="300"] { transition-delay: .3s; }
[data-delay="400"] { transition-delay: .4s; }
[data-delay="500"] { transition-delay: .5s; }
[data-delay="600"] { transition-delay: .6s; }
[data-delay="700"] { transition-delay: .7s; }
[data-delay="800"] { transition-delay: .8s; }

/* ---- SEÇÃO HEADER SPLIT (linha animada) ---- */
.section-split {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 48px;
}
.section-split__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s ease;
}
.section-split.in-view .section-split__line { transform: scaleX(1); }

/* ---- MARQUEE TEXTO (nova faixa institucional) ---- */
.marquee-band {
  background: var(--blue);
  padding: 16px 0;
  overflow: hidden;
  position: relative;
}
.marquee-band::before,
.marquee-band::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.marquee-band::before { left: 0; background: linear-gradient(90deg, var(--blue), transparent); }
.marquee-band::after  { right: 0; background: linear-gradient(-90deg, var(--blue), transparent); }
.marquee__track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marqueeScroll 20s linear infinite;
}
.marquee__track--slow { animation-duration: 30s; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 32px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  white-space: nowrap;
}
.marquee__item::after {
  content: '●';
  font-size: 6px;
  color: rgba(255,255,255,.4);
}

/* ---- FEATURE CARDS — EFEITO TILT ---- */
.feature-card.feature-card--img {
  transform-style: preserve-3d;
  transition: transform .15s ease, box-shadow .3s, border-color .3s;
}

/* ---- STATS ROW — CONTAGEM VISUAL ---- */
.stat {
  position: relative;
  overflow: hidden;
}
.stat::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(91,154,248,.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .3s;
}
.stat:hover::after { opacity: 1; }

/* ---- BAND INSTITUCIONAL — TEXTO WIPE ---- */
.band-institucional .container {
  overflow: hidden;
}
.band-institucional p {
  transform: translateY(30px);
  opacity: 0;
  transition: transform .8s ease, opacity .8s ease;
}
.band-institucional.in-view p {
  transform: translateY(0);
  opacity: 1;
}

/* ---- FOCO SECTION — PILARES COM LINHA ---- */
.foco__pilar {
  position: relative;
  padding-left: 0;
}
.foco__pilar::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--blue), transparent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .4s ease;
}
.foco__pilar.is-visible::before { transform: scaleY(1); }

/* ---- DIFCARDS — NÚMERO BARRA ---- */
.difcard {
  position: relative;
  overflow: hidden;
}
.difcard::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--sky));
  transition: width .5s ease;
}
.difcard.in-view::after { width: 100%; }

/* ---- CTA BAND — GRADIENTE ANIMADO ---- */
.cta-band {
  background-size: 200% 200%;
  animation: gradientShift 6s ease infinite;
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---- SCROLL PROGRESS BAR ---- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--sky));
  z-index: 10000;
  transition: width .1s linear;
}

/* ---- CURSOR GLOW (desktop) ---- */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20,80,180,.06) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  transition: opacity .3s;
  top: 0; left: 0;
}

/* ---- HERO SCROLL INDICATOR APRIMORADO ---- */
.hero__scroll {
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%,100% { transform: translateX(-50%) translateY(0); opacity: .38; }
  50%     { transform: translateX(-50%) translateY(8px); opacity: .7; }
}

/* ---- TAGPAPER SLIDE ENTRADA ---- */
.tagpaper__inner {
  animation: none;
}
.tagpaper__slide.active .tagpaper__copy {
  animation: slideContentIn .5s ease forwards;
}
.tagpaper__slide.active .tagpaper__media {
  animation: slideContentIn .5s ease .15s forwards backwards;
}
@keyframes slideContentIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* ---- MOBILE: desativa tilt e cursor ---- */
@media (max-width: 768px) {
  .cursor-glow { display: none; }
  [data-motion="left"]  { transform: translateY(30px); }
  [data-motion="right"] { transform: translateY(30px); }
  .numeros__track { flex-wrap: wrap; }
  .numero__item {
    flex: 0 0 50%;
    border-bottom: 1px solid rgba(255,255,255,.07);
    padding: 36px 20px;
  }
  .numero__item:nth-child(even) { border-right: none; }
  .numero__val { font-size: clamp(32px, 8vw, 52px); }
  .marquee__item { font-size: 11px; padding: 0 20px; }
}

@media (max-width: 480px) {
  .numero__item { flex: 0 0 100%; border-right: none; padding: 28px 20px; }
}
