/* OWSAL — Turning Cameras into Intelligence */
:root {
  --bg: #05080d;
  --bg-2: #080d15;
  --bg-3: #0c131e;
  --panel: rgba(255, 255, 255, 0.025);
  --panel-2: rgba(255, 255, 255, 0.045);
  --line: rgba(160, 196, 255, 0.11);
  --line-2: rgba(160, 196, 255, 0.2);
  --text: #e9eef5;
  --muted: #95a3b6;
  --dim: #66748a;
  --accent: #2ee6b6;
  --accent-ink: #032019;
  --accent-soft: rgba(46, 230, 182, 0.12);
  --blue: #5aa9ff;
  --amber: #ffb547;
  --red: #ff5d6c;
  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1200px;
  --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}
:lang(ar) { --font: 'IBM Plex Sans Arabic', 'IBM Plex Sans', system-ui, 'Segoe UI', Tahoma, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
:lang(ar) body, body:lang(ar) { line-height: 1.85; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; margin: 0; font-weight: 700; letter-spacing: -0.02em; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sr { 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(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; color: var(--accent-ink); }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }
.center { text-align: center; }
.muted { color: var(--muted); }

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s;
  white-space: nowrap; cursor: pointer; font-family: inherit;
}
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 0 rgba(46, 230, 182, 0.5), 0 10px 30px -10px rgba(46, 230, 182, 0.6); }
.btn-primary:hover { color: var(--accent-ink); transform: translateY(-2px); box-shadow: 0 0 0 6px rgba(46, 230, 182, 0.12), 0 16px 40px -12px rgba(46, 230, 182, 0.75); }
.btn-primary:hover .ico-arrow { transform: translateX(4px); }
[dir='rtl'] .btn-primary:hover .ico-arrow { transform: scaleX(-1) translateX(4px); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(5, 8, 13, 0.78); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { color: var(--text); }
.logo-mark { width: 34px; height: 34px; color: var(--text); }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name b { font-family: var(--mono); font-weight: 500; letter-spacing: 0.22em; font-size: 15px; }
.brand-name span { font-family: 'IBM Plex Sans Arabic', var(--font); font-size: 12px; color: var(--muted); }
.main-nav { display: flex; gap: 4px; margin-inline-start: auto; }
.main-nav a { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-size: 15px; font-weight: 500; transition: color 0.2s, background 0.2s; }
.main-nav a:hover, .main-nav a[aria-current='page'] { color: var(--text); background: var(--panel-2); }
.main-nav .nav-contact { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { font-size: 14px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text); font-weight: 500; }
.lang-switch:lang(ar) { font-family: 'IBM Plex Sans Arabic', sans-serif; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; position: relative; }
.nav-toggle .burger, .nav-toggle .burger::before, .nav-toggle .burger::after { position: absolute; left: 50%; width: 18px; height: 1.6px; background: currentColor; border-radius: 2px; transform: translateX(-50%); transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-toggle .burger { top: 50%; }
.nav-toggle .burger::before { content: ''; top: -6px; }
.nav-toggle .burger::after { content: ''; top: 6px; }
.nav-open .nav-toggle .burger { background: transparent; }
.nav-open .nav-toggle .burger::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.nav-open .nav-toggle .burger::after { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

.lang-banner { position: fixed; inset-inline: 16px; bottom: 16px; z-index: 60; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; max-width: 520px; margin-inline: auto; padding: 12px 14px 12px 18px; border-radius: 14px; background: rgba(12, 19, 30, 0.95); border: 1px solid var(--line-2); box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.8); font-size: 14px; backdrop-filter: blur(10px); }
.lang-banner[hidden] { display: none; }
.lang-banner a { color: var(--accent); font-weight: 600; }
.lang-banner-close { margin-inline-start: auto; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px; }
.lang-banner-close .ico { width: 18px; height: 18px; }

/* ---------- breadcrumbs ---------- */
.crumbs { padding-top: 18px; font-size: 14px; color: var(--dim); position: relative; z-index: 2; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: '/'; margin-inline-end: 6px; color: var(--dim); }
.crumbs a { color: var(--muted); }

/* ---------- hero ---------- */
.hero, .page-hero { position: relative; isolation: isolate; }
.hero { padding: 48px 0 40px; margin-top: -72px; padding-top: 140px; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(60% 60% at 75% 20%, rgba(46, 230, 182, 0.14), transparent 60%),
    radial-gradient(50% 50% at 15% 10%, rgba(90, 169, 255, 0.12), transparent 60%);
}
[dir='rtl'] .hero-bg { transform: scaleX(-1); }
.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
  opacity: 0.55;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); color: var(--muted); font-size: 14px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(46, 230, 182, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(46, 230, 182, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 230, 182, 0); } }
.hero h1 { font-size: clamp(42px, 6.4vw, 84px); margin: 22px 0 22px; letter-spacing: -0.035em; line-height: 1.02; }
:lang(ar) .hero h1 { line-height: 1.2; letter-spacing: 0; }
.hero h1 em, .page-hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--accent), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 60ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; color: var(--muted); font-size: 14px; }
.chips li { display: inline-flex; gap: 8px; align-items: center; }
.chips .ico { width: 18px; height: 18px; color: var(--accent); }

/* live feed */
.feed { margin: 0; border-radius: 22px; border: 1px solid var(--line-2); background: linear-gradient(180deg, #0a111b, #070b12); box-shadow: 0 40px 120px -40px rgba(46, 230, 182, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.02) inset; overflow: hidden; }
.feed-top { display: flex; align-items: center; gap: 14px; padding: 12px 16px; font-family: var(--mono); font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); letter-spacing: 0.04em; }
.feed-top .rec { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-weight: 500; }
.feed-top .rec i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
.feed-cam { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-clock { font-variant-numeric: tabular-nums; }
.feed-screen { position: relative; aspect-ratio: 16 / 10.5; }
.feed-screen canvas { width: 100%; height: 100%; }
.feed-screen::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 3px); }
.feed-badge { position: absolute; top: 10px; inset-inline-end: 10px; font-size: 11px; padding: 3px 9px; border-radius: 999px; background: rgba(5, 8, 13, 0.7); border: 1px solid var(--line-2); color: var(--muted); }
.feed-log { position: absolute; bottom: 10px; inset-inline-start: 10px; display: flex; flex-direction: column; gap: 5px; max-width: 70%; }
.feed-log li { font-size: 12px; padding: 4px 10px; border-radius: 8px; background: rgba(5, 8, 13, 0.78); border: 1px solid var(--line-2); color: var(--text); display: flex; gap: 8px; align-items: center; animation: logIn 0.5s var(--ease); }
.feed-log li time { font-family: var(--mono); color: var(--dim); font-size: 11px; }
.feed-log li.alert { border-color: rgba(255, 93, 108, 0.55); color: #ffc2c8; }
.feed-log li.ok { border-color: rgba(90, 169, 255, 0.45); }
@keyframes logIn { from { opacity: 0; transform: translateY(8px); } }
.feed-hud { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.feed-hud > div { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.feed-hud > div + div { border-inline-start: 1px solid var(--line); }
.feed-hud span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-hud b { font-family: var(--mono); font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--text); direction: ltr; text-align: start; }
.feed-hud .hud-alert b { color: var(--amber); }
.feed-hud b.bump { animation: bump 0.5s var(--ease); }
@keyframes bump { 30% { color: var(--accent); transform: translateY(-2px); } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 64px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.stats li { padding: 22px 24px; display: flex; flex-direction: column; gap: 4px; }
.stats li + li { border-inline-start: 1px solid var(--line); }
.stats b { font-family: var(--mono); font-weight: 500; font-size: 30px; line-height: 1.1; color: var(--accent); text-align: start; }
[dir='rtl'] .stats b { text-align: right; }
.stats li > span { color: var(--muted); font-size: 14px; }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.sec-head { max-width: 760px; margin-bottom: 48px; }
.kicker { font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 10px; }
:lang(ar) .kicker { font-family: var(--font); letter-spacing: 0; font-size: 14px; font-weight: 600; }
.kicker::before { content: ''; width: 18px; height: 1px; background: currentColor; }
.sec-head h2, .vision h2, .cta-card h2 { font-size: clamp(30px, 4vw, 50px); }
.sec-lead { margin-top: 18px; color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); }
.sec-head h2 a:hover { color: var(--accent); }

.what { background: linear-gradient(180deg, transparent, var(--bg-2)); }
.what-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.what .sec-head { margin-bottom: 22px; }
.what-p { font-size: clamp(17px, 1.5vw, 20px); color: #cdd6e2; }
.facts { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.facts div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 14px 20px; }
.facts div + div { border-top: 1px solid var(--line); }
.facts dt { color: var(--dim); font-size: 14px; }
.facts dd { margin: 0; font-size: 15px; }

.problem-grid, .model-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.config-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.problem-card, .model-card { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); transition: border-color 0.3s, transform 0.3s var(--ease); }
.problem-card:hover, .model-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.num { font-family: var(--mono); font-size: 13px; color: var(--accent); display: block; margin-bottom: 18px; }
.problem-card h3, .model-card h3 { font-size: 20px; margin-bottom: 10px; }
.problem-card p, .model-card p { color: var(--muted); font-size: 15.5px; }

/* pipeline */
.engine { background: var(--bg-2); border-block: 1px solid var(--line); }
.pipeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; counter-reset: p; }
.pipeline::before { content: ''; position: absolute; top: 26px; inset-inline: 10%; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), var(--blue), transparent); background-size: 200% 100%; animation: flow 4s linear infinite; opacity: 0.6; }
@keyframes flow { to { background-position: -200% 0; } }
.pipeline li { position: relative; padding: 0 16px; text-align: center; }
.pipe-n { position: relative; display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 16px; background: var(--bg-3); border: 1px solid var(--line-2); font-family: var(--mono); color: var(--accent); font-size: 15px; box-shadow: 0 0 0 6px var(--bg-2); }
.pipeline h3 { font-size: 17px; margin-bottom: 6px; }
.pipeline p { color: var(--muted); font-size: 14.5px; }

/* capability cards */
.caps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.caps-grid.three, .caps-grid.uc { grid-template-columns: repeat(3, 1fr); }
.deploy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cap { position: relative; padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); overflow: hidden; transition: border-color 0.3s, transform 0.3s var(--ease), background 0.3s; }
.cap::before { content: ''; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(46, 230, 182, 0.1), transparent 40%); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.cap:hover { border-color: rgba(46, 230, 182, 0.35); transform: translateY(-3px); }
.cap:hover::before { opacity: 1; }
.cap-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.cap h3 { font-size: 18px; margin-bottom: 4px; }
.cap-en { font-family: var(--mono); font-size: 12px; color: var(--dim); margin-bottom: 10px; letter-spacing: 0.03em; }
.cap p:not(.cap-en) { color: var(--muted); font-size: 15px; }

/* sector cards */
.sector-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.sector-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px; min-height: 230px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(160deg, var(--panel-2), transparent 60%); transition: border-color 0.3s, transform 0.3s var(--ease); }
.sector-card::after { content: ''; position: absolute; inset: 10px; border-radius: 12px; pointer-events: none; opacity: 0; transition: opacity 0.3s, inset 0.4s var(--ease);
  background:
    linear-gradient(var(--accent), var(--accent)) top left / 14px 2px no-repeat, linear-gradient(var(--accent), var(--accent)) top left / 2px 14px no-repeat,
    linear-gradient(var(--accent), var(--accent)) top right / 14px 2px no-repeat, linear-gradient(var(--accent), var(--accent)) top right / 2px 14px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom left / 14px 2px no-repeat, linear-gradient(var(--accent), var(--accent)) bottom left / 2px 14px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom right / 14px 2px no-repeat, linear-gradient(var(--accent), var(--accent)) bottom right / 2px 14px no-repeat; }
.sector-card:hover { color: var(--text); border-color: var(--line-2); transform: translateY(-4px); }
.sector-card:hover::after { opacity: 1; inset: 6px; }
.sector-ico { color: var(--accent); }
.sector-ico .ico { width: 32px; height: 32px; }
.sector-card h3 { font-size: 19px; margin-top: 6px; }
.sector-card p { color: var(--muted); font-size: 15px; flex: 1; }
.sector-card .more { display: inline-flex; gap: 8px; align-items: center; color: var(--accent); font-size: 14px; font-weight: 600; }

/* showcase dashboard */
.showcase-grid, .privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.ticks { display: grid; gap: 12px; }
.ticks li, .scope-col li, .chips li { line-height: 1.5; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: #cdd6e2; }
.ticks .ico { color: var(--accent); margin-top: 2px; width: 20px; height: 20px; }
.dash { padding: 24px; border-radius: 22px; border: 1px solid var(--line-2); background: linear-gradient(180deg, #0b121d, #070b12); box-shadow: 0 40px 100px -50px rgba(90, 169, 255, 0.35); }
.dash-top { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.dash-top em { font-style: normal; font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--dim); white-space: nowrap; height: fit-content; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0 26px; }
.dash-kpis div { padding: 14px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.dash-kpis b { font-family: var(--mono); font-weight: 500; font-size: 24px; }
.dash-kpis span { font-size: 12.5px; color: var(--muted); }
.dash-kpis div:first-child b { color: var(--accent); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 190px; padding-bottom: 22px; border-bottom: 1px solid var(--line); position: relative; }
.bar { flex: 1; height: var(--h); background: linear-gradient(180deg, rgba(90, 169, 255, 0.9), rgba(90, 169, 255, 0.15)); border-radius: 6px 6px 2px 2px; position: relative; transform-origin: bottom; transform: scaleY(0); transition: transform 1s var(--ease); }
.bar i { position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%); font-style: normal; font-family: var(--mono); font-size: 10px; color: var(--dim); }
.bar.peak { background: linear-gradient(180deg, var(--accent), rgba(46, 230, 182, 0.15)); box-shadow: 0 0 24px rgba(46, 230, 182, 0.35); }
.dash.in .bar { transform: scaleY(1); }
.dash.in .bar:nth-child(n) { transition-delay: calc(var(--d, 0) * 1ms); }

/* process */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; }
.steps li { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); position: relative; }
.step-n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); font-family: var(--mono); font-size: 14px; margin-bottom: 16px; }
.steps h3 { font-size: 18px; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15px; }
.steps.mini { grid-template-columns: 1fr; gap: 12px; }
.steps.mini li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; }
.steps.mini .step-n { margin: 0; flex: none; }

/* privacy band */
.privacy-band { background: var(--bg-2); border-block: 1px solid var(--line); }
.shield-list { display: grid; gap: 12px; }
.shield-list li { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); font-weight: 500; }
.shield-list .ico { color: var(--accent); width: 26px; height: 26px; }

/* scope */
.scope-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.scope-col { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.scope-col h3 { font-size: 18px; margin-bottom: 18px; }
.scope-col ul { display: grid; gap: 12px; }
.scope-col li { display: flex; gap: 12px; align-items: flex-start; color: #cdd6e2; }
.scope-col .ico { width: 20px; height: 20px; margin-top: 2px; }
.scope-col.yes { border-color: rgba(46, 230, 182, 0.25); }
.scope-col.yes .ico { color: var(--accent); }
.scope-col.no { border-color: rgba(255, 181, 71, 0.25); }
.scope-col.no .ico { color: var(--amber); }
.note { margin-top: 20px; color: var(--muted); font-size: 15px; max-width: 80ch; }

/* roadmap */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.timeline li { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); position: relative; }
.timeline li::before { content: ''; position: absolute; top: -1px; inset-inline: 26px; height: 2px; background: var(--line-2); }
.timeline li.current { border-color: rgba(46, 230, 182, 0.4); background: linear-gradient(180deg, rgba(46, 230, 182, 0.08), transparent); }
.timeline li.current::before { background: var(--accent); box-shadow: 0 0 16px var(--accent); }
.tl-tag { font-family: var(--mono); font-size: 12px; color: var(--dim); display: block; margin-bottom: 14px; }
:lang(ar) .tl-tag { font-family: var(--font); font-size: 13px; }
.tl-tag b { color: var(--accent); font-weight: 600; }
.timeline h3 { font-size: 19px; margin-bottom: 8px; }
.timeline p { color: var(--muted); font-size: 15px; }

/* vision */
.vision-inner { text-align: center; max-width: 900px; padding: clamp(40px, 6vw, 72px); border-radius: 28px; border: 1px solid var(--line); background: radial-gradient(80% 120% at 50% 0%, rgba(46, 230, 182, 0.1), transparent 60%), var(--panel); }
.vision-inner .kicker::before { display: none; }
.vision-inner p:not(.kicker) { margin-top: 18px; color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); }

/* faq */
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); transition: border-color 0.3s; }
.faq-item[open] { border-color: var(--line-2); background: var(--panel-2); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 18px 22px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item h3 { font-size: 17px; font-weight: 600; }
.faq-ico { width: 22px; height: 22px; flex: none; position: relative; border-radius: 50%; border: 1px solid var(--line-2); }
.faq-ico::before, .faq-ico::after { content: ''; position: absolute; left: 50%; top: 50%; width: 9px; height: 1.5px; background: var(--accent); transform: translate(-50%, -50%); transition: transform 0.3s var(--ease); }
.faq-ico::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-ico::after { transform: translate(-50%, -50%) rotate(0); }
.faq-a { padding: 0 22px 20px; color: var(--muted); }
.faq-sector { padding-top: 0; }
.faq-sector .sec-head { margin-bottom: 20px; }
.faq-sector .sec-head h2 { font-size: 24px; }
.faq .center { margin-top: 28px; }

/* cta */
.cta-card { position: relative; overflow: hidden; text-align: center; padding: clamp(48px, 7vw, 88px) 24px; border-radius: 28px; border: 1px solid rgba(46, 230, 182, 0.3); background: radial-gradient(60% 100% at 50% 100%, rgba(46, 230, 182, 0.18), transparent 70%), var(--bg-3); }
.cta-card p { color: var(--muted); margin: 16px auto 30px; max-width: 56ch; font-size: 18px; }
.cta-scan { position: absolute; inset-inline: 0; top: 0; height: 120px; background: linear-gradient(180deg, rgba(46, 230, 182, 0.18), transparent); animation: scan 5s var(--ease) infinite; pointer-events: none; }
@keyframes scan { 0% { transform: translateY(-120px); } 60%, 100% { transform: translateY(520px); } }

/* page hero */
.page-hero { padding: clamp(56px, 8vw, 100px) 0 clamp(40px, 6vw, 72px); }
.page-hero h1 { font-size: clamp(36px, 5.2vw, 66px); max-width: 20ch; margin-bottom: 20px; }
.center-hero { text-align: center; min-height: 60vh; display: grid; place-items: center; }
.center-hero h1, .center-hero .lead { margin-inline: auto; }
.center-hero .actions { justify-content: center; }
.big-check { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.big-check .ico { width: 36px; height: 36px; }
.code-404 { font-family: var(--mono); font-size: 64px; color: var(--accent); margin-bottom: 12px; }
.code-404 span { color: var(--dim); }
.code-404 small { display: block; font-size: 13px; color: var(--dim); }

/* sector page */
.sector-hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.sector-visual { position: relative; aspect-ratio: 1; max-width: 380px; width: 100%; justify-self: center; border-radius: 28px; background: radial-gradient(circle at 50% 40%, rgba(46, 230, 182, 0.14), transparent 65%), var(--panel); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.sector-big { width: 46%; height: 46%; color: var(--accent); stroke-width: 1.1; filter: drop-shadow(0 0 30px rgba(46, 230, 182, 0.4)); }
.corner { position: absolute; width: 34px; height: 34px; border-color: var(--accent); border-style: solid; border-width: 0; animation: breathe 3s var(--ease) infinite; }
.corner.tl { top: 18%; left: 18%; border-top-width: 2px; border-left-width: 2px; }
.corner.tr { top: 18%; right: 18%; border-top-width: 2px; border-right-width: 2px; }
.corner.bl { bottom: 18%; left: 18%; border-bottom-width: 2px; border-left-width: 2px; }
.corner.br { bottom: 18%; right: 18%; border-bottom-width: 2px; border-right-width: 2px; }
@keyframes breathe { 50% { transform: scale(0.88); opacity: 0.7; } }
.scanline { position: absolute; inset-inline: 0; height: 2px; top: 0; background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: scanY 3.5s linear infinite; opacity: 0.7; }
@keyframes scanY { to { top: 100%; } }
.sector-visual .tag { position: absolute; top: calc(18% - 26px); left: 18%; font-family: var(--mono); font-size: 11px; background: var(--accent); color: var(--accent-ink); padding: 2px 8px; border-radius: 4px; }
.two-col { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.challenge-list { display: grid; gap: 12px; }
.challenge-list li { padding: 18px 22px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); border-inline-start: 3px solid var(--amber); color: #cdd6e2; }
.kpi-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.kpi-chips li { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); }
.kpi-chips .ico { color: var(--accent); width: 18px; height: 18px; }

/* platform layers */
.layers { display: grid; gap: 14px; }
.layer { display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding: 26px 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); transition: border-color 0.3s; }
.layer:hover { border-color: rgba(46, 230, 182, 0.35); }
.layer-n { font-family: var(--mono); font-size: 30px; color: var(--accent); line-height: 1; }
.layer h3 { font-size: 20px; margin-bottom: 10px; }
.layer ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 20px; }
.layer li { color: var(--muted); font-size: 15px; padding-inline-start: 16px; position: relative; }
.layer li::before { content: ''; position: absolute; inset-inline-start: 0; top: 0.75em; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); opacity: 0.7; }

/* table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { padding: 16px 20px; text-align: start; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
thead th { color: var(--accent); font-weight: 600; }
tbody th { color: var(--muted); font-weight: 500; }
tbody tr:last-child > * { border-bottom: 0; }

/* about */
.prose p { font-size: 18px; color: #cdd6e2; }
.prose p + p { margin-top: 20px; }
.prose h2 { font-size: 24px; margin: 36px 0 12px; }
.prose h2 + p { margin-top: 0; }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mv { padding: 34px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.mv p:not(.kicker) { font-size: 19px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
.contact-form { display: grid; gap: 18px; padding: clamp(22px, 4vw, 36px); border-radius: 22px; border: 1px solid var(--line-2); background: var(--panel); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: grid; gap: 8px; font-size: 14px; color: var(--muted); font-weight: 500; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text); background: rgba(5, 8, 13, 0.6);
  border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; transition: border-color 0.2s, box-shadow 0.2s;
}
:lang(ar) .contact-form input[dir='ltr'] { text-align: right; }
.contact-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-inline-end: 36px; }
[dir='rtl'] .contact-form select { background-position: 20px 50%, 15px 50%; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.contact-form .check { display: flex; gap: 10px; align-items: center; color: var(--text); }
.contact-form .check input { width: 18px; height: 18px; accent-color: var(--accent); }
.contact-form button { justify-self: start; }
.consent { font-size: 13px; color: var(--dim); }
.consent a { color: var(--muted); text-decoration: underline; }
.hp { position: absolute; left: -9999px; }
.contact-aside { padding: 8px 0; }
.contact-aside h2 { font-size: 22px; margin-bottom: 18px; }
.direct { margin-top: 24px; color: var(--muted); }
.direct a { color: var(--accent); font-weight: 600; font-size: 18px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 64px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-brand p { color: var(--muted); font-size: 15px; margin-top: 16px; max-width: 46ch; }
.footer-brand .tagline { font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: 0.04em; }
.footer-h { font-size: 14px; color: var(--dim); font-weight: 600; margin-bottom: 14px; }
.site-footer ul { display: grid; gap: 8px; }
.site-footer li a { color: var(--muted); font-size: 15px; }
.site-footer li a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--dim); }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* how it works (3 steps) */
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; position: relative; }
.how-steps li { padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(160deg, var(--panel-2), transparent 70%); position: relative; }
.how-steps li:not(:last-child)::after { content: ''; position: absolute; top: 52px; inset-inline-end: -18px; width: 18px; height: 2px; background: linear-gradient(90deg, var(--accent), var(--blue)); }
.how-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--accent); color: var(--accent-ink); font-family: var(--mono); font-weight: 600; font-size: 18px; margin-bottom: 18px; }
.how-steps h3 { font-size: 21px; margin-bottom: 8px; }
.how-steps p { color: var(--muted); }

/* questions */
.questions { background: var(--bg-2); border-block: 1px solid var(--line); }
.q-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.q-card { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); transition: border-color 0.3s, transform 0.3s var(--ease); }
.q-card:hover { border-color: rgba(46, 230, 182, 0.35); transform: translateY(-3px); }
.q-card h3 { font-size: 19px; line-height: 1.45; margin-bottom: 12px; }
.q-card p { display: flex; gap: 8px; align-items: center; color: var(--accent); font-size: 15px; font-weight: 500; }

/* comparison */
.compare-table table { min-width: 560px; }
.compare-table thead th { font-size: 16px; color: var(--muted); }
.compare-table thead th.us { color: var(--accent); }
.compare-table td { color: var(--muted); }
.compare-table td .ico { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; margin-inline-end: 8px; color: var(--dim); }
.compare-table td.us { color: var(--text); background: rgba(46, 230, 182, 0.05); font-weight: 500; }
.compare-table td.us .ico { color: var(--accent); }

/* in short / answer box */
.in-short-sec { padding-bottom: 0; }
.in-short { padding: 26px 30px; border-radius: var(--radius); border: 1px solid rgba(46, 230, 182, 0.3); border-inline-start: 4px solid var(--accent); background: rgba(46, 230, 182, 0.05); }
.in-short .kicker { margin-bottom: 8px; }
.in-short .kicker::before { display: none; }
.in-short-p { font-size: clamp(17px, 1.5vw, 20px); color: var(--text); }

/* guide */
.guide-grid { display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: start; }
.toc { position: sticky; top: 96px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.toc-t { font-size: 13px; color: var(--dim); font-weight: 600; margin-bottom: 10px; }
.toc ol { display: grid; gap: 4px; counter-reset: t; }
.toc a { display: block; font-size: 14px; color: var(--muted); padding: 5px 0; line-height: 1.5; }
.toc a:hover { color: var(--accent); }
.guide-body { max-width: 760px; }
.g-sec { padding-top: 40px; }
.g-sec h2 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 14px; }
.g-sec p { color: #cdd6e2; font-size: 17px; }
.g-sec p + p { margin-top: 12px; }
.glossary { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.glossary div { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.glossary dt { font-family: var(--mono); font-size: 14px; color: var(--accent); margin-bottom: 4px; text-align: start; }
.glossary dd { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 112px; }
  .caps-grid, .q-grid { grid-template-columns: repeat(2, 1fr); }
  .pipeline { grid-template-columns: 1fr; gap: 14px; }
  .pipeline::before { display: none; }
  .pipeline li { display: grid; grid-template-columns: 54px 1fr; column-gap: 18px; text-align: start; padding: 0; }
  .pipe-n { grid-row: span 2; margin: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .timeline, .config-grid { grid-template-columns: repeat(2, 1fr); }
  .layer ul { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .main-nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 2px; padding: 16px 20px 24px; background: rgba(5, 8, 13, 0.97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0.3s; margin: 0; }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .main-nav a { padding: 14px 12px; font-size: 17px; }
  .main-nav .nav-contact { display: block; color: var(--accent); }
  .nav-toggle { display: block; }
  .header-actions { margin-inline-start: auto; }
  .header-cta { display: none; }
  .what-grid, .showcase-grid, .privacy-grid, .two-col, .sector-hero-grid, .contact-grid, .mv-grid { grid-template-columns: 1fr; gap: 36px; }
  .how-steps, .q-grid, .guide-grid, .glossary { grid-template-columns: 1fr; }
  .how-steps li::after { display: none; }
  .toc { position: static; }
  .problem-grid, .model-grid, .caps-grid.three, .caps-grid.uc, .deploy-grid, .scope-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(3) { border-inline-start: 0; }
  .stats li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .sector-visual { max-width: 260px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap, .narrow { width: calc(100% - 32px); }
  .hero h1 { font-size: clamp(38px, 11vw, 52px); }
  .caps-grid, .steps, .timeline, .config-grid { grid-template-columns: 1fr; }
  .feed-hud { grid-template-columns: repeat(3, 1fr); }
  .feed-hud > div:nth-child(4) { border-inline-start: 0; }
  .feed-hud > div:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .feed-hud b { font-size: 18px; }
  .feed-log { max-width: 88%; }
  .feed-cam { display: none; }
  .feed-screen { aspect-ratio: 4 / 3.6; }
  .stats b { font-size: 30px; }
  .stats li { padding: 18px; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .row2 { grid-template-columns: 1fr; }
  .layer { grid-template-columns: 1fr; gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-name span { display: none; }
  .lang-switch { padding: 7px 10px; }
  .dash-kpis b { font-size: 18px; }
  .bars { gap: 3px; height: 150px; }
  .bar i { font-size: 8px; }
  .actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .bar { transform: none; }
}
@media print {
  .site-header, .lang-banner, .feed, .cta-band { display: none; }
  body { background: #fff; color: #000; }
}
