/* ============================
   GLOBAL RESET & VARIABLES
   ============================ */
:root {
  --orange: #f47c20;
  --orange-dark: #d96b10;
  --orange-light: #fef3e8;
  --dark: #0f0f0f;
  --dark-2: #1a1a1a;
  --dark-3: #222;
  --text: #1a1a1a;
  --text-muted: #666;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 8px 40px rgba(244, 124, 32, 0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

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

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

/* ============================
   NAVBAR
   ============================ */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(244,124,32,0.1);
  transition: var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

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

.logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.logo:hover .logo-img {
  transform: scale(1.05);
}

.footer-brand .logo-img {
  height: 80px;
  margin-bottom: 15px;
}


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

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

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

/* ============================
   BUTTONS
   ============================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: white;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(244,124,32,0.3);
}

.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(244,124,32,0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: white;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid rgba(255,255,255,0.6);
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: white;
}

.btn-large { padding: 16px 36px; font-size: 1.1rem; }

/* ============================
   HERO
   ============================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.75) 40%, rgba(244,124,32,0.45));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding-top: 100px;
  padding-bottom: 80px;
  color: white;
}

.hero-badge {
  display: inline-block;
  background: rgba(244,124,32,0.25);
  border: 1px solid rgba(244,124,32,0.6);
  color: #ffc26b;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.highlight { color: var(--orange); }

.hero-sub {
  font-size: 1.15rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.88);
  margin-bottom: 40px;
  max-width: 560px;
}

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

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.6);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ============================
   STATS
   ============================ */
#stats {
  background: var(--dark);
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 16px;
  border-left: 1px solid rgba(255,255,255,0.07);
  text-align: center;
}

.stat-card:last-child { border-left: none; }

.stat-num {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
}

/* ============================
   SECTIONS COMMON
   ============================ */
section { padding: 100px 0; }

.section-tag {
  display: inline-block;
  background: var(--orange-light);
  color: var(--orange);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 14px;
  line-height: 1.25;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 60px;
  max-width: 550px;
}

/* ============================
   APP SCREENS
   ============================ */
#app-screens { background: var(--dark-2); text-align: center; }
#app-screens .section-tag { background: rgba(244,124,32,0.15); }
#app-screens .section-title { color: white; }
#app-screens .section-sub { color: rgba(255,255,255,0.6); margin-left: auto; margin-right: auto; }

.screens-img {
  width: 100%;
  max-width: 900px;
  border-radius: var(--radius);
  animation: float 4s ease-in-out infinite;
}

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

/* ============================
   FEATURES
   ============================ */
#features { background: #fafafa; text-align: center; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: white;
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  transition: var(--transition);
  text-align: right;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 4px;
  height: 0;
  background: var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: height 0.4s ease;
}

.feature-card:hover::before { height: 100%; }

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(244,124,32,0.15);
}

.feature-card.featured {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: white;
}

.feature-card.featured::before { background: rgba(255,255,255,0.4); }

.feature-icon {
  font-size: 2.8rem;
  margin-bottom: 20px;
  display: inline-block;
}

.feature-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.feature-card.featured h3 { color: white; }

.feature-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-card li {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
}

.feature-card.featured li { color: rgba(255,255,255,0.9); }

/* ============================
   HOW IT WORKS
   ============================ */
#how-it-works { background: white; text-align: center; }

.steps-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.step {
  background: var(--orange-light);
  border-radius: var(--radius);
  padding: 40px 32px;
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  text-align: center;
  transition: var(--transition);
}

.step:hover { transform: translateY(-6px); }

.step-num {
  width: 60px;
  height: 60px;
  background: var(--orange);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 900;
  margin: 0 auto 20px;
  box-shadow: 0 6px 20px rgba(244,124,32,0.35);
}

.step h4 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--dark);
}

.step p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

.step-arrow {
  font-size: 2rem;
  color: var(--orange);
  font-weight: 900;
}

/* ============================
   DELIVERY
   ============================ */
#delivery { background: var(--dark); color: white; }

.delivery-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.delivery-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  margin-bottom: 16px;
  line-height: 1.3;
}

.delivery-text p {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.9;
  margin-bottom: 28px;
}

.delivery-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.delivery-points li {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}

.delivery-img-wrap img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* ============================
   USER TYPES
   ============================ */
#user-types { background: white; text-align: center; padding: 60px 0; }

.user-types-img {
  width: 100%;
  max-width: 800px;
  border-radius: var(--radius);
}

/* ============================
   DOWNLOAD
   ============================ */
#download {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: white;
  text-align: center;
}

#download .section-tag { background: rgba(255,255,255,0.2); color: white; }
#download .section-title { color: white; }
#download .section-sub { color: rgba(255,255,255,0.85); margin-left: auto; margin-right: auto; }

.download-btns {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 36px;
  border-radius: var(--radius);
  text-decoration: none;
  color: white;
  transition: var(--transition);
  min-width: 220px;
}

.download-btn.appstore {
  background: #000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.download-btn.googleplay {
  background: #1a7a3e;
  box-shadow: 0 4px 20px rgba(26,122,62,0.4);
}

.download-btn:hover { transform: translateY(-4px) scale(1.03); }

.dl-icon { flex-shrink: 0; }

.dl-text { display: flex; flex-direction: column; text-align: right; }

.dl-small { font-size: 0.75rem; opacity: 0.8; }

.dl-big { font-size: 1.2rem; font-weight: 800; }
/* OS Detected Highlight */
.os-detected {
  position: relative;
  animation: pulse-glow 2s infinite;
  z-index: 1;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); transform: scale(1); }
  70% { box-shadow: 0 0 0 15px rgba(255, 255, 255, 0); transform: scale(1.05); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); transform: scale(1); }
}

.apk-note {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-top: 8px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* QR Code Section */
.qr-section {
  margin-top: 60px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-block;
  backdrop-filter: blur(10px);
}

.qr-section h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: white;
}

.qr-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 15px;
  background: white;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--orange);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 900;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.qr-sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

/* ============================
   FOOTER
   ============================ */
#footer { background: var(--dark); color: rgba(255,255,255,0.7); padding: 60px 0 30px; }

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-brand p { font-size: 0.9rem; margin-top: 8px; color: rgba(255,255,255,0.5); }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--orange); }

.footer-copy { text-align: left; }
.footer-copy p { font-size: 0.85rem; line-height: 1.8; }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .delivery-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-copy { text-align: center; }
  .steps-grid { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
}

@media (max-width: 600px) {
  .hero-btns { flex-direction: column; }
  .download-btns { flex-direction: column; align-items: center; }
  .stat-card { padding: 24px 12px; }
  .stat-num { font-size: 2rem; }
}
