:root {
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-muted: #f1f5f9;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: rgba(15, 23, 42, 0.08);
  --accent: #2563eb;
  --accent-soft: #eff6ff;
  --accent-2: #0ea5e9;
  --whatsapp: #25d366;
  --whatsapp-hover: #20bd5a;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 20px 50px rgba(37, 99, 235, 0.12);
  font-family: "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-weight: 500;
  overflow-x: hidden;
}

/* خلفية خفيفة جداً — بدون صور أو شبكة ثقيلة */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 100% 60% at 50% -10%, rgba(37, 99, 235, 0.06), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(14, 165, 233, 0.05), transparent 45%),
    linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%);
}

.bg-grid {
  display: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(1080px, 100% - 32px);
  margin-inline: auto;
}

/* شريط علوي */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
}

.brand-mini {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mini img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 0.92rem;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 600;
  transition: color 0.2s;
}

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

/* أزرار */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: var(--shadow-sm), 0 8px 24px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  background: #fff;
  color: var(--accent);
  border: 2px solid rgba(37, 99, 235, 0.35);
  font-weight: 700;
}

.btn-outline:hover {
  background: var(--accent-soft);
}

.btn-wa {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.28);
}

.btn-wa:hover {
  background: var(--whatsapp-hover);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.35);
}

/* بطل */
.hero {
  padding: 40px 0 56px;
  text-align: center;
}

.hero-logo {
  display: block;
  margin: 0 auto 24px;
  max-width: min(280px, 85vw);
  height: auto;
  animation: fadeUp 0.7s ease-out both;
}

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

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
  animation: fadeUp 0.7s 0.06s ease-out both;
}

.hero .tagline {
  margin: 0 auto 16px;
  max-width: 480px;
  font-size: 1.15rem;
  color: var(--accent);
  font-weight: 800;
  animation: fadeUp 0.7s 0.1s ease-out both;
}

.hero .lead {
  margin: 0 auto 28px;
  max-width: 620px;
  font-size: 1.02rem;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.85;
  animation: fadeUp 0.7s 0.14s ease-out both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  animation: fadeUp 0.7s 0.18s ease-out both;
}

/* أقسام */
section {
  padding: 48px 0;
}

.section-title {
  text-align: center;
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.02em;
}

.section-sub {
  text-align: center;
  margin: 0 auto 36px;
  max-width: 540px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 1rem;
}

#about .section-sub {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  color: var(--text-muted);
  line-height: 1.85;
}

#about .section-sub strong {
  color: var(--accent);
  font-weight: 800;
}

/* صفحة التحميل — بطاقة بارزة */
.download-section {
  padding: 40px 0 56px;
}

.download-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #ffffff 0%, var(--accent-soft) 100%);
  border: 1px solid rgba(37, 99, 235, 0.15);
  box-shadow: var(--shadow);
  text-align: center;
}

.download-card h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text);
}

.download-card .download-desc {
  margin: 0 0 22px;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.75;
  font-size: 0.98rem;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.download-actions .btn-primary {
  padding-inline: 28px;
}

/* بطاقات المميزات */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.feature-card {
  padding: 22px 20px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 14px;
  background: var(--accent-soft);
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
}

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

/* قريباً أندرويد */
.roadmap-card {
  max-width: 680px;
  margin: 0 auto;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  text-align: center;
}

.badge-soon {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid rgba(234, 88, 12, 0.25);
  margin-bottom: 12px;
}

.roadmap-card h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text);
}

.roadmap-card p {
  margin: 0;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.8;
  font-size: 0.95rem;
}

/* تواصل */
.contact-panel {
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.contact-panel h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text);
}

.contact-panel > p {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.98rem;
}

.wa-note {
  margin-top: 14px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.wa-note strong {
  color: var(--text);
  font-weight: 800;
}

/* تذييل */
footer {
  padding: 28px 0 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

footer strong {
  color: var(--accent);
  font-weight: 800;
}

/* زر واتساب عائم */
.wa-float {
  position: fixed;
  inset-inline-end: 18px;
  bottom: 20px;
  z-index: 100;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.wa-float:hover {
  transform: scale(1.05);
  box-shadow: 0 14px 40px rgba(37, 211, 102, 0.42);
}

.wa-float svg {
  width: 28px;
  height: 28px;
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 28px;
  }

  .topbar .btn-primary {
    padding: 10px 16px;
    font-size: 0.88rem;
  }
}
