/* Qantara site, v2. White ground, large rounded cards, interface mock-ups, soft blue glow.
   IOTA brand: IBM Plex Sans Condensed (Regular, Bold), blue as the only accent, no italics.
   Arabic uses IBM Plex Sans Arabic. Logical properties throughout, so one stylesheet serves both directions. */

@font-face { font-family: "IBM Plex Sans Condensed"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/plex-condensed-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/plex-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/plex-arabic-400.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/plex-arabic-700.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }

:root {
  --bg: #FFFFFF;
  --soft: #F6F4F1;
  --warm: #EFECE7;
  --ink: #1D1D1F;
  --body: #3A3A3C;
  --muted: #6B6B6B;
  --rule: #E2DFDA;
  --rule-strong: #C9C6C0;
  --tint: #EAF1FF;
  --blue: #0066FF;
  --latin: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  --font: var(--latin);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 9vw, 136px);
  --r-card: 28px;
  --r-inner: 18px;
  --r-small: 12px;
  --shadow: 0 1px 2px rgba(29, 29, 31, .04), 0 18px 40px -18px rgba(29, 29, 31, .18);
  --shadow-lg: 0 2px 4px rgba(29, 29, 31, .04), 0 40px 80px -32px rgba(0, 60, 160, .28);
  --lh: 1.5;
  --lh-tight: 1.04;
}
:root[lang="ar"] { --font: "IBM Plex Sans Arabic", "IBM Plex Sans Condensed", Tahoma, sans-serif; --lh: 1.8; --lh-tight: 1.32; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--body); font-family: var(--font); font-size: 19px; line-height: var(--lh); font-weight: 400; font-style: normal; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
:root[lang="ar"] body { font-size: 18px; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, table { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3, h4, strong, b, th { font-weight: 700; }
em, i, cite, address { font-style: normal; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--blue); color: #fff; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; border-radius: 999px; }
.skip:focus { top: 12px; }
.latin, .num { font-family: var(--latin); }
[dir="rtl"] .num, [dir="rtl"] .latin { direction: ltr; unicode-bidi: isolate; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- type ---------- */
h1 { color: var(--ink); font-size: clamp(46px, 7.6vw, 96px); line-height: var(--lh-tight); letter-spacing: -0.014em; text-wrap: balance; }
:root[lang="ar"] h1 { font-size: clamp(36px, 5.6vw, 68px); letter-spacing: 0; }
h1 .tone { color: var(--blue); display: block; }
h2 { color: var(--ink); font-size: clamp(32px, 4.3vw, 56px); line-height: calc(var(--lh-tight) + 0.04); letter-spacing: -0.008em; text-wrap: balance; }
:root[lang="ar"] h2 { font-size: clamp(28px, 3.4vw, 44px); letter-spacing: 0; }
h3 { color: var(--ink); font-size: clamp(24px, 2.4vw, 32px); line-height: calc(var(--lh-tight) + 0.12); text-wrap: balance; }
:root[lang="ar"] h3 { font-size: clamp(22px, 2.1vw, 28px); }
h4 { color: var(--ink); font-size: 19px; line-height: 1.3; }
.lead { font-size: clamp(20px, 1.9vw, 24px); line-height: calc(var(--lh) - 0.08); color: var(--body); max-width: 58ch; text-wrap: pretty; }
.note { color: var(--muted); font-size: 16px; line-height: calc(var(--lh) - 0.05); max-width: 90ch; }
.statement { color: var(--ink); font-weight: 700; font-size: clamp(22px, 2.5vw, 32px); line-height: calc(var(--lh-tight) + 0.2); max-width: 30ch; text-wrap: balance; }

.pill { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 12px; border: 1px solid var(--rule); border-radius: 999px; background: rgba(255, 255, 255, .8); color: var(--ink); font-weight: 700; font-size: 14px; letter-spacing: 0.07em; text-transform: uppercase; line-height: 1.3; width: fit-content; box-shadow: 0 1px 2px rgba(29, 29, 31, .04); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(0, 102, 255, .14); flex: none; }
:root[lang="ar"] .pill { letter-spacing: 0; font-size: 15px; }
.pill span[lang="ar"] { font-family: "IBM Plex Sans Arabic", sans-serif; font-size: 16px; letter-spacing: 0; }

@media (max-width: 560px) { .hero-copy .pill { font-size: 12px; letter-spacing: 0.04em; white-space: nowrap; padding-inline: 10px 12px; } .hero-copy .pill span[lang="ar"] { font-size: 14px; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 10px 24px; border-radius: 999px; border: 1px solid var(--rule-strong); background: #fff; color: var(--ink); font: inherit; font-weight: 700; font-size: 18px; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.btn:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn--primary { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 10px 24px -10px rgba(0, 102, 255, .7); }
.btn--primary:hover { background: var(--ink); border-color: var(--ink); box-shadow: 0 10px 24px -12px rgba(29, 29, 31, .6); }
.btn--small { min-height: 40px; padding: 6px 18px; font-size: 16px; box-shadow: none; }
.btn[disabled] { opacity: .55; cursor: default; transform: none; }
.arrow { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, .2); font-size: 15px; line-height: 1; transition: transform .18s ease; }
[dir="rtl"] .arrow { transform: scaleX(-1); }
.btn:hover .arrow { transform: translateX(3px); }
[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(3px); }

/* ---------- header: a floating pill ---------- */
.site-header { position: sticky; top: 12px; z-index: 50; padding-inline: var(--gutter); margin-top: 12px; }
.site-header .bar { position: relative; max-width: 1120px; margin-inline: auto; display: flex; align-items: center; gap: 20px; min-height: 60px; padding: 8px 10px; padding-inline-start: 20px; background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border: 1px solid var(--rule); border-radius: 999px; box-shadow: var(--shadow); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); margin-inline-end: auto; }
.brand svg { width: 28px; height: 28px; flex: none; }
.brand-name { font-family: var(--latin); font-weight: 700; font-size: 24px; line-height: 1; letter-spacing: -0.005em; }
.brand-by { color: var(--muted); font-size: 14px; line-height: 1; padding-inline-start: 11px; border-inline-start: 1px solid var(--rule-strong); white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { display: block; padding: 8px 12px; font-size: 17px; color: var(--body); text-decoration: none; border-radius: 999px; white-space: nowrap; transition: background-color .15s ease, color .15s ease; }
.nav a:hover { color: var(--ink); background: var(--soft); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.lang { padding: 8px 10px; font-size: 16px; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; border-radius: 999px; }
.lang:hover { color: var(--blue); }
.menu-btn { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; background: var(--soft); border: 0; border-radius: 50%; color: var(--ink); cursor: pointer; }
.menu-btn span { display: block; width: 16px; height: 2px; background: currentColor; box-shadow: 0 5px 0 currentColor, 0 -5px 0 currentColor; }
@media (max-width: 1080px) {
  .js .menu-btn { display: inline-flex; }
  .js .nav { display: none; position: absolute; inset-inline: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--rule); border-radius: 24px; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; padding: 10px; gap: 0; }
  .js .nav.is-open { display: flex; }
  .js .nav a { padding: 13px 16px; font-size: 19px; border-radius: 14px; }
  html:not(.js) .site-header .bar { flex-wrap: wrap; border-radius: 24px; }
  html:not(.js) .nav { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .brand-by { display: none; }
  .header-actions .btn { display: none; }
  .site-header .bar { gap: 8px; padding-inline-start: 16px; }
}

/* ---------- sections ---------- */
section { padding-block: var(--section); }
.section-head { display: grid; gap: 18px; justify-items: center; text-align: center; margin-inline: auto; margin-bottom: clamp(36px, 5vw, 64px); max-width: 900px; }
.section-head h2 { max-width: 20ch; }
:root[lang="ar"] .section-head h2 { max-width: 24ch; }
.section-head--start { justify-items: start; text-align: start; margin-inline: 0; }
.after { margin-top: clamp(32px, 4vw, 56px); }
.center { text-align: center; margin-inline: auto; }

.card { background: var(--soft); border-radius: var(--r-card); padding: clamp(24px, 3vw, 40px); display: grid; gap: 12px; align-content: start; }
.card--white { background: #fff; border: 1px solid var(--rule); box-shadow: var(--shadow); }
.card p { font-size: 18px; }
.grid { display: grid; gap: clamp(14px, 1.6vw, 20px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); } }
.tag { color: var(--blue); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.3; }
:root[lang="ar"] .tag { letter-spacing: 0; font-size: 16px; }

/* tables */
.table-card { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--r-card); background: #fff; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 18px; }
th, td { text-align: start; vertical-align: top; padding: 18px 24px; }
thead th { background: var(--tint); color: var(--blue); font-size: 15px; letter-spacing: 0.05em; text-transform: uppercase; }
:root[lang="ar"] thead th { letter-spacing: 0; font-size: 16px; }
tbody tr + tr > * { border-top: 1px solid var(--rule); }
tbody th { color: var(--ink); width: 32%; min-width: 150px; }
@media (max-width: 560px) { th, td { padding: 14px 16px; } table { font-size: 17px; } }

/* reveal on scroll (only when scripts run and motion is welcome) */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 72px); margin-top: -84px; padding-top: calc(84px + clamp(48px, 7vw, 96px)); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(46% 38% at 50% 0%, rgba(0, 102, 255, .20), transparent 72%),
  radial-gradient(30% 26% at 12% 18%, rgba(0, 102, 255, .08), transparent 70%),
  radial-gradient(30% 26% at 88% 22%, rgba(0, 102, 255, .08), transparent 70%); }
.hero .wrap { position: relative; }
.hero-copy { display: grid; gap: 24px; justify-items: center; text-align: center; max-width: 1000px; margin-inline: auto; }
.hero-copy .lead { max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 4px; }
.stage { position: relative; margin-top: clamp(36px, 5vw, 64px); border-radius: clamp(24px, 3vw, 36px); border: 1px solid var(--rule); background: #fff; box-shadow: var(--shadow-lg); overflow: hidden; padding: clamp(14px, 3vw, 40px) clamp(8px, 3vw, 40px) clamp(10px, 2vw, 24px); }
.stage::before { content: ""; position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(34% 46% at 50% 34%, rgba(0, 102, 255, .16), transparent 72%),
  linear-gradient(to right, rgba(29, 29, 31, .04) 1px, transparent 1px), linear-gradient(to bottom, rgba(29, 29, 31, .04) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px; background-position: center, center top, center top;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 45%, #000 30%, transparent 100%); mask-image: radial-gradient(ellipse 80% 80% at 50% 45%, #000 30%, transparent 100%); }
.bridge { position: relative; min-height: 180px; }
.bridge svg { width: 100%; height: auto; margin-inline: auto; overflow: visible; }
.bridge[data-layout="narrow"] svg { max-width: 720px; }
.bridge text { font-family: var(--font); }
.facts { margin-top: clamp(20px, 3vw, 36px); }
.facts .card { background: transparent; padding: 8px clamp(8px, 2vw, 24px); text-align: center; justify-items: center; }
.facts h3 { font-size: 22px; }
.facts p { max-width: 34ch; }

/* ---------- compatibility marquee ---------- */
.compat { padding-block: 0 clamp(24px, 4vw, 48px); }
.compat p { text-align: center; color: var(--muted); font-size: 16px; margin-bottom: 18px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 48s linear infinite; }
[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.chip { display: inline-flex; align-items: center; padding: 10px 18px; border: 1px solid var(--rule); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; font-size: 17px; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ---------- questions ---------- */
.question { position: relative; overflow: hidden; min-height: 260px; align-content: end; }
.question .num { position: absolute; inset-block-start: 14px; inset-inline-end: 26px; color: var(--blue); font-weight: 700; font-size: 120px; line-height: 1; opacity: .16; }
.question h3 { position: relative; }
.question p { position: relative; }

/* ---------- gap ---------- */
.gap-grid { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
@media (max-width: 900px) { .gap-grid { grid-template-columns: minmax(0, 1fr); } }
.gap-grid .section-head { margin-bottom: 0; }

/* ---------- console mock ---------- */
.console { border: 1px solid var(--rule); border-radius: var(--r-card); background: #fff; box-shadow: var(--shadow-lg); overflow: hidden; }
.console-bar { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--rule); background: var(--soft); }
.dots { display: flex; gap: 6px; direction: ltr; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--rule-strong); }
.console-name { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; font-size: 16px; white-space: nowrap; }
.console-name svg { width: 18px; height: 18px; }
.tabs { display: flex; gap: 4px; margin-inline-start: auto; overflow: hidden; }
.tabs span { padding: 6px 12px; border-radius: 999px; font-size: 15px; color: var(--muted); white-space: nowrap; }
.tabs .is-on { background: var(--ink); color: #fff; font-weight: 700; }
@media (max-width: 760px) { .tabs span:not(.is-on) { display: none; } }
.console-body { padding: clamp(14px, 2vw, 24px); display: grid; gap: clamp(12px, 1.6vw, 18px); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 14px); }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { background: var(--soft); border-radius: var(--r-inner); padding: 14px 16px; display: grid; gap: 4px; }
.kpi span { color: var(--muted); font-size: 15px; line-height: 1.3; }
.kpi b { color: var(--ink); font-family: var(--latin); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.1; font-variant-numeric: tabular-nums; direction: ltr; text-align: start; }
[dir="rtl"] .kpi b { text-align: end; }
.live { border: 1px solid var(--rule); border-radius: var(--r-inner); overflow: hidden; }
.live-head, .live-row { display: grid; grid-template-columns: 1.3fr 1.4fr 1.1fr .8fr .8fr; gap: 10px; align-items: center; padding: 11px 16px; font-size: 16px; }
.live-head { background: var(--soft); color: var(--muted); font-size: 14px; font-weight: 700; }
.live-head span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(0, 102, 255, .5); } 60% { box-shadow: 0 0 0 7px rgba(0, 102, 255, 0); } }
.live-rows { height: 245px; overflow: hidden; }
.live-row { border-top: 1px solid var(--rule); height: 49px; color: var(--ink); }
.live-row > :nth-child(2), .live-row > :nth-child(4), .live-row > :nth-child(5) { font-family: var(--latin); direction: ltr; text-align: start; font-variant-numeric: tabular-nums; }
[dir="rtl"] .live-row > :nth-child(2), [dir="rtl"] .live-row > :nth-child(4), [dir="rtl"] .live-row > :nth-child(5) { text-align: end; }
.live-row > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-row.is-new { animation: rowin .5s ease; }
@keyframes rowin { from { opacity: 0; transform: translateY(-10px); background: var(--tint); } }
@media (max-width: 640px) { .live-head, .live-row { grid-template-columns: 1.2fr 1fr; } .live-head > :nth-child(2), .live-row > :nth-child(2), .live-head > :nth-child(n+4), .live-row > :nth-child(n+4) { display: none; } }
.badge { display: inline-flex; align-items: center; gap: 6px; width: fit-content; max-width: 100%; padding: 3px 10px; border-radius: 999px; font-size: 14px; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.badge--ok { background: var(--tint); color: var(--blue); }
.badge--mask { background: var(--warm); color: var(--ink); }
.badge--stop, .badge--no { background: var(--ink); color: #fff; }
.badge--idle { background: var(--soft); color: var(--muted); }
.caption { color: var(--muted); font-size: 15px; text-align: center; margin-top: 14px; }
.parts { margin-top: clamp(20px, 3vw, 32px); }
.part-name { font-family: var(--latin); color: var(--ink); font-weight: 700; font-size: 28px; line-height: 1.1; direction: ltr; text-align: start; }
[dir="rtl"] .part-name { text-align: end; }
.flow { margin-top: clamp(20px, 3vw, 32px); display: grid; gap: clamp(20px, 4vw, 56px); grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; background: var(--ink); color: #D7D5D1; border-radius: var(--r-card); padding: clamp(26px, 4vw, 56px); position: relative; overflow: hidden; }
.flow::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 90% at 0% 0%, rgba(0, 102, 255, .45), transparent 70%); pointer-events: none; }
[dir="rtl"] .flow::before { background: radial-gradient(50% 90% at 100% 0%, rgba(0, 102, 255, .45), transparent 70%); }
.flow > * { position: relative; }
.flow h3 { color: #fff; font-size: clamp(28px, 3.2vw, 44px); }
@media (max-width: 900px) { .flow { grid-template-columns: minmax(0, 1fr); } }
.lines > li { padding-block: 15px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: 19px; color: #fff; }
.lines > li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .16); }
.textlink { color: #9CC2FF; font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; }
.textlink:hover { color: #fff; }

/* ---------- capabilities: feature rows with a mock-up panel ---------- */
.features { display: grid; gap: clamp(16px, 2vw, 24px); }
.feature { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(20px, 3vw, 48px); align-items: stretch; background: var(--soft); border-radius: var(--r-card); padding: clamp(18px, 2.4vw, 28px); }
.feature:nth-child(even) .feature-copy { order: 2; }
.feature-copy { display: grid; gap: 16px; align-content: start; padding: clamp(6px, 1.6vw, 20px); }
.items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px clamp(18px, 2vw, 32px); margin-top: 6px; }
.item { display: grid; gap: 4px; align-content: start; }
.item p { font-size: 17px; line-height: calc(var(--lh) - 0.06); }
.bullets { display: grid; gap: 9px; }
.bullets li { position: relative; padding-inline-start: 22px; font-size: 18px; color: var(--ink); }
.bullets li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.62em; width: 8px; height: 8px; background: var(--blue); border-radius: 50%; }
:root[lang="ar"] .bullets li::before { top: 0.8em; }
.mini-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 4px; }
.mini-stat { background: #fff; border-radius: var(--r-inner); padding: 14px 16px; display: grid; gap: 2px; }
.mini-stat .num { color: var(--blue); font-weight: 700; font-size: 34px; line-height: 1.1; }
.mini-stat p { font-size: 16px; line-height: 1.4; }
.aside-note { padding: 14px 18px; background: #fff; border-inline-start: 3px solid var(--blue); border-radius: var(--r-small); color: var(--ink); font-size: 17px; }
.panel { position: relative; border-radius: calc(var(--r-card) - 8px); min-height: 340px; display: grid; place-items: center; padding: clamp(18px, 3vw, 36px); overflow: hidden; background: linear-gradient(160deg, #0A5CFF 0%, #0066FF 45%, #3D8BFF 100%); }
.panel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 80% 0%, rgba(255, 255, 255, .34), transparent 70%), linear-gradient(to right, rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: auto, 36px 36px, 36px 36px; pointer-events: none; }
.feature:nth-child(3n+2) .panel { background: linear-gradient(160deg, #1D1D1F 0%, #23262E 100%); }
.feature:nth-child(3n+2) .panel::before { background: radial-gradient(60% 55% at 20% 0%, rgba(0, 102, 255, .55), transparent 72%), linear-gradient(to right, rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: auto, 36px 36px, 36px 36px; }
.feature:nth-child(3n) .panel { background: linear-gradient(160deg, #EAF1FF 0%, #D6E5FF 100%); }
.feature:nth-child(3n) .panel::before { background: radial-gradient(60% 50% at 80% 0%, rgba(255, 255, 255, .8), transparent 70%), linear-gradient(to right, rgba(0, 102, 255, .07) 1px, transparent 1px), linear-gradient(to bottom, rgba(0, 102, 255, .07) 1px, transparent 1px); background-size: auto, 36px 36px, 36px 36px; }
@media (max-width: 980px) { .feature { grid-template-columns: minmax(0, 1fr); } .feature:nth-child(even) .feature-copy { order: 0; } .panel { min-height: 280px; } }
@media (max-width: 560px) { .items { grid-template-columns: minmax(0, 1fr); } }

/* widgets inside panels */
.w { position: relative; width: min(100%, 430px); background: #fff; border-radius: var(--r-inner); box-shadow: 0 24px 48px -20px rgba(0, 20, 60, .45); padding: 18px; display: grid; gap: 12px; font-size: 16px; color: var(--ink); line-height: 1.4; }
.w-title { font-weight: 700; font-size: 16px; color: var(--ink); }
.w-code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 13.5px; background: var(--ink); color: #fff; border-radius: 10px; padding: 9px 12px; direction: ltr; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 12px; }
.w-row.is-ok { border-color: var(--blue); background: var(--tint); }
.w-row.is-no { color: var(--muted); }
.w-row.is-no .w-name { text-decoration: line-through; text-decoration-color: var(--rule-strong); }
.w-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-name.latin { direction: ltr; }
.bar { display: grid; gap: 6px; }
.bar-top { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.bar-top b { font-family: var(--latin); font-variant-numeric: tabular-nums; }
.track { height: 10px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.track i { display: block; height: 100%; width: var(--v); border-radius: 999px; background: var(--blue); }
.bar.is-full .track i { background: var(--ink); }
.w-foot { color: var(--muted); font-size: 14px; }
.bubble { border-radius: 14px; padding: 12px 14px; display: grid; gap: 6px; }
.bubble span.k { color: var(--muted); font-size: 13.5px; font-weight: 700; }
.bubble--in { background: var(--soft); }
.bubble--out { background: var(--tint); }
.tok { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 13px; padding: 1px 6px; border-radius: 6px; direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.tok--raw { background: var(--warm); text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
.tok--masked { background: var(--blue); color: #fff; }
.w-actions { display: flex; gap: 8px; }
.w-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 4px 16px; border-radius: 999px; font-weight: 700; font-size: 15px; border: 1px solid var(--rule-strong); }
.w-btn--on { background: var(--blue); border-color: var(--blue); color: #fff; }
.w-stop { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--ink); color: #fff; }
.w-stop small { display: block; color: #BDBAB5; font-size: 13.5px; line-height: 1.35; }
.switch { flex: none; width: 46px; height: 26px; border-radius: 999px; background: rgba(255, 255, 255, .22); position: relative; }
.switch::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; }

/* ---------- leaders ---------- */
.seat { color: var(--blue); font-weight: 700; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; }
:root[lang="ar"] .seat { letter-spacing: 0; font-size: 17px; }

/* ---------- sovereign: the one dark band ---------- */
.dark-wrap { padding-inline: clamp(8px, 2vw, 24px); }
.dark { position: relative; overflow: hidden; background: var(--ink); color: #D7D5D1; border-radius: clamp(24px, 3vw, 40px); padding-block: var(--section); }
.dark::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(40% 50% at 12% 0%, rgba(0, 102, 255, .5), transparent 72%), radial-gradient(34% 40% at 100% 100%, rgba(0, 102, 255, .22), transparent 72%); }
[dir="rtl"] .dark::before { background: radial-gradient(40% 50% at 88% 0%, rgba(0, 102, 255, .5), transparent 72%), radial-gradient(34% 40% at 0% 100%, rgba(0, 102, 255, .22), transparent 72%); }
.dark h2, .dark h3, .dark h4 { color: #fff; }
.dark .pill { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #fff; }
.dark .lead { color: #D7D5D1; }
.sovereign-grid { position: relative; display: grid; gap: clamp(32px, 5vw, 80px); grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
@media (max-width: 900px) { .sovereign-grid { grid-template-columns: minmax(0, 1fr); } }
.sovereign-head { display: grid; gap: 20px; }
.arch { margin-top: clamp(12px, 3vw, 36px); max-width: 460px; }
.arch svg { width: 100%; height: auto; overflow: visible; }
.arch .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.arch.is-drawn .draw { animation: draw 2.4s cubic-bezier(.4, 0, .2, 1) forwards; }
.arch.is-drawn .draw.d2 { animation-delay: .5s; }
.arch.is-drawn .draw.d3 { animation-delay: 1s; }
.arch .fade { opacity: 0; }
.arch.is-drawn .fade { animation: fade .8s ease 1.8s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
.controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 640px) { .controls { grid-template-columns: minmax(0, 1fr); } }
.controls > li { display: grid; gap: 6px; align-content: start; padding: 22px; border-radius: 20px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.controls p { font-size: 17px; }
.dark .statement { color: #fff; margin-top: clamp(24px, 3vw, 40px); font-weight: 400; max-width: 46ch; font-size: clamp(20px, 2vw, 24px); }

/* ---------- performance ---------- */
.stat-card { position: relative; overflow: hidden; }
.stat-card .num { color: var(--blue); font-weight: 700; font-size: clamp(48px, 5.4vw, 80px); line-height: 1; letter-spacing: -0.01em; white-space: nowrap; }
.exact { margin-top: clamp(14px, 1.6vw, 20px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 8px 24px; align-items: center; padding: clamp(22px, 2.6vw, 32px) clamp(24px, 3vw, 40px); border-radius: var(--r-card); background: var(--blue); color: #fff; box-shadow: 0 24px 48px -24px rgba(0, 102, 255, .8); }
.exact h3 { font-size: 26px; color: #fff; }
.exact p { font-size: 19px; }
@media (max-width: 640px) { .exact { grid-template-columns: minmax(0, 1fr); } }
.perf .note { margin-top: 24px; margin-inline: auto; text-align: center; }

/* ---------- editions ---------- */
.editions { align-items: stretch; }
.edition { background: var(--soft); border-radius: var(--r-card); padding: clamp(24px, 3vw, 40px); display: grid; gap: 12px; align-content: start; }
.edition .edition-name { font-family: var(--latin); font-size: 40px; line-height: 1; color: var(--ink); font-weight: 700; }
.edition .edition-scope { width: fit-content; padding: 4px 12px; border-radius: 999px; background: #fff; color: var(--muted); font-size: 15px; font-weight: 700; }
.edition h3 { font-size: 22px; color: var(--blue); margin-top: 10px; }
.edition p { font-size: 18px; }
.edition--top { background: linear-gradient(160deg, #0A5CFF 0%, #0066FF 50%, #3D8BFF 100%); color: #fff; box-shadow: 0 30px 60px -28px rgba(0, 102, 255, .9); }
.edition--top .edition-name, .edition--top h3 { color: #fff; }
.edition--top .edition-scope { background: rgba(255, 255, 255, .18); color: #fff; }
.editions + .note { margin-top: 24px; margin-inline: auto; text-align: center; }

.pricing { margin-top: clamp(20px, 3vw, 32px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(14px, 1.6vw, 20px); }
@media (max-width: 900px) { .pricing { grid-template-columns: minmax(0, 1fr); } }
.pricing-main { position: relative; overflow: hidden; background: var(--ink); color: #D7D5D1; border-radius: var(--r-card); padding: clamp(26px, 3.4vw, 48px); display: grid; gap: 14px; align-content: start; }
.pricing-main::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 90% at 0% 0%, rgba(0, 102, 255, .5), transparent 70%); pointer-events: none; }
[dir="rtl"] .pricing-main::before { background: radial-gradient(50% 90% at 100% 0%, rgba(0, 102, 255, .5), transparent 70%); }
.pricing-main > * { position: relative; }
.pricing-main .tag { color: #9CC2FF; }
.pricing-main h3 { color: #fff; font-size: clamp(28px, 3.2vw, 44px); }
.pricing-main p { font-size: 19px; max-width: 52ch; }
.pricing-main .btn { margin-top: 8px; }
.pricing-oss { background: var(--tint); border-radius: var(--r-card); padding: clamp(26px, 3.4vw, 48px); display: grid; gap: 8px; align-content: end; color: var(--ink); }
.pricing-oss .oss-when { color: var(--blue); font-weight: 700; font-size: clamp(48px, 5.4vw, 80px); line-height: 1; letter-spacing: -0.01em; white-space: nowrap; text-align: start; }
[dir="rtl"] .pricing-oss .oss-when { text-align: end; }
.pricing-oss h4 { font-size: 24px; }
.pricing-oss p { font-size: 18px; }

/* ---------- delivery ---------- */
.steps { counter-reset: step; }
.step { counter-increment: step; }
.step::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--latin); font-weight: 700; font-size: 22px; line-height: 1; box-shadow: 0 0 0 6px rgba(0, 102, 255, .14); margin-bottom: 10px; }

/* ---------- why ---------- */
.why-top { display: grid; gap: clamp(14px, 1.6vw, 20px); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.why-top .wide { grid-column: span 2; }
@media (max-width: 900px) { .why-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .why-top { grid-template-columns: minmax(0, 1fr); } .why-top .wide { grid-column: auto; } }
.card .why-num { font-family: var(--latin); font-size: clamp(52px, 5.6vw, 84px); color: var(--ink); font-weight: 700; line-height: 1; direction: ltr; text-align: start; }
[dir="rtl"] .card .why-num { text-align: end; }
.places { margin-top: 28px; color: var(--muted); font-size: 17px; text-align: center; }

/* ---------- contact ---------- */
.contact-card { position: relative; overflow: hidden; background: var(--soft); border-radius: clamp(24px, 3vw, 40px); padding: clamp(22px, 4vw, 64px); display: grid; gap: clamp(28px, 4vw, 64px); grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: start; }
.contact-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(40% 50% at 0% 0%, rgba(0, 102, 255, .16), transparent 72%); }
[dir="rtl"] .contact-card::before { background: radial-gradient(40% 50% at 100% 0%, rgba(0, 102, 255, .16), transparent 72%); }
.contact-card > * { position: relative; }
@media (max-width: 900px) { .contact-card { grid-template-columns: minmax(0, 1fr); } }
.contact-copy { display: grid; gap: 22px; }
.next { counter-reset: next; display: grid; gap: 10px; margin-top: 4px; }
.next li { counter-increment: next; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 16px; border-radius: 16px; background: #fff; color: var(--ink); font-size: 18px; }
.next li::before { content: counter(next); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--tint); color: var(--blue); font-family: var(--latin); font-weight: 700; font-size: 17px; line-height: 1; }
.status { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 18px; }
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 5px rgba(0, 102, 255, .16); flex: none; }
.direct { display: grid; gap: 6px; font-size: 19px; }
.direct span { color: var(--muted); font-size: 16px; }
.direct a { color: var(--ink); font-weight: 700; text-decoration: none; width: fit-content; border-bottom: 1px solid var(--rule-strong); }
.direct a:hover { color: var(--blue); border-color: var(--blue); }

.form { background: #fff; border: 1px solid var(--rule); border-radius: var(--r-card); box-shadow: var(--shadow-lg); padding: clamp(20px, 3vw, 36px); display: grid; gap: 16px; }
.form h3 { font-size: 26px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
.hint { color: var(--muted); font-size: 14px; line-height: 1.4; }
label, .label { color: var(--ink); font-weight: 700; font-size: 16px; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea { width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; font-size: 18px; color: var(--ink); background: var(--soft); border: 1px solid transparent; border-radius: var(--r-small); appearance: none; -webkit-appearance: none; transition: border-color .15s ease, background-color .15s ease; }
textarea { min-height: 108px; resize: vertical; line-height: 1.45; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px; background-size: 6px 6px; background-repeat: no-repeat; padding-inline-end: 40px; }
[dir="rtl"] select { background-position: 14px 21px, 20px 21px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); background-color: #fff; box-shadow: 0 0 0 4px rgba(0, 102, 255, .14); }
::placeholder { color: var(--muted); opacity: 1; }
.is-invalid { border-color: #B3261E !important; background: #FFF6F5 !important; }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-weight: 400; font-size: 16px; color: var(--body); }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--blue); }
.check.is-invalid-check { color: #B3261E; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 17px; min-height: 1.4em; color: var(--ink); }
.form-status[data-kind="error"] { color: #B3261E; }
.form-status[data-kind="ok"] { font-weight: 700; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.form-foot a { font-size: 16px; color: var(--muted); }

/* ---------- legal pages ---------- */
.legal { padding-block: clamp(40px, 6vw, 80px) clamp(48px, 6vw, 96px); }
.legal-wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .legal-wrap { grid-template-columns: minmax(0, 1fr); } }
.legal-nav { position: sticky; top: 100px; display: grid; gap: 4px; }
@media (max-width: 860px) { .legal-nav { position: static; display: flex; flex-wrap: wrap; } }
.legal-nav a { padding: 10px 14px; border-radius: 12px; color: var(--body); text-decoration: none; font-size: 17px; }
.legal-nav a:hover { background: var(--soft); color: var(--ink); }
.legal-nav a[aria-current="page"] { background: var(--tint); color: var(--blue); font-weight: 700; }
.legal article { display: grid; gap: 20px; max-width: 74ch; }
.legal h1 { font-size: clamp(40px, 5.4vw, 68px); }
.legal-list { counter-reset: clause; display: grid; gap: 28px; margin-top: 16px; }
.legal-list li { counter-increment: clause; display: grid; gap: 8px; scroll-margin-top: 110px; }
.legal-list h2 { font-size: 24px; line-height: 1.25; max-width: none; letter-spacing: 0; }
.legal-list h2::before { content: counter(clause) ". "; color: var(--blue); }
.legal-list p { font-size: 18px; }
.legal-list li:target { background: var(--tint); border-radius: 16px; padding: 18px 20px; margin-inline: -20px; }

/* ---------- footer ---------- */
.site-footer { margin-top: clamp(24px, 4vw, 56px); background: var(--ink); color: #BDBAB5; padding-block: clamp(48px, 6vw, 80px) 36px; font-size: 17px; border-radius: clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px) 0 0; }
.footer-motion { display: grid; place-items: center; margin-top: calc(-1 * clamp(16px, 3vw, 40px)); margin-bottom: clamp(12px, 2vw, 28px); }
.footer-motion iframe { width: min(100%, 560px); height: clamp(240px, 30vw, 340px); border: 0; background: var(--ink); color-scheme: dark; pointer-events: none; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px 48px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.footer-brand { display: grid; gap: 14px; max-width: 46ch; }
.footer-brand .brand { color: #fff; margin: 0; }
.footer-close { color: #fff; font-weight: 700; font-size: 22px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; align-content: start; }
.footer-links a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.footer-links a:hover { border-color: #fff; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 24px; font-size: 16px; }
.footer-legal a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.footer-legal a:hover { border-color: #fff; }
.footer-bottom { display: grid; gap: 12px; padding-top: 28px; font-size: 15px; line-height: calc(var(--lh) - 0.05); }
.footer-bottom p { max-width: 110ch; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .arch .draw { stroke-dashoffset: 0; animation: none !important; }
  .arch .fade { opacity: 1; animation: none !important; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee-track > [aria-hidden="true"] { display: none; }
  .live-dot, .live-row.is-new { animation: none; }
  .btn, .arrow { transition: none; }
}
