/* ============ BARIQ4K — dark cinematic theme ============ */
:root {
  --bg: #070b14;
  --bg-2: #0b1120;
  --surface: #0f1729;
  --surface-2: #131d33;
  --border: rgba(255, 255, 255, 0.08);
  --text: #eaeef7;
  --muted: #94a1b8;
  --gold: #f6c344;
  --gold-2: #ffdd7a;
  --gold-dark: #b8860b;
  --cyan: #38bdf8;
  --green: #22c55e;
  --radius: 16px;
  --shadow-gold: 0 8px 40px rgba(246, 195, 68, 0.25);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 760px; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ---------- Promo banner ---------- */
.promo-banner {
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
  color: #1a1400;
  font-weight: 800;
  text-align: center;
  padding: 10px 16px;
  font-size: 0.95rem;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 1.25rem; }
.logo-bolt { filter: drop-shadow(0 0 8px rgba(246, 195, 68, 0.8)); }
.logo-4k { color: var(--gold); }
.logo-ar { color: var(--muted); font-size: 0.95rem; font-weight: 700; }
.nav-links { display: flex; gap: 24px; font-weight: 600; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.lang-toggle {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 14px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s;
}
.lang-toggle:hover { border-color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-sm { padding: 8px 18px; font-size: 0.9rem; }
.btn-lg { padding: 14px 32px; font-size: 1.1rem; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), #e8a820);
  color: #1a1400;
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { box-shadow: 0 8px 50px rgba(246, 195, 68, 0.45); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-wa {
  background: linear-gradient(135deg, #25d366, #1da851);
  color: #fff;
  width: 100%;
  padding: 12px 20px;
  font-size: 1rem;
}
.btn-wa:hover { box-shadow: 0 8px 30px rgba(37, 211, 102, 0.35); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 90px 0 70px; text-align: center; overflow: hidden; }
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  pointer-events: none;
}
.glow-1 { width: 500px; height: 500px; background: #b8860b; top: -200px; inset-inline-start: -150px; }
.glow-2 { width: 450px; height: 450px; background: #1e3a8a; bottom: -200px; inset-inline-end: -100px; }
.glow-3 { width: 400px; height: 300px; background: #b8860b; top: 0; inset-inline-start: 50%; transform: translateX(-50%); opacity: 0.25; }

.hero-inner { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-2);
  margin-bottom: 24px;
}
.hero-title { font-size: clamp(2rem, 6vw, 3.6rem); font-weight: 900; line-height: 1.25; margin-bottom: 18px; }
.gradient-text {
  background: linear-gradient(135deg, var(--gold-2), var(--gold), #e8a820);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { color: var(--muted); font-size: 1.15rem; max-width: 560px; margin: 0 auto 32px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 800px;
  margin: 0 auto;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 12px;
}
.stat-num { display: block; font-size: 1.6rem; font-weight: 900; color: var(--gold); }
.stat-label { color: var(--muted); font-size: 0.9rem; font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; position: relative; }
.section-tight { padding: 40px 0; }
.section-title { text-align: center; font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 900; margin-bottom: 10px; }
.section-sub { text-align: center; color: var(--muted); font-size: 1.05rem; margin-bottom: 44px; }

/* ---------- Features ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s, border-color 0.2s;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(246, 195, 68, 0.4); }
.feature-icon { font-size: 2rem; margin-bottom: 12px; }
.feature-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 6px; }
.feature-card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Devices ---------- */
.devices-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.device-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- Pricing ---------- */
.currency-switcher { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.currency-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 20px;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}
.currency-btn:hover { border-color: var(--gold); color: var(--text); }
.currency-btn.active { background: var(--gold); border-color: var(--gold); color: #1a1400; }

.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plans-loading { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px; }

.plan-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 34px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.plan-card:hover { transform: translateY(-6px); }
.plan-card.popular {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(246, 195, 68, 0.08), var(--surface) 40%);
  box-shadow: var(--shadow-gold);
}
.popular-badge {
  position: absolute;
  top: -14px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), #e8a820);
  color: #1a1400;
  font-weight: 900;
  font-size: 0.82rem;
  padding: 5px 18px;
  border-radius: 999px;
  white-space: nowrap;
}
[dir='rtl'] .popular-badge { transform: translateX(50%); }
.plan-name { font-size: 1.25rem; font-weight: 900; text-align: center; }
.plan-price { text-align: center; }
.plan-price .amount { font-size: 3rem; font-weight: 900; color: var(--gold); line-height: 1; }
.plan-price .currency { font-size: 1.05rem; color: var(--muted); font-weight: 700; margin-inline-start: 6px; }
.plan-features { list-style: none; display: grid; gap: 9px; flex: 1; }
.plan-features li { color: var(--muted); font-size: 0.93rem; font-weight: 600; display: flex; gap: 8px; align-items: start; }
.plan-features li::before { content: '✓'; color: var(--green); font-weight: 900; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.step { text-align: center; padding: 20px; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #e8a820);
  color: #1a1400;
  font-weight: 900;
  font-size: 1.3rem;
  margin-bottom: 14px;
}
.step h3 { font-weight: 800; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: border-color 0.2s;
}
.faq-item[open] { border-color: rgba(246, 195, 68, 0.4); }
.faq-item summary {
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--gold); font-size: 1.4rem; font-weight: 900; transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); margin-top: 10px; font-size: 0.97rem; }

/* ---------- Final CTA ---------- */
.final-cta { overflow: hidden; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 44px 0 30px; }
.footer-inner { text-align: center; display: grid; gap: 18px; }
.footer-brand .logo-text { font-size: 1.3rem; font-weight: 900; }
.footer-brand p { color: var(--muted); font-size: 0.95rem; margin-top: 6px; }
.footer-links { display: flex; justify-content: center; gap: 22px; font-weight: 700; color: var(--muted); }
.footer-links a:hover { color: var(--gold); }
.footer-copy { color: var(--muted); font-size: 0.85rem; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  bottom: 22px;
  inset-inline-end: 22px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #1da851);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.1); }

/* ============ Premium effects & animations ============ */

/* ---------- Hero entrance ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-badge { animation: fadeUp 0.7s ease both; }
.hero-title { animation: fadeUp 0.7s ease 0.12s both; }
.hero-sub { animation: fadeUp 0.7s ease 0.24s both; }
.hero-ctas { animation: fadeUp 0.7s ease 0.36s both; }
.stats { animation: fadeUp 0.7s ease 0.5s both; }

/* ---------- Gold shimmer on gradient text ---------- */
@keyframes shimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}
.gradient-text {
  background: linear-gradient(110deg, var(--gold-2) 20%, #fff6d8 40%, var(--gold) 60%, #e8a820 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 5s linear infinite;
}

/* ---------- Sparkles canvas (hero) ---------- */
.sparkles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ---------- Floating glow orbs ---------- */
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
}
.glow-1 { animation: drift 14s ease-in-out infinite; }
.glow-2 { animation: drift 18s ease-in-out infinite reverse; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- 3D tilt cards ---------- */
.tilt {
  transform-style: preserve-3d;
  will-change: transform;
}
.tilt .tilt-inner { transform: translateZ(24px); }

/* ---------- Animated gradient border on popular plan ---------- */
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes spin-border {
  to { --angle: 360deg; }
}
.plan-card.popular {
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(246, 195, 68, 0.08), var(--surface) 40%) padding-box,
    conic-gradient(from var(--angle), var(--gold), rgba(246, 195, 68, 0.1) 30%, var(--gold-2) 50%, rgba(246, 195, 68, 0.1) 70%, var(--gold)) border-box;
  animation: spin-border 5s linear infinite;
}

/* ---------- Button shine sweep ---------- */
.btn-gold, .btn-wa { position: relative; overflow: hidden; }
.btn-gold::after, .btn-wa::after {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}
.btn-gold:hover::after, .btn-wa:hover::after { left: 130%; }

/* ---------- Pulsing WhatsApp float ---------- */
@keyframes wa-pulse {
  0% { box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45), 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0); }
}
.wa-float { animation: wa-pulse 2.4s ease-out infinite; }

/* ---------- Categories marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: var(--bg-2);
  padding: 14px 0;
  direction: ltr; /* keep scroll direction consistent in RTL */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-track {
  display: inline-flex;
  gap: 14px;
  white-space: nowrap;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 18px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Section title accent ---------- */
.section-title { position: relative; }
.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  border-radius: 3px;
  margin: 12px auto 0;
  background: linear-gradient(90deg, var(--gold), #e8a820);
  box-shadow: 0 0 14px rgba(246, 195, 68, 0.6);
}

/* ---------- Glassmorphism cards ---------- */
.feature-card, .plan-card, .stat, .faq-item {
  backdrop-filter: blur(6px);
  background-clip: padding-box;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .sparkles { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .plans-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .steps { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 60px 0 50px; }
  .logo-ar { display: none; }
}
