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

:root {
  --navy: #0D1B3E;
  --navy-2: #1A3A6B;
  --navy-3: #112855;
  --orange: #FF6B35;
  --orange-light: #FFF0EA;
  --orange-dark: #C94E1A;
  --bg: #F0F4FF;
  --card: #FFFFFF;
  --text: #0D1B3E;
  --text-2: #4A6FA5;
  --text-3: #8BA3C7;
  --border: #E1E9FB;
  --live: #2ECC71;
  --radius: 16px;
  --font-display-latin: 'Sora', sans-serif;
  --font-display-ar: 'Cairo', sans-serif;
  --font-body-latin: 'Inter', sans-serif;
  --font-body-ar: 'Tajawal', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body-latin);
  line-height: 1.6;
  overflow-x: hidden;
}

html[dir="rtl"] body { font-family: var(--font-body-ar); }
html[dir="rtl"] .display { font-family: var(--font-display-ar); }
.display { font-family: var(--font-display-latin); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(240, 244, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1120px;
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand span { font-family: var(--font-display-latin); font-weight: 800; font-size: 19px; color: var(--navy); }
html[dir="rtl"] .brand span { font-family: var(--font-display-ar); }

.nav-right { display: flex; align-items: center; gap: 14px; }

.lang-switch {
  display: flex;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang-switch button {
  border: none;
  background: transparent;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  transition: all .2s;
}
.lang-switch button.active { background: var(--navy); color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  border: none;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgba(255,107,53,.35); }
.btn-primary:hover { box-shadow: 0 8px 22px rgba(255,107,53,.45); }
.btn-ghost { background: var(--card); color: var(--navy); border: 1px solid var(--border); }
.btn-nav { padding: 9px 16px; font-size: 13px; }

.btn-big {
  padding: 20px 38px;
  font-size: 18px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(255,107,53,.45);
  animation: cta-pulse 2.4s infinite;
}
.btn-big:hover { transform: translateY(-2px) scale(1.02); }
@keyframes cta-pulse {
  0% { box-shadow: 0 12px 30px rgba(255,107,53,.45), 0 0 0 0 rgba(255,107,53,.5); }
  70% { box-shadow: 0 12px 30px rgba(255,107,53,.45), 0 0 0 16px rgba(255,107,53,0); }
  100% { box-shadow: 0 12px 30px rgba(255,107,53,.45), 0 0 0 0 rgba(255,107,53,0); }
}
@media (prefers-reduced-motion: reduce) {
  .btn-big { animation: none; }
}

/* ---------- HERO ---------- */
.hero {
  padding: 56px 0 32px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange-light);
  color: var(--orange-dark);
  font-weight: 700;
  font-size: 12px;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-display-latin);
  font-weight: 800;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.08;
  color: var(--navy);
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
html[dir="rtl"] .hero h1 { font-family: var(--font-display-ar); letter-spacing: 0; }
.hero h1 .accent { color: var(--orange); }
.hero p.lead {
  font-size: 17px;
  color: var(--text-2);
  max-width: 480px;
  margin-bottom: 30px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-stat b { font-family: var(--font-display-latin); font-size: 22px; color: var(--navy); display: block; }
html[dir="rtl"] .hero-stat b { font-family: var(--font-display-ar); }
.hero-stat span { font-size: 12px; color: var(--text-2); }

/* phone mock */
.phones-wrap { display: flex; gap: 18px; justify-content: center; position: relative; }
.phone-col { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.phone-col-2 { margin-top: 34px; opacity: .92; }
.phone-tag {
  font-size: 11px; font-weight: 700; color: var(--navy-2);
  background: var(--card); border: 1px solid var(--border);
  padding: 5px 12px; border-radius: 999px;
}
.phone {
  width: 220px;
  background: var(--navy);
  border-radius: 32px;
  padding: 10px;
  box-shadow: 0 30px 60px rgba(13,27,62,.35), 0 0 0 1px rgba(255,255,255,.05) inset;
  position: relative;
}
.phone-col:first-child .phone { transform: rotate(-3deg); }
.phone-col-2 .phone { transform: rotate(3deg); width: 200px; }
@media (max-width: 640px) {
  .phones-wrap { transform: scale(.86); margin: 0 -10px; }
}
.phone-screen {
  background: var(--card);
  border-radius: 22px;
  overflow: hidden;
  min-height: 380px;
}
.phone-screenshot { min-height: 0; line-height: 0; }
.phone-screenshot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone-topbar {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  padding: 18px 16px 30px;
  color: #fff;
}
.phone-topbar .ptb-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; margin-bottom: 12px; }
.phone-topbar .ptb-brand img { width: 22px; height: 22px; border-radius: 6px; }
.phone-search { background: rgba(255,255,255,.12); border-radius: 10px; padding: 9px 12px; font-size: 11px; color: rgba(255,255,255,.7); }
.phone-cards { padding: 14px; display: flex; flex-direction: column; gap: 10px; margin-top: -18px; }
.phone-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 10px; display: flex; gap: 10px; align-items: center; box-shadow: 0 4px 14px rgba(13,27,62,.06); }
.phone-card .pc-emoji { font-size: 26px; width: 42px; height: 42px; background: var(--bg); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.phone-card .pc-title { font-size: 12px; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.phone-card .pc-price { font-size: 11px; color: var(--orange-dark); font-weight: 700; }
.phone-card .pc-price s { color: var(--text-3); font-weight: 400; margin-inline-end: 5px; }
.badge-float {
  position: absolute;
  top: -14px;
  inset-inline-end: -14px;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(255,107,53,.4);
  transform: rotate(6deg);
}

/* ---------- LIVE STRIP ---------- */
.live-section { padding: 56px 0; }
.live-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; gap: 10px; }
.live-title { display: flex; align-items: center; gap: 10px; }
.live-title h2 { font-family: var(--font-display-latin); font-size: 22px; font-weight: 700; color: var(--navy); }
html[dir="rtl"] .live-title h2 { font-family: var(--font-display-ar); }
.live-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--live);
  box-shadow: 0 0 0 0 rgba(46,204,113,.6);
  animation: pulse 1.8s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46,204,113,.55); }
  70% { box-shadow: 0 0 0 9px rgba(46,204,113,0); }
  100% { box-shadow: 0 0 0 0 rgba(46,204,113,0); }
}
.live-sub { font-size: 13px; color: var(--text-2); }

.deals-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
@media (max-width: 980px) { .deals-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .deals-row { grid-template-columns: repeat(2, 1fr); } }

.deal-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  transition: transform .2s, box-shadow .2s;
}
.deal-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(13,27,62,.08); }
.deal-emoji { font-size: 30px; width: 52px; height: 52px; background: var(--bg); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.deal-shop { font-size: 10px; color: var(--text-2); font-weight: 600; text-transform: uppercase; letter-spacing: .3px; margin-bottom: 4px; }
.deal-title { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 8px; min-height: 34px; }
.deal-price .before { font-size: 11px; color: var(--text-3); text-decoration: line-through; margin-inline-end: 6px; }
.deal-price .after { font-size: 15px; color: var(--orange-dark); font-weight: 800; }

.deals-empty, .deals-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 30px;
  color: var(--text-2);
  font-size: 13px;
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* ---------- SELLERS ---------- */
.seller-section { padding: 20px 0 56px; }
.seller-box {
  background: var(--orange-light);
  border: 1px solid #FFD9C7;
  border-radius: 28px;
  padding: 46px 40px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.seller-box .eyebrow { background: #fff; }
.seller-box h2 { font-size: 26px; font-weight: 800; color: var(--navy); margin-bottom: 14px; }
.seller-box p { color: var(--text-2); font-size: 14px; max-width: 520px; margin: 0 auto 26px; }

/* ---------- FEATURES ---------- */
.features { padding: 56px 0; }
.section-head { text-align: center; max-width: 560px; margin: 0 auto 40px; }
.section-head h2 { font-family: var(--font-display-latin); font-size: 26px; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
html[dir="rtl"] .section-head h2 { font-family: var(--font-display-ar); }
.section-head p { color: var(--text-2); font-size: 14px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.feature-icon {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}
.feature-shot {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
  display: block;
}
.feature-card h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--text-2); }

/* ---------- VIDEO ---------- */
.video-section { padding: 28px 0 40px; }
.video-frame {
  background: linear-gradient(135deg, var(--navy), var(--navy-3));
  border-radius: 24px;
  aspect-ratio: 16/8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  color: rgba(255,255,255,.85);
  position: relative;
  overflow: hidden;
}
.video-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,107,53,.18), transparent 55%);
}
.play-btn {
  width: 64px; height: 64px;
  background: var(--orange);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: 0 10px 26px rgba(255,107,53,.4);
  position: relative; z-index: 1;
}
.video-frame .vf-label { font-size: 13px; font-weight: 600; position: relative; z-index: 1; }

/* ---------- CTA ---------- */
.cta-section { padding: 60px 0 80px; }
.cta-box {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  border-radius: 28px;
  padding: 50px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: "";
  position: absolute;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(255,107,53,.25), transparent 60%);
  top: -140px; inset-inline-end: -100px;
}
.cta-box h2 { font-family: var(--font-display-latin); color: #fff; font-size: 28px; font-weight: 800; margin-bottom: 12px; position: relative; }
html[dir="rtl"] .cta-box h2 { font-family: var(--font-display-ar); }
.cta-box p { color: rgba(255,255,255,.75); font-size: 14px; margin-bottom: 26px; position: relative; }
.cta-box .hero-ctas { justify-content: center; position: relative; }

/* ---------- FOOTER ---------- */
.footer { padding: 40px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 28px; height: 28px; border-radius: 8px; }
.footer-brand span { font-weight: 700; color: var(--navy); font-size: 14px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--text-2); font-weight: 500; display: flex; align-items: center; gap: 6px; }
.footer-links a:hover { color: var(--orange-dark); }
.footer-copy { font-size: 12px; color: var(--text-3); text-align: center; margin-top: 24px; }

/* ---------- FLOATING CTA (mobile) ---------- */
.floating-cta {
  display: none;
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 30px;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(255,107,53,.45);
  white-space: nowrap;
}
@media (max-width: 720px) {
  .floating-cta { display: block; }
  body { padding-bottom: 78px; } /* évite que le bouton cache le footer */
}
.floating-cta.hidden { transform: translateX(-50%) translateY(120px); }

/* ---------- SCROLL REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
