/* ═══════════════════════════════════════════════════════════════════
   Rihla — World-Class Marketing Website
   ═══════════════════════════════════════════════════════════════════ */

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

/* ── Design Tokens ────────────────────────────────────────────────── */
:root {
  --bg:           #050A18;
  --bg-elevated:  #0A1128;
  --bg-card:      rgba(255,255,255,0.03);
  --surface:      rgba(255,255,255,0.06);
  --border:       rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --text-primary: #F0F4FF;
  --text-secondary: #8B9CC7;
  --text-muted:   #4A5578;
  --accent:       #3B82F6;
  --accent-glow:  rgba(59,130,246,0.4);
  --accent-deep:  #1E40AF;
  --emerald:      #10B981;
  --amber:        #F59E0B;
  --rose:         #F43F5E;
  --violet:       #8B5CF6;
  --nav-h:        72px;
  --ease-out:     cubic-bezier(0.16,1,0.3,1);
  --ease-spring:  cubic-bezier(0.34,1.56,0.64,1);
  --font-en:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-ar:      'Cairo', 'Inter', sans-serif;
}

/* ── Reset ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-en); background: var(--bg); color: var(--text-primary); line-height: 1.65; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
ul, ol { list-style: none; }

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

/* ── Utility ──────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

/* ── Scroll animations ────────────────────────────────────────────── */
.anim { opacity: 0; transform: translateY(40px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.anim.visible { opacity: 1; transform: none; }
.anim-d1 { transition-delay: 0.1s; }
.anim-d2 { transition-delay: 0.2s; }
.anim-d3 { transition-delay: 0.3s; }
.anim-d4 { transition-delay: 0.4s; }
.anim-d5 { transition-delay: 0.5s; }
.anim-scale { opacity: 0; transform: scale(0.92); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.anim-scale.visible { opacity: 1; transform: none; }
.anim-left { opacity: 0; transform: translateX(-60px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.anim-left.visible { opacity: 1; transform: none; }
.anim-right { opacity: 0; transform: translateX(60px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.anim-right.visible { opacity: 1; transform: none; }

/* ── Glow blobs (decorative) ──────────────────────────────────────── */
.glow-blob {
  position: absolute; border-radius: 50%; filter: blur(120px); pointer-events: none; z-index: 0;
}

/* ══════════════════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════════════════ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h); display: flex; align-items: center;
  transition: background 0.4s, box-shadow 0.4s, transform 0.4s;
}
#navbar.scrolled {
  background: rgba(5,10,24,0.85); backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: 0 1px 0 var(--border), 0 8px 32px rgba(0,0,0,0.3);
}
#navbar.nav-hidden { transform: translateY(-100%); }
.nav-inner {
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { width: 34px; height: 34px; border-radius: 10px; }
.nav-logo-text {
  font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent), #818CF8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-size: 0.88rem; font-weight: 500; color: var(--text-secondary);
  transition: color 0.25s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transition: transform 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-select {
  font-size: 0.82rem; font-weight: 600; padding: 6px 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text-secondary); cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
  -webkit-appearance: none; appearance: none;
}
.lang-select:hover { border-color: var(--border-hover); color: var(--text-primary); }
.nav-cta-btn {
  font-size: 0.85rem; font-weight: 600; padding: 10px 22px;
  background: var(--accent); color: #fff; border-radius: 10px;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s;
}
.nav-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px var(--accent-glow); }
#menu-toggle { display: none; padding: 6px; }
#menu-toggle span { display: block; width: 20px; height: 2px; background: var(--text-primary); border-radius: 2px; margin: 4px 0; transition: 0.3s; }
#mobile-menu { display: none; }

/* ══════════════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════════════ */
#hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 100px; overflow: hidden;
}
.hero-mesh {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 30% 20%, rgba(59,130,246,0.2), transparent 70%),
    radial-gradient(ellipse 50% 50% at 80% 70%, rgba(139,92,246,0.12), transparent 60%),
    radial-gradient(ellipse 40% 30% at 50% 90%, rgba(16,185,129,0.08), transparent 50%),
    var(--bg);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent 80%);
}
canvas#hero-particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

.hero-inner {
  position: relative; z-index: 2; display: grid;
  grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.hero-text { max-width: 580px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.2);
  border-radius: 100px; padding: 6px 16px 6px 12px;
  font-size: 0.78rem; font-weight: 600; color: var(--accent);
  margin-bottom: 24px; letter-spacing: 0.02em;
}
.hero-eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); animation: pulse-dot 2s ease infinite; }
@keyframes pulse-dot { 0%,100%{ opacity:1; transform:scale(1) } 50%{ opacity:0.5; transform:scale(1.5) } }
.hero-h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem); font-weight: 900;
  line-height: 1.08; letter-spacing: -0.04em; margin-bottom: 20px;
}
.hero-h1 .line { display: block; }
.hero-h1 .highlight {
  background: linear-gradient(90deg, var(--accent), #818CF8, var(--emerald));
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: gradient-shift 5s ease infinite;
}
@keyframes gradient-shift { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }
.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem); color: var(--text-secondary);
  line-height: 1.7; margin-bottom: 36px; max-width: 500px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 14px;
  font-size: 0.92rem; font-weight: 700;
  background: var(--accent); color: #fff;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
  box-shadow: 0 4px 16px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 12px 32px var(--accent-glow); }
.btn-primary svg { width: 20px; height: 20px; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 14px;
  font-size: 0.92rem; font-weight: 700;
  background: var(--surface); color: var(--text-primary);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease-spring), border-color 0.3s, background 0.3s;
}
.btn-secondary:hover { transform: translateY(-3px); border-color: var(--border-hover); background: rgba(255,255,255,0.08); }
.btn-secondary svg { width: 20px; height: 20px; }

.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-stat-item { text-align: left; }
[dir="rtl"] .hero-stat-item { text-align: right; }
.hero-stat-num { font-size: 1.6rem; font-weight: 800; color: var(--text-primary); line-height: 1.2; }
.hero-stat-num .accent { color: var(--accent); }
.hero-stat-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; margin-top: 2px; }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-phone-mockup {
  position: relative; width: 280px; z-index: 2;
  border-radius: 36px; overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.08);
  background: #111;
}
.hero-phone-mockup img { width: 100%; display: block; }
.hero-float-card {
  position: absolute; z-index: 3;
  background: rgba(10,17,40,0.85); backdrop-filter: blur(16px);
  border: 1px solid var(--border); border-radius: 16px;
  padding: 14px 18px; display: flex; align-items: center; gap: 12px;
  font-size: 0.82rem; font-weight: 600; color: var(--text-primary);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  animation: float-card 4s ease-in-out infinite;
}
.hero-float-card:nth-child(2) { animation-delay: -1.5s; }
.hero-float-card:nth-child(3) { animation-delay: -3s; }
@keyframes float-card { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
.float-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.float-icon.blue { background: rgba(59,130,246,0.15); }
.float-icon.green { background: rgba(16,185,129,0.15); }
.float-icon.violet { background: rgba(139,92,246,0.15); }
.float-card-text small { display: block; color: var(--text-muted); font-weight: 400; font-size: 0.72rem; margin-top: 1px; }

.hero-glow-1 { width: 500px; height: 500px; background: rgba(59,130,246,0.15); top: 10%; left: -10%; }
.hero-glow-2 { width: 400px; height: 400px; background: rgba(139,92,246,0.1); bottom: 0; right: -5%; }

/* ══════════════════════════════════════════════════════════════════
   PROBLEM SECTION
═══════════════════════════════════════════════════════════════════ */
#problem {
  padding: 120px 0; position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
}
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.problem-text .section-label { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rose); margin-bottom: 16px; }
.problem-text h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 20px; }
.problem-text p { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 24px; }
.pain-points { display: flex; flex-direction: column; gap: 16px; }
.pain-point {
  display: flex; align-items: flex-start; gap: 14px;
  background: rgba(244,63,94,0.04); border: 1px solid rgba(244,63,94,0.08);
  border-radius: 14px; padding: 18px 20px;
  transition: border-color 0.3s, background 0.3s;
}
.pain-point:hover { border-color: rgba(244,63,94,0.15); background: rgba(244,63,94,0.06); }
.pain-x { font-size: 1.1rem; color: var(--rose); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.pain-point p { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.6; }
.pain-point strong { color: var(--text-primary); font-weight: 600; }

.solution-preview {
  position: relative; display: flex; justify-content: center; align-items: center;
}
.solution-phone {
  width: 260px; border-radius: 32px; overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.06),
              0 0 60px var(--accent-glow);
  background: #111;
}
.solution-phone img { width: 100%; display: block; }

/* ══════════════════════════════════════════════════════════════════
   FEATURES
═══════════════════════════════════════════════════════════════════ */
#features {
  padding: 120px 0; position: relative; overflow: hidden;
}
.features-header { text-align: center; margin-bottom: 80px; }
.section-label { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.section-h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.03em; margin-bottom: 16px; }
.section-p { font-size: 1.05rem; color: var(--text-secondary); max-width: 560px; margin: 0 auto; line-height: 1.7; }

.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: center; padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.feature-row:last-child { border-bottom: none; }
.feature-row.reverse .feature-info { order: 2; }
.feature-row.reverse .feature-visual { order: 1; }
.feature-info { max-width: 480px; }
.feature-number {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; margin-bottom: 16px;
}
.feature-number .num { color: var(--accent); }
.feature-number .sep { color: var(--text-muted); margin: 0 6px; }
.feature-info h3 { font-size: 1.6rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 16px; }
.feature-info p { font-size: 1rem; color: var(--text-secondary); line-height: 1.75; margin-bottom: 20px; }
.feature-highlights { display: flex; flex-direction: column; gap: 10px; }
.feature-highlight {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9rem; color: var(--text-secondary);
}
.feature-highlight .check { color: var(--emerald); font-size: 1rem; font-weight: 700; flex-shrink: 0; }

.feature-visual { display: flex; justify-content: center; position: relative; }
.feature-screenshot {
  width: 240px; border-radius: 28px; overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.06);
  background: #111; transition: transform 0.4s var(--ease-out);
}
.feature-screenshot:hover { transform: scale(1.03) translateY(-4px); }
.feature-screenshot img { width: 100%; display: block; }

/* ══════════════════════════════════════════════════════════════════
   HOW IT WORKS
═══════════════════════════════════════════════════════════════════ */
#how-it-works {
  padding: 120px 0; position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 50%, var(--bg) 100%);
}
.how-header { text-align: center; margin-bottom: 80px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step-card {
  position: relative; padding: 40px 32px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px;
  transition: border-color 0.3s, transform 0.3s var(--ease-out), box-shadow 0.3s;
  overflow: hidden;
}
.step-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.step-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.2); }
.step-card:hover::before { opacity: 1; }
.step-num {
  width: 48px; height: 48px; border-radius: 14px;
  background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800; color: var(--accent);
  margin-bottom: 24px;
}
.step-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; }
.step-card p { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.7; }
.step-connector {
  position: absolute; top: 72px; right: -16px; z-index: 2;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.8rem;
}

/* ══════════════════════════════════════════════════════════════════
   SCREENSHOTS
═══════════════════════════════════════════════════════════════════ */
#screenshots { padding: 120px 0; position: relative; overflow: hidden; }
.screenshots-header { text-align: center; margin-bottom: 64px; }
.screenshots-scroll {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 20px 24px 40px; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.screenshots-scroll::-webkit-scrollbar { display: none; }
.screenshot-item {
  scroll-snap-align: center; flex-shrink: 0;
  width: 220px; border-radius: 24px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05);
  background: #111; transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.screenshot-item:hover { transform: scale(1.05) translateY(-8px); box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 40px var(--accent-glow); }
.screenshot-item img { width: 100%; display: block; }

/* ══════════════════════════════════════════════════════════════════
   SOCIAL PROOF
═══════════════════════════════════════════════════════════════════ */
#social-proof {
  padding: 120px 0; position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
}
.proof-header { text-align: center; margin-bottom: 64px; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px;
  padding: 32px 28px; transition: border-color 0.3s, transform 0.3s var(--ease-out);
  display: flex; flex-direction: column;
}
.testimonial-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.testimonial-stars { color: var(--amber); font-size: 0.9rem; letter-spacing: 2px; margin-bottom: 16px; }
.testimonial-card blockquote { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7; flex: 1; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; font-weight: 700; color: #fff;
}
.testimonial-name { font-size: 0.88rem; font-weight: 600; }
.testimonial-from { font-size: 0.75rem; color: var(--text-muted); }

.store-ratings {
  display: flex; justify-content: center; gap: 40px; margin-top: 56px; flex-wrap: wrap;
}
.store-rating {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px 24px;
}
.store-rating-icon { font-size: 1.6rem; }
.store-rating-text strong { display: block; font-size: 1rem; font-weight: 700; }
.store-rating-text span { font-size: 0.78rem; color: var(--text-muted); }

/* ══════════════════════════════════════════════════════════════════
   PARTNERSHIPS / B2B
═══════════════════════════════════════════════════════════════════ */
#partnerships {
  padding: 100px 0; position: relative; overflow: hidden;
}
.partnerships-card {
  background: linear-gradient(135deg, rgba(59,130,246,0.06), rgba(139,92,246,0.04));
  border: 1px solid var(--border); border-radius: 24px;
  padding: 64px 48px; text-align: center;
}
.partnerships-card h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 16px; letter-spacing: -0.02em; }
.partnerships-card p { font-size: 1.05rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto 32px; line-height: 1.7; }
.partner-types { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 36px; }
.partner-tag {
  padding: 8px 18px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 0.85rem; font-weight: 500; color: var(--text-secondary);
  transition: border-color 0.25s, color 0.25s;
}
.partner-tag:hover { border-color: var(--accent); color: var(--accent); }
.partnerships-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.92rem; font-weight: 700; color: var(--accent);
  padding: 14px 28px; border-radius: 12px;
  border: 2px solid var(--accent);
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease-spring);
}
.partnerships-cta:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

/* ══════════════════════════════════════════════════════════════════
   DOWNLOAD CTA
═══════════════════════════════════════════════════════════════════ */
#download-cta {
  padding: 140px 0; position: relative; overflow: hidden; text-align: center;
}
.download-glow {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(59,130,246,0.2), transparent 70%),
    radial-gradient(ellipse 40% 40% at 30% 60%, rgba(139,92,246,0.1), transparent 60%);
  pointer-events: none;
}
.download-inner { position: relative; z-index: 1; }
.download-inner .section-h2 { margin-bottom: 16px; }
.download-inner .section-p { margin: 0 auto 44px; }
.download-btns { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* ══════════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════════ */
#footer {
  background: #030712; border-top: 1px solid var(--border);
  padding: 64px 0 36px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { font-size: 0.9rem; color: var(--text-muted); max-width: 280px; line-height: 1.7; margin-top: 16px; }
.footer-col h4 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 0.9rem; color: var(--text-secondary); padding: 4px 0; transition: color 0.25s; }
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
}
.footer-bottom p { font-size: 0.78rem; color: var(--text-muted); }

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 48px; }
  .hero-text { max-width: 100%; margin: 0 auto; }
  .hero-sub { margin: 0 auto 36px; max-width: 520px; }
  .hero-ctas { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-stat-item { text-align: center; }
  .hero-visual { order: -1; }
  .hero-phone-mockup { width: 220px; }
  .hero-float-card { display: none; }
  .problem-grid { grid-template-columns: 1fr; gap: 48px; }
  .solution-preview { order: -1; }
  .solution-phone { width: 220px; }
  .feature-row { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .feature-row.reverse .feature-info, .feature-row.reverse .feature-visual { order: unset; }
  .feature-info { max-width: 100%; margin: 0 auto; }
  .feature-visual { order: -1 !important; }
  .feature-highlights { align-items: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* Nav */
  .nav-links { display: none; }
  .nav-cta-btn { display: none; }
  #menu-toggle { display: block; }
  #mobile-menu {
    display: none; position: fixed; inset: var(--nav-h) 0 0 0;
    background: rgba(5,10,24,0.98); backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 999; flex-direction: column; padding: 32px 24px; gap: 4px; overflow-y: auto;
  }
  #mobile-menu.open { display: flex; }
  #mobile-menu a {
    display: block; padding: 16px 0; font-size: 1.1rem; font-weight: 600;
    color: var(--text-secondary); border-bottom: 1px solid var(--border);
    transition: color 0.25s;
  }
  #mobile-menu a:hover, #mobile-menu a:active { color: var(--text-primary); }
  #mobile-menu .mobile-cta { border-bottom: none; }
  .mobile-lang { margin-top: 16px; }
  .mobile-lang .lang-select { width: 100%; padding: 12px; font-size: 1rem; }
  .mobile-cta {
    display: flex; justify-content: center; margin-top: 20px;
    background: var(--accent); color: #fff; font-weight: 700;
    padding: 16px; border-radius: 14px; font-size: 1rem;
    text-align: center;
  }

  /* Hero */
  #hero { padding-top: calc(var(--nav-h) + 20px); padding-bottom: 60px; min-height: auto; }
  .hero-phone-mockup { width: 180px; }
  .hero-h1 { font-size: clamp(2.2rem, 8vw, 3rem); }
  .hero-sub { font-size: 0.95rem; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary { width: 100%; max-width: 320px; justify-content: center; padding: 16px 24px; }
  .hero-stats { gap: 20px; }
  .hero-stat-num { font-size: 1.3rem; }
  .hero-stat-label { font-size: 0.72rem; }

  /* Problem */
  #problem { padding: 80px 0; }
  .problem-text h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
  .pain-point { padding: 14px 16px; }
  .solution-phone { width: 180px; }

  /* Features */
  #features { padding: 80px 0; }
  .features-header { margin-bottom: 48px; }
  .feature-row { padding: 48px 0; gap: 32px; }
  .feature-screenshot { width: 180px; }
  .feature-info h3 { font-size: 1.3rem; }
  .feature-info p { font-size: 0.92rem; }
  .feature-number { font-size: 0.65rem; }
  .feature-highlight { font-size: 0.85rem; text-align: left; }
  [dir="rtl"] .feature-highlight { text-align: right; }

  /* How it works */
  #how-it-works { padding: 80px 0; }
  .steps-grid { grid-template-columns: 1fr; gap: 16px; }
  .step-connector { display: none; }
  .step-card { padding: 28px 24px; }

  /* Screenshots */
  #screenshots { padding: 80px 0; }
  .screenshot-item { width: 170px; }

  /* Social proof */
  #social-proof { padding: 80px 0; }
  .testimonials-grid { grid-template-columns: 1fr; gap: 16px; }
  .testimonial-card { padding: 24px 20px; }
  .store-ratings { gap: 16px; margin-top: 40px; }
  .store-rating { padding: 12px 18px; }

  /* Partnerships */
  #partnerships { padding: 60px 0; }
  .partnerships-card { padding: 36px 20px; border-radius: 20px; }
  .partnerships-card h2 { font-size: 1.4rem; }
  .partnerships-card p { font-size: 0.92rem; }
  .partner-tag { font-size: 0.8rem; padding: 6px 14px; }
  .partnerships-cta { width: 100%; max-width: 300px; justify-content: center; }

  /* Download CTA */
  #download-cta { padding: 80px 0; }
  .download-btns { flex-direction: column; align-items: center; }
  .download-btns .btn-primary,
  .download-btns .btn-secondary { width: 100%; max-width: 320px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand p { max-width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-bottom .lang-select { width: 100%; }

  /* Section typography */
  .section-h2 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .section-p { font-size: 0.95rem; }
  .section-label { font-size: 0.68rem; }
}

@media (max-width: 380px) {
  .container { padding: 0 16px; }
  .hero-phone-mockup { width: 150px; }
  .hero-h1 { font-size: 2rem; }
  .hero-sub { font-size: 0.88rem; }
  .btn-primary, .btn-secondary { max-width: 100%; font-size: 0.85rem; padding: 14px 20px; }
  .feature-screenshot { width: 160px; }
  .screenshot-item { width: 150px; }
  .pain-point { flex-direction: column; gap: 8px; }
  .step-card { padding: 24px 18px; }
  .testimonial-card blockquote { font-size: 0.88rem; }
  .partnerships-card { padding: 28px 16px; }
}

/* Touch-friendly tap targets */
@media (hover: none) and (pointer: coarse) {
  .nav-links a { padding: 8px 0; }
  .btn-primary, .btn-secondary { min-height: 48px; }
  .lang-select { min-height: 44px; padding: 10px 12px; }
  .partner-tag { min-height: 40px; display: flex; align-items: center; }
  .partnerships-cta { min-height: 48px; }
  .feature-screenshot:hover { transform: none; }
  .screenshot-item:hover { transform: none; box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05); }
  .testimonial-card:hover { transform: none; }
  .step-card:hover { transform: none; }
}

/* Safe area insets for notched phones */
@supports (padding: env(safe-area-inset-bottom)) {
  #footer { padding-bottom: calc(36px + env(safe-area-inset-bottom)); }
  #mobile-menu { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}

/* ── RTL ──────────────────────────────────────────────────────────── */
[dir="rtl"] .pain-points, [dir="rtl"] .feature-highlights { direction: rtl; }
[dir="rtl"] .hero-inner { direction: rtl; }
[dir="rtl"] .footer-grid { direction: rtl; }
[dir="rtl"] .step-connector { right: auto; left: -16px; transform: scaleX(-1); }
[dir="rtl"] .nav-links a::after { right: 0; left: 0; }
[dir="rtl"] .problem-text { text-align: right; }
[dir="rtl"] .feature-info { text-align: right; }
[dir="rtl"] .footer-bottom { align-items: flex-end; }
@media (max-width: 1024px) {
  [dir="rtl"] .problem-text { text-align: center; }
  [dir="rtl"] .feature-info { text-align: center; }
}
@media (max-width: 768px) {
  [dir="rtl"] .footer-bottom { align-items: flex-start; }
}
