/* Qodra Systems company site. Theme: the app's approved "warm" look (warm paper by day, indigo night by night). */

@font-face { font-family: "Plex Arabic"; src: url("/assets/fonts/IBMPlexSansArabic-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("/assets/fonts/IBMPlexSansArabic-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("/assets/fonts/IBMPlexSansArabic-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("/assets/fonts/IBMPlexSansArabic-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Alexandria"; src: url("/assets/fonts/Alexandria-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Alexandria"; src: url("/assets/fonts/Alexandria-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --page: #F3F1EC; --top: #FDFCFA; --field: #EFECE6; --chip: #ECE9E2; --tile: #E0DCD3;
  --card: rgba(255, 255, 255, .7); --card-solid: #FBFAF7;
  --ink: #1B1A30; --muted: #63606F; --line: #DCD7CD; --outline: #8A8596;
  --primary: #4F46E5; --action: #4F46E5; --action-hover: #4338CA; --on-action: #FFFFFF;
  --pc: #E6E4FB; --on-pc: #3730A3;
  --night: #1B1A33; --night-2: #232142; --night-line: #34315A; --night-ink: #F1EEFA; --night-muted: #BFBBD2; --night-accent: #9A8DF8;
  --amber: #F2A65A; --green: #2E7564;
  --success: #237055; --warning: #84430E; --danger: #B91C1C;
  --shadow-shot: 0 24px 48px -28px rgba(27, 26, 48, .4), 0 1px 3px rgba(27, 26, 48, .12);
  --display: "Alexandria", "Plex Arabic", system-ui, sans-serif;
  --body: "Plex Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1200px; --gut: 24px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --page: #12111F; --top: #0D0C18; --field: #18172A; --chip: #1C1A2D; --tile: #2A2840;
  --card: rgba(255, 255, 255, .05); --card-solid: #18172A;
  --ink: #F1EEFA; --muted: #BFBBD2; --line: #2E2B44; --outline: #77728A;
  --primary: #9A8DF8; --action: #5A52EA; --action-hover: #6A63F0; --on-action: #FFFFFF;
  --pc: #2A2752; --on-pc: #D6D1FF;
  --night: #0D0C18; --night-2: #18172A; --night-line: #2E2B44;
  --success: #4FBF92; --warning: #E9A35A; --danger: #F87171;
  --shadow-shot: 0 24px 48px -28px rgba(0, 0, 0, .8), 0 1px 3px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 16px/1.75 var(--body); -webkit-font-smoothing: antialiased; transition: background-color .35s var(--ease), color .35s var(--ease); }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
::selection { background: var(--pc); color: var(--on-pc); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.num { font-variant-numeric: tabular-nums; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .flip { transform: scaleX(-1); }
html::-webkit-scrollbar { width: 12px; }
html::-webkit-scrollbar-track { background: var(--page); }
html::-webkit-scrollbar-thumb { background: var(--tile); border: 3px solid var(--page); border-radius: 99px; }

/* Theme-paired assets: show the one for the current theme */
[data-theme="dark"] .only-light, :root:not([data-theme="dark"]) .only-dark { display: none !important; }

/* ───── Buttons ───── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 20px; border-radius: 8px; border: 1px solid transparent; font: 600 15px/1.2 var(--body); text-decoration: none; cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); white-space: nowrap; }
.btn .ic { width: 18px; height: 18px; }
.btn-p { background: var(--action); color: var(--on-action); box-shadow: 0 4px 12px -5px rgba(27, 26, 48, .35); }
.btn-p:hover { background: var(--action-hover); transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(27, 26, 48, .45); }
.btn-g { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-g:hover { border-color: var(--outline); background: var(--card); }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 13px 24px; font-size: 16px; }
.on-night .btn-g { color: var(--night-ink); border-color: var(--night-line); }
.on-night .btn-g:hover { border-color: var(--night-muted); background: rgba(255, 255, 255, .04); }
.on-night .btn-p { background: #5A52EA; }
.on-night .btn-p:hover { background: #6A63F0; }

/* ───── Top bar ───── */
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--top) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); transition: background-color .35s var(--ease), border-color .35s var(--ease); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand .mark { width: 30px; height: auto; }
.brand .word { height: 22px; width: auto; }
.top nav.links { display: flex; gap: 4px; margin-inline-start: 8px; }
.top nav.links a { padding: 8px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 500; color: var(--muted); text-decoration: none; transition: color .2s, background-color .2s; }
.top nav.links a:hover { color: var(--ink); background: var(--chip); }
.top nav.links a[aria-current="page"] { color: var(--ink); }
.top .end { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.iconbtn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; text-decoration: none; transition: color .2s, background-color .2s; }
.iconbtn:hover { color: var(--ink); background: var(--chip); }
.langlink { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; }
.langlink:hover { color: var(--ink); background: var(--chip); }
.burger { display: none; }
.mnav { display: none; }

/* ───── Section scaffolding ───── */
.sec { padding-block: 120px; }
.sec-h { max-width: 760px; margin-bottom: 56px; }
.sec-h h2 { font: 600 clamp(30px, 3.6vw, 48px)/1.25 var(--display); letter-spacing: -.015em; }
.sec-h p { margin-top: 16px; font-size: 18px; color: var(--muted); max-width: 62ch; }
.night { background: var(--night); color: var(--night-ink); }
.night .sec-h p { color: var(--night-muted); }
.rule-top { border-top: 1px solid var(--line); }

/* ───── Diagram engine (code-drawn SVG, animated once in view) ───── */
.dia svg { width: 100%; height: auto; display: block; overflow: visible; }
.dia text { font-family: var(--body); }
.js .dia:not(.in) .pop { opacity: 0; transform: scale(.86); }
.pop { transform-box: fill-box; transform-origin: center; transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.flow { stroke-dasharray: 3 9; animation: flow 1.6s linear infinite; animation-delay: var(--d, 0s); }
@keyframes flow { to { stroke-dashoffset: -24; } }
.draw { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); }
.dia.in .draw { animation: draw 2.6s var(--ease) forwards; animation-delay: var(--d, .3s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.js .dia:not(.in) .flow { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .flow { animation: none; } .draw { stroke-dashoffset: 0; } .js .dia:not(.in) .pop { opacity: 1; transform: none; } }

/* palette for drawn lines and plates */
.d-line { fill: none; stroke: var(--line); stroke-width: 1.5; }
.d-acc { fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; }
.d-plate { fill: var(--top); stroke: var(--line); stroke-width: 1.5; }
.d-soft { fill: var(--field); }
.d-pc { fill: var(--pc); }
.d-txt { fill: var(--ink); font-size: 15px; font-weight: 500; }
.d-mut { fill: var(--muted); font-size: 13.5px; }
.d-big { fill: var(--ink); font-size: 17px; font-weight: 600; }
.d-on { fill: #fff; font-size: 14px; font-weight: 600; }
.d-ok { fill: var(--success); }

/* ───── Hero ───── */
.hero { position: relative; padding-block: 64px 96px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px 56px; align-items: center; }
.hero h1 { font: 600 clamp(38px, 4.9vw, 70px)/1.18 var(--display); letter-spacing: -.025em; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero .lede { margin-top: 30px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.85; color: var(--muted); max-width: 54ch; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.hx { width: 100%; height: auto; overflow: visible; }
.hx-links line { stroke: var(--line); stroke-width: 1.5; }
.hx-flow line { stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2 14; animation: flow 1.8s linear infinite; animation-delay: var(--d, 0s); }
.hx-cell { stroke-width: 1.5; stroke-linejoin: round; }
.hx-r2 { fill: var(--page); stroke: var(--line); }
.hx-r1 { stroke: transparent; }
.hx-core { fill: var(--top); stroke: var(--line); }
.hx-lbl { fill: #fff; font: 600 14px var(--body); text-anchor: middle; }
.hx-mono { fill: var(--muted); font: 600 12px var(--body); text-anchor: middle; letter-spacing: .04em; }
.hero-dia { position: relative; }

/* ───── Capability lists and diagram boxes ───── */
.caps { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin-top: 32px; border-top: 1px solid var(--line); }
.caps li { padding-block: 13px; border-bottom: 1px solid var(--line); font-size: 15.5px; font-weight: 500; }
.dia-box { position: relative; border-radius: 24px; padding: clamp(14px, 2vw, 24px) !important; background-color: var(--field); background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 22px 22px; padding: clamp(18px, 3vw, 36px); border: 1px solid var(--line); }

/* Diagrams on night bands */
.night .d-line { stroke: var(--night-line); }
.night .d-plate { fill: var(--night); stroke: var(--night-line); }
.night .d-txt { fill: var(--night-ink); }
.night .d-mut { fill: var(--night-muted); }
.night .d-acc { stroke: var(--night-accent); }

/* ───── ERP module index ───── */
.mod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; border-top: 1px solid var(--line); }
.mod-grid li { display: grid; grid-template-columns: 40px 1fr; gap: 4px 14px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.mod-grid .mdl { grid-row: span 2; width: 40px; height: auto; margin-top: 2px; }
.mod-grid b { font-size: 17px; font-weight: 600; line-height: 1.4; }
.mod-grid b a { color: inherit; text-decoration: none; }
.mod-grid b a:hover { color: var(--primary); }
.sgroup .mod-grid { margin-top: 8px; }
.mod-grid span { color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.mod-fam { margin: 56px 0 18px; font: 600 15px/1.4 var(--body); color: var(--primary); }
.mod-fam:first-of-type { margin-top: 0; }

/* Service detail page */
.svc { padding-block: 112px; border-top: 1px solid var(--line); }
.svc .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 72px; align-items: start; }
.svc .head { position: sticky; top: 100px; }
.svc h2 { font: 600 clamp(32px, 4vw, 58px)/1.15 var(--display); letter-spacing: -.02em; }
.svc .head p { margin-top: 18px; color: var(--muted); font-size: 17.5px; line-height: 1.9; }
.svc .head .btn { margin-top: 28px; }
.svc-list { border-top: 1px solid var(--line); }
.svc-list li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 24px; padding-block: 24px; border-bottom: 1px solid var(--line); }
.svc-list b { font-size: 18px; font-weight: 600; line-height: 1.45; }
.svc-list span { color: var(--muted); font-size: 15.5px; line-height: 1.85; }
.svc .dia { margin-top: 40px; }
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.jump a { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; font-size: 15px; text-decoration: none; }
.jump a:hover { border-color: var(--outline); background: var(--card); }

/* ───── Promises ───── */
.prom { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.prom li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding-block: 24px; border-top: 1px solid var(--line); }
.prom .ic { width: 24px; height: 24px; color: var(--success); margin-top: 3px; }
.prom b { display: block; font-size: 17.5px; font-weight: 600; }
.prom span { display: block; margin-top: 4px; color: var(--muted); font-size: 15px; }

/* ───── Company teaser / facts table ───── */
.co { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: start; }
.co .txt p + p { margin-top: 16px; }
.co .txt p { font-size: 17px; color: var(--muted); }
.co .txt p strong { color: var(--ink); font-weight: 600; }
.co .txt .btn { margin-top: 28px; }
.dl { border-top: 1px solid var(--line); }
.dl div { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding-block: 15px; border-bottom: 1px solid var(--line); font-size: 15px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 500; }
.dl a { text-decoration: none; }
.dl a:hover { text-decoration: underline; }

/* ───── FAQ ───── */
.faq-g { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.faq-g .sec-h { position: sticky; top: 100px; margin-bottom: 0; }
.faq-g .sec-h .btn { margin-top: 24px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; font-size: 17px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--muted); transition: transform .3s var(--ease); }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq details p { padding-bottom: 24px; color: var(--muted); font-size: 15.5px; line-height: 1.9; max-width: 68ch; }

/* ───── Closing contact band ───── */
.close { padding-block: 104px; }
.close .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: end; }
.close h2 { font: 600 clamp(30px, 3.8vw, 50px)/1.25 var(--display); letter-spacing: -.015em; }
.close p { margin-top: 16px; color: var(--night-muted); font-size: 17.5px; max-width: 52ch; }
.close .cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.chan { border-top: 1px solid var(--night-line); }
.chan a, .chan div { display: flex; align-items: center; gap: 14px; padding-block: 18px; border-bottom: 1px solid var(--night-line); text-decoration: none; font-size: 17px; font-weight: 500; }
.chan a:hover span:last-child { text-decoration: underline; }
.chan .ic { color: var(--night-accent); width: 22px; height: 22px; }
.chan small { display: block; font-size: 13px; color: var(--night-muted); font-weight: 400; }

/* ───── Footer ───── */
.foot { background: var(--night); color: var(--night-muted); border-top: 1px solid var(--night-line); padding-block: 64px 32px; font-size: 14.5px; }
.foot .cols { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2.4fr)); gap: 40px; }
.foot .brand .word { height: 22px; }
.foot p { margin-top: 16px; max-width: 40ch; line-height: 1.8; }
.foot h2 { color: var(--night-ink); font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.foot li + li { margin-top: 9px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--night-ink); text-decoration: underline; }
.foot .base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--night-line); font-size: 13.5px; }

/* ───── Inner pages (about, contact) ───── */
.page-h { padding-block: 88px 64px; border-bottom: 1px solid var(--line); }
.page-h h1 { font: 600 clamp(34px, 4.6vw, 60px)/1.22 var(--display); letter-spacing: -.02em; max-width: 18ch; }
.page-h p { margin-top: 20px; font-size: 18.5px; color: var(--muted); max-width: 60ch; line-height: 1.85; }
.prose { max-width: 68ch; }
.prose p { font-size: 17px; line-height: 1.95; color: var(--muted); }
.prose p + p { margin-top: 18px; }
.prose p strong { color: var(--ink); font-weight: 600; }
.cols2 { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.cols2 > h2 { font: 600 clamp(24px, 2.6vw, 32px)/1.35 var(--display); position: sticky; top: 100px; }
.lead-card { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: center; padding-block: 22px; border-block: 1px solid var(--line); }
.lead-card img { width: 64px; height: 64px; border-radius: 50%; }
.lead-card b { display: block; font-size: 18px; font-weight: 600; }
.lead-card span { color: var(--muted); font-size: 15px; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; counter-reset: k; }
.steps3 li { padding-top: 22px; border-top: 2px solid var(--ink); counter-increment: k; }
.steps3 li::before { content: counter(k, arabic-indic); display: block; font: 600 15px/1 var(--display); color: var(--primary); margin-bottom: 14px; }
[lang="en"] .steps3 li::before { content: counter(k); }
.steps3 b { display: block; font-size: 18px; font-weight: 600; }
.steps3 span { display: block; margin-top: 6px; color: var(--muted); font-size: 15px; }

/* Contact form */
.cform { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cform .full { grid-column: 1 / -1; }
.cform label { display: grid; align-content: start; gap: 7px; font-size: 14px; font-weight: 600; }
.cform input, .cform select, .cform textarea { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--field); color: var(--ink); font: 400 15.5px/1.5 var(--body); transition: border-color .2s, background-color .2s; }
.cform textarea { min-height: 150px; resize: vertical; }
.cform input::placeholder, .cform textarea::placeholder { color: var(--muted); }
.cform input:hover, .cform select:hover, .cform textarea:hover { border-color: var(--outline); }
.cform input:focus, .cform select:focus, .cform textarea:focus { outline: none; border-color: var(--primary); background: var(--top); box-shadow: 0 0 0 3px var(--pc); }
.cform [aria-invalid="true"] { border-color: var(--danger); }
.cform .err { font-size: 13.5px; font-weight: 500; color: var(--danger); }
.cform .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.cform .hint { font-size: 13.5px; color: var(--muted); font-weight: 400; }
.side-chan { border-top: 1px solid var(--line); }
.side-chan a, .side-chan div { display: grid; grid-template-columns: 24px 1fr; gap: 14px; padding-block: 18px; border-bottom: 1px solid var(--line); text-decoration: none; }
.side-chan .ic { color: var(--primary); width: 22px; height: 22px; margin-top: 3px; }
.side-chan b { display: block; font-size: 16px; font-weight: 600; }
.side-chan span { display: block; font-size: 14.5px; color: var(--muted); }
.side-chan a:hover b { text-decoration: underline; }

/* ───── Responsive ───── */
@media (max-width: 1080px) {
  .top nav.links { display: none; }
  .burger { display: inline-grid; }
  .mnav { position: fixed; inset: 68px 0 auto; z-index: 39; display: grid; gap: 2px; max-height: calc(100dvh - 68px); overflow-y: auto; overscroll-behavior: contain; padding: 12px var(--gut) 20px; background: var(--top); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -28px rgba(27, 26, 48, .4); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s; }
  .mnav.on { opacity: 1; visibility: visible; transform: none; }
  .mnav a { padding: 12px 8px; border-radius: 8px; font-size: 16px; font-weight: 500; text-decoration: none; }
  .mnav a:not(.btn):hover { background: var(--chip); }
  .mnav .btn { margin-top: 8px; }
  .top .end .btn { display: none; }
  .mod-grid { grid-template-columns: repeat(2, 1fr); }
  .foot .cols { grid-template-columns: repeat(3, 1fr); }
  .foot .cols > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .sec, .svc { padding-block: 88px; }
  .hero .wrap, .svc .wrap, .faq-g, .close .wrap, .cols2, .co { grid-template-columns: 1fr; }
  .hero-dia { max-width: 460px; margin-inline: auto; width: 100%; }
  .svc .head, .faq-g .sec-h, .cols2 > h2 { position: static; }
  .prom { grid-template-columns: 1fr; }
  .steps3 { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  :root { --gut: 16px; }
  .sec, .svc { padding-block: 72px; }
  .hero { padding-block: 40px 64px; }
  .hero .cta .btn { flex: 1 1 auto; }
  .caps { grid-template-columns: 1fr; }
  .mod-grid { grid-template-columns: 1fr; }
  .svc-list li { grid-template-columns: 1fr; gap: 6px; }
  .dl div { grid-template-columns: 1fr; gap: 2px; }
  .cform { grid-template-columns: 1fr; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
  .langlink span { display: none; }
}
.side-chan .ltr { display: inline-block; }
.dia .scan { animation: scan 3.2s var(--ease) infinite; }
@keyframes scan { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: .55; } 85% { opacity: .55; } 100% { transform: translateY(228px); opacity: 0; } }
.dia .sync { animation: sync 3s ease-in-out infinite; }
@keyframes sync { 0%, 60%, 100% { fill: var(--pc); } 70%, 90% { fill: color-mix(in srgb, var(--success) 22%, var(--top)); } }
.dia .ping { transform-box: fill-box; transform-origin: center; animation: ping 2s var(--ease) infinite; }
@keyframes ping { from { transform: scale(1); opacity: .9; } to { transform: scale(3); opacity: 0; } }
.js .dia:not(.in) .scan, .js .dia:not(.in) .sync, .js .dia:not(.in) .ping { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .dia .scan, .dia .ping { display: none; } .dia .sync { animation: none; } }
.night .dia-box { background-color: var(--night-2); border-color: var(--night-line); background-image: radial-gradient(var(--night-line) 1px, transparent 1px); }
.dia-box.night { background-color: var(--night); border-color: var(--night-line); background-image: radial-gradient(var(--night-line) 1px, transparent 1px); }

/* ═════════════ Systems portfolio (2026-10-19) ═════════════ */
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 60; padding: 10px 16px; border-radius: 8px; background: var(--action); color: var(--on-action); font-weight: 600; text-decoration: none; transition: top .2s var(--ease); }
.skip:focus { top: 12px; }
[dir="ltr"] .flip-en { transform: scaleX(-1); }
.ic.s { width: 16px; height: 16px; }
html::selection { background: var(--pc); }

/* Nav: systems mega menu */
.dd { position: relative; }
.dd-btn { display: inline-flex; align-items: center; gap: 4px; padding: 8px 10px 8px 12px; border: 0; border-radius: 8px; background: none; font: 500 14.5px/1.75 var(--body); color: var(--muted); cursor: pointer; transition: color .2s, background-color .2s; }
.dd-btn .ic { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.dd-btn:hover, .dd.open .dd-btn, .dd-btn[aria-current] { color: var(--ink); }
.dd-btn:hover, .dd.open .dd-btn { background: var(--chip); }
.dd.open .dd-btn .ic { transform: rotate(180deg); }
.mega { position: absolute; inset-inline-start: -16px; top: calc(100% + 14px); width: min(820px, calc(100vw - 48px)); padding: 12px; background: var(--top); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 40px -28px rgba(27, 26, 48, .4); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s var(--ease), transform .25s var(--ease), visibility .2s; }
[data-theme="dark"] .mega { box-shadow: 0 24px 40px -28px #000; }
[data-theme="dark"] .mock, [data-theme="dark"] .log { outline: 1px solid var(--line); outline-offset: -1px; }
.dd.open .mega { opacity: 1; visibility: visible; transform: none; }
.mega-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 8px; }
.mega-fam + .mega-fam { margin-top: 10px; }
.mega-fam p { margin: 6px 10px 2px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.mega .msub { display: flex; align-items: center; gap: 10px; padding: 6px 10px; font-size: 14.5px; font-weight: 500; color: var(--ink); }
.mega .msub .mgl { width: 24px; margin: 0; }
.mega a { display: grid; grid-template-columns: 34px 1fr; gap: 0 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; transition: background-color .2s; }
.mega a:hover, .mega a:focus-visible { background: var(--chip); }
.mgl { width: 34px; height: auto; grid-row: span 2; margin-top: 3px; }
.mega b { font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--ink); }
.mega-grid span { font-size: 13px; line-height: 1.55; color: var(--muted); }
.mega-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--line); }
.mega-foot .mega-all { flex: 1; align-items: center; grid-template-columns: 30px 1fr; }
.mega-foot .mega-all .mgl { width: 30px; }
.mega-all > span { display: grid; }
.mega-all > span > span { font-size: 13px; color: var(--muted); }
.mega-idx { display: inline-flex !important; align-items: center; gap: 6px; flex: none; font-size: 14px; font-weight: 600; color: var(--primary); }
.mega-idx .ic { width: 16px; height: 16px; }
.mnav .mhead { margin: 4px 8px 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.mnav .mgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding-bottom: 10px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.mnav .mfam { grid-column: 1 / -1; margin: 10px 8px 2px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.mnav .mfam:first-child { margin-top: 2px; }
.mnav .msub { display: flex !important; align-items: center; gap: 10px; font-size: 15px !important; padding: 10px 8px !important; }
.mnav .msub .mgl { width: 24px; margin: 0; }

/* Hero hive: every system cell is a link */
.hx-a { cursor: pointer; outline: none; }
.hx-a polygon { transform-box: fill-box; transform-origin: center; transition: transform .35s var(--ease), filter .35s var(--ease); }
.hx-a:hover polygon.hx-r1, .hx-a:focus-visible polygon.hx-r1 { transform: scale(1.07); filter: brightness(1.08); }
.hx-a:focus-visible polygon { stroke: var(--ink); stroke-width: 3; }
.hx-a:hover .hx-core { stroke: var(--primary); }
.hx-hint { margin-top: 10px; text-align: center; font-size: 13.5px; color: var(--muted); }
.js .hero-dia:not(.in) .hx-hint { opacity: 0; }
.hx-hint { transition: opacity .6s var(--ease) 1.6s; }

/* Built-for-Jordan strip */
.proof { border-block: 1px solid var(--line); background: var(--top); }
.proof .wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 32px; padding-block: 20px; font-size: 14.5px; color: var(--muted); }
.proof b { color: var(--ink); font-weight: 600; }
.proof span { display: inline-flex; align-items: center; gap: 8px; }
.proof .ic { width: 18px; height: 18px; color: var(--primary); }

/* Split section heads */
.sec-h.split { max-width: none; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px 64px; align-items: end; }
.sec-h.split h2 { font-size: clamp(28px, 3.1vw, 44px); line-height: 1.28; }
.sec-h.split p { margin-top: 0; }
.note { display: flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 13.5px; color: var(--muted); }

/* Mock interfaces (code-drawn illustrations) */
.mock { border-radius: 16px; background: var(--card-solid); box-shadow: var(--shadow-shot); overflow: hidden; color: var(--ink); font-size: 13.5px; line-height: 1.55; text-align: start; }
.mock-bar { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 16px; background: var(--top); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.mock-bar b { color: var(--ink); font-weight: 600; font-size: 13.5px; }
.mg { width: 22px; height: auto; }
.mock-bar .live { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.mock-bar .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 20%, transparent); }
.mock-body { padding: 16px 18px 14px; }
.mock .meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; color: var(--muted); font-size: 13px; }
.mock .meta b { color: var(--ink); font-weight: 600; }
.mt { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.mt th { padding: 6px 0 8px; font-size: 12px; font-weight: 500; color: var(--muted); text-align: start; border-bottom: 1px solid var(--line); }
.mt td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.mt th + th, .mt td + td { padding-inline-start: 12px; }
.mt .n { text-align: end; white-space: nowrap; }
.mt tfoot td { border-bottom: 0; font-weight: 600; padding-top: 10px; }
.mt .code { display: inline-block; min-width: 3.4em; color: var(--muted); font-size: 12px; margin-inline-end: 6px; }
.mt .ref { color: var(--muted); font-size: 12px; }
.st { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.st .ic { width: 13px; height: 13px; stroke-width: 2.5; }
.st-ok { background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); }
.st-warn { background: color-mix(in srgb, var(--warning) 15%, transparent); color: var(--warning); }
.st-no { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.st-acc { background: var(--pc); color: var(--on-pc); }
.foot-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--muted); }
.foot-row .ic { width: 17px; height: 17px; color: var(--primary); }
.foot-row > :last-child:not(:nth-child(2)) { margin-inline-start: auto; }
.chips-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.chips-row span, .seg span { padding: 3px 10px; border-radius: 8px; border: 1px solid var(--line); font-size: 12px; font-weight: 500; color: var(--muted); }
.chips-row .on, .seg .on { background: var(--ink); border-color: var(--ink); color: var(--page); }
/* POS */
.pos { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; }
.cart li { display: grid; grid-template-columns: 1fr auto 4.2em; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.cart .q { color: var(--muted); }
.cart .n { text-align: end; font-variant-numeric: tabular-nums; }
.pay { display: grid; align-content: start; gap: 10px; padding: 14px; border-radius: 12px; background: var(--field); }
.pay small { color: var(--muted); font-size: 12px; }
.pay b { font: 600 28px/1.1 var(--display); letter-spacing: -.01em; }
.pay b i { font: 500 13px var(--body); color: var(--muted); }
.seg { display: flex; gap: 4px; flex-wrap: wrap; }
.btnlike { display: grid; place-items: center; min-height: 38px; border-radius: 8px; background: var(--action); color: var(--on-action); font-weight: 600; font-size: 13.5px; }
.pay .inv { text-align: center; }
/* PO timeline */
.tl { display: grid; grid-template-columns: repeat(5, 1fr); margin: 6px 0 12px; font-size: 12px; color: var(--muted); text-align: center; }
.tl li { position: relative; display: grid; justify-items: center; gap: 4px; }
.tl li::before { content: ""; position: absolute; top: 6px; inset-inline-start: 50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.tl li:last-child::before { display: none; }
.tl li.done::before { background: var(--primary); }
.tl i { position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%; background: var(--card-solid); border: 2px solid var(--line); }
.tl .done i { background: var(--primary); border-color: var(--primary); }
.tl .now i { border-color: var(--primary); box-shadow: 0 0 0 4px var(--pc); }
.tl .done, .tl .now { color: var(--ink); font-weight: 500; }
/* Payroll sums */
.sums { display: grid; grid-template-columns: .7fr 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.sums div { padding: 10px 12px; border-radius: 10px; background: var(--field); }
.sums small { display: block; font-size: 12px; color: var(--muted); }
.sums b { font: 600 17px/1.4 var(--display); }
/* Units */
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; }
.units { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.u { display: grid; place-items: center; height: 38px; border-radius: 8px; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.u-s { background: color-mix(in srgb, var(--success) 16%, var(--card-solid)); color: var(--success); }
.u-v { background: var(--field); color: var(--muted); border: 1px dashed var(--line); }
.u-l { background: color-mix(in srgb, var(--warning) 18%, var(--card-solid)); color: var(--warning); }
/* Map */
.map { position: relative; }
.map svg { width: 100%; height: auto; display: block; }
.floors { display: flex; justify-content: flex-end; gap: 4px; margin-bottom: 8px; }
.floors span { display: grid; place-items: center; width: 32px; height: 28px; border-radius: 7px; background: var(--top); border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--muted); }
.floors .on { background: var(--action); border-color: var(--action); color: #fff; }
.mp-floor { fill: var(--field); stroke: var(--line); stroke-width: 1.5; }
.mp-room { fill: var(--top); stroke: var(--line); stroke-width: 1.5; }
.mp-lift { fill: var(--chip); stroke-dasharray: 4 4; }
.mp-t { fill: var(--ink); font: 500 13px var(--body); text-anchor: middle; }
.mp-route { fill: none; stroke: var(--primary); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.mp-me { fill: var(--primary); }
.mp-pin circle { fill: var(--action); stroke: var(--card-solid); stroke-width: 3; }
.mp-pin text { fill: #fff; font: 600 12px var(--body); text-anchor: middle; }
/* Chat */
.chat { display: grid; gap: 10px; }
.chat .me { justify-self: end; max-width: 85%; padding: 9px 13px; border-radius: 14px 14px 4px 14px; background: var(--action); color: var(--on-action); }
[dir="rtl"] .chat .me { justify-self: start; border-radius: 14px 14px 14px 4px; }
.chat .bot { max-width: 94%; padding: 11px 13px; border-radius: 14px; background: var(--field); }
.bars { display: grid; gap: 6px; margin: 10px 0 8px; }
.bars li { display: grid; grid-template-columns: 6.5em 1fr 5em; align-items: center; gap: 10px; font-size: 12.5px; }
.bars i { height: 8px; border-radius: 4px; background: linear-gradient(var(--primary), var(--primary)) no-repeat 0 0 / var(--w) 100%, var(--line); }
[dir="rtl"] .bars i { background-position: 100% 0; }
.bars .n { text-align: end; font-variant-numeric: tabular-nums; }
.chat small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.ask { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--top); color: var(--muted); font-size: 13px; }
.ask .ic { width: 16px; height: 16px; color: var(--primary); }
/* Document reading */
.doc { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 16px; align-items: start; }
.paper { position: relative; display: grid; gap: 7px; padding: 16px 14px; border-radius: 6px; background: #FFFFFF; border: 1px solid var(--line); overflow: hidden; transform: rotate(-1.5deg); box-shadow: 0 10px 20px -14px rgba(27, 26, 48, .5); }
[data-theme="dark"] .paper { background: #E9E6F2; }
.paper i { height: 6px; border-radius: 3px; background: #CFCAD9; width: 100%; }
.paper .w40 { width: 40%; } .paper .w50 { width: 50%; } .paper .w60 { width: 60%; } .paper .w70 { width: 70%; } .paper .w80 { width: 80%; }
.paper .r { justify-self: end; background: #A9A3BA; }
.paper .gap { height: 2px; background: none; }
.paper .scan { position: absolute; inset-inline: 0; top: 0; height: 26px; background: linear-gradient(transparent, color-mix(in srgb, #4F46E5 30%, transparent)); border-bottom: 2px solid #4F46E5; animation: scanp 3.2s var(--ease) infinite; }
@keyframes scanp { 0% { transform: translateY(-30px); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(150px); opacity: 0; } }
.js .dia:not(.in) .scan { animation-play-state: paused; }
.fields li { display: grid; grid-template-columns: 6.6em 1fr 16px; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.fields span { color: var(--muted); }
.fields b { font-weight: 600; }
.fields .ok { width: 15px; height: 15px; color: var(--success); stroke-width: 2.5; }
/* Suite hive */
.suite { display: grid; place-items: center; padding: 6px 0; }
.dia .shive, .shive { width: min(100%, 280px); height: auto; overflow: hidden; }
.sh-core { fill: var(--top); stroke: var(--line); stroke-width: 1.5; }
.sh-ghost { fill: transparent; stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 3 4; }
.shive g.pop { transform-box: fill-box; transform-origin: center; }
/* Audit */
.m-audit .mt td { font-size: 13px; }

/* Explorer */
.xp { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px 56px; align-items: start; }
.xp-tabs { display: grid; gap: 2px; position: sticky; top: 92px; }
.xp-tab { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 0 14px; align-items: center; width: 100%; padding: 12px 14px; border: 1px solid transparent; border-radius: 12px; background: none; font: inherit; color: var(--ink); text-align: start; cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease); }
.xp-tab:hover { background: var(--chip); }
.xp-tab[aria-selected="true"] { background: var(--top); border-color: var(--line); box-shadow: 0 1px 3px rgba(27, 26, 48, .14); }
.xgl { width: 36px; height: auto; grid-row: span 2; }
.xp-tab b { font-size: 16px; font-weight: 600; line-height: 1.45; }
.xp-tab span { font-size: 13px; line-height: 1.55; color: var(--muted); }
.xp-panel { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px 40px; align-items: center; }
.js .xp-panel[data-hidden] { display: none; }
.xp-panel.enter .mock { animation: xin .5s var(--ease) both; }
.xp-panel.enter .xp-txt { animation: xin .5s var(--ease) .06s both; }
@keyframes xin { from { opacity: 0; transform: translateY(10px); } }
.xp-txt h3 { font: 600 clamp(22px, 2.2vw, 30px)/1.35 var(--display); letter-spacing: -.01em; }
.pts { display: grid; gap: 0; margin-block: 20px 24px; border-top: 1px solid var(--line); }
.pts li { display: flex; align-items: center; gap: 10px; padding-block: 11px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 500; }
.pts .ic { color: var(--success); stroke-width: 2.5; }
html:not(.js) .xp-panel + .xp-panel { margin-top: 56px; }

/* One sale ripple */
.rip { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px 72px; align-items: center; }
.rip h2 { font: 600 clamp(28px, 3.4vw, 46px)/1.25 var(--display); letter-spacing: -.015em; }
.rip .txt p { margin-top: 18px; font-size: 17.5px; line-height: 1.9; color: var(--muted); max-width: 56ch; }
.night .rip .txt p { color: var(--night-muted); }
.rip .btn { margin-top: 28px; }
.log { border-radius: 16px; background: var(--card-solid); box-shadow: var(--shadow-shot); overflow: hidden; color: var(--ink); }
.log li { display: grid; grid-template-columns: auto 30px 1fr 22px; gap: 14px; align-items: center; padding: 15px 20px; }
.log li + li { border-top: 1px solid var(--line); }
.log time { font-size: 12.5px; color: var(--muted); }
.lgl { width: 30px; height: auto; }
.log b { display: block; font-size: 15px; font-weight: 600; }
.log span { font-size: 14px; color: var(--muted); }
.log .ok { width: 22px; height: 22px; color: var(--success); }
.rise { transition: opacity .6s var(--ease), transform .6s var(--ease), background-color .9s var(--ease); transition-delay: var(--d, 0s); }
.js .dia:not(.in) .rise { opacity: .18; transform: translateY(6px); }
.js .dia:not(.in) .rise .ok { opacity: 0; }
.rise .ok { transition: opacity .4s var(--ease); transition-delay: calc(var(--d, 0s) + .3s); }

/* AI band */
.ai-g { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px 64px; align-items: center; }
.aiband h2 { font: 600 clamp(30px, 3.8vw, 52px)/1.22 var(--display); letter-spacing: -.02em; }
.aiband .txt > p { margin-top: 18px; font-size: 17.5px; line-height: 1.9; color: var(--night-muted); }
.aiband .caps, .aiband .caps li { border-color: var(--night-line); }
.aiband .btn { margin-top: 28px; }
.ai-demos { display: grid; gap: 16px; }
.ai-demos .m-doc { width: 88%; justify-self: end; position: relative; }
[dir="rtl"] .ai-demos .m-doc { justify-self: start; }
.ai-demos .m-chat { width: 92%; }

/* Sectors */
.sect { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; border-top: 1px solid var(--line); }
.sect li { padding-block: 24px; border-bottom: 1px solid var(--line); }
.sect b { display: block; font-size: 18px; font-weight: 600; line-height: 1.4; }
.sect p { margin: 6px 0 14px; color: var(--muted); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 8px; background: var(--chip); border: 1px solid var(--line); font: 500 13px/1.5 var(--body); color: var(--ink); text-decoration: none; transition: border-color .2s; }
a.chip:hover { border-color: var(--outline); }
.cgl { width: 18px; height: auto; flex: none; }

/* Services rows */
.srv { border-top: 1px solid var(--line); }
.srv a { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) 24px; gap: 12px 48px; align-items: center; padding-block: 28px; border-bottom: 1px solid var(--line); text-decoration: none; }
.srv b { font: 600 clamp(22px, 2.4vw, 30px)/1.3 var(--display); letter-spacing: -.01em; }
.srv span { color: var(--muted); font-size: 16px; line-height: 1.8; }
.srv .ic { color: var(--primary); transition: transform .3s var(--ease); }
.srv a:hover b { color: var(--primary); }
[dir="rtl"] .srv a:hover .ic { transform: translateX(-4px); }
[dir="ltr"] .srv a:hover .ic { transform: scaleX(-1) translateX(-4px); }

/* Process with deliverables */
.phases { display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: ph; border-top: 2px solid var(--ink); }
.phases > li { counter-increment: ph; padding-top: 24px; padding-inline-end: 24px; display: flex; flex-direction: column; }
.phases > li::before { content: counter(ph, arabic-indic); display: block; font: 600 clamp(40px, 4.4vw, 60px)/1 var(--display); color: var(--primary); margin-bottom: 16px; }
[lang="en"] .phases > li::before { content: counter(ph); }
.phases b { font: 600 22px/1.35 var(--display); }
.phases p { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.phases .get { margin-top: auto; padding-top: 16px; }
.phases .get small { display: block; padding-top: 14px; border-top: 1px solid var(--line); margin-bottom: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.phases .get li { display: flex; align-items: flex-start; gap: 8px; padding-block: 3px; font-size: 14px; font-weight: 500; }
.phases .get .ic { color: var(--primary); margin-top: 4px; }

/* Trust */
.trust-g { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px 64px; align-items: start; }
.trust-g .prom { grid-template-columns: 1fr 1fr; gap: 0 32px; }
.trust-g .prom li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }

/* Stack */
.stk { border-top: 1px solid var(--line); }
.stk li { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr); gap: 12px 40px; align-items: center; padding-block: 22px; border-bottom: 1px solid var(--line); }
.stk b { font-size: 17px; font-weight: 600; }
.logos { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.logos span { display: inline-flex; align-items: center; gap: 9px; direction: ltr; font: 600 17px/1.3 var(--body); }
.logos svg { width: 24px; height: 24px; fill: currentColor; }
.stk .use { color: var(--muted); font-size: 14.5px; }

/* Systems index */
.sgroup { padding-block: 88px 0; }
.sgroup + .sgroup { padding-top: 72px; }
.gname { font: 600 clamp(26px, 2.8vw, 38px)/1.3 var(--display); letter-spacing: -.015em; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.srow h3 { font-size: clamp(24px, 2.6vw, 34px) !important; }
.srow { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px 64px; align-items: center; padding-block: 56px; border-bottom: 1px solid var(--line); }
.sgl { width: 48px; height: auto; margin-bottom: 16px; }
.srow h3 { font: 600 clamp(26px, 3vw, 38px)/1.25 var(--display); letter-spacing: -.015em; }
.srow h3 a { text-decoration: none; }
.srow h3 a:hover { color: var(--primary); }
.srow .stxt > p { margin-top: 14px; color: var(--muted); font-size: 16px; line-height: 1.85; }
.sgroup:last-of-type { padding-bottom: 104px; }
.jump a { display: inline-flex; align-items: center; gap: 8px; }

/* System page */
.sys-h { padding-block: 48px 88px; border-bottom: 1px solid var(--line); }
.sys-h .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px 64px; align-items: center; }
.crumb { display: flex; align-items: center; gap: 6px; margin-bottom: 28px; font-size: 14px; color: var(--muted); }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--ink); text-decoration: underline; }
.hgl { width: 44px; height: auto; }
.sys-h h1 { font: 600 clamp(30px, 3.7vw, 52px)/1.22 var(--display); letter-spacing: -.02em; }
.sys-h .lede { margin-top: 20px; font-size: 18px; line-height: 1.9; color: var(--muted); max-width: 58ch; }
.sys-h .cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.facts span { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13.5px; font-weight: 500; }
.sys-h .shot .note { justify-content: center; }
.fgroups { display: grid; gap: 64px; }
.fg { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 20px 56px; align-items: start; }
.fg h3 { font: 600 clamp(22px, 2.2vw, 28px)/1.35 var(--display); position: sticky; top: 100px; }
.svc-list.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.svc-list.two li { grid-template-columns: 1fr; gap: 6px; }
.flow { display: grid; grid-template-columns: repeat(var(--n), 1fr); counter-reset: fl; }
.flow li { counter-increment: fl; position: relative; display: flex; flex-direction: column; gap: 12px; padding-top: 52px; padding-inline-end: 16px; }
.fl-step { font-size: 16px; font-weight: 600; line-height: 1.5; }
.fl-doc { display: grid; gap: 8px; justify-items: start; padding: 12px 14px; border-radius: 10px; background: var(--card-solid); border: 1px solid var(--line); font-size: 13.5px; line-height: 1.5; }
.fl-doc b { font-weight: 600; font-variant-numeric: tabular-nums; }
.crumb [aria-current] { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }
.flow li::before { content: counter(fl, arabic-indic); position: absolute; top: 0; inset-inline-start: 0; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--pc); color: var(--on-pc); font: 600 15px/1 var(--display); z-index: 1; }
[lang="en"] .flow li::before { content: counter(fl); }
.flow li::after { content: ""; position: absolute; top: 18px; inset-inline-start: 36px; inset-inline-end: 0; height: 1px; background: var(--line); }
.flow li:last-child::after { display: none; }
.aisys { background: var(--field); border-block: 1px solid var(--line); }
.aisys .hgl { margin-bottom: 18px; }
.aisys h2 { font: 600 clamp(24px, 2.6vw, 34px)/1.3 var(--display); }
.aisys .txt p { margin-top: 14px; color: var(--muted); font-size: 16px; line-height: 1.85; }
.aisys .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 600; color: var(--primary); text-decoration: none; }
.aisys .more:hover { text-decoration: underline; }
.aisys + .sec { border-top: 0; }
.rel { border-top: 1px solid var(--line); }
.rel a { display: grid; grid-template-columns: 40px minmax(0, 4fr) minmax(0, 7fr) 22px; gap: 12px 24px; align-items: center; padding-block: 20px; border-bottom: 1px solid var(--line); text-decoration: none; }
.rgl { width: 40px; height: auto; }
.rel b { font-size: 17px; font-weight: 600; }
.rel span { color: var(--muted); font-size: 15px; }
.rel .ic { color: var(--primary); transition: transform .3s var(--ease); }
.rel a:hover b { color: var(--primary); }
.pager { border-top: 1px solid var(--line); }
.pager .wrap { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; padding-block: 28px; }
.pager a { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; text-decoration: none; font-weight: 600; }
.pager a small { flex-basis: 100%; font-weight: 500; font-size: 13px; color: var(--muted); }
.pager a[rel="next"] { justify-self: end; justify-content: flex-end; text-align: end; }
.pager .all { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 14.5px; }
.pager .all:hover { border-color: var(--outline); }
.pager a:not(.all):hover { color: var(--primary); }

@media (max-width: 1080px) {
  .xp { grid-template-columns: 1fr; }
  .xp-tabs { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; scrollbar-width: none; }
  .xp-tabs::-webkit-scrollbar { display: none; }
  .xp-tab { flex: none; width: auto; grid-template-columns: 26px auto; padding: 8px 14px 8px 12px; border-color: var(--line); border-radius: 999px; }
  .xp-tab .xgl { width: 26px; grid-row: auto; }
  .xp-tab span { display: none !important; }
  .xp-tab b { font-size: 14.5px; white-space: nowrap; }
  .phases { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .sect { grid-template-columns: 1fr 1fr; }
  .foot .cols { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .sec-h.split, .rip, .ai-g, .trust-g, .srow, .sys-h .wrap, .fg, .xp-panel { grid-template-columns: 1fr; }
  .fg h3 { position: static; }
  .stk li { grid-template-columns: 1fr 1.6fr; }
  .stk .use { grid-column: 1 / -1; }
  .flow { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .flow li:nth-child(3n)::after { display: none; }
  .rel a { grid-template-columns: 40px 1fr 22px; }
  .rel span { grid-column: 2; }
  .rel .ic { grid-row: 1; grid-column: 3; }
  .ai-demos .m-doc { margin-top: 0; width: 100%; }
  .ai-demos .m-chat { width: 100%; }
  .svc-list.two { grid-template-columns: 1fr; }
  .sys-h { padding-top: 32px; }
}
@media (max-width: 640px) {
  .sect, .trust-g .prom { grid-template-columns: 1fr; }
  .phases { grid-template-columns: 1fr; }
  .srv a { grid-template-columns: 1fr 24px; }
  .srv span { grid-column: 1; }
  .srv .ic { grid-row: 1; grid-column: 2; }
  .stk li { grid-template-columns: 1fr; gap: 10px; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow li:nth-child(3n)::after { display: block; }
  .flow li:nth-child(2n)::after { display: none; }
  .pos, .doc { grid-template-columns: 1fr; }
  .paper { display: none; }
  .mock-body { padding: 14px; }
  .mega-cols, .mnav .mgrid { grid-template-columns: 1fr; }
  .pager .wrap { grid-template-columns: 1fr 1fr; }
  .pager .all { display: none; }
  .log li { grid-template-columns: 30px 1fr 22px; padding: 14px 16px; }
  .log time { display: none; }
  .sums { grid-template-columns: 1fr 1fr; }
  .sums div:first-child { grid-column: 1 / -1; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
  .foot .cols > div:first-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .js .dia:not(.in) .rise { opacity: 1; transform: none; } .js .dia:not(.in) .rise .ok { opacity: 1; } .paper .scan { display: none; } .xp-panel.enter .mock, .xp-panel.enter .xp-txt { animation: none; } }
@media (min-width: 901px) { .srow:nth-child(even) { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } .srow:nth-child(even) .sshot { order: -1; } }

/* QA pass 2026-10-19 */
.mnav { max-height: calc(100dvh - 68px); overflow-y: auto; overscroll-behavior: contain; }
html.menu-open { overflow: hidden; }
.burger .i-shut, .burger[aria-expanded="true"] .i-open { display: none; }
.burger[aria-expanded="true"] .i-shut { display: block; }
.mnav .mhead a { color: var(--primary); text-decoration: none; padding: 0 !important; font-size: 13px !important; display: inline !important; }
.xp-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-top: 24px; }
.xp-foot .note { margin-top: 0; }
.night + .close { border-top: 1px solid var(--night-line); }
.fl-doc b, .fl-doc .st { white-space: normal; min-width: 0; overflow-wrap: anywhere; }
.nf { padding-block: 120px; border-bottom: 0; }
.nf .cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.nf p + p { margin-top: 8px; }
@media (max-width: 640px) {
  .btn { white-space: normal; text-align: center; }
  .mnav .mgrid { grid-template-columns: 1fr 1fr; }
  .mnav .msub { font-size: 14px !important; padding: 8px 6px !important; }
  .hx-lbl { font-size: 19px; }
  .hx-mono { font-size: 17px; }
}
@media (max-width: 480px) {
  .flow { grid-template-columns: 1fr; row-gap: 20px; }
  .flow li { padding-top: 0; padding-inline-start: 52px; }
  .flow li::after, .flow li:nth-child(n)::after { display: none; }
}
