@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Syne:wght@400;600;700;800&display=swap');

:root {
  --bg: #0f172a;
  --violet: #7c3aed;
  --neon: #22c55e;
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--bg);
  font-family: 'Syne', sans-serif;
  overflow-x: hidden;
  color: #e2e8f0;
  color-scheme: dark;
}

a {
  text-decoration: none;
}

/* Hero background */
.hero-bg {
  background: linear-gradient(
    -45deg,
    #0f172a 0%,
    #1a0a3d 25%,
    #0a1f1a 50%,
    #0f172a 75%,
    #1a0a3d 100%
  );
  background-size: 400% 400%;
  animation: gradient-x 10s ease infinite;
}

.grid-overlay {
  background-image:
    linear-gradient(rgba(124,58,237,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Glassmorphism cards */
.glass {
  background: rgba(30, 41, 59, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(124, 58, 237, 0.18);
}

.glass-neon {
  background: rgba(30, 41, 59, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(34, 197, 94, 0.35);
}

/* Glowing CTA buttons (custom names to avoid Bootstrap conflicts) */
.btn-primary-glow {
  position: relative;
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  transition: all 0.3s ease;
  overflow: hidden;
  border-radius: 0.75rem;
  border: none;
}

.btn-primary-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary-glow:hover {
  box-shadow: 0 0 25px rgba(124,58,237,0.7), 0 0 70px rgba(124,58,237,0.3);
  transform: translateY(-2px);
}

.btn-primary-glow:hover::before {
  opacity: 1;
}

.btn-primary-glow span {
  position: relative;
  z-index: 1;
}

.btn-neon-glow {
  position: relative;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  transition: all 0.3s ease;
  overflow: hidden;
  border-radius: 0.75rem;
  border: none;
  color: #020617;
}

.btn-neon-glow:hover {
  box-shadow: 0 0 25px rgba(34,197,94,0.7), 0 0 70px rgba(34,197,94,0.3);
  transform: translateY(-2px);
}

.btn-outline-glow {
  border-radius: 0.75rem;
  border: 1px solid rgba(124,58,237,0.5);
  background: transparent;
  color: #e2e8f0;
  transition: all 0.3s ease;
}

.btn-outline-glow:hover {
  border-color: #7c3aed;
  box-shadow: 0 0 20px rgba(124,58,237,0.4), inset 0 0 20px rgba(124,58,237,0.05);
  color: #fff;
}

/* Gradient text */
.text-gradient {
  background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 40%, #22c55e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-neon {
  background: linear-gradient(90deg, #4ade80, #22c55e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Scan line effect */
.scan-container {
  position: relative;
  overflow: hidden;
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(34,197,94,0.6), transparent);
  animation: scan 4s linear infinite;
  pointer-events: none;
}

/* Orb glows */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

/* Pricing hover */
.price-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.price-card:hover {
  transform: translateY(-8px);
}

.price-card:hover.glass {
  border-color: rgba(124,58,237,0.5);
  box-shadow: 0 20px 60px rgba(124,58,237,0.15);
}

.price-card:hover.glass-neon {
  border-color: rgba(34,197,94,0.6);
  box-shadow: 0 20px 60px rgba(34,197,94,0.2);
}

/* Feature list checkmark */
.feature-check::before {
  content: '✓';
  color: #22c55e;
  font-weight: 700;
  margin-right: 10px;
}

/* Terminal cursor blink */
.cursor-blink {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Noise texture */
.noise::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
}

/* Navbar scroll effect */
.nav-scrolled {
  background: rgba(15, 23, 42, 0.9) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(124,58,237,0.15);
}

/* Header */
.site-header {
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: #7c3aed;
  border-radius: 3px;
}

/* Section fade-in */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Simple typography helpers */
.font-display {
  font-family: 'Syne', sans-serif;
}

.font-mono {
  font-family: 'Space Mono', monospace;
}

.bg-navy {
  background-color: #0f172a;
}

.text-slate-400 {
  color: #94a3b8;
}

.text-slate-500 {
  color: #64748b;
}

.text-neon {
  color: var(--neon);
}

.shadow-glow-violet {
  box-shadow: 0 0 20px rgba(124,58,237,0.5), 0 0 60px rgba(124,58,237,0.2);
}

/* Hero layout */
.hero-section {
  min-height: 100vh;
  padding-top: 5.25rem;
  padding-bottom: 3.75rem;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 560px;
}

.hero-title {
  font-size: 2.6rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.05rem;
}

.hero-snippet {
  max-width: 520px;
}

.hero-dashboard {
  max-width: 420px;
  position: relative;
}

.hero-dashboard-badge {
  position: absolute;
  right: 0;
  bottom: 0;
  transform: translate(10%, 30%);
}

@keyframes gradient-x {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes scan {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

/* Auth modal: garante que inputs e botões sejam clicáveis (sem camada bloqueando) */
#authModal .auth-modal-content {
  position: relative;
  z-index: 1;
}

#authModal .auth-input,
#authModal .form-control,
#authModal input,
#authModal button:not([disabled]),
#authModal .btn {
  pointer-events: auto;
  position: relative;
  z-index: 2;
}

#authModal .modal-body {
  position: relative;
  z-index: 1;
}

/* Responsive tweaks */
@media (max-width: 767.98px) {
  .hero-section {
    min-height: auto;
    padding-top: 5.5rem;
    padding-bottom: 2.75rem;
    display: block;
  }

  .hero-title {
    font-size: 2.1rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 0.98rem;
  }

  .glass,
  .glass-neon {
    border-radius: 1rem !important;
  }

  .scan-container {
    font-size: 0.75rem;
  }

  .orb {
    filter: blur(60px);
    opacity: 0.18;
  }

  .hero-dashboard-badge {
    transform: translate(0, 20%);
  }
}

