:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --line: #e2e8f5;
  --ink: #121c2f;
  --muted: #627089;
  --accent: #714b67;
  --accent-strong: #5d3d56;
  --accent-soft: #f4edf2;
  --navy: #171b31;
  --radius-xl: 20px;
  --radius-lg: 14px;
  --shadow: 0 12px 30px rgba(17, 36, 70, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
}

.container {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 800;
}
.brand img { height: 30px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.main-nav a {
  text-decoration: none;
  color: #3b4b69;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.35rem 0.45rem;
  border-radius: 8px;
}
.main-nav a:hover { background: #f2f6ff; color: var(--accent); }

.top-actions {
  display: flex;
  align-items: center;
  gap: 0.58rem;
}
.top-actions .btn {
  height: 42px;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 1;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid #d0dbef;
  border-radius: 10px;
  overflow: hidden;
  background: #f8fbff;
}
.lang-btn {
  border: 0;
  background: transparent;
  color: #556888;
  font-weight: 800;
  padding: 0.42rem 0.62rem;
  cursor: pointer;
}
.lang-btn.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.btn {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.62rem 0.95rem;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-strong); }
.btn-secondary {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.btn-secondary:hover {
  background: #efe3eb;
  color: var(--accent-strong);
}
.btn-secondary-clear {
  background: transparent;
}
.btn-secondary-clear:hover {
  background: transparent;
  color: var(--accent-strong);
}

.hero {
  padding: 2.4rem 0 1.6rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1rem;
}
.hero-copy {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.eyebrow {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
}
h1 {
  margin: 0.5rem 0 0;
  font-size: clamp(2.5rem, 5.5vw, 4.6rem);
  line-height: 0.95;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.01em;
  font-weight: 400;
}
.hero-sub {
  margin: 0.95rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.56;
  max-width: 42ch;
}
.hero-ctas {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.hero-support-line {
  margin: 0.9rem 0 0;
  color: var(--accent);
}

.hero-focus-card {
  padding: 0.2rem 0.1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}
.hero-focus-logo {
  width: min(100%, 460px);
  height: auto;
  max-height: 84px;
  object-fit: contain;
  object-position: left center;
  display: block;
}
.hero-focus-title {
  margin: 0;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  line-height: 1.1;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.01em;
  color: var(--accent-strong);
}
.hero-focus-sub {
  margin: 0;
  color: #5c6680;
  line-height: 1.6;
  max-width: 36ch;
}

.hero-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: minmax(130px, auto);
  gap: 0.8rem;
}
.mosaic-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.mosaic-card h3 {
  margin: 0;
  font-size: 1.05rem;
}
.mosaic-card p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}
.mosaic-card.priority {
  background: #f9f2f6;
  border-color: #d9c7d5;
}
.mosaic-card.dark {
  background: var(--navy);
  color: #fff;
  border-color: #252a45;
}
.mosaic-card.dark p,
.mosaic-card.dark h3 {
  color: #fff;
}
.inline-link {
  margin-top: 0.7rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.section {
  padding: 0.45rem 0 1.8rem;
}
.section h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
}

.features-grid,
.pricing-grid,
.steps-grid,
.faq-list {
  display: grid;
  gap: 0.8rem;
}
.features-grid,
.pricing-grid,
.steps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.faq-list {
  grid-template-columns: 1fr;
}

.feature-card,
.price-card,
.step-card,
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0.95rem;
  box-shadow: var(--shadow);
}
.faq-row {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 0.15rem 0.95rem;
}
.faq-row summary {
  list-style: none;
  cursor: pointer;
  font-size: 1.02rem;
  font-weight: 800;
  color: #203555;
  padding: 0.8rem 1.6rem 0.8rem 0;
  position: relative;
}
.faq-row summary::-webkit-details-marker {
  display: none;
}
.faq-row summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid #ced9ec;
  color: #4b6388;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.faq-row[open] summary::after {
  content: '-';
}
.faq-row p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}

.price-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.2rem 1.1rem 1.1rem;
}

.feature-card h3,
.step-card h3,
.faq-item h3,
.price-card h3 {
  margin: 0;
  font-size: 1.02rem;
}
.feature-card p,
.step-card p,
.faq-item p {
  margin: 0.52rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.price {
  margin: 0.5rem 0 0.22rem;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.05;
}
.price-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.price-note-secondary {
  margin-top: 0.1rem;
}
.price-card .btn {
  margin-top: 0.55rem;
  align-self: flex-start;
}
.price-card.featured {
  border-color: #d3bed0;
  background: #f9f3f7;
}

.section-dashboard {
  padding-top: 0.45rem;
  padding-bottom: 1.8rem;
}
.section-dashboard h2 {
  color: inherit;
}
.section-dashboard .dashboard-head p {
  margin: -0.2rem 0 0.9rem;
  color: var(--muted);
}
.dashboard-slider {
  border: 1px solid #d7deee;
  border-radius: var(--radius-xl);
  background: #f9fbff;
  padding: 0.9rem;
  box-shadow: var(--shadow);
}
.dashboard-slider-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 0.72rem;
}
.dashboard-current {
  font-size: 1.03rem;
  font-weight: 800;
  color: #304a72;
}
.dashboard-slider-tabs {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.dash-tab {
  border: 1px solid #cfd8eb;
  background: #fff;
  color: #395173;
  border-radius: 999px;
  padding: 0.36rem 0.72rem;
  font-weight: 800;
  cursor: pointer;
}
.dash-tab.active {
  background: var(--accent-soft);
  border-color: #d8c4d4;
  color: var(--accent-strong);
}
.dashboard-slider-nav {
  display: flex;
  gap: 0.45rem;
}
.dash-nav-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #cfd8eb;
  background: #fff;
  color: #3f5576;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
}
.dash-viewport {
  overflow: hidden;
  border-radius: 12px;
  direction: ltr;
}
.dash-track {
  display: flex;
  flex-direction: row;
  direction: ltr;
  transition: transform 280ms ease;
  will-change: transform;
}
.dash-slide {
  min-width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.mock-shell {
  border: 1px solid #cfd8eb;
  border-radius: 14px;
  background: #fff;
  padding: 0.8rem;
  width: 100%;
  max-width: 1120px;
}
.mock-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.mock-top-row.slim h3 {
  margin: 0;
  font-size: 1.08rem;
}
.mock-pill-group,
.mock-status-tabs {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.mock-pill {
  border: 1px solid #cfd8eb;
  border-radius: 11px;
  padding: 0.25rem 0.58rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: #506487;
  background: #fff;
}
.mock-pill.active {
  background: #f7eef4;
  border-color: #d7c0d2;
  color: var(--accent-strong);
}
.mock-kpi-strip {
  display: flex;
  gap: 0.72rem;
  flex-wrap: wrap;
  color: #496086;
  font-size: 0.9rem;
}
.mock-kpi-strip strong { color: #21314f; }
.mock-filters {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.45rem;
  grid-template-columns: 1.1fr 1.1fr 1.35fr 1fr 1fr 0.42fr 0.45fr;
}
.mock-filters.compact {
  grid-template-columns: 1fr;
}
.mock-field label {
  display: block;
  font-size: 0.77rem;
  font-weight: 700;
  color: #50698f;
  margin: 0 0 0.22rem;
}
.mock-input,
.mock-icon-btn {
  border: 1px solid #cfd8eb;
  border-radius: 11px;
  background: #fff;
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 0.35rem 0.56rem;
  color: #70809c;
}
.mock-icon-btn {
  justify-content: center;
  font-size: 1.02rem;
  font-weight: 800;
  padding: 0;
}
.mock-table-wrap {
  margin-top: 0.65rem;
  border: 1px solid #cfdaed;
  border-radius: 11px;
  overflow: hidden;
}
.mock-table-wrap.tall { min-height: 300px; }
.mock-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
}
.mock-table thead th {
  text-align: left;
  background: #f8fbff;
  color: #50698f;
  font-weight: 800;
  padding: 0.54rem 0.56rem;
  border-bottom: 1px solid #d5deef;
}
.mock-table tbody td {
  padding: 0.56rem;
  border-bottom: 1px solid #edf2fa;
  color: #4b617f;
}
.mock-table .empty-cell {
  color: #5b7294;
  height: 180px;
  vertical-align: top;
}
.mock-pagination {
  margin-top: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.mock-pagination .left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #4f688d;
  font-size: 0.88rem;
  flex-wrap: wrap;
}
.mock-pagination .disabled {
  color: #a5afc0;
  font-weight: 700;
}
.mock-primary-btn {
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  padding: 0.48rem 0.86rem;
  font-weight: 800;
}
.mock-cards-grid {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}
.mock-contact-search {
  margin-top: 0.62rem;
  max-width: 420px;
}
.mock-contact-search label {
  display: block;
  font-size: 0.77rem;
  font-weight: 700;
  color: #50698f;
  margin: 0 0 0.22rem;
}
.mock-contact-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  background: #f8fbff;
  border-bottom: 1px solid #d5deef;
  padding: 0.52rem 0.62rem;
  color: #51698f;
  font-size: 0.82rem;
  font-weight: 800;
}
.mock-contact-list {
  padding: 0.3rem 0.45rem 0.5rem;
}
.mock-contact-item {
  border: 1px solid #d8e0f1;
  border-radius: 10px;
  margin-top: 0.42rem;
  overflow: hidden;
  background: #fff;
}
.mock-contact-item.expanded {
  border-color: #c8d5ec;
}
.mock-contact-head {
  width: 100%;
  border: 0;
  background: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  text-align: left;
  padding: 0.58rem 0.62rem;
  color: #324b72;
}
.mock-contact-head strong {
  font-size: 0.9rem;
}
.mock-contact-body {
  border-top: 1px solid #e6edf8;
  padding: 0.52rem 0.62rem 0.62rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.mock-contact-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  color: #4e6588;
  font-size: 0.84rem;
}
.mock-contact-stats strong { color: #233552; }
.mock-mini-card {
  border: 1px solid #d5def0;
  border-radius: 11px;
  background: #fbfcff;
  padding: 0.72rem;
}
.mock-mini-card h4 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}
.mock-mini-card p {
  margin: 0.14rem 0 0;
  color: #60718d;
  font-size: 0.86rem;
}
.dash-bottom-nav {
  margin-top: 0.66rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
}
.dash-dots {
  display: flex;
  justify-content: center;
  gap: 0.42rem;
}
.dash-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  background: #c8d3e8;
  cursor: pointer;
}
.dash-dot.active { background: var(--accent); }

.step-no {
  width: 27px;
  height: 27px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent);
  background: var(--accent-soft);
}

.footer {
  border-top: 1px solid var(--line);
  background: #fff;
}
.footer-inner {
  min-height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-inner span {
  font-weight: 800;
}
.footer-inner a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 800;
}

html[lang="ar"] body {
  font-family: "Cairo", "Manrope", sans-serif;
}
html[lang="ar"] h1 {
  font-family: "Cairo", "Manrope", sans-serif;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0;
  font-size: clamp(2rem, 4.8vw, 3.6rem);
}
html[lang="ar"] .hero-focus-title {
  font-family: "Cairo", "Manrope", sans-serif;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
}
html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .topbar-inner,
html[dir="rtl"] .hero-ctas,
html[dir="rtl"] .footer-inner {
  direction: rtl;
}
html[dir="rtl"] .main-nav {
  direction: rtl;
}
html[dir="rtl"] .hero-focus-logo {
  object-position: right center;
  margin-inline-start: auto;
  margin-inline-end: 0;
}
html[dir="rtl"] .section-dashboard {
  direction: ltr;
  text-align: left;
}
html[dir="rtl"] .section-dashboard .dashboard-head {
  direction: rtl;
  text-align: right;
}
html[dir="rtl"] .dash-track {
  direction: ltr;
  flex-direction: row;
}
html[dir="rtl"] .dash-slide {
  direction: ltr;
}

@media (max-width: 1020px) {
  .main-nav { display: none; }
  .hero-grid,
  .features-grid,
  .pricing-grid,
  .steps-grid,
  .faq-list {
    grid-template-columns: 1fr;
  }
  .dash-viewport {
    height: var(--dash-mock-height, auto);
    transition: height 240ms ease;
  }
  .dash-slide {
    position: relative;
    min-height: 0;
    height: var(--dash-mock-height, auto);
    justify-content: center;
  }
  .mock-shell {
    position: absolute;
    top: 0;
    left: 50%;
    width: max-content;
    max-width: none;
    transform: translateX(-50%) scale(var(--dash-mock-scale, 1));
    transform-origin: top center;
  }
  .mock-filters {
    grid-template-columns: 1.1fr 1.1fr 1.35fr 1fr 1fr 0.42fr 0.45fr;
  }
  .mock-filters .narrow {
    grid-column: span 1;
  }
  .mock-table-wrap.tall { min-height: 220px; }
}

@media (max-width: 640px) {
  .container { width: min(1180px, calc(100% - 1.05rem)); }
  .topbar-inner { min-height: 62px; }
  .mock-cards-grid { grid-template-columns: 1fr; }
  .mock-table { font-size: 0.78rem; }
  .mock-top-row { align-items: center; }
  .mock-contact-columns,
  .mock-contact-head {
    grid-template-columns: 1fr;
    gap: 0.32rem;
  }
}
