/* ============================================================
   صفحة هبوط — تواصل واتساب
   تصميم متجاوب بالكامل (Mobile First)
   ============================================================ */

:root {
  --wa-green: #25d366;
  --wa-green-dark: #1ebe5b;
  --wa-green-deep: #128c4b;
  --bg-dark: #0e1526;
  --bg-dark-2: #141c33;
  --text-main: #f4f7fb;
  --text-muted: #9aa7bd;
  --radius-lg: 26px;
  --shadow-banner: 0 20px 60px rgba(37, 211, 102, 0.35),
                   0 4px 16px rgba(0, 0, 0, 0.35);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
  background: linear-gradient(160deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
  color: var(--text-main);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* ---------- الهيكل العام ---------- */
.landing {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px;
  isolation: isolate;
}

/* توهجات خلفية زخرفية */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  z-index: -1;
  pointer-events: none;
}
.bg-glow--top {
  width: 420px;
  height: 420px;
  top: -140px;
  inset-inline-start: -120px;
  background: rgba(37, 211, 102, 0.22);
}
.bg-glow--bottom {
  width: 480px;
  height: 480px;
  bottom: -180px;
  inset-inline-end: -140px;
  background: rgba(18, 140, 75, 0.18);
}

/* ---------- الهيدر ---------- */
.site-header {
  width: 100%;
  max-width: 720px;
  display: flex;
  justify-content: center;
  padding: 8px 0 4px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: var(--wa-green);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
}

.brand-badge__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--wa-green);
  animation: pulse-dot 1.6s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.5); opacity: 0.55; }
}

/* ---------- قسم البطل ---------- */
.hero {
  flex: 1;
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  text-align: center;
  padding: 24px 0;
}

/* ============================================================
   🟢 البانر الرئيسي — مطابق لأسلوب التصميم المرفق
   شعار واتساب داخل فقاعة بيضاء + نص أبيض على خلفية خضراء
   ============================================================ */
.whatsapp-banner {
  display: flex;
  flex-direction: row-reverse; /* الشعار يسار والنص يمين (RTL) */
  align-items: center;
  gap: clamp(14px, 4vw, 30px);
  width: 100%;
  max-width: 640px;
  padding: clamp(18px, 4.5vw, 34px) clamp(18px, 5vw, 40px);
  background: linear-gradient(135deg, #2ee06f 0%, var(--wa-green) 45%, var(--wa-green-dark) 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-banner);
  text-decoration: none;
  position: relative;
  overflow: visible;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: banner-float 3.2s ease-in-out infinite;
}

.whatsapp-banner:hover,
.whatsapp-banner:focus-visible {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 28px 70px rgba(37, 211, 102, 0.45),
              0 6px 20px rgba(0, 0, 0, 0.4);
  outline: none;
}

.whatsapp-banner:active {
  transform: translateY(0) scale(0.99);
}

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

/* فقاعة الشعار — دائرة بيضاء مع ذيل الفقاعة */
.whatsapp-banner__logo {
  flex-shrink: 0;
  width: clamp(88px, 22vw, 150px);
  height: clamp(88px, 22vw, 150px);
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

/* ذيل فقاعة الدردشة */
.whatsapp-banner__logo::after {
  content: "";
  position: absolute;
  bottom: 4%;
  inset-inline-start: 6%;
  width: 26%;
  height: 26%;
  background: #ffffff;
  clip-path: polygon(0 0, 100% 30%, 15% 100%);
  transform: rotate(-12deg);
}

.whatsapp-banner__logo svg {
  width: 62%;
  height: 62%;
  position: relative;
  z-index: 1;
}

.whatsapp-banner__logo svg path {
  fill: var(--wa-green);
}

/* نص البانر */
.whatsapp-banner__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.whatsapp-banner__line1,
.whatsapp-banner__line2 {
  color: #ffffff;
  font-weight: 900;
  line-height: 1.35;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  white-space: nowrap;
}

.whatsapp-banner__line1 {
  font-size: clamp(1.35rem, 5.4vw, 2.5rem);
}

.whatsapp-banner__line2 {
  font-size: clamp(1.5rem, 6.2vw, 2.9rem);
}

/* ---------- النص التوضيحي ---------- */
.hero-subtitle {
  color: var(--text-muted);
  font-size: clamp(0.95rem, 2.8vw, 1.15rem);
  font-weight: 600;
  max-width: 480px;
  line-height: 1.9;
}

/* ---------- المزايا ---------- */
.features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.feature {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
}

.feature__icon {
  font-size: 1.05rem;
}

/* ---------- الزر الثانوي ---------- */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--wa-green) 0%, var(--wa-green-deep) 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: clamp(1rem, 3.4vw, 1.2rem);
  font-weight: 800;
  text-decoration: none;
  padding: 16px 44px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover,
.cta-button:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 14px 38px rgba(37, 211, 102, 0.5);
  outline: none;
}

.cta-button:active {
  transform: translateY(0);
}

.cta-button__icon {
  width: 24px;
  height: 24px;
}

/* ---------- الفوتر ---------- */
.site-footer {
  width: 100%;
  text-align: center;
  padding: 14px 0 6px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ============================================================
   الاستجابة — شاشات صغيرة جدًا
   ============================================================ */
@media (max-width: 400px) {
  .whatsapp-banner {
    gap: 12px;
  }
  .whatsapp-banner__line1,
  .whatsapp-banner__line2 {
    font-size: clamp(1.1rem, 6vw, 1.35rem);
  }
  .feature {
    font-size: 0.82rem;
    padding: 8px 14px;
  }
}

/* شاشات كبيرة */
@media (min-width: 1024px) {
  .landing {
    padding: 32px;
  }
}

/* تقليل الحركة لمن يفضّل ذلك */
@media (prefers-reduced-motion: reduce) {
  .whatsapp-banner,
  .brand-badge__dot {
    animation: none;
  }
  .whatsapp-banner,
  .cta-button {
    transition: none;
  }
}
