:root {
  --blue: #2D7DD2;
  --blue-dark: #1F5FA8;
  --blue-soft: #E8F1FB;
  --orange: #F5A623;
  --orange-soft: #FEF4E2;
  --dark: #2B2E34;
  --navy: #0E1B33;
  --navy-2: #14284A;
  --bg: #F2F4F7;
  --white: #FFFFFF;
  --text: #2B2E34;
  --muted: #6B7280;
  --line: #E3E7ED;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(14, 27, 51, .08);
  --shadow-lg: 0 20px 50px rgba(14, 27, 51, .14);
  --font: 'IBM Plex Sans Arabic', 'Inter', 'Segoe UI', Tahoma, sans-serif;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr-skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--blue); color: var(--white); padding: 10px 16px; border-radius: 8px; }
.sr-skip:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: 80px; }
.section--alt { background: var(--bg); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.section-head p { color: var(--muted); margin: 0; }
.eyebrow { display: inline-block; color: var(--blue); font-weight: 700; font-size: .9rem; margin-bottom: .5rem; }
.center { text-align: center; }
.mt-lg { margin-top: 40px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .85em 1.6em; border-radius: 10px; font-weight: 700; font-family: inherit; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; transition: .2s ease; white-space: nowrap;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(45, 125, 210, .3); }
.btn--outline { border-color: var(--line); color: var(--dark); background: var(--white); }
.btn--outline:hover { border-color: var(--blue); color: var(--blue); }
.btn--ghost { border-color: rgba(255, 255, 255, .5); color: var(--white); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: var(--white); }
.btn--sm { padding: .6em 1.2em; font-size: .92rem; }
.link-arrow { color: var(--blue); font-weight: 700; display: inline-flex; gap: .4em; align-items: center; }
.link-arrow:hover { gap: .7em; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(14, 27, 51, .06); }
.nav { display: flex; align-items: center; gap: 28px; height: 80px; }
.nav__logo img { height: 44px; width: auto; }
.nav__menu { display: flex; gap: 26px; margin-inline-start: auto; }
.nav__menu a { font-weight: 500; color: var(--dark); position: relative; padding-block: 6px; }
.nav__menu a::after {
  content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--blue);
  transform: scaleX(0); transition: transform .2s;
}
.nav__menu a:hover, .nav__menu a[aria-current="page"] { color: var(--blue); }
.nav__menu a:hover::after, .nav__menu a[aria-current="page"]::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: 16px; }
.nav__lang { font-weight: 600; color: var(--muted); display: inline-flex; gap: .3em; align-items: center; }
.nav__toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--dark); }
.nav__toggle svg { width: 28px; height: 28px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: 60px 40px; }
.hero__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; margin-bottom: .4em; }
.hero h1 span { color: var(--blue); display: block; }
.hero__lead { font-size: 1.12rem; color: var(--muted); max-width: 540px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero__media img { width: 100%; }
.hero__features {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px;
  padding-top: 32px; border-top: 1px solid var(--line);
}
.mini-feature { display: flex; gap: 12px; align-items: flex-start; }
.mini-feature img { width: 40px; flex: none; }
.mini-feature h3 { font-size: 1rem; margin: 0; }
.mini-feature p { font-size: .88rem; color: var(--muted); margin: 0; }

/* Page hero (inner pages) */
.page-hero {
  position: relative; color: var(--white); padding-block: 90px 80px; overflow: hidden;
  background: var(--navy) url('../assets/hero/hero-dark-bg.png') left center / cover no-repeat;
}
.page-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(14, 27, 51, .95) 30%, rgba(14, 27, 51, .4)); }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-hero p { color: #C9D4E5; max-width: 620px; font-size: 1.1rem; margin: 0; }
.breadcrumb { display: flex; gap: .5em; color: #9FB0CC; font-size: .9rem; margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--orange); }

/* Trusted strip */
.trusted { padding-block: 40px; border-block: 1px solid var(--line); }
.trusted h2 { text-align: center; font-size: 1.3rem; margin-bottom: 24px; }
.trusted__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; }
.trusted__item {
  color: #8A94A6; font-weight: 700; font-size: 1rem; padding: 10px 18px; border-radius: 10px;
  border: 1px dashed var(--line); filter: grayscale(1); transition: .2s;
}
.trusted__item:hover { color: var(--dark); border-color: var(--blue); }

/* Cards */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--6 { grid-template-columns: repeat(6, 1fr); }
.grid--7 { grid-template-columns: repeat(7, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: .25s ease; position: relative;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__icon { width: 60px; height: 60px; margin-bottom: 18px; }
.card h3 { font-size: 1.15rem; margin-bottom: .35em; }
.card p { color: var(--muted); font-size: .95rem; }
.card--center { text-align: center; }
.card--center .card__icon { margin-inline: auto; }
.card--product { display: flex; flex-direction: column; }
.card--product p { flex: 1; }
.tag { display: inline-block; align-self: flex-start; font-size: .78rem; font-weight: 700; color: var(--blue); background: var(--blue-soft); padding: 2px 10px; border-radius: 99px; margin-bottom: 10px; }

/* Sector cards */
.sector {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 300px; color: var(--white);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; isolation: isolate;
}
.sector img.sector__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s; }
.sector::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 25%, rgba(11, 24, 48, .95)); }
.sector:hover img.sector__bg { transform: scale(1.07); }
.sector__badge {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 12px;
  background: var(--white);
}
.sector__badge img { width: 30px; }
.sector h3 { font-size: 1.2rem; margin: 0 0 .25em; }
.sector p { font-size: .9rem; color: #C9D4E5; margin: 0 0 .6em; }
.sector .link-arrow { color: var(--orange); font-size: .92rem; }

/* Sector detail rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split + .split { margin-top: 72px; }
.split:nth-child(even) .split__media { order: 2; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }
.split h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.checklist li { position: relative; padding-inline-start: 30px; margin-bottom: 10px; }
.checklist li::before {
  content: ''; position: absolute; inset-inline-start: 0; top: .45em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232D7DD2' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 26px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.stat strong { display: block; font-size: 2.2rem; color: var(--blue); font-family: 'Inter', var(--font); }
.stat span { color: var(--muted); }

/* Deployment */
.deploy { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.deploy .card { display: flex; gap: 20px; align-items: flex-start; }
.deploy .card__icon { margin: 0; flex: none; }

/* Process */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { position: relative; padding: 28px 22px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 10px; background: var(--orange); color: var(--white); font-weight: 700; margin-bottom: 14px;
}
.step h3 { font-size: 1.05rem; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }

/* CTA */
.cta {
  position: relative; border-radius: 24px; overflow: hidden; color: var(--white); padding: 56px 48px;
  background: var(--navy) url('../assets/banners/cta-banner.png') left center / auto 100% no-repeat;
  padding-inline-end: 260px; /* keep buttons clear of the brand arcs on the left */
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .3em; }
.cta p { color: #C9D4E5; margin: 0; max-width: 560px; }
.cta__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta__text { max-width: 620px; }

/* About */
.values .card__icon { width: 52px; height: 52px; }
.mission { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.mission .card { border-top: 4px solid var(--blue); }
.mission .card:nth-child(2) { border-top-color: var(--orange); }

/* Contact */
.contact { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea {
  font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--white);
  color: var(--text); transition: .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.field textarea { min-height: 130px; resize: vertical; }
.field .error { color: #D93025; font-size: .82rem; min-height: 1em; }
.form__success { display: none; padding: 14px 16px; border-radius: 10px; background: #E7F6EE; color: #146C43; font-weight: 600; margin-top: 12px; }
.form__success.is-visible { display: block; }
.form__error { display: none; padding: 14px 16px; border-radius: 10px; background: #FDECEC; color: #B42318; font-weight: 600; margin-top: 12px; }
.form__error.is-visible { display: block; }
.form__error a { text-decoration: underline; }
.form button[disabled] { opacity: .7; cursor: progress; }
.contact-info { display: grid; gap: 16px; }
.contact-info .card { display: flex; gap: 16px; align-items: center; padding: 20px; }
.contact-info .card:hover { transform: none; }
.contact-info svg { width: 26px; height: 26px; color: var(--blue); flex: none; }
.contact-info h3 { font-size: 1rem; margin: 0; }
.contact-info p { margin: 0; }
.ltr-value { direction: ltr; }
[dir="rtl"] .ltr-value { text-align: right; }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px; margin-bottom: 12px; background: var(--white); }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--blue); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--muted); }

/* Footer */
.site-footer { background: var(--navy); color: #C9D4E5; padding-top: 64px; margin-top: 80px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr; gap: 32px; }
.footer__brand img { height: 46px; width: auto; margin-bottom: 16px; }
.footer__brand p { font-size: .92rem; }
.site-footer h3 { color: var(--white); font-size: 1rem; margin-bottom: 16px; }
.footer__links li { margin-bottom: 8px; font-size: .92rem; }
.footer__links a:hover { color: var(--orange); }
.footer__contact li { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; font-size: .92rem; }
.footer__contact svg { width: 18px; height: 18px; color: var(--orange); flex: none; }
.footer__contact .ltr { direction: ltr; }
.social { display: flex; gap: 10px; margin-bottom: 20px; }
.social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #2B3F63; display: grid; place-items: center; transition: .2s; }
.social a:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.social svg { width: 18px; height: 18px; }
.newsletter { display: flex; background: var(--white); border-radius: 10px; overflow: hidden; }
.newsletter input { flex: 1; min-width: 0; border: 0; padding: 12px 14px; font: inherit; }
.newsletter input:focus { outline: none; }
.newsletter button { border: 0; background: var(--blue); color: var(--white); padding: 0 16px; cursor: pointer; }
.newsletter button svg { width: 18px; height: 18px; transform: scaleX(-1); }
.newsletter-msg { font-size: .85rem; color: var(--orange); min-height: 1.2em; margin-top: 6px; }
.footer__bottom {
  border-top: 1px solid #22365A; margin-top: 48px; padding-block: 20px; font-size: .86rem;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer__bottom ul { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__bottom a:hover { color: var(--orange); }

/* English / LTR */
[lang="en"] body { font-family: 'Inter', 'Segoe UI', Arial, sans-serif; }
[lang="en"] .hero h1 { letter-spacing: -.02em; font-size: clamp(2rem, 3.8vw, 2.9rem); }
[dir="ltr"] .i-dir { transform: scaleX(-1); }
[dir="ltr"] .newsletter button svg { transform: none; }
[dir="ltr"] .page-hero { background-position: right center; }
[dir="ltr"] .page-hero::before { background: linear-gradient(90deg, rgba(14, 27, 51, .95) 30%, rgba(14, 27, 51, .4)); }
[dir="ltr"] .cta { background-position: right center; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn, .sector img.sector__bg { transition: none; }
}

/* Responsive */
@media (max-width: 1100px) {
  .grid--6 { grid-template-columns: repeat(3, 1fr); }
  .grid--7 { grid-template-columns: repeat(4, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand, .footer__newsletter { grid-column: span 3; }
}
@media (max-width: 960px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: fixed; inset: 80px 0 auto 0; flex-direction: column; gap: 0; background: var(--white);
    padding: 12px 20px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-120%); transition: transform .3s ease; visibility: hidden;
  }
  .nav__menu.is-open { transform: none; visibility: visible; }
  .nav__menu a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav__menu a::after { display: none; }
  .nav__actions { margin-inline-start: auto; }
  .hero__grid, .split, .contact { grid-template-columns: 1fr; }
  .split:nth-child(even) .split__media { order: 0; }
  .hero__media { order: -1; }
  .hero__features, .stats, .steps { grid-template-columns: repeat(2, 1fr); }
  .grid--3, .grid--4, .grid--7 { grid-template-columns: repeat(2, 1fr); }
  .deploy, .mission { grid-template-columns: 1fr; }
  .cta { padding: 40px 28px; background-image: none; padding-inline-end: 28px; }
}
@media (max-width: 600px) {
  .section { padding-block: 56px; }
  .nav { height: 70px; }
  .nav__menu { inset-block-start: 70px; }
  .nav__logo img { height: 36px; }
  .nav__actions .btn, .nav__lang { display: none; }
  .grid--3, .grid--4, .grid--6, .grid--7, .hero__features, .stats, .steps, .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand, .footer__newsletter { grid-column: span 2; }
  .form { padding: 22px; }
  .hero__actions .btn { flex: 1; }
}

/* Smooth cross-page transitions (progressive: browsers without View Transitions just navigate) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .22s ease both; }
::view-transition-new(root) { animation: vt-in .38s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
