/* ==========================================================================
   مداد — Landing Page Styles v3
   الهوية: Minimalism & Swiss + Glassmorphism خفيف
   الألوان: أزرق النظام #2563eb + خلفية فاتحة + CTA برتقالي دافئ
   الخط: IBM Plex Sans Arabic
   ========================================================================== */

:root {
  --primary: #2563EB;
  --primary-deep: #1E40AF;
  --primary-50: #EFF6FF;
  --primary-100: #DBEAFE;
  --accent: #EA580C;
  --accent-deep: #C2410C;
  --bg: #F8FAFC;
  --bg-alt: #F1F5F9;
  --fg: #1E293B;
  --fg-soft: #475569;
  --fg-faint: #64748B;
  --card: #FFFFFF;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --success: #16A34A;

  --shadow-sm: 0 1px 3px rgba(30, 41, 59, 0.08);
  --shadow-md: 0 4px 10px rgba(30, 41, 59, 0.08);
  --shadow-lg: 0 12px 28px rgba(30, 41, 59, 0.12);
  --shadow-xl: 0 24px 50px rgba(30, 41, 59, 0.16);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --transition: all 0.22s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container {
  width: min(1160px, 92%);
  margin-inline: auto;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--primary-100); }

/* ===== الأزرار ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}
.btn-primary:hover {
  background: var(--primary-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.4);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--border-strong);
}
.btn-outline:hover {
  background: var(--primary-50);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-light {
  background: #fff;
  color: var(--primary-deep);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}
.btn-light:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3); }

.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-lg { padding: 14px 32px; font-size: 17px; }
.btn-xl { padding: 18px 42px; font-size: 19px; }

/* ===== شريط التنقل ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}
.nav.scrolled { box-shadow: var(--shadow-sm); }

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

.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 600; }
.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.brand-logo svg { width: 100%; height: 100%; border-radius: 12px; }
.brand-text strong { color: var(--primary); font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn) { font-weight: 500; color: var(--fg-soft); transition: color 0.2s; }
.nav-links a:not(.btn):hover { color: var(--primary); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2.5px;
  background: var(--fg);
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 150px 0 90px;
  background:
    radial-gradient(900px 400px at 90% -5%, rgba(37, 99, 235, 0.08), transparent 60%),
    radial-gradient(700px 380px at 0% 110%, rgba(234, 88, 12, 0.06), transparent 60%),
    var(--bg);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 15%, rgba(37, 99, 235, 0.05) 0, transparent 130px),
    radial-gradient(circle at 85% 80%, rgba(234, 88, 12, 0.05) 0, transparent 150px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  color: var(--primary-deep);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 24px;
}
.hero-badge svg { width: 15px; height: 15px; }

.hero-title {
  font-size: clamp(38px, 5.5vw, 60px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--fg);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero-title span { color: var(--primary); }

.hero-subtitle {
  font-size: clamp(16px, 2vw, 18.5px);
  color: var(--fg-soft);
  max-width: 540px;
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }

.hero-trust { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.hero-trust li {
  color: var(--fg-soft);
  font-weight: 500;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-trust svg { width: 18px; height: 18px; color: var(--success); flex-shrink: 0; }

.hero-visual { position: relative; }

.hero-shot-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  background: var(--card);
  transform: perspective(1100px) rotateY(-2.5deg);
  transition: transform 0.4s ease;
}
.hero-shot-wrap:hover { transform: perspective(1100px) rotateY(0); }
.hero-shot { width: 100%; }

.hero-video-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fg);
}
.hero-video-badge svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; }

.hero-float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  animation: float 4.5s ease-in-out infinite;
}
.hero-float-card b { display: block; font-size: 14px; color: var(--fg); font-weight: 600; }
.hero-float-card small { color: var(--fg-faint); font-size: 12.5px; }
.fc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--primary-50);
  color: var(--primary);
}
.fc-icon svg { width: 22px; height: 22px; }
.hero-float-card-1 { top: -20px; right: -16px; }
.hero-float-card-2 { bottom: -16px; left: -16px; animation-delay: 2.2s; }

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

/* ===== شريط الأرقام ===== */
.stats {
  padding: 40px 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  padding: 8px 0;
}
.stat svg { width: 34px; height: 34px; color: var(--primary); flex-shrink: 0; }
.stat b { display: block; font-size: 19px; font-weight: 700; color: var(--fg); }
.stat span { font-size: 13px; color: var(--fg-faint); }

/* ===== أقسام عامة ===== */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--primary-50);
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.3px;
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  line-height: 1.3;
}
.section-head p { color: var(--fg-soft); font-size: 16.5px; }

/* ===== بطاقات المميزات ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-100);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 13px;
  background: var(--primary-50);
  color: var(--primary);
  margin-bottom: 18px;
  transition: var(--transition);
}
.feature-card:hover .feature-icon {
  background: var(--primary);
  color: #fff;
}
.feature-icon svg { width: 26px; height: 26px; }

.feature-card h3 { font-size: 17.5px; font-weight: 700; color: var(--fg); margin-bottom: 10px; }
.feature-card p { font-size: 14.5px; color: var(--fg-soft); }

.features-footnote {
  text-align: center;
  margin-top: 36px;
  padding: 16px 24px;
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  border-radius: var(--radius-md);
  color: var(--primary-deep);
  font-weight: 600;
  font-size: 15px;
}

.ai-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  padding: 26px 28px;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  border-radius: var(--radius-lg);
  color: #fff;
}
.ai-banner-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px; height: 60px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}
.ai-banner-icon svg { width: 32px; height: 32px; }
.ai-banner-body h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.ai-banner-body p { font-size: 14.5px; opacity: 0.92; margin: 0; }

@media (max-width: 560px) {
  .ai-banner { flex-direction: column; text-align: center; align-items: center; }
}

/* ===== العرض ===== */
.showcase-list { display: flex; flex-direction: column; gap: 40px; }

.showcase-item {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;
  background: var(--card);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.showcase-item:nth-child(even) .showcase-media { order: 2; }

.showcase-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.showcase-media img { width: 100%; transition: transform 0.5s ease; }
.showcase-media:hover img { transform: scale(1.015); }

.showcase-num {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-50);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 14px;
}
.showcase-body h3 { font-size: 24px; font-weight: 700; color: var(--fg); margin-bottom: 12px; }
.showcase-body p { font-size: 16px; color: var(--fg-soft); }

/* ===== التسعير ===== */
.pricing-wrap { display: flex; justify-content: center; }

.pricing-card {
  position: relative;
  width: min(560px, 100%);
  background: var(--card);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.pricing-card h3 { font-size: 25px; font-weight: 700; color: var(--fg); margin-bottom: 10px; }
.pricing-desc { color: var(--fg-soft); font-size: 15.5px; margin-bottom: 24px; }

.pricing-price { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin-bottom: 6px; }
.price-was {
  font-size: 28px;
  font-weight: 600;
  color: var(--fg-faint);
  text-decoration: line-through;
  text-decoration-color: #DC2626;
  text-decoration-thickness: 2px;
}
.price-num {
  font-size: 58px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.03em;
  line-height: 1;
}
.price-cur { font-size: 22px; font-weight: 600; color: var(--primary); }
.pricing-save {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #B91C1C;
  font-size: 14px;
  font-weight: 600;
}
.pricing-period { color: var(--fg-faint); font-size: 14px; margin-top: 14px; margin-bottom: 28px; }

.pricing-includes {
  list-style: none;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}
.pricing-includes li {
  font-size: 15px;
  color: var(--fg-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pricing-includes svg { width: 20px; height: 20px; color: var(--success); flex-shrink: 0; }
.pricing-includes li strong { color: var(--fg); }
.pricing-highlight {
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  border-radius: 10px;
  padding: 10px 14px;
}
.pricing-highlight strong { color: var(--primary-deep); }

.paypal-box {
  min-height: 60px;
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}
.paypal-fallback { color: var(--primary); font-weight: 600; }

.pricing-note { font-size: 13px; color: var(--fg-faint); }

/* ===== الأسئلة الشائعة ===== */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-item[open] { border-color: var(--primary-100); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 16px;
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 24px;
  font-weight: 400;
  color: var(--primary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p { padding: 0 24px 22px; color: var(--fg-soft); font-size: 15px; }

/* ===== الدعوة النهائية ===== */
.cta {
  position: relative;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary) 60%, var(--primary));
  padding: 96px 0;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.12), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(255, 255, 255, 0.08), transparent 40%);
  pointer-events: none;
}

.cta-inner { position: relative; text-align: center; color: #fff; }
.cta h2 { font-size: clamp(30px, 4.5vw, 46px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 14px; }
.cta p { font-size: 18px; margin-bottom: 34px; opacity: 0.92; }
.cta small { display: block; margin-top: 18px; font-size: 13.5px; opacity: 0.85; }

/* ===== التذييل ===== */
.footer { background: #0F172A; color: #CBD5E1; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 48px 0 36px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-logo svg { border-radius: 10px; }
.footer-brand p { font-size: 13.5px; color: #94A3B8; max-width: 320px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 14.5px; color: #94A3B8; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(148, 163, 184, 0.15); padding: 18px 0; text-align: center; }
.footer-bottom p { font-size: 13px; color: #64748B; }

/* ===== زر الشراء وأزرار الباقة ===== */
.btn-buy {
  width: 100%;
  margin-bottom: 14px;
  font-size: 18px;
  padding: 16px 24px;
}

.pricing-actions { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
  width: 100%;
}
.btn-whatsapp:hover {
  background: #1EBE5D;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.4);
}
.btn-whatsapp svg { width: 20px; height: 20px; }

/* ===== نافذة الدفع المنبثقة ===== */
.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.checkout-modal[hidden] { display: none; }

.checkout-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.checkout-card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius-xl);
  width: min(440px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  padding: 32px 30px;
  box-shadow: var(--shadow-xl);
  animation: pop 0.3s ease;
}

.checkout-close {
  position: absolute;
  top: 16px; left: 16px;
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg-soft);
  cursor: pointer;
  transition: var(--transition);
}
.checkout-close:hover { background: #FEE2E2; color: #DC2626; border-color: #FECACA; }
.checkout-close svg { width: 18px; height: 18px; }

.checkout-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.checkout-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  flex-shrink: 0;
}
.checkout-head h3 { font-size: 18px; font-weight: 700; color: var(--fg); margin-bottom: 2px; }
.checkout-sub { font-size: 13px; color: var(--fg-faint); }

.checkout-summary {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 18px;
}
.checkout-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--fg-soft);
  padding: 4px 0;
}
.co-was { text-decoration: line-through; text-decoration-color: #DC2626; text-decoration-thickness: 1.5px; color: var(--fg-faint); }
.co-save { color: #16A34A; font-weight: 600; }
.checkout-total {
  border-top: 1px dashed var(--border-strong);
  margin-top: 8px;
  padding-top: 12px;
  font-weight: 700;
  color: var(--fg);
  font-size: 15px;
}
.co-total { font-size: 22px; font-weight: 700; color: var(--primary); }

.checkout-hint { font-size: 13.5px; color: var(--fg-soft); text-align: center; margin-bottom: 16px; }

.checkout-paypal { min-height: 48px; }

.checkout-secure {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
  padding: 10px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--fg-faint);
}
.checkout-secure svg { width: 16px; height: 16px; color: #16A34A; flex-shrink: 0; }

.checkout-help {
  text-align: center;
  font-size: 13px;
  color: var(--fg-faint);
  margin-top: 14px;
}
.checkout-help a { color: var(--primary); font-weight: 600; }
.checkout-help a:hover { text-decoration: underline; }

/* ===== نافذة تأكيد الدفع ===== */
.pay-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}
.pay-modal-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-xl);
  animation: pop 0.3s ease;
}
.pay-modal-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 20px;
}
.pay-modal-error { background: #DC2626; }
.pay-modal-card h3 { font-size: 22px; font-weight: 700; color: var(--fg); margin-bottom: 12px; }
.pay-modal-card p { font-size: 15px; color: var(--fg-soft); margin-bottom: 24px; }

@keyframes pop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ===== تحسينات الوصولية: تقليل الحركة ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-float-card { animation: none; }
}

/* ===== التجاوب ===== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 640px; margin-inline: auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 820px) {
  .nav-links {
    position: fixed;
    top: 72px;
    right: 0;
    width: min(300px, 80vw);
    height: calc(100vh - 72px);
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 28px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -20px 0 60px rgba(15, 23, 42, 0.18);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { padding: 12px 0; font-size: 17px; width: 100%; }
  .nav-toggle { display: flex; }

  .showcase-item { grid-template-columns: 1fr; padding: 20px; }
  .showcase-item:nth-child(even) .showcase-media { order: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .hero { padding: 130px 0 60px; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .hero-float-card-1 { right: 0; }
  .hero-float-card-2 { left: 0; }
  .pricing-card { padding: 36px 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .stats-grid { grid-template-columns: 1fr; }
}
