
/* Layout idea: the site reads like a drawing sheet — a title block for the hero,
   a numbered department register, ruled sections instead of cards. One world, one theme. */
:root {
  color-scheme: light;
  --paper: #FFFFFF;
  --surface: #F5F6F8;
  --ink: #0B0C10;
  --muted: #5F6570;
  --line: #E2E5EA;
  --sand: #0A66FF;      /* the accent: one strong blue */
  --red: #F0443A;
  --green: #12B76A;
  --amber: #FFB020;
  --night: #0B0C10;
  --sans: "Inter", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --mono: "Inter", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --w: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
html[lang="ar"] body { font-family: "IBM Plex Sans Arabic", "Inter", Tahoma, sans-serif; line-height: 1.8; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--sand); outline-offset: 2px; }
html[lang="en"] [data-l="ar"], html[lang="ar"] [data-l="en"] { display: none !important; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.caps { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .caps { font-family: inherit; letter-spacing: 0; font-size: 12.5px; font-weight: 600; }
h1, h2, h3 { text-wrap: balance; margin: 0; line-height: 1.2; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { line-height: 1.45; }
p { margin: 0; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: var(--ink); color: var(--paper); }
.nav .wrap { display: flex; align-items: center; gap: 20px; min-height: 56px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 18px; text-decoration: none; display: flex; gap: 10px; align-items: baseline; }
.brand small { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; opacity: .7; text-transform: uppercase; }
.nav nav { display: flex; gap: 18px; margin-inline-start: auto; flex-wrap: wrap; }
.nav nav a { text-decoration: none; font-size: 14px; opacity: .85; }
.nav nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.lang { background: transparent; color: var(--paper); border: 1px solid rgba(246,244,238,.5); padding: 6px 12px; font: 600 13px var(--sans); cursor: pointer; min-height: 34px; }
.lang:hover { background: var(--paper); color: var(--ink); }
@media (max-width: 760px) { .nav nav { display: none; } .lang { margin-inline-start: auto; } }

/* scroll progress, drawn along the bottom of the header */
.nav { position: sticky; }
.prog { position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: var(--sand); transform: scaleX(0); transform-origin: left; }
html[dir="rtl"] .prog { transform-origin: right; }
.shot { overflow: hidden; }

/* MOTION. Everything rests visible and laid out normally; the rules below apply only
   when script has set html.anim (and never under prefers-reduced-motion). */
html.anim main { opacity: 0; }
html.anim.ready main { opacity: 1; transition: opacity .5s; }
/* opening: every part on the first screen floats in from its own direction, drifts, and lands.
   Uses the separate translate/rotate properties so it never fights the scroll transforms. */
html.anim .land { animation: land var(--du, 1.5s) cubic-bezier(.2,.75,.25,1) both; animation-delay: var(--dl, 0s); }
html.anim .hw { display: inline-block; white-space: pre; }
@keyframes land {
  0%   { opacity: 0; translate: var(--fx, 0px) var(--fy, -120px); rotate: var(--fr, 0deg); }
  45%  { opacity: 1; }
  74%  { translate: calc(var(--fx, 0px) * -0.05) calc(var(--fy, -120px) * -0.06); rotate: calc(var(--fr, 0deg) * -0.12); }
  100% { opacity: 1; translate: 0px 0px; rotate: 0deg; }
}

/* scene 1: the headline, then the product tilts up from the desk and takes its place */
html.anim .scene { height: 300vh; }
html.anim .tbwrap { position: absolute; left: 0; right: 0; top: 0; }
html.anim .tbwrap .tblock { margin-top: 0; border-color: transparent; background: transparent; }
html.anim .tbwrap .tblock > div { background: var(--surface); border: 0 !important; will-change: transform; }
html.anim .tbwrap .tblock { gap: 12px; }
html.anim .tbwrap .tblock b { font-size: clamp(26px, 3.4vw, 44px); line-height: 1.1; }
html.anim .scene-pin { position: sticky; top: 56px; height: calc(100vh - 56px); overflow: hidden; }
html.anim .hero { padding-top: 5vh; padding-bottom: 0; }
html.anim .hero-grid { display: block; text-align: center; will-change: transform; }
html.anim .hero-text { max-width: 860px; margin: 0 auto 30px; }
html.anim .hero h1 { font-size: clamp(34px, 5.4vw, 68px); }
html.anim .hero p.lead { margin-inline: auto; }
html.anim .cta { justify-content: center; }
html.anim .hero .shot { max-width: 1160px; margin: 0 auto; transform-origin: 50% 0; will-change: transform; box-shadow: 0 40px 90px rgba(20,33,61,.28); }

/* scene 2: the ten steps travel sideways while the page is held */
html.anim #loop { padding: 0; }
html.anim .hpin { position: sticky; top: 56px; height: calc(100vh - 56px); overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
html.anim .loop { display: flex; flex-wrap: nowrap; width: max-content; border: 0; background: transparent; gap: 18px; will-change: transform; }
html.anim .loop div { flex: none; width: min(380px, 80vw); min-height: min(360px, 44vh); padding: 26px; background: var(--surface); border: 1px solid var(--line) !important; border-radius: 28px; box-shadow: 0 12px 34px rgba(11,12,16,.07); display: flex; flex-direction: column; justify-content: flex-end; overflow: visible; }
html.anim .loop .n { display: block; font-size: 64px; line-height: 1; font-weight: 600; color: var(--sand); margin-bottom: auto; white-space: nowrap; }
html.anim .loop .ic { position: absolute; top: 26px; inset-inline-end: 26px; width: 56px; height: 56px; padding: 14px; border-radius: 18px; background: var(--c, var(--sand)); color: #fff; }
html.anim .loop b { font-size: 30px; line-height: 1.15; color: var(--ink); margin: 18px 0 8px; }
html[lang="ar"].anim .loop b { line-height: 1.4; }
html.anim .loop div > span:not(.n) { font-size: 16.5px; line-height: 1.5; }
html.anim .hbar { height: 2px; background: var(--line); margin-top: 26px; }
html.anim .hbar i { display: block; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; }
html.anim[dir="rtl"] .hbar i { transform-origin: right; }
.hbar { display: none; }
html.anim .hbar { display: block; }
html.anim .hpin > .wrap { width: 100%; min-width: 0; }

html.anim [data-m] { will-change: transform, opacity; }

/* scene 3: three cards dealt out from one pile */
html.anim .who { position: relative; border: 0; gap: 16px; }
html.anim .who article { border: 0 !important; will-change: transform; }

/* scene 4: one screen stays put; the text scrolls past it and the screen changes a different way each time */
html.anim .show { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 9fr); column-gap: clamp(32px, 5vw, 84px); }
html.anim .show .feat { grid-column: 1; display: flex; flex-direction: column; justify-content: center; min-height: 74vh; padding: 0; border: 0; }
html.anim .show .feat .txt { order: 0; }
html.anim .show .feat h3 { font-size: clamp(28px, 3.1vw, 50px); margin: 10px 0 16px; }
html.anim .show .feat p { font-size: clamp(16px, 1.25vw, 20px); }
html.anim .show .feat li { font-size: clamp(15px, 1.1vw, 18px); padding: 11px 0; }
html.anim .stage { grid-column: 2; grid-row: 1 / span 5; position: sticky; top: 90px; align-self: start; aspect-ratio: 1200 / 750; }
html.anim .stage .shot { position: absolute; inset: 0; will-change: transform, clip-path, opacity; box-shadow: 0 40px 90px rgba(0,0,0,.45); }
html.anim .stage .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
html.anim .rail { display: flex; gap: 8px; position: absolute; left: 0; right: 0; bottom: -26px; }
html.anim .rail i { flex: 1; height: 3px; background: rgba(246,244,238,.22); position: relative; overflow: hidden; }
html.anim .rail i b { position: absolute; inset: 0; background: var(--sand); transform: scaleX(0); transform-origin: left; }
html.anim[dir="rtl"] .rail i b { transform-origin: right; }
@media (max-width: 860px) {
  html.anim .show { display: block; }
  html.anim .stage { top: 56px !important; z-index: 3; margin: 0 -20px; aspect-ratio: auto; height: 62.5vw; background: var(--night); border-bottom: 1.5px solid rgba(246,244,238,.4); }
  html.anim .stage .shot { box-shadow: none; border-width: 0; }
  html.anim .rail { bottom: 6px; left: 20px; right: 20px; z-index: 9; }
  html.anim .show .feat { min-height: 64vh; }
}

/* scene 5: department rows arrive from alternate sides */
html.anim .reg-wrap { overflow: hidden; }
html.anim table.reg { min-width: 0; }

/* scene 6: a sentence that inks itself in as you read down */
html.anim .say .w { color: #CDD2DA; transition: color .25s; }
html.anim .say .w.on { color: var(--ink); }
html.anim .phones img { will-change: transform; }

/* scene 7: the last section opens like a shutter */
html.anim .demo { will-change: clip-path; }

/* hero / title block */
.hero { padding-top: 40px; padding-bottom: 28px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 36px; align-items: center; }
.hero h1 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 700; letter-spacing: -.01em; }
.hero p.lead { font-size: 18px; color: var(--muted); margin-top: 16px; max-width: 34em; }
.cta { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; font: 600 15px var(--sans); text-decoration: none; border: 1.5px solid var(--ink); cursor: pointer; }
html[lang="ar"] .btn { font-family: inherit; }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: #0c1630; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.shot { border: 1.5px solid var(--ink); background: var(--surface); }
.shot figcaption { border-top: 1px solid var(--line); padding: 7px 12px; display: flex; justify-content: space-between; gap: 10px; }
figure { margin: 0; }
.tblock { display: grid; grid-template-columns: repeat(4, 1fr); border: 1.5px solid var(--ink); margin-top: 32px; background: var(--surface); }
.tblock > div { padding: 10px 14px; border-inline-end: 1px solid var(--line); }
.tblock > div:last-child { border-inline-end: 0; }
.tblock b { display: block; font-size: 19px; font-weight: 600; margin-top: 2px; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .tblock { grid-template-columns: repeat(2, 1fr); } .tblock > div:nth-child(2) { border-inline-end: 0; } .tblock > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* sections */
section { padding: clamp(56px, 8vw, 112px) 0; }
.sec-head { border-bottom: 1.5px solid var(--ink); padding-bottom: 14px; margin-bottom: 30px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 44px); font-weight: 700; }
.sec-head .caps { margin-inline-start: auto; }
.intro { max-width: 44em; color: var(--muted); margin-bottom: 26px; font-size: 17px; }

/* loop */
.loop { display: grid; grid-template-columns: repeat(5, 1fr); border: 1.5px solid var(--ink); background: var(--surface); }
.loop div { padding: 14px; border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.loop div:nth-child(5n) { border-inline-end: 0; }
.loop div:nth-last-child(-n+5) { border-bottom: 0; }
.loop .n { font-family: var(--mono); font-size: 12px; color: var(--sand); font-weight: 600; }
.loop b { display: block; font-size: 16px; margin: 2px 0; }
.loop span { font-size: 13.5px; color: var(--muted); display: block; line-height: 1.45; }
@media (max-width: 860px) { .loop { grid-template-columns: repeat(2, 1fr); } .loop div { border-inline-end: 1px solid var(--line) !important; border-bottom: 1px solid var(--line) !important; } .loop div:nth-child(2n) { border-inline-end: 0 !important; } .loop div:nth-last-child(-n+2) { border-bottom: 0 !important; } }

/* step icons */
.loop b span, .loop div > span span { font-size: inherit; color: inherit; display: inline; line-height: inherit; }
.loop div { position: relative; }
.loop .ic { position: absolute; top: 12px; inset-inline-end: 12px; width: 22px; height: 22px; color: var(--sand); }
.loop .ic svg { width: 100%; height: 100%; display: block; }

/* the features band is ink: paper, ink, paper, ink down the page */
#features { background: var(--ink); color: var(--paper); }
#features .wrap { max-width: 1440px; }
#features .sec-head { border-color: rgba(246,244,238,.6); }
#features .caps { color: rgba(246,244,238,.62); }
#features .feat { border-color: rgba(246,244,238,.2); }
#features .feat p { color: rgba(246,244,238,.74); }
#features .feat li { border-color: rgba(246,244,238,.22); }
#features .stamp.new { border-color: var(--sand); color: var(--sand); }
#features .shot { border-color: rgba(246,244,238,.4); }
.rail { display: none; }
.fno { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: clamp(38px, 3.4vw, 56px); line-height: 1; font-weight: 600; color: var(--sand); margin-bottom: 16px; display: flex; align-items: center; gap: 14px; }
.fno::after { content: ""; height: 2px; width: 56px; background: var(--sand); }

/* who */
.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1.5px solid var(--ink); }
.who article { padding: 20px; background: var(--surface); border-inline-end: 1px solid var(--line); }
.who article:last-child { border-inline-end: 0; }
.who h3 { font-size: 19px; margin-bottom: 8px; }
.who p { color: var(--muted); font-size: 15px; }
.who ul { margin: 12px 0 0; padding-inline-start: 18px; font-size: 14.5px; }
.who li { margin: 3px 0; }
.stamp { display: inline-block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; border: 1.5px solid var(--green); color: var(--green); padding: 1px 7px; transform: rotate(-1.5deg); margin-bottom: 10px; }
html[lang="ar"] .stamp { font-family: inherit; letter-spacing: 0; font-size: 12px; font-weight: 600; }
.stamp.new { border-color: var(--red); color: var(--red); }
@media (max-width: 860px) { .who { grid-template-columns: 1fr; } .who article { border-inline-end: 0; border-bottom: 1px solid var(--line); } .who article:last-child { border-bottom: 0; } }

/* features */
.feat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); }
.feat:last-child { border-bottom: 0; }
.feat.flip > .txt { order: 2; }
.feat h3 { font-size: 23px; margin: 6px 0 10px; }
.feat p { color: var(--muted); }
.feat ul { margin: 14px 0 0; padding: 0; list-style: none; }
.feat li { padding: 7px 0; border-top: 1px solid var(--line); font-size: 15px; display: flex; gap: 10px; }
.feat li::before { content: "△"; color: var(--sand); font-size: 12px; line-height: 1.9; flex: none; }
@media (max-width: 860px) { .feat { grid-template-columns: 1fr; gap: 16px; } .feat.flip > .txt { order: 0; } }

/* register */
.reg-wrap { overflow-x: auto; border: 1.5px solid var(--ink); background: var(--surface); }
table.reg { width: 100%; border-collapse: collapse; min-width: 640px; }
.reg th { text-align: start; padding: 9px 14px; border-bottom: 1.5px solid var(--ink); }
.reg td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15px; }
.reg tr:last-child td { border-bottom: 0; }
.reg td:first-child { font-family: var(--mono); color: var(--sand); font-weight: 600; width: 52px; }
.reg td:nth-child(2) { font-weight: 600; white-space: nowrap; }
.reg td:nth-child(3) { color: var(--muted); }

/* phone + different */
.say { font-size: clamp(25px, 3.6vw, 46px); font-weight: 700; line-height: 1.25; max-width: 21em; margin-bottom: 44px; text-wrap: balance; }
html[lang="ar"] .say { line-height: 1.6; }
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 36px; align-items: start; }
.why { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.why div { padding: 16px 0; border-bottom: 1px solid var(--line); padding-inline-end: 18px; }
.why b { display: block; font-size: 17px; margin-bottom: 4px; }
.why span { color: var(--muted); font-size: 15px; }
.phones { display: flex; gap: 14px; justify-content: center; }
.phones img { width: 100%; max-width: 190px; border: 1.5px solid var(--ink); border-radius: 14px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .why { grid-template-columns: 1fr; } }

/* status + about */
.status { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.status h3 { font-size: 17px; margin-bottom: 8px; }
.status ul { margin: 0; padding-inline-start: 18px; color: var(--muted); font-size: 15px; }
.status li { margin: 5px 0; }
@media (max-width: 860px) { .status { grid-template-columns: 1fr; } }
.about { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 36px; }
.about p + p { margin-top: 12px; }
.about ul { margin: 0; padding: 0; list-style: none; border-top: 1.5px solid var(--ink); }
.about li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.about li span:last-child { color: var(--muted); text-align: end; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* demo request */
.demo { background: var(--ink); color: var(--paper); }
.demo .sec-head { border-color: var(--paper); }
.demo .caps, .demo .intro { color: rgba(246,244,238,.75); }
.form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 760px; }
.form label { display: block; font-size: 13.5px; }
.form label span { display: block; margin-bottom: 4px; opacity: .85; }
.form input, .form select, .form textarea { width: 100%; min-height: 44px; padding: 8px 10px; background: var(--surface); color: var(--ink); border: 1.5px solid var(--paper); font: 400 15px var(--sans); border-radius: 0; }
html[lang="ar"] .form input, html[lang="ar"] .form select, html[lang="ar"] .form textarea { font-family: inherit; }
.form .full { grid-column: 1 / -1; }
.demo .btn { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.demo .btn:hover { background: var(--sand); border-color: var(--sand); color: var(--ink); }
.out { margin-top: 18px; max-width: 760px; border: 1.5px solid var(--sand); padding: 14px; white-space: pre-wrap; font-size: 14.5px; background: rgba(246,244,238,.06); }
.out[hidden] { display: none; }
.note { margin-top: 10px; font-size: 13.5px; opacity: .8; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

footer { padding: 22px 0 34px; font-size: 13.5px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1.5px solid var(--ink); padding-top: 14px; }

/* ===== palette v2: white, near-black, one strong blue, three small signal colours; soft rounded shapes ===== */
body { -webkit-font-smoothing: antialiased; }
h1, h2, h3 { letter-spacing: -.022em; font-weight: 800; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; font-weight: 700; }
.caps { font-size: 12.5px; letter-spacing: .08em; font-weight: 600; }
.nav { background: rgba(255,255,255,.82); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); color: var(--ink); border-bottom: 1px solid var(--line); }
.brand small { opacity: .55; }
.lang { color: var(--ink); border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.lang:hover { background: var(--ink); color: #fff; }
.prog { background: linear-gradient(90deg, var(--sand), #6C4DFF); bottom: -2px; height: 2px; }
.btn { border-radius: 999px; border-width: 1px; padding: 0 26px; min-height: 48px; }
.btn.primary { background: var(--sand); border-color: var(--sand); color: #fff; }
.btn.primary:hover { background: #0854D6; }
.btn.ghost { border-color: var(--line); background: var(--surface); }
.btn.ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.hero .caps { color: var(--sand); }
.shot { border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.shot figcaption { border-top: 1px solid var(--line); }
.tblock { border: 0; background: transparent; gap: 12px; }
.tblock > div { background: var(--surface); border: 0 !important; border-radius: 22px; padding: 18px 20px; }
.tblock b { font-weight: 800; letter-spacing: -.02em; }
.tblock > div:nth-child(1) b { color: var(--sand); } .tblock > div:nth-child(2) b { color: var(--red); }
.tblock > div:nth-child(3) b { color: var(--green); } .tblock > div:nth-child(4) b { color: var(--ink); }
.sec-head { border-bottom: 0; padding-bottom: 0; margin-bottom: 22px; }
.loop { border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
html.anim .loop { border: 0; border-radius: 0; overflow: visible; }
.loop div:nth-child(4n+1) { --c: var(--sand); } .loop div:nth-child(4n+2) { --c: var(--red); }
.loop div:nth-child(4n+3) { --c: var(--amber); } .loop div:nth-child(4n+4) { --c: var(--green); }
.loop .n, html.anim .loop .n { color: var(--c, var(--sand)); font-weight: 800; letter-spacing: -.03em; }
.loop .ic { color: var(--c, var(--sand)); }
html.anim .loop div { background: #fff; }
html.anim .loop b { font-weight: 800; letter-spacing: -.02em; }
.hbar { background: var(--line) !important; border-radius: 2px; } .hbar i { background: var(--sand) !important; }
.who { border: 0; gap: 16px; }
.who article { background: var(--surface); border: 0; border-radius: 28px; padding: 28px; }
.who article:nth-child(2) { background: var(--ink); color: #fff; }
.who article:nth-child(2) p { color: rgba(255,255,255,.72); }
.stamp { transform: none; border: 0; border-radius: 999px; background: rgba(18,183,106,.14); color: var(--green); padding: 4px 12px; font-weight: 700; letter-spacing: .04em; }
.stamp.new { background: rgba(10,102,255,.16); color: #5B9BFF; }
#features { background: radial-gradient(1200px 600px at 85% 0%, rgba(10,102,255,.28), transparent 60%), var(--night); }
#features .stamp.new { border: 0; color: #7FB0FF; }
#features .shot { border-color: rgba(255,255,255,.14); }
.fno { color: #5B9BFF; font-weight: 800; letter-spacing: -.03em; }
.fno::after { background: #5B9BFF; border-radius: 2px; }
.feat li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sand); margin-top: .62em; }
#features .feat li::before { background: #5B9BFF; }
html.anim .rail i { border-radius: 2px; } html.anim .rail i b { background: #5B9BFF; }
.reg-wrap { border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.reg th { border-bottom: 1px solid var(--line); background: var(--surface); }
.reg td:first-child { color: var(--sand); font-weight: 800; }
.why { border-top: 0; gap: 0 28px; }
.why div { border-bottom: 1px solid var(--line); }
.phones img { border: 1px solid var(--line); border-radius: 26px; box-shadow: 0 24px 60px rgba(11,12,16,.16); }
.status > div { background: var(--surface); border-radius: 28px; padding: 28px; }
.status > div:first-child h3 { color: var(--green); } .status > div:last-child h3 { color: var(--amber); }
.about ul { border-top: 1px solid var(--line); }
.demo { background: linear-gradient(135deg, #0A66FF 0%, #0847C9 55%, #1B2A8F 100%); color: #fff; }
.demo .sec-head { border: 0; }
.form input, .form select, .form textarea { border: 0; border-radius: 14px; background: #fff; padding: 10px 14px; }
.demo .btn { background: #fff; border-color: #fff; color: #0847C9; }
.demo .btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.out { border: 1px solid rgba(255,255,255,.5); border-radius: 16px; background: rgba(255,255,255,.1); }
footer .wrap { border-top: 1px solid var(--line); }
html.anim .hero .shot { box-shadow: 0 50px 110px rgba(11,12,16,.22); }
/* the features band is light, like the rest of the page: no jump to black */
#features { background: var(--surface); color: var(--ink); }
#features .sec-head { border: 0; }
#features .caps { color: var(--muted); }
#features .feat { border-color: var(--line); }
#features .feat p { color: var(--muted); }
#features .feat li { border-color: var(--line); }
#features .shot { border-color: var(--line); }
#features .stamp.new { background: rgba(10,102,255,.12); color: var(--sand); }
#features .feat li::before { background: var(--sand); }
.fno { color: var(--sand); } .fno::after { background: var(--sand); }
html.anim .rail i { background: #D9DDE4; } html.anim .rail i b { background: var(--sand); }
html.anim .stage .shot { box-shadow: 0 30px 80px rgba(11,12,16,.16); }
@media (max-width: 860px) { html.anim .stage { background: var(--surface); border-bottom: 1px solid var(--line); } }
/* department numbers take the same four colours, in the same order, as the step cards */
.reg tbody tr:nth-child(4n+1) td:first-child { color: var(--sand); }
.reg tbody tr:nth-child(4n+2) td:first-child { color: var(--red); }
.reg tbody tr:nth-child(4n+3) td:first-child { color: var(--amber); }
.reg tbody tr:nth-child(4n+4) td:first-child { color: var(--green); }
.reg td:first-child { font-size: 17px; }
/* one accent only: blue. No red, yellow or green anywhere. */
.loop div:nth-child(n) { --c: var(--sand); }
html.anim .loop .ic { background: var(--ink); }
.reg tbody tr:nth-child(n) td:first-child { color: var(--sand); }
.tblock > div:nth-child(n) b { color: var(--ink); }
.status > div:first-child h3 { color: var(--sand); } .status > div:last-child h3 { color: var(--ink); }
.stamp { background: rgba(10,102,255,.12); color: var(--sand); }
/* step icons: Lucide line icons (ISC licence), blue on a soft blue tile */
html.anim .loop .ic { width: 68px; height: 68px; padding: 17px; border-radius: 22px; background: rgba(10,102,255,.10); color: var(--sand); top: 24px; inset-inline-end: 24px; }
/* step icons, large: a white line icon on a blue app-style tile, the main picture of each card */
html.anim .loop div { min-height: min(430px, 52vh); }
html.anim .loop .ic { width: 136px; height: 136px; padding: 34px; border-radius: 38px; top: 50%; inset-inline-end: 26px; transform: translateY(-62%);
  background: linear-gradient(145deg, #4C95FF 0%, #0A66FF 45%, #0747C4 100%); color: #fff; box-shadow: 0 22px 44px rgba(10,102,255,.34), inset 0 1px 0 rgba(255,255,255,.35); }
html.anim .loop .ic svg { stroke-width: 1.5; }
@media (max-width: 760px) { html.anim .loop .ic { width: 104px; height: 104px; padding: 26px; border-radius: 30px; inset-inline-end: 20px; } }
.loop .ic { width: 26px; height: 26px; }
/* the step number enters very large (behind the icon tile) and shrinks to its place by the middle of the window */
html.anim .loop .n { position: relative; z-index: 1; letter-spacing: -.05em; }
html.anim .loop .ic { z-index: 2; }
html.anim .loop b, html.anim .loop div > span:not(.n) { position: relative; z-index: 2; }
/* numbers are black, the icon tile is blue: two different things, two colours */
.loop .n, html.anim .loop .n { color: var(--ink); }

/* ===== v3: outlined numbers, self-drawing icons, the inner pages ===== */
.loop .n, html.anim .loop .n { color: transparent; -webkit-text-stroke: 2px var(--ink); font-weight: 800; }
.fno { color: transparent; -webkit-text-stroke: 1.6px var(--sand); }
svg.dr * { stroke-dasharray: 1 2; stroke-dashoffset: 0; }
html.anim svg.dr * { stroke-dashoffset: calc((1 - var(--draw, 0)) * 1.5); }

[hidden] { display: none !important; }

/* nav */
.nav nav a.on { opacity: 1; font-weight: 700; color: var(--sand); }
.nav nav a.navcta { background: var(--sand); color: #fff; opacity: 1; padding: 7px 16px; border-radius: 999px; font-weight: 600; }
.nav nav a.navcta:hover { background: #0854D6; text-decoration: none; }
.burger { display: none; margin-inline-start: auto; width: 40px; height: 36px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; align-items: center; justify-content: center; }
.burger span, .burger span::before, .burger span::after { content: ""; display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; }
.burger span::before { position: absolute; top: -6px; } .burger span::after { position: absolute; top: 6px; }
@media (max-width: 900px) {
  .burger { display: inline-flex; } .lang { margin-inline-start: 0; }
  .nav nav { display: none; order: 9; width: 100%; flex-direction: column; gap: 4px; margin: 0; padding: 6px 0 14px; }
  .nav nav.open { display: flex; }
  .nav nav a { padding: 10px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav nav a.navcta { text-align: center; border: 0; margin-top: 8px; }
}

/* inner-page hero */
.phero { padding: clamp(48px, 7vw, 96px) 0 clamp(28px, 4vw, 48px); text-align: center; }
.phero .caps { color: var(--sand); }
.phero h1 { font-size: clamp(34px, 5.2vw, 66px); max-width: 16em; margin: 12px auto 0; }
.phero .lead { font-size: clamp(17px, 1.5vw, 21px); color: var(--muted); max-width: 40em; margin: 18px auto 0; }
.phero .cta { justify-content: center; }
.phero .pshot { max-width: 1080px; margin: 44px auto 0; box-shadow: 0 50px 110px rgba(11,12,16,.2); }

/* feature rows (features page) */
.frow { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding: clamp(36px, 5vw, 72px) 0; }
.frow:nth-of-type(even) > .ftx { order: 2; }
.frow h2 { font-size: clamp(26px, 2.8vw, 42px); margin: 10px 0 14px; }
.frow p { color: var(--muted); font-size: clamp(16px, 1.2vw, 19px); }
.frow ul { list-style: none; margin: 18px 0 0; padding: 0; }
.frow li { display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: clamp(15px, 1.05vw, 17px); }
.frow li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--sand); margin-top: .62em; }
.frow .shot { box-shadow: 0 30px 80px rgba(11,12,16,.14); }
.band { background: var(--surface); }
@media (max-width: 860px) { .frow { grid-template-columns: 1fr; } .frow:nth-of-type(even) > .ftx { order: 0; } }

/* card grids (departments, stages, steps) */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1000px) { .grid3, .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid3, .grid4 { grid-template-columns: 1fr; } }
.dcard { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 26px; box-shadow: 0 12px 34px rgba(11,12,16,.06); display: flex; flex-direction: column; }
.band .dcard { box-shadow: none; }
.dcard .top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; }
.dcard .no { font-size: 54px; line-height: 1; font-weight: 800; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.8px var(--ink); font-variant-numeric: tabular-nums; }
.dcard .tile { width: 84px; height: 84px; padding: 21px; border-radius: 26px; color: #fff; background: linear-gradient(145deg, #4C95FF 0%, #0A66FF 45%, #0747C4 100%); box-shadow: 0 16px 32px rgba(10,102,255,.3), inset 0 1px 0 rgba(255,255,255,.35); flex: none; }
.dcard .tile svg { width: 100%; height: 100%; display: block; stroke-width: 1.5; }
.dcard h3 { font-size: 23px; margin-bottom: 6px; }
.dcard p { color: var(--muted); font-size: 15.5px; }
.dcard ul { margin: 16px 0 0; padding: 0; list-style: none; }
.dcard li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 14.5px; display: flex; gap: 10px; }
.dcard li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--sand); margin-top: .7em; }
.stagecard .no { font-size: 44px; }
.stagecard .pct { font-weight: 800; color: var(--sand); font-size: 15px; background: rgba(10,102,255,.1); border-radius: 999px; padding: 5px 12px; }

/* closing call band + footer */
.cband { background: linear-gradient(135deg, #0A66FF 0%, #0847C9 55%, #1B2A8F 100%); color: #fff; text-align: center; }
.cband h2 { font-size: clamp(28px, 3.6vw, 48px); max-width: 18em; margin: 0 auto 14px; }
.cband p { color: rgba(255,255,255,.82); max-width: 36em; margin: 0 auto 26px; font-size: 18px; }
.cband .btn { background: #fff; border-color: #fff; color: #0847C9; }
.cband .btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
footer { padding: 40px 0 34px; }
footer .wrap { display: block; border-top: 1px solid var(--line); padding-top: 26px; }
.fgrid { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.fgrid nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.fgrid nav a { text-decoration: none; color: var(--ink); font-size: 14.5px; }
.fgrid nav a:hover { color: var(--sand); }
.fnote { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; }

/* contact page */
.cgrid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .cgrid { grid-template-columns: 1fr; } }
.formcard { background: linear-gradient(135deg, #0A66FF 0%, #0847C9 55%, #1B2A8F 100%); color: #fff; border-radius: 32px; padding: clamp(22px, 3vw, 40px); }
.formcard .form { max-width: none; }
.form .bad { outline: 3px solid #FFD0CC; }
.need { margin-top: 12px; background: rgba(255,255,255,.16); border-radius: 12px; padding: 10px 14px; font-size: 14.5px; }
.sendrow { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.steps3 { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps3 li { counter-increment: s; display: grid; grid-template-columns: 58px 1fr; gap: 6px 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.steps3 li::before { content: "0" counter(s); grid-row: span 2; font-size: 38px; line-height: 1; font-weight: 800; color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.steps3 b { font-size: 19px; } .steps3 span { color: var(--muted); grid-column: 2; }
.demo.shutter { will-change: clip-path; }
.direct { margin-top: 26px; background: var(--surface); border-radius: 24px; padding: 22px; display: grid; gap: 8px; }
.direct b { font-size: 17px; } .direct a { color: var(--sand); text-decoration: none; font-weight: 600; font-size: 17px; } .direct a:hover { text-decoration: underline; }
.fnote a { color: inherit; }
.out { color: #fff; }

/* the live demo, in the menu of every page: outlined, beside the filled "Request a demo" */
.nav nav a.navdemo { color: #0A66FF; opacity: 1; padding: 6px 14px; border-radius: 999px; font-weight: 600; border: 1.5px solid #0A66FF; }
.nav nav a.navdemo:hover { background: #0A66FF; color: #fff; text-decoration: none; }
@media (max-width: 900px) { .nav nav a.navdemo { text-align: center; margin-top: 8px; } }

/* Outlined numbers, drawn properly. A bare text-stroke on a see-through fill
   shows every place the letter's own shapes overlap — the "4" came out with
   lines through it. The stroke is now painted first and the fill (the colour
   of whatever the number sits on) is painted over its inner half, so only the
   outside line is left. Stroke widths are doubled because half is covered. */
.loop .n, html.anim .loop .n { color: #fff; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; }
.fno { color: var(--paper-here, #fff); -webkit-text-stroke: 3.2px var(--sand); paint-order: stroke fill; }
.dcard .no { color: #fff; -webkit-text-stroke: 3.6px var(--ink); paint-order: stroke fill; }
.steps3 li::before { color: #fff; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }
#features { --paper-here: #F5F6F8; }

/* ── the departments in orbit (index, #departments) ───────────────────────
   Twelve department tiles turn slowly around the Al-Asas core; each tile
   counter-turns so its icon and name stay upright. Hover or focus stops the
   orbit so a tile can be read and clicked. Reduced motion: a still ring. */
.orbit { --r: 250px; --t: 70s; position: relative; width: calc(var(--r) * 2 + 120px); height: calc(var(--r) * 2 + 120px); max-width: 100%; margin: 8px auto 40px; }
.orb-core { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 170px; height: 170px; border-radius: 50%; display: grid; place-content: center; text-align: center; color: #fff; font-weight: 800; font-size: 26px; background: radial-gradient(circle at 35% 30%, #4C95FF, #0A66FF 55%, #0747C4); box-shadow: 0 30px 60px rgba(10,102,255,.35), inset 0 2px 0 rgba(255,255,255,.35); z-index: 2; }
.orb-core small { display: block; font-size: 12px; font-weight: 600; opacity: .85; letter-spacing: .04em; }
.orb-ring { position: absolute; inset: 0; border-radius: 50%; animation: orb-spin var(--t) linear infinite; }
.orb-ring::before { content: ""; position: absolute; inset: 60px; border-radius: 50%; border: 1.5px dashed rgba(10,102,255,.25); }
.orb-t { position: absolute; left: 50%; top: 50%; width: 92px; margin: -46px 0 0 -46px; text-decoration: none; color: inherit;
  transform: rotate(calc(360deg / var(--n) * var(--i))) translateY(calc(var(--r) * -1)) rotate(calc(-360deg / var(--n) * var(--i))); }
.orb-face { display: grid; justify-items: center; gap: 6px; animation: orb-spin var(--t) linear infinite reverse; }
.orb-face svg { width: 64px; height: 64px; padding: 16px; border-radius: 20px; color: #fff; background: linear-gradient(145deg, #4C95FF 0%, #0A66FF 45%, #0747C4 100%); box-shadow: 0 14px 28px rgba(10,102,255,.3), inset 0 1px 0 rgba(255,255,255,.35); transition: transform .25s ease; }
.orb-face b { font-size: 12.5px; font-weight: 700; text-align: center; line-height: 1.25; background: rgba(255,255,255,.92); padding: 2px 8px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.orb-t:hover .orb-face svg, .orb-t:focus-visible .orb-face svg { transform: scale(1.12); }
.orbit:hover .orb-ring, .orbit:hover .orb-face, .orbit:focus-within .orb-ring, .orbit:focus-within .orb-face { animation-play-state: paused; }
@keyframes orb-spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) { .orbit { --r: 150px; } .orb-core { width: 110px; height: 110px; font-size: 18px; } .orb-t { width: 70px; margin: -35px 0 0 -35px; } .orb-face svg { width: 46px; height: 46px; padding: 11px; border-radius: 14px; } .orb-face b { font-size: 10px; } }
@media (max-width: 420px) { .orbit { --r: 125px; } }
@media (prefers-reduced-motion: reduce) { .orb-ring, .orb-face { animation: none; } }

/* ── scene 2: the ten steps on a circle that turns ──────────────────────
   The steps used to run past on a straight rail. They now stand on a ring
   lying in the page: the step at the front faces the reader at full size,
   and the others lean away around the circle, further back and smaller the
   further round they are. site.js puts each tile on its own point of the
   ring — --x across, --z into the page, --a its own turn, --o how much of
   it is left to see — and the perspective below is what makes distance
   read as size. Without the anim class the plain grid is untouched. */
html.anim .loop {
  display: block; position: relative; width: 100%; height: min(430px, 52vh);
  gap: 0; border: 0; background: transparent;
  perspective: 1100px; perspective-origin: 50% 48%;
}
html.anim .loop > div {
  position: absolute; inset: 0; margin: auto;
  width: min(380px, 80vw); height: min(430px, 52vh); min-height: 0; flex: none;
  transform-origin: 50% 50%; backface-visibility: hidden;
  transform: translate3d(var(--x, 0px), 0, var(--z, 0px)) rotateY(var(--a, 0deg));
  opacity: var(--o, 1);
  will-change: transform, opacity;
}
@media (max-width: 760px) {
  html.anim .loop, html.anim .loop > div { height: min(430px, 58vh); }
}
