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

:root {
  --navy:        #1D2A45;
  --orange:      #D4672A;
  --orange-dark: #B85522;
  --orange-pale: rgba(212, 103, 42, 0.12);
  --green:       #4A6741;
  --green-pale:  rgba(74, 103, 65, 0.12);
  --navy-pale:   rgba(29, 42, 69, 0.1);
  --bg:          #FAFAF8;
  --bg-alt:      #F0ECE4;
  --card:        #FFFFFF;
  --text:        #1D2A45;
  --muted:       #6B7280;
  --border:      #E5DDD0;
  --radius:      16px;
  --shadow:      0 2px 16px rgba(29, 42, 69, 0.07);
  --shadow-lift: 0 8px 40px rgba(212, 103, 42, 0.2);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
}

body {
  font-family: 'Cairo', sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  line-height: 1.7;
}

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

/* ─────────────────────────────────────────
   Header
───────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo-img {
  height: 46px;
  width: auto;
  display: block;
}

.header-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.header-link:hover {
  color: var(--orange);
  background: var(--bg-alt);
}

/* ─────────────────────────────────────────
   Hero
───────────────────────────────────────── */
.hero {
  position: relative;
  padding: 110px 0 130px;
  overflow: hidden;
  background: linear-gradient(135deg, #111B2E 0%, #1D2A45 40%, #2A3D1E 80%, #1A2438 100%);
  text-align: center;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 55% at 50% 0%, rgba(212, 103, 42, 0.38) 0%, transparent 68%);
  pointer-events: none;
}

/* floating background bubbles */
.hero-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-dots span {
  position: absolute;
  border-radius: 50%;
  animation: floatBubble ease-in-out infinite;
}

.hero-dots span:nth-child(1) { width: 110px; height: 110px; top: 8%;  left: 6%;  background: rgba(212,103,42,0.13); animation-duration: 9s;  animation-delay: 0s; }
.hero-dots span:nth-child(2) { width: 50px;  height: 50px;  top: 55%; left: 4%;  background: rgba(255,255,255,0.06); animation-duration: 7s;  animation-delay: 1.2s; }
.hero-dots span:nth-child(3) { width: 75px;  height: 75px;  top: 72%; left: 20%; background: rgba(74,103,65,0.22);  animation-duration: 10s; animation-delay: 2.5s; }
.hero-dots span:nth-child(4) { width: 35px;  height: 35px;  top: 25%; left: 38%; background: rgba(255,255,255,0.05); animation-duration: 6s;  animation-delay: 0.4s; }
.hero-dots span:nth-child(5) { width: 130px; height: 130px; top: 4%;  right: 8%; background: rgba(74,103,65,0.16);  animation-duration: 11s; animation-delay: 1.8s; }
.hero-dots span:nth-child(6) { width: 50px;  height: 50px;  top: 42%; right: 5%; background: rgba(212,103,42,0.16); animation-duration: 7.5s; animation-delay: 3.2s; }
.hero-dots span:nth-child(7) { width: 80px;  height: 80px;  top: 68%; right: 14%;background: rgba(255,255,255,0.05); animation-duration: 9s;  animation-delay: 2s; }
.hero-dots span:nth-child(8) { width: 28px;  height: 28px;  top: 85%; right: 32%;background: rgba(212,103,42,0.22); animation-duration: 5.5s; animation-delay: 4.5s; }

.hero-content {
  position: relative;
  z-index: 1;
  animation: fadeSlideUp 0.8s ease both;
}

.hero-badge {
  display: inline-block;
  background: rgba(212, 103, 42, 0.22);
  color: #FFBB88;
  border: 1px solid rgba(212, 103, 42, 0.45);
  border-radius: 20px;
  padding: 6px 20px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 22px;
  letter-spacing: 0.02em;
}

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

.hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 0;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 60px;
}

/* ─────────────────────────────────────────
   Buttons
───────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 12px;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
  border: none;
}

.btn-orange {
  background: var(--orange);
  color: #fff;
  animation: pulseCTA 3s ease-in-out infinite;
}

.btn-orange:hover {
  background: var(--orange-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(212, 103, 42, 0.45);
  animation: none;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.btn-download {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 10px;
  width: 100%;
  text-align: center;
  display: block;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 103, 42, 0.4);
}

/* ─────────────────────────────────────────
   Stats Strip
───────────────────────────────────────── */
.stats-strip {
  background: var(--bg);
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.stats-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 28px;
}

.stat-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--orange);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px;
}

.stat-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ─────────────────────────────────────────
   Language Ticker
───────────────────────────────────────── */
.ticker-wrap {
  overflow: hidden;
  background: var(--orange);
  padding: 11px 0;
}

.ticker-track {
  display: flex;
  align-items: center;
  direction: ltr;
  width: max-content;
  animation: ticker 28s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  padding: 0 20px;
  white-space: nowrap;
}

.ticker-dot {
  color: rgba(255, 255, 255, 0.45);
  font-size: 7px;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────
   Features Section
───────────────────────────────────────── */
.features-section {
  padding: 80px 0;
  background: var(--bg-alt);
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 28px 28px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 36px 28px 32px;
  border-top: 4px solid transparent;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(29, 42, 69, 0.1);
}

.feature-orange { border-top-color: var(--orange); }
.feature-navy   { border-top-color: var(--navy); }
.feature-green  { border-top-color: var(--green); }

.feat-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-orange .feat-icon { background: var(--orange-pale); color: var(--orange); }
.feature-navy   .feat-icon { background: var(--navy-pale);   color: var(--navy); }
.feature-green  .feat-icon { background: var(--green-pale);  color: var(--green); }

.feat-icon svg {
  width: 26px;
  height: 26px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ─────────────────────────────────────────
   App Sections
───────────────────────────────────────── */
.section { padding: 80px 0; }

.section-alt { background: var(--bg-alt); }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 8px;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 44px;
  height: 4px;
  background: var(--orange);
  border-radius: 2px;
  margin: 10px auto 0;
}

.section-header p {
  font-size: 1rem;
  color: var(--muted);
}

/* ─────────────────────────────────────────
   App Grid & Cards
───────────────────────────────────────── */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 22px;
}

.app-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px 18px 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  border: 1px solid var(--border);
}

.app-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lift);
  border-color: var(--orange);
}

.app-icon {
  width: 82px;
  height: 82px;
  border-radius: 20px;
  object-fit: cover;
  background: var(--bg-alt);
  transition: transform 0.15s;
}

.app-card:hover .app-icon {
  animation: wiggle 0.5s ease;
}

.app-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.app-info h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}

.app-rating {
  font-size: 13px;
  color: #D97706;
  font-weight: 700;
}

.badge-paid {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  background: linear-gradient(135deg, #D97706, #DC2626);
  color: #fff;
  font-weight: 700;
}

/* ─────────────────────────────────────────
   عبقرينو Spotlight
───────────────────────────────────────── */
.spotlight-section {
  padding: 90px 0;
  background: linear-gradient(135deg, #111B2E 0%, #1D2A45 50%, #2A3D1E 100%);
  position: relative;
  overflow: hidden;
}

.spotlight-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.spotlight-bg span {
  position: absolute;
  border-radius: 50%;
  animation: floatBubble ease-in-out infinite;
}

.spotlight-bg span:nth-child(1) { width: 220px; height: 220px; top: -60px; left: -60px; background: rgba(74,103,65,0.18); animation-duration: 12s; }
.spotlight-bg span:nth-child(2) { width: 150px; height: 150px; bottom: -40px; right: 10%; background: rgba(212,103,42,0.14); animation-duration: 9s; animation-delay: 2s; }
.spotlight-bg span:nth-child(3) { width: 80px;  height: 80px;  top: 40%; left: 30%; background: rgba(255,255,255,0.04); animation-duration: 7s; animation-delay: 1s; }

.spotlight-header {
  text-align: center;
  margin-bottom: 48px;
}

.spotlight-label {
  display: inline-block;
  background: rgba(212, 103, 42, 0.22);
  color: #FFBB88;
  border: 1px solid rgba(212, 103, 42, 0.45);
  border-radius: 20px;
  padding: 7px 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.spotlight-app-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.spotlight-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  flex-shrink: 0;
}

.spotlight-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
}

.spotlight-sub {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
}

.spotlight-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: 24px;
}

.spotlight-features {
  list-style: none;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spotlight-features li {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  padding-right: 26px;
  position: relative;
}

.spotlight-features li::before {
  content: '✓';
  position: absolute;
  right: 0;
  color: var(--orange);
  font-weight: 900;
  font-size: 14px;
}

.video-thumb {
  display: block;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  text-decoration: none;
}

.video-thumb-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.video-thumb:hover .video-thumb-img {
  transform: scale(1.03);
  filter: brightness(0.75);
}

.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.video-play-btn svg {
  width: 72px;
  height: 72px;
  color: #fff;
  background: rgba(212, 103, 42, 0.88);
  border-radius: 50%;
  padding: 18px 14px 18px 22px;
  box-shadow: 0 6px 28px rgba(0,0,0,0.5);
  transition: transform 0.2s, background 0.2s;
}

.video-thumb:hover .video-play-btn svg {
  transform: scale(1.1);
  background: var(--orange);
}

.video-thumb-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: rgba(255,255,255,0.85);
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  direction: rtl;
}

/* ─────────────────────────────────────────
   Footer
───────────────────────────────────────── */
footer {
  background: var(--navy);
  padding: 60px 24px 40px;
  text-align: center;
}

footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-logo-img {
  height: 90px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.88;
}

.footer-tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

.play-badge img {
  opacity: 0.88;
  transition: opacity 0.2s, transform 0.2s;
}

.play-badge:hover img {
  opacity: 1;
  transform: scale(1.04);
}

.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 4px;
}

/* ─────────────────────────────────────────
   Animations
───────────────────────────────────────── */
@keyframes floatBubble {
  0%, 100% { transform: translateY(0px) scale(1); }
  50%       { transform: translateY(-18px) scale(1.04); }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes wiggle {
  0%,  100% { transform: rotate(0deg); }
  20%        { transform: rotate(-9deg); }
  40%        { transform: rotate(9deg); }
  60%        { transform: rotate(-5deg); }
  80%        { transform: rotate(5deg); }
}

@keyframes pulseCTA {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 103, 42, 0); }
  50%       { box-shadow: 0 0 0 10px rgba(212, 103, 42, 0); }
  25%       { box-shadow: 0 0 0 6px rgba(212, 103, 42, 0.3); }
}

/* ─────────────────────────────────────────
   Responsive
───────────────────────────────────────── */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid .feature-card:last-child {
    grid-column: 1 / -1;
    max-width: 380px;
    margin: 0 auto;
  }
}

@media (max-width: 900px) {
  .spotlight-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .spotlight-video { order: -1; }
}

@media (max-width: 768px) {
  .hero { padding: 70px 0 110px; }
  .section { padding: 56px 0; }
  .features-section { padding: 56px 0; }
  .spotlight-section { padding: 60px 0; }
  .apps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .header-link { display: none; }
  .stat-sep { display: none; }
  .stats-row { gap: 16px; }
  .stat-item { padding: 0 16px; }
}

@media (max-width: 540px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .features-grid .feature-card:last-child {
    grid-column: auto;
    max-width: none;
  }
}

@media (max-width: 420px) {
  .apps-grid { grid-template-columns: 1fr; }
}
