/* Arobin product site. Dark only; brand colours from ui-overlay/brand/brand.json
   (orange #FCB23F, ink #0F1011). Orange is used for accents, never for body text. */

@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/assets/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("/assets/fonts/vazirmatn-arabic-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Vazirmatn"; src: url("/assets/fonts/vazirmatn-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #07080a;
  --ink: #0f1011;
  --panel: #0e1013;
  --panel-2: #13161b;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eef0f2;
  --muted: #a3a9b1;
  --dim: #6f767f;
  --amber: #fcb23f;
  --amber-2: #ff8a3d;
  --amber-soft: rgba(252, 178, 63, 0.12);
  --signal: #6ee7f0;
  --ok: #4ade80;
  --rec: #ff4d4d;
  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1200px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}
[dir="rtl"] {
  --font: "Vazirmatn", "Noto Sans Arabic", Tahoma, system-ui, sans-serif;
  --font-display: "Vazirmatn", "Noto Kufi Arabic", Tahoma, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
[dir="rtl"] body { line-height: 1.85; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p a, .prose a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(252, 178, 63, 0.4); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; line-height: 1.35; font-weight: 700; }
h1 em, h2 em { font-style: normal; background: linear-gradient(100deg, var(--amber) 10%, #ffd28a 50%, var(--amber-2) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
bdi { unicode-bidi: isolate; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--amber); color: var(--ink); padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }
.icon { width: 22px; height: 22px; flex: none; }
.icon.big { width: 40px; height: 40px; }
[dir="rtl"] .icon.arrow { transform: scaleX(-1); }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 16px; border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease; white-space: nowrap; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-primary { background: linear-gradient(135deg, var(--amber), var(--amber-2)); color: var(--ink); box-shadow: 0 10px 30px -10px rgba(252, 178, 63, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 40px -12px rgba(252, 178, 63, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-ghost { border-color: var(--line-2); background: rgba(255, 255, 255, 0.03); color: var(--text); }
.btn-ghost:hover { border-color: rgba(252, 178, 63, 0.5); background: var(--amber-soft); }
.btn .icon { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- top bar */
.topbar { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease; border-bottom: 1px solid transparent; }
.topbar.scrolled, .menu-open .topbar { background: rgba(7, 8, 10, 0.78); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-color: var(--line); }
.topbar-inner { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { flex: none; }
.brand img { height: 34px; width: auto; }
.mainnav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.mainnav > a { white-space: nowrap; padding: 8px 10px; border-radius: 10px; color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s, background .2s; }
.mainnav > a:hover, .mainnav > a[aria-current] { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.langs { display: flex; gap: 2px; margin-inline-start: 10px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.langs a { padding: 4px 10px; border-radius: 999px; font-size: 13px; color: var(--muted); }
.langs a[lang="ckb"], .langs a[lang="ar"] { font-family: "Vazirmatn", Tahoma, sans-serif; }
.langs a[lang="en"] { font-family: "Inter", sans-serif; }
.langs a[aria-current] { background: rgba(255, 255, 255, 0.1); color: var(--text); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line-2); color: var(--text); width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; cursor: pointer; }
.menu-toggle .when-open { display: none; }
.menu-open .menu-toggle .when-open { display: inline; }
.menu-open .menu-toggle .when-closed { display: none; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding: 140px 0 60px; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 900px; z-index: -2; background:
  radial-gradient(600px 380px at 78% 30%, rgba(252, 178, 63, 0.16), transparent 70%),
  radial-gradient(520px 420px at 12% 10%, rgba(110, 231, 240, 0.07), transparent 70%); }
[dir="rtl"] .hero::before { transform: scaleX(-1); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); opacity: .5; }
.neural { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .7; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font: 600 13px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
[dir="rtl"] .eyebrow { font-family: var(--font); letter-spacing: 0; font-size: 15px; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(252, 178, 63, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(252, 178, 63, 0); } 100% { box-shadow: 0 0 0 0 rgba(252, 178, 63, 0); } }
.hero h1 { font-size: clamp(40px, 4.9vw, 68px); line-height: 1.04; }
[dir="rtl"] .hero h1 { font-size: clamp(36px, 4.4vw, 58px); line-height: 1.32; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); margin: 22px 0 0; max-width: 60ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 72px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: rgba(10, 11, 14, 0.85); padding: 22px 24px; display: flex; flex-direction: column; gap: 4px; }
.stat strong { font: 600 clamp(30px, 3.4vw, 44px)/1 var(--font-display); background: linear-gradient(180deg, #fff, #b9bec6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 14px; }

/* the console with live feeds */
.console { position: relative; margin: 0; border-radius: 20px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)); border: 1px solid var(--line-2); box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.4), 0 0 80px -30px rgba(252, 178, 63, 0.35); padding: 10px; transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transform-origin: center; transition: transform .6s ease; }
[dir="rtl"] .console { transform: perspective(1600px) rotateY(6deg) rotateX(2deg); }
.console:hover { transform: perspective(1600px) rotateY(0) rotateX(0); }
.console-bar { display: flex; align-items: center; gap: 6px; padding: 4px 6px 10px; direction: ltr; }
.console-bar span { width: 10px; height: 10px; border-radius: 50%; background: #2a2e35; }
.console-bar b { margin-inline-start: auto; font: 500 11px var(--mono); color: var(--dim); letter-spacing: .1em; text-transform: uppercase; }
.console-body { display: grid; grid-template-columns: 3fr 1fr; gap: 8px; direction: ltr; }
.console-side { display: grid; grid-template-rows: repeat(3, 1fr); gap: 8px; }
.feed { position: relative; border-radius: 10px; overflow: hidden; background: #0a0c0f; border: 1px solid rgba(255, 255, 255, 0.06); }
.feed canvas { width: 100%; height: 100%; aspect-ratio: 16 / 9; }
.feed-main canvas { aspect-ratio: 16 / 10.2; }
.console-side .feed canvas { aspect-ratio: auto; height: 100%; }
.console-log { display: grid; gap: 6px; margin-top: 8px; min-height: 104px; direction: ltr; }
.log-row { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.035); font: 500 12px var(--mono); color: var(--muted); animation: slide-in .5s ease both; }
.log-row i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.log-row.in-zone i { background: #ff5a5a; box-shadow: 0 0 10px #ff5a5a; }
.log-row b { color: var(--text); font-weight: 600; }
.log-row em { font-style: normal; color: var(--amber); }
.log-row .lbl { font-family: var(--font); font-size: 13px; }
@keyframes slide-in { from { opacity: 0; transform: translateY(-6px); } }

/* ---------------------------------------------------------------- sections */
.section { position: relative; padding: 120px 0; }
.section.tight { padding: 56px 0; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.section h2 { font-size: clamp(32px, 4.4vw, 56px); }
[dir="rtl"] .section h2 { font-size: clamp(30px, 3.8vw, 48px); }
.card { position: relative; padding: 28px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)); border: 1px solid var(--line); transition: border-color .3s ease, transform .3s ease, background .3s ease; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 200px at var(--mx, 50%) var(--my, 0%), rgba(252, 178, 63, 0.10), transparent 70%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover { border-color: rgba(252, 178, 63, 0.35); transform: translateY(-3px); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 20px; margin: 18px 0 10px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card-icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; color: var(--amber); background: var(--amber-soft); border: 1px solid rgba(252, 178, 63, 0.25); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* cameras: keep what you have */
.cameras { background: linear-gradient(180deg, transparent, rgba(252, 178, 63, 0.035) 40%, transparent); }
.flow { display: grid; grid-template-columns: 1fr 1.1fr auto 1.1fr 1fr; align-items: center; gap: 0; margin-bottom: 56px; padding: 36px; border-radius: 24px; border: 1px solid var(--line); background: radial-gradient(500px 200px at 50% 50%, rgba(252, 178, 63, 0.08), transparent 70%), rgba(255, 255, 255, 0.02); }
.flow-col { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.flow-label { font-size: 14px; font-weight: 600; color: var(--text); }
.flow-label.sub { color: var(--muted); font-weight: 500; font-size: 13px; }
.cam-stack { display: grid; gap: 8px; }
.cam-chip { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); font: 500 13px var(--mono); color: var(--muted); }
.cam-chip .icon { width: 18px; height: 18px; color: var(--amber); }
.flow-line { position: relative; height: 2px; margin: 0 12px; background: linear-gradient(90deg, rgba(252, 178, 63, 0.1), rgba(252, 178, 63, 0.6), rgba(252, 178, 63, 0.1)); }
.flow-line i { position: absolute; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 14px 3px rgba(252, 178, 63, 0.7); animation: travel 2.4s linear infinite; }
[dir="rtl"] .flow-line i { animation-name: travel-rtl; }
.flow-line span { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); font: 500 11px var(--mono); color: var(--dim); white-space: nowrap; letter-spacing: .06em; }
@keyframes travel { from { left: 0; } to { left: calc(100% - 8px); } }
@keyframes travel-rtl { from { left: calc(100% - 8px); } to { left: 0; } }
.flow-core { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.core-ring { position: relative; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, rgba(252, 178, 63, 0.18), rgba(7, 8, 10, 0.9) 70%); border: 1px solid rgba(252, 178, 63, 0.4); box-shadow: 0 0 60px -10px rgba(252, 178, 63, 0.5); }
.core-ring::before, .core-ring::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 1px dashed rgba(252, 178, 63, 0.3); animation: spin 18s linear infinite; }
.core-ring::after { inset: -26px; border-style: solid; border-color: rgba(252, 178, 63, 0.1) transparent; animation-duration: 9s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.devices { display: flex; gap: 12px; color: var(--muted); }
.brand-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 40px; }
.brand-row span { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); color: var(--muted); font: 600 14px var(--font-display); letter-spacing: .02em; }
.brand-row .proto { font-family: var(--mono); color: var(--amber); border-color: rgba(252, 178, 63, 0.25); }

/* search */
.search-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.search-grid > * { min-width: 0; }
.search-grid .section-head { margin-bottom: 0; }
.note { display: flex; gap: 10px; align-items: flex-start; margin-top: 24px; color: var(--muted); font-size: 15px; }
.note .icon { color: var(--ok); margin-top: 3px; width: 18px; height: 18px; }
.search-demo { padding: 22px; border-radius: 22px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)); box-shadow: 0 40px 100px -50px rgba(0, 0, 0, 0.9); }
.search-box { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 14px; background: #0b0d10; border: 1px solid rgba(252, 178, 63, 0.4); box-shadow: 0 0 0 4px rgba(252, 178, 63, 0.08); font-size: 17px; min-height: 60px; }
.search-box .icon { color: var(--amber); }
.typed { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.typed.placeholder { color: var(--dim); }
.caret { width: 2px; height: 22px; background: var(--amber); animation: blink 1s steps(1) infinite; flex: none; }
@keyframes blink { 50% { opacity: 0; } }
.search-count { margin: 14px 4px; font: 500 13px var(--mono); color: var(--dim); }
[dir="rtl"] .search-count { font-family: var(--font); }
.search-count span { color: var(--amber); }
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.result { position: relative; opacity: .25; filter: grayscale(1); transform: scale(.97); transition: all .5s ease; }
.result:nth-child(2) { transition-delay: 70ms; } .result:nth-child(3) { transition-delay: 140ms; } .result:nth-child(4) { transition-delay: 210ms; } .result:nth-child(5) { transition-delay: 280ms; } .result:nth-child(6) { transition-delay: 350ms; }
.result.on { opacity: 1; filter: none; transform: none; }
.result .feed { border-radius: 10px; }
.match { position: absolute; top: 8px; inset-inline-end: 8px; padding: 3px 8px; border-radius: 6px; background: rgba(7, 8, 10, 0.75); border: 1px solid rgba(252, 178, 63, 0.5); color: var(--amber); font: 600 11px var(--mono); backdrop-filter: blur(6px); }
.match:empty { display: none; }

/* wall */
.wall-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 12px; border-radius: 22px; border: 1px solid var(--line-2); background: #090b0e; box-shadow: 0 50px 120px -60px rgba(252, 178, 63, 0.25); direction: ltr; }
.wall-grid .wide { grid-column: span 2; grid-row: span 2; }
.wall-grid .wide canvas { aspect-ratio: auto; height: 100%; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.checks .icon { width: 20px; height: 20px; color: var(--amber); margin-top: 3px; }
.checks-inline { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 36px; gap: 14px 28px; }

/* security */
.security { background: radial-gradient(900px 500px at 50% 0%, rgba(110, 231, 240, 0.06), transparent 70%), linear-gradient(180deg, #050607, #090a0d); border-block: 1px solid var(--line); }
.security-top { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; margin-bottom: 56px; }
.security-top .section-head { margin-bottom: 0; }
.rings { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.ring { border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(110, 231, 240, 0.18); padding: 14px; background: radial-gradient(circle, rgba(110, 231, 240, 0.03), transparent 70%); }
.ring.r6 { animation: breathe 6s ease-in-out infinite; }
.ring.r4 { border-color: rgba(252, 178, 63, 0.25); }
.ring.r2 { border-color: rgba(252, 178, 63, 0.35); }
.ring.r1 { width: 92px; height: 92px; padding: 0; background: radial-gradient(circle, rgba(252, 178, 63, 0.35), rgba(252, 178, 63, 0.05)); border-color: var(--amber); box-shadow: 0 0 40px rgba(252, 178, 63, 0.35); }
.ring.r1 span { font: 600 13px var(--font-display); text-align: center; padding: 6px; }
@keyframes breathe { 50% { box-shadow: 0 0 60px -10px rgba(110, 231, 240, 0.25); } }
.rings figcaption strong { display: block; font: 600 14px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--signal); margin-bottom: 10px; }
[dir="rtl"] .rings figcaption strong { font-family: var(--font); letter-spacing: 0; }
.rings ol { margin: 0; padding-inline-start: 20px; color: var(--muted); font-size: 14.5px; display: grid; gap: 6px; }
.rings ol li::marker { color: var(--signal); font-family: var(--mono); }
.card-sec .card-icon { color: var(--signal); background: rgba(110, 231, 240, 0.08); border-color: rgba(110, 231, 240, 0.22); }
.card-sec:hover { border-color: rgba(110, 231, 240, 0.35); }
.card-sec::before { background: radial-gradient(400px 200px at var(--mx, 50%) var(--my, 0%), rgba(110, 231, 240, 0.09), transparent 70%); }
.card-sec h3 { font-size: 18px; }
.card-sec p { font-size: 14.5px; }

/* how */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step { position: relative; padding: 32px 28px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.step-n { position: absolute; top: 22px; inset-inline-end: 24px; font: 600 44px/1 var(--font-display); color: rgba(255, 255, 255, 0.06); }
.step h3 { font-size: 21px; margin: 18px 0 10px; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }
.pill { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(74, 222, 128, 0.3); background: rgba(74, 222, 128, 0.06); color: #b6f3cb; font-size: 15px; }
.pill .icon { width: 18px; height: 18px; }
.pill.small { margin: 0 0 20px; font-size: 13px; padding: 6px 14px; border-color: var(--line-2); background: rgba(255, 255, 255, 0.04); color: var(--muted); }

/* packages */
.pkgs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.pkg { position: relative; display: flex; flex-direction: column; gap: 22px; padding: 26px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)); }
.pkg header { display: flex; gap: 16px; align-items: center; }
.pkg-letter { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font: 700 26px var(--font-display); color: var(--ink); background: linear-gradient(135deg, #e9ebee, #9aa1aa); }
.pkg h3 { font-size: 22px; }
.pkg header p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.pkg-cams { margin: 0; display: flex; align-items: baseline; gap: 8px; color: var(--muted); }
.pkg-cams strong { font: 600 50px/1 var(--font-display); color: var(--text); }
.pkg-cams span { white-space: nowrap; }
.pkg-price { padding-top: 18px; border-top: 1px solid var(--line); }
.pkg-price p { margin: 0; display: flex; align-items: baseline; gap: 8px; color: var(--muted); }
.pkg-price strong { font: 600 34px/1 var(--font-display); color: var(--text); }
.pkg-price .pkg-custom { font-size: 26px; }
.pkg-price .pkg-support { margin-top: 8px; font-size: 14px; display: block; }
.pkg .checks { flex: 1; }
.pkg .pkg-plus { color: var(--text); font-weight: 600; }
.pkg .pkg-plus svg { color: var(--amber); }
.pkg .btn { width: 100%; }
.pkg-pop { border-color: rgba(252, 178, 63, 0.5); background: radial-gradient(500px 220px at 50% 0%, rgba(252, 178, 63, 0.14), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)); box-shadow: 0 30px 90px -40px rgba(252, 178, 63, 0.45); }
.pkg-pop .pkg-letter { background: linear-gradient(135deg, var(--amber), var(--amber-2)); }
.pkg-badge { position: absolute; top: -13px; inset-inline-start: 28px; padding: 4px 12px; border-radius: 999px; background: var(--amber); color: var(--ink); font-size: 12px; font-weight: 700; }
.fine { margin: 28px auto 0; max-width: 760px; text-align: center; color: var(--dim); font-size: 14px; }

/* scenarios */
.scen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.scen { border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)); overflow: hidden; display: flex; flex-direction: column; transition: border-color .3s, transform .3s; }
.scen:hover { border-color: rgba(252, 178, 63, 0.35); transform: translateY(-3px); }
.scen .feed { border-radius: 0; border: 0; border-bottom: 1px solid var(--line); aspect-ratio: 16 / 10; }
.scen .feed canvas { display: block; width: 100%; height: 100%; }
.scen-body { position: relative; padding: 22px 24px 26px; }
.scen-body .badge { position: static; display: inline-block; margin-bottom: 12px; }
.scen-body h3 { font-size: 19px; margin: 0 0 8px; }
.scen-body p { margin: 0; color: var(--muted); font-size: 15px; }
.badge.now { background: rgba(74, 222, 128, 0.12); color: #4ade80; border: 1px solid rgba(74, 222, 128, 0.35); }
.scen-note { margin: 22px 0 0; color: var(--dim); font-size: 14px; }

/* roadmap */
.road { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.road-item { position: relative; padding: 28px; border-radius: var(--radius); border: 1px dashed var(--line-2); background: rgba(255, 255, 255, 0.015); }
.road-item h3 { font-size: 19px; margin: 18px 0 10px; }
.road-item p { margin: 0; color: var(--muted); font-size: 15px; }
.badge { position: absolute; top: 24px; inset-inline-end: 22px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge.inDev { background: rgba(252, 178, 63, 0.12); color: var(--amber); border: 1px solid rgba(252, 178, 63, 0.35); }
.badge.planned { background: rgba(255, 255, 255, 0.05); color: var(--muted); border: 1px solid var(--line-2); }

/* languages */
.langs-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.langs-grid .section-head { margin-bottom: 0; }
.alerts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.alert-card { padding: 14px; border-radius: 16px; background: #10141a; border: 1px solid var(--line); box-shadow: 0 30px 60px -40px #000; }
.alert-card:nth-child(2) { transform: translateY(24px); }
.alert-top { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.alert-top .icon { width: 18px; height: 18px; color: #4fb3ea; }
.alert-top time { margin-inline-start: auto; font-family: var(--mono); font-size: 11px; }
.alert-card p { margin: 10px 0 0; font-size: 15px; }
.alert-card .muted { margin-top: 2px; font-size: 13px; }
.alert-card[dir="rtl"] { font-family: "Vazirmatn", Tahoma, sans-serif; }
.alert-card[dir="ltr"] { font-family: "Inter", sans-serif; }

/* faq */
.faq h2 { margin-bottom: 36px; text-align: center; }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 22px 0; font: 600 19px var(--font-display); display: flex; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 300 26px/1 var(--font); color: var(--amber); transition: transform .25s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 22px; color: var(--muted); max-width: 70ch; }

/* call to action */
.cta { padding: 40px 0 120px; }
.cta-inner { position: relative; text-align: center; padding: 80px 32px; border-radius: 28px; overflow: hidden; border: 1px solid rgba(252, 178, 63, 0.3); background: radial-gradient(700px 300px at 50% 120%, rgba(252, 178, 63, 0.25), transparent 70%), linear-gradient(180deg, #0f1115, #0a0b0d); }
.cta-inner h2 { font-size: clamp(30px, 4vw, 52px); }
.cta-inner .lead { margin-inline: auto; }
.cta-inner .actions { justify-content: center; }

/* attendance and HR */
@property --p { syntax: "<number>"; inherits: true; initial-value: 0; }
.workforce { overflow: hidden; isolation: isolate; border-block: 1px solid var(--line); background: linear-gradient(180deg, #06080a, #080b0d 50%, #06080a); }
.wf-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; background:
  radial-gradient(700px 420px at 20% 8%, rgba(74, 222, 128, 0.10), transparent 70%),
  radial-gradient(640px 420px at 85% 30%, rgba(252, 178, 63, 0.10), transparent 70%),
  radial-gradient(800px 500px at 50% 95%, rgba(110, 231, 240, 0.06), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(0, 40px, 0) scale(1.06); } }
.workforce .section-head.center .actions { justify-content: center; }
.pulse-dot.ok { background: var(--ok); box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); animation-name: pulse-ok; }
@keyframes pulse-ok { 70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
.workforce .eyebrow { color: #86efac; }

.wf-stage { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; padding: 14px; border-radius: 26px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)); box-shadow: 0 60px 140px -60px rgba(74, 222, 128, 0.35), 0 40px 100px -50px #000; }
.wf-cam { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.06); background: #0a0c0f; min-height: 100%; }
.wf-cam .feed { height: 100%; border: 0; border-radius: 0; }
.wf-cam .feed canvas { width: 100%; height: 100%; aspect-ratio: auto; }
.wf-scanline { position: absolute; inset-inline: 0; top: 0; height: 22%; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(74, 222, 128, 0.14) 80%, rgba(74, 222, 128, 0.55)); border-bottom: 1px solid rgba(74, 222, 128, 0.7); mix-blend-mode: screen; animation: sweep 4.5s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes sweep { 0% { transform: translateY(-100%); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(460%); opacity: 0; } }
.wf-board { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 16px; background: #0b0e12; border: 1px solid var(--line); min-width: 0; }
.wf-board-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wf-board-top strong { display: block; font: 600 20px var(--font-display); margin-top: 6px; }
.wf-live { display: inline-flex; align-items: center; gap: 8px; font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #86efac; }
[dir="rtl"] .wf-live { font-family: var(--font); letter-spacing: 0; font-size: 13px; }
.wf-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: blink 1.4s steps(1) infinite; }
.wf-ring { --p: 0; position: relative; width: 78px; height: 78px; flex: none; border-radius: 50%; background: conic-gradient(var(--ok) calc(var(--p) * 1%), rgba(255, 255, 255, 0.07) 0); transition: --p 1s cubic-bezier(.2, .7, .2, 1); box-shadow: 0 0 30px -8px rgba(74, 222, 128, 0.5); }
.wf-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #0b0e12; }
.wf-ring span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.1; }
.wf-ring b { font: 600 19px var(--font-display); }
.wf-ring b::after { content: "%"; font-size: 12px; color: var(--muted); }
.wf-ring small { font-size: 10px; color: var(--muted); }
.wf-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.wf-stat { padding: 10px 10px 9px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); min-width: 0; }
.wf-stat strong { display: block; font: 600 26px/1.1 var(--font-display); transition: transform .3s ease; }
.wf-stat span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf-in strong { color: var(--ok); } .wf-late strong { color: var(--amber); } .wf-leave strong { color: var(--signal); } .wf-out strong { color: var(--muted); }
.wf-stat strong.bump { animation: bump .5s ease; }
@keyframes bump { 40% { transform: scale(1.25); } }
.wf-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; height: 262px; overflow: hidden; align-content: start; }
.wf-rows li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); border: 1px solid transparent; }
.wf-rows li.new { animation: row-in .7s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes row-in { from { opacity: 0; transform: translateY(-14px) scale(.98); border-color: rgba(74, 222, 128, 0.6); background: rgba(74, 222, 128, 0.14); } 60% { border-color: rgba(74, 222, 128, 0.4); background: rgba(74, 222, 128, 0.08); } }
.wf-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: var(--ink); background: linear-gradient(135deg, hsl(var(--h, 140) 70% 70%), hsl(calc(var(--h, 140) + 40) 70% 55%)); position: relative; }
.wf-av::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1.5px solid rgba(74, 222, 128, 0.8); }
.wf-who { min-width: 0; line-height: 1.3; }
.wf-who b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf-who small { color: var(--dim); font-size: 12px; }
.wf-time { font: 500 13px var(--mono); color: var(--muted); }
.wf-chip { padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; background: rgba(74, 222, 128, 0.12); color: #86efac; border: 1px solid rgba(74, 222, 128, 0.3); }
.wf-chip.late { background: rgba(252, 178, 63, 0.12); color: var(--amber); border-color: rgba(252, 178, 63, 0.35); }
.wf-tg { padding: 12px 14px; border-radius: 14px 14px 14px 4px; background: #17212b; border: 1px solid rgba(79, 179, 234, 0.25); }
[dir="rtl"] .wf-tg { border-radius: 14px 14px 4px 14px; }
.wf-tg-top { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.wf-tg-top .icon { width: 18px; height: 18px; color: #4fb3ea; }
.wf-tg-top span { color: var(--muted); }
.wf-tg p { margin: 6px 0 4px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; }
.wf-tg p b { color: var(--text); font-family: var(--font-display); }
.wf-tg small { color: var(--dim); font-size: 12px; }

.wf-points { margin-top: 18px; }
.wf-points .card-icon, .card-hr .card-icon { color: var(--ok); background: rgba(74, 222, 128, 0.08); border-color: rgba(74, 222, 128, 0.25); }
.wf-points .card:hover, .card-hr:hover { border-color: rgba(74, 222, 128, 0.35); }
.wf-points .card::before, .card-hr::before { background: radial-gradient(400px 200px at var(--mx, 50%) var(--my, 0%), rgba(74, 222, 128, 0.09), transparent 70%); }
.wf-points .card h3 { font-size: 18px; }
.wf-points .card p { font-size: 14.5px; }
.wf-numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 56px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.wf-numbers div { padding: 26px 24px; background: rgba(10, 12, 14, 0.92); display: flex; flex-direction: column; gap: 6px; }
.wf-numbers strong { font: 600 clamp(40px, 4.6vw, 60px)/1 var(--font-display); background: linear-gradient(180deg, #d9fbe6, var(--ok)); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.wf-numbers span { color: var(--muted); font-size: 14.5px; }

/* the employee's journey: a line that fills as you scroll */
.wf-journey-wrap { margin-top: 120px; }
.journey { --p: 0; position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.journey-line { position: absolute; top: 24px; bottom: 24px; left: calc(50% - 1px); width: 2px; background: var(--line-2); border-radius: 2px; }
.journey-line i { position: absolute; inset: 0 0 auto; height: calc(var(--p) * 100%); border-radius: 2px; background: linear-gradient(180deg, var(--ok), var(--amber)); box-shadow: 0 0 16px rgba(74, 222, 128, 0.6); }
.journey-line i::after { content: ""; position: absolute; bottom: -6px; left: -5px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(252, 178, 63, 0.35), 0 0 22px 6px rgba(252, 178, 63, 0.6); }
.jstep + .jstep { margin-top: -52px; }
.jstep { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); align-items: center; }
.jdot { grid-column: 2; grid-row: 1; justify-self: center; z-index: 1; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #0c0f12; border: 1px solid var(--line-2); color: var(--dim); transition: all .5s cubic-bezier(.2, .7, .2, 1); }
.jdot .icon { width: 22px; height: 22px; }
.jcard { grid-row: 1; grid-column: 1; padding: 24px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)); opacity: .35; transform: translateX(-24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1), border-color .5s; }
[dir="rtl"] .jcard { transform: translateX(24px); }
.jstep:nth-child(odd) .jcard { grid-column: 3; transform: translateX(24px); }
[dir="rtl"] .jstep:nth-child(odd) .jcard { transform: translateX(-24px); }
.jn { font: 600 12px var(--mono); color: var(--amber); letter-spacing: .12em; }
.jcard h3 { font-size: 20px; margin: 6px 0 8px; }
.jcard p { margin: 0; color: var(--muted); font-size: 15px; }
.jstep.on .jdot { color: var(--ink); background: linear-gradient(135deg, #86efac, var(--ok)); border-color: transparent; box-shadow: 0 0 0 6px rgba(74, 222, 128, 0.12), 0 0 30px rgba(74, 222, 128, 0.5); transform: scale(1.08); }
.journey .jstep.on:nth-child(n) .jcard { opacity: 1; transform: none; border-color: rgba(74, 222, 128, 0.25); }

/* the HR tools, beside a fan of papers on the letterhead */
.wf-tools { margin-top: 120px; scroll-margin-top: 90px; }
.wf-tools-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; margin-bottom: 48px; }
.wf-tools-head .section-head { margin-bottom: 0; }
.papers { position: relative; height: 300px; direction: ltr; }
.paper { position: absolute; left: 50%; top: 20px; width: 190px; height: 250px; margin-left: -95px; padding: 0 16px 16px; border-radius: 10px; overflow: hidden; background: linear-gradient(180deg, #fbfaf7, #ecebe6); color: var(--ink); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.2); display: flex; flex-direction: column; gap: 9px; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.paper-head { display: flex; align-items: center; gap: 8px; margin: 0 -16px 6px; padding: 10px 16px; background: linear-gradient(135deg, var(--ink), #2a2e35); border-bottom: 3px solid var(--amber); color: #fff; font-size: 11px; font-weight: 600; }
.paper strong { font: 700 15px var(--font-display); }
[dir="rtl"] .paper strong, [dir="rtl"] .paper-head { font-family: var(--font); direction: rtl; }
.paper i { display: block; height: 6px; border-radius: 3px; background: #d5d3cc; }
[dir="rtl"] .paper i { margin-left: auto; }
.paper-sign { margin-top: auto; display: flex; justify-content: space-between; gap: 18px; }
.paper-sign span { flex: 1; height: 18px; border-bottom: 1.5px solid #8b8a85; }
.paper-sign span:first-child { background: no-repeat center/80% 80% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 20'%3E%3Cpath d='M2 15c6-10 9-12 11-9s-4 9-1 9 5-7 8-7 1 6 4 6 4-3 9-3 6 2 12-1' fill='none' stroke='%231d4ed8' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
.papers.in .p1 { transform: translate(-150px, 18px) rotate(-9deg); }
.papers.in .p2 { z-index: 2; animation: float 6s ease-in-out 1s infinite; }
.papers.in .p3 { transform: translate(150px, 18px) rotate(9deg); }
.papers.in:hover .p1 { transform: translate(-176px, 8px) rotate(-12deg); }
.papers.in:hover .p3 { transform: translate(176px, 8px) rotate(12deg); }
@keyframes float { 50% { transform: translateY(-14px); } }

.wf-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 56px; padding: 22px 26px; border-radius: var(--radius); border: 1px solid rgba(74, 222, 128, 0.28); background: rgba(74, 222, 128, 0.05); }
.wf-trust strong { display: inline-flex; align-items: center; gap: 10px; font: 600 17px var(--font-display); color: #b6f3cb; }
.wf-trust strong .icon { color: var(--ok); }
.wf-trust ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.wf-trust li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14.5px; }
.wf-trust li .icon { width: 18px; height: 18px; color: var(--ok); }

/* ---------------------------------------------------------------- inner pages */
.page-hero { position: relative; padding: 150px 0 50px; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); background: radial-gradient(600px 300px at 80% 0%, rgba(252, 178, 63, 0.12), transparent 70%); }
.page-hero h1 { font-size: clamp(38px, 5vw, 64px); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.two-col h2, .narrow > h2 { font-size: 28px; margin-bottom: 16px; }
.two-col p { color: var(--muted); }
.contact-card { margin-top: 22px; }
.contact-card h3 { margin: 0 0 12px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact-list li { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.contact-list span { color: var(--muted); }
.contact-list span + span { color: var(--text); text-align: end; }
.contact-list a { color: var(--amber); font-family: var(--mono); }
.numbered { padding-inline-start: 22px; color: var(--muted); display: grid; gap: 10px; margin: 0 0 26px; }
.numbered li::marker { color: var(--amber); font-weight: 700; }
.prose { color: var(--muted); }
.prose h2 { color: var(--text); font-size: 26px; margin: 48px 0 14px; padding-top: 20px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.prose h3 { color: var(--text); font-size: 19px; margin: 30px 0 10px; scroll-margin-top: 90px; }
.prose strong { color: var(--text); }
.prose code { font: 0.88em var(--mono); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--text); unicode-bidi: isolate; }
.prose ul, .prose ol { padding-inline-start: 22px; }
.prose li { margin: 6px 0; }
.prose .table { overflow-x: auto; margin: 16px 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line-2); padding: 8px 12px; text-align: start; vertical-align: top; }
.prose th { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.notices { margin-top: 18px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); font-family: "Inter", sans-serif; font-size: 14.5px; }
.notices h3:first-child { margin-top: 0; }
.docs-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; }
.docs-toc { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: auto; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); font-size: 14.5px; }
.docs-toc ol { margin: 10px 0 0; padding-inline-start: 20px; display: grid; gap: 6px; color: var(--muted); }
.docs-toc a:hover { color: var(--amber); }
.manual > h2:first-of-type { border-top: 0; margin-top: 0; }
/* inner pages: headings sized for reading, above the section headline sizes */
[dir] .section .prose h2 { font-size: 26px; }
[dir] .section .two-col h2, [dir] .section .narrow > h2 { font-size: 28px; }
[dir] .section .nf-col h2 { font-size: 22px; }
.nf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.nf-col h2 { font-size: 22px; }
.nf-col p { color: var(--muted); }
.nf-links { display: flex; flex-wrap: wrap; gap: 14px; }
.nf-links a { color: var(--amber); }

/* ---------------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--line); padding: 64px 0 32px; background: #050607; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand img { height: 40px; width: auto; }
.footer-brand p { color: var(--muted); font-size: 15px; max-width: 34ch; }
.footer-brand .by { height: 18px; opacity: .7; }
.footer h2 { font: 600 13px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin: 6px 0 14px; }
[dir="rtl"] .footer h2 { font-family: var(--font); letter-spacing: 0; font-size: 14px; }
.footer-grid a { display: block; color: var(--muted); padding: 4px 0; font-size: 15px; }
.footer-grid a:hover { color: var(--amber); }
[dir="rtl"] .footer-grid a[dir="ltr"] { text-align: right; }
.footer-address { display: block; color: var(--muted); padding: 4px 0; font-size: 15px; }
.footer-langs { display: flex; gap: 14px; margin-top: 8px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }
.footer-base p { margin: 0; }

/* ---------------------------------------------------------------- motion */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.grid-3 > .reveal:nth-child(3n+2), .grid-4 > .reveal:nth-child(4n+2), .pkgs > :nth-child(2), .steps > :nth-child(2) { transition-delay: .08s; }
.grid-3 > .reveal:nth-child(3n), .grid-4 > .reveal:nth-child(4n+3), .pkgs > :nth-child(3), .steps > :nth-child(3) { transition-delay: .16s; }
.grid-4 > .reveal:nth-child(4n) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .console, [dir="rtl"] .console { transform: none; }
  .jcard, [dir="rtl"] .jcard, .jstep:nth-child(odd) .jcard, [dir="rtl"] .jstep:nth-child(odd) .jcard { opacity: 1; transform: none; }
  .wf-scanline { display: none; }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1240px) {
  .pkgs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1240px) {
  .topbar-cta { display: none; }
}
@media (max-width: 1100px) {
  .mainnav > a { padding: 8px 8px; font-size: 14px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .search-grid, .langs-grid, .security-top { grid-template-columns: 1fr; gap: 48px; }
  .console, [dir="rtl"] .console { transform: none; }
  .flow { grid-template-columns: 1fr; gap: 18px; justify-items: center; }
  .flow-line { width: 2px; height: 48px; margin: 0; background: linear-gradient(180deg, rgba(252, 178, 63, 0.1), rgba(252, 178, 63, 0.6), rgba(252, 178, 63, 0.1)); }
  .flow-line i, [dir="rtl"] .flow-line i { left: -3px; animation-name: travel-v; }
  .flow-line span { top: 50%; left: 18px; transform: translateY(-50%); }
  @keyframes travel-v { from { top: 0; } to { top: calc(100% - 8px); } }
  .cam-stack { grid-template-columns: repeat(2, auto); }
  .wf-stage, .wf-tools-head { grid-template-columns: 1fr; }
  .wf-cam .feed canvas { aspect-ratio: 16 / 9; height: auto; }
  .wf-numbers { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1000px) {
  .menu-toggle { display: inline-flex; margin-inline-start: auto; }
  .mainnav { position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 16px 20px; background: rgba(7, 8, 10, 0.97); border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .35s ease; max-height: calc(100vh - 72px); overflow: auto; }
  .menu-open .mainnav { transform: none; }
  .mainnav > a { padding: 14px 8px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .langs { margin: 16px 0 0; justify-content: center; }
  .langs a { font-size: 15px; padding: 8px 14px; }
}
@media (max-width: 900px) {
  .grid-3, .steps, .pkgs, .two-col, .nf { grid-template-columns: 1fr; }
  .wall-grid { grid-template-columns: repeat(2, 1fr); }
  .scen-grid { grid-template-columns: repeat(2, 1fr); }
  .wall-grid .wide { grid-column: 1 / -1; grid-row: auto; }
  .wall-grid .wide canvas { aspect-ratio: 16 / 9; height: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .docs-grid { grid-template-columns: 1fr; }
  .docs-toc { position: static; max-height: none; }
  .section { padding: 84px 0; }
  .rings { grid-template-columns: 1fr; justify-items: center; }
  .journey-line { left: auto; inset-inline-start: 25px; }
  .jstep { grid-template-columns: 52px minmax(0, 1fr); gap: 16px; align-items: start; }
  .jstep + .jstep { margin-top: 0; }
  .jdot { grid-column: 1; }
  .jcard, .jstep:nth-child(odd) .jcard, [dir="rtl"] .jcard, [dir="rtl"] .jstep:nth-child(odd) .jcard { grid-column: 2; transform: translateY(16px); }
  .wf-journey-wrap, .wf-tools { margin-top: 84px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding-top: 110px; }
  .grid-4 { grid-template-columns: 1fr; }
  .results { grid-template-columns: repeat(2, 1fr); }
  .alerts { grid-template-columns: 1fr; }
  .alert-card:nth-child(2) { transform: none; }
  .console-body { grid-template-columns: 1fr; }
  .console-side { grid-template-rows: none; grid-template-columns: repeat(3, 1fr); }
  .console-side .feed canvas { aspect-ratio: 16 / 9; height: auto; }
  .flow { padding: 24px 16px; }
  .actions .btn { width: 100%; }
  .card, .pkg, .step, .road-item { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .scen-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .ring { padding: 10px; }
  .wf-stage { padding: 8px; border-radius: 20px; }
  .wf-board { padding: 14px; }
  .wf-stats { grid-template-columns: repeat(2, 1fr); }
  .wf-rows li { grid-template-columns: 32px minmax(0, 1fr) auto; }
  .wf-rows .wf-time { display: none; }
  .wf-numbers div { padding: 20px 16px; }
  .jcard { padding: 20px; }
  .papers { height: 240px; }
  .paper { width: 150px; height: 200px; margin-left: -75px; }
  .papers.in .p1, .papers.in:hover .p1 { transform: translate(-82px, 14px) rotate(-10deg); }
  .papers.in .p3, .papers.in:hover .p3 { transform: translate(82px, 14px) rotate(10deg); }
  .wf-trust { padding: 20px; }
}
