/* ============ tokens ============ */
:root {
  --bg: #0b1026; --bg-2: #10173a; --bg-3: #172050;
  --line: #222c5e; --line-2: #313d7e;
  --fg: #f1f3ff; --fg-2: #b9c1e8; --fg-3: #8e97c8;

  --lime: #c8f542; --coral: #ff6f5e; --sky: #52c7ff; --sun: #ffd046; --pink: #ff7ccb; --mint: #45e3a8;
  --ink: #0b1026;

  /* light surfaces used inside the demo apps */
  --paper: #f6f7fc; --paper-2: #ffffff; --paper-line: #e3e6f2; --paper-ink: #151a36; --paper-ink-2: #535a7e; --paper-ink-3: #62698c;

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --ar: "Cairo", "Figtree", sans-serif;

  --gutter: clamp(16px, 4vw, 48px); --maxw: 1280px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

/* ============ base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; scrollbar-color: var(--line-2) var(--bg); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; color: var(--fg); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background-color: var(--bg);
  background-image: radial-gradient(circle at 1px 1px, rgb(142 151 200 / .13) 1px, transparent 0);
  background-size: 26px 26px;
}
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-2); border: 3px solid var(--bg); border-radius: 8px; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; text-wrap: balance; } p { margin: 0; text-wrap: pretty; }
b { font-weight: 600; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
kbd { font: 500 11.5px/1 var(--mono); padding: 3px 6px; border-radius: 4px; border: 1px solid var(--line-2); border-bottom-width: 2px; background: var(--bg-2); color: var(--fg-2); }
.skip { position: absolute; inset-inline-start: 8px; top: -80px; z-index: 200; background: var(--lime); color: var(--ink); padding: 8px 14px; border-radius: 6px; font-weight: 700; }
.skip:focus { top: 8px; }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic--xs { width: 14px; height: 14px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--fg-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkish:hover { color: var(--fg); }

/* ============ buttons ============ */
.btn { --h: 48px; display: inline-flex; align-items: center; gap: 10px; height: var(--h); padding: 0 22px; border-radius: 12px; border: 1.5px solid transparent; font: 700 15.5px/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .3s var(--ease), background-color .25s, border-color .25s, color .25s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: #d9ff6b; }
.btn--ghost { background: var(--bg-2); color: var(--fg); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--fg-3); }
.btn--text { color: var(--fg-2); padding: 0 8px; }
.btn--text:hover { color: var(--fg); transform: none; }
.btn--sm { --h: 38px; padding: 0 16px; font-size: 14.5px; border-radius: 10px; }
.btn--lg { --h: 56px; font-size: 16.5px; }
.btn--icon { width: var(--h); padding: 0; justify-content: center; }
.btn .ic-done { display: none; color: var(--mint); }
.btn.is-copied .ic-copy { display: none; } .btn.is-copied .ic-done { display: block; }

/* ============ nav ============ */
.nav { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 18px; height: 64px; padding: 0 var(--gutter); background: rgb(11 16 38 / .82); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: var(--lime); color: var(--ink); font: 800 16px/1 var(--display); letter-spacing: -0.04em; }
.brand__mark b { color: #3b4a00; font-weight: 800; }
.brand__name { font: 500 14px/1 var(--mono); color: var(--fg-2); }
.ping { display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-2); font-size: 12.5px; color: var(--fg-2); }
.ping b { color: var(--mint); font-weight: 600; }
.ping__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.ping__dot.is-beat { animation: pingbeat .6s var(--ease); }
@keyframes pingbeat { 0% { transform: scale(1.8); } 100% { transform: scale(1); } }
.ping__code { color: var(--ink); background: var(--mint); padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.ping__ms { min-width: 4ch; }
.nav__links { display: flex; gap: 2px; margin-inline-start: auto; }
.nav__links a { font-weight: 600; font-size: 15px; color: var(--fg-2); text-decoration: none; padding: 8px 13px; border-radius: 9px; transition: color .2s, background-color .2s; }
.nav__links a:hover, .nav__links a[aria-current="true"] { color: var(--fg); background: var(--bg-3); }
.lang-btn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--fg); cursor: pointer; font: 700 14px/1 var(--ar); transition: border-color .2s, background-color .2s; }
.lang-btn:hover { border-color: var(--lime); background: var(--bg-3); }
.lang-btn .ic { width: 16px; height: 16px; color: var(--lime); }
.lang-btn[lang="en"] { font-family: var(--font); }
.kbd-btn { display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 11px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--fg-2); cursor: pointer; font-size: 13px; }
.kbd-btn:hover { color: var(--fg); border-color: var(--fg-3); }
.kbd-btn .ic { width: 15px; height: 15px; }

/* ============ hero ============ */
.hero { max-width: var(--maxw); margin: 0 auto; padding: clamp(40px, 6vw, 84px) var(--gutter) 0; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__name { display: block; font: 800 clamp(3.2rem, 8.6vw, 6rem)/.9 var(--display); letter-spacing: -0.04em; }
.hero__role { display: block; margin-top: 18px; font: 600 clamp(1.4rem, 2.8vw, 2.1rem)/1.15 var(--display); letter-spacing: -0.02em; color: var(--fg-2); max-width: 20ch; }
.hero__role em { font-style: normal; color: var(--ink); background: var(--lime); padding: 0 .18em; border-radius: .18em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero__lede { margin-top: 22px; max-width: 54ch; font-size: clamp(1.05rem, 1.4vw, 1.18rem); color: var(--fg-2); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.hero__facts { list-style: none; margin: 36px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 34px; }
.hero__facts li { display: grid; }
.hero__facts b { font: 800 clamp(1.7rem, 2.6vw, 2.2rem)/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.hero__facts li:nth-child(1) b { color: var(--sky); } .hero__facts li:nth-child(2) b { color: var(--coral); } .hero__facts li:nth-child(3) b { color: var(--pink); }
.hero__facts span { font-size: 14px; color: var(--fg-3); }

/* api console */
.console { border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line-2); overflow: hidden; }
.console__bar { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; border-bottom: 1px solid var(--line); }
.verb { font-size: 12.5px; font-weight: 600; color: var(--ink); background: var(--mint); padding: 4px 8px; border-radius: 6px; }
.console__url { flex: 1; min-width: 0; font-size: 13.5px; color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.console__url b { color: var(--fg); font-weight: 500; }
.console__run { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 9px; border: 0; background: var(--sky); color: var(--ink); font: 700 14px/1 var(--font); cursor: pointer; transition: transform .2s var(--ease); }
.console__run:hover { transform: translateY(-1px); }
.console__run .ic { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.console__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 10px 16px; font-size: 12px; color: var(--fg-3); border-bottom: 1px solid var(--line); }
.console__meta .st { color: var(--mint); font-weight: 600; }
.console__meta i { font-style: normal; color: var(--sun); }
.console__meta i.hit { color: var(--mint); }
.console__body { position: relative; padding: 18px 18px 18px 16px; min-height: 290px; }
.avatar { position: relative; float: right; margin: 0 0 12px 18px; width: 132px; height: 132px; border-radius: 24px; border: 3px solid var(--pink); overflow: hidden; display: grid; place-items: center; background: var(--pink); color: var(--ink); font: 800 38px/1 var(--display); transform: rotate(3deg); }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.json { margin: 0; font-size: 13.5px; line-height: 1.75; color: var(--fg-2); white-space: pre-wrap; word-break: break-word; }
.json k { color: var(--sky); } .json s { color: var(--sun); text-decoration: none; } .json n { color: var(--pink); }
.json .caret { display: inline-block; width: 8px; height: 1.1em; vertical-align: -3px; background: var(--lime); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.console__foot { padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--fg-3); }

/* ============ sections ============ */
.sect, .demos { max-width: var(--maxw); margin: 0 auto; padding: clamp(90px, 11vw, 150px) var(--gutter) 0; }
.sect__head { display: grid; gap: 14px; margin-bottom: clamp(32px, 4vw, 48px); max-width: 820px; }
.sect__head h2 { font: 800 clamp(2.2rem, 5vw, 3.8rem)/1 var(--display); letter-spacing: -0.035em; }
.sect__head h2 span { color: var(--lime); }
#journey .sect__head h2 span { color: var(--sky); }
#stack .sect__head h2 span { color: var(--sun); }
.sect__head p { font-size: 1.1rem; color: var(--fg-2); max-width: 60ch; }

/* ============ app window ============ */
.app { border-radius: 20px; background: var(--bg-2); border: 1px solid var(--line-2); overflow: hidden; }
.app__chrome { display: flex; align-items: flex-end; gap: 14px; padding: 12px 14px 0; background: var(--bg-3); }
.dots { display: inline-flex; gap: 7px; padding-bottom: 14px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--coral); }
.dots i:nth-child(2) { background: var(--sun); } .dots i:nth-child(3) { background: var(--mint); }
.app__tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.app__tabs::-webkit-scrollbar { display: none; }
.app__tabs button { display: inline-flex; align-items: center; gap: 9px; padding: 11px 16px 12px; border: 0; border-radius: 11px 11px 0 0; background: transparent; color: var(--fg-2); font: 600 14.5px/1 var(--font); cursor: pointer; white-space: nowrap; transition: background-color .2s, color .2s; }
.app__tabs button:hover { color: var(--fg); background: rgb(255 255 255 / .04); }
.app__tabs button[aria-selected="true"] { background: var(--paper); color: var(--paper-ink); }
.tab-dot { width: 9px; height: 9px; border-radius: 3px; background: var(--c); }
.app__url { display: flex; align-items: center; gap: 10px; white-space: nowrap; min-width: 0; padding: 9px 14px; background: var(--paper); border-bottom: 1px solid var(--paper-line); font-size: 12.5px; color: var(--paper-ink-2); }
.lock { width: 10px; height: 10px; border: 2px solid var(--paper-ink-3); border-radius: 3px; }
.app__url [data-url] { overflow: hidden; text-overflow: ellipsis; min-width: 0; color: inherit; text-decoration: none; }
.app__url a[data-url][href]:hover { color: var(--paper-ink); text-decoration: underline; }
.demo-tag.is-real { color: #07623f; background: #dcfbe9; }
.demo-tag { flex: none; margin-left: auto; font-size: 11.5px; color: #7a5a00; background: #fff3c4; padding: 3px 8px; border-radius: 999px; }

.panel { background: var(--paper); color: var(--paper-ink); }
.panel[hidden] { display: none; }
.panel__info { display: grid; grid-template-columns: minmax(0, 1.4fr) auto auto; gap: 18px 40px; align-items: center; padding: 22px 24px; background: var(--bg-2); color: var(--fg); }
.panel__info h3 { font: 800 1.5rem/1.1 var(--display); letter-spacing: -0.02em; }
.panel__info p { margin-top: 6px; color: var(--fg-2); font-size: 15.5px; max-width: 62ch; }
.mini-figs { display: flex; gap: 26px; margin: 0; }
.mini-figs div { display: flex; flex-direction: column-reverse; }
.mini-figs dt { font-size: 12.5px; color: var(--fg-3); }
.mini-figs dd { margin: 0; font: 800 1.6rem/1.1 var(--display); letter-spacing: -0.02em; color: var(--c); font-variant-numeric: tabular-nums; white-space: nowrap; }
.visit { display: inline-flex; align-items: center; gap: 9px; justify-self: end; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line-2); font: 500 13.5px/1 var(--mono); text-decoration: none; color: var(--fg); white-space: nowrap; transition: border-color .2s; }
a.visit:hover { border-color: var(--mint); }
.visit--quiet { color: var(--fg-2); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px rgb(69 227 168 / .2); }
.live-dot--sun { background: var(--sun); box-shadow: 0 0 0 3px rgb(255 208 70 / .2); }
.live-dot--sky { background: var(--sky); box-shadow: 0 0 0 3px rgb(82 199 255 / .2); }

/* view switch + real-site gallery */
.viewsw { display: inline-flex; gap: 4px; margin: 12px 14px 0; padding: 4px; border-radius: 11px; background: #e9ebf5; }
.viewsw button { height: 32px; padding: 0 13px; border: 0; border-radius: 8px; background: transparent; color: var(--paper-ink-2); font: 700 13.5px/1 var(--font); cursor: pointer; }
.viewsw button[aria-pressed="true"] { background: var(--paper-2); color: var(--paper-ink); box-shadow: 0 1px 2px rgb(21 26 54 / .12); }
.gal { padding: 12px 14px 16px; }
.gal__top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.gal__nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; mask-image: linear-gradient(to right, #000 92%, transparent); -webkit-mask-image: linear-gradient(to right, #000 92%, transparent); }
.gal__visit { flex: none; position: relative; display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 16px 0 14px; border-radius: 11px; background: var(--lime); color: var(--ink); font: 800 14.5px/1 var(--font); text-decoration: none; white-space: nowrap; transition: transform .25s var(--ease), background-color .2s; }
.gal__visit:hover { transform: translateY(-2px); background: #d9ff6b; }
.gal__visit .ic { width: 16px; height: 16px; stroke-width: 2.4; }
.gal__pulse { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #0c7a4f; }
.gal__pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #0c7a4f; opacity: 0; animation: livepulse 2.4s var(--ease) infinite; }
@keyframes livepulse { 0% { transform: scale(.4); opacity: .9; } 70%, 100% { transform: scale(1.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .gal__pulse::after { animation: none; } }
.gal__nav::-webkit-scrollbar { display: none; }
.gal__nav button { position: relative; overflow: hidden; height: 34px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--paper-line); background: var(--paper-2); color: var(--paper-ink-2); font: 600 13.5px/1 var(--font); cursor: pointer; white-space: nowrap; }
.gal__nav button:hover { color: var(--paper-ink); border-color: var(--paper-ink-3); }
.gal__nav button[aria-selected="true"] { color: var(--paper-ink); border-color: var(--paper-ink); }
.gal__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--c); transform: scaleX(0); transform-origin: left; }
.gal__nav button[aria-selected="true"] .gal__bar { transform: scaleX(var(--p, 0)); }
.gal__frame { position: relative; height: clamp(240px, 46vw, 600px); border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--paper-line); }
.gal__slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), transform .8s var(--ease), visibility 0s .6s; transform: scale(1.02); }
.gal__slide.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .6s var(--ease), transform .8s var(--ease); }
.gal__slide > img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform 1.2s var(--ease); }
a.gal__slide { cursor: pointer; }
a.gal__slide:hover > img { transform: scale(1.015); }
.gal__open { position: absolute; left: 50%; bottom: 22px; transform: translate(-50%, 10px); display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 12px; background: var(--ink); color: var(--lime); font: 800 15px/1 var(--font); white-space: nowrap; opacity: 0; transition: opacity .3s var(--ease), transform .4s var(--ease); pointer-events: none; }
.gal__open .ic { width: 16px; height: 16px; stroke-width: 2.4; }
a.gal__slide:hover .gal__open, a.gal__slide:focus-visible .gal__open { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) { .gal__open { opacity: 1; transform: translate(-50%, 0); padding: 10px 14px; font-size: 13.5px; bottom: 14px; } }
.gal__badge { position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 7px; background: rgb(11 16 38 / .85); color: #fff; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; pointer-events: none; }
.gal__badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }
.gal__arrows { position: absolute; inset: auto 12px 12px auto; z-index: 2; display: flex; gap: 6px; }
.gal__arrows button { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 0; background: rgb(11 16 38 / .82); color: #fff; cursor: pointer; }
.gal__arrows .ic { width: 18px; height: 18px; stroke-width: 2.4; }
.gal__arrows button:hover { background: var(--ink); color: var(--lime); }
.gal__slide--phone { display: grid; place-items: center; background: radial-gradient(circle at 1px 1px, #d8dcee 1px, transparent 0) 0 0 / 18px 18px, #eef0f8; }
.phone { height: 92%; aspect-ratio: 390 / 844; border-radius: 34px; border: 10px solid #151a36; overflow: hidden; background: #fff; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
@media (prefers-reduced-motion: reduce) { .gal__slide, .gal__slide.is-on { transition: none; } }

/* shared light-card */
.card { background: var(--paper-2); border: 1px solid var(--paper-line); border-radius: 14px; padding: 14px 16px; min-width: 0; }
.card__h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; font-weight: 700; font-size: 15px; }
.card__h small { font-weight: 500; font-size: 12.5px; color: var(--paper-ink-3); }

/* ---- ElAbrar dashboard ---- */
.dash { position: relative; display: grid; grid-template-columns: 196px minmax(0, 1fr); min-height: 540px; }
.dash[dir="rtl"] { font-family: var(--ar); }
.dash__side { display: flex; flex-direction: column; gap: 4px; padding: 18px 12px; background: #1d1840; color: #cfd0f0; }
.dash__logo { font: 800 20px/1 var(--display); color: #fff; padding: 4px 10px 18px; }
.dash[dir="rtl"] .dash__logo { font-family: var(--ar); }
.dash__side a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 9px; font-size: 14.5px; font-weight: 600; cursor: default; }
.dash__side a.is-on { background: var(--pink); color: #2a0b1f; }
.dash__main { padding: 20px 22px 22px; display: grid; gap: 16px; align-content: start; min-width: 0; }
.dash__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dash__top h3 { font: 800 1.35rem/1.1 var(--display); letter-spacing: -0.02em; }
.dash[dir="rtl"] .dash__top h3 { font-family: var(--ar); }
.dash__tools { display: flex; align-items: center; gap: 10px; }
.chip-btn { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--paper-line); background: var(--paper-2); color: var(--paper-ink); font: 600 14px/1 var(--ar); cursor: pointer; }
.chip-btn:hover { border-color: var(--paper-ink-3); }
.bell { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--paper-2); border: 1px solid var(--paper-line); }
.bell b { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--coral); color: var(--ink); font: 700 11px/18px var(--font); text-align: center; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--paper-2); border: 1px solid var(--paper-line); }
.kpi span { font-size: 13px; color: var(--paper-ink-2); font-weight: 600; }
.kpi b { font: 800 1.7rem/1.1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi em { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--paper-ink-3); }
.kpi em.up { color: #07623f; } .kpi em.down { color: #c2412f; }
.kpi:nth-child(1) { background: #ffe4f3; border-color: #ffc7e6; }
.kpi:nth-child(2) { background: #e3f6ff; border-color: #bfe8ff; }
.kpi:nth-child(3) { background: #e2fbf0; border-color: #b8f1d8; }
.kpi:nth-child(4) { background: #fff5d6; border-color: #ffe79a; }
.kpi.is-bump b { animation: bump .6s var(--ease); }
@keyframes bump { 0% { transform: scale(1.12); color: #c2185b; } 100% { transform: scale(1); } }
.dash__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; }
.otable { width: 100%; border-collapse: collapse; font-size: 14px; }
.otable th { text-align: start; font-size: 12px; font-weight: 600; color: var(--paper-ink-3); padding: 6px 8px; border-bottom: 1px solid var(--paper-line); }
.otable td { padding: 9px 8px; border-bottom: 1px solid var(--paper-line); white-space: nowrap; }
.otable tr { cursor: pointer; transition: background-color .2s; }
.otable tbody tr:hover { background: #f4f1ff; }
.otable tbody tr.is-sel { background: #ffeaf6; }
.otable tbody tr.is-new { animation: rownew 1.6s var(--ease); }
@keyframes rownew { 0% { background: #d9ff8a; } 100% { background: transparent; } }
.otable td:first-child { font-family: var(--mono); font-size: 13px; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--pending { background: #fff3c4; color: #8a6100; }
.status--confirmed { background: #e3f6ff; color: #0b6a9c; }
.status--shipped { background: #efe8ff; color: #5b3cc4; }
.status--delivered { background: #dcfbe9; color: #0c7a4f; }
.ledger { display: grid; gap: 0; font-size: 14px; }
.ledger__row { display: grid; grid-template-columns: minmax(0, 1fr) 84px 84px; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--paper-line); align-items: center; }
.ledger__row--h { font-size: 12px; color: var(--paper-ink-3); font-weight: 600; padding-top: 0; }
.ledger__row span:nth-child(n+2) { text-align: end; font-family: var(--mono); font-size: 13px; }
.ledger__row--t { border-bottom: 0; font-weight: 700; }
.dash[dir="rtl"] .ledger__row span, .dash[dir="rtl"] .otable td:first-child { font-family: var(--ar); }
.ledger__ok { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #0c7a4f; background: #dcfbe9; padding: 5px 10px; border-radius: 999px; justify-self: start; }
.ledger__ok .ic { width: 14px; height: 14px; }
.toasts { position: absolute; bottom: 16px; right: 16px; display: grid; gap: 8px; z-index: 3; pointer-events: none; }
.dash[dir="rtl"] .toasts { right: auto; left: 16px; }
.toast { display: flex; gap: 10px; align-items: center; width: 290px; padding: 11px 14px; border-radius: 12px; background: #1d1840; color: #fff; font-size: 13.5px; }
.toast i { font-style: normal; font: 600 11px/1 var(--mono); color: #1d1840; background: var(--lime); padding: 4px 6px; border-radius: 5px; flex: none; }

/* ---- Luka store ---- */
.store { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); min-height: 540px; }
.store__shop { padding: 18px 20px 22px; }
.store__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.store__logo { font: 800 28px/1 var(--display); letter-spacing: -0.04em; color: #d9432f; }
.store__cart { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--paper-2); border: 1px solid var(--paper-line); }
.store__cart b { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--coral); color: var(--ink); font: 700 11.5px/20px var(--font); text-align: center; }
.store__cart.is-bump { animation: bump .6s var(--ease); }
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.prod { display: grid; gap: 8px; padding: 10px; border-radius: 14px; background: var(--paper-2); border: 1px solid var(--paper-line); text-align: start; font: inherit; color: inherit; cursor: pointer; transition: transform .3s var(--ease), border-color .2s; }
.prod:hover { transform: translateY(-3px); border-color: #ffb3a9; }
.prod__art { aspect-ratio: 4 / 3; border-radius: 10px; display: grid; place-items: center; background: var(--tint); }
.prod__art svg { width: 44%; height: auto; }
.prod__name { font-weight: 700; font-size: 14.5px; line-height: 1.25; }
.prod__row { display: flex; justify-content: space-between; align-items: center; }
.prod__price { font: 700 14px/1 var(--mono); }
.prod__add { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border-radius: 8px; border: 0; background: var(--paper-ink); color: #fff; font: 700 12.5px/1 var(--font); cursor: pointer; }
.prod__add:hover { background: var(--coral); }
.store__wire { display: flex; flex-direction: column; background: #121735; color: var(--fg); padding: 16px; min-width: 0; }
.wire__h { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--fg-3); margin-bottom: 12px; }
.switch { display: inline-flex; align-items: center; gap: 9px; font: 600 13.5px/1 var(--font); color: var(--fg); cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__ui { width: 38px; height: 22px; border-radius: 11px; background: var(--line-2); position: relative; transition: background-color .25s; }
.switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease); }
.switch input:checked + .switch__ui { background: var(--coral); }
.switch input:checked + .switch__ui::after { transform: translateX(16px); }
.switch input:focus-visible + .switch__ui { outline: 2px solid var(--lime); outline-offset: 2px; }
.reqs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; flex: 1; align-content: start; font-size: 12.5px; overflow: hidden; max-height: 400px; }
.reqs__empty { color: var(--fg-3); font-family: var(--font); font-size: 14px; padding: 18px 4px; }
.req { padding: 10px 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); display: grid; gap: 7px; }
.req__top { display: flex; gap: 8px; align-items: center; }
.req__top .m { color: var(--mint); font-weight: 600; } .req__top .m--post { color: var(--sun); }
.req__top .u { flex: 1; min-width: 0; color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.req__top .t { color: var(--fg); font-weight: 600; }
.req__spans { display: grid; gap: 4px; }
.rspan { display: grid; grid-template-columns: 92px minmax(0, 1fr) 46px; gap: 8px; align-items: center; color: var(--fg-3); font-size: 11.5px; }
.rspan__track { position: relative; height: 8px; border-radius: 4px; background: rgb(255 255 255 / .05); }
.rspan__bar { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: var(--c); transform-origin: left; }
.rspan span:last-child { text-align: end; }
.badge { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 5px; }
.badge--hit { background: var(--mint); color: var(--ink); } .badge--miss { background: var(--sun); color: var(--ink); } .badge--off { background: var(--line-2); color: var(--fg); }
.wire__stats { display: flex; gap: 16px; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--fg-3); }
.wire__stats b { color: var(--fg); }
.wire__stats .linkish { margin-left: auto; font-size: 12.5px; }

/* ---- Tailor ERP ---- */
.erp { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; padding: 18px; min-height: 540px; }
.erp__board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; min-width: 0; }
.col { background: #eef0f8; border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.col__h { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; color: var(--paper-ink-2); padding: 2px 2px 4px; }
.col__h b { font: 600 11.5px/1 var(--mono); background: var(--paper-2); padding: 3px 6px; border-radius: 5px; }
.job { display: grid; gap: 4px; padding: 10px; border-radius: 10px; background: var(--paper-2); border: 1px solid var(--paper-line); font-size: 13px; }
.job__id { font: 600 11.5px/1 var(--mono); color: var(--paper-ink-3); }
.job__name { font-weight: 700; line-height: 1.25; }
.job__meta { color: var(--paper-ink-2); font-size: 12.5px; }
.job__go { margin-top: 4px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 28px; border-radius: 7px; border: 0; background: #1d1840; color: #fff; font: 700 12px/1 var(--font); cursor: pointer; }
.job__go:hover { background: #3a2f7a; }
.job__go .ic { width: 13px; height: 13px; }
.job.is-moved { animation: rownew 1.4s var(--ease); }
.col--done .job { background: #effbe9; border-color: #cdeec0; }
.erp__side { display: grid; gap: 12px; align-content: start; min-width: 0; }
.jobs, .audit { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 12.5px; }
.jobs li { display: grid; gap: 5px; }
.jobs__top { display: flex; justify-content: space-between; gap: 8px; color: var(--paper-ink); }
.jobs__top em { font-style: normal; color: var(--paper-ink-3); }
.jobs__bar { height: 6px; border-radius: 3px; background: #eef0f8; overflow: hidden; }
.jobs__bar i { display: block; height: 100%; width: 0; background: var(--sun); border-radius: 3px; }
.jobs li.is-ok .jobs__top em { color: #0c7a4f; }
.audit { max-height: 214px; overflow: hidden; }
.audit li { padding: 7px 9px; border-radius: 8px; background: #f6f7fc; color: var(--paper-ink-2); line-height: 1.45; }
.audit li b { color: var(--paper-ink); font-weight: 600; }
.audit li.is-new { animation: rownew 1.4s var(--ease); }

/* ============ journey waterfall ============ */
.wf { position: relative; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line-2); padding: 0 0 8px; overflow: clip; }
.wf__axis { position: relative; height: 40px; margin-left: 330px; margin-right: 24px; font-size: 12px; color: var(--fg-3); border-bottom: 1px solid var(--line); }
.wf__axis span { position: absolute; top: 0; bottom: 0; left: calc(var(--m) / var(--total) * 100%); display: flex; align-items: center; padding-left: 7px; border-left: 1px solid var(--line-2); }
.wf__axis span::after { content: ""; position: absolute; left: -1px; top: 100%; height: 2000px; border-left: 1px solid var(--line); pointer-events: none; }
.wf__axis .now { color: var(--mint); }
.wf__axis .now::after { border-left: 1px dashed rgb(69 227 168 / .45); }
.wf__rows { list-style: none; margin: 0; padding: 8px 0 0; position: relative; z-index: 1; }
.wspan__row { width: 100%; display: grid; grid-template-columns: 330px minmax(0, 1fr); align-items: center; min-height: 46px; padding: 0 24px 0 0; background: none; border: 0; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.wspan__row:hover { background: rgb(255 255 255 / .03); }
.wspan__op { display: flex; align-items: center; gap: 9px; padding-left: 20px; min-width: 0; font-weight: 600; font-size: 15px; }
.wspan__op small { font: 500 11.5px/1 var(--mono); padding: 4px 7px; border-radius: 6px; color: var(--ink); background: var(--c); flex: none; }
.wspan__op span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wspan--child .wspan__op { padding-left: 42px; }
.wspan__track { position: relative; height: 46px; }
.wspan__bar { position: absolute; top: 50%; height: 16px; margin-top: -8px; border-radius: 8px; left: calc(var(--s) / var(--total) * 100%); width: calc((var(--e) - var(--s)) / var(--total) * 100%); background: var(--c); transform-origin: left center; }
.wspan__pin { position: absolute; top: 50%; left: calc(var(--s) / var(--total) * 100%); width: 14px; height: 14px; margin: -7px 0 0 -7px; transform: rotate(45deg); border-radius: 3px; background: var(--c); }
.wspan__dur { position: absolute; top: 50%; transform: translateY(-50%); left: calc(var(--e) / var(--total) * 100% + 10px); font: 500 12px/1 var(--mono); color: var(--fg-3); white-space: nowrap; }
.wspan.is-late .wspan__dur { left: auto; right: calc(100% - var(--s) / var(--total) * 100% + 10px); }
.wspan__detail { margin: 2px 24px 12px 20px; padding: 16px 18px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line-2); display: grid; gap: 12px; }
.wspan__detail[hidden] { display: none; }
.wspan__detail ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; color: var(--fg-2); font-size: 15.5px; max-width: 80ch; }
.wspan__detail li { padding-left: 18px; position: relative; }
.wspan__detail li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 7px; height: 7px; border-radius: 2px; background: var(--c); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font: 500 12px/1 var(--mono); padding: 6px 9px; border-radius: 6px; background: var(--bg-3); color: var(--fg-2); }
.wf__cursor { position: absolute; top: 40px; bottom: 8px; width: 1px; background: rgb(241 243 255 / .5); pointer-events: none; opacity: 0; transition: opacity .2s; z-index: 2; }
.wf__cursor span { position: absolute; top: -30px; transform: translateX(-50%); font-size: 11.5px; background: var(--lime); color: var(--ink); padding: 3px 7px; border-radius: 5px; white-space: nowrap; font-weight: 600; }
.wf.is-hover .wf__cursor { opacity: 1; }

/* ============ stack as SSMS grid ============ */
.ssms { border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); background: var(--bg-2); }
.ssms__tabs { display: flex; gap: 2px; padding: 8px 10px 0; background: var(--bg-3); overflow-x: auto; scrollbar-width: none; }
.ssms__tabs::-webkit-scrollbar { display: none; }
.ssms__tabs button { height: 36px; padding: 0 14px; border: 0; border-radius: 9px 9px 0 0; background: transparent; color: var(--fg-3); font: 500 13px/1 var(--mono); cursor: pointer; white-space: nowrap; }
.ssms__tabs button:hover { color: var(--fg); }
.ssms__tabs button[aria-selected="true"] { background: var(--bg-2); color: var(--sun); }
.ssms__q { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 16px 18px; font-size: 14px; color: var(--fg-2); border-bottom: 1px solid var(--line); }
.ssms__q code { font: inherit; flex: 1; min-width: 0; }
.ssms__q .str { color: var(--sun); } .ssms__q .num { color: var(--pink); }
.spin { display: none; width: 13px; height: 13px; border-radius: 50%; border: 2px solid rgb(11 16 38 / .25); border-top-color: var(--ink); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ssms__run.is-busy .spin { display: inline-block; }
.ssms__run.is-busy .ic { display: none; }
.ssms__run.is-busy { cursor: progress; opacity: .85; }
.ssms__run:hover { background: #ffdc6b; }
.ssms__grid.is-busy { opacity: .35; }
.ssms__db { margin-left: auto; }
.ssms__status .run { color: var(--sun); }
.ssms__row.is-new { animation: rowin .5s var(--ease); }
@keyframes rowin { from { opacity: 0; transform: translateX(-10px); background: rgb(255 208 70 / .12); } to { opacity: 1; transform: none; } }
.ssms__q .kw { color: var(--sky); font-weight: 600; }
.ssms__run { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 9px; border: 0; background: var(--sun); color: var(--ink); font: 700 13.5px/1 var(--font); cursor: pointer; }
.ssms__run .ic { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.ssms__run kbd { background: rgb(0 0 0 / .1); border-color: rgb(0 0 0 / .15); color: var(--ink); }
.ssms__grid { font-size: 15px; }
.ssms__row { display: grid; grid-template-columns: var(--cols, 48px 200px minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.ssms__row > span { padding: 12px 14px; border-right: 1px solid var(--line); }
.ssms__row > span:last-child { border-right: 0; }
.ssms__row > span { color: var(--fg-2); min-width: 0; overflow-wrap: anywhere; }
.ssms__row a { color: var(--sky); }
.ssms__row > span:first-child { color: var(--fg-3); text-align: center; background: var(--bg-3); font-size: 12.5px; }
.ssms__row--h { font-size: 12px; color: var(--fg-3); }
.ssms__row--h > span { padding: 9px 14px; background: var(--bg-3); }
.ssms__row:not(.ssms__row--h):hover { background: rgb(255 255 255 / .03); }
.ssms__row .lay { font-weight: 700; color: var(--c, var(--fg)); }
.ssms__status { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 10px 18px; font-size: 12.5px; color: var(--fg-3); background: var(--bg-3); }
.ssms__status .ok { color: var(--mint); }

.more { margin-top: clamp(56px, 7vw, 80px); }
.more h3 { font: 800 1.5rem/1.1 var(--display); letter-spacing: -0.02em; margin-bottom: 18px; }
.more ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.more li { display: grid; gap: 3px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.more li b { font-size: 16px; }
.more li span { color: var(--fg-2); font-size: 15px; }
.more a { color: var(--lime); }

/* ============ contact ============ */
.contact { padding-bottom: clamp(90px, 10vw, 140px); }
.contact__card { position: relative; border-radius: 28px; padding: clamp(32px, 6vw, 72px); background: var(--lime); color: var(--ink); overflow: hidden; }
.contact__card .hint { font-size: 13px; color: #34450a; margin-bottom: 22px; }
.contact__card .hint span { color: #0c5a2c; font-weight: 600; }
.contact__card h2 { font: 800 clamp(2.6rem, 7vw, 5.6rem)/.95 var(--display); letter-spacing: -0.04em; max-width: 13ch; }
.contact__card h2 span { background: var(--ink); color: var(--lime); padding: 0 .12em; border-radius: .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.contact__lede { margin-top: 20px; max-width: 52ch; font-size: 1.15rem; color: #2a3608; }
.contact__card .btn--lime { background: var(--ink); color: var(--lime); }
.contact__card .btn--lime:hover { background: #1b2250; }
.contact__card .btn--ghost { background: rgb(11 16 38 / .08); color: var(--ink); border-color: rgb(11 16 38 / .25); }
.contact__card .btn--ghost:hover { border-color: var(--ink); }
.curl { margin-top: 28px; padding: 14px 16px; border-radius: 12px; background: var(--ink); color: var(--fg-2); font-size: 13.5px; overflow-x: auto; white-space: nowrap; }
.curl .p { color: var(--lime); margin-right: 8px; } .curl .s { color: var(--sun); } .curl .c { color: var(--fg-3); margin-left: 14px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--ink); }
.socials a:hover { text-decoration: underline; }

.foot { max-width: var(--maxw); margin: 0 auto; padding: 22px var(--gutter) 36px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; font-size: 12.5px; color: var(--fg-3); border-top: 1px solid var(--line); }
.foot b { color: var(--fg-2); font-weight: 500; }

/* ============ palette + terminal ============ */
.palette, .term { position: fixed; inset: 0; z-index: 100; display: grid; place-items: start center; padding: 12vh 16px 16px; background: rgb(6 9 24 / .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.palette[hidden], .term[hidden] { display: none; }
.palette__box { width: min(620px, 100%); border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line-2); overflow: hidden; }
.palette__in { width: 100%; height: 58px; padding: 0 20px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--fg); font: 500 17px/1 var(--font); outline: none; }
.palette__in::placeholder { color: var(--fg-3); }
.palette__list { list-style: none; margin: 0; padding: 8px; max-height: 360px; overflow-y: auto; }
.palette__list li { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; cursor: pointer; font-size: 15px; color: var(--fg-2); }
.palette__list li[aria-selected="true"] { background: var(--bg-3); color: var(--fg); }
.palette__list li i { width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--lime)); flex: none; }
.palette__list li small { margin-left: auto; font: 500 12px/1 var(--mono); color: var(--fg-3); }
.palette__foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--fg-3); }
.term__box { width: min(760px, 100%); border-radius: 14px; background: #070a19; border: 1px solid var(--line-2); overflow: hidden; }
.term__bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; font-size: 12.5px; color: var(--fg-3); background: var(--bg-2); }
.term__bar .dots { padding: 0; }
.term__bar .linkish { margin-left: auto; font-size: 12.5px; }
.term__out { height: min(46vh, 380px); overflow-y: auto; padding: 14px 16px 4px; font-size: 13.5px; line-height: 1.6; color: var(--fg-2); white-space: pre-wrap; }
.term__out .c { color: var(--lime); } .term__out .e { color: var(--coral); } .term__out .k { color: var(--sky); } .term__out .y { color: var(--sun); }
.term__line { display: flex; gap: 10px; padding: 8px 16px 14px; font-size: 13.5px; }
.term__line .p { color: var(--lime); white-space: nowrap; }
.term__line input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--fg); font: inherit; outline: none; caret-color: var(--lime); }
.flash { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); z-index: 120; padding: 11px 18px; border-radius: 12px; background: var(--fg); color: var(--ink); font: 700 14.5px/1.2 var(--font); opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease); }
.flash.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
.konami-rain { position: fixed; inset: 0; z-index: 110; pointer-events: none; overflow: hidden; }
.konami-rain span { position: absolute; top: -40px; font: 700 15px/1 var(--mono); }

/* ============ responsive ============ */
@media (max-width: 1100px) {
  .panel__info { grid-template-columns: minmax(0, 1fr); }
  .visit { justify-self: start; }
  .erp { grid-template-columns: minmax(0, 1fr); }
  .dash__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .nav__links { display: none; }
  .lang-btn { margin-inline-start: auto; }
  .store, .load { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash { grid-template-columns: minmax(0, 1fr); }
  .dash__side { flex-direction: row; overflow-x: auto; padding: 10px; align-items: center; }
  .dash__logo { padding: 0 10px 0 4px; }
  .dash__side a span { display: none; }
  .erp__board { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; padding-bottom: 6px; }
  .wf__axis { margin-left: 250px; }
  .wspan__row { grid-template-columns: 250px minmax(0, 1fr); }
  .more ul { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .gal__top { flex-direction: column; align-items: stretch; }
  .gal__visit { justify-content: center; }
  .gal__arrows { display: none; }
  .otable th:nth-child(2), .otable td:nth-child(2) { display: none; }
  .dash__main { padding: 16px 14px; }
  .card { padding: 12px; }
  .avatar { margin: 0 0 8px 12px; }
  .brand__name { display: none; }
  .ping { font-size: 11.5px; padding: 5px 9px; }
  .ping > span:nth-child(2) { display: none; }
  .nav .btn--sm { display: none; }
  .avatar { width: 76px; height: 76px; font-size: 26px; border-radius: 16px; }
  .json { font-size: 12.5px; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toast { width: 240px; }
  .wf__axis { margin-left: 16px; margin-right: 16px; }
  .wf__axis span:nth-child(odd):not(.now) { visibility: hidden; }
  .wf__axis .now { color: transparent; }
  .wspan__row { grid-template-columns: minmax(0, 1fr); padding: 10px 16px 4px; }
  .wspan__op { padding-left: 0; } .wspan--child .wspan__op { padding-left: 14px; }
  .wspan__op span { white-space: normal; }
  .wspan__track { height: auto; padding: 22px 0 4px; }
  .wspan__bar, .wspan__pin { top: 11px; }
  .wspan__dur, .wspan.is-late .wspan__dur { position: static; transform: none; display: block; }
  .wspan__detail { margin: 4px 16px 12px; }
  .wf__cursor { display: none; }
  .ssms__row { grid-template-columns: 36px minmax(0, 1fr) !important; }
  .ssms__row > span:first-child { grid-row: span 9; }
  .ssms__row > span:nth-child(n+2) { grid-column: 2; border-right: 0; }
  .ssms__row > span:nth-child(n+3) { border-top: 1px dashed var(--line); padding-top: 8px; }
  .ssms__row--h > span:nth-child(n+3) { display: none; }
  .ssms__db { display: none; }
  .load { padding: 16px; }
  .load__users { font-size: 2.4rem; }
  .mini-figs { flex-wrap: wrap; gap: 14px 22px; }
  .btn--lg { font-size: 15px; padding: 0 16px; }
  .contact__card { border-radius: 20px; }
}
@media (max-width: 380px) {
  .ping__ms { display: none; }
}

/* ============ Arabic / RTL ============ */
:root[lang="ar"] { --display: "Cairo", "Figtree", sans-serif; --font: "Cairo", "Figtree", sans-serif; }
:root[lang="ar"] body { line-height: 1.75; }
:root[lang="ar"] .hero__name, :root[lang="ar"] .sect__head h2, :root[lang="ar"] .contact__card h2,
:root[lang="ar"] .panel__info h3, :root[lang="ar"] .more h3, :root[lang="ar"] .hero__role { letter-spacing: 0; }
:root[lang="ar"] .hero__name { font-weight: 800; line-height: 1.15; }
:root[lang="ar"] .hero__role { line-height: 1.45; }
:root[lang="ar"] .sect__head h2 { line-height: 1.4; }
:root[lang="ar"] .contact__card h2 { line-height: 1.6; }
:root[lang="ar"] .contact__card h2 span { padding: 0 .18em .04em; }
:root[lang="ar"] .contact__lede { margin-top: 26px; }
/* technical surfaces read left to right in both languages */
[dir="rtl"] .console, [dir="rtl"] .wf, [dir="rtl"] .ssms__tabs, [dir="rtl"] .ssms__q, [dir="rtl"] .ssms__grid, [dir="rtl"] .ssms__status,
[dir="rtl"] .app__chrome, [dir="rtl"] .app__url, [dir="rtl"] .gal__frame, [dir="rtl"] .store, [dir="rtl"] .erp,
[dir="rtl"] .curl, [dir="rtl"] .hint, [dir="rtl"] .ping, [dir="rtl"] .brand, [dir="rtl"] .foot > span:last-child { direction: ltr; }
[dir="rtl"] .console, [dir="rtl"] .ssms, [dir="rtl"] .curl, [dir="rtl"] .hint { text-align: left; }
[dir="rtl"] .hero__facts b, [dir="rtl"] .mini-figs dd { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .gal__arrows { direction: ltr; }
