/* ============================================================
   Trader Software — Estilo customizado
   ============================================================ */

/* Alpine cloak — evita flash de elementos não inicializados */
[x-cloak] { display: none !important; }

html { scroll-padding-top: 5rem; }

/* Scrollbar customizada */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0a0f1e; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #0ea5e9, #0369a1);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover { background: #38bdf8; }

/* Hero gradient text */
.gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Glass card */
.glass {
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.glass:hover {
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: 0 20px 60px -10px rgba(14, 165, 233, 0.2);
}

/* Linha gradiente decorativa */
.grad-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(14,165,233,0.5), rgba(251,191,36,0.5), transparent);
}

/* Botões */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 0.625rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%);
  box-shadow: 0 10px 30px -5px rgba(14, 165, 233, 0.4);
  transition: all 0.3s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px -5px rgba(14, 165, 233, 0.6);
  filter: brightness(1.1);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 0.625rem;
  font-weight: 600;
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.btn-outline:hover {
  border-color: rgba(14, 165, 233, 0.6);
  color: #38bdf8;
  background: rgba(14, 165, 233, 0.05);
}

/* Card produto */
.product-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(30,41,59,0.7), rgba(15,23,42,0.7));
  border: 1px solid rgba(148, 163, 184, 0.1);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s;
}
.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(14,165,233,0.06) 100%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.product-card:hover { transform: translateY(-6px); border-color: rgba(14,165,233,0.4); }
.product-card:hover::before { opacity: 1; }

/* Placeholder de imagem (gradient com padrão) */
.img-placeholder {
  background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 50%, #1e293b 100%);
  position: relative;
  overflow: hidden;
}
.img-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(56, 189, 248, 0.3) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(251, 191, 36, 0.15) 0%, transparent 40%);
}

/* Animação de entrada */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Padrão de pontos (decorativo) */
.dot-pattern {
  background-image: radial-gradient(circle, rgba(148,163,184,0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Gráfico fake — barras animadas para o hero */
.bar {
  display: inline-block;
  width: 8px;
  margin-right: 4px;
  background: linear-gradient(180deg, #38bdf8, #0369a1);
  border-radius: 2px 2px 0 0;
  animation: pulseBar 2s ease-in-out infinite;
}
@keyframes pulseBar {
  0%, 100% { transform: scaleY(1); opacity: 0.8; }
  50% { transform: scaleY(1.2); opacity: 1; }
}
