:root {
  --blue: #036ab2;
  --blue-dark: #024f85;
  --blue-light: #1a8fd1;
  --red: #b80000;
  --red-light: #e00000;
  --bg: #ffffff;
  --bg-alt: #f4f8fc;
  --bg-alt2: #eef3f9;
  --text: #0d1e35;
  --text-muted: #5a6a82;
  --text-light: #8a9ab5;
  --card-border: #dde8f4;
  --shadow-blue: rgba(3, 106, 178, .22);
  --shadow-red: rgba(184, 0, 0, .22);
  --shadow-card: rgba(13, 30, 53, .07);
}

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

body {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  background: #fff;
  color: var(--text);
  overflow-x: hidden;
  direction: rtl;
}

/* LOADER */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity .8s, visibility .8s;
}

#loader.done {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: logoPulse 1.5s ease infinite alternate;
}

.loader-sub {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 8px;
}

.loader-bar {
  margin-top: 24px;
  width: 200px;
  height: 3px;
  background: #dde8f4;
  border-radius: 99px;
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--red));
  border-radius: 99px;
  animation: barLoad 1.8s ease forwards;
}

@keyframes logoPulse {
  from { filter: brightness(1); }
  to { filter: brightness(1.2); }
}

@keyframes barLoad {
  from { width: 0; }
  to { width: 100%; }
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: all .4s;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-img {
  height: 40px;
  width: auto;
  max-width: 150px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: .95rem;
  transition: color .2s;
}

.nav-links a:hover {
  color: var(--blue);
}

.nav-cta {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  padding: 12px 28px;
  border-radius: 12px;
  border: none;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--shadow-blue);
  transition: all .3s;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--shadow-blue);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}

/* HERO */
#home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 5% 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 65% 10%, rgba(3, 106, 178, .08) 0%, transparent 65%), radial-gradient(ellipse 45% 40% at 10% 80%, rgba(184, 0, 0, .05) 0%, transparent 60%), #fff;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(3, 106, 178, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(3, 106, 178, .045) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(3, 106, 178, .07);
  border: 1px solid rgba(3, 106, 178, .18);
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: 28px;
  font-size: .85rem;
  color: var(--blue);
  font-weight: 600;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00b96b;
  animation: dotPulse 2s ease infinite;
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 185, 107, .5); }
  50% { box-shadow: 0 0 0 6px rgba(0, 185, 107, 0); }
}

.hero-h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text);
}

.hero-h1 .highlight {
  background: linear-gradient(135deg, var(--blue), var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-store {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  transition: transform .3s, box-shadow .3s;
  position: relative;
  overflow: hidden;
}

.btn-store::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, .2), transparent);
  opacity: 0;
  transition: opacity .3s;
}

.btn-store:hover::before { opacity: 1; }
.btn-store:hover { transform: translateY(-3px); }

.btn-play { background: #0d1e35; color: #fff; box-shadow: 0 6px 20px rgba(13, 30, 53, .15); }
.btn-play:hover { box-shadow: 0 10px 30px rgba(13, 30, 53, .25); }
.btn-apple { background: #fff; color: #0d1e35; border: 1px solid var(--card-border); box-shadow: 0 6px 20px rgba(13, 30, 53, .05); }
.btn-apple:hover { box-shadow: 0 10px 30px rgba(13, 30, 53, .1); }

.btn-store-icon { font-size: 1.5rem; }
.btn-store-text small { display: block; font-size: .65rem; opacity: .6; font-weight: 400; }
.btn-store-text strong { display: block; font-size: .95rem; }

.hero-visual { position: relative; }
.phone-mockup {
  width: 280px;
  height: 560px;
  background: #0d1e35;
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 50px 100px -20px rgba(13, 30, 53, .2);
  position: relative;
  z-index: 1;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: #f4f8fc;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
}
.phone-ui { padding: 20px; height: 100%; display: flex; flex-direction: column; }
.phone-search { background: #fff; border-radius: 12px; padding: 10px 15px; font-size: .7rem; color: #9aafca; box-shadow: 0 2px 10px rgba(13, 30, 53, .04); margin-bottom: 20px; }
.phone-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.phone-card { background: #fff; border-radius: 14px; padding: 15px; text-align: center; border: 1px solid #eef3f9; }
.phone-card-label { display: block; font-size: .6rem; font-weight: 700; color: #5a6a82; margin-top: 5px; }

.float-el {
  position: absolute;
  background: #fff;
  padding: 14px 20px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(13, 30, 53, .08);
  font-weight: 700;
  font-size: .85rem;
  z-index: 2;
}
.float-1 { top: 10%; right: -20px; animation: floatA 4s ease infinite; color: var(--blue); }
.float-2 { bottom: 20%; left: -30px; animation: floatB 5s ease infinite; color: var(--red); }
.float-3 { top: 40%; left: -50px; animation: floatA 6s ease-in-out infinite; }
.float-4 { bottom: 10%; right: -30px; animation: floatB 4.5s ease-in-out infinite; }

@keyframes floatA { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes floatB { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }

/* SECTION COMMON */
section { padding: 100px 5%; position: relative; }
.section-label {
  display: inline-block;
  background: rgba(3, 106, 178, .07);
  color: var(--blue);
  padding: 6px 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .8rem;
  margin-bottom: 16px;
  letter-spacing: .5px;
}
.section-title {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 16px;
  color: var(--text);
}
.section-sub { font-size: 1.1rem; color: var(--text-muted); line-height: 1.8; max-width: 600px; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* PROBLEM */
.problems-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 60px; }
.problem-card {
  background: #fff;
  padding: 40px;
  border-radius: 24px;
  border: 1px solid var(--card-border);
  transition: all .3s;
}
.problem-card:hover { transform: translateY(-8px); border-color: var(--blue); box-shadow: 0 20px 40px var(--shadow-card); }
.problem-icon { font-size: 2.5rem; display: block; margin-bottom: 24px; }
.problem-title { font-size: 1.35rem; font-weight: 900; color: var(--text); margin-bottom: 14px; }
.problem-desc { font-size: .95rem; color: var(--text-muted); line-height: 1.7; }

/* SOLUTION */
#solution { background: var(--bg-alt); }
.solution-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 80px; align-items: center; margin-top: 50px; }
.solution-item { display: flex; gap: 24px; margin-bottom: 36px; }
.solution-icon-box {
  width: 60px;
  height: 60px;
  background: #fff;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 8px 20px rgba(13, 30, 53, .05);
  flex-shrink: 0;
}
.solution-item-title { font-size: 1.2rem; font-weight: 900; color: var(--text); margin-bottom: 8px; }
.solution-item-desc { font-size: .95rem; color: var(--text-muted); line-height: 1.7; }

/* FEATURES */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 60px; }
.feature-card {
  padding: 32px;
  background: #fff;
  border-radius: 22px;
  border: 1px solid var(--card-border);
  transition: all .3s;
  text-align: center;
}
.feature-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px var(--shadow-card); border-color: var(--blue); }
.feature-emoji { font-size: 2.8rem; display: block; margin-bottom: 20px; }
.feature-name { font-size: 1.25rem; font-weight: 900; margin-bottom: 12px; }
.feature-desc { font-size: .92rem; color: var(--text-muted); line-height: 1.7; }

/* HOW IT WORKS */
.steps-container { max-width: 800px; margin: 60px auto 0; position: relative; }
.steps-line { position: absolute; top: 0; bottom: 0; right: 29px; width: 2px; background: linear-gradient(var(--blue), var(--red)); opacity: .2; z-index: 1; }
.step { display: flex; gap: 40px; margin-bottom: 50px; position: relative; z-index: 2; }
.step-num {
  width: 60px;
  height: 60px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 8px 20px var(--shadow-blue);
}
.step:nth-child(3) .step-num { background: var(--blue-dark); }
.step:nth-child(4) .step-num { background: var(--red); }
.step:nth-child(5) .step-num { background: var(--red-light); }
.step-title { font-size: 1.35rem; font-weight: 900; margin-bottom: 8px; }
.step-desc { font-size: 1rem; color: var(--text-muted); line-height: 1.7; }

/* MERCHANTS */
#merchants { background: var(--bg-alt); }
.merchants-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-top: 20px; }
.merchant-perk {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  border-right: 3px solid var(--blue);
  box-shadow: 0 4px 16px var(--shadow-card);
  margin-bottom: 14px;
}
.merchant-perk-icon { font-size: 1.4rem; }
.merchant-perk-text { font-weight: 700; color: var(--text); font-size: .95rem; }
.btn-merchant {
  background: var(--text);
  color: #fff;
  padding: 16px 36px;
  border-radius: 14px;
  border: none;
  font-weight: 900;
  font-size: 1.1rem;
  cursor: pointer;
  margin-top: 30px;
  transition: all .3s;
}
.btn-merchant:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(13, 30, 53, .3); }
.merchant-visual { background: #fff; border-radius: 30px; padding: 40px; text-align: center; border: 1px solid var(--card-border); box-shadow: 0 20px 50px var(--shadow-card); }
.merchant-stat { display: block; font-size: 2.8rem; font-weight: 900; color: var(--blue); margin-bottom: 4px; }
.merchant-stat-label { font-size: .9rem; color: var(--text-muted); font-weight: 600; }
.merchant-divider { height: 1px; background: var(--card-border); margin: 24px 0; }

/* COUNTERS & TRUST */
.counters { display: flex; justify-content: space-between; background: #fff; padding: 50px; border-radius: 30px; border: 1px solid var(--card-border); box-shadow: 0 10px 40px var(--shadow-card); }
.counter-item { text-align: center; }
.counter-num { display: block; font-size: 2.5rem; font-weight: 900; color: var(--text); margin-bottom: 8px; }
.counter-label { font-size: .9rem; color: var(--text-muted); font-weight: 600; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
.review-card { background: var(--bg-alt); padding: 32px; border-radius: 20px; position: relative; }
.review-stars { color: #f2b01e; font-size: .9rem; margin-bottom: 16px; }
.review-text { font-size: .95rem; color: var(--text); line-height: 1.8; margin-bottom: 24px; font-style: italic; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar { width: 44px; height: 44px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.review-name { font-weight: 900; font-size: .95rem; }
.review-city { font-size: .75rem; color: var(--text-muted); }

/* CTA */
#cta { padding: 120px 5%; text-align: center; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; background: #0d1e35; z-index: -1; }
.cta-glow { position: absolute; width: 600px; height: 600px; background: radial-gradient(circle, rgba(3, 106, 178, .2), transparent 70%); top: 50%; left: 50%; translate: -50% -50%; z-index: -1; }
.cta-title { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 900; color: #fff; line-height: 1.1; margin-bottom: 24px; }
.cta-title .grad { background: linear-gradient(135deg, var(--blue), var(--red)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cta-sub { font-size: 1.25rem; color: rgba(255, 255, 255, .6); margin-bottom: 48px; }
.cta-btns { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.btn-cta-main { display: flex; align-items: center; gap: 14px; padding: 18px 32px; border-radius: 20px; font-weight: 700; text-decoration: none; transition: transform .3s; }
.btn-cta-main:hover { transform: translateY(-6px); }
.btn-cta-play { background: #fff; color: #0d1e35; }
.btn-cta-ios { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: #fff; }

/* FOOTER */
footer { background: var(--text); padding: 40px 5%; text-align: center; }
.footer-logo { font-size: 1.8rem; font-weight: 900; background: linear-gradient(135deg, #5ab8f0, #ff7070); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 14px; }
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 18px; }
.footer-links a { color: rgba(255, 255, 255, .4); text-decoration: none; font-size: .83rem; transition: color .2s; }
.footer-links a:hover { color: rgba(255, 255, 255, .85); }
.footer-copy { font-size: .8rem; color: rgba(255, 255, 255, .3); }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* RESPONSIVE */
@media(max-width:900px) {
  .hero-content, .solution-grid, .merchants-grid { grid-template-columns: 1fr; }
  .hero-visual, .solution-visual { display: none; }
  .problems-grid, .reviews-grid { grid-template-columns: 1fr; }
  .counters { gap: 30px; }
  .nav-links { display: none; }
  .hero-btns { justify-content: center; }
  .section-sub { margin-left: auto; margin-right: auto; }
  .field-row { grid-template-columns: 1fr; }
}
@media(max-width:600px) {
  section { padding: 70px 5%; }
  .counters { flex-direction: column; gap: 20px; }
  .cta-btns { flex-direction: column; align-items: center; gap: 15px; }
  .btn-cta-main { width: 100%; max-width: 300px; justify-content: center; }
}

/* SUPPORT PAGE SPECIFIC */
#support-page { display: block!important; min-height: 100vh; background: #f4f8fc; padding-top: 100px; padding-bottom: 80px; }
.support-page-hero { text-align: center; position: relative; padding: 60px 5%; overflow: hidden; background: #fff; margin-bottom: 40px; }
.support-hero-title { font-size: 2.5rem; font-weight: 900; margin-bottom: 16px; color: var(--text); }
.support-main-wrap { max-width: 1000px; margin: 0 auto; padding: 0 5%; }
.support-cards-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 40px; }
.contact-info-card { background: #fff; padding: 30px; border-radius: 20px; text-align: center; text-decoration: none; border: 1px solid var(--card-border); transition: all .3s; }
.support-form-section { background: #fff; padding: 40px; border-radius: 30px; box-shadow: 0 10px 40px var(--shadow-card); }
