:root {
  --navy: #07111f;
  --navy-2: #0c1a2e;
  --panel: rgba(16, 36, 64, 0.72);
  --line: rgba(186, 210, 255, 0.16);
  --blue: #2f6bff;
  --blue-2: #7aa2ff;
  --ice: #e7eefb;
  --muted: #b4c2d8;
  --silver: #d5deea;
  --white: #f7f9fc;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --max: 1140px;
  --header: 78px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  font-family: Manrope, "Segoe UI", sans-serif;
  background:
    radial-gradient(900px 480px at 100% -10%, rgba(47, 107, 255, 0.28), transparent 60%),
    radial-gradient(700px 420px at -10% 15%, rgba(47, 107, 255, 0.14), transparent 55%),
    var(--navy);
  color: var(--ice);
  line-height: 1.65;
}
html[lang="ar"] body {
  font-family: "IBM Plex Sans Arabic", Tahoma, sans-serif;
  line-height: 1.85;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -40px;
  background: var(--white);
  color: var(--navy);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header);
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px);
  background: rgba(7, 17, 31, 0.72);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { width: 46px; height: 46px; flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name strong { font-size: 14px; letter-spacing: 0.08em; font-weight: 750; }
html[lang="ar"] .brand-name strong { letter-spacing: 0; font-size: 16px; }
.brand-name span { color: var(--blue-2); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
html[lang="ar"] .brand-name span { letter-spacing: 0; text-transform: none; font-size: 12px; }

.nav-links { display: flex; align-items: center; gap: 22px; margin-inline-start: auto; }
.nav-links a { color: var(--silver); font-size: 14px; }
.nav-links a:hover { color: white; }
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.lang-switch { display: flex; align-items: center; gap: 6px; }
.lang {
  width: 42px;
  height: 30px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  place-items: center;
}
.lang svg { width: 32px; height: 16px; }
.lang[aria-pressed="true"] {
  border-color: var(--blue-2);
  box-shadow: 0 0 0 1px var(--blue);
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 21px;
  height: 2px;
  background: white;
  box-shadow: 0 -7px 0 white, 0 7px 0 white;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 18px;
  border: 1px solid transparent;
  transition: 0.2s ease;
}
.btn-primary { background: var(--blue); color: white; box-shadow: 0 10px 30px rgba(47, 107, 255, 0.28); }
.btn-primary:hover { background: #4c82ff; }
.btn-ghost { border-color: var(--line); background: rgba(255, 255, 255, 0.03); color: var(--white); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.35); }
.btn-small { padding: 9px 14px; font-size: 14px; }

.hero { padding: 34px 0 20px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
}
.eyebrow {
  color: var(--blue-2);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
}
html[lang="ar"] .eyebrow { letter-spacing: 0.04em; text-transform: none; font-size: 14px; }
h1 { font-size: clamp(40px, 5vw, 68px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 750; }
html[lang="ar"] h1 { letter-spacing: 0; line-height: 1.25; font-weight: 700; }
h1 .grad {
  display: block;
  color: transparent;
  background: linear-gradient(90deg, #ffffff 10%, #8eb0ff 80%);
  -webkit-background-clip: text;
  background-clip: text;
}
.lede { margin-top: 18px; color: var(--muted); font-size: 18px; max-width: 58ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--silver);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.03);
}

.hero-stage { position: relative; min-height: 520px; }
.blob {
  position: absolute;
  border-radius: 46% 54% 42% 58%;
  background: linear-gradient(160deg, rgba(47, 107, 255, 0.55), rgba(10, 28, 58, 0.2));
  filter: blur(2px);
}
.blob-a { width: 280px; height: 340px; inset-inline-end: -20px; top: -30px; }
.blob-b { width: 180px; height: 180px; inset-inline-start: 20px; bottom: 30px; background: linear-gradient(180deg, #1d4ed8, transparent); opacity: 0.7; }
.scene-card {
  position: relative;
  height: 520px;
  border-radius: 36px 36px 80px 36px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(500px 240px at 70% 20%, rgba(90, 140, 255, 0.28), transparent 60%),
    linear-gradient(180deg, #10284a 0%, #091525 55%, #071018 100%);
  box-shadow: var(--shadow);
}
html[dir="rtl"] .scene-card { border-radius: 36px 36px 36px 80px; }
.hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.card { overflow: hidden; }
.card-photo {
  width: calc(100% + 40px);
  height: 168px;
  margin: -20px -20px 8px;
  object-fit: cover;
  object-position: 72% center;
}
.band { overflow: hidden; }
.band-photo {
  width: calc(100% + 56px);
  height: 190px;
  margin: -28px -28px 16px;
  object-fit: cover;
  object-position: center;
}
.float-card {
  position: absolute;
  inset-inline-start: -18px;
  bottom: 36px;
  width: min(280px, 80%);
  padding: 16px 16px 14px;
  border-radius: 18px;
  background: rgba(8, 16, 30, 0.78);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.float-card span { color: var(--blue-2); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
html[lang="ar"] .float-card span { letter-spacing: 0; text-transform: none; }
.float-card strong { display: block; margin-top: 6px; font-size: 16px; line-height: 1.45; }

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 28px 0 10px;
}
.metric {
  padding: 18px 16px;
  border-top: 1px solid var(--line);
}
.metric b { display: block; font-size: 15px; margin-bottom: 4px; }
.metric span { color: var(--muted); font-size: 14px; }

section { padding: 78px 0; scroll-margin-top: 86px; }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head h2, .band h2, .split h2, .contact-grid h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
html[lang="ar"] .section-head h2,
html[lang="ar"] .band h2,
html[lang="ar"] .split h2,
html[lang="ar"] .contact-grid h2 { letter-spacing: 0; line-height: 1.35; }
html[lang="ar"] .band h2 { max-width: none; }
.index-no { color: var(--blue); font-weight: 750; letter-spacing: 0.14em; font-size: 13px; margin-bottom: 8px; }
.section-head p, .split .copy p { color: var(--muted); margin-top: 12px; }

.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: stretch; }
.panel {
  background: linear-gradient(180deg, rgba(18, 40, 74, 0.72), rgba(10, 20, 36, 0.8));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.principles { display: grid; gap: 14px; }
.principles article { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.principles article:last-child { border-bottom: 0; padding-bottom: 0; }
.principles h3 { font-size: 18px; margin-bottom: 6px; }
.principles p { color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filters button {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--silver);
  padding: 8px 14px;
}
.filters button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: white; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(12, 26, 48, 0.66);
}
.card:hover { border-color: rgba(122, 162, 255, 0.45); transform: translateY(-2px); transition: 0.2s ease; }
.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(47, 107, 255, 0.14);
  color: var(--blue-2);
}
.card h3 { font-size: 20px; line-height: 1.35; }
.card p { color: var(--muted); }
.card ul { display: grid; gap: 6px; margin-top: 4px; }
.card li { position: relative; padding-inline-start: 16px; color: var(--silver); font-size: 14px; }
.card li:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  position: absolute;
  inset-inline-start: 0;
  top: 0.65em;
}
.card .text-link { margin-top: auto; color: var(--blue-2); font-weight: 700; font-size: 14px; }
.note {
  margin-top: 16px;
  padding: 14px 16px;
  border-inline-start: 3px solid var(--blue);
  color: var(--muted);
  background: rgba(47, 107, 255, 0.08);
  border-radius: 0 12px 12px 0;
}
html[dir="rtl"] .note { border-radius: 12px 0 0 12px; }

.bands { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 16px; }
.band {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(400px 180px at 100% 0%, rgba(47, 107, 255, 0.35), transparent 60%),
    #0d1c33;
}
.band.wide { grid-column: 1 / -1; }
.band .num { font-size: 42px; font-weight: 750; color: rgba(255, 255, 255, 0.18); letter-spacing: -0.04em; }
.band h2 { max-width: 16ch; margin: 8px 0 10px; }
.band p { color: var(--muted); max-width: 62ch; }
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; margin-top: 18px; }
.checklist li { padding-inline-start: 18px; position: relative; }
.checklist li:before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--blue); position: absolute; inset-inline-start: 0; top: 0.65em; }

.sectors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sector { padding: 20px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.sector h3 { margin: 8px 0; font-size: 18px; }
.sector p { color: var(--muted); font-size: 14px; }
.sector span { color: var(--blue-2); font-size: 12px; letter-spacing: 0.12em; }
html[lang="ar"] .sector span { letter-spacing: 0; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step { padding: 20px; border-radius: 18px; background: rgba(12, 28, 52, 0.7); border: 1px solid var(--line); }
.step b { display: block; color: var(--blue-2); margin-bottom: 10px; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14px; }

.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 22px; }
.contact-list { display: grid; gap: 14px; margin-top: 22px; }
.contact-list a, .contact-list div { display: block; }
.contact-list span { display: block; color: var(--muted); font-size: 13px; }
.contact-list strong { font-size: 18px; font-weight: 680; }
form { display: grid; gap: 12px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: grid; gap: 6px; font-size: 13px; color: var(--silver); }
label.full { grid-column: 1 / -1; }
input, select, textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(5, 12, 24, 0.55);
  padding: 12px 12px;
  outline: none;
  font-size: 16px;
}
.contact-list strong { overflow-wrap: anywhere; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue-2); }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 13px; }
.check input { width: 18px; height: 18px; margin-top: 3px; }
.form-note { color: #b7f0c8; min-height: 1.2em; }
.form-actions { display: flex; justify-content: flex-start; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: end; }
.site-footer strong { color: var(--white); display: block; margin-bottom: 4px; }

:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; }

@media (max-width: 1023px) {
  .hero-grid, .split, .bands, .contact-grid { grid-template-columns: 1fr; }
  .grid, .sectors, .steps, .metrics { grid-template-columns: 1fr 1fr; }
  .hero-stage { min-height: 0; }
  .scene-card { height: 420px; }
  .float-card { inset-inline-start: 16px; width: min(320px, calc(100% - 32px)); }
  .header-actions { margin-inline-start: auto; }
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none;
    position: absolute;
    z-index: 40;
    inset-inline: 16px;
    top: calc(100% + 8px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    background: #0c1930;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 12px; font-size: 16px; }
  .band h2 { max-width: none; }
  section { padding: 64px 0; }
}

@media (max-width: 699px) {
  .grid, .sectors, .steps, .metrics, .fields, .checklist { grid-template-columns: 1fr; }
  .wrap, .header-inner { width: min(var(--max), calc(100% - 28px)); }
  .header-inner { gap: 10px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-name span { display: none; }
  .brand-name strong { font-size: 14px; letter-spacing: 0; }
  .header-actions .btn { display: none; }
  .lang { width: 38px; height: 32px; }
  h1 { font-size: 32px; }
  .lede { font-size: 16px; }
  .hero { padding-top: 18px; }
  .hero-grid { gap: 22px; }
  .hero-actions .btn { flex: 1 1 150px; }
  .scene-card { height: 280px; border-radius: 22px; }
  html[dir="rtl"] .scene-card { border-radius: 22px; }
  .blob { display: none; }
  .float-card {
    inset-inline: 12px;
    bottom: 12px;
    width: auto;
    padding: 12px;
  }
  .card-photo { height: 200px; }
  .band-photo { height: 180px; }
  .band { padding: 0 0 22px; }
  .band-photo { width: 100%; margin: 0 0 16px; border-radius: 22px 22px 0 0; }
  .band h2, .band p, .band .num, .checklist { margin-inline: 18px; }
  .checklist { margin-top: 14px; }
  section { padding: 48px 0; }
  .contact-list strong { font-size: 16px; }
  .panel { padding: 18px; }
  .site-footer { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}
