:root {
  --navy: #0b1b33;
  --navy-2: #13294b;
  --ink: #1b2432;
  --muted: #5d6878;
  --line: #e2e5ea;
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --gold: #b08d57;
  --gold-soft: #d9c39d;
  --font-fa: "IBM Plex Sans Arabic", "IBM Plex Sans", Tahoma, sans-serif;
  --font-en: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-fa);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
html[lang="en"] body { font-family: var(--font-en); line-height: 1.65; }

img { display: block; max-width: 100%; }
h1, h2, h3, h4 { color: var(--navy); margin: 0; font-weight: 600; }
html[lang="en"] h1,
html[lang="en"] h2 { font-family: var(--font-serif); font-weight: 600; letter-spacing: -0.01em; }

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 32px;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--navy);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 700; font-size: 1.15rem; }
.brand-sub {
  font-family: var(--font-en); font-size: .72rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
html[lang="en"] .brand-sub { display: none; }
.brand.small { gap: 8px; font-weight: 600; color: var(--navy); }

.lang-toggle {
  font: inherit; font-size: .9rem; font-weight: 500;
  color: var(--navy); background: none;
  border: 1px solid var(--line); border-radius: 4px;
  padding: 6px 14px; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.lang-toggle:hover { border-color: var(--navy); }
.lang-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-art {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: left center;
  z-index: -2;
}
/* image composition: sphere on the left. For LTR, mirror it so the sphere sits on the right. */
html[dir="ltr"] .hero-art { transform: scaleX(-1); }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to left, rgba(11,27,51,.96) 0%, rgba(11,27,51,.85) 38%, rgba(11,27,51,.2) 75%, rgba(11,27,51,.1) 100%);
}
html[dir="ltr"] .hero-shade { background: linear-gradient(to right, rgba(11,27,51,.96) 0%, rgba(11,27,51,.85) 38%, rgba(11,27,51,.2) 75%, rgba(11,27,51,.1) 100%); }

.hero-inner { padding-block: 120px 104px; }
.hero-inner > * { max-width: 600px; }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 22px;
  font-size: .9rem; font-weight: 500; color: var(--gold-soft);
  letter-spacing: .02em;
}
html[lang="en"] .eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; }
.eyebrow .rule { width: 36px; height: 1px; background: var(--gold); }

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.45;
  font-weight: 600;
  margin-bottom: 22px;
}
html[lang="en"] .hero h1 { line-height: 1.15; }
.lead { color: #c3cbd8; font-size: 1.06rem; margin: 0 0 44px; font-weight: 300; }
html[lang="en"] .lead { font-weight: 400; }

.pillars {
  list-style: none; margin: 0; padding: 22px 0 0;
  border-top: 1px solid rgba(255,255,255,.14);
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 40px;
}
.hero-inner > .pillars { max-width: 760px; }
.pillars li { white-space: nowrap; display: flex; align-items: baseline; gap: 10px; font-size: .95rem; color: #e6eaf1; }
.pillars .num { font-family: var(--font-en); font-size: .78rem; color: var(--gold-soft); font-weight: 500; }
html[lang="fa"] .pillars .num { font-family: var(--font-fa); }

/* ---------- Sections ---------- */
.section { padding-block: 104px; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.kicker {
  margin: 0 0 12px;
  font-size: .85rem; font-weight: 600; color: var(--gold);
}
html[lang="en"] .kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); line-height: 1.45; }
html[lang="en"] h2 { line-height: 1.2; }
.muted { color: var(--muted); margin: 16px 0 0; }

.split {
  display: grid; grid-template-columns: 4fr 8fr; gap: 72px; align-items: start;
}
.split-head { position: sticky; top: 32px; }

.features {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}
.feature {
  padding: 32px 0 34px;
  border-bottom: 1px solid var(--line);
}
.feature:nth-child(odd) { padding-inline-end: 36px; }
.feature:nth-child(even) { padding-inline-start: 36px; border-inline-start: 1px solid var(--line); }
.feature h3 { font-size: 1.08rem; margin: 18px 0 8px; }
.feature p { margin: 0; color: var(--muted); font-size: .96rem; }
.ico {
  width: 26px; height: 26px;
  fill: none; stroke: var(--navy); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}

.center-head { text-align: center; margin-bottom: 52px; }

.types {
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--line); gap: 1px;
  border: 1px solid var(--line);
}
.type { background: var(--bg); padding: 26px 22px 28px; }
.type h4 {
  font-size: 1rem; margin-bottom: 8px;
  padding-top: 14px; border-top: 2px solid var(--navy);
  display: inline-block;
}
.type p { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.75; }

/* ---------- Closing ---------- */
.closing { background: var(--navy-2); color: #fff; }
.closing-inner {
  padding-block: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap;
}
.closing h2 { color: #fff; font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
.closing p { margin: 0; color: #b9c2d0; }

/* ---------- Footer ---------- */
.footer { background: var(--bg); border-top: 1px solid var(--line); }
.footer-inner {
  padding-block: 36px 40px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px 48px;
  font-size: .84rem; color: var(--muted);
}
.footer p { margin: 0; }
.copy { direction: ltr; font-family: var(--font-en); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-head { position: static; }
  .types { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .container { padding-inline: 20px; }
  .hero-inner { padding-block: 72px 64px; }
  .hero-art { object-position: 20% center; opacity: .55; }
  .hero-shade { background: linear-gradient(to bottom, rgba(11,27,51,.6), rgba(11,27,51,.92)) !important; }
  .pillars { grid-template-columns: 1fr; }
  .section { padding-block: 72px; }
  .features { grid-template-columns: 1fr; }
  .feature:nth-child(n) { padding-inline: 0; border-inline-start: 0; }
  .types { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .container { padding-inline: 16px; }
  .types { grid-template-columns: 1fr; }
}
