/* ============================================
   Rabih Management — Global Design System v2
   Primary: #001f3f (Navy)  |  Accent: #FFD700 (Gold)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ─── CSS Variables ─── */
:root {
  /* Brand Colors */
  --navy:        #001f3f;
  --navy-light:  #002d5a;
  --navy-medium: #003d7a;
  --navy-faint:  #e8f0fa;

  --gold:        #FFD700;
  --gold-dark:   #c9a800;
  --gold-deeper: #9a7c00;
  --gold-light:  #fff3a0;
  --gold-faint:  #fffbe6;

  /* Neutrals */
  --white:    #ffffff;
  --gray-50:  #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;

  /* Semantic */
  --text-primary:   #001f3f;
  --text-secondary: #3a5070;
  --text-muted:     #6c757d;

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(0,31,63,0.07);
  --shadow-md:   0 6px 24px rgba(0,31,63,0.12);
  --shadow-lg:   0 12px 48px rgba(0,31,63,0.16);
  --shadow-gold: 0 4px 20px rgba(255,215,0,0.3);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  /* Transition */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Tajawal', 'Inter', sans-serif;
  background: var(--gray-50);
  color: var(--text-primary);
  direction: rtl;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; font-family: inherit; }

/* ─── Typography ─── */
h1 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 900; letter-spacing: -0.5px; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: clamp(1rem, 2vw, 1.3rem); font-weight: 600; }

/* ─── Animated Particles ─── */
.particles-container {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
}
.particle {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,215,0,0.12), transparent 70%);
  animation: floatParticle linear infinite;
}
.particle:nth-child(1) { width: 400px; height: 400px; top:  5%; right: -10%; animation-duration: 20s; }
.particle:nth-child(2) { width: 250px; height: 250px; bottom: 10%; left: 5%;  animation-duration: 26s; animation-delay: -5s; }
.particle:nth-child(3) { width: 180px; height: 180px; top: 55%; right: 25%; animation-duration: 17s; animation-delay: -9s; }
.particle:nth-child(4) { width: 300px; height: 300px; top: -8%; left: 18%;  animation-duration: 22s; animation-delay: -3s; }
.particle:nth-child(5) { width: 220px; height: 220px; bottom: 3%; right: 12%; animation-duration: 28s; animation-delay: -7s; }
@keyframes floatParticle {
  0%,100% { transform: translate(0,0) scale(1); opacity:.4; }
  25% { transform: translate(30px,-40px) scale(1.1); opacity:.6; }
  50% { transform: translate(-20px,20px) scale(.9); opacity:.3; }
  75% { transform: translate(15px,30px) scale(1.05); opacity:.5; }
}

/* ─── Gold CTA Button ─── */
.btn-gold {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 44px;
  background: var(--gold);
  color: var(--navy);
  font-size: 1.1rem; font-weight: 800;
  border-radius: var(--radius-xl);
  transition: var(--transition);
  box-shadow: var(--shadow-gold);
  position: relative; overflow: hidden;
  letter-spacing: 0.3px;
}
.btn-gold::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: translateX(110%);
  transition: 0.55s ease;
}
.btn-gold:hover::before { transform: translateX(-110%); }
.btn-gold:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(255,215,0,0.5);
  background: #ffe033;
}
.btn-gold svg { transform: rotate(180deg); }

/* ─── Beta Alert Box ─── */
.beta-alert {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,215,0,0.07);
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 16px 28px;
  max-width: 580px;
  margin: 0 auto;
  animation: alertGlow 3s ease-in-out infinite;
}
.beta-alert .alert-icon { font-size: 1.5rem; flex-shrink: 0; animation: rocketBounce 2s ease-in-out infinite; }
.beta-alert p { font-size: 0.93rem; color: var(--navy); line-height: 1.6; font-weight: 500; }
.beta-alert strong { color: var(--gold-deeper); }

@keyframes alertGlow {
  0%,100% { box-shadow: 0 0 0 rgba(255,215,0,0); border-color: var(--gold); }
  50% { box-shadow: 0 0 20px rgba(255,215,0,0.25); border-color: #ffe033; }
}
@keyframes rocketBounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* ─── Glass / White Card ─── */
.glass-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.glass-card:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* ─── Utilities ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-gold { color: var(--gold-dark); }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .beta-alert { flex-direction: column; text-align: center; padding: 16px 20px; }
  .btn-gold { width: 100%; justify-content: center; padding: 16px 30px; }
}
@media (max-width: 480px) {
  .glass-card { padding: 24px 16px; }
}
