:root {
  --bg: #05070b;
  --bg2: #0b1018;
  --card: #0d131e;
  --line: rgba(65, 190, 255, 0.12);
  --text: #eef8ff;
  --muted: #9aa8b9;
  --cyan: #36e8ff;
  --blue: #3d7cff;
  --max: 1180px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
.container { width: min(var(--max), calc(100% - 36px)); margin: auto; }

/* ===== HEADER ===== */
.nav-wrap {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5, 7, 11, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.3rem;
}
.brand img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); }
.brand b { color: var(--cyan); }
.nav-links {
  display: flex; align-items: center; gap: 2rem;
}
.nav-links a:not(.btn) { color: #cfe8f5; transition: 0.3s; }
.nav-links a:not(.btn):hover { color: var(--cyan); }

/* هامبورجر */
.nav-toggle-label { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px; }
.nav-toggle-label span { display: block; width: 28px; height: 3px; background: #fff; border-radius: 4px; transition: 0.3s; }
#nav-toggle:checked ~ .nav-links { display: flex; }

/* ===== أزرار ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--cyan); color: #031018; font-weight: 800;
  padding: 0.8rem 1.8rem; border-radius: 50px;
  border: 1px solid transparent; transition: 0.3s; cursor: pointer; text-align: center;
}
.btn:hover { background: #24c5d0; transform: translateY(-3px); box-shadow: 0 12px 30px -10px rgba(54, 232, 255, 0.4); }
.btn-outline { background: transparent; color: var(--text); border-color: rgba(132, 225, 255, 0.35); }
.btn-outline:hover { background: rgba(54, 232, 255, 0.1); border-color: var(--cyan); }
.btn-small { padding: 0.5rem 1.2rem; font-size: 0.85rem; }

/* ===== HERO ===== */
.hero { padding: 5rem 0; background: radial-gradient(ellipse at 10% 20%, #0b1a2a, transparent 60%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: center; }
.eyebrow { color: var(--cyan); font-weight: 600; letter-spacing: 2px; font-size: 0.8rem; text-transform: uppercase; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.8rem, 6vw, 3.8rem); line-height: 1.2; margin-bottom: 1.5rem; }
.hero h1 span { color: var(--cyan); }
.lead { color: var(--muted); font-size: 1.2rem; max-width: 500px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.trust-row { display: flex; gap: 1.5rem; flex-wrap: wrap; color: var(--cyan); font-weight: 600; font-size: 0.9rem; }

/* Mockup */
.hero-card { position: relative; }
.browser-frame { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.7); }
.browser-top { display: flex; align-items: center; gap: 6px; background: #111a26; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); }
.browser-top span { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.browser-top .red { background: #ff5f57; } .browser-top .yellow { background: #febc2e; } .browser-top .green { background: #28c840; }
.browser-url { flex: 1; background: #0c121d; border-radius: 20px; padding: 0.2rem 1rem; font-size: 0.7rem; color: var(--muted); margin-inline-start: 10px; }
.mockup-content { padding: 1.5rem; background: #0b111e; }
.mockup-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.mockup-logo { width: 35px; height: 35px; background: var(--cyan); border-radius: 8px; opacity: 0.8; }
.mockup-nav { display: flex; gap: 8px; } .mockup-nav span { background: var(--line); width: 30px; height: 6px; border-radius: 4px; display: block; }
.mockup-hero { background: linear-gradient(145deg, #112233, #1a2e42); border-radius: 12px; padding: 1.5rem; text-align: center; }
.mockup-hero h4 { font-size: 1.3rem; }
.mockup-hero p { color: var(--muted); font-size: 0.8rem; }
.mockup-buttons { display: flex; justify-content: center; margin-top: 0.5rem; } .mockup-buttons div { background: var(--cyan); padding: 0.4rem 1.2rem; border-radius: 20px; font-size: 0.7rem; font-weight: 700; color: #041016; }
.mockup-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.8rem; margin-top: 1rem; }
.mockup-card { background: var(--card); border-radius: 10px; padding: 0.8rem; text-align: center; }
.mockup-card i { display: block; width: 25px; height: 25px; background: var(--cyan); opacity: 0.4; border-radius: 50%; margin: 0 auto 0.4rem; }
.mockup-card span { color: var(--muted); font-size: 0.7rem; }
.badge-float { position: absolute; bottom: 20px; right: -10px; background: #3ddc84; color: #031008; font-weight: 700; padding: 0.4rem 1.2rem; border-radius: 30px; font-size: 0.8rem; box-shadow: 0 10px 20px rgba(0,0,0,0.5); }

/* ===== أقسام عامة ===== */
.section { padding: 4rem 0; }
.section-dark { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 2.5rem; flex-wrap: wrap; gap: 1rem; }
.section-head h2 { font-size: 2.2rem; font-weight: 800; }
.section-head p { color: var(--muted); max-width: 400px; }

/* البطاقات العامة */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1.5rem; }
.four-cards { grid-template-columns: repeat(4,1fr); }
.service { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 2rem 1.5rem; transition: 0.3s; }
.service:hover { transform: translateY(-8px); border-color: var(--cyan); }
.service span { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
.service h3 { font-size: 1.3rem; margin-bottom: 0.3rem; }
.service p { color: var(--muted); font-size: 0.95rem; }

/* المشكلة والحل */
.problem-solution { text-align: center; }
.problem-solution h2 { font-size: 2rem; max-width: 700px; margin: 0 auto 1rem; }
.problem-solution > p { color: var(--muted); max-width: 700px; margin: 0 auto 2rem; }
.solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 700px; margin: 0 auto; }
.solution-grid span { background: var(--card); padding: 0.8rem; border-radius: 12px; border: 1px solid var(--line); font-weight: 500; }

/* النماذج */
.demo-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.demo { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 2rem 1.5rem; transition: 0.3s; display: flex; flex-direction: column; }
.demo:hover { transform: translateY(-8px); border-color: var(--cyan); }
.demo-tag { display: inline-block; background: var(--cyan); color: #041016; padding: 0.2rem 1rem; border-radius: 20px; font-weight: 700; font-size: 0.7rem; letter-spacing: 1px; width: fit-content; margin-bottom: 1rem; }
.demo h3 { font-size: 1.5rem; }
.demo p { color: var(--muted); flex: 1; }
.demo span { color: var(--cyan); font-weight: 600; margin-top: 1rem; display: block; }

/* القيمة */
.value-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.value-item { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem; }
.value-item h4 { font-size: 1.2rem; margin: 0.5rem 0; }
.value-item p { color: var(--muted); font-size: 0.9rem; }

/* من أنا + الوثيقة */
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 3rem; align-items: center; }
.about-photo img { width: 100%; max-width: 300px; border-radius: 20px; border: 1px solid var(--line); }
.credential-badge { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; background: var(--card); padding: 0.8rem 1.2rem; border-radius: 16px; border: 1px solid var(--line); }
.credential-badge img { width: 60px; height: 60px; object-fit: cover; border-radius: 10px; border: 1px solid var(--cyan); box-shadow: 0 0 20px rgba(54,232,255,0.2); animation: pulse-glow 2.5s infinite; }
.credential-badge b { color: var(--cyan); display: block; }
.credential-badge span { color: var(--muted); font-size: 0.8rem; }
@keyframes pulse-glow { 0% { box-shadow: 0 0 10px rgba(54,232,255,0.2); } 100% { box-shadow: 0 0 30px rgba(54,232,255,0.6); } }

/* ===== القائمة المنسدلة للوثيقة ===== */
.dropdown-wrapper {
  position: relative;
  display: inline-block;
  margin-top: 0.5rem;
}
.dropdown-btn {
  background: transparent;
  border: none;
  color: var(--cyan);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 4px 0;
  font-weight: 600;
  transition: 0.3s;
}
.dropdown-btn:hover {
  color: #fff;
  transform: translateX(4px);
}
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  min-width: 200px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  z-index: 50;
  margin-top: 8px;
  animation: fadeSlide 0.3s ease;
}
.dropdown-content.show {
  display: block;
}
@keyframes fadeSlide {
  0% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* الخطوات */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.step { text-align: center; padding: 1.5rem; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.step span { color: var(--cyan); font-weight: 900; font-size: 2rem; display: block; }
.step h4 { font-size: 1.2rem; margin: 0.5rem 0; }
.step p { color: var(--muted); font-size: 0.9rem; }

/* الأسعار */
.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.price-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 2rem; text-align: center; position: relative; transition: 0.3s; }
.price-card.featured { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(54,232,255,0.2); }
.badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--cyan); color: #041016; padding: 0.3rem 1.5rem; border-radius: 20px; font-weight: 700; font-size: 0.8rem; }
.price { font-size: 2.8rem; font-weight: 800; margin: 1rem 0; }
.price small { font-size: 1rem; color: var(--muted); }
.price-card ul { list-style: none; margin-bottom: 1.5rem; }
.price-card li { padding: 0.3rem 0; color: var(--muted); border-bottom: 1px solid var(--line); }
.price-card li:last-child { border-bottom: none; }

/* الأسئلة */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.faq-grid h4 { color: var(--cyan); margin-bottom: 0.3rem; }
.faq-grid p { color: var(--muted); }

/* CTA */
.contact-box { background: linear-gradient(135deg, #0d1b2a, #1a2f3f); border: 1px solid var(--line); border-radius: 30px; padding: 3rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 2rem; }
.contact-box h2 { font-size: 2rem; }

/* واتساب عائم */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  background: #25D366; color: #fff; width: 60px; height: 60px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 2rem; box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  transition: 0.3s; text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* فوتر */
footer { border-top: 1px solid var(--line); padding: 2rem 0; color: var(--muted); }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

/* ===== استجابة الجوال ===== */
@media (max-width: 900px) {
  .nav-toggle-label { display: flex; }
  .nav-links {
    display: none; flex-direction: column; position: absolute; top: 76px; right: 0;
    background: rgba(5,7,11,0.98); width: 100%; padding: 2rem;
    border-bottom: 1px solid var(--line); gap: 1.5rem; align-items: center;
  }
  #nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-links a:not(.btn) { font-size: 1.2rem; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { order: -1; }
  .hero h1 { font-size: 2.5rem; }

  .four-cards { grid-template-columns: 1fr 1fr; }
  .solution-grid { grid-template-columns: 1fr 1fr; }
  .demo-grid, .value-grid, .steps, .price-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-photo img { margin: 0 auto; }
  .credential-badge { justify-content: center; }
  .faq-grid { grid-template-columns: 1fr; }
  .contact-box { flex-direction: column; text-align: center; }
}
@media (max-width: 500px) {
  .four-cards { grid-template-columns: 1fr; }
  .solution-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
}