/* =========================================================
   RioSoft — corporate site styles
   Tokens → base → layout → components → sections → RTL/responsive
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --brand: #f5891f;          /* logo orange */
  --brand-2: #ffa94d;
  --brand-ink: #1a1206;
  --charcoal: #3d4046;       /* logo grey */

  --font-latin: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", var(--font-latin);
  --font-arabic: "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-arabic-display: "Noto Kufi Arabic", var(--font-arabic);
  --font: var(--font-latin);
  --font-head: var(--font-display);

  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --container: 1360px;
  --header-h: 72px;
}

:root, :root[data-theme="dark"] {
  --bg: #0d0f12;
  --bg-alt: #111419;
  --surface: #161a20;
  --surface-2: #1c2129;
  --line: #262c35;
  --text: #eef1f5;
  --muted: #9aa3b0;
  --shadow: 0 20px 50px -20px rgba(0,0,0,.6);
  --glow: rgba(245,137,31,.18);
  --grid: rgba(255,255,255,.035);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f7f8fa;
  --bg-alt: #eef1f5;
  --surface: #ffffff;
  --surface-2: #f3f5f8;
  --line: #e1e5eb;
  --text: #15181d;
  --muted: #5a6370;
  --shadow: 0 20px 50px -24px rgba(20,30,50,.25);
  --glow: rgba(245,137,31,.14);
  --grid: rgba(20,30,50,.05);
  color-scheme: light;
}

:root[dir="rtl"] {
  --font: var(--font-arabic);
  --font-head: var(--font-arabic-display);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background-color .3s, color .3s;
}
:root[dir="rtl"] body { line-height: 1.85; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
:root[dir="rtl"] h1, :root[dir="rtl"] h2, :root[dir="rtl"] h3 { letter-spacing: 0; line-height: 1.45; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.7rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--muted); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
[data-lucide], .lucide { width: 20px; height: 20px; stroke-width: 1.8; flex-shrink: 0; }
:root[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--brand); color: var(--brand-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { inset-inline-start: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.4em; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: var(--brand-ink); box-shadow: 0 10px 30px -10px var(--brand); }
.btn--primary:hover { box-shadow: 0 16px 40px -12px var(--brand); }
.btn--ghost { border-color: var(--line); background: var(--surface); }
.btn--ghost:hover { border-color: var(--brand); }
.btn--sm { padding: .55em 1.1em; font-size: .9rem; }
.btn--block { width: 100%; }
.icon-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; min-width: 40px; padding: 0 10px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  justify-content: center; font-size: .85rem; font-weight: 600; transition: border-color .2s;
}
.icon-btn:hover { border-color: var(--brand); }
.icon-btn [data-lucide], .icon-btn .lucide { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; height: var(--header-h); z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px) saturate(160%); border-color: var(--line); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 34px; height: auto; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -.02em; }
.brand__name span { color: var(--brand); }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { padding: 8px 14px; border-radius: 999px; font-size: .93rem; font-weight: 500; color: var(--muted); transition: color .2s, background .2s; }
.nav a:hover, .nav a.is-active { color: var(--text); background: var(--surface); }
.header__tools { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; }

.lang { position: relative; }
.lang__menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; list-style: none; margin: 0; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  min-width: 150px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .2s var(--ease);
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: none; }
.lang__menu button { width: 100%; text-align: start; padding: 9px 12px; border: 0; background: none; border-radius: 8px; cursor: pointer; }
.lang__menu button:hover, .lang__menu button[aria-current="true"] { background: var(--surface-2); color: var(--brand); }
.lang__menu [lang="ckb"], .lang__menu [lang="ar"] { font-family: var(--font-arabic); }

:root[data-theme="dark"] .i-sun, :root:not([data-theme="dark"]) .i-moon { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--header-h) + 64px) 0 80px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 760px; height: 760px; top: -260px; inset-inline-end: -200px;
  background: radial-gradient(circle, var(--glow), transparent 65%); pointer-events: none;
}
.hero__grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); font-size: .85rem; font-weight: 500; color: var(--muted); margin-bottom: 22px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--glow); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px transparent; } }
.hero h1 { max-width: 16ch; }
:root[dir="rtl"] .hero h1 { max-width: 20ch; }
.lead { font-size: 1.12rem; max-width: 56ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 44px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding-top: 28px; border-top: 1px solid var(--line); }
.stats div { margin: 0; }
.stats dt { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--text); }
.stats dt::after { content: "+"; color: var(--brand); }
.stats div:nth-child(n+2) dt::after { content: ""; }
.stats dd { margin: 0; font-size: .85rem; color: var(--muted); }

/* Console (dashboard component) */
.console { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; direction: ltr; }
.console__bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); font-size: .82rem; }
.console__title { flex: 1; color: var(--muted); font-weight: 500; }
:root[dir="rtl"] .console__title span { font-family: var(--font-arabic); }
.dots { display: flex; gap: 6px; } .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.dots i:first-child { background: #ff5f57; } .dots i:nth-child(2) { background: #febc2e; } .dots i:nth-child(3) { background: #28c840; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.pill--ok { background: rgba(40,200,100,.12); color: #34d17a; } .pill--ok .dot { background: #34d17a; width: 6px; height: 6px; box-shadow: none; }
.console__body { padding: 16px; display: grid; gap: 14px; }
.cam { display: grid; grid-template-columns: 1.25fr 1fr; gap: 14px; }
.cam__view {
  position: relative; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden;
  background:
    linear-gradient(180deg, transparent 55%, rgba(0,0,0,.5)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 2px, transparent 2px 40px),
    linear-gradient(160deg, #2a3240, #12161c 70%);
}
@keyframes track { 50% { transform: translate(6%, -10%) scale(.92); } }
.cam__scan { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent, rgba(245,137,31,.18), transparent); height: 30%; animation: scan 3s linear infinite; }
@keyframes scan { from { transform: translateY(-100%); } to { transform: translateY(340%); } }
.cam__label, .cam__rec { position: absolute; z-index: 2; font: 500 .7rem var(--font-latin); color: #fff; display: flex; align-items: center; gap: 4px; }
.cam__label { left: 10px; bottom: 8px; } .cam__label .lucide { width: 13px; height: 13px; }
.cam__rec { right: 10px; top: 8px; color: #ff6b6b; }
.reads { display: flex; flex-direction: column; gap: 8px; font-family: var(--font-latin); }
.read { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 11px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: .78rem; animation: slideIn .5s var(--ease); }
.read b { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .86rem; letter-spacing: .04em; }
.read small { color: var(--muted); }
.read em { font-style: normal; font-size: .7rem; color: #34d17a; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-8px); } }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.kpi span { display: block; font-size: .72rem; color: var(--muted); }
:root[dir="rtl"] .kpi span { font-family: var(--font-arabic); }
.kpi b { font-family: var(--font-display); font-size: 1.15rem; }
.spark { height: 22px; width: 100%; margin-top: 4px; } .spark polyline { fill: none; stroke: var(--brand); stroke-width: 2; }
.meter { height: 6px; border-radius: 6px; background: var(--line); margin-top: 12px; overflow: hidden; } .meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }

/* ---------- Strip ---------- */
.strip { border-block: 1px solid var(--line); background: var(--bg-alt); }
.strip__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 32px; padding: 22px 0; color: var(--muted); font-weight: 500; font-size: .95rem; }
.strip__inner > span { display: flex; align-items: center; gap: 10px; }
.strip .lucide { color: var(--brand); }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.kicker { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
:root[dir="rtl"] .kicker { letter-spacing: 0; font-size: .9rem; }

/* About */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
.about__media { position: relative; }
.about__logo {
  aspect-ratio: 1; border-radius: 28px; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 20%, var(--glow), transparent 60%), var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.about__logo img { width: 52%; filter: drop-shadow(0 20px 30px rgba(0,0,0,.3)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }
.about__badge {
  position: absolute; bottom: -22px; inset-inline-end: -12px; display: flex; gap: 12px; align-items: center;
  padding: 14px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.about__badge .lucide { color: var(--brand); width: 28px; height: 28px; }
.about__badge b { display: block; font-size: .95rem; } .about__badge span { font-size: .8rem; color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .lucide { color: var(--brand); width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--glow); margin-top: 2px; }

/* Service cards */
.cards { display: grid; gap: 18px; }
.cards--5 { grid-template-columns: repeat(5, 1fr); }
.card {
  position: relative; padding: 26px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; overflow: hidden;
}
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), var(--glow), transparent 40%); opacity: 0; transition: opacity .3s; }
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card > .lucide { width: 44px; height: 44px; padding: 11px; border-radius: 12px; color: var(--brand); background: var(--glow); margin-bottom: 18px; }
.card h3 { font-size: 1.02rem; }
.card p { font-size: .9rem; margin: 0; }

/* Features (expertise) */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; padding-top: 0; }
.feature--rev .feature__copy { order: 2; }
.tag { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-weight: 600; font-size: .9rem; margin-bottom: 14px; }
.feature h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.mini { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini li { padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.mini b { display: block; font-family: var(--font-latin); font-size: .9rem; } .mini span { font-size: .82rem; color: var(--muted); }
.feature__visual {
  padding: 32px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  background-image: radial-gradient(circle at 100% 0, var(--glow), transparent 50%);
}
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; direction: ltr; }
.platforms div { display: grid; place-items: center; gap: 10px; padding: 22px 8px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 600; font-size: .9rem; font-family: var(--font-latin); transition: .3s var(--ease); }
.platforms div:hover { border-color: var(--brand); transform: translateY(-3px); }
.platforms .lucide { width: 30px; height: 30px; color: var(--brand); }
.pipeline { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 26px; }
.pipe { position: relative; flex: 1; display: grid; place-items: center; gap: 8px; font-size: .78rem; font-weight: 600; text-align: center; }
.pipe .lucide { width: 48px; height: 48px; padding: 13px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); color: var(--brand); }
.pipe:not(:last-child)::after { content: ""; position: absolute; top: 24px; inset-inline-start: calc(50% + 28px); width: calc(100% - 56px); height: 2px; background: linear-gradient(90deg, var(--brand), transparent); background-size: 200% 100%; animation: flow 1.6s linear infinite; }
:root[dir="rtl"] .pipe:not(:last-child)::after { background: linear-gradient(270deg, var(--brand), transparent); }
@keyframes flow { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.models { display: flex; flex-wrap: wrap; gap: 8px; direction: ltr; }
.models span { padding: 6px 12px; border-radius: 8px; font: 500 .8rem ui-monospace, Consolas, monospace; background: var(--surface-2); border: 1px solid var(--line); }
.wall { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; direction: ltr; }
.tile { position: relative; aspect-ratio: 16/10; border-radius: 12px; padding: 10px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(160deg, #2a3240, #12161c); color: #fff; border: 1px solid #2d3441; overflow: hidden; }
.tile span { font: 600 .7rem var(--font-latin); opacity: .7; }
.tile b { align-self: flex-start; font: 700 .85rem ui-monospace, Consolas, monospace; background: #fff; color: #111; padding: 3px 8px; border-radius: 4px; border-inline-start: 6px solid #1c64d8; }
.tile--alert { border-color: #ff5f57; box-shadow: inset 0 0 0 1px #ff5f57; animation: alert 1.6s infinite; }
.tile em { position: absolute; top: 9px; right: 9px; font-style: normal; font-size: .68rem; font-weight: 700; background: #ff5f57; color: #fff; padding: 2px 8px; border-radius: 999px; }
:root[dir="rtl"] .tile em { font-family: var(--font-arabic); }
@keyframes alert { 50% { box-shadow: inset 0 0 0 1px #ff5f57, 0 0 24px rgba(255,95,87,.35); } }
.topo { width: 100%; height: auto; }
.topo .links line { stroke: var(--line); stroke-width: 2; }
.topo .nodes circle { fill: var(--surface-2); stroke: var(--brand); stroke-width: 2; }
.topo .nodes .core { fill: var(--brand); }
.topo .nodes .edge { stroke: var(--muted); }
.topo .packet { fill: var(--brand-2); filter: drop-shadow(0 0 4px var(--brand)); }

/* Projects */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 36px; }
.filter { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: .9rem; font-weight: 500; color: var(--muted); transition: .2s; }
.filter:hover { color: var(--text); border-color: var(--brand); }
.filter[aria-selected="true"] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 22px; }
.project {
  display: flex; flex-direction: column; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; animation: fadeUp .45s var(--ease) both;
}
.project:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); box-shadow: var(--shadow); }
.project--featured { grid-column: span 1; background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 10%, var(--surface)), var(--surface) 50%); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }
.project__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.project__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--glow); color: var(--brand); }
.project__icon .lucide { width: 24px; height: 24px; }
.project__cat { font-size: .75rem; font-weight: 600; color: var(--muted); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); }
.project h3 { font-size: 1.15rem; margin-bottom: 8px; }
.project p { font-size: .92rem; }
.project .chips { margin-top: auto; }
.project ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 6px; font-size: .86rem; }
.project ul li { display: flex; gap: 8px; } .project ul li::before { content: ""; flex: 0 0 6px; height: 6px; margin-top: .65em; border-radius: 50%; background: var(--brand); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; direction: ltr; justify-content: flex-start; }
:root[dir="rtl"] .chips { justify-content: flex-end; }
.chips span { font: 500 .72rem var(--font-latin); padding: 4px 9px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); }

/* Tech stack */
.stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stack__group { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.stack__group h3 { display: flex; align-items: center; gap: 10px; } .stack__group h3 .lucide { color: var(--brand); }
.stack__group ul { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stack__group li { padding: 6px 12px; border-radius: 8px; font: 500 .85rem var(--font-latin); background: var(--surface-2); border: 1px solid var(--line); transition: .2s; }
.stack__group li:hover { border-color: var(--brand); color: var(--brand); }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li { padding: 28px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); position: relative; }
.steps span { font: 700 2.4rem var(--font-display); color: transparent; -webkit-text-stroke: 1.5px var(--brand); display: block; margin-bottom: 10px; }
.steps p { margin: 0; font-size: .92rem; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact__list li { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.contact__list .lucide { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--glow); color: var(--brand); }
.contact__list span { display: block; font-size: .8rem; color: var(--muted); }
.contact__list a, .contact__list b { font-weight: 600; } .contact__list a:hover { color: var(--brand); }
:root[dir="rtl"] .contact__list a[dir="ltr"] { display: inline-block; }
.form { padding: 32px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 500; }
.form input, .form select, .form textarea { width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-2); transition: border-color .2s, box-shadow .2s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px var(--glow); }
.form .is-invalid { border-color: #ff5f57; }
.form textarea { resize: vertical; }
.form__note { font-size: .8rem; margin: 0; text-align: center; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0; background: var(--bg-alt); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer p { margin: 6px 0 0; font-size: .88rem; }
.footer nav { display: flex; gap: 20px; font-size: .9rem; color: var(--muted); } .footer nav a:hover { color: var(--brand); }
.footer__copy { font-size: .85rem; }
.fab { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 30px -8px rgba(37,211,102,.6); transition: transform .2s; }
.fab:hover { transform: scale(1.08); } .fab .lucide { width: 26px; height: 26px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .cards--5 { grid-template-columns: repeat(3, 1fr); }
  .projects, .stack { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .nav {
    position: fixed; top: var(--header-h); inset-inline: 0; flex-direction: column; gap: 2px; padding: 12px 16px 20px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .25s var(--ease);
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 12px 14px; font-size: 1rem; }
  .menu-btn { display: inline-flex; }
  .header__tools { margin-inline-start: auto; }
  .hero__inner, .about, .feature, .contact { grid-template-columns: 1fr; gap: 44px; }
  .feature--rev .feature__copy { order: 0; }
  .about__media { max-width: 420px; }
  .section { padding: 80px 0; }
}
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .hero { padding-top: calc(var(--header-h) + 36px); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cards--5, .projects, .stack, .steps, .form__row, .mini { grid-template-columns: 1fr; }
  .cam { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; } .kpi:last-child { grid-column: span 2; }
  .strip__inner { justify-content: center; }
  .feature__visual, .form { padding: 20px; }
  .pipe { font-size: .68rem; } .pipe .lucide { width: 40px; height: 40px; padding: 10px; }
  .pipe:not(:last-child)::after { top: 20px; inset-inline-start: calc(50% + 22px); width: calc(100% - 44px); }
  .about__badge { inset-inline-end: 0; }
}

/* =========================================================
   v2 — full-screen sections, system visuals, project pages, LIS
   ========================================================= */

[hidden] { display: none !important; }

/* Full-screen sections */
.screen { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.hero.screen { padding-bottom: 96px; }
.scroll-cue { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: var(--muted); animation: cue 2s ease-in-out infinite; }
.scroll-cue .lucide { width: 26px; height: 26px; }
@keyframes cue { 50% { transform: translate(-50%, 8px); opacity: .5; } }

/* Hero camera scene */
.scene { position: absolute; inset: 0; width: 100%; height: 100%; }
/* lanes: away (rear view, left lane), come (front view, right lane), cross (side view on the far street) */
.scene__away, .scene__come, .scene__cross { transform-box: view-box; transform-origin: 0 0; }
.scene__away  { animation: carAway 5s cubic-bezier(.15,.55,.45,1) infinite; }
.scene__come  { animation: carCome 4.4s cubic-bezier(.55,0,.85,.45) infinite; animation-delay: -1.8s; }
.scene__cross { animation: carCross 6.5s linear infinite; }
@keyframes carAway {
  0%   { transform: translate(112px, 292px) scale(.62); opacity: 0; }
  6%   { opacity: 1; } 88% { opacity: 1; }
  100% { transform: translate(189px, 117px) scale(.06); opacity: 0; } }
@keyframes carCome {
  0%   { transform: translate(212px, 115px) scale(.06); opacity: 0; }
  10%  { opacity: 1; } 94% { opacity: 1; }
  100% { transform: translate(300px, 300px) scale(.7); opacity: 0; } }
@keyframes carCross {
  0%   { transform: translate(-40px, 106px) scale(.6); }
  100% { transform: translate(440px, 106px) scale(.6); } }
@media (prefers-reduced-motion: reduce) {
  .scene__away { transform: translate(140px, 240px) scale(.45); }
  .scene__come { transform: translate(250px, 200px) scale(.35); }
  .scene__cross { transform: translate(300px, 106px) scale(.6); }
}
.scene__box { animation: lock 1.6s ease-in-out infinite; }

/* Live camera wall + blacklist alarm */
.wall .tile { aspect-ratio: auto; padding: 0; display: flex; flex-direction: column; justify-content: flex-start; overflow: hidden; border-radius: 12px; background: #12161c; border: 1px solid #2d3441; transition: border-color .3s, box-shadow .3s; }
.wall .tile span { opacity: 1; }
.wall .tile b { background: none; border: 0; padding: 0; border-radius: 0; color: inherit; align-self: auto; letter-spacing: normal; }
.tile__view { position: relative; aspect-ratio: 16/9; }
.tile__view svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tcar { transform-box: view-box; animation: tileCar 3.5s linear infinite; }
@keyframes tileCar { from { transform: translate(-40px, 66px); } to { transform: translate(200px, 66px); } }
.tscan { animation: tileScan 2.4s linear infinite; }
@keyframes tileScan { from { transform: translateY(-14px); } to { transform: translateY(90px); } }
.tile__rec { position: absolute; top: 6px; left: 6px; display: inline-flex; align-items: center; gap: 4px; font: 700 .58rem Inter, sans-serif !important; color: #fff; background: rgba(0,0,0,.45); padding: 2px 6px; border-radius: 999px; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #ff4d4d; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.wall .tile__flag { position: absolute; top: 6px; right: 6px; font-style: normal; font: 700 .62rem var(--font) !important; background: #ff3b30; color: #fff; padding: 2px 8px; border-radius: 999px; opacity: 0; transform: scale(.7); transition: .25s var(--ease); }
.tile__bar { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 8px; background: #161b23; border-top: 1px solid #2d3441; color: #fff; }
.tile__name { font: 600 .72rem var(--font) !important; white-space: nowrap; }
.tile__plate .mp { transform: scale(.82); transform-origin: right center; }
:root[dir="rtl"] .tile__plate .mp { transform-origin: left center; }
.wall .tile--active { border-color: var(--brand); box-shadow: 0 0 0 3px var(--glow); }
.wall .tile--alert { border-color: #ff3b30; animation: tileAlarm .6s ease-in-out infinite; }
.wall .tile--alert .tile__flag { opacity: 1; transform: none; }
@keyframes tileAlarm { 50% { box-shadow: 0 0 0 4px rgba(255,59,48,.35), 0 0 26px rgba(255,59,48,.45); } }
.alarm { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); transition: .3s var(--ease); }
.alarm__icon { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--surface); color: var(--muted); }
.alarm__icon .lucide { width: 18px; height: 18px; }
.alarm__txt { flex: 1; min-width: 0; display: grid; } .alarm__txt b { font-size: .85rem; } .alarm__txt span { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alarm__time { font: 600 .75rem ui-monospace, Consolas, monospace; color: var(--muted); }
.alarm.is-on { border-color: #ff3b30; background: color-mix(in srgb, #ff3b30 14%, var(--surface)); animation: tileAlarm .6s ease-in-out infinite; }
.alarm.is-on .alarm__icon { background: #ff3b30; color: #fff; animation: ring .5s ease-in-out infinite; }
.alarm.is-on .alarm__txt span, .alarm.is-on .alarm__time { color: var(--text); }
.alarm.is-ok { border-color: color-mix(in srgb, #34d17a 60%, var(--line)); } .alarm.is-ok .alarm__icon { color: #34d17a; }
@keyframes ring { 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
.wf { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.wf li { position: relative; display: grid; justify-items: center; gap: 6px; padding: 10px 4px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: .72rem; font-weight: 600; text-align: center; transition: .3s var(--ease); }
.wf li .lucide { width: 20px; height: 20px; color: var(--muted); }
.wf li.is-live { border-color: var(--brand); box-shadow: 0 0 0 3px var(--glow); transform: translateY(-2px); }
.wf li.is-live .lucide { color: var(--brand); animation: livePulse 1.2s ease-in-out; }
.wf li.is-done .lucide { color: #34d17a; }
.wf li:not(:last-child)::after { content: ""; position: absolute; top: 50%; inset-inline-end: -8px; width: 8px; height: 2px; background: var(--line); }
.wf li.is-done:not(:last-child)::after { background: #34d17a; }
@media (max-width: 640px) { .wf { grid-template-columns: repeat(5, 1fr); gap: 4px; } .wf li { font-size: .6rem; padding: 8px 2px; } .wf li .lucide { width: 16px; height: 16px; } .tile__name { font-size: .64rem !important; } }

/* Modern compact project cards */
.pcard { position: relative; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; color: inherit;
  background: var(--surface); border: 1px solid var(--line); animation: fadeUp .45s var(--ease) both;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; }
.pcard:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--brand) 55%, transparent); }
.pcard__viz { position: relative; aspect-ratio: 16/10; overflow: hidden;
  background: radial-gradient(circle at 85% 0, var(--glow), transparent 55%), linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 22px 22px, var(--surface-2); }
.pcard__viz::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, var(--surface)); pointer-events: none; }
.pcard__viz .viz { position: absolute; inset: 0; width: 100%; height: 100%; padding: 36px 10px 16px; transition: transform .6s var(--ease); }
.pcard:hover .pcard__viz .viz { transform: scale(1.05); }
.pcard__cat { position: absolute; z-index: 1; top: 12px; inset-inline-start: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 8px;
  border-radius: 999px; font-size: .74rem; font-weight: 600; background: color-mix(in srgb, var(--surface) 78%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--line); }
.pcard__cat .lucide { width: 15px; height: 15px; color: var(--brand); }
.pcard__body { display: flex; align-items: flex-end; gap: 14px; padding: 4px 20px 20px; }
.pcard__text { flex: 1; min-width: 0; }
.pcard h3 { font-size: 1.05rem; margin: 0 0 6px; }
.pcard p { margin: 0; font-size: .86rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__go { flex: 0 0 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); transition: .3s var(--ease); }
.pcard__go .lucide { width: 18px; height: 18px; }
:root[dir="rtl"] .pcard__go .lucide { transform: scaleX(-1); }
.pcard:hover .pcard__go { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); transform: rotate(45deg); }
:root[dir="rtl"] .pcard:hover .pcard__go { transform: rotate(-45deg); }
.projects { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)) !important; gap: 18px; }

/* LIS live flow + B2B */
.flow__title { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 48px 0 0; font-size: 1.15rem; }
.flow__title .lucide { color: var(--brand); }
.flow { grid-template-columns: repeat(4, 1fr); margin-top: 20px; }
.flow li b { font-weight: 600; }
.b2b { margin-top: 22px; padding: 24px; border-radius: 20px; border: 1px solid color-mix(in srgb, var(--brand) 45%, var(--line));
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 10%, var(--surface)), var(--surface) 60%); }
.b2b__head { display: flex; gap: 16px; align-items: flex-start; }
.b2b__head > .lucide { flex: 0 0 48px; width: 48px; height: 48px; padding: 12px; border-radius: 14px; background: var(--brand); color: var(--brand-ink); }
.b2b__head h3 { margin: 0 0 4px; } .b2b__head p { margin: 0; }
.b2b__list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.b2b__list li { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: .86rem; }
.b2b__list .lucide { width: 18px; height: 18px; color: var(--brand); flex-shrink: 0; }
@media (max-width: 1200px) { .flow { grid-template-columns: repeat(2, 1fr); } .b2b__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .flow, .b2b__list { grid-template-columns: 1fr; } .b2b__head { flex-direction: column; } }

/* Live workflows */
[data-live] > * { transition: border-color .35s, box-shadow .35s, transform .35s, background-color .35s, opacity .35s; }
[data-live] > .is-live { border-color: var(--brand) !important; box-shadow: 0 0 0 4px var(--glow), 0 12px 30px -14px var(--brand); transform: translateY(-3px); }
[data-live] > .is-live .lucide { animation: livePulse var(--live-ms, 1.6s) ease-in-out; color: var(--brand); }
@keyframes livePulse { 0% { transform: scale(.8); } 35% { transform: scale(1.18); } 100% { transform: scale(1); } }
[data-live] > .is-done .lucide { color: #34d17a; }
.flow li, .steps li, .lis__col li { position: relative; overflow: hidden; }
.flow li::after, .steps li::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.flow li.is-live::after, .steps li.is-live::after { animation: liveBar var(--live-ms, 1.6s) linear forwards; }
.flow li.is-done::after, .steps li.is-done::after { width: 100%; background: #34d17a; }
@keyframes liveBar { to { width: 100%; } }
.flow li > .lucide { flex: 0 0 22px; width: 22px; height: 22px; color: var(--muted); }
.flow li.is-done span { background: #34d17a; }
.pipe { transition: transform .35s; }
.pipe.is-live { transform: translateY(-4px); box-shadow: none; }
.pipe.is-live .lucide { border-color: var(--brand); box-shadow: 0 0 0 4px var(--glow); background: color-mix(in srgb, var(--brand) 16%, var(--surface-2)); }
.lis__col li.is-live { background: color-mix(in srgb, var(--brand) 12%, var(--surface-2)); }
.lis__hub .pill { margin-top: 6px; }
@keyframes lock { 50% { stroke-width: 5; opacity: .7; } }

/* Mini plates in the reads list */
.mplate { display: inline-grid; grid-template-columns: 8px auto; background: #fff; color: #111; border: 1px solid #c9ced6; border-radius: 4px; overflow: hidden; line-height: 1.2; }
.mplate::before { content: ""; background: #1c64d8; grid-row: span 2; }
.mplate__lat { font: 700 .76rem ui-monospace, Consolas, monospace; padding: 2px 6px 0; letter-spacing: .03em; }
.mplate__ar { font: 600 .66rem var(--font-arabic); padding: 0 6px 2px; text-align: center; direction: rtl; }
.read { padding: 7px 9px; }
.read > div { display: grid; gap: 3px; justify-items: start; }

/* Iraqi plates (reads list) — new 2022+ and old 2008–2024 designs */
.mp { --pbg: #fff; --pfg: #111; display: inline-flex; direction: ltr; background: var(--pbg); color: var(--pfg); border: 1px solid #8d96a3; border-radius: 3px; overflow: hidden; line-height: 1; box-shadow: 0 1px 0 rgba(0,0,0,.25); }
.mp em, .mp small, .mp b { color: var(--pfg) !important; }
@media (max-width: 640px) { .tile__bar { flex-direction: column; align-items: flex-start; gap: 3px; } .tile__plate .mp { transform: scale(.75); transform-origin: left center; } }
.mp--taxi { --pbg: #d7261e; --pfg: #fff; } .mp--truck { --pbg: #f6c21a; --pfg: #111; }
.mp--new { height: 22px; }
.mp--new .mp__band { width: 15px; background: #1d3f94; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.mp--new .mp__band b { font: 800 6px Inter, sans-serif; writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: .3px; }
.mp--new .mp__band i { font: 700 4.5px Inter, sans-serif; font-style: normal; }
.mp--new .mp__num { display: grid; place-items: center; padding: 0 8px; font: 700 .84rem "Arial Narrow", Arial, sans-serif; letter-spacing: .04em; }
.mp--old .mp__side { width: 11px; display: grid; place-items: center; border-inline-end: 1px solid color-mix(in srgb, var(--pfg) 30%, transparent); }
.mp--old .mp__side { font: 800 5px Inter, sans-serif; writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: .5px; }
.mp--old .mp__main { display: grid; justify-items: center; padding: 2px 7px 0; }
.mp--old .mp__main b { font: 700 .82rem var(--font-arabic); direction: rtl; line-height: 1.1; }
.mp--old .mp__main small { font: 600 .5rem Inter, sans-serif; color: inherit; }
.mp--old .mp__main em { font: 600 .52rem var(--font-arabic); font-style: normal; direction: rtl; width: 100%; text-align: center; border-top: 1px solid currentColor; margin-top: 1px; padding: 1px 0; }

/* Project cards with animated visuals */
.project { position: relative; padding: 0; overflow: hidden; cursor: pointer; color: inherit; }
.project__viz { position: relative; aspect-ratio: 16/9; border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 80% 0, var(--glow), transparent 55%), linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 24px 24px, var(--surface-2); }
.project__viz .viz { position: absolute; inset: 0; width: 100%; height: 100%; padding: 6px; transition: transform .5s var(--ease); }
.project:hover .project__viz .viz { transform: scale(1.04); }
.project__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.project__body .project__top { margin-bottom: 12px; }
.project__icon { width: 40px; height: 40px; border-radius: 11px; }
.project__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 600; font-size: .88rem; color: var(--brand); }
.project__more .lucide { width: 16px; height: 16px; transition: transform .2s; }
.project:hover .project__more .lucide { transform: translateX(4px); }
:root[dir="rtl"] .project:hover .project__more .lucide { transform: scaleX(-1) translateX(4px); }
.project__badge { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 1; font-size: .7rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); }

/* SVG visual palette (theme aware) */
.viz { direction: ltr; overflow: visible; }
.viz text { font-family: Inter, system-ui, sans-serif; }
.viz .s-line { stroke: var(--line); } .viz .s-mesh { stroke: color-mix(in srgb, var(--brand) 45%, transparent); }
.viz .s-brand { stroke: var(--brand); } .viz .s-lane { stroke: color-mix(in srgb, var(--muted) 55%, transparent); }
.viz .s-gantry { stroke: var(--line); } .viz .s-grid { stroke: var(--grid); stroke-width: 1; }
.viz .f-brand { fill: var(--brand); } .viz .f-alt { fill: #4b8bf5; } .viz .f-ok { fill: #34d17a; }
.viz .f-brandsoft { fill: color-mix(in srgb, var(--brand) 28%, transparent); }
.viz .f-surf2 { fill: var(--surface-2); } .viz .f-row { fill: color-mix(in srgb, var(--brand) 8%, var(--surface)); }
.viz .f-panel { fill: var(--surface); stroke: var(--line); stroke-width: 1; }
.viz .f-hub { fill: color-mix(in srgb, var(--brand) 14%, var(--surface)); stroke: var(--brand); }
.viz .f-road { fill: color-mix(in srgb, var(--text) 9%, var(--surface-2)); }
.viz .f-pole { fill: color-mix(in srgb, var(--muted) 60%, var(--surface)); }
.viz .f-muted { fill: var(--muted); } .viz .f-line { fill: var(--line); } .viz .f-bar { fill: color-mix(in srgb, var(--muted) 35%, var(--surface)); }
.viz .f-wheel { fill: #1b1f25; stroke: var(--muted); stroke-width: 2; } .viz .f-glass { fill: #0d0f12; opacity: .45; } .viz .f-light { fill: #ffd27a; }
.viz .f-beam { fill: var(--brand); } .viz .f-slice { fill: color-mix(in srgb, #9ec5ff 70%, var(--surface)); stroke: var(--brand); stroke-width: 1; }
.viz .f-phone { fill: #1b1f25; stroke: var(--line); stroke-width: 2; } .viz .f-code { fill: #111; } .viz .f-okbg { fill: rgba(52,209,122,.15); }
.viz .t-sm { font-size: 10px; font-weight: 600; fill: var(--muted); letter-spacing: .06em; }
.viz .t-xs { font-size: 8.5px; font-weight: 500; fill: var(--muted); }
.viz .t-xs-b { font-size: 8.5px; font-weight: 700; fill: var(--text); letter-spacing: .03em; }
.viz .t-big { font-size: 18px; font-weight: 700; fill: var(--brand); }
.viz .t-num { font-size: 13px; font-weight: 700; fill: var(--text); }
.viz .t-plus { font-size: 16px; font-weight: 800; fill: var(--brand); }
.viz .t-ok { font-size: 10px; font-weight: 700; fill: #34d17a; }
.viz .t-bad { font-size: 9px; font-weight: 700; fill: #ff5f57; }
.viz .t-speed { font-size: 32px; font-weight: 800; fill: var(--text); font-family: "Space Grotesk", Inter, sans-serif; }
.viz .t-plate { font: 700 24px ui-monospace, Consolas, monospace; fill: #111; letter-spacing: 1px; }
.viz .t-mono { font: 700 13px ui-monospace, Consolas, monospace; fill: var(--text); }
.viz .t-code { font: 600 9px ui-monospace, Consolas, monospace; fill: #111; }
.viz .t-coin { font-size: 26px; font-weight: 800; fill: var(--brand); } .viz .t-coin-s { font-size: 13px; font-weight: 800; fill: var(--brand); }
.viz .t-hub { font-size: 14px; font-weight: 800; fill: var(--brand); } .viz .t-stamp { font-size: 10px; font-weight: 800; fill: #ff5f57; }
.ai-viz { margin-top: 8px; aspect-ratio: 16/9; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.ai-viz .viz { width: 100%; height: 100%; }

/* Full-screen project page */
.pv { position: fixed; inset: 0; z-index: 80; overflow-y: auto; overscroll-behavior: contain; background: var(--bg);
  background-image: radial-gradient(circle at 85% 0, var(--glow), transparent 45%); animation: pvIn .45s var(--ease); }
.pv[hidden] { display: none; }
@keyframes pvIn { from { opacity: 0; transform: scale(.985); } }
.pv__bar { position: sticky; top: 0; z-index: 2; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.pv__barin { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.pv__count { font: 600 .85rem var(--font-latin); color: var(--muted); }
.pv__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; min-height: calc(100svh - 64px - 88px); padding: 40px 0; }
.pv__visual { position: relative; aspect-ratio: 16/10; border-radius: 24px; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden;
  background: radial-gradient(circle at 80% 0, var(--glow), transparent 55%), linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 28px 28px, var(--surface); }
.pv__visual .viz { position: absolute; inset: 0; width: 100%; height: 100%; padding: 4%; }
.pv__body h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); margin-top: 14px; }
.pv__body h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--brand); margin: 26px 0 12px; }
:root[dir="rtl"] .pv__body h3 { letter-spacing: 0; font-size: 1rem; }
.pv__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pv__list li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; animation: fadeUp .4s var(--ease) both; }
.pv__list .lucide { flex: 0 0 18px; width: 18px; height: 18px; color: var(--brand); margin-top: 3px; }
.pv__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pv__nav { display: flex; justify-content: space-between; padding: 0 0 32px; }
body.pv-open { overflow: hidden; }

/* LIS architecture diagram */
.lis { display: grid; grid-template-columns: 1fr 56px 1fr 56px 1.1fr 56px 1fr; align-items: stretch; }
.lis__col { padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.lis__col h3 { display: flex; align-items: center; gap: 10px; font-size: 1rem; margin-bottom: 14px; }
.lis__col h3 .lucide { color: var(--brand); }
.lis__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lis__col li { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: .86rem; transition: border-color .2s, transform .2s; }
.lis__col li:hover { border-color: var(--brand); transform: translateY(-2px); }
.lis__col li .lucide { width: 17px; height: 17px; color: var(--brand); }
.lis__proto li span { font-family: var(--font-latin); font-weight: 600; }
:root[dir="rtl"] .lis__proto li span[data-i18n] { font-family: var(--font-arabic); }
.lis__core { border-color: color-mix(in srgb, var(--brand) 60%, var(--line)); box-shadow: 0 0 0 6px var(--glow), var(--shadow); background: linear-gradient(170deg, color-mix(in srgb, var(--brand) 10%, var(--surface)), var(--surface) 45%); }
.lis__hub { display: grid; justify-items: center; gap: 4px; padding: 6px 0 16px; margin-bottom: 14px; border-bottom: 1px dashed var(--line); }
.lis__hub img { animation: float 5s ease-in-out infinite; }
.lis__hub b { font: 700 1.3rem var(--font-display); } .lis__hub small { color: var(--muted); }
.lis__link { position: relative; align-self: center; height: 60%; }
.lis__link::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%); background: repeating-linear-gradient(var(--line) 0 6px, transparent 6px 12px); }
.lis__link span { position: absolute; left: 0; right: 0; height: 2px; background: var(--line); }
.lis__link span:nth-child(1) { top: 20%; } .lis__link span:nth-child(2) { top: 50%; } .lis__link span:nth-child(3) { top: 80%; }
.lis__link span::after { content: ""; position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 10px var(--brand); animation: dotH 1.4s linear infinite; }
.lis__link span:nth-child(2)::after { animation-delay: .45s; } .lis__link span:nth-child(3)::after { animation-delay: .9s; }
@keyframes dotH { from { left: 0; } to { left: calc(100% - 8px); } }
:root[dir="rtl"] .lis__link span::after { animation-direction: reverse; }
.flow { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.flow li { display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: .88rem; }
.flow span { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font: 700 .95rem var(--font-display); }

.steps li > .lucide { width: 40px; height: 40px; padding: 9px; border-radius: 11px; background: var(--glow); color: var(--brand); margin-bottom: 12px; }
.steps span { font-size: 1.6rem; margin-bottom: 4px; }

/* responsive v2 */
@media (max-width: 1200px) {
  .lis { display: flex; flex-direction: column; }
  .lis__col ul { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .lis__link { align-self: center; width: 60px; height: 44px; }
  .lis__link::before { display: none; }
  .lis__link span { top: 0 !important; bottom: 0; left: 50%; right: auto; width: 2px; height: auto; }
  .lis__link span:nth-child(1) { left: 25%; } .lis__link span:nth-child(3) { left: 75%; }
  .lis__link span::after { left: -3px; top: 0; animation-name: dotV; }
  @keyframes dotV { from { top: 0; } to { top: calc(100% - 8px); } }
  .flow { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .pv__grid { grid-template-columns: 1fr; gap: 28px; min-height: 0; padding: 24px 0; }
  .scroll-cue { display: none; }
}
@media (max-width: 640px) {
  .flow, .pv__list { grid-template-columns: 1fr; }
  .pv__barin { height: 56px; }
}
@media (prefers-reduced-motion: reduce) { .scene__car, .lis__link span::after { animation: none !important; } }
