/* REBOULO® Global Business Network — Design System v1
   Layout concept: "Command deck" — a navy engineering deck with blueprint grids,
   registry-coded panels and amber signal lines tracing trade corridors. */

:root {
  /* Brand constants (identical in both themes — used by always-dark "deck" bands) */
  --deck: #071426;
  --deck-2: #0C1F3A;
  --deck-3: #12294A;
  --deck-fg: #EEF1F5;
  --deck-muted: #9DAAC0;
  --deck-line: rgba(157, 180, 214, 0.16);
  --gold: #C6A15A;
  --gold-hi: #E2C27F;
  --amber: #F08A24;
  --amber-hi: #FFB054;
  --signal: #38D39F;

  /* Theme tokens — light values */
  --bg: #F5F3EE;
  --bg-2: #ECE8DF;
  --surface: #FFFFFF;
  --surface-2: #F8F6F1;
  --fg: #0B1A2E;
  --fg-2: #23272D;
  --muted: #586374;
  --line: rgba(11, 26, 46, 0.12);
  --line-strong: rgba(11, 26, 46, 0.24);
  --accent: #B8650E;
  --accent-text: #A65B0D; /* small orange text: same hue, AA contrast on white and ivory */
  --accent-ink: #FFFFFF;
  --gold-ink: #7C5F28; /* AA contrast for small gold labels on ivory */
  --focus: #1D6FE0;
  --danger: #B42318;
  --ok: #0E7A54;
  --shadow: 0 1px 2px rgba(7, 20, 38, .06), 0 12px 32px -12px rgba(7, 20, 38, .18);

  /* Type */
  --f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --f-ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --step--1: clamp(.78rem, .76rem + .1vw, .84rem);
  --step-0: clamp(.95rem, .92rem + .15vw, 1.04rem);
  --step-1: clamp(1.12rem, 1.05rem + .35vw, 1.3rem);
  --step-2: clamp(1.35rem, 1.2rem + .7vw, 1.75rem);
  --step-3: clamp(1.7rem, 1.4rem + 1.4vw, 2.5rem);
  --step-4: clamp(2.2rem, 1.6rem + 2.8vw, 3.9rem);
  --step-5: clamp(2.6rem, 1.7rem + 4.4vw, 5.4rem);

  --r-s: 6px;
  --r-m: 10px;
  --r-l: 16px;
  --wrap: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #06111F; --bg-2: #0A1A2E; --surface: #0C1D33; --surface-2: #10243F;
    --fg: #EDF1F6; --fg-2: #D5DCE6; --muted: #98A6BA;
    --line: rgba(157, 180, 214, 0.14); --line-strong: rgba(157, 180, 214, 0.28);
    --accent: #F59A3C; --accent-text: #F59A3C; --accent-ink: #1A0E02; --gold-ink: #D9B56E; --focus: #6AA8FF;
    --danger: #FF8A80; --ok: #4FD1A1;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 18px 40px -18px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #06111F; --bg-2: #0A1A2E; --surface: #0C1D33; --surface-2: #10243F;
  --fg: #EDF1F6; --fg-2: #D5DCE6; --muted: #98A6BA;
  --line: rgba(157, 180, 214, 0.14); --line-strong: rgba(157, 180, 214, 0.28);
  --accent: #F59A3C; --accent-text: #F59A3C; --accent-ink: #1A0E02; --gold-ink: #D9B56E; --focus: #6AA8FF;
  --danger: #FF8A80; --ok: #4FD1A1;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 18px 40px -18px rgba(0,0,0,.6);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--f-body); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
html[lang="ar"] body, html[lang="ar"] .display { font-family: var(--f-ar); }
html[lang="ar"] body { line-height: 1.8; }
img, svg, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; text-wrap: balance; font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; }
.display { font-family: var(--f-display); font-stretch: 112%; letter-spacing: -.01em; }
html[lang="ar"] .display { letter-spacing: 0; font-stretch: normal; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.eyebrow {
  font-family: var(--f-mono); font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-ink); display: inline-flex; align-items: center; gap: .6em;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-family: var(--f-ar); font-weight: 600; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--amber); color: #1a0e02; padding: .6rem 1rem; border-radius: var(--r-s); font-weight: 700; }
.skip:focus { top: 12px; }

.wrap {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

section.band { padding-block: clamp(56px, 8vw, 112px); }
.band.alt { background: var(--bg-2); }
.band.deck { background: var(--deck); color: var(--deck-fg); --fg: var(--deck-fg); --muted: var(--deck-muted); --line: var(--deck-line); --surface: var(--deck-2); --surface-2: var(--deck-3); --gold-ink: var(--gold-hi); --accent: var(--amber); --accent-ink: #1a0e02; }

.sec-head { display: grid; gap: 14px; margin-block-end: clamp(28px, 4vw, 48px); max-width: 760px; }
.sec-head h2 { font-size: var(--step-4); }
.sec-head p { color: var(--muted); font-size: var(--step-1); max-width: 62ch; }
.sec-head.row { max-width: none; grid-template-columns: 1fr auto; align-items: end; }
@media (max-width: 760px) { .sec-head.row { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .82em 1.25em; border-radius: var(--r-s); border: 1px solid var(--b);
  background: transparent; font-weight: 700; font-size: .95rem; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); border-color: var(--fg); }
.btn.primary { background: var(--amber); border-color: var(--amber); color: #1a0e02; }
.btn.primary:hover { background: var(--amber-hi); border-color: var(--amber-hi); }
.btn.gold { background: transparent; border-color: var(--gold); color: var(--gold-ink); }
.btn.gold:hover { background: color-mix(in srgb, var(--gold) 14%, transparent); }
.btn.ghost { border-color: transparent; padding-inline: .6em; }
.btn.sm { padding: .55em .9em; font-size: .85rem; }
.btn svg { width: 1.05em; height: 1.05em; }
html[dir="rtl"] .btn .arw { transform: scaleX(-1); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.utility { background: var(--deck); color: var(--deck-muted); font-size: .78rem; border-bottom: 1px solid var(--deck-line); }
.utility .wrap { display: flex; gap: 18px; align-items: center; justify-content: space-between; min-height: 36px; }
.utility .reg { display: flex; gap: 18px; overflow: hidden; white-space: nowrap; }
.utility .reg span b { color: var(--gold-hi); font-weight: 600; }
.utility .ctrl { display: flex; gap: 6px; align-items: center; }
@media (max-width: 860px) { .utility .reg span:nth-child(n+2) { display: none; } }
.seg { display: inline-flex; border: 1px solid var(--deck-line); border-radius: 999px; padding: 2px; }
.seg button, .seg a { background: none; text-decoration: none; display: inline-block; border: 0; color: var(--deck-muted); padding: 3px 9px; border-radius: 999px; font-size: .74rem; font-weight: 700; }
.seg button[aria-pressed="true"], .seg a[aria-current="true"] { background: var(--gold); color: #1a1205; }
.icon-btn { background: none; border: 1px solid var(--deck-line); color: var(--deck-fg); width: 28px; height: 28px; border-radius: 999px; display: inline-grid; place-items: center; }
.icon-btn svg { width: 14px; height: 14px; }

.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--deck) 92%, transparent); color: var(--deck-fg);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--deck-line);
}
.topbar .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--deck-fg); flex-shrink: 0; }
.brand svg { width: 38px; height: 38px; }
.brand .name { font-family: var(--f-display); font-stretch: 118%; font-weight: 800; letter-spacing: .08em; font-size: 1.08rem; line-height: 1; }
.brand .name sup { font-size: .5em; color: var(--gold); }
.brand .sub { display: block; font-family: var(--f-mono); font-size: .6rem; letter-spacing: .18em; color: var(--deck-muted); margin-top: 4px; text-transform: uppercase; }
html[lang="ar"] .brand .sub { letter-spacing: .02em; font-family: var(--f-ar); }
.nav { display: flex; gap: 2px; margin-inline-start: auto; align-items: center; }
.nav > a, .nav > .dd > button {
  background: none; border: 0; color: var(--deck-fg); text-decoration: none; font-weight: 600; font-size: .9rem;
  padding: .55rem .7rem; border-radius: var(--r-s); display: inline-flex; align-items: center; gap: 4px; opacity: .86;
}
.nav > a:hover, .nav > .dd > button:hover, .nav a[aria-current="page"] { opacity: 1; background: rgba(255,255,255,.06); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--amber); }
.nav .btn { margin-inline-start: 8px; }
.dd { position: relative; }
.dd svg.chev { width: 12px; height: 12px; transition: transform .2s; }
.dd[data-open="true"] svg.chev { transform: rotate(180deg); }
.mega {
  position: absolute; inset-inline-start: 50%; transform: translateX(-50%); top: calc(100% + 10px);
  width: min(880px, 92vw); background: var(--deck-2); border: 1px solid var(--deck-line); border-radius: var(--r-l);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); padding: 14px; display: none;
  grid-template-columns: repeat(3, 1fr); gap: 6px;
}
html[dir="rtl"] .mega { transform: translateX(50%); }
.dd[data-open="true"] .mega { display: grid; }
.mega a { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 12px; border-radius: var(--r-m); text-decoration: none; color: var(--deck-fg); }
.mega a:hover { background: rgba(255,255,255,.05); }
.mega .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(240,138,36,.12); color: var(--amber-hi); }
.mega .ic svg { width: 20px; height: 20px; }
.mega b { display: block; font-size: .92rem; }
.mega small { color: var(--deck-muted); font-size: .78rem; line-height: 1.4; display: block; }
.menu-btn { display: none; margin-inline-start: auto; background: none; border: 1px solid var(--deck-line); color: var(--deck-fg); border-radius: var(--r-s); width: 42px; height: 42px; place-items: center; }
.menu-btn svg { width: 20px; height: 20px; }
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
}
.drawer {
  position: fixed; inset: 0; z-index: 80; background: var(--deck); color: var(--deck-fg);
  padding: calc(env(safe-area-inset-top, 0px) + 16px) max(16px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 24px) max(16px, env(safe-area-inset-left, 0px));
  overflow-y: auto; display: none;
}
.drawer[data-open="true"] { display: block; animation: fade .25s var(--ease); }
.drawer .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.drawer nav { display: grid; gap: 2px; }
.drawer nav a { padding: 14px 4px; border-bottom: 1px solid var(--deck-line); text-decoration: none; font-weight: 700; font-size: 1.1rem; display: flex; justify-content: space-between; }
.drawer nav a small { color: var(--deck-muted); font-weight: 500; font-family: var(--f-mono); font-size: .7rem; }
.drawer .grp { font-family: var(--f-mono); color: var(--gold-hi); font-size: .72rem; letter-spacing: .14em; margin: 18px 0 4px; text-transform: uppercase; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--deck); color: var(--deck-fg); overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 500px at 78% 40%, rgba(240,138,36,.13), transparent 60%),
    radial-gradient(700px 500px at 10% 0%, rgba(198,161,90,.10), transparent 60%),
    linear-gradient(180deg, #071426, #08182D 70%, #071426);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--deck-line) 1px, transparent 1px), linear-gradient(90deg, var(--deck-line) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 24px; align-items: center; padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 72px); }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; } }
.hero h1 { font-size: var(--step-5); font-weight: 800; line-height: 1.02; margin: 18px 0 20px; }
html[lang="ar"] .hero h1 { line-height: 1.25; font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--amber-hi); }
.hero h1 .gold { color: var(--gold-hi); }
.hero .lead { color: var(--deck-muted); font-size: var(--step-1); max-width: 56ch; margin-bottom: 28px; }
.hero .eyebrow { color: var(--gold-hi); }
.hero-facts { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; margin-top: 40px; background: var(--deck-line); border: 1px solid var(--deck-line); border-radius: var(--r-m); overflow: hidden; }
.hero-facts div { background: var(--deck); padding: 14px 16px; }
.hero-facts b { display: block; font-family: var(--f-display); font-stretch: 115%; font-size: 1.9rem; line-height: 1; color: var(--deck-fg); }
.hero-facts span { font-size: .76rem; color: var(--deck-muted); }
@media (max-width: 560px) { .hero-facts { grid-template-columns: repeat(2, 1fr); } }
.globe-wrap { position: relative; aspect-ratio: 1; width: 100%; max-width: 600px; justify-self: center; }
.globe-wrap canvas { width: 100%; height: 100%; }
.globe-tag {
  position: absolute; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; color: var(--deck-fg);
  background: rgba(7,20,38,.78); border: 1px solid var(--deck-line); padding: 6px 9px; border-radius: 6px; pointer-events: none;
  display: flex; gap: 7px; align-items: center; backdrop-filter: blur(6px);
}
.globe-tag i { width: 7px; height: 7px; border-radius: 99px; background: var(--amber); box-shadow: 0 0 0 4px rgba(240,138,36,.18); }
.globe-tag.g i { background: var(--gold); box-shadow: 0 0 0 4px rgba(198,161,90,.2); }
.corridors { border-top: 1px solid var(--deck-line); background: rgba(255,255,255,.015); overflow: hidden; }
.corridors .track { display: flex; gap: 48px; padding: 14px 0; width: max-content; animation: marquee 48s linear infinite; }
html[dir="rtl"] .corridors .track { animation-name: marquee-rtl; }
.corridors span { font-family: var(--f-mono); font-size: .76rem; color: var(--deck-muted); white-space: nowrap; letter-spacing: .06em; }
.corridors span b { color: var(--amber-hi); font-weight: 600; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ---------- Page hero (inner pages) ---------- */
.phero { background: var(--deck); color: var(--deck-fg); position: relative; overflow: hidden; isolation: isolate; }
.phero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55;
  background-image: linear-gradient(var(--deck-line) 1px, transparent 1px), linear-gradient(90deg, var(--deck-line) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: linear-gradient(90deg, transparent, #000 60%);
}
html[dir="rtl"] .phero::after { mask-image: linear-gradient(-90deg, transparent, #000 60%); }
.phero .wrap { padding-block: clamp(40px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 32px; align-items: center; }
@media (max-width: 860px) { .phero .wrap { grid-template-columns: 1fr; } .phero .art { max-width: 320px; } }
.phero h1 { font-size: var(--step-4); margin: 14px 0 16px; font-weight: 800; }
.phero p.lead { color: var(--deck-muted); font-size: var(--step-1); max-width: 60ch; }
.phero .eyebrow { color: var(--gold-hi); }
.crumbs { font-size: .78rem; color: var(--deck-muted); display: flex; gap: 8px; flex-wrap: wrap; font-family: var(--f-mono); }
.crumbs a { color: var(--deck-muted); text-decoration: none; }
.crumbs a:hover { color: var(--deck-fg); }
.phero .art { color: var(--amber-hi); }
.phero .chips { margin-top: 22px; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(18px, 2.4vw, 28px); min-width: 0; }
.panel h3 { font-size: var(--step-1); margin-bottom: 8px; }
.panel p { color: var(--muted); }

/* Division cards */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip {
  border: 1px solid var(--line-strong); background: transparent; color: var(--fg); border-radius: 999px;
  padding: .45em .95em; font-size: .84rem; font-weight: 600; display: inline-flex; gap: 6px; align-items: center;
}
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.band.deck .chip[aria-pressed="true"], .phero .chip[aria-pressed="true"] { background: var(--gold); color: #1a1205; border-color: var(--gold); }
.chip.static { cursor: default; font-family: var(--f-mono); font-size: .72rem; font-weight: 500; letter-spacing: .04em; }
.phero .chip { color: var(--deck-fg); border-color: var(--deck-line); }

.div-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.div-card { grid-column: span 2; }
.div-card.wide { grid-column: span 3; }
@media (max-width: 1000px) { .div-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .div-card, .div-card.wide { grid-column: span 1; } }
@media (max-width: 640px) { .div-grid { grid-template-columns: 1fr; } }
.div-card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
  overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; min-width: 0;
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s;
}
.div-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--amber) 60%, transparent); box-shadow: var(--shadow); }
.div-card .plate { background: var(--deck); color: var(--amber-hi); aspect-ratio: 16 / 8; position: relative; overflow: hidden; }
.div-card .plate::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--deck-line) 1px, transparent 1px), linear-gradient(90deg, var(--deck-line) 1px, transparent 1px);
  background-size: 22px 22px;
}
.div-card .plate svg { position: absolute; inset: 8% 10%; width: 80%; height: 84%; transition: transform .6s var(--ease); }
.div-card:hover .plate svg { transform: scale(1.04) translateY(-2px); }
.div-card .plate .code { position: absolute; top: 12px; inset-inline-start: 14px; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em; color: var(--gold-hi); }
.div-card .plate .code2 { position: absolute; bottom: 12px; inset-inline-end: 14px; font-family: var(--f-mono); font-size: .66rem; color: var(--deck-muted); }
.div-card .body { padding: 20px 22px 22px; display: grid; gap: 10px; flex: 1; align-content: start; }
.div-card h3 { font-size: var(--step-2); }
.div-card p { color: var(--muted); font-size: .94rem; }
.div-card ul.ticks { margin-top: 4px; }
.div-card .more { margin-top: auto; padding-top: 10px; display: inline-flex; gap: 6px; font-weight: 700; color: var(--accent); align-items: center; font-size: .9rem; }
.div-card .more svg { width: 16px; height: 16px; transition: transform .25s; }
.div-card:hover .more svg { transform: translateX(4px); }
html[dir="rtl"] .div-card .more svg { transform: scaleX(-1); }
html[dir="rtl"] .div-card:hover .more svg { transform: scaleX(-1) translateX(4px); }

ul.ticks { list-style: none; display: grid; gap: 7px; }
ul.ticks li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; font-size: .92rem; color: var(--fg-2); align-items: start; }
.band.deck ul.ticks li, .phero ul.ticks li { color: var(--deck-fg); }
ul.ticks li::before { content: ""; width: 8px; height: 8px; margin-top: .55em; border: 1.5px solid var(--accent); transform: rotate(45deg); }
ul.ticks.cols { grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 24px; }
@media (max-width: 640px) { ul.ticks.cols { grid-template-columns: 1fr; } }

/* Who we are */
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.statement { font-family: var(--f-display); font-stretch: 105%; font-size: var(--step-3); font-weight: 600; line-height: 1.2; }
html[lang="ar"] .statement { font-family: var(--f-ar); line-height: 1.5; }
.statement em { font-style: normal; color: var(--accent); }
.pillars { display: grid; gap: 0; border-top: 1px solid var(--line); }
.pillars > div { display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.pillars .n { font-family: var(--f-mono); color: var(--gold-ink); font-size: .8rem; padding-top: 4px; }
.pillars h3 { font-size: var(--step-1); margin-bottom: 4px; }
.pillars p { color: var(--muted); font-size: .94rem; }

/* Map */
.map-shell { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--deck-line); border-radius: var(--r-l); overflow: hidden; background: var(--deck-2); }
@media (max-width: 960px) { .map-shell { grid-template-columns: 1fr; } }
.map-stage { position: relative; background: radial-gradient(ellipse at 50% 40%, #0E2442, #081A30 70%); min-width: 0; }
.map-stage svg { width: 100%; height: auto; }
.map-legend { position: absolute; bottom: 12px; inset-inline-start: 14px; display: flex; gap: 14px; flex-wrap: wrap; font-family: var(--f-mono); font-size: .66rem; color: var(--deck-muted); }
.map-legend i { display: inline-block; width: 18px; height: 2px; vertical-align: middle; margin-inline-end: 6px; }
.map-side { padding: 22px; border-inline-start: 1px solid var(--deck-line); display: grid; gap: 14px; align-content: start; min-width: 0; }
@media (max-width: 960px) { .map-side { border-inline-start: 0; border-top: 1px solid var(--deck-line); } }
.map-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.map-node { cursor: pointer; }
.map-node:focus-visible circle.ring { stroke: #fff; stroke-width: 2; }
.ent-card { border: 1px solid var(--deck-line); border-radius: var(--r-m); padding: 14px 16px; background: rgba(255,255,255,.02); display: grid; gap: 6px; }
.ent-card h4 { font-size: 1rem; }
.ent-card dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0; font-size: .82rem; }
.ent-card dt { color: var(--deck-muted); font-family: var(--f-mono); font-size: .72rem; padding-top: 2px; }
.ent-card dd { margin: 0; color: var(--deck-fg); }
.route { fill: none; stroke-width: 1.6; stroke-dasharray: 5 7; animation: dash 2.8s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -48; } }

/* Entities page cards */
.entity {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; display: grid; grid-template-rows: auto 1fr;
}
.entity .head { background: var(--deck); color: var(--deck-fg); padding: 20px 22px; display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.entity .flag { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; color: var(--gold-hi); }
.entity .head h3 { font-size: var(--step-1); margin-top: 6px; }
.entity .body { padding: 20px 22px; display: grid; gap: 14px; align-content: start; }
.reg-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.reg-table th { text-align: start; font-weight: 500; color: var(--muted); font-family: var(--f-mono); font-size: .72rem; padding: 8px 12px 8px 0; vertical-align: top; width: 38%; letter-spacing: .04em; }
.reg-table td { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.reg-table tr:last-child td { border-bottom: 0; }
.notice { border: 1px solid var(--line-strong); border-inline-start: 3px solid var(--gold); background: var(--surface-2); padding: 14px 16px; border-radius: var(--r-s); font-size: .88rem; color: var(--fg-2); }
.notice b { color: var(--fg); }

/* Process */
.process { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 0; counter-reset: s; position: relative; }
@media (max-width: 1000px) { .process { grid-template-columns: repeat(3, minmax(0,1fr)); row-gap: 28px; } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }
.process li { list-style: none; padding: 0 18px 0 0; position: relative; }
html[dir="rtl"] .process li { padding: 0 0 0 18px; }
.process .dot { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--gold); display: grid; place-items: center; font-family: var(--f-mono); color: var(--gold-ink); font-size: .8rem; background: var(--bg); position: relative; z-index: 1; }
.band.deck .process .dot { background: var(--deck); }
.process li::after { content: ""; position: absolute; top: 22px; inset-inline-start: 44px; inset-inline-end: 0; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
html[dir="rtl"] .process li::after { background: linear-gradient(-90deg, var(--gold), transparent); }
.process li:last-child::after { display: none; }
.process h3 { font-size: 1.02rem; margin: 14px 0 6px; }
.process p { font-size: .88rem; color: var(--muted); }

/* Catalogue */
.cat-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-bottom: 16px; }
@media (max-width: 760px) { .cat-bar { grid-template-columns: 1fr; } }
.search { position: relative; }
.search input { width: 100%; padding: .85em 1em .85em 2.6em; border-radius: var(--r-m); border: 1px solid var(--line-strong); background: var(--surface); color: var(--fg); font: inherit; }
html[dir="rtl"] .search input { padding: .85em 2.6em .85em 1em; }
.search svg { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.prod {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 0; display: flex; flex-direction: column; overflow: hidden; min-width: 0;
  transition: border-color .25s, transform .3s var(--ease);
}
.prod:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.prod .top { padding: 16px 18px 0; display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.prod .sku { font-family: var(--f-mono); font-size: .68rem; color: var(--muted); letter-spacing: .06em; }
.prod .tag { font-family: var(--f-mono); font-size: .64rem; padding: 3px 7px; border-radius: 4px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); white-space: nowrap; letter-spacing: .04em; }
.prod .tag.cold { background: rgba(80,160,255,.14); color: #3E8EE8; }
.prod .tag.green { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.prod h3 { font-size: 1.08rem; padding: 8px 18px 0; }
.prod p { font-size: .86rem; color: var(--muted); padding: 6px 18px 0; }
.prod dl { margin: 12px 18px 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: .8rem; }
.prod dt { color: var(--muted); }
.prod dd { margin: 0; font-family: var(--f-mono); font-size: .76rem; text-align: end; font-variant-numeric: tabular-nums; }
.prod .acts { margin-top: auto; padding: 14px 18px 16px; display: flex; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-block-start: 14px; align-items: center; }
.prod .acts label { font-size: .78rem; display: inline-flex; gap: 6px; align-items: center; margin-inline-start: auto; color: var(--muted); cursor: pointer; }
.season { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; margin: 12px 18px 0; }
.season span { height: 18px; border-radius: 2px; background: var(--line); font-size: .52rem; display: grid; place-items: center; color: var(--muted); font-family: var(--f-mono); }
.season span.on { background: color-mix(in srgb, var(--ok) 70%, transparent); color: #fff; }
.compare-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 60; background: var(--deck); color: var(--deck-fg); border-top: 1px solid var(--deck-line);
  padding-block: 12px calc(12px + env(safe-area-inset-bottom, 0px)); transform: translateY(110%); transition: transform .35s var(--ease);
}
.compare-bar[data-show="true"] { transform: none; }
.compare-bar .wrap { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 560px; }
table.data th, table.data td { padding: 11px 14px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; background: var(--surface-2); }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data tbody th { font-weight: 600; }

/* Division page */
.div-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 960px) { .div-layout { grid-template-columns: 1fr; } .toc { display: none; } }
.toc { position: sticky; top: 96px; display: grid; gap: 2px; font-size: .88rem; }
.toc b { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; margin-bottom: 8px; font-weight: 500; }
.toc a { text-decoration: none; padding: 7px 12px; border-inline-start: 2px solid var(--line); color: var(--muted); }
.toc a:hover { color: var(--fg); border-color: var(--accent); }
.div-sec { padding-block: 0 56px; scroll-margin-top: 96px; }
.div-sec > h2 { font-size: var(--step-3); margin-bottom: 18px; display: flex; gap: 14px; align-items: baseline; }
.div-sec > h2 small { font-family: var(--f-mono); font-size: .72rem; color: var(--gold-ink); font-weight: 500; letter-spacing: .1em; }
.offer-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
@media (max-width: 640px) { .offer-grid { grid-template-columns: 1fr; } }
.offer-grid > div { background: var(--surface); padding: 20px 22px; display: grid; gap: 6px; align-content: start; }
.offer-grid h3 { font-size: 1.02rem; display: flex; gap: 10px; align-items: center; }
.offer-grid h3::before { content: ""; width: 6px; height: 6px; background: var(--accent); flex-shrink: 0; }
.offer-grid p { font-size: .9rem; color: var(--muted); }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.kv > div { border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px 16px; background: var(--surface); }
.kv span { display: block; font-family: var(--f-mono); font-size: .68rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.kv b { display: block; font-size: 1.05rem; margin-top: 4px; }
.steps-v { display: grid; gap: 0; counter-reset: v; }
.steps-v li { list-style: none; display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--line); counter-increment: v; }
.steps-v li::before { content: counter(v, decimal-leading-zero); font-family: var(--f-mono); color: var(--gold-ink); font-size: .82rem; padding-top: 2px; }
.safety-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.safety { border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px; background: var(--surface); display: grid; gap: 6px; align-content: start; }
.safety .ic { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.safety .ic svg { width: 18px; height: 18px; }
.safety h3, .safety h4 { font-size: .96rem; }
.safety p { font-size: .86rem; color: var(--muted); }

/* FAQ */
details.faq { border-bottom: 1px solid var(--line); }
details.faq summary { list-style: none; cursor: pointer; padding: 16px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-family: var(--f-mono); color: var(--accent); font-size: 1.3rem; transition: transform .25s; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { padding: 0 0 16px; color: var(--muted); max-width: 70ch; }

/* Tools */
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.tool .th { background: var(--deck); color: var(--deck-fg); padding: 14px 20px; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.tool .th b { font-size: .98rem; }
.tool .th span { font-family: var(--f-mono); font-size: .68rem; color: var(--gold-hi); letter-spacing: .1em; }
.tool .tb { padding: 20px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; }
@media (max-width: 760px) { .tool .tb { grid-template-columns: 1fr; } }
.out { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-m); padding: 18px; display: grid; gap: 10px; align-content: start; }
.out .big { font-family: var(--f-display); font-stretch: 115%; font-size: var(--step-4); line-height: 1; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.out .big small { font-size: .4em; color: var(--muted); font-weight: 600; }
.out ul { list-style: none; display: grid; gap: 6px; font-size: .86rem; }
.out li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.out li b { font-family: var(--f-mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.fine { font-size: .76rem; color: var(--muted); }

/* Forms */
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field .lbl { font-weight: 700; font-size: .86rem; }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; padding: .78em .9em; border-radius: var(--r-s); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--fg); font: inherit; font-size: .95rem;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
.field .hint { font-size: .76rem; color: var(--muted); }
.field .err { font-size: .78rem; color: var(--danger); display: none; }
.field[data-invalid="true"] .err { display: block; }
.field[data-invalid="true"] input, .field[data-invalid="true"] select, .field[data-invalid="true"] textarea { border-color: var(--danger); }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.fgrid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .fgrid { grid-template-columns: 1fr; } }
input[type="range"] { accent-color: var(--amber); padding: 0; }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: .88rem; color: var(--fg-2); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--amber); }

/* RFQ */
.rfq-shell { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow); }
@media (max-width: 900px) { .rfq-shell { grid-template-columns: 1fr; } }
.rfq-side { background: var(--deck); color: var(--deck-fg); padding: 26px 22px; display: grid; gap: 22px; align-content: start; }
.rfq-steps { list-style: none; display: grid; gap: 4px; }
.rfq-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: center; padding: 10px 8px; border-radius: var(--r-s); color: var(--deck-muted); font-size: .9rem; }
.rfq-steps li i { width: 30px; height: 30px; border-radius: 999px; border: 1px solid var(--deck-line); display: grid; place-items: center; font-style: normal; font-family: var(--f-mono); font-size: .76rem; }
.rfq-steps li[data-state="current"] { background: rgba(255,255,255,.05); color: var(--deck-fg); font-weight: 700; }
.rfq-steps li[data-state="current"] i { border-color: var(--amber); color: var(--amber-hi); }
.rfq-steps li[data-state="done"] i { background: var(--gold); border-color: var(--gold); color: #1a1205; }
@media (max-width: 900px) { .rfq-steps { grid-template-columns: repeat(4, 1fr); } .rfq-steps li { grid-template-columns: 1fr; justify-items: center; text-align: center; font-size: .72rem; padding: 6px 2px; } .rfq-side .help { display: none; } }
.rfq-side .help svg { width: 18px; height: 18px; color: var(--gold); }
.rfq-main { padding: clamp(20px, 3vw, 36px); display: grid; gap: 22px; align-content: start; min-width: 0; }
.rfq-main h2 { font-size: var(--step-2); }
.progress { height: 3px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--amber)); transition: width .4s var(--ease); }
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.type-opt { position: relative; }
.type-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.type-opt span { display: grid; gap: 4px; border: 1px solid var(--line-strong); border-radius: var(--r-m); padding: 14px; height: 100%; transition: border-color .2s, background .2s; }
.type-opt span b { font-size: .94rem; }
.type-opt span small { font-size: .78rem; color: var(--muted); line-height: 1.4; }
.type-opt input:checked + span { border-color: var(--amber); background: color-mix(in srgb, var(--amber) 8%, transparent); box-shadow: inset 0 0 0 1px var(--amber); }
.type-opt input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.rfq-nav { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.review { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.review div { display: grid; grid-template-columns: 200px 1fr; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.review div:last-child { border-bottom: 0; }
.review dt { color: var(--muted); font-size: .8rem; }
@media (max-width: 560px) { .review div { grid-template-columns: 1fr; gap: 2px; } }
.success { text-align: center; display: grid; gap: 14px; justify-items: center; padding: 20px 0; }
.success .ref { font-family: var(--f-mono); font-size: var(--step-2); color: var(--accent); border: 1px dashed var(--accent); padding: 10px 18px; border-radius: var(--r-s); letter-spacing: .06em; }
.success .tick { width: 64px; height: 64px; border-radius: 999px; background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); display: grid; place-items: center; }
.success .tick svg { width: 30px; height: 30px; }

/* Projects / scenarios */
.scen { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; min-width: 0; }
.scen .side { background: var(--deck); color: var(--amber-hi); display: grid; place-items: center; padding: 16px; position: relative; }
.scen .side svg { width: 100%; max-width: 84px; }
.scen .main { padding: 18px 20px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.scen h3 { font-size: 1.08rem; }
.scen .lab { font-family: var(--f-mono); font-size: .66rem; color: var(--gold-ink); letter-spacing: .1em; text-transform: uppercase; }
.scen dl { margin: 6px 0 0; display: grid; gap: 6px; font-size: .86rem; }
.scen dt { font-weight: 700; font-size: .78rem; }
.scen dd { margin: 0; color: var(--muted); }
@media (max-width: 560px) { .scen { grid-template-columns: 1fr; } .scen .side { padding: 20px; } }

/* Insights */
.post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 22px; display: grid; gap: 10px; align-content: start; text-decoration: none; color: inherit; transition: border-color .2s, transform .3s var(--ease); min-width: 0; }
.post:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.post .meta { display: flex; gap: 10px; font-family: var(--f-mono); font-size: .7rem; color: var(--muted); flex-wrap: wrap; letter-spacing: .04em; }
.post .meta b { color: var(--accent-text); font-weight: 500; }
.post h3 { font-size: 1.18rem; }
.post p { color: var(--muted); font-size: .9rem; }
article.prose { max-width: 72ch; display: grid; gap: 16px; }
article.prose h2 { font-size: var(--step-2); margin-top: 18px; }
article.prose p, article.prose li { color: var(--fg-2); }
article.prose ul { padding-inline-start: 1.2em; display: grid; gap: 8px; }

/* Legal */
.legal { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .legal { grid-template-columns: 1fr; } .legal .toc { display: none; } }
.legal article { max-width: 76ch; display: grid; gap: 14px; }
.legal article h2 { font-size: var(--step-1); margin-top: 22px; scroll-margin-top: 96px; display: flex; gap: 12px; }
.legal article h2 span { font-family: var(--f-mono); color: var(--gold-ink); font-size: .8rem; padding-top: .3em; font-weight: 500; }
.legal article p, .legal article li { color: var(--fg-2); font-size: .95rem; }
.legal article ul { padding-inline-start: 1.2em; display: grid; gap: 6px; }
.draft { display: inline-flex; gap: 8px; align-items: center; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; padding: 5px 10px; border-radius: 4px; background: rgba(240,138,36,.14); color: var(--amber-hi); border: 1px solid rgba(240,138,36,.4); text-transform: uppercase; }

/* Trust */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.trust-grid > div { background: var(--surface); padding: 22px; display: grid; gap: 8px; align-content: start; }
.trust-grid .ic { color: var(--gold-ink); }
.trust-grid .ic svg { width: 26px; height: 26px; }
.trust-grid h3 { font-size: 1rem; }
.trust-grid p { font-size: .86rem; color: var(--muted); }

/* Platform diagram */
.arch { display: grid; gap: 12px; }
.arch .layer { display: grid; grid-template-columns: 160px minmax(0,1fr); gap: 12px; align-items: stretch; }
@media (max-width: 700px) { .arch .layer { grid-template-columns: 1fr; } }
.arch .lname { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; color: var(--gold-hi); text-transform: uppercase; display: flex; align-items: center; border-inline-start: 2px solid var(--gold); padding-inline-start: 12px; }
.arch .mods { display: flex; flex-wrap: wrap; gap: 8px; }
.arch .mod { border: 1px solid var(--deck-line); background: rgba(255,255,255,.03); border-radius: var(--r-s); padding: 10px 12px; font-size: .84rem; display: grid; gap: 2px; min-width: 150px; flex: 1; }
.arch .mod small { color: var(--deck-muted); font-size: .72rem; }
.arch .mod .st { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .08em; }
.st.live { color: var(--signal); } .st.next { color: var(--amber-hi); } .st.plan { color: var(--deck-muted); }

/* CTA band */
.cta-band { background: var(--deck); color: var(--deck-fg); border-radius: var(--r-l); padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: center; position: relative; overflow: hidden; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 300px at 90% 100%, rgba(240,138,36,.22), transparent 60%), radial-gradient(500px 300px at 0% 0%, rgba(198,161,90,.14), transparent 60%); }
.cta-band h2 { font-size: var(--step-3); }
.cta-band p { color: var(--deck-muted); margin-top: 10px; }
.cta-band .opts { display: grid; gap: 8px; }
.cta-band .opts a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--deck-line); border-radius: var(--r-m); text-decoration: none; font-weight: 700; background: rgba(255,255,255,.02); transition: border-color .2s, background .2s; }
.cta-band .opts a:hover { border-color: var(--amber); background: rgba(240,138,36,.08); }
.cta-band .opts a small { display: block; font-weight: 500; color: var(--deck-muted); font-size: .78rem; }
.cta-band .opts svg { width: 18px; height: 18px; color: var(--amber-hi); flex-shrink: 0; }
html[dir="rtl"] .cta-band .opts svg { transform: scaleX(-1); }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }

/* Footer */
footer.site { background: var(--deck); color: var(--deck-muted); padding-block: 64px 28px; font-size: .88rem; border-top: 3px solid var(--gold); }
footer.site .cols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
@media (max-width: 1000px) { footer.site .cols { grid-template-columns: repeat(2, minmax(0,1fr)); } footer.site .cols > :first-child { grid-column: 1 / -1; } }
footer.site h4 { color: var(--deck-fg); font-size: .78rem; font-family: var(--f-mono); letter-spacing: .14em; text-transform: uppercase; font-weight: 500; margin-bottom: 14px; }
html[lang="ar"] footer.site h4 { letter-spacing: 0; font-family: var(--f-ar); font-size: .9rem; }
footer.site ul { list-style: none; display: grid; gap: 8px; }
footer.site a { color: var(--deck-muted); text-decoration: none; }
footer.site a:hover { color: var(--deck-fg); }
footer.site .contact { display: grid; gap: 6px; margin-top: 18px; }
footer.site .contact span { display: flex; gap: 8px; align-items: center; color: var(--deck-fg); user-select: all; }
footer.site .contact svg { width: 15px; height: 15px; color: var(--gold); flex-shrink: 0; }
.news { display: flex; gap: 8px; margin-top: 18px; max-width: 380px; }
.news input { flex: 1; min-width: 0; background: rgba(255,255,255,.04); border: 1px solid var(--deck-line); color: var(--deck-fg); border-radius: var(--r-s); padding: .7em .9em; font: inherit; font-size: .88rem; }
.legal-strip { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--deck-line); display: grid; gap: 14px; font-size: .76rem; }
.legal-strip .ents { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
@media (max-width: 900px) { .legal-strip .ents { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px) { .legal-strip .ents { grid-template-columns: 1fr; } }
.legal-strip .ents b { color: var(--deck-fg); display: block; font-weight: 600; }
.legal-strip .bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.legal-strip .bottom nav { display: flex; gap: 16px; flex-wrap: wrap; }

/* Cookie banner + modal */
.cookie {
  position: fixed; z-index: 90; inset-inline: max(12px, env(safe-area-inset-left, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  max-width: 560px; background: var(--deck-2); color: var(--deck-fg); border: 1px solid var(--deck-line); border-radius: var(--r-l);
  padding: 20px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); display: grid; gap: 14px;
}
html[dir="rtl"] .cookie { inset-inline: max(12px, env(safe-area-inset-right, 0px)); }
.cookie h3 { font-size: 1rem; }
.cookie p { font-size: .84rem; color: var(--deck-muted); }
.cookie .btn { color: var(--deck-fg); }
.cookie .btn.primary { color: #1a0e02; }
.cookie .prefs { display: grid; gap: 10px; border-top: 1px solid var(--deck-line); padding-top: 12px; }
.cookie .pref { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; font-size: .84rem; }
.cookie .pref small { display: block; color: var(--deck-muted); font-size: .76rem; }
.switch { position: relative; width: 40px; height: 22px; flex-shrink: 0; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: rgba(255,255,255,.14); border-radius: 99px; transition: background .2s; }
.switch span::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 99px; background: #fff; top: 3px; inset-inline-start: 3px; transition: transform .2s; }
.switch input:checked + span { background: var(--amber); }
.switch input:checked + span::after { transform: translateX(18px); }
html[dir="rtl"] .switch input:checked + span::after { transform: translateX(-18px); }
.switch input:disabled + span { opacity: .6; }
.switch input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 95; background: rgba(3,9,18,.7); display: none; align-items: center; justify-content: center; padding: 16px; backdrop-filter: blur(4px); }
.modal[data-open="true"] { display: flex; animation: fade .2s; }
.modal .box { background: var(--surface); color: var(--fg); border-radius: var(--r-l); max-width: 860px; width: 100%; max-height: 90vh; overflow: auto; border: 1px solid var(--line); }
.modal .mh { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding: 20px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.modal .mb { padding: 22px; display: grid; gap: 18px; }
.close { background: none; border: 1px solid var(--line-strong); width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; flex-shrink: 0; }
.close svg { width: 16px; height: 16px; }

.toast { position: fixed; z-index: 99; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%) translateY(30px); background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: var(--r-s); font-size: .88rem; font-weight: 600; opacity: 0; transition: .3s var(--ease); pointer-events: none; }
.toast[data-show="true"] { opacity: 1; transform: translateX(-50%); }

/* Reveal (visible at rest; animates only when JS marks it) */
.rv { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.pre { transform: translateY(18px); }
main:focus { outline: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .rv.pre { transform: none; }
}
@media print { .topbar, .utility, footer.site, .cookie, .compare-bar { display: none; } }
