/* =========================================================
   VP23 TELECOM — UPGRADE 2.0
   Camada extra carregada DEPOIS do style.css
========================================================= */

/* ---------- Barra de progresso de rolagem ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  z-index: 2000; pointer-events: none;
  background: linear-gradient(90deg, #1479f8, #39d5e8, #6ef3ff);
  transform-origin: 0 50%; transform: scaleX(0);
  box-shadow: 0 0 14px rgba(57, 213, 232, .8);
}

/* ---------- Canvas de rede (hero) ---------- */
.net-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; opacity: .9;
}
.hero-grid { z-index: 2; }

/* Grade do hero em movimento */

/* Raio de luz que varre o hero */
.hero-scan {
  position: absolute; left: 0; right: 0; height: 160px; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(57, 213, 232, .07), transparent);
  top: 0; will-change: transform; animation: scanMove 8s linear infinite;
}
@keyframes scanMove {
  0%   { transform: translateY(-160px); }
  100% { transform: translateY(760px); }
}

/* ---------- Entrada escalonada do hero ---------- */
.hero-copy > * { opacity: 0; transform: translateY(26px); animation: heroIn .9s cubic-bezier(.22, 1, .36, 1) forwards; }
.hero-copy > *:nth-child(1) { animation-delay: .10s; }
.hero-copy > *:nth-child(2) { animation-delay: .25s; }
.hero-copy > *:nth-child(3) { animation-delay: .40s; }
.hero-copy > *:nth-child(4) { animation-delay: .55s; }
.hero-copy > *:nth-child(5) { animation-delay: .70s; }
@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }

.hero-visual { opacity: 0; animation: visualIn 1.2s .3s cubic-bezier(.22, 1, .36, 1) forwards; }
@keyframes visualIn { from { opacity: 0; scale: .88; } to { opacity: 1; scale: 1; } }

/* ---------- Título com gradiente animado e palavra rotativa ---------- */
.hero h1 span {
  background: linear-gradient(90deg, #55c8ff, #5bf0e5);
  -webkit-background-clip: text; background-clip: text;
  display: inline-block;
  transition: opacity .35s ease, transform .35s ease;
}
.hero h1 span.swap-out { opacity: 0; transform: translateY(-12px); }

/* Cursor piscando de "digitação" */
.hero-tag { position: relative; overflow: hidden; }
.hero-tag::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent);
  transform: skewX(-20deg); animation: tagShine 4s ease-in-out infinite;
}
@keyframes tagShine { 0%, 60% { left: -80%; } 100% { left: 160%; } }

/* ---------- Órbita girando com pacotes de dados ---------- */
.orbit-ring {
  position: absolute; border-radius: 50%; pointer-events: none;
  border: 1px dashed rgba(88, 190, 255, .28);
}
.orbit-ring.r1 { inset: -26px; animation: spin 26s linear infinite; }
.orbit-ring.r2 { inset: 22px; animation: spin 18s linear infinite reverse; border-color: rgba(57, 213, 232, .22); }
.orbit-ring i {
  position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px;
  border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(57, 213, 232, .15), 0 0 20px var(--cyan), 0 0 40px rgba(57, 213, 232, .6);
}
.orbit-ring.r2 i { top: auto; bottom: -5px; background: #6ea8ff; box-shadow: 0 0 0 5px rgba(110, 168, 255, .15), 0 0 20px #6ea8ff; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Ondas de sinal saindo do mascote */
.signal-wave {
  position: absolute; inset: 0; margin: auto; width: 295px; height: 295px; border-radius: 50%;
  border: 2px solid rgba(57, 213, 232, .55); pointer-events: none; z-index: 2;
  animation: waveOut 3.6s ease-out infinite; opacity: 0;
}
.signal-wave.w2 { animation-delay: 1.2s; }
.signal-wave.w3 { animation-delay: 2.4s; }
@keyframes waveOut {
  0%   { transform: scale(1);   opacity: .65; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* Mascote responde ao mouse */
.mascot-hero-stage { will-change: transform; }

/* Cards flutuantes: brilho no topo */
.float-card { overflow: hidden; }
.float-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

/* Mini speed-test dentro do card de fibra */
.speed-live { display: flex; align-items: baseline; gap: 5px; margin-top: 4px; }
.speed-live b { font: 800 1.35rem "Manrope", sans-serif; color: var(--cyan); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.speed-live em { font-style: normal; font-size: .68rem; color: rgba(255, 255, 255, .7); font-weight: 700; }
.speed-bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .12); margin-top: 7px; overflow: hidden; }
.speed-bar i {
  display: block; height: 100%; width: 100%; border-radius: 4px; transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, #1479f8, #39d5e8, #6ef3ff);
  box-shadow: 0 0 10px var(--cyan); will-change: transform;
}

/* ---------- Faixa em movimento (marquee) ---------- */
.marquee {
  position: relative; z-index: 6; overflow: hidden; padding: 17px 0;
  background: linear-gradient(90deg, #0c5bb9, #1479f8 50%, #20a5ef);
  border-block: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 10px 40px rgba(20, 121, 248, .25);
}
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0;  background: linear-gradient(90deg, #0c5bb9, transparent); }
.marquee::after  { right: 0; background: linear-gradient(270deg, #20a5ef, transparent); }
.marquee-track { display: flex; width: max-content; animation: marqueeMove 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; flex-shrink: 0; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 22px; padding-right: 22px;
  font: 800 .95rem "Manrope", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #fff;
  white-space: nowrap;
}
.marquee-item::after {
  content: ""; width: 9px; height: 9px; border-radius: 50%; background: #fff; opacity: .85;
  box-shadow: 0 0 12px rgba(255, 255, 255, .9);
}
@keyframes marqueeMove { to { transform: translateX(-50%); } }

/* ---------- Números animados ---------- */
.numbers-section { position: relative; padding: 76px 0; background: #04101f; overflow: hidden; }
.numbers-section::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 18% 50%, rgba(20, 121, 248, .22), transparent 45%),
    radial-gradient(ellipse at 85% 50%, rgba(57, 213, 232, .13), transparent 45%);
}
.numbers-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.number-card {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 30px 18px 28px; border-radius: 22px;
  background: linear-gradient(160deg, rgba(20, 121, 248, .12), rgba(255, 255, 255, .03));
  border: 1px solid rgba(57, 213, 232, .2); overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.number-card:hover { transform: translateY(-6px); border-color: var(--cyan); box-shadow: 0 18px 40px rgba(20, 121, 248, .22); }
.number-card::before {
  content: ""; position: absolute; left: 12%; right: 12%; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}
.number-icon {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px;
  background: rgba(57, 213, 232, .12); border: 1px solid rgba(57, 213, 232, .28); color: var(--cyan);
}
.number-icon svg { width: 22px; height: 22px; }
.number-value { display: flex; align-items: baseline; justify-content: center; gap: 7px; margin-top: 18px; line-height: 1; }
.number-value b {
  font: 800 clamp(2.6rem, 4.6vw, 3.6rem)/1 "Manrope", sans-serif; letter-spacing: -.05em;
  color: #fff; font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #fff 25%, #6ef3ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.number-value i { font: 800 1rem "Manrope", sans-serif; font-style: normal; color: var(--cyan); letter-spacing: .02em; }
.number-label { margin-top: 12px; color: rgba(255, 255, 255, .72); font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Faixa de diferenciais: ícones vivos ---------- */
.strip-item { transition: background .3s ease; }
.strip-item:hover { background: linear-gradient(180deg, #f5faff, #fff); }
.strip-icon { transition: transform .35s cubic-bezier(.22, 1, .36, 1), background .3s, color .3s; }
.strip-item:hover .strip-icon { transform: translateY(-4px) rotate(-8deg) scale(1.1); background: var(--blue); color: #fff; }

/* ---------- Cards de plano: tilt 3D + holofote + borda animada ---------- */
.plans-grid { perspective: 1400px; }
.plan-card { transform-style: preserve-3d; will-change: transform; --mx: 50%; --my: 0%; }
.plan-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(57, 160, 255, .16), transparent 45%);
  opacity: 0; transition: opacity .3s ease;
}
.plan-card:hover::after { opacity: 1; }
.plan-card.gamer::after { background: radial-gradient(420px circle at var(--mx) var(--my), rgba(57, 213, 232, .22), transparent 45%); }

/* Borda giratória nos destacados */
.plan-card.featured, .plan-card.gamer {
  border: 2px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #1479f8, #39d5e8 55%, #6ef3ff) border-box;
}
.plan-card.gamer {
  background:
    linear-gradient(155deg, #071426 0%, #0d2647 100%) padding-box,
    linear-gradient(135deg, #39d5e8, #1479f8 55%, #8a5cff) border-box;
}

.plan-card .popular-tag { animation: tagBob 2.6s ease-in-out infinite; }
@keyframes tagBob { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-3px); } }

.plan-speed strong {
  background: linear-gradient(135deg, var(--navy), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.plan-card.gamer .plan-speed strong { background: linear-gradient(135deg, #fff, #6ef3ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan-price strong { font-variant-numeric: tabular-nums; }

/* Check dos benefícios entra pulando */
.plan-card .plan-list li { opacity: 0; transform: translateX(-10px); transition: opacity .5s ease, transform .5s ease; }
.plan-card.visible .plan-list li { opacity: 1; transform: none; }
.plan-card.visible .plan-list li:nth-child(1) { transition-delay: .25s; }
.plan-card.visible .plan-list li:nth-child(2) { transition-delay: .35s; }
.plan-card.visible .plan-list li:nth-child(3) { transition-delay: .45s; }
.plan-card.visible .plan-list li:nth-child(4) { transition-delay: .55s; }


/* ---------- Banner Mesh: ondas de Wi-Fi vivas ---------- */
.mesh-addon-banner { position: relative; overflow: hidden; }
.mesh-addon-banner::before {
  content: ""; position: absolute; width: 360px; height: 360px; right: 12%; top: 50%; margin-top: -180px;
  border-radius: 50%; border: 1px solid rgba(57, 213, 232, .22);
  box-shadow: 0 0 0 40px rgba(57, 213, 232, .04), 0 0 0 80px rgba(57, 213, 232, .025);
  animation: pulseRing 4.5s ease-in-out infinite; pointer-events: none;
}
.mesh-addon-info, .mesh-addon-cta { position: relative; z-index: 1; }
.mesh-addon-icon { animation: floatSlow 3.6s ease-in-out infinite; }
.mesh-addon-icon svg { animation: wifiBlink 2.4s ease-in-out infinite; }
@keyframes wifiBlink { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* ---------- Faixa de débitos: leve respiração ---------- */
.debt-bar-icon { animation: floatSlow 3.2s ease-in-out infinite; }

/* ---------- Cobertura: radar ---------- */
.radar {
  position: absolute; z-index: 0; width: 520px; height: 520px; left: -170px; bottom: -230px; border-radius: 50%;
  border: 1px solid rgba(57, 213, 232, .2); pointer-events: none;
  background:
    radial-gradient(circle, transparent 28%, rgba(57, 213, 232, .12) 28.4%, transparent 29%),
    radial-gradient(circle, transparent 52%, rgba(57, 213, 232, .1) 52.4%, transparent 53%),
    radial-gradient(circle, transparent 76%, rgba(57, 213, 232, .08) 76.4%, transparent 77%);
}
.radar::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(57, 213, 232, .38), transparent 22%);
  animation: spin 5s linear infinite;
}
.coverage-form { position: relative; }
.coverage-form::before {
  content: ""; position: absolute; inset: -2px; border-radius: 28px; z-index: -1;
  background: linear-gradient(135deg, #1479f8, #39d5e8, #1479f8);
  opacity: .75;
}
.gps-btn svg { animation: floatSlow 2s ease-in-out infinite; }

/* ---------- Sobre: stamp e vídeo ---------- */
.about-art { transition: transform .4s ease; }
.about-art:hover { transform: translateY(-6px) rotate(-.6deg); }
.about-stamp { animation: floatSlow 4s ease-in-out infinite; }
.mascot-glow { animation: glowPulse 4s ease-in-out infinite; }
@keyframes glowPulse { 0%, 100% { opacity: .22; transform: translate(-50%, -50%) scale(.9); } 50% { opacity: .42; transform: translate(-50%, -50%) scale(1.15); } }
.stat { transition: transform .3s ease, box-shadow .3s ease; }
.stat:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(20, 121, 248, .14); }

/* ---------- Benefícios ---------- */
.benefit-card { position: relative; overflow: hidden; }
.benefit-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--blue), var(--cyan)); transform: scaleX(0); transform-origin: left;
  transition: transform .45s ease;
}
.benefit-card:hover::before { transform: scaleX(1); }
.benefit-icon { transition: transform .4s cubic-bezier(.22, 1, .36, 1), background .3s, color .3s; }
.benefit-card:hover .benefit-icon { background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; transform: rotate(-10deg) scale(1.12); }

/* ---------- App: celular flutua ---------- */
.phone { animation: phoneFloat 5s ease-in-out infinite; }
@keyframes phoneFloat { 0%, 100% { transform: rotate(6deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-14px); } }
.phone:hover { animation-play-state: paused; }
.app-orb { animation: pulseRing 5s ease-in-out infinite; }

/* ---------- FAQ ---------- */
.faq-item { transition: background .25s ease; border-radius: 14px; }
.faq-item:hover { background: #f6faff; }
.faq-item.open { background: #f1f8ff; }
.faq-question { padding-inline: 14px; }
.faq-answer p { padding-left: 14px; }

/* ---------- CTA final ---------- */

/* ---------- Rodapé ---------- */
.footer-links a { display: inline-block; transition: color .2s, transform .2s; }
.footer-links a:hover { transform: translateX(5px); }

/* ---------- Reveal mais dinâmico ---------- */
.reveal { transform: translateY(34px); transition: opacity .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1); }
.reveal.visible { transform: none; }

/* ---------- Brilho que segue o mouse (desktop) ---------- */
.cursor-glow {
  position: fixed; left: 0; top: 0; width: 420px; height: 420px; margin: -210px 0 0 -210px;
  border-radius: 50%; pointer-events: none; z-index: 1;
  background: radial-gradient(circle, rgba(57, 160, 255, .10), transparent 65%);
  display: none; opacity: 0;
}
.cursor-glow.on { opacity: 1; }

/* ---------- Header ---------- */
.header.scrolled { background: rgba(7, 20, 38, .86); border-bottom-color: rgba(57, 213, 232, .25); }

/* ---------- Responsivo ---------- */
@media (max-width: 820px) {
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .radar { display: none; }
  .cursor-glow { display: none; }
  .signal-wave { width: 240px; height: 240px; }
}
@media (max-width: 560px) {
  .numbers-section { padding: 52px 0; }
  .number-card { padding: 22px 10px; }
  .marquee-item { font-size: .78rem; gap: 16px; padding-right: 16px; }
  .mesh-addon-banner::before { display: none; }
  .hero-visual {
    width: 100% !important;
    margin-left: 0 !important;
    margin-top: 10px !important;
    margin-bottom: 0 !important;
    min-height: 360px !important;
    transform: none !important;
  }
  .signal-orbit {
    width: 280px;
    height: 280px;
  }
  .mascot-hero-stage {
    width: 200px;
    height: 200px;
  }
  .signal-wave {
    width: 200px;
    height: 200px;
  }
  .orbit-ring.r1 { inset: -14px; }
  .orbit-ring.r2 { inset: 14px; }
  .float-card {
    padding: 9px 12px;
    border-radius: 13px;
  }
  .float-card strong { font-size: .8rem; }
  .float-card small { font-size: .63rem; }
  .float-card.card-speed { top: 4px; right: 0; }
  .float-card.card-wifi { left: 0; bottom: 58px; gap: 8px; }
  .float-card.card-mesh { right: 0; bottom: 4px; gap: 8px; }
  .float-card.card-wifi svg,
  .float-card.card-mesh svg { width: 18px; height: 18px; }
}
@media (hover: none) {
  .cursor-glow { display: none; }
}

/* ---------- Acessibilidade ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .hero-visual { opacity: 1 !important; transform: none !important; }
  
  .net-canvas, .hero-scan, .radar, .cursor-glow { display: none; }
  .marquee-track { animation: none; }
}

/* ---------- Performance: tirar blur de fundo (backdrop-filter) ---------- */
.header { backdrop-filter: none; background: rgba(7, 20, 38, .97); }
.header.scrolled { background: rgba(7, 20, 38, .97); }
.float-card { backdrop-filter: none; background: rgba(7, 20, 38, .92); }
.btn-outline { backdrop-filter: none; }
.canvas-wrap { contain: paint; }

@media (max-width: 820px) {
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .number-card { padding: 24px 12px 22px; }
  .number-label { font-size: .7rem; letter-spacing: .04em; }
  .number-icon { width: 40px; height: 40px; }
}
