:root {
  --blue: #2563eb;
  --blue-soft: #3b82f6;
  --navy: #0b1220;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --paper: #f8fafc;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}

body[dir="rtl"] {
  font-family: var(--font-ar);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(11, 18, 32, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}

.logo {
  width: 34px;
  height: 34px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #cbd5e1;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: #fff;
}

.lang {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 4px;
}

.lang button {
  border: 0;
  background: transparent;
  color: #cbd5e1;
  font: inherit;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.lang button.active {
  background: #fff;
  color: var(--navy);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.hero {
  background:
    radial-gradient(900px 420px at 80% 10%, rgba(37, 99, 235, 0.35), transparent 60%),
    radial-gradient(700px 380px at 10% 90%, rgba(14, 165, 233, 0.18), transparent 55%),
    var(--navy);
  color: #fff;
  padding: 72px 0 88px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #93c5fd;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  max-width: 14ch;
}

.lead {
  margin-top: 18px;
  color: #cbd5e1;
  font-size: 1.08rem;
  max-width: 42ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
  color: #94a3b8;
  font-size: 0.92rem;
}

.mock {
  background: linear-gradient(180deg, #1e293b, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  padding: 14px;
}

.mock-top {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #334155;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.kpi {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 14px;
}

.kpi span {
  display: block;
  color: #94a3b8;
  font-size: 0.75rem;
}

.kpi strong {
  display: block;
  margin-top: 6px;
  font-size: 1.15rem;
}

.chart {
  height: 118px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, transparent 0 18px, rgba(148, 163, 184, 0.12) 19px 19px),
    linear-gradient(90deg, #2563eb 0%, #38bdf8 100%);
  clip-path: polygon(0 72%, 12% 58%, 24% 64%, 38% 40%, 52% 48%, 66% 28%, 80% 36%, 100% 18%, 100% 100%, 0 100%);
}

.section {
  padding: 84px 0;
}

.section.alt {
  background: var(--paper);
}

.section-head {
  max-width: 620px;
  margin-bottom: 40px;
}

.section h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section-head p {
  margin-top: 12px;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eff6ff;
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  font-size: 0.96rem;
}

.modules {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.92rem;
}

.ai {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.panel {
  background: var(--navy);
  color: #fff;
  border-radius: 22px;
  padding: 28px;
}

.panel q {
  display: block;
  font-size: 1.15rem;
  line-height: 1.45;
}

.panel small {
  display: block;
  margin-top: 14px;
  color: #93c5fd;
}

.cta {
  background: linear-gradient(135deg, #1d4ed8, #2563eb 45%, #0ea5e9);
  color: #fff;
  border-radius: 28px;
  padding: 48px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.cta h2 {
  max-width: 16ch;
}

.footer {
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.92rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.menu-btn {
  display: none;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 900px) {
  .hero-grid,
  .cards,
  .ai,
  .cta,
  .footer {
    grid-template-columns: 1fr;
    display: grid;
  }

  .nav-links {
    display: none;
  }

  .nav-links.open {
    display: flex;
    position: absolute;
    inset: 72px 20px auto;
    background: #111827;
    flex-direction: column;
    padding: 16px;
    border-radius: 16px;
  }

  .menu-btn {
    display: block;
  }

  .hero h1 {
    max-width: none;
  }

  .cta {
    padding: 28px;
  }
}
