/* ==========================================================================
   Mafhoom · مفهوم — website styles
   Built on the Mafhoom design system (tokens, Neo Sans W23, pill + ring geometry).
   Layout concept: one phone call, understood — the page follows a pilgrim's
   call from the first ring to the answer, framed by the brand's arc crescents.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face { font-family: "Neo Sans W23"; src: url("../fonts/NeoSansW23-Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Neo Sans W23"; src: url("../fonts/NeoSansW23-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Neo Sans W23"; src: url("../fonts/NeoSansW23-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Neo Sans W23"; src: url("../fonts/NeoSansW23-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Tokens (from the Mafhoom design system) ---------- */
:root {
  /* Brand palette — fixed in every theme */
  --mint-100: #00e9a8;
  --mint-80: #33edb9;
  --mint-40: #99f6dc;
  --mint-20: #ccfbee;
  --violet-100: #5c08e1;
  --violet-80: #7d39e7;
  --violet-60: #9d6bed;
  --violet-40: #be9cf3;
  --violet-20: #decef9;
  --charcoal: #2d2c28;
  --ink-fixed: #2d2c28;
  --white: #ffffff;

  /* Semantic — light theme */
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-sunken: #f5f4f1;
  --line: #e4e2dd;
  --line-strong: #8a8780;
  --ink: #2d2c28;
  --ink-muted: #6b6862;
  --primary: #5c08e1;
  --primary-hover: #7d39e7;
  --on-primary: #ffffff;
  --primary-soft: #decef9;
  --primary-text: #5c08e1;
  --accent: #00e9a8;
  --on-accent: #2d2c28;
  --accent-soft: #ccfbee;
  --success-text: #00785a;
  --danger: #c4262e;
  --danger-soft: #fdecec;
  --focus: #5c08e1;
  --nav-bg: rgba(255, 255, 255, 0.78);
  --scrim: rgba(45, 44, 40, 0.4);
  --grid-line: rgba(45, 44, 40, 0.06);
  --shadow-sm: 0 1px 2px rgba(45, 44, 40, 0.08);
  --shadow-md: 0 8px 24px rgba(45, 44, 40, 0.10);
  --shadow-lg: 0 24px 64px -12px rgba(45, 44, 40, 0.22);
  --logo-filter: brightness(0) saturate(100%) opacity(0.72);

  /* The deep section (sovereign AI) — dark in both themes */
  --deep: #2d2c28;
  --deep-raised: #3a3934;
  --deep-line: rgba(244, 243, 240, 0.14);
  --on-deep: #f4f3f0;
  --on-deep-muted: #c9c5bd;

  /* Type */
  --font-sans: "Neo Sans W23", "Segoe UI", Tahoma, system-ui, -apple-system, sans-serif;
  --fs-display: clamp(2.6rem, 1.55rem + 4.6vw, 5.25rem);
  --fs-h2: clamp(2rem, 1.45rem + 2.3vw, 3.25rem);
  --fs-h3: 1.5rem;
  --fs-subtitle: 1.125rem;
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-body: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.75rem;

  /* Space (space-1 … space-8) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --section-y: clamp(64px, 8vw, 104px);
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  /* Motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --nav-h: 72px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: #1a1917;
    --surface-raised: #2d2c28;
    --surface-sunken: #141311;
    --line: #3d3b36;
    --line-strong: #77736b;
    --ink: #f4f3f0;
    --ink-muted: #b3afa7;
    --primary: #7d39e7;
    --primary-hover: #9d6bed;
    --on-primary: #ffffff;
    --primary-soft: #2e1a57;
    --primary-text: #be9cf3;
    --accent-soft: #0f3d31;
    --success-text: #33edb9;
    --danger: #ff8a80;
    --danger-soft: #3b1618;
    --focus: #be9cf3;
    --nav-bg: rgba(26, 25, 23, 0.78);
    --scrim: rgba(0, 0, 0, 0.6);
    --grid-line: rgba(244, 243, 240, 0.05);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 64px -12px rgba(0, 0, 0, 0.7);
    --logo-filter: brightness(0) invert(1) opacity(0.78);
    --deep: #0f0e0d;
    --deep-raised: #22211e;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --surface: #1a1917;
  --surface-raised: #2d2c28;
  --surface-sunken: #141311;
  --line: #3d3b36;
  --line-strong: #77736b;
  --ink: #f4f3f0;
  --ink-muted: #b3afa7;
  --primary: #7d39e7;
  --primary-hover: #9d6bed;
  --on-primary: #ffffff;
  --primary-soft: #2e1a57;
  --primary-text: #be9cf3;
  --accent-soft: #0f3d31;
  --success-text: #33edb9;
  --danger: #ff8a80;
  --danger-soft: #3b1618;
  --focus: #be9cf3;
  --nav-bg: rgba(26, 25, 23, 0.78);
  --scrim: rgba(0, 0, 0, 0.6);
  --grid-line: rgba(244, 243, 240, 0.05);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 64px -12px rgba(0, 0, 0, 0.7);
  --logo-filter: brightness(0) invert(1) opacity(0.78);
  --deep: #0f0e0d;
  --deep-raised: #22211e;
  color-scheme: dark;
}

/* Theme-dependent images (logo variants) */
.only-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-light { display: none !important; }
  :root:not([data-theme="light"]) .only-dark { display: inline-block !important; }
}
:root[data-theme="dark"] .only-light { display: none !important; }
:root[data-theme="dark"] .only-dark { display: inline-block !important; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.625;
  font-weight: 400;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--primary); color: var(--on-primary); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

html[lang="ar"] body { line-height: 1.8; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { line-height: 1.35; letter-spacing: 0 !important; }

/* Hold the page while Arabic is applied on first load (max ~600ms, see main.js) */
html.i18n-pending body { opacity: 0; }
body { transition: opacity 240ms ease; }

.skip {
  position: fixed; inset-inline-start: 16px; top: calc(env(safe-area-inset-top, 0px) + 12px);
  z-index: 100; padding: 10px 18px; border-radius: var(--radius-pill);
  background: var(--primary); color: var(--on-primary); font-weight: 500; text-decoration: none;
  transform: translateY(-160%); transition: transform 200ms var(--ease-out);
}
.skip:focus-visible { transform: none; }

.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Icons ---------- */
.ic { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic--sm { width: 18px; height: 18px; }
.ic--fill { fill: currentColor; stroke: none; }
[dir="rtl"] .ic--dir { transform: scaleX(-1); }

/* ---------- Type helpers ---------- */
.overline {
  display: inline-flex; align-items: center; gap: var(--space-3);
  font-size: var(--fs-xs); line-height: 16px; font-weight: 500;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--primary-text);
}
.overline::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor; opacity: 0.6; }
html[lang="ar"] .overline { letter-spacing: 0; text-transform: none; font-size: var(--fs-sm); }
.h2 { font-size: var(--fs-h2); line-height: 1.1; font-weight: 300; letter-spacing: -0.015em; }
.lead { font-size: var(--fs-lead); line-height: 1.6; font-weight: 300; color: var(--ink-muted); max-width: 62ch; }
.section-head { display: grid; gap: var(--space-4); max-width: 760px; margin-block-end: clamp(40px, 6vw, 72px); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.brand-tag { font-weight: 700; color: var(--primary-text); letter-spacing: -0.01em; text-transform: lowercase; }

/* ---------- Buttons (pill, echo the round mark) ---------- */
.btn {
  --btn-bg: var(--primary); --btn-fg: var(--on-primary); --btn-bd: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  height: 52px; padding-inline: 26px; border-radius: var(--radius-pill);
  border: 1px solid var(--btn-bd); background: var(--btn-bg); color: var(--btn-fg);
  font-size: 15px; line-height: 20px; font-weight: 500; text-decoration: none; white-space: nowrap;
  cursor: pointer; -webkit-tap-highlight-color: transparent; isolation: isolate; overflow: hidden;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease, color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn .ic { transition: transform 240ms var(--ease-out); }
.btn--primary { box-shadow: 0 10px 30px -10px rgba(92, 8, 225, 0.6); }
.btn--accent { --btn-bg: var(--accent); --btn-fg: var(--on-accent); }
.btn--quiet { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn--light { --btn-bg: #ffffff; --btn-fg: #2d2c28; }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: #ffffff; --btn-bd: rgba(255,255,255,0.55); }
.btn--sm { height: 40px; padding-inline: 18px; font-size: 14px; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { --btn-bg: var(--primary-hover); box-shadow: 0 14px 36px -10px rgba(92, 8, 225, 0.7); }
  .btn--accent:hover { --btn-bg: var(--mint-80); }
  .btn--quiet:hover { --btn-bd: var(--ink); background: var(--surface-sunken); }
  .btn--light:hover { --btn-bg: #f1ecfd; }
  .btn--ghost-light:hover { --btn-bd: #ffffff; background: rgba(255,255,255,0.1); }
  .btn:hover .ic--dir { transform: translateX(3px); }
  [dir="rtl"] .btn:hover .ic--dir { transform: scaleX(-1) translateX(3px); }
}
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease;
}
.icon-btn:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: var(--surface-sunken); border-color: var(--line-strong); } }

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed; inset-inline: 0; top: 0; height: 3px; z-index: 60; pointer-events: none;
  background: linear-gradient(90deg, var(--violet-100), var(--mint-100));
  transform-origin: left center; transform: scaleX(var(--p, 0));
}
[dir="rtl"] .progress { transform-origin: right center; background: linear-gradient(270deg, var(--violet-100), var(--mint-100)); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  transition: background-color 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
  border-block-end: 1px solid transparent;
}
.nav.is-scrolled {
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-block-end-color: var(--line);
}
.nav__inner { display: flex; align-items: center; gap: var(--space-5); height: var(--nav-h); }
.nav__brand { display: inline-flex; align-items: center; text-decoration: none; padding: 6px 0; border-radius: var(--radius-sm); flex: none; }
.nav__brand img { height: 34px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 2px; margin-inline: auto; list-style: none; padding: 0; }
.nav__links a {
  position: relative; display: inline-flex; align-items: center; height: 40px; padding-inline: 14px;
  border-radius: var(--radius-pill); text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ink-muted);
  transition: color 200ms ease, background-color 200ms ease;
}
.nav__links a.is-active { color: var(--ink); background: var(--surface-sunken); }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover { color: var(--ink); } }
.nav__actions { display: flex; align-items: center; gap: var(--space-2); flex: none; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px; height: 44px; padding-inline: 14px;
  border-radius: var(--radius-pill); border: 1px solid var(--line); background: transparent; cursor: pointer;
  font-size: 14px; font-weight: 500; transition: transform 160ms var(--ease-out), border-color 200ms ease, background-color 200ms ease;
}
.lang-toggle:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .lang-toggle:hover { border-color: var(--line-strong); background: var(--surface-sunken); } }
.lang-toggle [lang="ar"] { font-size: 15px; }
.nav__menu-btn { display: none; }
.nav__cta { display: inline-flex; }
/* Wide screens: links centred on the page, logo and actions at the edges */
@media (min-width: 1240px) {
  .nav__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .nav__brand { justify-self: start; }
  .nav__links { margin-inline: 0; }
  .nav__actions { justify-self: end; }
}

@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__menu-btn { display: inline-grid; }
  .nav__actions { margin-inline-start: auto; }
}
@media (max-width: 560px) {
  .nav__cta { display: none; }
  .nav__brand img { height: 30px; }
}

/* Mobile sheet */
.sheet { position: fixed; inset: 0; z-index: 70; pointer-events: none; }
.sheet__scrim { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity 300ms ease; }
.sheet__panel {
  position: absolute; inset-inline: 10px; top: calc(env(safe-area-inset-top, 0px) + 10px);
  padding: var(--space-4) var(--space-4) var(--space-5); border-radius: var(--radius-xl);
  background: var(--surface-raised); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  transform: translateY(-16px) scale(0.98); opacity: 0; transform-origin: top center;
  transition: transform 360ms var(--ease-drawer), opacity 240ms ease;
}
.sheet.is-open { pointer-events: auto; }
.sheet.is-open .sheet__scrim { opacity: 1; }
.sheet.is-open .sheet__panel { transform: none; opacity: 1; }
.sheet__top { display: flex; align-items: center; justify-content: space-between; margin-block-end: var(--space-3); }
.sheet__top img { height: 30px; width: auto; }
.sheet__links { list-style: none; padding: 0; display: grid; }
.sheet__links a {
  display: flex; align-items: center; justify-content: space-between; padding: 14px 6px; font-size: 1.375rem; font-weight: 300;
  text-decoration: none; border-block-end: 1px solid var(--line);
}
.sheet__cta { margin-block-start: var(--space-5); display: grid; }
.sheet .sheet__links li { opacity: 0; transform: translateY(-6px); transition: opacity 300ms ease, transform 400ms var(--ease-out); transition-delay: calc(var(--i, 0) * 40ms + 60ms); }
.sheet.is-open .sheet__links li { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(28px, 5vw, 64px) clamp(64px, 9vw, 120px); overflow: clip; isolation: isolate; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__copy { display: grid; gap: var(--space-5); justify-items: start; min-width: 0; }
.award-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: var(--radius-pill);
  background: var(--surface-raised); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  text-decoration: none; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink);
  transition: border-color 200ms ease, transform 160ms var(--ease-out);
}

.award-pill:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .award-pill:hover { border-color: var(--primary-text); } }
.award-pill__badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--accent); color: var(--on-accent); font-weight: 500; }
.award-pill__badge .ic { width: 15px; height: 15px; }
.hero__title { font-size: var(--fs-display); line-height: 1.02; font-weight: 300; letter-spacing: -0.03em; }
.hero__title .accent-word { position: relative; font-weight: 400; color: var(--primary-text); white-space: nowrap; }
.hero__title .accent-word::after {
  content: ""; position: absolute; inset-inline: 0.02em; bottom: 0.02em; height: 0.12em; border-radius: 0.1em; background: var(--accent);
  transform: scaleX(var(--u, 0)); transform-origin: left center; transition: transform 900ms var(--ease-out) 700ms; z-index: -1;
}
[dir="rtl"] .hero__title .accent-word::after { transform-origin: right center; }
.is-ready .hero__title .accent-word::after { --u: 1; }
.hero__lead { max-width: 54ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero__facts { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); padding: 0; margin: 0; list-style: none; font-size: var(--fs-sm); color: var(--ink-muted); }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts .ic { width: 18px; height: 18px; color: var(--success-text); }

/* word-by-word title reveal */
.w { display: inline-block; white-space: pre; }
.js .hero__title .w { opacity: 0; transform: translateY(0.35em); filter: blur(8px); }
.js.is-ready .hero__title .w { opacity: 1; transform: none; filter: blur(0); transition: opacity 700ms ease, transform 900ms var(--ease-out), filter 700ms ease; transition-delay: calc(var(--wi, 0) * 70ms + 80ms); }
.js .hero [data-hero-seq] { opacity: 0; transform: translateY(14px); }
.js.is-ready .hero [data-hero-seq] { opacity: 1; transform: none; transition: opacity 700ms ease, transform 900ms var(--ease-out); transition-delay: calc(var(--s, 0) * 90ms + 380ms); }

/* crescents — the ring's arc, bleeding off the edges */
.crescents { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.crescent { position: absolute; will-change: transform; }
.crescent svg { width: 100%; height: 100%; overflow: visible; }
.crescent circle { fill: none; stroke-linecap: butt; }
.crescent--violet { width: min(64vw, 820px); aspect-ratio: 1; inset-inline-end: max(-30vw, -400px); top: -10%; }
.crescent--mint { width: min(40vw, 520px); aspect-ratio: 1; inset-inline-start: max(-22vw, -270px); bottom: -42%; }
.crescent__spin { transform-box: fill-box; transform-origin: center; animation: spin 90s linear infinite; }
.crescent--mint .crescent__spin { animation-duration: 70s; animation-direction: reverse; }
.crescent__draw { stroke-dasharray: var(--len) 400; }
.js .crescent__draw { stroke-dashoffset: var(--len); }
.js.is-ready .crescent__draw { stroke-dashoffset: 0; transition: stroke-dashoffset 2.2s var(--ease-out) 200ms; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__grid-bg {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}

/* ---------- Live call demo ---------- */
.call {
  position: relative; min-width: 0; border-radius: var(--radius-xl); background: var(--surface-raised);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: var(--space-4);
  display: grid; gap: var(--space-4);
}
.js .hero .call[data-hero-seq] { transform: translateY(18px) scale(0.97); }
.js.is-ready .hero .call[data-hero-seq] { transform: none; }
.call__head { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-2) 0; }
.call__avatar { width: 44px; height: 44px; border-radius: var(--radius-pill); background: var(--surface); box-shadow: 0 0 0 2px var(--accent); display: grid; place-items: center; flex: none; position: relative; }
.call__avatar img { width: 30px; height: auto; }
.call__avatar::after { content: ""; position: absolute; inset: -6px; border-radius: inherit; border: 2px solid var(--accent); opacity: 0; }
.call.is-speaking .call__avatar::after, .call.is-listening .call__avatar::after { animation: ring 1.6s var(--ease-out) infinite; }
@keyframes ring { 0% { opacity: 0.8; transform: scale(0.92); } 100% { opacity: 0; transform: scale(1.35); } }
.call__who { display: grid; line-height: 1.3; min-width: 0; }
.call__who strong { font-weight: 500; font-size: 15px; }
.call__who span { font-size: 13px; color: var(--ink-muted); }
.call__status { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; padding: 5px 10px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.call__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success-text); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

.wave { display: flex; align-items: center; justify-content: center; gap: 4px; height: 56px; border-radius: var(--radius-lg); background: var(--surface-sunken); padding-inline: var(--space-4); overflow: hidden; }
.wave span { width: 4px; height: 100%; border-radius: 4px; background: var(--line-strong); transform: scaleY(0.12); transition: transform 280ms var(--ease-out), background-color 300ms ease; }
.call.is-listening .wave span { background: var(--primary); }
.call.is-speaking .wave span { background: var(--success-text); }
.wave__label { font-size: 12px; color: var(--ink-muted); text-align: center; margin-block-start: calc(var(--space-2) * -1); min-height: 16px; }

.convo { display: grid; gap: var(--space-3); min-height: 230px; align-content: start; padding-inline: var(--space-1); }
.msg { display: flex; gap: var(--space-2); align-items: flex-end; opacity: 0; transform: translateY(10px) scale(0.98); filter: blur(4px); transition: opacity 420ms ease, transform 520ms var(--ease-out), filter 420ms ease; }
.msg.is-in { opacity: 1; transform: none; filter: blur(0); }
.msg--user { justify-content: flex-end; }
.msg__col { display: grid; gap: 4px; max-width: min(86%, 440px); }
.msg--user .msg__col { justify-items: end; }
.msg__bubble { font-size: 16px; line-height: 26px; padding: var(--space-3) var(--space-4); border-radius: var(--radius-lg); overflow-wrap: anywhere; }
.msg--user .msg__bubble { background: var(--primary); color: var(--on-primary); border-end-end-radius: 6px; }
.msg--bot .msg__bubble { background: var(--surface-raised); border: 1px solid var(--line); border-end-start-radius: 6px; box-shadow: var(--shadow-sm); }
.msg__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.msg__meta { font-size: 12px; line-height: 16px; color: var(--ink-muted); padding-inline: var(--space-2); }
.msg__avatar { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 2px var(--accent); display: grid; place-items: center; }
.msg__avatar img { width: 20px; height: auto; }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; border-radius: var(--radius-lg); border-end-start-radius: 6px; background: var(--surface-sunken); }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-muted); animation: typing 1.1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; } .typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }

.call__langs { display: grid; gap: var(--space-2); border-block-start: 1px solid var(--line); padding-block-start: var(--space-3); }
.call__langs-label { font-size: 12px; color: var(--ink-muted); padding-inline: var(--space-1); display: flex; justify-content: space-between; gap: var(--space-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  position: relative; height: 36px; padding-inline: 14px; border-radius: var(--radius-pill); border: 1px solid var(--line);
  background: var(--surface-raised); color: var(--ink); font-size: 14px; cursor: pointer; overflow: hidden;
  transition: transform 160ms var(--ease-out), border-color 200ms ease, background-color 200ms ease, color 200ms ease;
}
.chip:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .chip:hover { border-color: var(--primary-text); } }
.chip[aria-checked="true"] { background: var(--primary-soft); border-color: var(--primary-text); color: var(--primary-text); font-weight: 500; }
.chip__bar { position: absolute; inset-inline-start: 0; bottom: 0; height: 2px; width: 100%; background: var(--primary-text); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .chip__bar { transform-origin: right; }
.chip[aria-checked="true"] .chip__bar.is-running { animation: chipbar var(--dur, 7000ms) linear forwards; }
@keyframes chipbar { to { transform: scaleX(1); } }
.demo-note { font-size: 12px; color: var(--ink-muted); text-align: center; }

/* ---------- Trust strip ---------- */
.trust { border-block: 1px solid var(--line); background: var(--surface); }
.trust__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5) var(--space-7); padding-block: var(--space-6); }
.trust__group { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-4) var(--space-6); }
.trust__label { font-size: var(--fs-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-muted); font-weight: 500; }
html[lang="ar"] .trust__label { letter-spacing: 0; font-size: var(--fs-sm); }
.trust__logo { height: 44px; width: auto; filter: var(--logo-filter); transition: filter 300ms ease; }
.trust__logo--misk { height: 50px; }
.trust__logo--moh { height: 40px; }
.trust__logo--bc { height: 32px; }
.trust__award { display: inline-flex; align-items: center; gap: var(--space-3); }
.trust__award-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--success-text); flex: none; }
.trust__award strong { display: block; font-weight: 500; font-size: 15px; line-height: 1.35; }
.trust__award div span { display: block; font-size: 13px; color: var(--ink-muted); line-height: 1.4; }
@media (min-width: 900px) {
  .trust__inner { flex-direction: column; align-items: stretch; gap: var(--space-5); }
  .trust__group { justify-content: space-between; flex-wrap: nowrap; }
}

/* ---------- Generic section ---------- */
.section { position: relative; padding-block: var(--section-y); }
.section--sunken { background: var(--surface-sunken); }

/* Challenge */
.challenge__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.challenge__grid .section-head { margin: 0; }
.voices { position: relative; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-start; }
.voice {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: var(--radius-pill);
  background: var(--surface-raised); border: 1px solid var(--line); font-size: 15px; box-shadow: var(--shadow-sm);
}
.voice small { font-size: 12px; color: var(--ink-muted); }
.voice--q { background: var(--primary-soft); border-color: transparent; color: var(--primary-text); }
.js .voice.is-in { animation: pop 700ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.94); filter: blur(4px); } }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); margin-block-start: clamp(48px, 7vw, 88px); }
.fact { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-5); border-radius: var(--radius-lg); background: var(--surface-raised); border: 1px solid var(--line); }
.fact__num { font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3.25rem); line-height: 1.05; font-weight: 300; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.fact__num em { font-style: normal; color: var(--primary-text); }
.fact p { color: var(--ink-muted); font-size: 15px; line-height: 1.55; }
.fact cite { font-style: normal; font-size: 12px; color: var(--ink-muted); margin-block-start: auto; padding-block-start: var(--space-2); }
.fact cite a { text-underline-offset: 3px; }

/* How it works */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); list-style: none; padding: 0; }
.steps__line { position: absolute; top: 31px; inset-inline: 12.5%; height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.steps__line i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--violet-100), var(--mint-100)); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease-in-out) 200ms; }
[dir="rtl"] .steps__line i { transform-origin: right; background: linear-gradient(270deg, var(--violet-100), var(--mint-100)); }
.steps.is-in .steps__line i { transform: scaleX(1); }
.steps__line b { position: absolute; top: -3px; width: 60px; height: 8px; border-radius: 8px; background: radial-gradient(closest-side, var(--mint-100), transparent); opacity: 0; }
.steps.is-in .steps__line b { animation: travel 3.2s var(--ease-in-out) 1.8s infinite; }
@keyframes travel { 0% { inset-inline-start: -60px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { inset-inline-start: 100%; opacity: 0; } }
.step { position: relative; display: grid; gap: var(--space-3); justify-items: center; align-content: start; text-align: center; }
.step__icon {
  position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--surface-raised); border: 1px solid var(--line); color: var(--primary-text); box-shadow: var(--shadow-md);
  transition: background-color 400ms ease, color 400ms ease, border-color 400ms ease;
}
.steps.is-in .step__icon { background: var(--primary); color: var(--on-primary); border-color: transparent; transition-delay: calc(var(--i) * 380ms + 250ms); }
.step__num { font-size: 12px; font-weight: 500; color: var(--ink-muted); letter-spacing: 0.2em; font-variant-numeric: tabular-nums; }
.step h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 500; }
.step p { color: var(--ink-muted); font-size: 15px; line-height: 1.6; max-width: 30ch; }

/* ---------- Sovereign (deep) ---------- */
.section--flush { padding-block: clamp(8px, 1.2vw, 16px); }
.deep { --deep-radius: clamp(24px, 4vw, 48px); background: var(--deep); color: var(--on-deep); border-radius: var(--deep-radius); margin-inline: clamp(0px, 1.2vw, 16px); overflow: clip; position: relative; isolation: isolate; }
.deep .overline { color: var(--mint-100); }
.deep .lead { color: var(--on-deep-muted); }
.deep__glow { position: absolute; z-index: -1; width: 720px; height: 720px; border-radius: 50%; filter: blur(80px); opacity: 0.28; pointer-events: none; }
.deep__glow--a { background: var(--violet-100); top: -320px; inset-inline-end: -200px; }
.deep__glow--b { background: var(--mint-100); bottom: -420px; inset-inline-start: -260px; opacity: 0.16; }
.deep__arc { position: absolute; z-index: -1; inset-inline-end: -190px; top: 72px; width: 380px; height: 380px; pointer-events: none; opacity: 0.5; }
[dir="rtl"] .deep__arc { transform: scaleX(-1); }
@media (max-width: 640px) { .deep__arc { display: none; } }
.deep__arc circle { fill: none; stroke: var(--mint-100); stroke-width: 28; }

.kingdom {
  position: relative; border-radius: var(--deep-radius); padding: clamp(20px, 3.5vw, 40px);
  border: 1.5px dashed rgba(0, 233, 168, 0.55); background: rgba(255, 255, 255, 0.02);
}
.kingdom__tag {
  position: absolute; top: 0; inset-inline-start: clamp(20px, 3.5vw, 40px); transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--radius-pill);
  background: var(--mint-100); color: var(--ink-fixed); font-size: 13px; font-weight: 500; white-space: nowrap;
}
.kingdom__tag .ic { width: 16px; height: 16px; }
.pipe { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-4); list-style: none; padding: var(--space-4) 0 0; margin: 0; }
.pipe__track { position: absolute; inset-inline: 10%; top: calc(var(--space-4) + 28px); height: 2px; background: var(--deep-line); overflow: hidden; }
.pipe__track i {
  position: absolute; top: 0; height: 2px; width: 30%; inset-inline-start: -30%;
  background: linear-gradient(90deg, transparent, var(--mint-100), transparent);
  animation: flow 2.8s linear infinite;
}
[dir="rtl"] .pipe__track i { animation-name: flow-rtl; }
.pipe__track i:nth-child(2) { animation-delay: 0.93s; } .pipe__track i:nth-child(3) { animation-delay: 1.86s; }
@keyframes flow { to { inset-inline-start: 100%; } }
@keyframes flow-rtl { to { inset-inline-start: 100%; } }
.node { position: relative; display: grid; gap: var(--space-2); justify-items: center; text-align: center; }
.node__icon {
  width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--deep-raised);
  border: 1px solid var(--deep-line); color: var(--mint-100); position: relative;
}
.node--llm .node__icon { background: var(--violet-100); color: #fff; border-color: transparent; box-shadow: 0 0 0 6px rgba(92, 8, 225, 0.25), 0 0 40px rgba(125, 57, 231, 0.6); }
.node h3 { font-size: 15px; line-height: 1.35; font-weight: 500; }
.node p { font-size: 13px; line-height: 1.5; color: var(--on-deep-muted); max-width: 22ch; }
.kingdom__out { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-2) var(--space-5); margin-block-start: var(--space-6); padding-block-start: var(--space-5); border-block-start: 1px solid var(--deep-line); font-size: 14px; color: var(--on-deep-muted); }
.kingdom__out span { display: inline-flex; align-items: center; gap: 8px; }
.kingdom__out .ic { width: 18px; height: 18px; color: #ff9e8f; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); margin-block-start: clamp(40px, 6vw, 64px); }
.pillar { display: grid; gap: var(--space-3); align-content: start; padding: var(--space-5); border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--deep-line); }
.pillar .ic { color: var(--mint-100); }
.pillar h3 { font-size: 1.0625rem; line-height: 1.35; font-weight: 500; }
.pillar p { font-size: 14px; line-height: 1.6; color: var(--on-deep-muted); }
.deep :focus-visible { outline-color: var(--mint-100); }

/* ---------- Platform bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.tile {
  --mx: 50%; --my: 50%;
  position: relative; display: grid; gap: var(--space-3); align-content: start; padding: var(--space-5);
  border-radius: var(--radius-lg); background: var(--surface-raised); border: 1px solid var(--line); overflow: hidden; isolation: isolate; min-width: 0;
  transition: border-color 300ms ease, transform 400ms var(--ease-out), box-shadow 400ms ease;
}
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 300ms ease;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(92, 8, 225, 0.10), transparent 45%);
}
@media (hover: hover) and (pointer: fine) {
  .tile:hover { border-color: var(--violet-40); box-shadow: var(--shadow-md); transform: translateY(-3px); }
  .tile:hover::before { opacity: 1; }
}
.tile__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-text); }
.tile h3 { font-size: 1.125rem; line-height: 1.35; font-weight: 500; }
.tile p { font-size: 15px; line-height: 1.6; color: var(--ink-muted); }
.tile--hero { grid-column: span 2; grid-row: span 2; background: var(--primary); color: var(--on-primary); border-color: transparent; padding: var(--space-6); gap: var(--space-4); }
.tile--hero::before { background: radial-gradient(520px circle at var(--mx) var(--my), rgba(0, 233, 168, 0.22), transparent 45%); }
.tile--hero .tile__icon { background: rgba(255, 255, 255, 0.16); color: #fff; }
.tile--hero h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 300; line-height: 1.2; }
.tile--hero p { color: rgba(255, 255, 255, 0.86); font-size: 16px; }
@media (hover: hover) and (pointer: fine) { .tile--hero:hover { border-color: transparent; } }
.tile--wide { grid-column: span 2; }
.bigwave { display: flex; align-items: center; gap: 5px; height: 96px; margin-block-start: auto; padding-block-start: var(--space-4); }
.bigwave span { flex: 1; min-width: 3px; height: 100%; border-radius: 6px; background: linear-gradient(180deg, var(--mint-100), rgba(255,255,255,0.7)); transform: scaleY(0.2); }
.tile--hero.is-in .bigwave span { animation: bar 1.4s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -97ms); }
@keyframes bar { 0% { transform: scaleY(0.14); } 100% { transform: scaleY(var(--h, 0.8)); } }
.ticker { display: flex; gap: var(--space-2); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ticker__row { display: flex; gap: var(--space-2); flex: none; animation: marquee 28s linear infinite; }
[dir="rtl"] .ticker__row { animation-name: marquee-rtl; }
.ticker__row span { padding: 6px 12px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.14); font-size: 14px; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(calc(-100% - var(--space-2))); } }
@keyframes marquee-rtl { to { transform: translateX(calc(100% + var(--space-2))); } }
.minichart { display: flex; align-items: flex-end; gap: 8px; height: 88px; margin-block-start: var(--space-2); padding: var(--space-3); border-radius: var(--radius-md); background: var(--surface-sunken); }
.minichart span { flex: 1; border-radius: 6px 6px 2px 2px; background: var(--violet-40); height: var(--h); transform: scaleY(0.05); transform-origin: bottom; transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i) * 60ms); }
.minichart span.hi { background: var(--primary); }
.tile.is-in .minichart span { transform: scaleY(1); }
.tile__list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; }
.tile__list li { font-size: 13px; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--surface-sunken); color: var(--ink); }

/* ---------- Impact ---------- */
.impact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.counters { display: grid; gap: 0; border-block-start: 1px solid var(--line); }
.counter { display: grid; grid-template-columns: clamp(9rem, 6rem + 10vw, 14.5rem) minmax(0, 1fr); gap: var(--space-5); align-items: center; padding-block: var(--space-5); border-block-end: 1px solid var(--line); }
.counter__num { font-size: clamp(2.75rem, 2rem + 3vw, 4.5rem); line-height: 1; font-weight: 300; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; min-width: 4.2ch; }
.counter__num em { font-style: normal; color: var(--primary-text); }
.counter h3 { font-size: 1.0625rem; font-weight: 500; line-height: 1.4; }
.counter p { color: var(--ink-muted); font-size: 15px; line-height: 1.55; }
.bars { display: grid; gap: var(--space-5); padding: clamp(24px, 3vw, 40px); border-radius: var(--radius-xl); background: var(--surface-sunken); }
.bars__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.bars__head h3 { font-size: 1.25rem; font-weight: 500; }
.bars__head small { font-size: 12px; color: var(--ink-muted); }
.bar { display: grid; gap: var(--space-2); }
.bar__top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); }
.bar__top span { font-size: 15px; line-height: 1.45; }
.bar__top strong { font-size: 1.75rem; font-weight: 300; font-variant-numeric: tabular-nums; color: var(--primary-text); }
.bar__track { height: 10px; border-radius: 10px; background: var(--line); overflow: hidden; }
.bar__fill { height: 100%; width: var(--v); border-radius: 10px; background: linear-gradient(90deg, var(--violet-100), var(--violet-60)); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease-out); transition-delay: calc(var(--i) * 150ms + 150ms); }
[dir="rtl"] .bar__fill { transform-origin: right; background: linear-gradient(270deg, var(--violet-100), var(--violet-60)); }
.bars.is-in .bar__fill { transform: scaleX(1); }
.bar__scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.bars__note { font-size: 12px; color: var(--ink-muted); }

/* ---------- Story timeline ---------- */
.timeline { position: relative; display: grid; gap: var(--space-5); list-style: none; padding: 0; max-width: 980px; margin-inline: auto; }
.timeline__rail { position: absolute; top: 8px; bottom: 8px; inset-inline-start: 50%; width: 2px; margin-inline-start: -1px; background: var(--line); border-radius: 2px; overflow: hidden; }
.timeline__rail i { position: absolute; inset: 0; background: linear-gradient(180deg, var(--violet-100), var(--mint-100)); transform-origin: top; transform: scaleY(var(--tp, 0)); }
.milestone { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); align-items: center; }

.milestone__dot { grid-column: 2; justify-self: center; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong); transition: background-color 400ms ease, border-color 400ms ease, box-shadow 400ms ease; z-index: 1; }
.milestone.is-lit .milestone__dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.milestone__card { grid-column: 1; grid-row: 1; display: grid; gap: var(--space-2); padding: var(--space-5); border-radius: var(--radius-lg); background: var(--surface-raised); border: 1px solid var(--line); text-align: start; }
.milestone:nth-child(odd of .milestone) .milestone__card { grid-column: 3; }
.milestone__when { font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--primary-text); }
html[lang="ar"] .milestone__when { letter-spacing: 0; font-size: 13px; }
.milestone__card h3 { font-size: 1.25rem; line-height: 1.35; font-weight: 500; }
.milestone__card p { color: var(--ink-muted); font-size: 15px; line-height: 1.6; }
.milestone--win .milestone__card { background: var(--primary); color: var(--on-primary); border-color: transparent; box-shadow: 0 20px 50px -20px rgba(92, 8, 225, 0.6); }
.milestone--win .milestone__card p { color: rgba(255, 255, 255, 0.86); }
.milestone--win .milestone__when { color: var(--mint-100); }
.plat-more { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; margin-block-start: var(--space-4); padding: var(--space-4) var(--space-5); border-radius: var(--radius-lg); border: 1px dashed var(--line-strong); background: var(--surface-sunken); }
.plat-more p { flex: 1 1 280px; min-width: 0; color: var(--ink-muted); font-size: 15px; line-height: 1.6; }
.plat-more p strong { color: var(--ink); font-weight: 500; }

/* ---------- Investors ---------- */
.inv__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.snapshot { border-radius: var(--radius-xl); background: var(--surface-raised); border: 1px solid var(--line); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow-md); position: sticky; top: calc(var(--nav-h) + 24px); }
.snapshot__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-block-end: var(--space-4); }
.snapshot__head h3 { font-size: 1.125rem; font-weight: 500; }
.snapshot__head img { height: 28px; width: auto; }
.snapshot dl { display: grid; }
.snapshot dl > div { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--space-4); padding-block: 14px; border-block-start: 1px solid var(--line); }
.snapshot dt { font-size: 13px; color: var(--ink-muted); line-height: 1.5; }
.snapshot dd { font-size: 15px; line-height: 1.5; font-weight: 500; }
.reasons { display: grid; gap: var(--space-4); list-style: none; padding: 0; }
.reason { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--space-4); padding: var(--space-5); border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface-raised); }
.reason__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--success-text); }
.reason h3 { font-size: 1.125rem; font-weight: 500; line-height: 1.35; margin-block-end: 4px; }
.reason p { color: var(--ink-muted); font-size: 15px; line-height: 1.6; }
.band {
  position: relative; overflow: hidden; isolation: isolate; margin-block-start: clamp(48px, 7vw, 88px);
  border-radius: var(--radius-xl); padding: clamp(28px, 5vw, 64px); color: #fff;
  background: linear-gradient(45deg, #5c08e1 0%, #5c08e1 38%, #00e9a8 125%);
  display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: var(--space-6); align-items: center;
}
[dir="rtl"] .band { background: linear-gradient(-45deg, #5c08e1 0%, #5c08e1 38%, #00e9a8 125%); }
.band h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); line-height: 1.15; font-weight: 300; }
.band p { color: rgba(255, 255, 255, 0.88); margin-block-start: var(--space-3); max-width: 52ch; }
.band__ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.band__arc { position: absolute; z-index: -1; width: 380px; height: 380px; inset-inline-end: -120px; top: -150px; pointer-events: none; }
.band__arc circle { fill: none; stroke: rgba(255, 255, 255, 0.22); stroke-width: 26; }
.band :focus-visible { outline-color: #ffffff; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact__list { display: grid; gap: var(--space-3); list-style: none; padding: 0; margin-block-start: var(--space-6); }
.contact__item { display: flex; align-items: center; gap: var(--space-3); padding: 14px 16px; border-radius: var(--radius-lg); background: var(--surface-raised); border: 1px solid var(--line); min-width: 0; }
.contact__item .ic { color: var(--primary-text); }
.contact__item div { display: grid; min-width: 0; line-height: 1.4; }
.contact__item small { font-size: 12px; color: var(--ink-muted); }
.contact__item a, .contact__item span.v { font-weight: 500; text-decoration: none; overflow-wrap: anywhere; direction: ltr; unicode-bidi: isolate; text-align: start; }
html[lang="ar"] .contact__item span.v.rtl-ok { direction: rtl; }
.contact__item a:hover { text-decoration: underline; text-underline-offset: 3px; }
.copy { margin-inline-start: auto; flex: none; height: 34px; padding-inline: 12px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: transparent; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-muted); transition: transform 160ms var(--ease-out), color 200ms ease, border-color 200ms ease; }
.copy:active { transform: scale(0.95); }
.copy .ic { width: 15px; height: 15px; color: currentColor; }
.copy.is-done { color: var(--success-text); border-color: var(--success-text); }
.social { display: inline-flex; align-items: center; gap: var(--space-3); margin-block-start: var(--space-5); padding: 10px 18px 10px 10px; border-radius: var(--radius-pill); border: 1px solid var(--line); text-decoration: none; font-weight: 500; transition: border-color 200ms ease, transform 160ms var(--ease-out); }
[dir="rtl"] .social { padding: 10px 10px 10px 18px; }
.social:active { transform: scale(0.98); }
.social__icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #0a66c2; color: #fff; }
.social__icon .ic { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .social:hover { border-color: #0a66c2; } }

.form { display: grid; gap: var(--space-4); padding: clamp(20px, 3.5vw, 40px); border-radius: var(--radius-xl); background: var(--surface-raised); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.form__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-4); }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field__err:empty { display: none; }
.field label { font-size: 14px; font-weight: 500; }
.field label .opt { font-weight: 400; color: var(--ink-muted); }
.input {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: var(--radius-md); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font-size: 16px; line-height: 1.5;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
textarea.input { min-height: 140px; resize: vertical; }
select.input { appearance: none; -webkit-appearance: none; padding-inline-end: 44px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
[dir="rtl"] select.input { background-position: 22px 50%, 16px 50%; }
.input::placeholder { color: var(--ink-muted); opacity: 0.8; }
.input:focus { outline: none; border-color: var(--primary-text); box-shadow: 0 0 0 3px var(--primary-soft); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.field__err { font-size: 13px; color: var(--danger); min-height: 0; }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: var(--space-3); align-items: start; font-size: 14px; line-height: 1.55; color: var(--ink-muted); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--primary); }
.check a { color: var(--primary-text); text-underline-offset: 3px; }
.hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.form__status { font-size: 14px; line-height: 1.5; padding: 12px 16px; border-radius: var(--radius-md); background: var(--accent-soft); color: var(--ink); }
.form__status.is-error { background: var(--danger-soft); color: var(--danger); }

/* ---------- Footer ---------- */
.footer { background: var(--deep); color: var(--on-deep); padding-block: clamp(56px, 8vw, 96px) var(--space-6); position: relative; overflow: clip; isolation: isolate; }
.footer a { color: var(--on-deep); text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer :focus-visible { outline-color: var(--mint-100); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
.footer__brand img { height: 96px; width: auto; }
.footer__brand p { margin-block-start: var(--space-4); color: var(--on-deep-muted); max-width: 34ch; }
.footer h4 { font-size: var(--fs-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--mint-100); font-weight: 500; margin-block-end: var(--space-4); }
html[lang="ar"] .footer h4 { letter-spacing: 0; font-size: 14px; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.footer ul .ltr { direction: ltr; unicode-bidi: isolate; }
.footer__linkbtn { background: none; border: 0; padding: 0; color: var(--on-deep); font-size: 15px; cursor: pointer; text-align: start; }
.footer__linkbtn:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-5); margin-block-start: clamp(48px, 6vw, 72px); padding-block-start: var(--space-5); border-block-start: 1px solid var(--deep-line); font-size: 13px; color: var(--on-deep-muted); }
.footer__legal-id { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); }
.footer__word { position: absolute; z-index: -1; inset-inline-end: 3vw; bottom: 0; font-size: clamp(4rem, 17vw, 16rem); font-weight: 700; line-height: 0.8; padding-block-end: 0.06em; color: #ffffff; opacity: 0.05; pointer-events: none; letter-spacing: -0.04em; text-transform: lowercase; user-select: none; white-space: nowrap; }

/* ---------- Cookie notice ---------- */
.cookie {
  position: fixed; z-index: 80; inset-inline: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
  max-width: 400px; margin-inline-start: auto; padding: 20px; border-radius: var(--radius-lg);
  background: var(--surface-raised); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  display: grid; gap: var(--space-3);
  transform: translateY(24px); opacity: 0; transition: transform 500ms var(--ease-drawer), opacity 300ms ease;
}
[dir="rtl"] .cookie { margin-inline-start: 0; margin-inline-end: auto; }
.cookie.is-in { transform: none; opacity: 1; }
.cookie h2 { font-size: 1rem; font-weight: 500; }
.cookie p { font-size: 14px; line-height: 1.6; color: var(--ink-muted); }
.cookie p a { color: var(--primary-text); text-underline-offset: 3px; }
.cookie__opts { display: grid; gap: var(--space-2); padding: var(--space-3); border-radius: var(--radius-md); background: var(--surface-sunken); font-size: 14px; }
.cookie__opts label { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.cookie__opts input { width: 18px; height: 18px; accent-color: var(--primary); }
.cookie__btns { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* ---------- Toast ---------- */
.toast { position: fixed; z-index: 90; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); transform: translate(-50%, 16px); opacity: 0; padding: 10px 18px; border-radius: var(--radius-pill); background: var(--ink); color: var(--surface); font-size: 14px; box-shadow: var(--shadow-md); transition: transform 360ms var(--ease-out), opacity 200ms ease; pointer-events: none; }
.toast.is-in { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Reveal on scroll (visible at rest; animates when entering) ---------- */
.js .reveal.is-in { animation: reveal 900ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 80ms); }
@keyframes reveal { from { opacity: 0; transform: translateY(28px); filter: blur(6px); } }

/* ---------- Language switch crossfade ---------- */
main, .footer, .nav__inner { transition: opacity 220ms ease, filter 220ms ease; }
.is-switching main, .is-switching .footer, .is-switching .nav__inner { opacity: 0; filter: blur(6px); }

/* ---------- Legal pages ---------- */
.legal { padding-block: clamp(40px, 7vw, 88px) var(--section-y); }
.legal__grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.legal__nav { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 4px; }
.legal__nav a { padding: 10px 14px; border-radius: var(--radius-md); text-decoration: none; font-size: 15px; color: var(--ink-muted); }
.legal__nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary-text); font-weight: 500; }
.legal__nav a:hover { color: var(--ink); }
.legal h1 { font-size: clamp(2.25rem, 1.8rem + 2vw, 3.5rem); font-weight: 300; line-height: 1.1; letter-spacing: -0.02em; }
.legal__meta { margin-block: var(--space-4) var(--space-7); color: var(--ink-muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.375rem; font-weight: 500; line-height: 1.35; margin-block: var(--space-7) var(--space-3); scroll-margin-top: calc(var(--nav-h) + 24px); }
.prose h3 { font-size: 1.0625rem; font-weight: 500; margin-block: var(--space-5) var(--space-2); }
.prose p, .prose li { color: var(--ink); opacity: 0.92; }
.prose p + p { margin-block-start: var(--space-3); }
.prose ul, .prose ol { padding-inline-start: 1.3em; margin-block: var(--space-3); display: grid; gap: 6px; }
.prose a { color: var(--primary-text); text-underline-offset: 3px; }
.prose .callout { margin-block: var(--space-5); padding: var(--space-4) var(--space-5); border-radius: var(--radius-lg); background: var(--accent-soft); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin-block: var(--space-4); }
.prose th, .prose td { text-align: start; padding: 10px 12px; border-block-end: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 500; background: var(--surface-sunken); }
.table-wrap { overflow-x: auto; }
html[lang="ar"] [data-l="en"], html:not([lang="ar"]) [data-l="ar"] { display: none !important; }

/* ---------- How: note ---------- */
.how__note { max-width: 62ch; margin: 0 auto; padding-block: var(--space-5) var(--space-7); text-align: center; color: var(--ink-muted); font-size: 14px; line-height: 1.6; }
.how__note a { color: var(--primary-text); text-underline-offset: 3px; }

/* ---------- Process: idea to launch ---------- */
.process { margin-block-start: clamp(40px, 6vw, 72px); }
.process__title { font-size: 1.25rem; font-weight: 500; margin-block-end: var(--space-5); }
.process__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); list-style: none; padding: 0; margin: 0; }
.process__step { display: grid; gap: var(--space-2); align-content: start; padding-block-start: var(--space-4); border-block-start: 2px solid var(--line); transition: border-color 400ms ease; }
.process__step:hover { border-color: var(--primary); }
.process__num { font-size: 13px; font-weight: 500; letter-spacing: 0.18em; color: var(--primary-text); font-variant-numeric: tabular-nums; }
.process__step h4 { font-size: 1.0625rem; font-weight: 500; line-height: 1.35; }
.process__step p { color: var(--ink-muted); font-size: 15px; line-height: 1.55; }

/* ---------- Story: proofs row ---------- */
.proofs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); max-width: 980px; margin: clamp(32px, 5vw, 56px) auto 0; }
.proof { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-5); border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface-raised); }
.proof__thumb { flex: none; display: inline-flex; padding: 8px 12px; border-radius: var(--radius-md); background: #ffffff; border: 1px solid var(--line); }
.proof__thumb img { height: 56px; width: auto; }
.proof__thumb--doc { padding: 6px; transition: transform 300ms var(--ease-out), box-shadow 300ms ease; }
.proof__thumb--doc:hover { transform: translateY(-2px) rotate(-1.5deg); box-shadow: var(--shadow-md); }
.proof p { flex: 1; min-width: 0; font-size: 15px; line-height: 1.55; color: var(--ink-muted); }
.proof p a { color: var(--primary-text); font-weight: 500; text-underline-offset: 3px; white-space: nowrap; }

/* ---------- News page ---------- */
.page__head { display: grid; gap: var(--space-4); max-width: 760px; margin-block-end: clamp(32px, 5vw, 56px); }
.page__head h1 { font-size: var(--fs-h2); font-weight: 300; line-height: 1.1; letter-spacing: -0.02em; }
.news__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); list-style: none; padding: 0; margin: 0; }
.news__card { display: grid; grid-template-rows: auto 1fr; border-radius: var(--radius-xl); overflow: hidden; background: var(--surface-raised); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform 400ms var(--ease-out), box-shadow 400ms ease; }
.news__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.news__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface-sunken); }
.news__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 800ms var(--ease-out); }
.news__card:hover .news__media img { transform: scale(1.04); }
.news__body { display: grid; gap: var(--space-3); align-content: start; padding: var(--space-5); }
.news__meta { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; font-size: 13px; color: var(--ink-muted); }
.news__tag { padding: 3px 10px; border-radius: var(--radius-pill); background: var(--primary-soft); color: var(--primary-text); font-weight: 500; }
.news__card h2 { font-size: 1.25rem; font-weight: 500; line-height: 1.35; }
.news__card p { color: var(--ink-muted); font-size: 15px; line-height: 1.6; }
.news__back { display: inline-flex; margin-block-start: clamp(32px, 5vw, 56px); }
html[lang="ar"] .page__head h1 { letter-spacing: 0; }
html[lang="ar"] .process__num { letter-spacing: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--hero { grid-column: span 2; grid-row: auto; }
  .pipe { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-2); }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .hero__grid, .challenge__grid, .impact__grid, .inv__grid, .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .snapshot { position: static; }
  .band { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-7); }
  .steps__line { display: none; }
  .pipe { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); padding-block-start: 44px; }
  .pipe__track { inset-inline: auto; inset-inline-start: 27px; top: 60px; bottom: 28px; width: 2px; height: auto; }
  .pipe__track i { width: 2px; height: 30%; inset-inline-start: 0; top: -30%; background: linear-gradient(180deg, transparent, var(--mint-100), transparent); animation-name: flow-v; }
  [dir="rtl"] .pipe__track i { animation-name: flow-v; }
  .node { grid-template-columns: 56px minmax(0, 1fr); justify-items: start; text-align: start; column-gap: var(--space-4); row-gap: 2px; }
  .node__icon { grid-row: span 2; }
  .node p { max-width: none; }
  .legal__grid { grid-template-columns: minmax(0, 1fr); }
  .legal__nav { position: static; display: flex; flex-wrap: wrap; }
  .facts { grid-template-columns: minmax(0, 1fr); }
}
@keyframes flow-v { to { top: 100%; } }
@media (max-width: 720px) {
  .timeline__rail { inset-inline-start: 9px; margin: 0; }
  .milestone { grid-template-columns: 20px minmax(0, 1fr); column-gap: var(--space-4); align-items: start; }
  .milestone__dot { grid-column: 1; grid-row: 1; margin-block-start: 26px; }
  .milestone__card, .milestone:nth-child(odd of .milestone) .milestone__card { grid-column: 2; }
}
@media (max-width: 920px) {
  .process__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) { .proofs { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .process__list, .news__grid { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile--hero, .tile--wide { grid-column: auto; }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step { grid-template-columns: 64px minmax(0, 1fr); justify-items: start; text-align: start; column-gap: var(--space-4); row-gap: 4px; }
  .step__icon { grid-row: span 3; }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .counter { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
  .snapshot dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .reason { grid-template-columns: minmax(0, 1fr); }
  .crescent--violet { display: none; }
  .crescent--mint { width: 70vw; bottom: -120px; inset-inline-start: -40vw; }
  .call__status > span:not(.call__dot):not([data-call-timer]) { display: none; }
  .call__who span { font-size: 12px; }
  .call { padding: var(--space-3); border-radius: var(--radius-lg); }
  .convo { min-height: 250px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 120ms !important; transition-delay: 0ms !important; }
  .js .hero__title .w, .js .hero [data-hero-seq] { opacity: 1; transform: none; filter: none; }
  .crescent__spin { animation: none; }
  .js .reveal.is-in, .js .voice.is-in { animation: none; }
  .msg { transform: none; filter: none; }
  .is-switching main, .is-switching .footer, .is-switching .nav__inner { filter: none; }
}

/* ==========================================================================
   Visual storytelling layer (less text, more motion)
   ========================================================================== */

/* Headings reveal word by word as they enter */
.js .h2.is-in .w { animation: wordIn 800ms var(--ease-out) both; animation-delay: calc(var(--wi, 0) * 45ms + 80ms); }
@keyframes wordIn { from { opacity: 0; transform: translateY(0.45em); } }

/* ---------- How it works: pinned scroll story ---------- */
.how { padding-block-end: 0; }
.how .section-head { margin-block-end: 0; }
.how__scroller { position: relative; height: 190vh; }
.how__sticky { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--nav-h)); height: calc(100vh - var(--nav-h)); display: flex; align-items: center; }
.how__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.how__steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.how__step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--space-4); align-items: center; padding: var(--space-4) var(--space-5); border-radius: var(--radius-lg); cursor: pointer; opacity: 0.42; transform: scale(0.97); transform-origin: left center; transition: opacity 450ms ease, transform 600ms var(--ease-out), background-color 450ms ease, box-shadow 450ms ease; }
[dir="rtl"] .how__step { transform-origin: right center; }
.how__step.is-active { opacity: 1; transform: none; background: var(--surface-raised); box-shadow: var(--shadow-md); }
.how__num { font-size: 13px; font-weight: 500; letter-spacing: 0.18em; color: var(--primary-text); font-variant-numeric: tabular-nums; }
.how__step h3 { font-size: clamp(1.35rem, 1.05rem + 1vw, 2rem); font-weight: 300; line-height: 1.2; }
.how__step p { color: var(--ink-muted); font-size: 15px; line-height: 1.5; }
.stage { position: relative; width: min(100%, 480px); aspect-ratio: 1; justify-self: center; }
.stage__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.stage__ring circle { fill: none; stroke-width: 1.2; }
.stage__ring-bg { stroke: var(--line); }
.stage__ring-fg { stroke: var(--primary-text); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 301.6; stroke-dashoffset: calc(301.6 * (1 - var(--hp, 0))); transition: stroke-dashoffset 120ms linear; }
.stage__core { position: absolute; inset: 7%; border-radius: 50%; overflow: hidden; isolation: isolate; background: radial-gradient(circle at 30% 25%, #8a4cf0 0%, #5c08e1 50%, #3a0596 100%); box-shadow: 0 40px 90px -30px rgba(92, 8, 225, 0.65); }
.stage__core::after { content: ""; position: absolute; inset: -30%; background: conic-gradient(from 0deg, transparent 0 70%, rgba(0, 233, 168, 0.28) 85%, transparent 100%); animation: spin 9s linear infinite; z-index: -1; }
.scene { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; opacity: 0; transform: scale(0.9); filter: blur(6px); transition: opacity 500ms ease, transform 700ms var(--ease-out), filter 500ms ease; }
.stage[data-step="0"] .scene--dial, .stage[data-step="1"] .scene--ask, .stage[data-step="2"] .scene--think, .stage[data-step="3"] .scene--answer { opacity: 1; transform: none; filter: none; }
.scene__icon { width: 24%; height: 24%; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; position: relative; }
.pulse { position: absolute; width: 34%; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--mint-100); animation: ringout 2.4s var(--ease-out) infinite; }
.pulse:nth-child(2) { animation-delay: 0.8s; } .pulse:nth-child(3) { animation-delay: 1.6s; }
@keyframes ringout { from { transform: scale(0.85); opacity: 0.95; } to { transform: scale(2.7); opacity: 0; } }
.eq { display: flex; align-items: center; gap: 3%; width: 58%; height: 36%; }
.eq i { flex: 1; height: 100%; border-radius: 999px; background: #fff; transform: scaleY(0.2); animation: eqb 1.05s ease-in-out infinite alternate; animation-delay: calc(var(--k, 0) * -0.17s); }
.eq i:nth-child(3n) { animation-duration: 0.8s; } .eq i:nth-child(4n) { animation-duration: 1.3s; }
@keyframes eqb { from { transform: scaleY(0.14); } to { transform: scaleY(1); } }
.eq--mint i { background: var(--mint-100); }
.float-chip { position: absolute; left: 50%; top: 50%; translate: var(--x) var(--y); padding: 6px 14px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.25); font-size: 14px; white-space: nowrap; animation: bob 3s ease-in-out infinite alternate; }
.float-chip:nth-of-type(2) { animation-delay: -1s; } .float-chip:nth-of-type(3) { animation-delay: -2s; }
@keyframes bob { to { transform: translateY(-10px); } }
.orbit { position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, 0.4); animation: spin 7s linear infinite; }
.orbit--b { width: 84%; border-color: rgba(255, 255, 255, 0.18); animation-duration: 13s; animation-direction: reverse; }
.orbit i { position: absolute; width: 11px; height: 11px; border-radius: 50%; background: var(--mint-100); top: -6px; left: calc(50% - 6px); box-shadow: 0 0 14px var(--mint-100); }
.orbit i:nth-child(2) { top: auto; bottom: -6px; } .orbit i:nth-child(3) { top: calc(50% - 6px); left: -6px; }
.scene__pin { position: absolute; bottom: 17%; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--radius-pill); background: var(--mint-100); color: var(--ink-fixed); font-size: 13px; font-weight: 500; }
.scene__pin .ic { width: 14px; height: 14px; }
.answer-dot { position: absolute; top: 20%; inset-inline-end: 22%; width: 18%; aspect-ratio: 1; border-radius: 50%; background: var(--mint-100); color: var(--ink-fixed); display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(0, 233, 168, 0.8); animation: popin 1.8s var(--ease-out) infinite; }
.answer-dot .ic { width: 50%; height: 50%; stroke-width: 2.6; }
@keyframes popin { 0% { transform: scale(0.6); opacity: 0; } 25% { transform: scale(1.08); opacity: 1; } 40%, 100% { transform: scale(1); opacity: 1; } }

/* ---------- Sovereign: pipeline lights up with scroll ---------- */
.pipe__fill { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,233,168,0.2), var(--mint-100)); transform-origin: left center; transform: scaleX(var(--kp, 1)); }
[dir="rtl"] .pipe__fill { transform-origin: right center; background: linear-gradient(270deg, rgba(0,233,168,0.2), var(--mint-100)); }
.js .kingdom .node { opacity: 0.4; transition: opacity 500ms ease; }
.js .kingdom .node.is-lit { opacity: 1; }
.kingdom .node.is-lit .node__icon { border-color: var(--mint-100); box-shadow: 0 0 0 4px rgba(0, 233, 168, 0.12), 0 0 28px rgba(0, 233, 168, 0.35); transition: box-shadow 500ms ease, border-color 500ms ease; }
.kingdom .node--llm.is-lit .node__icon { box-shadow: 0 0 0 6px rgba(92, 8, 225, 0.25), 0 0 40px rgba(125, 57, 231, 0.7); }
.pillar { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
.pillar h3 { font-size: 1rem; }

/* ---------- Leaner cards ---------- */
.tile--icon { min-height: 150px; align-content: space-between; }
.tile--icon h3 { font-size: 1.125rem; }
.tile--hero h3 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem); }
.counter { grid-template-columns: clamp(9rem, 6rem + 10vw, 14.5rem) minmax(0, 1fr); }
.counter h3 { font-size: 1.25rem; font-weight: 400; }
.milestone__card h3 { margin: 0; }

@media (max-width: 920px) {
  .how__scroller { height: 190vh; }
  .how__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); align-content: center; }
  .stage { order: -1; width: min(62vw, 300px); }
  .how__step { padding: var(--space-3) var(--space-4); }
  .how__step p { display: none; }
  .how__step h3 { font-size: 1.25rem; }
  .pipe__fill { transform-origin: top center; transform: scaleY(var(--kp, 1)); background: linear-gradient(180deg, rgba(0,233,168,0.2), var(--mint-100)); }
  [dir="rtl"] .pipe__fill { transform-origin: top center; background: linear-gradient(180deg, rgba(0,233,168,0.2), var(--mint-100)); }
}
@media (max-width: 520px) { .float-chip { font-size: 12px; padding: 4px 10px; } }
@media (prefers-reduced-motion: reduce) { .js .h2.is-in .w { animation: none; } .scene { filter: none; transform: none; } }
.challenge__grid { align-items: center; }
@media (max-width: 640px) { .voices .voice:nth-child(n+7) { display: none; } }

/* ---------- Platform cards: details on hover (desktop), always shown on touch ---------- */
.tile__more { display: grid; gap: var(--space-2); }
.tile__more p { font-size: 15px; line-height: 1.6; color: var(--ink-muted); }
.tile--hero .tile__more p { color: rgba(255, 255, 255, 0.86); }
.tile__more-title { display: none; }
.tile:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .tile { cursor: default; }
  .tile__more {
    position: absolute; inset: 0; z-index: 2; padding: var(--space-5); align-content: end; gap: var(--space-3);
    background: var(--primary); color: var(--on-primary);
    clip-path: circle(0% at var(--mx, 50%) var(--my, 50%)); opacity: 0.6;
    transition: clip-path 650ms var(--ease-out), opacity 300ms ease;
  }
  .tile--hero .tile__more { background: var(--charcoal); padding: var(--space-6); }
  .tile__more-title { display: block; font-size: 1.125rem; font-weight: 500; line-height: 1.35; }
  .tile--hero .tile__more-title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 300; }
  .tile__more p { color: rgba(255, 255, 255, 0.9); font-size: 15px; }
  .tile--hero .tile__more p { font-size: 17px; max-width: 34ch; }
  .tile:hover .tile__more, .tile:focus-visible .tile__more, .tile:focus-within .tile__more { clip-path: circle(150% at var(--mx, 50%) var(--my, 50%)); opacity: 1; }
  .tile:hover { transform: none; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: reduce) { .tile__more { transition: opacity 150ms ease !important; clip-path: none !important; } .tile:not(:hover):not(:focus-within) .tile__more { opacity: 0; } }
.tile { grid-template-columns: minmax(0, 1fr); }
.tile > * { min-width: 0; }

/* ---------- All cards: details on hover (desktop), always shown on touch ---------- */
.hovercard { position: relative; }
.card__more { display: grid; gap: var(--space-2); }
.card__more-title { display: none; }
.card__more p { font-size: 15px; line-height: 1.6; color: var(--ink-muted); }
.pillar .card__more { grid-column: 1 / -1; }
.pillar .card__more p { color: var(--on-deep-muted); font-size: 14px; }
.milestone--win .card__more p { color: rgba(255, 255, 255, 0.86); }
.hovercard:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.pillar.hovercard:focus-visible { outline-color: var(--mint-100); }
@media (hover: hover) and (pointer: fine) {
  .card__more {
    position: absolute; inset-inline: 0; top: 0; min-height: 100%; z-index: 5;
    padding: var(--space-5); align-content: center; gap: var(--space-3);
    border-radius: inherit; background: var(--primary); color: var(--on-primary);
    box-shadow: 0 24px 60px -24px rgba(92, 8, 225, 0.55);
    clip-path: circle(0% at var(--mx, 50%) var(--my, 50%)); opacity: 0.6; pointer-events: none;
    transition: clip-path 650ms var(--ease-out), opacity 300ms ease;
  }
  .card__more-title { display: block; font-size: 1.0625rem; font-weight: 500; line-height: 1.35; }
  .card__more p, .pillar .card__more p { color: rgba(255, 255, 255, 0.92); font-size: 15px; }
  .pillar .card__more { background: var(--mint-100); color: var(--ink-fixed); box-shadow: 0 24px 60px -24px rgba(0, 233, 168, 0.5); }
  .pillar .card__more p { color: var(--ink-fixed); }
  .milestone--win .card__more { background: var(--charcoal); }
  .hovercard:hover .card__more, .hovercard:focus-visible .card__more, .hovercard:focus-within .card__more { clip-path: circle(150% at var(--mx, 50%) var(--my, 50%)); opacity: 1; }
  .hovercard:hover, .hovercard:focus-within { z-index: 6; }
  .milestone:has(.hovercard:hover), .milestone:has(.hovercard:focus-within) { z-index: 6; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: reduce) {
  .card__more { transition: opacity 150ms ease !important; clip-path: none !important; }
  .hovercard:not(:hover):not(:focus-within) .card__more { opacity: 0; }
}
@media (hover: hover) and (pointer: fine) { .pillar .card__more { grid-column: auto; } }
.news__back .ic--dir, .news__back:hover .ic--dir { transform: scaleX(-1); }
[dir="rtl"] .news__back .ic--dir, [dir="rtl"] .news__back:hover .ic--dir { transform: none; }

/* ---------- Partners page ---------- */
.partner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding: clamp(24px, 4vw, 48px); border-radius: var(--radius-xl); background: var(--surface-raised); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.partner__copy { display: grid; gap: var(--space-4); justify-items: start; }
.partner__tag { padding: 3px 10px; border-radius: var(--radius-pill); background: var(--primary-soft); color: var(--primary-text); font-size: 13px; font-weight: 500; }
.partner h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); font-weight: 300; line-height: 1.2; }
.partner h3 { font-size: 1.0625rem; font-weight: 500; margin-block-start: var(--space-2); }
.partner p { color: var(--ink-muted); max-width: 62ch; }
.partner__list { list-style: none; padding: 0; display: grid; gap: var(--space-2); }
.partner__list li { position: relative; padding-inline-start: 28px; line-height: 1.55; }
.partner__list li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.5em; width: 14px; height: 8px; border-inline-start: 2px solid var(--primary-text); border-block-end: 2px solid var(--primary-text); transform: rotate(-45deg) scale(0.8); transform-origin: left bottom; }
.partner__ctas { margin-block-start: var(--space-3); }
.partner__cert { display: block; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-md); background: #fff; transition: transform 400ms var(--ease-out), box-shadow 400ms ease; }
.partner__cert:hover { transform: translateY(-4px) rotate(-0.8deg); box-shadow: var(--shadow-lg); }
.partner__cert img { display: block; width: 100%; height: auto; }
.future { margin-block-start: clamp(56px, 8vw, 104px); display: grid; gap: clamp(24px, 4vw, 40px); }
.future__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); list-style: none; padding: 0; margin: 0; }
.future__card { display: grid; gap: var(--space-3); align-content: start; padding: var(--space-5); border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface-raised); }
.future__card h3 { font-size: 1.125rem; font-weight: 500; }
.future__card p { color: var(--ink-muted); font-size: 15px; line-height: 1.6; }
.inst { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-6); margin-block-start: clamp(48px, 7vw, 88px); padding-block-start: var(--space-6); border-block-start: 1px solid var(--line); }
@media (max-width: 920px) { .partner { grid-template-columns: minmax(0, 1fr); } .partner__cert { max-width: 360px; } .future__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Explore CTA ---------- */
.explore { padding-block: clamp(48px, 7vw, 88px); }
.explore__title { font-size: 1.25rem; font-weight: 500; margin-block-end: var(--space-5); }
.explore__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.explore__card { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); padding: var(--space-5) var(--space-6); border-radius: var(--radius-xl); border: 1px solid var(--line); background: var(--surface-raised); text-decoration: none; color: inherit; transition: transform 400ms var(--ease-out), border-color 300ms ease, box-shadow 400ms ease; }
.explore__card:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: var(--shadow-md); }
.explore__card h3 { font-size: 1.375rem; font-weight: 400; line-height: 1.3; }
.explore__card p { margin-block-start: 4px; color: var(--ink-muted); font-size: 15px; line-height: 1.55; }
.explore__go { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: var(--on-primary); transition: transform 400ms var(--ease-out); }
.explore__card:hover .explore__go { transform: translateX(4px); }
[dir="rtl"] .explore__card:hover .explore__go { transform: translateX(-4px); }
@media (max-width: 720px) { .explore__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- News: clickable cards ---------- */
.news__card { position: relative; }
.news__link { color: inherit; text-decoration: none; }
.news__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.news__link:focus-visible { outline: none; }
.news__card:has(.news__link:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
.news__read { display: inline-flex; align-items: center; gap: var(--space-2); margin-block-start: var(--space-2); font-size: 14px; font-weight: 500; color: var(--primary-text); }
.news__read .ic { transition: transform 300ms var(--ease-out); }
.news__card:hover .news__read .ic { transform: translateX(4px); }
[dir="rtl"] .news__card:hover .news__read .ic { transform: scaleX(-1) translateX(4px); }

/* ---------- Article page ---------- */
.article { max-width: 860px; margin-inline: auto; }
.article__back { display: inline-flex; align-items: center; gap: var(--space-2); margin-block-end: var(--space-5); font-size: 14px; color: var(--ink-muted); text-decoration: none; }
.article__back:hover { color: var(--ink); }
.article__back .back-ic { transform: scaleX(-1); }
[dir="rtl"] .article__back .back-ic { transform: none; }
.article__hero { margin: 0 0 clamp(24px, 4vw, 40px); }
.article__hero img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-xl); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.article__hero figcaption { margin-block-start: var(--space-3); font-size: 13px; color: var(--ink-muted); }
.article__head { display: grid; gap: var(--space-4); margin-block-end: var(--space-6); }
.article__head h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
html[lang="ar"] .article__head h1 { letter-spacing: 0; line-height: 1.35; }
.article__standfirst { font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem); line-height: 1.6; font-weight: 300; color: var(--ink-muted); }
.article__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); list-style: none; padding: 0; margin: 0 0 clamp(32px, 5vw, 56px); }
.article__facts li { display: grid; gap: 2px; padding: var(--space-4); border-radius: var(--radius-lg); background: var(--surface-sunken); border: 1px solid var(--line); }
.article__facts strong { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 300; line-height: 1.1; color: var(--primary-text); font-variant-numeric: tabular-nums; }
.article__facts li > span { font-size: 13px; color: var(--ink-muted); line-height: 1.4; }
.article__body { max-width: 68ch; }
.article__body p { font-size: 1.0625rem; line-height: 1.85; color: var(--ink); opacity: 0.94; margin-block-end: var(--space-4); }
.article__body h2 { font-size: 1.5rem; font-weight: 500; line-height: 1.3; margin-block: var(--space-7) var(--space-3); }
.article__body a { color: var(--primary-text); text-underline-offset: 3px; }
.article__body .process__list--5 { max-width: none; margin-block: var(--space-5) var(--space-6); }
.article__foot { max-width: 68ch; margin-block-start: clamp(40px, 6vw, 72px); padding-block-start: var(--space-5); border-block-start: 1px solid var(--line); display: grid; gap: var(--space-3); }
.article__foot h3 { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); font-weight: 500; }
html[lang="ar"] .article__foot h3 { letter-spacing: 0; font-size: 14px; }
.article__foot ul { list-style: none; padding: 0; display: grid; gap: var(--space-2); font-size: 14px; }
.article__foot a { color: var(--primary-text); text-underline-offset: 3px; }
.article__next { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-block-start: var(--space-4); }
@media (min-width: 921px) { .process__list--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 720px) { .article__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.article__body .process__step p { font-size: 14px; line-height: 1.5; margin: 0; opacity: 1; color: var(--ink-muted); }
.article__body .process__step h4 { font-size: 1rem; }
html[lang="ar"] .footer__word { inset-inline-end: 14vw; letter-spacing: 0; font-kerning: normal; text-rendering: optimizeLegibility; line-height: 1.35; padding-block-end: 0.02em; font-size: clamp(4rem, 15vw, 13rem); text-transform: none; }
