/* ============================================================
   LCAN Systems — Folha de estilos principal
   Importado em: index.html
   ============================================================ */

/* ---------- Fontes ---------- */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap");

/* ---------- Scrollbar ---------- */
* {
  scrollbar-width: thin;
  scrollbar-color: #3d3d4d #0a0a0f;
}
*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
*::-webkit-scrollbar-track {
  background: #0a0a0f;
}
*::-webkit-scrollbar-thumb {
  background: #3d3d4d;
  border-radius: 3px;
}
*::-webkit-scrollbar-thumb:hover {
  background: #6b6b80;
}

/* ---------- Variáveis CSS ---------- */
:root {
  --neon: #22d3ee;
  --electric: #a78bfa;
  --plasma: #f472b6;
  --aurora: #34d399;
}

/* ---------- Base ---------- */
body {
  background: #0a0a0f;
  overflow-x: hidden;
}

::selection {
  background: rgba(34, 211, 238, 0.3);
  color: white;
}

/* ---------- Glassmorphism ---------- */
.glass {
  background: rgba(18, 18, 24, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.glass-light {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ---------- Gradientes ---------- */
.gradient-mesh {
  background:
    radial-gradient(
      ellipse 80% 50% at 20% 40%,
      rgba(34, 211, 238, 0.12) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse 60% 40% at 80% 20%,
      rgba(167, 139, 250, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse 50% 30% at 60% 80%,
      rgba(244, 114, 182, 0.08) 0%,
      transparent 50%
    );
}

.gradient-text {
  background: linear-gradient(
    135deg,
    #22d3ee 0%,
    #a78bfa 25%,
    #f472b6 50%,
    #a78bfa 75%,
    #22d3ee 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s ease infinite;
}

.gradient-border {
  position: relative;
  background: #121218;
}

.gradient-border::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, #22d3ee, #a78bfa, #f472b6, #22d3ee);
  background-size: 300% 300%;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: shimmer 3s ease infinite;
}

/* ---------- Padrão de grade ---------- */
.grid-pattern {
  background-image:
    linear-gradient(rgba(61, 61, 77, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 61, 77, 0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}

/* ---------- Ruído (noise overlay) ---------- */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  z-index: 9999;
}

/* ---------- Interações / Hover ---------- */
.hover-lift {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-lift:hover {
  transform: translateY(-10px);
}

.hover-glow:hover {
  box-shadow:
    0 0 30px rgba(34, 211, 238, 0.2),
    0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ---------- Reveal de texto ---------- */
.text-reveal {
  clip-path: inset(0 100% 0 0);
  animation: reveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes reveal {
  to {
    clip-path: inset(0 0 0 0);
  }
}

/* ---------- Stagger delays ---------- */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* ---------- Blob (fundo animado) ---------- */
.blob {
  filter: blur(80px);
  animation: float 10s ease-in-out infinite;
}

/* ---------- Cards ---------- */
.card-hover {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-hover:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.card-hover:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

.card-icon {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Inputs ---------- */
.input-focus {
  transition: all 0.3s ease;
}

.input-focus:focus {
  box-shadow:
    0 0 0 3px rgba(34, 211, 238, 0.15),
    0 0 20px rgba(34, 211, 238, 0.1);
}

/* ---------- Animações de entrada ---------- */
.scale-in {
  animation: scaleIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Barra de progresso ---------- */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, #22d3ee, #a78bfa, #f472b6);
  width: 0%;
  z-index: 10000;
  transition: width 0.1s;
}

/* ---------- Keyframes globais ---------- */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-30px); }
}

@keyframes gridMove {
  0%   { transform: translateY(0); }
  100% { transform: translateY(60px); }
}

@keyframes pulseRing {
  0%   { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow:
      0 0 30px rgba(34, 211, 238, 0.15),
      0 0 60px rgba(34, 211, 238, 0.05);
  }
  50% {
    box-shadow:
      0 0 40px rgba(34, 211, 238, 0.3),
      0 0 80px rgba(34, 211, 238, 0.1);
  }
}

@keyframes enter {
  0%   { opacity: 0; transform: translateY(40px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
