/* =====================================================================
   POLIMENTO VISUAL — mais tecnológico (não altera a estrutura do HTML)
   Carregado depois do style.css, então sobrescreve o visual dos componentes.
   Para voltar ao visual anterior, basta remover a linha do visual.css no index.html.
   ===================================================================== */

::selection { background: rgba(33, 147, 213, 0.45); color: #fff; }

html { scrollbar-color: var(--brand) var(--background); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--background); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--brand), var(--deep)); border-radius: 10px; border: 2px solid var(--background); }

/* --- Fundo geral com brilho sutil --- */
body {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(135, 211, 235, 0.08) 1px, transparent 0),
    radial-gradient(ellipse 60% 40% at 85% 10%, rgba(33, 147, 213, 0.10), transparent 70%),
    radial-gradient(ellipse 50% 35% at 10% 55%, rgba(16, 89, 150, 0.14), transparent 70%);
  background-size: 40px 40px, 100% 100%, 100% 100%;
  background-attachment: scroll, fixed, fixed;
}

/* --- Header com linha de luz --- */
header { box-shadow: 0 10px 40px rgba(1, 9, 25, 0.5); }
header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary) 30%, var(--neon) 50%, var(--primary) 70%, transparent);
  opacity: 0.7;
}

.nav-links a:not(.btn) { position: relative; padding: 0.25rem 0; }
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--neon));
  box-shadow: 0 0 8px var(--neon);
  transition: width 0.3s ease;
  border-radius: 2px;
}
.nav-links a:not(.btn):hover::after { width: 100%; }

/* --- Hero: grade tecnológica animada + brilho pulsante --- */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(135, 211, 235, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(135, 211, 235, 0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
  animation: grid-drift 22s linear infinite;
  z-index: 0;
  pointer-events: none;
}
@keyframes grid-drift { from { background-position: 0 0, 0 0; } to { background-position: 60px 60px, 60px 60px; } }

.hero::before { animation: glow-breathe 7s ease-in-out infinite; }
@keyframes glow-breathe {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

.hero h1 { text-shadow: 0 0 40px rgba(33, 147, 213, 0.25); }

.text-gradient {
  background: linear-gradient(100deg, var(--primary) 0%, var(--neon) 45%, var(--primary) 90%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }

.hero-badge {
  background: linear-gradient(135deg, rgba(5, 62, 117, 0.55), rgba(0, 26, 57, 0.8));
  border-color: rgba(135, 211, 235, 0.35);
  box-shadow: 0 0 24px rgba(33, 147, 213, 0.2), inset 0 0 12px rgba(135, 211, 235, 0.08);
}
.hero-badge::before { animation: dot-pulse 2s ease-in-out infinite; }
@keyframes dot-pulse { 0%, 100% { box-shadow: 0 0 6px var(--neon); } 50% { box-shadow: 0 0 16px 3px var(--neon); } }

/* --- Etiquetas de seção com traços laterais --- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-shadow: 0 0 14px rgba(135, 211, 235, 0.55);
}
.eyebrow::before, .eyebrow::after {
  content: "";
  width: 34px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon));
}
.eyebrow::after { background: linear-gradient(90deg, var(--neon), transparent); }

.section-head h2 { text-shadow: 0 0 36px rgba(33, 147, 213, 0.18); }

/* --- Seções alternadas com luz e linhas de contorno --- */
.section-alt {
  position: relative;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(33, 147, 213, 0.10), transparent 70%),
    linear-gradient(180deg, #001A39 0%, #00132b 100%);
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
}
.section-alt::before, .section-alt::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(135, 211, 235, 0.55), transparent);
}
.section-alt::before { top: 0; }
.section-alt::after { bottom: 0; }

/* --- CARDS: borda em degradê, brilho interno e cantos tecnológicos --- */
.card {
  position: relative;
  border: 1px solid transparent;
  border-radius: 16px;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(33, 147, 213, 0.16), transparent 60%) padding-box,
    linear-gradient(160deg, rgba(5, 62, 117, 0.55) 0%, rgba(0, 26, 57, 0.92) 55%, rgba(1, 9, 25, 0.96) 100%) padding-box,
    linear-gradient(145deg, rgba(135, 211, 235, 0.85) 0%, rgba(33, 147, 213, 0.35) 28%, rgba(16, 89, 150, 0.15) 60%, rgba(135, 211, 235, 0.45) 100%) border-box;
  box-shadow:
    0 14px 40px rgba(1, 9, 25, 0.55),
    0 0 0 1px rgba(135, 211, 235, 0.04),
    inset 0 1px 0 rgba(251, 253, 252, 0.07);
  overflow: hidden;
  isolation: isolate;
}

/* linha de luz no topo do card */
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
  opacity: 0.8;
  z-index: 1;
}

/* cantos tipo "mira" nos cards */
.card::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 10px;
  pointer-events: none;
  background:
    linear-gradient(var(--neon), var(--neon)) top left / 14px 1px,
    linear-gradient(var(--neon), var(--neon)) top left / 1px 14px,
    linear-gradient(var(--neon), var(--neon)) top right / 14px 1px,
    linear-gradient(var(--neon), var(--neon)) top right / 1px 14px,
    linear-gradient(var(--neon), var(--neon)) bottom left / 14px 1px,
    linear-gradient(var(--neon), var(--neon)) bottom left / 1px 14px,
    linear-gradient(var(--neon), var(--neon)) bottom right / 14px 1px,
    linear-gradient(var(--neon), var(--neon)) bottom right / 1px 14px;
  background-repeat: no-repeat;
  opacity: 0.35;
  transition: opacity 0.3s ease, inset 0.3s ease;
  z-index: 0;
}

.card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow:
    0 22px 55px rgba(1, 9, 25, 0.7),
    0 0 36px rgba(33, 147, 213, 0.28),
    inset 0 1px 0 rgba(251, 253, 252, 0.1);
}
.card:hover::after { opacity: 0.9; inset: 7px; }

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

/* --- Ícones: caixa com anel de luz --- */
.icon-box {
  background: linear-gradient(145deg, #0a5aa0, #053E75 70%);
  border: 1px solid rgba(135, 211, 235, 0.45);
  box-shadow: 0 0 22px rgba(33, 147, 213, 0.4), inset 0 1px 0 rgba(251, 253, 252, 0.25);
  color: #d8f3fb;
}
.icon-box::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 16px;
  border: 1px solid rgba(135, 211, 235, 0.22);
}
.card:hover .icon-box { box-shadow: 0 0 32px rgba(135, 211, 235, 0.55), inset 0 1px 0 rgba(251, 253, 252, 0.3); }

/* --- Listas com marcador brilhante --- */
.check-list li { padding-left: 1.9rem; }
.check-list li::before {
  top: 0.35em;
  width: 14px; height: 14px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #010919 0 2px, transparent 2.5px),
    radial-gradient(circle, var(--neon) 0 40%, rgba(33, 147, 213, 0.5) 100%);
  box-shadow: 0 0 10px rgba(135, 211, 235, 0.7);
}
.check-list li strong { color: var(--foreground); }

/* --- Títulos dos cards de serviço em degradê --- */
.service-card h3 {
  background: linear-gradient(90deg, #fff, var(--neon));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Passos: número com brilho + conector entre cards --- */
.step-number { filter: drop-shadow(0 0 14px rgba(33, 147, 213, 0.6)); }
@media (min-width: 1101px) {
  .steps-grid .step:not(:last-child) { overflow: visible; }
  .steps-grid .step:not(:last-child)::before {
    content: "";
    top: 50%;
    left: auto;
    right: -1.75rem;
    width: 1.75rem;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--neon));
    box-shadow: 0 0 10px var(--neon);
    opacity: 1;
  }
}

/* --- Botões: brilho que varre ao passar o mouse --- */
.btn { position: relative; overflow: hidden; letter-spacing: 0.01em; }
.btn::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: -120%;
  width: 60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn:hover::after { left: 140%; }
.btn-primary { border: 1px solid rgba(135, 211, 235, 0.35); }
.btn-outline { backdrop-filter: blur(4px); }

/* --- CTA final --- */
.cta-section {
  position: relative;
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(33, 147, 213, 0.22), transparent 70%),
    linear-gradient(180deg, transparent, rgba(5, 62, 117, 0.18));
  border-top: 1px solid transparent;
}
.cta-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
}
.cta-section h2 { text-shadow: 0 0 40px rgba(33, 147, 213, 0.35); }

.contact-info a {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: rgba(0, 26, 57, 0.5);
}
.contact-info a:hover { border-color: var(--neon); box-shadow: 0 0 18px rgba(135, 211, 235, 0.25); }

/* --- Rodapé com linha de luz --- */
footer { position: relative; background: linear-gradient(180deg, #010919, #00050f); border-top: 1px solid transparent; }
footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

/* --- Animação de entrada ao rolar (ativada pelo visual.js) --- */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
.js-reveal .card.reveal.is-visible:hover { transform: translateY(-6px); transition-delay: 0s; transition-duration: 0.25s; }

@media (prefers-reduced-motion: reduce) {
  .hero::after, .hero::before, .text-gradient, .hero-badge::before { animation: none; }
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 768px) {
  .card::after { inset: 8px; }
}

/* --- Ícones em imagem (coloridos) dentro da caixa --- */
.icon-box.icon-img {
  background: linear-gradient(145deg, #eaf6fd, #bfe3f5);
  border-color: rgba(135, 211, 235, 0.8);
}
.icon-box.icon-img img { width: 40px; height: 40px; object-fit: contain; }

/* --- Ícones de contato (e-mail e Instagram) --- */
.contact-icon { width: 26px; height: 26px; object-fit: contain; flex-shrink: 0; }
