/* ===================== إعادة ضبط ===================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background-color: #0f172a;
  color: #f8fafc;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ===================== شريط التنقل ===================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #1e293b;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: #38bdf8;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}

.nav-links a {
  color: #cbd5e1;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #38bdf8;
}

.btn-nav {
  background: #38bdf8;
  color: #0f172a !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
}

/* ===================== Hero ===================== */
.hero {
  padding: 80px 0 100px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.15), transparent 60%);
}

.badge {
  display: inline-block;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.15;
  margin-bottom: 20px;
  font-weight: 800;
}

.highlight {
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: #94a3b8;
  max-width: 620px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

/* ===================== الأزرار ===================== */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(249, 115, 22, 0.5);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -6px rgba(249, 115, 22, 0.6);
}

.btn-secondary {
  background: transparent;
  border: 1px solid #334155;
  color: #f8fafc;
}

.btn-secondary:hover {
  border-color: #38bdf8;
  color: #38bdf8;
}

.btn-large {
  font-size: 17px;
  padding: 16px 36px;
}

/* ===================== صندوق العدّاد ===================== */
.counter-box {
  background: #1e293b;
  border-radius: 14px;
  padding: 24px;
  max-width: 320px;
  margin: 0 auto 16px;
  border: 1px solid #334155;
}

.counter-label {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 8px;
}

#counter-value {
  display: inline-block;
  font-size: 42px;
  font-weight: 800;
  color: #38bdf8;
  transition: transform 0.15s ease-out;
}

#counter-value.pop {
  transform: scale(1.25);
}

#action-btn {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #0f172a;
  border: none;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.1s, opacity 0.2s;
}

#action-btn:active {
  transform: scale(0.96);
  opacity: 0.9;
}

/* ===================== قسم المميزات ===================== */
.features {
  padding: 100px 0;
  background: #0b1220;
}

.section-title {
  font-size: clamp(26px, 4vw, 38px);
  text-align: center;
  margin-bottom: 12px;
  font-weight: 800;
}

.section-sub {
  text-align: center;
  color: #94a3b8;
  margin-bottom: 60px;
  font-size: 15px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 14px;
  padding: 28px;
  transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: #38bdf8;
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #f8fafc;
}

.feature-card p {
  color: #94a3b8;
  font-size: 14px;
}

/* ===================== قسم كيف يعمل ===================== */
.how {
  padding: 100px 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.step {
  text-align: center;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  color: #0f172a;
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.step p {
  color: #94a3b8;
  font-size: 14px;
}

/* ===================== قسم CTA ===================== */
.cta {
  padding: 100px 0;
  text-align: center;
  background:
    radial-gradient(circle at 50% 100%, rgba(249, 115, 22, 0.15), transparent 60%);
}

.cta h2 {
  font-size: clamp(26px, 4vw, 40px);
  margin-bottom: 16px;
  font-weight: 800;
}

.cta p {
  color: #94a3b8;
  margin-bottom: 32px;
  font-size: 16px;
}

/* ===================== التذييل ===================== */
.footer {
  background: #0b1220;
  border-top: 1px solid #1e293b;
  padding: 32px 0;
  font-size: 13px;
  color: #94a3b8;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a:hover {
  color: #38bdf8;
}

/* ===================== إتاحة (Accessibility) ===================== */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ===================== استجابة الشاشات الصغيرة ===================== */
@media (max-width: 640px) {
  .nav-links {
    gap: 14px;
    font-size: 13px;
  }

  .nav-links a:not(.btn-nav) {
    display: none; /* إخفاء الروابط النصية على الجوال */
  }

  .hero {
    padding: 60px 0 80px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}