/**
 * Codigocode , Landing page styles (Tailwind-based design)
 * Extracted from inline <style> in index.php for maintainability & caching.
 */

* { font-family: 'Inter', sans-serif; }
body { background-color: #080C18; color: #fff; overflow-x: hidden; }

/* Glow effects */
.glow-blue { box-shadow: 0 0 30px rgba(45,111,255,0.3); }
.glow-blue-sm { box-shadow: 0 0 15px rgba(45,111,255,0.25); }
.glow-cyan { box-shadow: 0 0 20px rgba(0,212,255,0.2); }

/* Gradient text */
.text-gradient {
  background: linear-gradient(135deg, #fff 0%, #00D4FF 50%, #2D6FFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-blue {
  background: linear-gradient(90deg, #2D6FFF, #00D4FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Animated marquee */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-track { animation: marquee 20s linear infinite; display: flex; width: max-content; }
.marquee-track:hover { animation-play-state: paused; }

/* Grid background */
.grid-bg {
  background-image:
    linear-gradient(rgba(45,111,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45,111,255,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Card hover */
.card-hover { transition: all 0.3s ease; }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(45,111,255,0.2); border-color: rgba(45,111,255,0.6) !important; }

/* Module card */
.module-card { border-left: 3px solid #2D6FFF; background: linear-gradient(135deg, #0D1225 0%, #0A0E1A 100%); }

/* FAQ */
.faq-item .faq-answer { display: none; }
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform 0.3s ease; }

/* Comparison */
.comp-bad { color: #FF4D6D; }
.comp-good { color: #00D4FF; }

/* Blue border card */
.blue-border-card { border: 1px solid rgba(45,111,255,0.25); background: linear-gradient(135deg, #0D1225 0%, #0A0E1A 100%); }
.blue-border-card:hover { border-color: rgba(45,111,255,0.6); }

/* Scroll fade in */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Stat card */
.stat-card { background: rgba(45,111,255,0.08); border: 1px solid rgba(45,111,255,0.2); }

/* Pricing badge */
.popular-badge { background: linear-gradient(90deg, #2D6FFF, #00D4FF); }

/* Step connector */
.step-line { flex: 1; height: 2px; background: linear-gradient(90deg, #2D6FFF, #00D4FF); margin: 0 16px; }

/* Glow orbs */
.orb1 { position: absolute; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(45,111,255,0.12) 0%, transparent 70%); top: -100px; right: -100px; pointer-events: none; }
.orb2 { position: absolute; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(0,212,255,0.08) 0%, transparent 70%); bottom: 0; left: -50px; pointer-events: none; }

/* Nav link hover */
nav a { transition: color 0.2s; }
nav a:hover { color: #00D4FF; }

/* Language flag switcher */
.nav-lang-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-left: 0.5rem;
  margin-left: 0.25rem;
  border-left: 1px solid rgba(255,255,255,0.1);
}
.nav-flag {
  display: flex;
  border-radius: 3px;
  opacity: 0.45;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
}
.nav-flag img { display: block; border-radius: 2px; }
.nav-flag:hover { opacity: 0.8; }
.nav-flag--active { opacity: 1; box-shadow: 0 0 0 2px rgba(45,111,255,0.6); }

/* Partner badge (replaces fabricated client logos) */
.partner-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.55);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}
.partner-badge:hover { border-color: rgba(45,111,255,0.35); color: #fff; }
.partner-badge--marquee {
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0.65rem 1.25rem;
}

/* ── CONTACT MODAL ─────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.active { display: flex; }
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 16, 0.82);
  backdrop-filter: blur(4px);
}
.modal-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(135deg, #0D1225 0%, #0A0E1A 100%);
  border: 1px solid rgba(45,111,255,0.35);
  box-shadow: 0 20px 80px rgba(0,0,0,0.5), 0 0 60px rgba(45,111,255,0.15);
  border-radius: 1rem;
  padding: 2rem;
}
.modal-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.25rem;
  padding-right: 2rem;
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  border: none;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.6);
  border-radius: 0.5rem;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { background: rgba(255,255,255,0.12); color: #fff; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,0.6); }
.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0.5rem;
  padding: 0.65rem 0.85rem;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(45,111,255,0.6);
}
.contact-form .btn-large { margin-top: 0.25rem; cursor: pointer; border: none; }
.form-success { text-align: center; padding: 1rem 0; color: #00D4FF; font-weight: 600; }
