:root {
  --navy: #1b2559;
  --ink: #10172a;
  --muted: #526173;
  --soft: #f6f8fc;
  --surface: #fff;
  --line: rgba(27, 37, 89, .12);
  --line-strong: rgba(27, 37, 89, .2);
  --brand: #2E3F8F;
  --blue: #3A4DA8;
  --grad: linear-gradient(135deg, #1b2559 0%, #2E3F8F 58%, #3A4DA8 100%);
  --shadow: 0 18px 46px -28px rgba(27, 37, 89, .34);
  --shadow-lg: 0 32px 70px -40px rgba(27, 37, 89, .46);
  --max: 1160px;
  --ff-ar: "Tajawal", "Inter", system-ui, sans-serif;
  --ff-en: "Inter", "Tajawal", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--ff-en);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

html[dir="rtl"] body { font-family: var(--ff-ar); }

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

.wrap {
  max-width: var(--max);
  margin: auto;
  padding: 0 24px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 21px;
  color: var(--navy);
}

.brand img {
  width: 40px;
  height: 40px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.nav-links a:hover { color: var(--brand); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 900;
  line-height: 1.1;
}

.btn.primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 14px 28px -16px var(--brand);
}

.btn.ghost {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--navy);
}

.hero {
  overflow: hidden;
  padding: 86px 0 70px;
  background: linear-gradient(180deg, #f8faff 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(320px, .97fr);
  gap: 48px;
  align-items: center;
}

.breadcrumb {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb a {
  color: var(--brand);
  font-weight: 900;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 14px;
  border: 1px solid rgba(79, 70, 229, .2);
  border-radius: 999px;
  background: #EEF1F9;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.hero h1 {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
}

.lead {
  max-width: 720px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

.hero-actions,
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.proof span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.visual { position: relative; }

.panel {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.product-panel img {
  width: 100%;
  height: auto;
  max-height: 650px;
  object-fit: contain;
  object-position: center;
  border: 1px solid rgba(27, 37, 89, .08);
  border-radius: 16px;
  background: #fff;
}

.product-panel.wide img { max-height: none; }

.block { padding: 74px 0; }

.band {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 790px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-head h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 18px;
}

.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px -26px rgba(27, 37, 89, .38);
}

.card h3 {
  margin: 0 0 9px;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.32;
}

.card p,
.card li {
  max-width: 60ch;
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.85;
}

.card ul {
  margin: 12px 0 0;
  padding-inline-start: 20px;
}

.steps {
  counter-reset: step;
  align-items: stretch;
  gap: 16px;
}

.steps .step {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 16px;
  row-gap: 5px;
  align-items: start;
  min-height: 136px;
  padding: 22px 24px;
  background:
    linear-gradient(180deg, rgba(79, 70, 229, .045), rgba(255, 255, 255, 0) 52%),
    #fff;
}

.steps .step:before {
  counter-increment: step;
  content: counter(step);
  grid-row: 1 / span 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--grad);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 14px 30px -18px var(--brand);
}

.steps .step:after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, rgba(79, 70, 229, .9), rgba(37, 99, 235, .2), transparent);
}

html[dir="rtl"] .steps .step:after {
  background: linear-gradient(270deg, rgba(79, 70, 229, .9), rgba(37, 99, 235, .2), transparent);
}

.steps .step h3,
.steps .step p {
  grid-column: 2;
  min-width: 0;
  max-width: none;
}

.steps .step h3 {
  margin-top: 1px;
}

.steps .step p {
  color: #647187;
  font-size: 15px;
  line-height: 1.75;
}

html[dir="rtl"] .steps .step {
  grid-template-columns: minmax(0, 1fr) 46px;
}

html[dir="rtl"] .steps .step:before {
  grid-column: 2;
}

html[dir="rtl"] .steps .step h3,
html[dir="rtl"] .steps .step p {
  grid-column: 1;
}

.compare {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.compare th,
.compare td {
  padding: 17px;
  border-bottom: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
}

.compare th {
  background: #EEF1F9;
  color: var(--navy);
  font-weight: 900;
}

.compare tr:last-child td { border-bottom: 0; }

.pill-link {
  display: inline-flex;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 14px;
  font-weight: 900;
}

.faq {
  max-width: 860px;
  margin: auto;
  display: grid;
  gap: 12px;
}

.faq details {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.faq summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 900;
}

.faq p {
  margin: 10px 0 0;
  color: var(--muted);
}

.cta {
  padding: 46px;
  border-radius: 26px;
  background: var(--navy);
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.cta h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
}

.cta p {
  max-width: 720px;
  margin: 0 auto 24px;
  opacity: .88;
}

.cta .btn.primary {
  background: #fff;
  color: var(--navy);
}

footer {
  padding: 44px 0;
  background: #0f172a;
  color: #e2e8f0;
}

footer .wrap {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
}

footer h3 {
  margin: 0 0 12px;
  color: #fff;
}

footer p {
  max-width: 380px;
  color: #cbd5e1;
}

footer a {
  display: block;
  margin: 7px 0;
  color: #cbd5e1;
  font-size: 14px;
}

.note {
  color: #8da0bb;
  font-size: 13px;
}

@media (max-width: 900px) {
  .hero-grid,
  .grid-3,
  .grid-2,
  footer .wrap {
    grid-template-columns: 1fr;
  }

  .nav-inner {
    align-items: flex-start;
    padding: 14px 0;
  }

  .nav-links { justify-content: flex-end; }
  .hero { padding-top: 58px; }
  .product-panel { max-width: 430px; margin: auto; }
  .product-panel.wide { max-width: none; }
  .steps .step { min-height: 0; }
}

@media (max-width: 560px) {
  .nav-links { display: none; }
  .hero-actions .btn,
  .cta .btn { width: 100%; }
  .cta { padding: 34px 22px; }
  .compare { font-size: 14px; }
  .compare th,
  .compare td { padding: 12px; }
  .block { padding: 58px 0; }
  .hero h1 { font-size: 34px; }
  .steps .step {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 20px;
  }
  html[dir="rtl"] .steps .step {
    grid-template-columns: minmax(0, 1fr) 40px;
  }
  .steps .step:before {
    width: 38px;
    height: 38px;
  }
}
