/* ═══════════════════════════════════════════════════════════════
   JLC DEVTEC — CAMADA "TECH" (overlay visual, 100% reversível)
   Remova o <link> de tech.css e o <script> de tech.js para reverter.
═══════════════════════════════════════════════════════════════ */

:root {
  --tech-glow:   #2AA5DD;
  --tech-glow-2: #15619D;
  --tech-cyan:   #44e0ff;
}

/* ─── Barra de progresso de scroll ───────────────────────────── */
.tech-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  z-index: 2000;
  background: linear-gradient(90deg, var(--tech-glow-2), var(--tech-glow), var(--tech-cyan));
  box-shadow: 0 0 12px rgba(42,165,221,.8);
  transition: width .1s linear;
  pointer-events: none;
}

/* ─── Cursor "spotlight" global (desktop) ────────────────────── */
.tech-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 460px; height: 460px;
  margin: -230px 0 0 -230px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(42,165,221,.10) 0%, rgba(42,165,221,0) 60%);
  opacity: 0;
  transition: opacity .4s ease;
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  body:hover .tech-cursor { opacity: 1; }
}

/* ─── Overlays para seções escuras (grid + aurora + grão) ────── */
.hero, .servico-hero, .diferenciais, .servico-cta, .processo {
  position: relative;
}

/* Grid removido a pedido — mantido oculto para segurança */
.tech-grid { display: none !important; }

/* Textura de foto sutil atrás do hero da home */
.tech-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  opacity: .18;
  mix-blend-mode: luminosity;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.5) 55%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.5) 55%, transparent 100%);
}
.hero .tech-photo { opacity: .14; }

/* Foto ilustrativa do serviço: painel à direita do hero */
.servico-hero .tech-photo {
  opacity: .85;
  mix-blend-mode: normal;
  inset: 0 0 0 auto;
  width: 52%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.6) 38%, #000 100%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.6) 38%, #000 100%);
}
.servico-hero .tech-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--dark-bg) 0%, rgba(10,15,30,.35) 45%, transparent 100%),
              linear-gradient(0deg, rgba(10,15,30,.45) 0%, transparent 45%);
}
@media (max-width: 760px) {
  .servico-hero .tech-photo {
    width: 100%;
    opacity: .4;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 100%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 100%);
  }
}

.tech-aurora {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
  opacity: .55;
}
.tech-aurora::before,
.tech-aurora::after {
  content: '';
  position: absolute;
  width: 46%;
  height: 60%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--tech-glow) 0%, transparent 70%);
  animation: techFloat 16s ease-in-out infinite;
}
.tech-aurora::before { top: 8%;  left: 4%;  }
.tech-aurora::after  { bottom: 4%; right: 6%; background: radial-gradient(circle, var(--tech-glow-2) 0%, transparent 70%); animation-duration: 22s; animation-direction: reverse; }

@keyframes techFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(8%, 10%) scale(1.15); }
  66%     { transform: translate(-6%, -8%) scale(.92); }
}

/* Garantir que o conteúdo fique acima dos overlays */
.hero__content, .servico-hero .container,
.diferenciais .container, .servico-cta .container,
.processo .container { position: relative; z-index: 1; }

/* ─── Faixa (banner) com foto ────────────────────────────────── */
.tech-banner {
  position: relative;
  overflow: hidden;
  background: var(--dark-bg);
  padding: 96px 0;
}
.tech-banner__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  opacity: .35;
  transform: scale(1.05);
}
.tech-banner__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10,15,30,.92) 0%, rgba(10,15,30,.72) 50%, rgba(10,15,30,.92) 100%),
    radial-gradient(ellipse 70% 90% at 50% 50%, rgba(42,165,221,.18) 0%, transparent 70%);
}
.tech-banner .tech-grid { z-index: 1; }
.tech-banner .container { position: relative; z-index: 2; }
.tech-banner__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
@media (min-width: 860px) {
  .tech-banner__inner { grid-template-columns: 1.3fr 1fr; gap: 56px; }
}
.tech-banner__tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tech-glow);
  margin-bottom: 16px;
}
.tech-banner__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 16px;
}
.tech-banner__text {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,.7);
}
.tech-banner__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.tech-banner__stat-num {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 2rem;
  color: var(--white);
  line-height: 1;
}
.tech-banner__stat-num span { color: var(--tech-glow); }
.tech-banner__stat-label {
  font-size: .82rem;
  font-weight: 300;
  color: rgba(255,255,255,.55);
  margin-top: 6px;
}

/* O canvas de partículas continua, mas o grid entra atrás dele */
.hero__canvas { z-index: 0; }

/* ─── Título com gradiente animado ───────────────────────────── */
.hero__title {
  background: linear-gradient(100deg, #ffffff 0%, #bfe6fb 28%, #ffffff 52%, #7cc6ee 76%, #ffffff 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: techShine 7s linear infinite;
}
@keyframes techShine {
  to { background-position: 250% center; }
}

/* ─── Banner marquee de palavras-chave ───────────────────────── */
.tech-marquee {
  position: relative;
  overflow: hidden;
  background: var(--dark-bg);
  border-top: 1px solid rgba(42,165,221,.18);
  border-bottom: 1px solid rgba(42,165,221,.18);
  padding: 18px 0;
  z-index: 1;
}
.tech-marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
  animation: techScroll 32s linear infinite;
  will-change: transform;
}
.tech-marquee:hover .tech-marquee__track { animation-play-state: paused; }
.tech-marquee__item {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
}
.tech-marquee__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--tech-glow);
  box-shadow: 0 0 10px var(--tech-glow);
  flex-shrink: 0;
}
@keyframes techScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── Spotlight hover nos cards ──────────────────────────────── */
.service-card, .subservico-card, .process-step, .mvv-card, .case-card, .diferencial-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.service-card::after, .subservico-card::after, .process-step::after,
.mvv-card::after, .case-card::after, .diferencial-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity .35s ease;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%),
              rgba(42,165,221,.14), transparent 65%);
}
.service-card:hover::after, .subservico-card:hover::after, .process-step:hover::after,
.mvv-card:hover::after, .case-card:hover::after, .diferencial-card:hover::after {
  opacity: 1;
}

/* Borda com brilho nos cards claros */
.service-card, .subservico-card, .process-step {
  transition: border-color .25s ease, box-shadow .3s ease, transform .25s ease;
}
.service-card:hover, .subservico-card:hover, .process-step:hover {
  box-shadow: 0 10px 40px rgba(42,165,221,.18), 0 0 0 1px rgba(42,165,221,.35) inset;
}

/* ─── Botões com brilho ──────────────────────────────────────── */
.btn--primary {
  position: relative;
  overflow: hidden;
}
.btn--primary::before {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 80%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg);
  transition: left .6s ease;
}
.btn--primary:hover::before { left: 130%; }

/* ─── Reveal mais cinematográfico ────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  filter: blur(6px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1),
              transform .7s cubic-bezier(.22,.61,.36,1),
              filter .7s ease;
}
.reveal.is-visible, .reveal.visible, .reveal.active {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ─── Badge / tags com leve glow ─────────────────────────────── */
.hero__badge, .servico-hero__tag, .section-tag {
  box-shadow: 0 0 0 1px rgba(42,165,221,.15), 0 0 18px rgba(42,165,221,.10);
}

@media (prefers-reduced-motion: reduce) {
  .tech-aurora::before, .tech-aurora::after,
  .tech-marquee__track, .hero__title { animation: none !important; }
  .tech-cursor { display: none; }
}
