/* ---------- Base ---------- */
* {
  font-family: 'Tajawal', 'Cairo', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #030712;
  background-image:
    radial-gradient(at 20% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
    radial-gradient(at 80% 100%, rgba(168, 85, 247, 0.12) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(14, 165, 233, 0.08) 0px, transparent 50%);
  min-height: 100vh;
}

/* ---------- Gradient text ---------- */
.gradient-text {
  background: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #f472b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-blue {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Glass card ---------- */
.glass-card {
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.glass-card:hover {
  border-color: rgba(129, 140, 248, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.2);
}

/* ---------- Glowing button ---------- */
.btn-glow {
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
  transition: all 0.3s ease;
}

.btn-glow:hover {
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ---------- Animations ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.4); }
  50% { box-shadow: 0 0 40px rgba(99, 102, 241, 0.7); }
}

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

.float-anim {
  animation: float 6s ease-in-out infinite;
}

.pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* ---------- Badge ---------- */
.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-live::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* ---------- Pricing card ---------- */
.pricing-card {
  position: relative;
  overflow: hidden;
}

.pricing-card.featured {
  border: 2px solid transparent;
  background: linear-gradient(rgb(17, 24, 39), rgb(17, 24, 39)) padding-box,
              linear-gradient(135deg, #6366f1, #a855f7) border-box;
}

.pricing-card.featured::before {
  content: 'الأكثر شعبية';
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
}

/* ---------- Code block ---------- */
.code-block {
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: 'Courier New', monospace;
  direction: ltr;
  text-align: left;
}

/* ---------- Feature icon ---------- */
.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
  border: 1px solid rgba(129, 140, 248, 0.3);
  color: #a5b4fc;
}

/* ---------- Hero gradient background ---------- */
.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Comparison table ---------- */
.compare-table th,
.compare-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: #4f46e5;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #6366f1;
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .hero-glow {
    width: 400px;
    height: 400px;
  }
}
