/* ============================================
   صفحة هبوط واتساب — تصميم الدائرة الكبيرة
   ============================================ */

:root {
  --bg-dark: #0e1526;
  --bg-dark-2: #131c33;
  --wa-green: #25d366;
  --wa-green-dark: #128c7e;
  --wa-green-deep: #075e54;
  --text-light: #f1f5f9;
  --text-muted: #94a3b8;
  --circle-size: clamp(210px, 58vw, 300px);
}

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

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

body {
  font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  background: radial-gradient(ellipse at 50% 0%, var(--bg-dark-2) 0%, var(--bg-dark) 60%);
  color: var(--text-light);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* ---------- الهيكل العام ---------- */

.landing {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: env(safe-area-inset-top) 20px env(safe-area-inset-bottom);
}

/* توهجات خلفية */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.bg-glow--top {
  width: 420px;
  height: 420px;
  top: -140px;
  right: -100px;
  background: rgba(37, 211, 102, 0.16);
}

.bg-glow--bottom {
  width: 380px;
  height: 380px;
  bottom: -120px;
  left: -100px;
  background: rgba(18, 140, 126, 0.18);
}

/* ---------- الهيدر ---------- */

.site-header {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 20px 0 8px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: var(--wa-green);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.brand-badge__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--wa-green);
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  animation: dotPulse 1.6s ease-out infinite;
}

@keyframes dotPulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------- قسم البطل ---------- */

.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 560px;
  padding: 12px 0 24px;
  gap: 18px;
}

/* الجملة الرئيسية فوق الدائرة */
.hero-title {
  font-size: clamp(1.7rem, 6.5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.5;
  color: var(--text-light);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  animation: fadeSlideDown 0.7s ease-out both;
}

.hero-title__accent {
  display: block;
  color: var(--wa-green);
  font-size: 1.12em;
  letter-spacing: 0.5px;
  text-shadow: 0 0 26px rgba(37, 211, 102, 0.45);
}

/* السهم */
.hero-arrow {
  color: var(--wa-green);
  width: 30px;
  height: 30px;
  margin-top: -6px;
  margin-bottom: -6px;
  animation: arrowBounce 1.4s ease-in-out infinite;
}

.hero-arrow svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 8px rgba(37, 211, 102, 0.5));
}

@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(8px); opacity: 0.65; }
}

/* ---------- الدائرة الكبيرة للواتساب ---------- */

.whatsapp-circle {
  position: relative;
  display: block;
  width: var(--circle-size);
  height: var(--circle-size);
  border-radius: 50%;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  animation: fadeZoomIn 0.8s 0.15s ease-out both;
  transition: transform 0.18s ease;
}

.whatsapp-circle:active {
  transform: scale(0.94);
}

.whatsapp-circle__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--wa-green) 0%, var(--wa-green-dark) 65%, var(--wa-green-deep) 100%);
  box-shadow:
    0 20px 55px rgba(37, 211, 102, 0.38),
    0 6px 18px rgba(0, 0, 0, 0.4),
    inset 0 -8px 20px rgba(0, 0, 0, 0.22),
    inset 0 6px 14px rgba(255, 255, 255, 0.28);
  animation: circleFloat 3.2s ease-in-out infinite;
}

.whatsapp-circle__logo {
  width: 52%;
  height: 52%;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

/* حلقات النبض حول الدائرة */
.whatsapp-circle__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(37, 211, 102, 0.55);
  animation: ringPulse 2.2s ease-out infinite;
  z-index: 1;
}

.whatsapp-circle__pulse--delay {
  animation-delay: 1.1s;
}

@keyframes ringPulse {
  0%   { transform: scale(1);    opacity: 0.8; }
  100% { transform: scale(1.55); opacity: 0; }
}

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

/* النص التوضيحي */
.hero-subtitle {
  font-size: clamp(0.95rem, 3.6vw, 1.1rem);
  font-weight: 600;
  color: var(--text-muted);
  max-width: 420px;
  line-height: 1.8;
  animation: fadeSlideUp 0.7s 0.3s ease-out both;
}

/* ---------- المزايا ---------- */

.features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  animation: fadeSlideUp 0.7s 0.45s ease-out both;
}

.feature {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  backdrop-filter: blur(6px);
}

.feature__icon {
  font-size: 1rem;
}

/* ---------- الفوتر ---------- */

.site-footer {
  position: relative;
  z-index: 1;
  padding: 14px 0 calc(18px + env(safe-area-inset-bottom));
  text-align: center;
}

.site-footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- حركات الظهور ---------- */

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeZoomIn {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}

/* ---------- التجاوب ---------- */

/* الشاشات الصغيرة جدًا */
@media (max-width: 360px) {
  :root {
    --circle-size: clamp(180px, 60vw, 220px);
  }
  .features {
    gap: 8px;
  }
  .feature {
    font-size: 0.78rem;
    padding: 7px 12px;
  }
}

/* الشاشات القصيرة (أفقي على الجوال) — منع التمرير الزائد */
@media (max-height: 620px) {
  :root {
    --circle-size: clamp(160px, 38vh, 220px);
  }
  .hero {
    gap: 12px;
  }
  .hero-title {
    font-size: clamp(1.4rem, 5.5vw, 2rem);
  }
  .hero-subtitle {
    font-size: 0.88rem;
  }
  .site-footer {
    padding-top: 6px;
  }
}

/* الأجهزة اللوحية والشاشات الكبيرة */
@media (min-width: 768px) {
  :root {
    --circle-size: 320px;
  }
  .hero {
    gap: 24px;
  }
  .feature {
    font-size: 0.92rem;
    padding: 10px 20px;
  }
}

@media (min-width: 1200px) {
  :root {
    --circle-size: 340px;
  }
}

/* تقليل الحركة لمن يفضّل ذلك */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
