/* Fonts (SIL Open Font License 1.1):
   Syne, Copyright 2019 The Syne Project Authors.
   Hanken Grotesk, Copyright 2021 The Hanken Grotesk Project Authors.
   El Messiri, Copyright 2015 The El Messiri Project Authors. */
@font-face {
  font-family: "Syne";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/syne-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/hanken-grotesk-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "El Messiri";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/el-messiri-arabic.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

:root {
  --brand: var(--adp-brand-color, #3D50E0);
  --accent: var(--adp-brand-accent, var(--brand));
  --brand-deep: color-mix(in oklab, var(--brand) 26%, #0B0C0F);
  --brand-tint: color-mix(in oklab, var(--brand) 12%, #F5F1E8);
  --on-brand: #FFFFFF;
  --brand-ink: color-mix(in oklab, var(--brand) 78%, #000000);

  --chalk: #F5F1E8;
  --sand: #EAE1CF;
  --paper: #FFFDF8;
  --ink: #14161A;
  --ink-2: #4A4C52;
  --line: rgba(20, 22, 26, .14);
  --night: #111317;
  --night-2: #1B1E24;
  --on-night: #F2EEE5;
  --on-night-2: #B9B5AC;
  --gold: #E8B64C;

  --display: "Syne", "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --text: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --track: -0.035em;
  --lh: 1.6;
  --lh-display: 1.02;
}
@supports (color: oklch(from red l c h)) {
  :root {
    --on-brand: oklch(from var(--brand) clamp(0.17, (0.7 - l) * 1000, 1) 0 0);
    --brand-ink: oklch(from var(--brand) min(l, 0.5) c h);
  }
}
:lang(ar) {
  --display: "El Messiri", "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --text: "El Messiri", "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --track: 0;
  --lh: 1.8;
  --lh-display: 1.25;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-block-start: 88px; }
body {
  margin: 0;
  background: var(--chalk);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: var(--lh);
  overflow-x: clip;
}
img, svg { display: block; max-inline-size: 100%; }
h1, h2, h3 { font-family: var(--display); letter-spacing: var(--track); line-height: var(--lh-display); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.wrap { max-inline-size: 1240px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 720px) { .wrap { padding-inline: 40px; } }

.skip {
  position: absolute; inset-inline-start: 12px; inset-block-start: -80px; z-index: 50;
  background: var(--ink); color: var(--chalk); padding: 12px 16px; border-radius: 10px; text-decoration: none;
}
.skip:focus { inset-block-start: 12px; }

/* Header */
.top {
  position: sticky; inset-block-start: 0; z-index: 20;
  background: color-mix(in srgb, var(--chalk) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-block-end: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 12px; min-block-size: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-inline-size: 0; flex: 1 1 auto; }
.brand img { inline-size: auto; block-size: 34px; max-inline-size: 120px; object-fit: contain; border-radius: 8px; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 1.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: var(--track); }
.nav-main { display: none; gap: 28px; font-size: .95rem; }
.nav-main a { text-decoration: none; color: var(--ink-2); padding-block: 10px; }
.nav-main a:hover { color: var(--ink); }
@media (min-width: 1040px) { .nav-main { display: flex; } }
.langs { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.langs a {
  min-inline-size: 36px; min-block-size: 36px; display: grid; place-items: center;
  font-size: .8rem; font-weight: 600; text-decoration: none; border-radius: 999px; color: var(--ink-2);
}
.langs a[aria-current="page"] { background: var(--ink); color: var(--chalk); }
.signin { display: none; text-decoration: none; font-weight: 600; padding: 10px 6px; }
@media (min-width: 720px) { .signin { display: inline-block; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-block-size: 48px; padding-inline: 22px; border-radius: 999px;
  background: var(--brand); color: var(--on-brand);
  font-weight: 700; text-decoration: none; white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 10px 24px -12px color-mix(in srgb, var(--brand) 80%, #000);
}
.btn:hover { background: color-mix(in oklab, var(--brand) 88%, #000); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--chalk); }
.top .btn { min-block-size: 44px; padding-inline: 16px; font-size: .92rem; }
@media (max-width: 420px) { .top .btn { display: none; } }
.arrow { inline-size: 18px; block-size: 18px; flex: none; }
[dir="rtl"] .arrow { scale: -1 1; }

/* Hero */
.hero { position: relative; padding-block: 48px 72px; overflow: hidden; }
.hero .wrap { display: grid; gap: 44px; align-items: center; }
@media (min-width: 1040px) { .hero { padding-block: 88px 120px; } .hero .wrap { grid-template-columns: 1.08fr .92fr; gap: 56px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-block-end: 22px;
  font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2);
}
:lang(ar) .eyebrow { text-transform: none; letter-spacing: 0; font-size: .95rem; }
.eyebrow::before { content: ""; inline-size: 26px; block-size: 2px; background: var(--brand); }
.hero h1 { font-size: clamp(2.6rem, 10.5vw, 6.2rem); font-weight: 800; }
:lang(ar) .hero h1 { font-size: clamp(2.4rem, 9.5vw, 5.4rem); font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--brand-ink); position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; inset-inline: 0; inset-block-end: .04em; block-size: .12em;
  background: var(--accent); opacity: .35; border-radius: 2px;
}
.lead { font-size: clamp(1.125rem, 2.4vw, 1.3rem); color: var(--ink-2); max-inline-size: 36ch; margin-block-start: 24px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 32px; }
.platform-line { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 34px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: .95rem; font-weight: 600; }
.platform-line li { display: flex; align-items: center; gap: 8px; }
.platform-line li::before { content: ""; inline-size: 7px; block-size: 7px; rotate: 45deg; background: var(--brand); }

/* Hero instrument: the dial */
.dial-card {
  position: relative; margin-inline: auto; inline-size: min(100%, 500px);
  background: var(--paper); border: 1px solid var(--line); border-radius: 28px;
  padding: 22px; box-shadow: 0 30px 60px -36px rgba(20,22,26,.55);
}
.dial-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .82rem; color: var(--ink-2); font-weight: 600; }
.dial-head b { color: var(--ink); font-family: var(--display); font-size: 1rem; letter-spacing: var(--track); }
.live { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 999px; background: var(--brand-tint); color: var(--brand-ink); }
.live::before { content: ""; inline-size: 7px; block-size: 7px; border-radius: 50%; background: var(--brand); }
.dial { margin-block: 14px; inline-size: 100%; block-size: auto; }
.dial .ring-text { font-family: var(--text); font-size: 13px; font-weight: 700; fill: var(--ink); }
.dial .weave { transform-origin: 200px 200px; }
.dial .node { fill: var(--brand); }
.dial .core { fill: var(--brand); }
.dial .core-star { fill: none; stroke: var(--on-brand); stroke-width: 2.2; stroke-linejoin: round; }
.stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: st; }
.stages li {
  counter-increment: st; border-block-start: 3px solid var(--line); padding-block-start: 8px;
  font-size: .78rem; font-weight: 700; color: var(--ink-2);
}
.stages li::before { content: "0" counter(st); display: block; font-family: var(--display); color: var(--ink); font-size: .9rem; }
.stages li.done { border-color: var(--brand); }
.stages li.now { border-image: linear-gradient(to right, var(--brand) 55%, var(--line) 55%) 1; }
[dir="rtl"] .stages li.now { border-image: linear-gradient(to left, var(--brand) 55%, var(--line) 55%) 1; }

/* Woven band */
.band { block-size: 34px; color: var(--ink); opacity: .9; }
.band svg { inline-size: 100%; block-size: 34px; }

/* Sections */
section.block { padding-block: 72px; }
@media (min-width: 1040px) { section.block { padding-block: 112px; } }
.kicker { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--brand-ink); margin-block-end: 14px; }
:lang(ar) .kicker { text-transform: none; letter-spacing: 0; font-size: .95rem; }
.night .kicker { color: color-mix(in oklab, var(--brand) 45%, #FFFFFF); }
h2 { font-size: clamp(2rem, 6.5vw, 3.5rem); font-weight: 800; max-inline-size: 18ch; }
:lang(ar) h2 { font-weight: 700; font-size: clamp(1.9rem, 6vw, 3.2rem); }
.sec-lead { color: var(--ink-2); max-inline-size: 52ch; margin-block-start: 18px; font-size: 1.125rem; }

/* Services */
.night { background: var(--night); color: var(--on-night); position: relative; isolation: isolate; }
.night .sec-lead { color: var(--on-night-2); }
.night::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .07;
  background-image: url(pattern.svg); background-size: 64px 64px;
}
.services { display: grid; gap: 14px; margin-block-start: 44px; }
@media (min-width: 720px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .services { grid-template-columns: repeat(4, 1fr); } .svc { min-block-size: 250px; } }
.svc {
  background: var(--night-2); border: 1px solid rgba(255,255,255,.08); border-radius: 22px;
  padding: 26px 22px 28px; display: flex; flex-direction: column; gap: 14px;
}
.svc .ico {
  inline-size: 48px; block-size: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand); color: var(--on-brand);
}
.svc .ico svg { inline-size: 24px; block-size: 24px; }
.svc h3 { font-size: 1.3rem; font-weight: 700; margin-block-start: auto; }
.svc p { color: var(--on-night-2); font-size: 1rem; }

/* Platforms */
.platforms { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; margin-block-start: 44px; }
@media (min-width: 720px) { .platforms { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .platforms { grid-template-columns: repeat(4, 1fr); } }
.plat { background: var(--paper); padding: 26px 22px; display: grid; gap: 10px; align-content: start; }
.plat h3 { font-size: 1.5rem; font-weight: 800; }
:lang(ar) .plat h3 { font-weight: 700; }
.plat .where { font-size: .85rem; font-weight: 700; color: var(--brand-ink); }
.plat p { color: var(--ink-2); font-size: 1rem; }

/* Process */
.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; } }
.steps li { counter-increment: s; display: grid; grid-template-columns: 64px 1fr; gap: 4px 16px; padding-block: 24px; border-block-start: 1px solid var(--line); }
@media (min-width: 1040px) { .steps li { grid-template-columns: 1fr; padding-block: 28px 0; border-block-start: 2px solid var(--ink); } }
.steps li::before {
  content: "0" counter(s); grid-row: span 2; font-family: var(--display); font-weight: 800;
  font-size: 2.4rem; line-height: 1; color: var(--brand-ink); letter-spacing: -0.04em;
}
.steps h3 { font-size: 1.3rem; font-weight: 700; }
.steps p { color: var(--ink-2); font-size: 1rem; }

/* Local */
.local { background: var(--sand); }
.local-grid { display: grid; gap: 40px; }
@media (min-width: 1040px) { .local-grid { grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; } }
.points { display: grid; gap: 14px; }
.point { background: var(--paper); border-radius: 20px; padding: 22px; display: grid; grid-template-columns: 44px 1fr; gap: 6px 16px; box-shadow: 0 1px 0 var(--line); }
.point .mark { grid-row: span 2; inline-size: 44px; block-size: 44px; border-radius: 12px; background: var(--brand-tint); color: var(--brand-ink); display: grid; place-items: center; }
.point .mark svg { inline-size: 22px; block-size: 22px; }
.point h3 { font-size: 1.15rem; font-weight: 700; }
.point p { color: var(--ink-2); font-size: 1rem; }
.langs-demo { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 28px; }
.langs-demo span { padding: 10px 16px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 700; }

/* FAQ */
.faq { display: grid; gap: 40px; }
@media (min-width: 1040px) { .faq { grid-template-columns: .8fr 1.2fr; gap: 72px; } }
.faq-list { border-block-start: 1px solid var(--line); }
details { border-block-end: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-block: 22px; font-weight: 700; font-size: 1.12rem; min-block-size: 44px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: none; inline-size: 14px; block-size: 14px;
  border-inline-end: 2px solid var(--ink); border-block-end: 2px solid var(--ink); rotate: 45deg; translate: 0 -4px;
}
details[open] summary::after { rotate: 225deg; translate: 0 3px; }
details p { color: var(--ink-2); padding-block-end: 22px; max-inline-size: 60ch; }

/* Final CTA */
.final { padding-block: 0 72px; }
@media (min-width: 1040px) { .final { padding-block-end: 112px; } }
.final-card {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 32px;
  background: var(--brand); color: var(--on-brand); padding: 48px 24px;
  display: grid; gap: 28px; justify-items: start;
}
@media (min-width: 720px) { .final-card { padding: 72px 56px; } }
.final-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .12;
  background-image: url(pattern.svg); background-size: 72px 72px;
}
.final-card h2 { max-inline-size: 16ch; }
.final-card p { max-inline-size: 44ch; font-size: 1.15rem; opacity: .92; }
.final-card .btn { background: var(--ink); color: var(--chalk); box-shadow: none; }
.final-card .btn:hover { background: #000; }
.final-card .btn.ghost { background: transparent; color: var(--on-brand); box-shadow: inset 0 0 0 1.5px currentColor; }
.final-card .btn.ghost:hover { background: rgba(0,0,0,.12); }

/* Footer */
footer { border-block-start: 1px solid var(--line); padding-block: 32px 96px; font-size: .95rem; color: var(--ink-2); }
footer .wrap { display: grid; gap: 18px; }
@media (min-width: 720px) { footer .wrap { grid-template-columns: 1fr auto; align-items: center; } }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-links a { padding-block: 10px; display: inline-block; }

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .18s; } .rise.d3 { animation-delay: .28s; } .rise.d4 { animation-delay: .4s; }
  .dial .weave { animation: turn 90s linear infinite; }
  .dial .node { animation: pop .6s cubic-bezier(.2,.9,.3,1.4) both; }
  .dial .n2 { animation-delay: .5s; } .dial .n3 { animation-delay: .7s; } .dial .n4 { animation-delay: .9s; } .dial .n1 { animation-delay: .3s; }
  .dial .ring-a { stroke-dasharray: 760; animation: draw 1.6s .2s ease-out both; }
  .svc, .plat, .point { transition: translate .25s ease, box-shadow .25s ease; }
  .svc:hover, .point:hover { translate: 0 -4px; }
}
@keyframes rise { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }
@keyframes turn { to { rotate: 360deg; } }
@keyframes pop { from { scale: 0; } to { scale: 1; } }
@keyframes draw { from { stroke-dashoffset: 760; } to { stroke-dashoffset: 0; } }
.dial .node { transform-box: fill-box; transform-origin: center; }
