:root {
  --blue: #2563EB;
  --blue-2: #3B82F6;
  --blue-dark: #1E40AF;
  --navy: #0F172A;
  --teal: #0D9488;
  --bg: #F4F7FB;
  --card: #FFFFFF;
  --text: #0F172A;
  --muted: #64748B;
  --line: #E2E8F0;
  --radius: 20px;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --font: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.container { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 72px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 800; white-space: nowrap;
}
.brand-logo, .brand img {
  width: 40px; height: 40px; border-radius: 12px; object-fit: cover;
  box-shadow: 0 6px 16px rgba(37,99,235,.25);
}
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #fff; display: grid; place-items: center; font-size: 22px;
}
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a, .nav-toggle {
  text-decoration: none; color: var(--muted); font-weight: 600;
  padding: 8px 12px; border-radius: 10px;
}
.nav a:hover, .nav a.active { color: var(--blue); background: #EFF6FF; }
.nav-toggle { display: none; border: 1px solid var(--line); background: #fff; cursor: pointer; }

.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button {
  border: 0; background: transparent; padding: 6px 12px; cursor: pointer;
  font-family: inherit; font-weight: 700; color: var(--muted);
}
.lang button.active { background: var(--blue); color: #fff; }

.hero {
  background:
    radial-gradient(circle at 80% 10%, rgba(96,165,250,.35), transparent 36%),
    linear-gradient(180deg, #1D4ED8 0%, #1E3A8A 52%, #0F172A 100%);
  color: #fff; overflow: hidden; padding: 52px 0 76px;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 40px; align-items: center;
}
.badge {
  display: inline-flex; gap: 8px; align-items: center;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px; padding: 6px 12px; font-size: 13px; margin-bottom: 16px;
}
.hero h1 { font-size: clamp(1.85rem, 4vw, 3.15rem); line-height: 1.25; margin-bottom: 14px; }
.hero p.lead { color: #DBEAFE; max-width: 36rem; margin-bottom: 24px; font-size: 1.05rem; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; border-radius: 14px; padding: 12px 18px;
  font-weight: 700; font-family: inherit; border: 0; cursor: pointer;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.btn-apple, .store-btn.apple { background: #111827; color: #fff; }
.btn-play, .store-btn.play { background: #fff; color: #1E40AF; }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-wa { background: #25D366; color: #fff; }
.store-btn {
  min-width: 168px;
  padding: 10px 16px 10px 14px;
  border-radius: 14px;
  text-align: start;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.store-btn svg { width: 22px; height: 22px; }
.store-btn small { display: block; font-size: 10px; font-weight: 500; opacity: .8; line-height: 1.2; }
.store-btn strong { display: block; font-size: 16px; line-height: 1.15; }
.stats { display: flex; gap: 22px; flex-wrap: wrap; color: #BFDBFE; font-size: 14px; }
.stats strong { display: block; color: #fff; font-size: 18px; }

.phones {
  display: flex; justify-content: center; align-items: flex-end; gap: 10px;
  min-height: 460px; perspective: 900px;
}
.phone {
  width: 210px; background: #020617; border: 10px solid #020617;
  border-radius: 36px; overflow: hidden; box-shadow: var(--shadow);
  position: relative;
}
.phone::after {
  content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 72px; height: 7px; border-radius: 999px; background: #020617; z-index: 2;
}
.phone img { width: 100%; height: 430px; object-fit: cover; object-position: top; }
.phone.back { width: 186px; transform: translateY(34px) rotate(-8deg); opacity: .95; }
.phone.side { width: 186px; transform: translateY(34px) rotate(8deg); opacity: .95; }
.phone.front { width: 232px; z-index: 2; transform: translateY(0); }

.section { padding: 76px 0; }
.section.alt { background: #fff; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section-head h2 { font-size: 1.85rem; margin-bottom: 8px; }
.section-head p { color: var(--muted); }

.shots {
  display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 16px;
}
.shot {
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
  padding: 10px 10px 14px; text-align: center;
  box-shadow: 0 10px 28px rgba(15,23,42,.06);
}
.shot .phone { width: 100%; border-width: 8px; border-radius: 28px; }
.shot .phone img { height: 340px; }
.shot span { display: block; margin-top: 10px; font-weight: 700; font-size: 14px; }

.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: 0 8px 24px rgba(15,23,42,.04);
}
.icon {
  width: 48px; height: 48px; max-width: 48px; max-height: 48px;
  border-radius: 14px; display: grid; place-items: center;
  background: #EFF6FF; margin-bottom: 12px;
  font-size: 22px; line-height: 1; overflow: hidden;
}
.card h3 { margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 15px; }

.roles { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; }
.role-list { display: grid; gap: 12px; }
.role {
  background: #fff; border-radius: 16px; padding: 16px 18px; border: 1px solid var(--line);
}
.role h3 { margin-bottom: 4px; }
.role p { color: var(--muted); font-size: 14px; }
.role-phone { justify-self: center; }
.role-phone .phone { width: 250px; }
.role-phone .phone img { height: 500px; }

.download {
  background: linear-gradient(135deg, #1D4ED8, #2563EB 45%, #0D9488);
  color: #fff; border-radius: 28px; padding: 36px;
  display: grid; grid-template-columns: 1.2fr auto; gap: 20px; align-items: center;
}
.download h2 { font-size: 1.7rem; margin-bottom: 8px; }
.download p { color: #DBEAFE; margin-bottom: 18px; }
.download-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact a { color: var(--blue); font-weight: 700; text-decoration: none; }
.page-hero {
  background: linear-gradient(180deg, #EFF6FF, var(--bg));
  padding: 40px 0 24px;
}
.legal { max-width: 800px; }
.legal article { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin-bottom: 14px; }
.legal h2 { margin-bottom: 8px; font-size: 1.15rem; }
.legal ul, .legal ol { padding-inline-start: 20px; color: var(--muted); list-style: disc; }
.legal ol { list-style: decimal; }
.legal p { color: #334155; margin-bottom: 8px; }
.legal a { color: var(--blue); font-weight: 700; }
.note { color: var(--muted); font-size: 14px; margin-top: 8px; }

.site-footer { background: var(--navy); color: #94A3B8; padding: 40px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 24px; margin-bottom: 24px; }
.site-footer h4 { color: #fff; margin-bottom: 10px; }
.site-footer ul { list-style: none; }
.site-footer a { color: #CBD5E1; text-decoration: none; }
.site-footer li { margin-bottom: 6px; }
.stores { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.stores a { color: #fff; font-weight: 700; }
.footer-bottom { border-top: 1px solid #1E293B; padding-top: 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }

@media (max-width: 980px) {
  .hero-grid, .roles, .features, .contact, .footer-grid, .shots, .download { grid-template-columns: 1fr; }
  .shots { display: flex; overflow-x: auto; padding-bottom: 8px; }
  .shot { min-width: 190px; }
  .phones { min-height: 390px; }
  .phone.back, .phone.side { display: none; }
  .phone.front { width: 240px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; width: 100%; flex-direction: column; }
  .nav.open { display: flex; }
  .header-inner { flex-wrap: wrap; }
  .download { padding: 24px; }
}
