/* AL-Arcade — site styles.
   A calm, corporate system: white and soft-grey surfaces, ink text, brand purple as the single accent,
   Inter for Latin and IBM Plex Sans Arabic for Arabic. Logical properties throughout, so the Arabic
   pages mirror without overrides. */

:root {
  --white: #ffffff;
  --bg: #ffffff;
  --soft: #f6f7fa;
  --soft-2: #eef0f5;
  --ink: #0e1020;
  --text: #3b3f51;
  --muted: #676b7e;
  --line: #e5e7ee;
  --line-2: #d4d7e1;
  --brand: #7100a5;
  --brand-600: #5c0087;
  --brand-50: #f6effb;
  --brand-100: #ebdcf6;
  --brand-light: #c79cf0;
  --ok: #0f7d4a;
  --err: #b4233c;
  --dark: #0e1020;

  --f: 'Inter', 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --sec: clamp(72px, 9vw, 120px);
  --nav-h: 68px;
  --r: 12px;
  --shadow-sm: 0 1px 2px rgba(14, 16, 32, .05);
  --shadow: 0 1px 2px rgba(14, 16, 32, .04), 0 12px 32px -12px rgba(14, 16, 32, .14);
  --shadow-lg: 0 2px 4px rgba(14, 16, 32, .04), 0 32px 64px -24px rgba(14, 16, 32, .22);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--f); font-size: 1rem; line-height: 1.65; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
:lang(ar) body { font-family: 'IBM Plex Sans Arabic', 'Inter', system-ui, sans-serif; line-height: 1.8; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
b, strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brand-100); color: var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; inset-block-start: 12px; inset-inline-start: 12px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 8px; transform: translateY(-200%); }
.skip:focus { transform: none; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.num { unicode-bidi: isolate; direction: ltr; display: inline-block; }

h1, h2, h3 { color: var(--ink); font-weight: 600; letter-spacing: -.02em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.15; text-wrap: balance; }
h3 { font-size: 1.125rem; line-height: 1.35; letter-spacing: -.01em; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { letter-spacing: 0; }
:lang(ar) h2 { line-height: 1.45; }
:lang(ar) h3 { line-height: 1.55; }

.ico { inline-size: 22px; block-size: 22px; flex: none; }
.ico-arrow { inline-size: 18px; block-size: 18px; transition: transform .25s var(--ease); }
[dir='rtl'] .ico-arrow { transform: scaleX(-1); }

.eyebrow, .kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-block-end: 14px;
  font-size: .875rem; font-weight: 600; color: var(--brand); letter-spacing: .01em;
}
.eyebrow::before, .kicker::before { content: ''; inline-size: 18px; block-size: 2px; border-radius: 2px; background: currentColor; }
.sec-head { max-inline-size: 760px; margin-block-end: clamp(36px, 5vw, 56px); }
.sec-head-row { max-inline-size: none; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 24px 64px; align-items: end; }
.sec-lede { margin-block-start: 16px; max-inline-size: 640px; font-size: 1.0625rem; color: var(--muted); }
.sec-head-row .sec-lede { margin-block-start: 0; }
@media (max-width: 900px) { .sec-head-row { grid-template-columns: 1fr; } }

.text-link, .more a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--brand); }
.text-link:hover .ico-arrow, .more a:hover .arr { transform: translateX(3px); }
[dir='rtl'] .text-link:hover .ico-arrow { transform: scaleX(-1) translateX(3px); }
[dir='rtl'] .more a:hover .arr { transform: translateX(-3px); }
.more { margin-block-start: 24px; }
.arr { display: inline-block; transition: transform .25s var(--ease); }
.arr::before { content: '→'; font-weight: 500; }
[dir='rtl'] .arr::before { content: '←'; }
.section-foot { margin-block-start: 36px; }
.link-row { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-block-start: 24px; }
.stretch::after { content: ''; position: absolute; inset: 0; z-index: 1; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  block-size: 48px; padding-inline: 22px; border-radius: 8px; border: 1px solid transparent;
  font-weight: 600; font-size: .975rem; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn-sm { block-size: 40px; padding-inline: 16px; font-size: .9rem; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(113, 0, 165, .25); }
.btn-primary:hover { background: var(--brand-600); }
.btn-secondary, .btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover, .btn-ghost:hover { border-color: var(--ink); }
.btn .arr { font-size: 1.05em; }

/* ---------------------------------------------------------------- reveal (subtle, JS-only) */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- nav */

.nav { position: sticky; inset-block-start: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-block-end: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.nav.solid { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-in { display: flex; align-items: center; gap: 28px; block-size: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { inline-size: 32px; block-size: auto; fill: var(--brand); }
.brand-word { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1.125rem; color: var(--ink); letter-spacing: -.01em; }
.nav-links { display: flex; gap: clamp(14px, 2vw, 28px); margin-inline-start: 12px; }
.nav-links a { font-size: .95rem; font-weight: 500; color: var(--text); transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current='page'] { color: var(--brand); }
.nav-end { display: flex; align-items: center; gap: 16px; margin-inline-start: auto; }
.lang { font-size: .925rem; font-weight: 500; color: var(--muted); }
.lang:hover { color: var(--ink); }
.menu-btn { display: none; position: relative; inline-size: 42px; block-size: 42px; border-radius: 8px; border: 1px solid var(--line-2); }
.menu-btn i { position: absolute; inset-inline: 11px; block-size: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.menu-btn i:first-of-type { inset-block-start: 16px; }
.menu-btn i:last-of-type { inset-block-start: 24px; }
.menu-btn[aria-expanded='true'] i:first-of-type { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded='true'] i:last-of-type { transform: translateY(-4px) rotate(-45deg); }
.menu { padding: 8px var(--gutter) 24px; background: #fff; border-block-end: 1px solid var(--line); box-shadow: var(--shadow); }
.menu a { display: block; padding-block: 13px; font-size: 1.05rem; font-weight: 500; color: var(--ink); border-block-end: 1px solid var(--line); }
@media (max-width: 1080px) {
  .nav-links, .nav-end .btn, .nav-end .lang { display: none; }
  .menu-btn { display: block; }
}

/* ---------------------------------------------------------------- home: hero */

.hero { padding-block: clamp(48px, 7vw, 88px) clamp(48px, 6vw, 72px); background: linear-gradient(180deg, #faf8fd 0%, #fff 75%); border-block-end: 1px solid var(--line); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 3.5vw, 3.15rem); line-height: 1.1; letter-spacing: -.035em; }
.hero h1 .accent { display: block; }
:lang(ar) .hero h1 { line-height: 1.4; letter-spacing: 0; font-size: clamp(2.1rem, 3.6vw, 3.2rem); }
.accent { color: var(--brand); }
.lede, .hero-lede { margin-block-start: 22px; max-inline-size: 580px; font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--muted); }
.cta-row, .hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 32px; }

.trusted { margin-block-start: clamp(48px, 6vw, 72px); text-align: center; }
.trusted > p { font-size: .875rem; font-weight: 500; color: var(--muted); }
.logo-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px clamp(28px, 5vw, 64px); margin-block-start: 22px; }
.logo-row img { block-size: 40px; inline-size: auto; filter: grayscale(1); opacity: .7; transition: filter .25s, opacity .25s; }
.logo-row img[src*='msi'] { block-size: 22px; }
.logo-row img[src*='the-club'] { block-size: 50px; }
.logo-row img[src*='oc-sport'] { block-size: 44px; }
.logo-row img[src*='pureganic'] { block-size: 34px; }
.logo-row li:hover img { filter: none; opacity: 1; }
@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-visual { max-inline-size: 640px; }
}

/* frames: browser + phone */
.browser { position: relative; border-radius: var(--r); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.browser-bar { display: flex; align-items: center; gap: 6px; block-size: 32px; padding-inline: 12px; background: var(--soft); border-block-end: 1px solid var(--line); }
.browser-bar i { inline-size: 9px; block-size: 9px; border-radius: 50%; background: var(--line-2); }
.browser-url { margin-inline: auto; padding: 2px 12px; border-radius: 6px; background: #fff; border: 1px solid var(--line); font-size: .72rem; color: var(--muted); }
.browser-view { position: relative; aspect-ratio: 16 / 10; background: var(--soft); }
.browser-view > img, .browser-view .shot img { inline-size: 100%; block-size: 100%; object-fit: cover; object-position: top center; }
.browser-view .shot { position: absolute; inset: 0; }
.browser-view .shot:not(.on), .browser-view .shot[hidden] { display: none; }

.phone { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.phone-body { inline-size: 100%; aspect-ratio: 390 / 844; border-radius: 26px; padding: 6px; background: #12131c; box-shadow: var(--shadow-lg); }
.phone-body img { inline-size: 100%; block-size: 100%; object-fit: cover; border-radius: 20px; }
.phone p { font-size: .85rem; color: var(--muted); }

/* ---------------------------------------------------------------- home: sections */

.section { padding-block: var(--sec); position: relative; }
.section-soft { background: var(--soft); }
.section-dark {
  --ink: #ffffff; --text: #d5d7e2; --muted: #a2a5b8; --line: rgba(255, 255, 255, .1); --line-2: rgba(255, 255, 255, .2);
  background: var(--dark); color: var(--text);
}
.section-dark .eyebrow { color: var(--brand-light); }
.section-dark .text-link { color: var(--brand-light); }

/* stats */
.stats-band { padding-block: clamp(44px, 6vw, 64px); border-block: 1px solid var(--line); }
.stats, .stats-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding-inline: 24px; border-inline-start: 1px solid var(--line-2); }
.stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stat-n { font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: 600; color: var(--ink); letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-l { margin-block-start: 6px; color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) {
  .stats, .stats-in { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .stat:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
}

/* approach + stack: see the home block at the end of the file */

/* ---------------------------------------------------------------- contact + form */

.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.contact-dl { display: grid; gap: 18px; margin-block-start: 36px; }
.contact-dl dt { font-size: .85rem; color: var(--muted); }
.contact-dl dd { margin: 2px 0 0; font-weight: 500; color: var(--ink); }
.contact-dl a { color: var(--brand); }
.brief { display: grid; gap: 18px; padding: clamp(22px, 3vw, 36px); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; min-inline-size: 0; border: 0; padding: 0; margin: 0; }
.field > span, .field legend { font-size: .875rem; font-weight: 500; color: var(--ink); padding: 0; }
.field i { font-style: normal; color: var(--brand); }
.field input, .field textarea { inline-size: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font: inherit; font-size: .975rem; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-block-size: 132px; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: #9a9daf; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.field [aria-invalid='true'] { border-color: var(--err); }
.chips legend { margin-block-end: 8px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line-2); font-size: .875rem; color: var(--text); background: #fff; transition: background-color .2s, color .2s, border-color .2s; }
.chip input:checked + span { background: var(--brand-50); border-color: var(--brand); color: var(--brand); font-weight: 500; }
.chip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.chip:hover span { border-color: var(--brand); }
.file { position: relative; display: flex; align-items: center; gap: 8px; }
.file input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; }
.file label { flex: 1; display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px dashed var(--line-2); border-radius: 8px; font-size: .9rem; color: var(--muted); cursor: pointer; transition: border-color .2s, color .2s; }
.file label:hover, .file input:focus-visible + label { border-color: var(--brand); color: var(--ink); }
.file.has label { border-style: solid; color: var(--ink); }
.file-icon { inline-size: 14px; block-size: 17px; flex: none; border: 1.5px solid currentColor; border-radius: 2px; position: relative; }
.file-icon::after { content: ''; position: absolute; inset-inline: 2px; inset-block-start: 4px; block-size: 6px; border-block: 1.5px solid currentColor; }
.file-clear { inline-size: 44px; block-size: 44px; border-radius: 8px; border: 1px solid var(--line-2); font-size: 1.3rem; line-height: 1; color: var(--muted); }
.hp { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.brief-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-block-start: 4px; }
.brief-foot .btn[disabled] { opacity: .6; cursor: progress; }
.fine { font-size: .85rem; color: var(--muted); }
.brief-msg { font-size: .95rem; min-block-size: 1.6em; }
.brief-msg.ok { color: var(--ok); }
.brief-msg.err { color: var(--err); }
.brief.done .row2, .brief.done .field, .brief.done .file, .brief.done .brief-foot { opacity: .5; pointer-events: none; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- footer */

.foot {
  --ink: #ffffff; --text: #c5c8d6; --muted: #8e92a6; --line: rgba(255, 255, 255, .1);
  background: var(--dark); color: var(--text); padding-block: 64px 36px;
}
.foot-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: start; }
.foot-mark { inline-size: 44px; fill: var(--brand-light); margin-block-end: 14px; }
.foot-word { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1.15rem; color: #fff; margin-block-end: 8px; }
.foot-brand p:not(.foot-word) { color: var(--muted); font-size: .95rem; }
.foot-brand a { color: var(--text); }
.foot-brand a:hover { color: #fff; }
.foot-contact, .foot-social { margin-block-start: 10px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-cols nav { display: grid; gap: 10px; align-content: start; }
.foot-h { font-size: .8rem; font-weight: 600; color: #fff; letter-spacing: .02em; margin-block-end: 6px; }
.foot-cols a { color: var(--text); font-size: .925rem; }
.foot-cols a:hover { color: #fff; }
.foot-legal { grid-column: 1 / -1; padding-block-start: 24px; border-block-start: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.foot-legal a { color: var(--text); }
.foot-legal a:hover { color: #fff; }
@media (max-width: 860px) { .foot-in { grid-template-columns: 1fr; } .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .foot-cols { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- subpages */

.page-hero { padding-block: clamp(32px, 4vw, 48px) clamp(56px, 7vw, 88px); background: linear-gradient(180deg, #faf8fd 0%, #fff 80%); border-block-end: 1px solid var(--line); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: var(--muted); margin-block-end: clamp(28px, 4vw, 44px); }
.crumbs li:not(:last-child)::after { content: '/'; margin-inline-start: 6px; color: var(--line-2); }
.crumbs a { color: var(--text); }
.crumbs a:hover { color: var(--brand); }
.page-hero-in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.page-hero h1 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.12; letter-spacing: -.03em; text-wrap: balance; }
:lang(ar) .page-hero h1 { line-height: 1.4; letter-spacing: 0; font-size: clamp(1.9rem, 3.2vw, 2.8rem); }
@media (max-width: 960px) { .page-hero-in { grid-template-columns: 1fr; } }

.page-photo { position: relative; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); }
.page-photo img { inline-size: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.page-photo figcaption { position: absolute; inset-inline: 0; inset-block-end: 0; padding: 40px 18px 14px; font-weight: 600; color: #fff; background: linear-gradient(0deg, rgba(14, 16, 32, .8), transparent); }

.phones-page { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.hero-phones .phones-page { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 2vw, 18px); align-items: start; }
.hero-phones .phone:nth-child(2) { transform: translateY(-18px); }
.hero-phones .phone-body { border-radius: clamp(16px, 3.4vw, 26px); padding: clamp(3px, .7vw, 6px); }
.hero-phones .phone-body img { border-radius: clamp(13px, 2.8vw, 20px); }
@media (max-width: 960px) { .page-hero-visual .hero-phones { max-inline-size: 520px; margin-inline: auto; padding-block-start: 22px; } }
@media (max-width: 900px) {
  .page-sec .phones-page { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-block-end: 12px; scrollbar-width: thin; }
  .page-sec .phones-page .phone { flex: 0 0 min(52vw, 220px); scroll-snap-align: start; }
}

.page-sec { padding-block: var(--sec); position: relative; }
.page-sec.light { background: var(--soft); }
.page-stats { padding-block: clamp(40px, 5vw, 56px); border-block-end: 1px solid var(--line); }

.groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.group { padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.group h3 { font-size: 1.06rem; margin-block-end: 14px; }
.group li { position: relative; padding-inline-start: 18px; color: var(--muted); font-size: .95rem; line-height: 1.55; margin-block-end: 8px; }
.group li::before { content: ''; position: absolute; inset-inline-start: 0; inset-block-start: .6em; inline-size: 6px; block-size: 6px; border-radius: 50%; background: var(--brand); }
@media (max-width: 1000px) { .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .groups { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split-copy p { color: var(--muted); margin-block-start: 16px; font-size: 1.02rem; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } }
.client-logo { block-size: 60px; display: flex; align-items: center; margin-block-end: 18px; }
.client-logo img { block-size: 100%; inline-size: auto; max-inline-size: 180px; object-fit: contain; }
.fact-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 22px; }
.fact-chips li { padding: 5px 12px; border-radius: 99px; background: #fff; border: 1px solid var(--line-2); font-size: .85rem; color: var(--text); }

.facts { display: grid; border-block-start: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr; gap: 16px; padding-block: 14px; border-block-end: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .92rem; }
.facts dd { margin: 0; color: var(--ink); }
.facts a { color: var(--brand); }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2vw, 28px); }
.gal-img { aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--soft); }
.gal-img img { inline-size: 100%; block-size: 100%; object-fit: cover; object-position: top center; transition: transform .8s var(--ease); }
.gal:hover .gal-img img { transform: scale(1.03); }
.gal h3 { margin-block-start: 14px; font-size: 1.02rem; }
.gal p { color: var(--muted); font-size: .92rem; }
@media (max-width: 960px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }

.process { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.process li { padding: 24px 22px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.p-n { display: block; font-weight: 600; color: var(--brand); font-size: .9rem; margin-block-end: 10px; }
.process h3 { font-size: 1.05rem; margin-block-end: 6px; }
.process p { color: var(--muted); font-size: .93rem; line-height: 1.55; }
@media (max-width: 1100px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 72px); }
.principle { display: grid; grid-template-columns: auto 1fr; align-content: start; gap: 4px 18px; padding-block: 28px; border-block-start: 1px solid var(--line); }
.principle .p-n { grid-row: span 2; margin: 0; padding-block-start: .15em; }
.principle h3 { font-size: 1.1rem; }
.principle p { color: var(--muted); }
@media (max-width: 860px) { .principles { grid-template-columns: 1fr; } }

.faq-wrap { max-inline-size: 880px; }
.faq { display: grid; gap: 10px; }
.qa { border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.qa summary { list-style: none; cursor: pointer; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary h3 { font-weight: 600; font-size: 1.02rem; line-height: 1.45; letter-spacing: 0; }
.qa summary::after { content: ''; inline-size: 9px; block-size: 9px; flex: none; border-block-end: 2px solid var(--muted); border-inline-end: 2px solid var(--muted); transform: rotate(45deg); transition: transform .25s var(--ease); margin-block-start: -4px; }
.qa[open] summary::after { transform: rotate(-135deg); margin-block-start: 4px; }
.qa-a { padding: 0 22px 20px; color: var(--muted); }

.related-sec { padding-block-start: 0; }
.cta-band { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding: clamp(28px, 4vw, 44px); border-radius: 16px; background: var(--dark); color: #d5d7e2; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.cta-band p { color: #a2a5b8; margin-block-start: 6px; }
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-block-start: 18px; }
.related a { display: grid; gap: 4px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; transition: border-color .2s, box-shadow .2s; }
.related a:hover { border-color: var(--brand-100); box-shadow: var(--shadow); }
.related b { color: var(--ink); }
.related span { color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) { .related { grid-template-columns: 1fr; } }

.logo-wall { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 56px; }
.logo-wall img { block-size: 52px; inline-size: auto; max-inline-size: 180px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .25s, opacity .25s; }
.logo-wall li:hover img { filter: none; opacity: 1; }
.logo-wall img[src*='msi'] { block-size: 26px; }

.brands { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 18px 48px; padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.brands-label { font-size: .875rem; font-weight: 500; color: var(--muted); }
.brand-logos { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px 44px; }
.brand-logos img { block-size: 32px; inline-size: auto; filter: grayscale(1); opacity: .75; }
.brand-logos .square img { block-size: 48px; }
.brand-logos .wide img { block-size: 24px; }
.brand-text { font-size: .9rem; color: var(--muted); }
@media (max-width: 860px) { .brands { grid-template-columns: 1fr; } .brand-logos { justify-content: flex-start; } }

.founder-card { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.founder-card:hover { border-color: var(--brand-100); box-shadow: var(--shadow); }
.founder-card h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.founder-card p:last-child { color: var(--muted); margin-block-start: 6px; }
.founder-card .kicker { margin-block-end: 6px; }
.founder-mark { inline-size: 72px; fill: var(--brand); }
.founder-visual, .sec-visual { display: grid; place-items: center; align-content: center; gap: 20px; aspect-ratio: 4 / 3; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(160deg, var(--brand-50), #fff 70%); text-align: center; color: var(--muted); padding: 24px; }
.founder-visual b { display: block; font-weight: 700; color: var(--ink); font-size: 1.35rem; }
.founder-mark-lg { inline-size: min(200px, 48%); fill: var(--brand); }
.sec-visual ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.sec-visual li { padding: 6px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--line-2); font-size: .85rem; font-weight: 500; color: var(--ink); }
.work-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.work-list a { display: grid; gap: 6px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; transition: border-color .2s, box-shadow .2s; }
.work-list a:hover { border-color: var(--brand-100); box-shadow: var(--shadow); }
.work-list b { font-size: 1.08rem; color: var(--ink); }
.work-list span { color: var(--muted); }
@media (max-width: 760px) { .work-list { grid-template-columns: 1fr; } .founder-card { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- credits + 404 */

.credits { padding-block: 56px 96px; max-inline-size: 960px; }
.credits h1 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin-block: 24px 12px; }
.credits h2 { font-size: 1.4rem; margin-block: 48px 10px; }
.credits a { color: var(--brand); }
.credits > p { color: var(--muted); }
.credit-list { display: grid; gap: 12px; margin-block-start: 32px; }
.credit-list li { display: grid; grid-template-columns: 160px 1fr; gap: 20px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); }
.credit-list img { inline-size: 160px; block-size: 100px; object-fit: cover; border-radius: 8px; }
.credit-list p { font-size: .92rem; color: var(--muted); }
.credit-title { color: var(--ink) !important; font-weight: 600; margin-block-end: 4px; word-break: break-word; }
@media (max-width: 560px) { .credit-list li { grid-template-columns: 1fr; } .credit-list img { inline-size: 100%; block-size: 160px; } }

.lost { min-block-size: 100svh; display: grid; place-content: center; justify-items: center; gap: 20px; padding: 40px; text-align: center; }
.lost img { inline-size: 96px; }
.lost h1 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.lost p:first-of-type { color: var(--muted); }
.lost p:last-child { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---------------------------------------------------------------- motion off */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* four-item grids sit as 2×2 instead of leaving an orphan card */
@media (min-width: 1001px) { .groups:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.page-photo img { filter: saturate(.8); }

/* ================================================================ home: capability-first */

.js .reveal-off { opacity: 0; }
.hero { position: relative; overflow: clip; }
.hero-grid { position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(14, 16, 32, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(14, 16, 32, .045) 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask-image: radial-gradient(60% 70% at 72% 38%, #000, transparent 72%); mask-image: radial-gradient(60% 70% at 72% 38%, #000, transparent 72%); }
[dir='rtl'] .hero-grid { -webkit-mask-image: radial-gradient(60% 70% at 28% 38%, #000, transparent 72%); mask-image: radial-gradient(60% 70% at 28% 38%, #000, transparent 72%); }
.hero-in, .trusted { position: relative; }

.rotator { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-block-start: 20px; font-size: clamp(1.05rem, 1.4vw, 1.2rem); font-weight: 500; color: var(--text); }
.rot-label { color: var(--muted); }
.rot { position: relative; display: inline-block; block-size: 1.75em; padding-inline: 12px; border-radius: 8px; background: var(--brand-50); color: var(--brand); font-weight: 600; overflow: hidden; transition: width .5s var(--ease); white-space: nowrap; }
.rot span { position: absolute; inset-inline-start: 12px; inset-block-start: 0; line-height: 1.75em; opacity: 0; transform: translateY(100%); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.rot span.on { position: relative; inset-inline-start: 0; opacity: 1; transform: none; }
.rot span.out { opacity: 0; transform: translateY(-100%); }

.hero-visual { margin: 0; }
.hero-visual figcaption { margin-block-start: 12px; font-size: .85rem; color: var(--muted); }

.facts-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-block-start: 22px; font-size: .875rem; color: var(--muted); }
.facts-row li { display: inline-flex; align-items: center; gap: 22px; }
.facts-row li:not(:last-child)::after { content: ''; inline-size: 4px; block-size: 4px; border-radius: 50%; background: var(--line-2); }

/* bento of live capability demos */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tile { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; isolation: isolate; transition: border-color .25s, box-shadow .25s; }
.tile:hover { border-color: var(--brand-100); box-shadow: var(--shadow); }
.tile-wide { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.spot::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(113, 0, 165, .08), transparent 65%); }
.spot:hover::before { opacity: 1; }
.tile-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 26px 26px 6px; }
.tile-wide .tile-copy { padding: 30px 28px; justify-content: center; }
.tile-ico { display: grid; place-items: center; inline-size: 40px; block-size: 40px; border-radius: 10px; background: var(--brand-50); color: var(--brand); margin-block-end: 6px; }
.tile-copy h3 { font-size: 1.15rem; }
.tile-copy p { color: var(--muted); font-size: .95rem; }
.tile-copy .text-link { font-size: .9rem; margin-block-start: 6px; }
.demo { position: relative; margin: 18px; margin-block-start: auto; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); min-block-size: 212px; overflow: hidden; font-size: .85rem; }
.tile-wide .demo { margin: 18px; margin-inline-start: 0; }
.demo-tag { position: absolute; inset-block-end: 10px; inset-inline-end: 12px; padding: 2px 8px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: .7rem; color: var(--muted); }
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-wide { grid-column: span 2; }
}
@media (max-width: 720px) {
  .bento { grid-template-columns: 1fr; }
  .k-l { white-space: normal; }
  .mx { grid-template-columns: 78px minmax(0, 1fr); gap: 8px; }
  .mx-side span { padding-inline: 6px; font-size: .7rem; }
  .mx-row i { display: none; }
  .tile-wide { grid-column: auto; grid-template-columns: 1fr; }
  .tile-wide .tile-copy { padding: 26px 26px 6px; }
  .tile-wide .demo { margin: 18px; }
}

/* dashboard */
.demo-dash { display: flex; flex-direction: column; padding: 14px 14px 40px; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kpis > div { display: grid; gap: 2px; padding: 9px 11px; background: #fff; border: 1px solid var(--line); border-radius: 10px; min-inline-size: 0; }
.k-l { font-size: .7rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-v b { font-size: 1.05rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.k-v small { font-size: .68rem; color: var(--muted); }
.chart { position: relative; flex: 1; min-block-size: 104px; margin-block: 10px 8px; }
.chart svg { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; overflow: visible; }
[dir='rtl'] .chart svg { transform: scaleX(-1); }
.chart .line { fill: none; stroke: var(--brand); stroke-width: 2.25; vector-effect: non-scaling-stroke; }
.chart .dot { position: absolute; inline-size: 11px; block-size: 11px; margin-block-start: -5.5px; margin-inline-start: -5.5px; border-radius: 50%; background: var(--brand); border: 2px solid #fff; box-shadow: 0 0 0 4px rgba(113, 0, 165, .15); }
.feed { display: grid; gap: 5px; margin-block-start: 6px; }
.feed li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 10px; background: #fff; border: 1px solid var(--line); border-radius: 8px; font-size: .78rem; color: var(--ink); }
.feed li:first-child { animation: feed-in .5s var(--ease); }
.feed time { color: var(--muted); font-size: .7rem; flex: none; }
@keyframes feed-in { from { opacity: 0; transform: translateY(-6px); } }

/* role masking */
.demo-mask { padding: 14px 16px; }
.roles { display: inline-flex; padding: 3px; border-radius: 99px; background: #fff; border: 1px solid var(--line); }
.roles span { padding: 4px 12px; border-radius: 99px; font-size: .78rem; color: var(--muted); transition: background-color .3s, color .3s; }
.roles span.on { background: var(--ink); color: #fff; }
.record { display: grid; margin-block-start: 10px; }
.record div { display: flex; justify-content: space-between; gap: 12px; padding-block: 7px; border-block-end: 1px dashed var(--line-2); }
.record dt { color: var(--muted); font-size: .8rem; }
.record dd { margin: 0; font-weight: 600; color: var(--ink); font-size: .84rem; font-variant-numeric: tabular-nums; transition: color .3s; }
.record dd.masked { color: var(--muted); }
.audit-line { display: flex; align-items: center; gap: 8px; margin-block-start: 10px; padding: 6px 10px; border-radius: 8px; font-size: .74rem; color: var(--muted); }
.audit-line i { inline-size: 7px; block-size: 7px; border-radius: 50%; background: #2bb673; flex: none; }
.audit-line.flash { animation: flash 1.2s var(--ease); }
@keyframes flash { 0% { background: var(--brand-50); color: var(--brand); } 100% { background: transparent; } }

/* phone */
.demo-phone { display: flex; justify-content: center; }
.mphone { position: relative; inline-size: 186px; aspect-ratio: 9 / 18.5; margin-block: 18px -70px; padding: 7px; border-radius: 30px; background: #12131c; box-shadow: var(--shadow-lg); }
.m-notch { position: absolute; inset-block-start: 12px; inset-inline-start: 50%; inline-size: 52px; block-size: 14px; border-radius: 99px; background: #12131c; transform: translateX(-50%); z-index: 2; }
[dir='rtl'] .m-notch { transform: translateX(50%); }
.m-screen { position: relative; block-size: 100%; border-radius: 24px; padding: 34px 10px 10px; overflow: hidden;
  background: radial-gradient(120% 80% at 80% 0%, #a24fd6 0%, transparent 60%), linear-gradient(170deg, #3a0a56 0%, #1a0b2e 70%); }
.m-lock { display: grid; justify-items: center; gap: 0; padding-block-start: 10px; color: #fff; }
.m-lock span { font-size: .7rem; opacity: .75; }
.m-lock b { font-size: 2.6rem; font-weight: 300; line-height: 1.1; letter-spacing: -.02em; }
.m-toasts { position: absolute; inset-block-start: 112px; inset-inline: 8px; display: grid; gap: 6px; z-index: 1; }
.m-toast { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .92); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .45); font-size: .7rem; line-height: 1.35; color: var(--ink); opacity: 0; transform: translateY(-14px) scale(.97); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.m-toast.in { opacity: 1; transform: none; }
.m-toast.gone { opacity: 0; transform: scale(.95); }
.m-toast i { inline-size: 18px; block-size: 18px; flex: none; border-radius: 6px; background: var(--brand); box-shadow: inset 0 0 0 5px var(--brand-100); }

/* Arabic ⇄ English mirror */
.demo-mirror { display: flex; flex-direction: column; padding: 14px 14px 40px; }
.mx { flex: 1; display: grid; grid-template-columns: 112px 1fr; gap: 10px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-family: 'Inter', 'IBM Plex Sans Arabic', sans-serif; }
.mx-side { display: grid; gap: 4px; align-content: start; }
.mx-side b { display: grid; place-items: center; inline-size: 28px; block-size: 28px; margin-block-end: 6px; border-radius: 8px; background: var(--brand); color: #fff; font-size: .68rem; font-weight: 700; }
.mx-side span { padding: 5px 8px; border-radius: 6px; font-size: .74rem; color: var(--muted); white-space: nowrap; }
.mx-side span.on { background: var(--brand-50); color: var(--brand); font-weight: 600; }
.mx-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; align-content: start; min-inline-size: 0; }
.mx-head { display: flex; align-items: center; justify-content: space-between; margin-block-end: 2px; }
.mx-head b { font-size: .9rem; color: var(--ink); }
.mx-head i { font-style: normal; padding: 3px 9px; border-radius: 6px; background: var(--brand); color: #fff; font-size: .7rem; font-weight: 600; }
.mx-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; }
.mx-row i { inline-size: 22px; block-size: 22px; flex: none; border-radius: 50%; background: var(--soft-2); }
.mx-row span { flex: 1; min-inline-size: 0; font-size: .78rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-row em { font-style: normal; font-size: .74rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mx-label { inset-block-start: auto; }

/* sector blueprint */
.bp-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 22px; }
.bp-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 99px; border: 1px solid var(--line-2); background: #fff; font-size: .9rem; font-weight: 500; color: var(--text); transition: background-color .2s, color .2s, border-color .2s; }
.bp-tabs button .ico { inline-size: 18px; block-size: 18px; color: var(--brand); }
.bp-tabs button:hover { border-color: var(--brand); }
.bp-tabs button[aria-selected='true'] { background: var(--ink); border-color: var(--ink); color: #fff; }
.bp-tabs button[aria-selected='true'] .ico { color: var(--brand-light); }
.bp-panel { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 18px; }
.bp-panel[hidden] { display: none; }
.bp-diagram { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.bp-h { font-size: .78rem; font-weight: 600; color: var(--muted); margin-block-end: 8px; }
.bp-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.bp-pills li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 99px; background: var(--soft); border: 1px solid var(--line); font-size: .85rem; color: var(--ink); }
.bp-pills li.core { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand); }
.ico-sm { inline-size: 15px; block-size: 15px; color: var(--muted); }
.bp-pills li.core .ico-sm { color: var(--brand); }
.bp-apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bp-apps li { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); font-size: .9rem; font-weight: 600; color: var(--ink); }
.bp-apps .ico { color: var(--brand); }
.bp-mods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bp-mods li { padding: 11px 12px; border-radius: 10px; background: var(--soft); border: 1px solid var(--line); border-inline-start: 3px solid var(--brand); font-size: .87rem; font-weight: 500; color: var(--ink); }
.bp-flow { display: flex; justify-content: space-around; block-size: 30px; padding-inline: 16%; }
.bp-flow i { inline-size: 2px; block-size: 100%; background: repeating-linear-gradient(to bottom, var(--brand-100) 0 4px, transparent 4px 9px); background-size: 2px 9px; animation: flow .7s linear infinite; }
@keyframes flow { to { background-position: 0 9px; } }
.bp-side { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 18px; background: var(--dark); color: #c5c8d6; }
.bp-sector { font-size: .8rem; font-weight: 600; color: var(--brand-light); }
.bp-side h3 { color: #fff; font-size: 1.25rem; }
.bp-side > p:not(.bp-sector):not(.bp-h) { color: #a2a5b8; font-size: .95rem; }
.bp-side .bp-h { color: #8e92a6; margin-block: 8px 0; }
.bp-built { display: grid; gap: 6px; }
.bp-built li { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: #d5d7e2; }
.bp-built .ico-sm { color: #4ade80; }
.bp-side .btn { margin-block-start: auto; align-self: flex-start; }
.js .bp-panel:not(.play) li { opacity: 0; }
.bp-panel.play li { animation: bp-in .55s var(--ease) both; animation-delay: calc(var(--d, 0) * 45ms); }
@keyframes bp-in { from { opacity: 0; transform: translateY(8px) scale(.97); } }
@media (max-width: 960px) { .bp-panel { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .bp-mods { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bp-apps { grid-template-columns: 1fr; } }

/* security + live inspector */
.sec-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.sec-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; margin-block-start: 32px; }
.sec-list li { display: flex; gap: 14px; }
.feature-ico { display: inline-flex; color: var(--brand-light); flex: none; }
.feature-ico .ico { inline-size: 24px; block-size: 24px; }
.sec-list h3 { font-size: 1rem; }
.sec-list p { margin-block-start: 3px; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.inspector { position: sticky; inset-block-start: calc(var(--nav-h) + 24px); padding: 24px; border-radius: 18px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.insp-h { display: flex; align-items: center; gap: 10px; font-size: .92rem; font-weight: 600; color: #fff; }
.pulse { position: relative; inline-size: 8px; block-size: 8px; border-radius: 50%; background: #4ade80; flex: none; }
.pulse::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid #4ade80; animation: ping 2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.4); opacity: .9; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
.insp-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-block-start: 18px; }
.insp-metrics div { padding: 12px 14px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.insp-metrics dt { font-size: .74rem; color: var(--muted); }
.insp-metrics dd { margin: 4px 0 0; font-size: 1.3rem; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.insp-foot { margin-block-start: 18px; font-size: .8rem; color: var(--muted); }
@media (max-width: 960px) { .sec-split { grid-template-columns: 1fr; } .inspector { position: static; } }
@media (max-width: 560px) { .sec-list { grid-template-columns: 1fr; } }

/* approach: sticky heading + scroll-linked timeline */
.approach { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.approach-head { position: sticky; inset-block-start: calc(var(--nav-h) + 32px); }
.practices { display: grid; gap: 16px; margin-block-start: 28px; }
.practice { padding-inline-start: 14px; border-inline-start: 2px solid var(--brand-100); }
.practice h3 { font-size: .98rem; }
.practice p { margin-block-start: 3px; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.timeline { position: relative; padding-inline-start: 56px; }
.timeline::before, .timeline::after { content: ''; position: absolute; inset-inline-start: 17px; inset-block: 18px; inline-size: 2px; background: var(--line); }
.timeline::after { background: var(--brand); transform: scaleY(var(--p, 0)); transform-origin: top; }
.timeline li { position: relative; padding-block-end: 44px; }
.timeline li:last-child { padding-block-end: 0; }
.timeline .step-n { position: absolute; inset-inline-start: -56px; inset-block-start: 0; z-index: 1; display: grid; place-items: center; inline-size: 36px; block-size: 36px; border-radius: 50%; border: 1.5px solid var(--line-2); background: #fff; color: var(--muted); font-weight: 600; font-size: .95rem; transition: background-color .35s, border-color .35s, color .35s; }
.timeline li.on .step-n { background: var(--brand); border-color: var(--brand); color: #fff; }
.timeline h3 { font-size: 1.2rem; padding-block-start: 5px; }
.timeline p { margin-block-start: 6px; color: var(--muted); max-inline-size: 520px; }
.stack { margin-block-start: clamp(56px, 7vw, 88px); padding: 28px; border-radius: var(--r); background: var(--soft); border: 1px solid var(--line); }
.stack-h { font-size: .875rem; font-weight: 600; color: var(--ink); margin-block-end: 18px; }
.stack dl { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; margin: 0; }
.stack dt { font-size: .85rem; color: var(--muted); margin-block-end: 8px; }
.stack dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.stack dd span { padding: 3px 9px; border-radius: 6px; background: #fff; border: 1px solid var(--line); font-size: .82rem; font-weight: 500; color: var(--ink); direction: ltr; }
@media (max-width: 960px) {
  .approach { grid-template-columns: 1fr; }
  .approach-head { position: static; }
  .stack dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) { .stack dl { grid-template-columns: 1fr; } }

.magnetic { transition: transform .25s var(--ease), background-color .2s; }

/* hero proof: real numbers instead of claims */
.hero-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-block-start: 34px; padding-block-start: 22px; border-block-start: 1px solid var(--line); }
.hero-proof li { display: grid; gap: 6px; align-content: start; }
.hero-proof b { font-size: 1.05rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.hero-proof b .num { font-size: 1.9rem; font-weight: 700; letter-spacing: -.03em; color: var(--brand); margin-inline-end: 2px; }
.hero-proof span:not(.num) { font-size: .86rem; line-height: 1.45; color: var(--muted); }
@media (max-width: 520px) { .hero-proof { grid-template-columns: 1fr; gap: 14px; } }

/* hero: the AI assistant behind a guard */
.agent { display: flex; flex-direction: column; block-size: 540px; border-radius: 18px; background: #0e1020; color: #d8dbe7; box-shadow: var(--shadow-lg); overflow: hidden; }
.ag-top { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-block-end: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; }
.ag-top b { color: #fff; font-weight: 600; }
.ag-mark { display: grid; place-items: center; inline-size: 28px; block-size: 28px; border-radius: 8px; background: var(--brand); color: #fff; }
.ag-mark .ico { inline-size: 16px; block-size: 16px; }
.ag-role { color: #8e92a6; }
.ag-role em { font-style: normal; color: #e4d2f3; }
.ag-live { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; color: #8e92a6; }
.ag-live i { inline-size: 7px; block-size: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .18); }
.ag-stage { flex: 1; min-block-size: 0; padding: 18px; transition: opacity .26s var(--ease); }
.ag-stage.swap { opacity: 0; }
.ag-scene { display: flex; flex-direction: column; gap: 12px; block-size: 100%; }
.ag-q { align-self: flex-end; max-inline-size: 86%; min-block-size: 2.9em; padding: 10px 14px; border-radius: 14px 14px 4px 14px; background: var(--brand); color: #fff; font-size: .95rem; line-height: 1.5; }
[dir='rtl'] .ag-q { border-radius: 14px 14px 14px 4px; }
.ag-q.typing::after, .ag-sql code:empty::after { content: '▍'; color: #c79cf0; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ag-sql { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .06); min-block-size: 6.1em; }
.ag-k { flex: none; padding: 2px 6px; border-radius: 4px; background: rgba(199, 156, 240, .16); color: #c79cf0; font: 700 .64rem/1.6 ui-monospace, Menlo, monospace; letter-spacing: .08em; }
.ag-sql code { font: 500 .76rem/1.6 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; color: #a5b4fc; white-space: pre-wrap; word-break: break-word; text-align: left; }
.ag-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.ag-checks li { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: #c5c8d6; transition: opacity .3s, transform .3s var(--ease); }
.ag-checks li i { position: relative; inline-size: 16px; block-size: 16px; flex: none; border-radius: 50%; background: #22c55e; }
.ag-checks li i::after { content: ''; position: absolute; inset-inline-start: 5px; inset-block-start: 2.5px; inline-size: 4px; block-size: 8px; border: solid #0e1020; border-width: 0 2px 2px 0; transform: rotate(45deg); }
[dir='rtl'] .ag-checks li i::after { inset-inline-start: auto; inset-inline-end: 5px; }
.ag-checks li.no { color: #fca5a5; font-weight: 600; }
.ag-checks li.no i { background: #ef4444; }
.ag-checks li.no i::after { inset: 7px 3px auto; inline-size: 10px; block-size: 2px; border: 0; background: #0e1020; transform: none; }
.ag-checks li.wait { opacity: 0; transform: translateY(4px); }
.ag-out { margin-block-start: 6px; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.ag-out.wait { opacity: 0; transform: translateY(8px); }
.ag-a { margin-block-end: 10px; font-size: .92rem; color: #fff; font-weight: 500; }
.ag-bars { display: grid; gap: 6px; }
.ag-bars li { display: grid; grid-template-columns: 112px 1fr 66px; gap: 10px; align-items: center; font-size: .78rem; }
.ag-bars span { color: #c5c8d6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-bars i { block-size: 10px; border-radius: 5px; background: linear-gradient(90deg, #7100a5, #c79cf0); inline-size: var(--w); }
.ag-out.wait .ag-bars i { inline-size: 0; }
.ag-out.show .ag-bars i { transition: inline-size .8s var(--ease); }
.ag-bars b { color: #fff; font-weight: 600; text-align: end; }
.ag-table { inline-size: 100%; border-collapse: collapse; font-size: .8rem; }
.ag-table td { padding: 7px 4px; border-block-end: 1px solid rgba(255, 255, 255, .07); color: #c5c8d6; }
.ag-table td:first-child { color: #fff; }
.ag-table td:last-child { text-align: end; color: #8e92a6; }
.ag-table tr.more td { color: #8e92a6; border: 0; }
.ag-refuse p { padding: 14px 16px; border-radius: 12px; background: rgba(239, 68, 68, .1); border: 1px solid rgba(239, 68, 68, .45); color: #fecaca; font-size: .9rem; line-height: 1.55; }
@media (max-width: 640px) {
  .agent { block-size: 560px; }
  .ag-checks { grid-template-columns: 1fr; }
  .ag-bars li { grid-template-columns: 92px 1fr 60px; }
  .ag-live { display: none; }
}

/* ledger */
.demo-ledger { display: flex; flex-direction: column; padding: 14px 16px; background: #fff; max-block-size: 520px; }
.lg-head, .lg-line, .lg-foot { display: grid; grid-template-columns: 1fr 90px 90px; gap: 10px; align-items: center; }
.lg-head { padding-block-end: 8px; border-block-end: 1px solid var(--line-2); font-size: .7rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.lg-head span:not(:first-child), .lg-line b, .lg-foot b { text-align: end; }
.lg-rows { flex: 1; min-block-size: 0; display: grid; align-content: start; gap: 2px; overflow: hidden; }
.lg-entry { padding-block: 7px; border-block-end: 1px dashed var(--line); animation: feed-in .5s var(--ease); }
.lg-memo { font-size: .68rem; color: var(--muted); margin-block-end: 2px; }
.lg-line { font-size: .8rem; color: var(--ink); }
.lg-line b { font-weight: 600; font-variant-numeric: tabular-nums; }
.lg-line.cr span { padding-inline-start: 18px; color: var(--text); }
.lg-foot { margin-block-start: 8px; padding-block-start: 8px; border-block-start: 2px solid var(--ink); font-size: .8rem; }
.lg-foot b { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.lg-bal { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #0f7d4a; }
.lg-bal i { inline-size: 16px; block-size: 16px; border-radius: 50%; background: #22c55e; position: relative; }
.lg-bal i::after { content: ''; position: absolute; inset-inline-start: 5px; inset-block-start: 2.5px; inline-size: 4px; block-size: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
[dir='rtl'] .lg-bal i::after { inset-inline-start: auto; inset-inline-end: 5px; }
.demo-ledger.tick .lg-foot b { animation: flash-ink .8s var(--ease); }
@keyframes flash-ink { 0% { color: var(--brand); } }
@media (max-width: 560px) { .lg-head, .lg-line, .lg-foot { grid-template-columns: 1fr 76px 76px; } }

/* live leaderboard */
.demo-board { padding: 14px 16px; }
.bd-head { display: flex; align-items: center; gap: 10px; margin-block-end: 8px; font-size: .74rem; font-weight: 600; color: var(--muted); }
.bd-live { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 99px; background: #fee2e2; color: #b91c1c; }
.bd-live i { inline-size: 6px; block-size: 6px; border-radius: 50%; background: #ef4444; animation: blink 1.2s steps(2) infinite; }
.bd-rows { display: grid; gap: 5px; }
.bd-rows li { display: grid; grid-template-columns: 24px 1fr auto 56px; gap: 8px; align-items: center; padding: 6px 10px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-size: .82rem; }
.bd-rows li:first-child { border-color: var(--brand-100); background: var(--brand-50); }
.bd-pos { font-weight: 700; color: var(--muted); }
.bd-rows li:first-child .bd-pos { color: var(--brand); }
.bd-name { color: var(--ink); font-weight: 500; }
.bd-score { text-align: end; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.bd-delta { font-style: normal; font-size: .72rem; font-weight: 600; color: #0f7d4a; }
.bd-rows li.up { box-shadow: 0 0 0 2px rgba(34, 197, 94, .25); }
