/* =========================================================
   CAMADA PREMIUM
   Motivos da identidade LK (onda de pontos, traços de circuito,
   vidro com brilho neon) e animações. Carregado por último.
========================================================= */

@property --giro {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* ---------- Barra de progresso ---------- */
.progresso-leitura {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
  background: linear-gradient(90deg, #167ff2, #1196f3 60%, #7fd3ff);
  box-shadow: 0 0 12px rgba(17, 150, 243, 0.8);
}

/* ---------- Topo ---------- */
.hero .particle-canvas {
  z-index: 1;
  opacity: 1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 20%, #000 60%, #000 85%, transparent);
  mask-image: linear-gradient(180deg, transparent 20%, #000 60%, #000 85%, transparent);
}

.hero::after {
  position: absolute;
  top: 18%;
  right: 8%;
  z-index: 0;
  width: 46vw;
  height: 46vw;
  max-width: 680px;
  max-height: 680px;
  content: "";
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(17, 150, 243, 0.28), transparent 62%);
  filter: blur(20px);
  animation: respirar 8s ease-in-out infinite;
}

@keyframes respirar {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.08); }
}

/* Traços de circuito nos cantos */
.circuito {
  position: absolute;
  z-index: 1;
  width: min(420px, 38vw);
  height: auto;
  pointer-events: none;
  color: var(--blue-main);
  opacity: 0.75;
}

.circuito--topo { top: 70px; left: 0; }
.circuito--base { right: 0; bottom: 0; transform: scale(-1, -1); }

.circuito path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(17, 150, 243, 0.9));
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: tracar 2.4s cubic-bezier(.6, .1, .2, 1) forwards;
}

.circuito path:nth-child(2) { animation-delay: .35s; opacity: .6; }
.circuito path:nth-child(3) { animation-delay: .7s; opacity: .4; }

.circuito circle {
  fill: currentColor;
  filter: drop-shadow(0 0 6px #1196f3);
  opacity: 0;
  animation: acender .4s ease 2.1s forwards;
}

/* Pulso de luz que percorre a trilha */
.circuito .pulso {
  stroke: #bfe6ff;
  stroke-width: 2.4;
  stroke-dasharray: 40 900;
  stroke-dashoffset: 0;
  opacity: 0;
  animation: correr 4.5s linear 2.4s infinite;
}

@keyframes tracar { to { stroke-dashoffset: 0; } }
@keyframes acender { to { opacity: 1; } }
@keyframes correr {
  0% { stroke-dashoffset: 940; opacity: 1; }
  70% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

/* Entrada do título palavra por palavra */
.titulo-animado .palavra {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(0.45em);
  animation: palavra .7s cubic-bezier(.2, .7, .2, 1) forwards;
  animation-delay: calc(120ms + var(--i) * 70ms);
}

/* A regra antiga ".hero__conteudo h1 span" pinta todo span de azul: cada palavra herda do pai real. */
.hero__conteudo h1 .palavra {
  color: inherit;
  text-shadow: inherit;
}

@keyframes palavra {
  to { opacity: 1; filter: blur(0); transform: none; }
}

.js-anim .hero__conteudo > p,
.js-anim .hero__acoes {
  opacity: 0;
  animation: subir .8s cubic-bezier(.2, .7, .2, 1) forwards;
}

.js-anim .hero__conteudo > p { animation-delay: .7s; }
.js-anim .hero__acoes { animation-delay: .9s; }

@keyframes subir {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* Selos de vidro flutuando ao redor do notebook */
.hero-visual { isolation: isolate; }

.selo {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px 11px 12px;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid rgba(17, 150, 243, 0.35);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(10, 30, 58, 0.72), rgba(4, 12, 26, 0.6));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 22px rgba(17, 150, 243, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  animation: seloEntra .8s cubic-bezier(.2, .7, .2, 1) forwards, flutuar 6s ease-in-out infinite;
}

.selo small {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
}

.selo__icone {
  display: grid;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  place-items: center;
  color: #fff;
  border-radius: 10px;
  background: linear-gradient(135deg, #1196f3, #167ff2);
  box-shadow: 0 0 16px rgba(17, 150, 243, 0.6);
}

.selo__icone svg { width: 18px; height: 18px; }

.selo--1 { top: 12%; left: 2%; animation-delay: 1.1s, 1.9s; }
.selo--2 { top: 44%; right: -2%; animation-delay: 1.3s, 0s; }
.selo--3 { bottom: 6%; left: 14%; animation-delay: 1.5s, 3s; }

@keyframes seloEntra {
  from { opacity: 0; transform: translateY(16px) scale(.96); }
  to { opacity: 1; transform: none; }
}

@keyframes flutuar {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

/* ---------- Faixa de destaques (abaixo do topo) ---------- */
.destaques {
  position: relative;
  z-index: 3;
  margin-top: -54px;
  padding-bottom: 10px;
}

.destaques__lista {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  list-style: none;
  border: 1px solid rgba(17, 150, 243, 0.22);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(8, 24, 46, 0.82), rgba(3, 10, 22, 0.86));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.destaques__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
}

.destaques__item + .destaques__item::before {
  position: absolute;
  top: 22%;
  bottom: 22%;
  left: 0;
  width: 1px;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(17, 150, 243, 0.4), transparent);
}

.destaques__icone {
  display: grid;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  place-items: center;
  color: var(--blue-main);
  border: 1px solid rgba(17, 150, 243, 0.35);
  border-radius: 14px;
  background: rgba(17, 150, 243, 0.08);
  box-shadow: inset 0 0 14px rgba(17, 150, 243, 0.18);
}

.destaques__icone svg { width: 24px; height: 24px; }

.destaques__item strong {
  display: block;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
}

/* Só o texto: "span" solto também pegava o ícone (.destaques__icone) e tirava a centralização. */
.destaques__item div > span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

/* ---------- Letreiro de serviços ---------- */
.letreiro {
  position: relative;
  overflow: hidden;
  padding: 26px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.letreiro__trilha {
  display: flex;
  width: max-content;
  gap: 44px;
  animation: letreiro 38s linear infinite;
}

.letreiro:hover .letreiro__trilha { animation-play-state: paused; }

.letreiro__trilha span {
  display: inline-flex;
  align-items: center;
  gap: 44px;
  color: rgba(244, 247, 251, 0.5);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: -0.5px;
}

.letreiro__trilha span::after {
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 50%;
  background: var(--blue-main);
  box-shadow: 0 0 12px var(--blue-main);
}

@keyframes letreiro { to { transform: translateX(-50%); } }

/* ---------- Revelar ao rolar ---------- */
.js-anim .surge {
  opacity: 0;
  translate: 0 28px;
  transition: opacity .8s cubic-bezier(.2, .7, .2, 1), translate .8s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--atraso, 0ms);
}

.js-anim .surge.visivel {
  opacity: 1;
  translate: 0 0;
}

/* ---------- Cards: brilho que segue o mouse + borda de luz ---------- */
.service-card,
.preco-card,
.estatistica__card {
  position: relative;
  isolation: isolate;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .25s ease, box-shadow .25s ease;
}

.service-card:hover,
.preco-card:hover {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px);
  border-color: rgba(17, 150, 243, 0.4);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4), 0 0 30px rgba(17, 150, 243, 0.14);
}

.service-card::after,
.preco-card::after,
.destaques__item::after,
.estatistica__card::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(17, 150, 243, 0.16), transparent 60%);
  transition: opacity .3s ease;
}

.service-card:hover::after,
.preco-card:hover::after,
.destaques__item:hover::after,
.estatistica__card:hover::after { opacity: 1; }

.service-card:hover .service-icon img {
  animation: icone 1.6s ease-in-out infinite;
}

@keyframes icone {
  0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 6px rgba(17, 150, 243, 0.35)); }
  50% { transform: translateY(-5px); filter: drop-shadow(0 0 14px rgba(17, 150, 243, 0.7)); }
}

/* Plano em destaque: borda de luz girando */
.preco-card--destaque {
  border-color: transparent;
  background:
    linear-gradient(145deg, rgba(6, 18, 40, 0.98), rgba(2, 8, 20, 0.98)) padding-box,
    conic-gradient(from var(--giro), rgba(17, 150, 243, 0.15), #1196f3, #7fd3ff, rgba(17, 150, 243, 0.15) 40%, rgba(17, 150, 243, 0.15)) border-box;
  animation: girar 5s linear infinite;
}

.preco-card--destaque::before {
  position: absolute;
  top: -1px;
  left: 50%;
  padding: 5px 12px;
  content: "Recomendado";
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(135deg, #1196f3, #167ff2);
  box-shadow: 0 6px 18px rgba(17, 150, 243, 0.45);
  transform: translateX(-50%);
}

.preco-card--destaque h4 { margin-top: 14px; }

@keyframes girar { to { --giro: 360deg; } }

/* ---------- Botões: reflexo de luz ---------- */
.btn-primary { overflow: hidden; }

.btn-primary::after {
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  content: "";
  pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: left .7s ease;
}

.btn-primary:hover::after { left: 130%; }

.btn-glow { animation: brilhoBotao 3.2s ease-in-out infinite; }

@keyframes brilhoBotao {
  0%, 100% { box-shadow: 0 13px 35px rgba(17, 150, 243, 0.34); }
  50% { box-shadow: 0 0 34px rgba(17, 150, 243, 0.75), 0 13px 35px rgba(17, 150, 243, 0.34); }
}

/* ---------- Títulos de seção ---------- */
.section-header .eyebrow,
.section-heading .eyebrow,
.sobre_copia .eyebrow,
.contato__info .eyebrow {
  gap: 10px;
}

.section-header .eyebrow::before,
.section-heading .eyebrow::before {
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 50%;
  background: var(--blue-main);
  box-shadow: 0 0 0 0 rgba(17, 150, 243, 0.7);
  animation: ping 2.2s ease-out infinite;
}

@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(17, 150, 243, 0.7); }
  80%, 100% { box-shadow: 0 0 0 10px rgba(17, 150, 243, 0); }
}

.section-header h2,
.section-heading h2 {
  /* O degradê só pinta dentro da caixa: o respiro evita cortar acentos e as pernas do p, g e ç. */
  padding: 0.08em 0.06em 0.16em;
  background: linear-gradient(180deg, #fff 30%, #a9d8ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Ícone do WhatsApp nos botões: sem a borda redonda herdada de .btn-icon, que cortava o desenho. */
svg.btn-icon {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

/* Onda de pontos suave atrás de Preços e Contato */
.precos,
.contato { position: relative; overflow: hidden; }

.onda-fundo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 70%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 25%, #000 70%, transparent);
}

.precos > .container,
.contato > .container { position: relative; z-index: 1; }

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .selo--1 { left: 0; }
  .selo--2 { right: 0; }
  .circuito { width: 46vw; opacity: .5; }
  .destaques { margin-top: -30px; }
  .destaques__lista { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .destaques__item:nth-child(3)::before { display: none; }
}

@media (max-width: 640px) {
  .selo { padding: 8px 12px 8px 8px; font-size: 0.76rem; }
  .selo small { display: none; }
  .selo__icone { width: 28px; height: 28px; }
  .selo--3 { display: none; }
  .circuito--topo { display: none; }
  .destaques { margin-top: -20px; }
  .destaques__lista { grid-template-columns: 1fr; }
  .destaques__item { padding: 16px 18px; }
  .destaques__item + .destaques__item::before {
    top: 0; bottom: auto; left: 18px; right: 18px; width: auto; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(17, 150, 243, 0.4), transparent);
  }
}

/* ---------- Quem prefere menos movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
  }

  .letreiro__trilha { animation: none !important; }
  .circuito .pulso { display: none; }
  .service-card, .preco-card { transform: none !important; }
}

/* =========================================================
   VITRINE DE SITES PUBLICADOS
========================================================= */
.portfolio__intro {
  margin-top: 12px;
  text-align: center;
}

.vitrine {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin: 46px 0 70px;
}

.vitrine__item { position: relative; isolation: isolate; }

.vitrine__link {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(17, 150, 243, 0.16);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(6, 18, 40, 0.96), rgba(2, 8, 20, 0.98));
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  transition: transform .4s cubic-bezier(.2, .7, .2, 1), border-color .3s ease, box-shadow .3s ease;
}

.vitrine__link:hover,
.vitrine__link:focus-visible {
  transform: translateY(-8px);
  border-color: rgba(17, 150, 243, 0.5);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(17, 150, 243, 0.18);
}

.vitrine__link:focus-visible { outline: 2px solid var(--blue-main); outline-offset: 4px; }

/* Moldura de navegador */
.navegador {
  position: relative;
  margin: 18px 18px 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px 14px 0 0;
  background: #0b1424;
}

.navegador__barra {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #121e33, #0d1728);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navegador__barra i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
}

.navegador__barra i:nth-child(2) { background: #febc2e; }
.navegador__barra i:nth-child(3) { background: #28c840; }

.navegador__barra span {
  flex: 1;
  min-width: 0;
  margin-left: 10px;
  padding: 4px 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.navegador__barra span::before {
  content: "🔒 ";
  font-size: 0.66rem;
}

.navegador__tela {
  position: relative;
  aspect-ratio: 1200 / 575;
  overflow: hidden;
}

.navegador__tela img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform .9s cubic-bezier(.2, .7, .2, 1), opacity .6s ease;
}

.vitrine__link:hover .navegador__tela img { transform: scale(1.04); }

/* Valority: ao passar o mouse mostra o quiz */
.navegador__alt {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.vitrine__link:hover .navegador__alt,
.vitrine__link:focus-visible .navegador__alt { opacity: 1; }

/* Reflexo de vidro passando sobre a tela */
.navegador__tela::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.14) 50%, transparent 65%);
  transform: translateX(-100%);
  transition: transform 1s ease;
}

.vitrine__link:hover .navegador__tela::after { transform: translateX(100%); }

.vitrine__info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px 26px;
}

.vitrine__segmento {
  color: var(--blue-main);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.vitrine__info h3 { font-size: 1.35rem; }

.vitrine__info p { font-size: 0.95rem; line-height: 1.6; }

.vitrine__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.vitrine__tags li {
  padding: 4px 12px;
  color: #cfe9ff;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid rgba(17, 150, 243, 0.35);
  border-radius: 999px;
  background: rgba(17, 150, 243, 0.1);
}

.vitrine__visitar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
  color: #fff;
  font-weight: 800;
}

.vitrine__visitar span { transition: transform .3s ease; }
.vitrine__link:hover .vitrine__visitar span { transform: translate(3px, -3px); }

/* Destaque: ocupa a linha inteira, imagem à esquerda */
.vitrine__item--grande { grid-column: 1 / -1; }

.vitrine__item--grande .vitrine__link {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  align-items: center;
}

.vitrine__item--grande .navegador { margin: 22px 0 22px 22px; border-radius: 14px; }
.vitrine__item--grande .vitrine__info { padding: 30px 34px; }
.vitrine__item--grande .vitrine__info h3 { font-size: 1.9rem; }

.portfolio__subtitulo {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 900px) {
  .vitrine { grid-template-columns: 1fr; gap: 20px; }
  .vitrine__item--grande .vitrine__link { display: flex; }
  .vitrine__item--grande .navegador { margin: 16px 16px 0; border-radius: 14px 14px 0 0; }
  .vitrine__item--grande .vitrine__info { padding: 22px 24px 26px; }
  .vitrine__item--grande .vitrine__info h3 { font-size: 1.4rem; }
}

@media (max-width: 640px) {
  .navegador { margin: 12px 12px 0; }
  .vitrine__item--grande .navegador { margin: 12px 12px 0; }
}

/* Sistemas próprios */
.vitrine--sistemas { margin-top: 18px; }

.vitrine__link--estatico { cursor: default; }

.vitrine__privado {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.vitrine__privado::before {
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 50%;
  background: #28c840;
  box-shadow: 0 0 10px #28c840;
}
