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

:root {
  --teal-950: #0c2b22;
  --teal-900: #123330;
  --teal-800: #1a4d3a;
  --teal-700: #206b4e;
  --teal-100: #e3f2ec;
  --gold-500: #c9a227;
  --gold-300: #e8c860;
  --paper: #f7f8f7;
  --ink: #17251f;
  --ink-soft: #6b7d74;
  --line: #e2e8e4;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Tajawal', sans-serif;
  background: var(--paper);
  color: var(--ink);
  direction: rtl;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ==================== شريط التنقل ==================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(12, 43, 34, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: all .3s ease;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; overflow: hidden;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-300));
  display: flex; align-items: center; justify-content: center;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-name { font-weight: 800; font-size: 16px; color: #fff; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a {
  font-size: 13.5px; font-weight: 500; color: rgba(255,255,255,0.75);
  transition: color .2s ease;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-cta {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-300));
  color: var(--teal-950) !important; font-weight: 800; padding: 10px 22px;
  border-radius: 30px; font-size: 13px;
}
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }

@media (max-width: 860px) {
  .nav-links { position: fixed; top: 72px; right: 0; left: 0; background: var(--teal-950);
    flex-direction: column; padding: 24px; gap: 20px; transform: translateY(-150%);
    transition: transform .3s ease; z-index: 99; }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }
}

/* ==================== بطل الصفحة (Hero) ==================== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background: radial-gradient(ellipse at 20% 0%, #163f30 0%, var(--teal-950) 55%, #081a14 100%);
  overflow: hidden; padding-top: 90px;
}
.hero::before {
  content: ''; position: absolute; inset: 0; opacity: 0.05;
  background-image: radial-gradient(circle, #fff 1.5px, transparent 1.5px);
  background-size: 34px 34px;
}
.hero-glow {
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,39,0.18), transparent 70%);
  top: -200px; left: -150px; animation: float 12s ease-in-out infinite;
  pointer-events: none;
}
.hero-glow.two {
  background: radial-gradient(circle, rgba(32,107,78,0.35), transparent 70%);
  bottom: -250px; right: -150px; width: 700px; height: 700px; animation-delay: -6s;
}
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(30px) scale(1.05); }
}

.hero-content { position: relative; z-index: 2; text-align: center; max-width: 780px; margin: 0 auto; padding: 60px 0 90px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15);
  padding: 8px 18px; border-radius: 30px; font-size: 12.5px; color: var(--gold-300);
  margin-bottom: 26px; opacity: 0; animation: fadeUp .8s ease forwards;
}
.hero-title {
  font-size: 46px; font-weight: 900; color: #fff; line-height: 1.35; margin-bottom: 20px;
  opacity: 0; animation: fadeUp .8s ease .1s forwards;
}
.hero-title span { color: var(--gold-300); }
.hero-subtitle {
  font-size: 16px; color: rgba(255,255,255,0.65); line-height: 1.9; margin-bottom: 38px;
  opacity: 0; animation: fadeUp .8s ease .2s forwards;
}
.hero-actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  opacity: 0; animation: fadeUp .8s ease .3s forwards;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 15px 30px;
  border-radius: 16px; font-size: 14px; font-weight: 800; cursor: pointer; border: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-300)); color: var(--teal-950);
  box-shadow: 0 10px 30px rgba(201,162,39,0.3);
}
.btn-ghost {
  background: rgba(255,255,255,0.06); color: #fff; border: 1px solid rgba(255,255,255,0.2);
}

.hero-mockups { position: relative; z-index: 2; display: flex; justify-content: center; gap: 24px; padding-bottom: 40px; }
.phone-frame {
  width: 220px; border-radius: 34px; background: #0a0a0a; padding: 10px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.08);
  opacity: 0; animation: fadeUp 1s ease .4s forwards;
}
.phone-frame img { border-radius: 24px; width: 100%; }
.phone-frame.mid { width: 250px; margin-top: -30px; animation-delay: .5s; z-index: 2; }
.phone-frame.small { animation-delay: .6s; }
@media (max-width: 760px) { .hero-mockups { display: none; } .hero-title { font-size: 32px; } }

/* ==================== أقسام عامة ==================== */
section { padding: 100px 0; position: relative; }
.section-label {
  display: inline-block; font-size: 12px; font-weight: 800; color: var(--teal-700);
  background: var(--teal-100); padding: 6px 16px; border-radius: 20px; margin-bottom: 18px;
}
.section-title { font-size: 32px; font-weight: 900; color: var(--teal-900); margin-bottom: 16px; }
.section-subtitle { font-size: 14.5px; color: var(--ink-soft); line-height: 1.9; max-width: 560px; }
.section-head { text-align: center; margin-bottom: 60px; }
.section-head .section-subtitle { margin: 0 auto; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ==================== شبكة المزايا ==================== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: #fff; border-radius: 24px; padding: 30px 26px; border: 1px solid var(--line);
  transition: transform .3s ease, box-shadow .3s ease;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: 0 24px 50px rgba(18,51,48,0.1); }
.feature-icon {
  width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--teal-700), var(--teal-800)); margin-bottom: 18px; font-size: 24px;
}
.feature-title { font-size: 16px; font-weight: 800; color: var(--teal-900); margin-bottom: 10px; }
.feature-text { font-size: 13px; color: var(--ink-soft); line-height: 1.85; }

/* ==================== قسم داكن ==================== */
.dark-section { background: var(--teal-950); color: #fff; }
.dark-section .section-title { color: #fff; }
.dark-section .section-subtitle { color: rgba(255,255,255,0.6); }
.dark-section .section-label { background: rgba(255,255,255,0.08); color: var(--gold-300); }

/* ==================== شريط التحميل ==================== */
.download-cta {
  background: linear-gradient(135deg, var(--teal-800), var(--teal-950));
  border-radius: 30px; padding: 60px 40px; text-align: center; position: relative; overflow: hidden;
}
.download-cta h2 { color: #fff; font-size: 28px; font-weight: 900; margin-bottom: 14px; }
.download-cta p { color: rgba(255,255,255,0.65); margin-bottom: 30px; }
.store-badges { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.store-badge {
  display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15); padding: 12px 22px; border-radius: 14px; color: #fff;
}
.store-badge .small { font-size: 10px; opacity: .7; display: block; }
.store-badge .big { font-size: 14px; font-weight: 800; }

/* ==================== الفوتر ==================== */
.site-footer { background: #081a14; color: rgba(255,255,255,0.6); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-desc { font-size: 13px; line-height: 1.9; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 13px; margin-bottom: 12px; color: rgba(255,255,255,0.55); }
.footer-col a:hover { color: var(--gold-300); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; text-align: center; font-size: 12px;
}

/* ==================== صفحات محتوى داخلية (خصوصية/شروط/إلخ) ==================== */
.page-hero {
  background: linear-gradient(135deg, var(--teal-950), var(--teal-800));
  padding: 160px 0 70px; text-align: center;
}
.page-hero h1 { color: #fff; font-size: 34px; font-weight: 900; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.6); font-size: 13.5px; }
.content-card {
  background: #fff; border-radius: 24px; padding: 50px; margin: -40px auto 80px; max-width: 820px;
  box-shadow: 0 20px 60px rgba(18,51,48,0.08); position: relative; z-index: 3;
}
.content-card h2 { color: var(--teal-900); font-size: 19px; margin: 30px 0 14px; }
.content-card h2:first-child { margin-top: 0; }
.content-card p, .content-card li { color: var(--ink-soft); font-size: 14px; line-height: 2; margin-bottom: 10px; }
.content-card ul { padding-right: 22px; }
@media (max-width: 700px) { .content-card { padding: 30px 22px; margin-top: -25px; } }

/* ==================== أيقونات SVG (بديل الإيموجي) ==================== */
.feature-icon svg { width: 26px; height: 26px; stroke: #fff; }
.store-badges { display: flex; flex-direction: row; gap: 16px; justify-content: center; flex-wrap: wrap; }
.store-badge { padding: 0; background: transparent; border: none; }
.store-badge img { height: 54px; width: auto; display: block; }
@media (max-width: 500px) { .store-badge img { height: 46px; } }
