/* ============================================================
   SEMIOTECHS — one flowing page.

   The restraint is the design. A knowledge company's site that shouts is
   arguing against itself, so: one accent, a lot of air, a display serif
   against a quiet sans, and rules instead of boxes wherever a box is not
   load-bearing.

   Three languages share this sheet. Arabic is not a translation laid over a
   Latin layout — the document direction flips, and every edge that matters
   is written with logical properties (inline-start/end, margin-inline) so it
   flips with it.
   ============================================================ */

:root{
  --bg:#0B0C0F; --surface:#111318; --surface-2:#161922;
  --ink:#F2F4F8; --ink-soft:#A8B0BF; --ink-faint:#6E7688;
  --line:#1E222C; --line-2:#2A3040;
  --accent:#C9A227;            /* old gold — a sign that has been read */
  --accent-2:#7C95FF;
  --accent-soft:rgba(201,162,39,.12);
  --radius:16px;
  --sans:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
  --display:"Fraunces",Georgia,"Times New Roman",serif;
  --t:cubic-bezier(.22,.61,.36,1);
  --wrap:1140px;
}
[data-theme="light"]{
  --bg:#FBFBF9; --surface:#FFFFFF; --surface-2:#F4F4F1;
  --ink:#14161B; --ink-soft:#4C5464; --ink-faint:#818A9B;
  --line:#E6E6E1; --line-2:#D8D8D2;
  --accent:#9A7B12; --accent-soft:rgba(154,123,18,.10);
}
/* Arabic sets its own face; the Latin stack has no Arabic to fall back on. */
html[lang="ar"]{ --sans:"IBM Plex Sans Arabic","Inter",system-ui,sans-serif;
                 --display:"IBM Plex Sans Arabic","Fraunces",serif; }

*{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{margin:0;background:var(--bg);color:var(--ink);font:400 16px/1.7 var(--sans);
  -webkit-font-smoothing:antialiased;overflow-x:hidden}
img,svg{max-width:100%}
a{color:inherit}
.wrap{width:100%;max-width:var(--wrap);margin-inline:auto;padding-inline:24px}
.skip{position:absolute;inset-inline-start:-9999px;top:0;background:var(--accent);
  color:#000;padding:10px 16px;z-index:99}
.skip:focus{inset-inline-start:0}

/* ---------- header ---------- */
.head{position:sticky;top:0;z-index:40;background:color-mix(in srgb,var(--bg) 82%,transparent);
  backdrop-filter:blur(12px);border-bottom:1px solid transparent;transition:border-color .3s}
.head.is-stuck{border-bottom-color:var(--line)}
.head-in{display:flex;align-items:center;gap:22px;height:70px}
.brand{display:inline-flex;align-items:center;gap:10px;text-decoration:none;flex:0 0 auto}
.brand-mark{display:inline-grid;place-items:center;width:26px;height:26px;color:var(--accent)}
.brand-mark.sm{width:20px;height:20px}
.brand-word{font:500 17px/1 var(--display);letter-spacing:.005em}
.nav{display:flex;gap:26px;margin-inline-start:auto}
.nav a{text-decoration:none;font-size:13.5px;color:var(--ink-soft);transition:color .2s}
.nav a:hover{color:var(--ink)}
.head-acts{display:flex;align-items:center;gap:10px}
.langs{display:inline-flex;gap:2px;padding:2px;border:1px solid var(--line);border-radius:999px}
.lang{height:26px;padding:0 9px;border:1px solid transparent;border-radius:999px;background:none;
  color:var(--ink-faint);font:500 11px/1 var(--sans);letter-spacing:.04em;cursor:pointer;transition:.2s}
.lang:hover{color:var(--ink)}
.lang.on{color:var(--accent);border-color:var(--accent)}
.theme{display:inline-grid;place-items:center;width:32px;height:32px;border:1px solid var(--line);
  border-radius:999px;background:none;color:var(--ink-soft);cursor:pointer;transition:.2s}
.theme:hover{color:var(--ink);border-color:var(--line-2)}
.i-moon{display:none}
[data-theme="light"] .i-sun{display:none}
[data-theme="light"] .i-moon{display:block}

.btn{display:inline-flex;align-items:center;gap:8px;text-decoration:none;border-radius:999px;
  font:500 13.5px/1 var(--sans);padding:11px 20px;border:1px solid transparent;cursor:pointer;
  transition:transform .2s var(--t),background .2s,border-color .2s,color .2s}
.btn-pri{background:var(--accent);color:#0B0C0F;font-weight:600}
.btn-pri:hover{transform:translateY(-2px)}
.btn-ghost{border-color:var(--line-2);color:var(--ink)}
.btn-ghost:hover{border-color:var(--accent);color:var(--accent)}
.btn-lg{padding:15px 30px;font-size:15px}

/* ---------- reveal ---------- */
.rev{opacity:0;transform:translateY(20px);transition:opacity .7s var(--t),transform .7s var(--t)}
.rev.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.rev{opacity:1;transform:none;transition:none}}

/* ---------- hero ---------- */
.hero{padding:clamp(70px,11vw,140px) 0 clamp(50px,7vw,90px);position:relative;overflow:hidden}
.hero::before{content:"";position:absolute;inset-inline-start:50%;top:-220px;width:760px;height:520px;
  transform:translateX(-50%);background:radial-gradient(ellipse at center,var(--accent-soft),transparent 68%);
  pointer-events:none}
.hero-in{position:relative;text-align:center}
.eyebrow{font:500 11.5px/1 var(--sans);letter-spacing:.16em;text-transform:uppercase;
  color:var(--accent);margin:0 0 20px}
.hero-t{font:300 clamp(38px,6.2vw,72px)/1.1 var(--display);margin:0 0 22px;letter-spacing:-.015em}
.hero-t em{font-style:italic;color:var(--accent)}
.hero-s{max-width:660px;margin:0 auto 34px;color:var(--ink-soft);font-size:17px}
.hero-cta{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
/* The constellation is a FIGURE, not a backdrop: bounded, so it sits under
   the words rather than spreading into a field of empty pixels. */
.hero-art{margin-top:clamp(34px,5vw,58px);color:var(--ink-faint)}
.art{display:block;width:min(560px,92%);height:auto;margin-inline:auto}
.art-edges{opacity:.42;stroke-linecap:round}
.art-edges path{stroke-dasharray:300;stroke-dashoffset:300;animation:draw 2.2s var(--t) forwards}
.art-edges path:nth-child(2){animation-delay:.18s}
.art-edges path:nth-child(3){animation-delay:.36s}
.art-edges path:nth-child(4){animation-delay:.54s}
.art-edges path:nth-child(5){animation-delay:.72s}
.art-edges path:nth-child(6){animation-delay:.8s}
.art-edges path:nth-child(7){animation-delay:.88s}
@keyframes draw{to{stroke-dashoffset:0}}
.art-dim circle{opacity:.5}
.art-nodes circle{fill:currentColor;animation:pop .55s var(--t) backwards}
.art-nodes .n-hot{fill:var(--accent);animation-delay:.9s}
.art-nodes .n-open{fill:none;stroke:var(--accent);stroke-width:2;animation-delay:1.15s}
@keyframes pop{from{opacity:0;transform:scale(.4);transform-origin:center;transform-box:fill-box}}
@media (prefers-reduced-motion:reduce){
  .art-edges path{animation:none;stroke-dashoffset:0}
  .art-nodes circle{animation:none}
}

/* ---------- sections ---------- */
.sec{padding:clamp(64px,9vw,120px) 0}
.sec-alt{background:var(--surface);border-block:1px solid var(--line)}
.sec-t{font:300 clamp(27px,3.6vw,44px)/1.2 var(--display);margin:0 0 18px;letter-spacing:-.01em}
.lede{max-width:680px;color:var(--ink-soft);font-size:16.5px;margin:0 0 44px}

.trio{display:grid;grid-template-columns:repeat(auto-fit,minmax(248px,1fr));gap:22px}
.card{border:1px solid var(--line);border-radius:var(--radius);padding:28px 26px;background:var(--bg);
  transition:border-color .3s,transform .3s var(--t)}
.card:hover{border-color:var(--line-2);transform:translateY(-3px)}
.card h3{font:500 18px/1.3 var(--display);margin:0 0 10px}
.card p{margin:0;color:var(--ink-soft);font-size:14.5px}

.grid4{display:grid;grid-template-columns:repeat(auto-fit,minmax(224px,1fr));gap:1px;
  background:var(--line);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.mini{background:var(--surface);padding:28px 24px;display:flex;flex-direction:column}
.num{font:500 11px/1 var(--sans);letter-spacing:.14em;color:var(--accent);margin-bottom:14px}
.mini h3{font:500 17px/1.3 var(--display);margin:0 0 9px}
.mini p{margin:0;color:var(--ink-soft);font-size:14px}

/* ---------- products ---------- */
.prod{display:grid;grid-template-columns:1fr 1fr;gap:clamp(30px,5vw,68px);align-items:center;
  padding:clamp(34px,5vw,58px) 0;border-top:1px solid var(--line)}
.prod:first-of-type{border-top:0}
.prod-rev .prod-copy{order:2}
.prod-name{font:500 clamp(24px,3vw,34px)/1.1 var(--display);margin-bottom:8px}
/* A product's own mark, at one optical size whichever form it takes: a
   wordmark capped on height, a mark-plus-name set to the same. */
.prod-logo{display:flex;align-items:center;min-height:38px}
.prod-logo img{height:clamp(22px,2.4vw,30px);width:auto;max-width:min(100%,320px);
  object-fit:contain;object-position:left center;display:block}
html[dir="rtl"] .prod-logo img{object-position:right center}
.prod-logo .on-light{display:none}
[data-theme="light"] .prod-logo .on-dark{display:none}
[data-theme="light"] .prod-logo .on-light{display:block}
.prod-lockup{display:flex;align-items:center;gap:12px;min-height:38px}
.prod-lockup img{height:clamp(26px,2.8vw,34px);width:auto;display:block}
.prod-lockup span{font:500 clamp(24px,3vw,34px)/1.1 var(--display)}
.prod-tag{color:var(--accent);font-size:13px;letter-spacing:.02em;margin:0 0 14px}
.prod p{color:var(--ink-soft);margin:0 0 18px}
.chips{list-style:none;display:flex;flex-wrap:wrap;gap:7px;padding:0;margin:0}
.chips li{font-size:12px;color:var(--ink-soft);border:1px solid var(--line-2);
  border-radius:999px;padding:5px 12px}
.prod-art{min-width:0}
.mock{border:1px solid var(--line-2);border-radius:14px;overflow:hidden;background:var(--surface-2);
  box-shadow:0 22px 60px rgba(0,0,0,.30)}
[data-theme="light"] .mock{box-shadow:0 18px 44px rgba(20,22,27,.10)}
.mock-bar{display:flex;gap:6px;padding:11px 14px;border-bottom:1px solid var(--line)}
.mock-bar i{width:9px;height:9px;border-radius:50%;background:var(--line-2)}
.mock-body{padding:20px;min-height:170px}
.mock-graph{display:grid;place-items:center;color:var(--ink-faint)}
.mock-lines{display:flex;flex-direction:column;gap:11px;justify-content:center}
.ln{height:9px;border-radius:5px;background:var(--line-2)}
.ln.hl{background:var(--accent);opacity:.55}
.w50{width:50%}.w60{width:60%}.w70{width:70%}.w80{width:80%}.w85{width:85%}.w90{width:90%}.w95{width:95%}

/* ---------- steps ---------- */
.steps{list-style:none;padding:0;margin:0;display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:26px}
.steps li{position:relative;padding-top:26px;border-top:1px solid var(--line-2)}
.step-n{position:absolute;top:-13px;inset-inline-start:0;width:26px;height:26px;display:grid;
  place-items:center;border-radius:50%;background:var(--bg);border:1px solid var(--accent);
  color:var(--accent);font:500 12px/1 var(--sans)}
.sec-alt .step-n{background:var(--surface)}
.steps h3{font:500 17px/1.3 var(--display);margin:0 0 8px}
.steps p{margin:0;color:var(--ink-soft);font-size:14px}

/* ---------- contact + foot ---------- */
.sec-end{text-align:center}
.contact-in .lede{margin-inline:auto}
.foot{border-top:1px solid var(--line);padding:28px 0}
.foot-in{display:flex;align-items:center;gap:16px;flex-wrap:wrap;justify-content:space-between}
.foot-brand{display:inline-flex;align-items:center;gap:9px;font:500 14px/1 var(--display);
  color:var(--ink)}
.foot-brand .brand-mark{color:var(--accent)}
.foot-note{color:var(--ink-faint);font-size:12.5px}

/* ---------- narrow ---------- */
@media (max-width:900px){
  .nav{display:none}
  .prod{grid-template-columns:1fr}
  .prod-rev .prod-copy{order:0}
  .head-in{gap:12px}
}
@media (max-width:560px){
  .head-acts .btn-pri{display:none}
  .brand-word{font-size:16px}
}
