/* ══════════════════════════════════════════════════════════════════
   Sirati landing. One light system, one reference (linear.app):
   1280px content, left-aligned type, hairlines, large product demonstrations
   (their styles: landing-demos.css, built from landing-src/styles).
   Markup: includes/landing/page.php · Chrome: navbar.css
   ══════════════════════════════════════════════════════════════════ */

@font-face{font-family:"Geist";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/geist-latin-400.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2190-2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Geist";font-style:normal;font-weight:500;font-display:swap;src:url("../fonts/geist-latin-500.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2190-2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Geist";font-style:normal;font-weight:600;font-display:swap;src:url("../fonts/geist-latin-600.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2190-2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root {
  --bg: #fff;
  --ink: #0d0f14;          /* headings, primary text */
  --ink-2: #3a3f4a;        /* body on emphasis (showcase copy) */
  --text: #646a76;         /* secondary */
  --mute: #8d929c;         /* tertiary, labels */
  --line: #ebedf0;         /* hairlines */
  --line-2: #dfe2e7;
  --wash: #f6f7f9;         /* quiet surfaces */
  --blue: #0074d9;
  --blue-ink: #005fb3;
  --font: "Geist", "IBM Plex Sans Arabic", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  --pad: 24px;
  --max: 1280px;
}
@media (min-width: 768px) { :root { --pad: 32px; } }

/* ── Base ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--ink); overflow-x: clip;
  font-family: var(--font); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-synthesis: none;
  text-rendering: optimizeLegibility;
}
html[dir=rtl] body { font-family: "IBM Plex Sans Arabic", var(--font); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
:where(.sx) :where(h1, h2, h3, p, ul, figure, figcaption) { margin: 0; padding: 0; }
:where(.sx) ul { list-style: none; }
:where(.sx) a { color: inherit; text-decoration: none; }
.sx :focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.sx-i { flex: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding-inline: var(--pad); }

/* ── Type ─────────────────────────────────────────────────────── */
.display { font-size: clamp(40px, 5.4vw, 64px); font-weight: 500; line-height: 1.02; letter-spacing: -.035em; }
.h2 { font-size: clamp(32px, 3.6vw, 48px); font-weight: 500; line-height: 1.04; letter-spacing: -.03em; }
.h2 span { color: var(--mute); }
.lede { font-size: 16px; line-height: 1.55; color: var(--text); letter-spacing: -.005em; }
.statement { font-size: clamp(28px, 3.6vw, 48px); font-weight: 500; line-height: 1.06; letter-spacing: -.03em; max-width: 1240px; }
.statement span { color: var(--mute); }
.mono-label { font-family: var(--mono); font-size: 11.5px; line-height: 1.4; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
html[dir=rtl] .mono-label { font-family: inherit; letter-spacing: 0; text-transform: none; font-size: 13px; }
html[dir=rtl] .display { font-weight: 600; letter-spacing: 0; line-height: 1.28; font-size: clamp(36px, 4.6vw, 56px); }
html[dir=rtl] :is(.h2, .statement) { font-weight: 600; letter-spacing: 0; line-height: 1.4; }
html[dir=rtl] .h2 { font-size: clamp(28px, 3.1vw, 42px); }
html[dir=rtl] .statement { font-size: clamp(25px, 3.1vw, 40px); }
html[dir=rtl] :is(.lede, .show__body, .fig p) { line-height: 1.8; letter-spacing: 0; }
@media (max-width: 640px) { .display br, .h2 br { display: none; } .display, .h2 { text-wrap: balance; } }

/* Quiet text links (the only link style on the page) */
.more { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--text); transition: color .15s; }
.more:hover { color: var(--ink); }
.arr { display: inline-block; font-size: .95em; transition: transform .2s ease; }
a:hover > .arr, a:hover .arr { transform: translateX(2px); }
[dir=rtl] a:hover > .arr, [dir=rtl] a:hover .arr { transform: translateX(-2px); }

/* Navbar and footer share the page's 1280 grid on this page only. */
.sx-landing .sx-nav__bar, .sx-landing .sx-foot__wrap { max-width: calc(var(--max) + 2 * var(--pad)); padding-inline: var(--pad); }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero { padding-top: clamp(72px, 12vw, 176px); }
.hero__sub { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; margin-top: 28px; }
.hero__sub .lede { max-width: 33em; }
.hero__new { display: inline-flex; gap: 10px; align-items: baseline; font-size: 15px; color: var(--text); white-space: nowrap; }
.hero__new b { font-weight: 500; color: var(--ink); }
.hero__new:hover span { color: var(--ink); }

/* The stage bleeds 12px short of the viewport like the reference; the product
   window keeps the content width and its exact composed size. */
.stage {
  position: relative; margin: clamp(48px, 5vw, 72px) 12px 0; padding: 0 calc(var(--pad) - 12px) clamp(28px, 4vw, 56px);
  border-radius: 0 0 20px 20px;
  background:
    radial-gradient(60% 80% at 50% 100%, rgba(0, 116, 217, .09), transparent 70%),
    linear-gradient(180deg, rgba(246, 247, 249, 0) 0%, #f3f5f8 45%, #e9eef5 100%);
}
.stage__frame { max-width: var(--max); margin: 0 auto; }
@media (max-width: 640px) { .stage { margin-inline: 0; padding-inline: var(--pad); border-radius: 0; } }

/* ── Customers: one continuous row, full colour, faded at the edges ── */
.logos { padding-top: clamp(56px, 7vw, 96px); }
.logos .mono-label { margin-bottom: 28px; }
.logos__viewport {
  overflow: hidden; direction: ltr;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 clamp(40px, 10vw, 180px), #000 calc(100% - clamp(40px, 10vw, 180px)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 clamp(40px, 10vw, 180px), #000 calc(100% - clamp(40px, 10vw, 180px)), transparent 100%);
}
.logos__track { display: flex; width: max-content; animation: sx-marquee 64s linear infinite; animation-play-state: paused; will-change: transform; }
.logos__viewport.is-live .logos__track { animation-play-state: running; }
.logos__viewport:hover .logos__track { animation-play-state: paused; }
html[dir=rtl] .logos__track { animation-direction: reverse; }
.logos__set { display: flex; align-items: center; flex: none; gap: clamp(48px, 5.5vw, 84px); padding-inline-end: clamp(48px, 5.5vw, 84px); height: 56px; }
.logos__set li { flex: none; }
.logos__set img { max-width: none; user-select: none; -webkit-user-drag: none; }
@keyframes sx-marquee { to { transform: translate3d(-33.3333%, 0, 0); } }
@media (max-width: 640px) { .logos__set img { zoom: .84; } .logos__track { animation-duration: 48s; } }
@media (prefers-reduced-motion: reduce) {
  .logos__track { animation: none; width: auto; }
  .logos__viewport { overflow-x: auto; scrollbar-width: none; }
}

/* ── Statement + principles ──────────────────────────────────── */
.intro { padding-block: clamp(96px, 11vw, 160px) clamp(96px, 10vw, 144px); }
.figs { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(64px, 8vw, 120px); }
.fig { padding-inline: 32px; border-inline-start: 1px solid var(--line); }
.fig:first-child { padding-inline-start: 0; border: 0; }
.fig__art { height: 300px; display: grid; place-items: center; margin: 24px 0 40px; }
.fig__art svg { width: min(100%, 300px); height: auto; }
.fig h3 { font-size: 15px; font-weight: 500; letter-spacing: -.01em; }
.fig p:last-child { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--text); max-width: 23em; }
@media (max-width: 900px) {
  .figs { grid-template-columns: 1fr; gap: 0; }
  .fig, .fig:first-child { padding: 40px 0; border: 0; border-top: 1px solid var(--line); }
  .fig__art { height: 240px; margin: 8px 0 24px; }
}

/* Figure strokes: one hairline weight, flat paper faces, one blue accent. */
.figure .box polygon { stroke: #a9aeb7; stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.figure .box .t { fill: #fff; }
.figure .box .r { fill: #f3f4f6; }
.figure .box .f { fill: #e9ebee; }
.figure .box.is-key polygon { stroke: var(--blue); }
.figure .box.is-key .t { fill: #eef5fd; }
.figure .box.is-key .r { fill: #dfecfa; }
.figure .box.is-key .f { fill: #d2e4f7; }
.figure .box.is-chip polygon { stroke: #b9bec6; }
.figure .box.is-chip.is-key .t { fill: var(--blue); }
.figure .link { stroke: #b9bec6; stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.figure .frame line { stroke: #9aa0aa; stroke-width: 1; vector-effect: non-scaling-stroke; }
.figure .frame .hid { stroke: #cfd3d9; stroke-dasharray: 3 3; }
.figure .port { fill: #fff; stroke: var(--blue); stroke-width: 1; }

/* ══════════════════════════════════════════════════════════════════
   Sirati landing: motion for the three principle figures (Fig 0.1–0.3).
   Geometry and timing come from includes/landing/figures.php; the static
   strokes and faces are in landing.css (.figure …).

   One 10s loop per figure. Every animated part has class "fg", its own
   animation class and an inline --d (when its moment comes in the loop).
   Each keyframe set starts and ends on the part's resting style, so a
   figure without animation is the finished illustration.

   Animations are paused until landing.js marks the figure .is-live (on
   screen, tab visible) and are removed under prefers-reduced-motion.
   Only opacity, transform and stroke-dashoffset move.
   ══════════════════════════════════════════════════════════════════ */

.figure { overflow: visible; --fg-T: 10s; --fg-ease: cubic-bezier(.3, .7, .2, 1); }
.figure--enterprise { --ph: -0.2s; }
.figure--agents { --ph: -3.6s; }
.figure--private { --ph: -6.4s; }

.figure .fg {
  animation-duration: var(--fg-T); animation-iteration-count: infinite; animation-timing-function: linear;
  animation-delay: calc(var(--d, 0s) + var(--ph, 0s)); animation-play-state: paused;
}
.fig__art.is-live .figure .fg { animation-play-state: running; }

/* ── Resting styles of the animated parts ─────────────────────── */
.figure .fg-lit, .figure .fg-blink, .figure .fg-wave, .figure .fg-work, .figure .fg-refuse,
.figure .fg-arrive, .figure .fg-trace, .figure .fg-u0, .figure .fg-u1, .figure .fg-u2,
.figure .fg-drop, .figure .fg-hand-a, .figure .fg-hand-b { opacity: 0; }

.figure .trace { stroke: #d5d9df; stroke-width: 1; vector-effect: non-scaling-stroke; }
.figure .trace.is-on { stroke: var(--blue, #0074d9); stroke-dasharray: var(--len); }
.figure .link.is-on { stroke: var(--blue, #0074d9); stroke-dasharray: none; stroke-width: 1.25; }
.figure .box.is-plate polygon { stroke: #9cc3ea; }
.figure .box.is-plate .t { fill: #fff; }
.figure .box.is-plate .r { fill: #dfecfa; }
.figure .box.is-plate .f { fill: #d2e4f7; }
.figure .box.is-packet polygon { stroke: #8d939d; }
.figure .wall { fill: rgba(0, 116, 217, .05); stroke: rgba(0, 116, 217, .6); stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.figure .port.is-on { fill: var(--blue, #0074d9); }

/* ── Shared: a part shown in the accent for a moment ──────────── */
.figure .fg-lit { animation-name: fg-lit; }
.figure .fg-blink { animation-name: fg-blink; }
@keyframes fg-lit { 0% { opacity: 0; } 3% { opacity: 1; } 6% { opacity: 1; } 10%, 100% { opacity: 0; } }
@keyframes fg-blink { 0% { opacity: 0; } 2.5% { opacity: 1; } 4.5% { opacity: 1; } 8.5%, 100% { opacity: 0; } }

/* ── Fig 0.1 Enterprise intelligence ──────────────────────────── */
/* Records travel in from outside and seat under the layer above. */
.figure .fg-arrive { animation-name: fg-arrive; }
@keyframes fg-arrive {
  0% { opacity: 0; transform: translate(var(--fx), var(--fy)); animation-timing-function: var(--fg-ease); }
  3% { opacity: 1; }
  14% { opacity: 1; transform: translate(0, 0); }
  16%, 100% { opacity: 0; transform: translate(0, 0); }
}
/* Connections draw across the top layer as the blocks light. */
.figure .fg-trace { animation-name: fg-trace; }
@keyframes fg-trace {
  0% { opacity: 1; stroke-dashoffset: var(--len); animation-timing-function: var(--fg-ease); }
  9% { opacity: 1; stroke-dashoffset: 0; }
  21% { opacity: 1; stroke-dashoffset: 0; }
  27%, 100% { opacity: 0; stroke-dashoffset: 0; }
}
/* The key block: cleared at the start of a cycle, resolved near the end. */
.figure .fg-key-base { animation-name: fg-key-base; }
.figure .fg-slice-1 { animation-name: fg-slice-1; }
.figure .fg-slice-2 { animation-name: fg-slice-2; }
.figure .fg-slice-3 { animation-name: fg-slice-3; }
@keyframes fg-key-base { 0%, 6% { opacity: 1; } 10% { opacity: 0; } 78% { opacity: 0; } 81%, 100% { opacity: 1; } }
@keyframes fg-slice-1 {
  0%, 5% { opacity: 1; transform: translateY(0); } 8% { opacity: 0; transform: translateY(6px); }
  80% { opacity: 0; transform: translateY(9px); animation-timing-function: var(--fg-ease); } 84.5%, 100% { opacity: 1; transform: translateY(0); }
}
@keyframes fg-slice-2 {
  0%, 3.5% { opacity: 1; transform: translateY(0); } 6.5% { opacity: 0; transform: translateY(6px); }
  83% { opacity: 0; transform: translateY(9px); animation-timing-function: var(--fg-ease); } 87.5%, 100% { opacity: 1; transform: translateY(0); }
}
@keyframes fg-slice-3 {
  0%, 2% { opacity: 1; transform: translateY(0); } 5% { opacity: 0; transform: translateY(6px); }
  86% { opacity: 0; transform: translateY(9px); animation-timing-function: var(--fg-ease); } 90.5%, 100% { opacity: 1; transform: translateY(0); }
}

/* ── Fig 0.2 Autonomous execution ─────────────────────────────── */
/* Which unit is working: back, then the two beside it together, then the front one. */
.figure .fg-u0 { animation-name: fg-u0; }
.figure .fg-u1 { animation-name: fg-u1; }
.figure .fg-u2 { animation-name: fg-u2; }
.figure .fg-u3 { animation-name: fg-u3; }
@keyframes fg-u0 { 0%, 13% { opacity: 0; } 17% { opacity: 1; } 30% { opacity: 1; } 35%, 100% { opacity: 0; } }
@keyframes fg-u1 { 0%, 35% { opacity: 0; } 38.5% { opacity: 1; } 55% { opacity: 1; } 60%, 100% { opacity: 0; } }
@keyframes fg-u2 { 0%, 35% { opacity: 0; } 38.5% { opacity: 1; } 60% { opacity: 1; } 65%, 100% { opacity: 0; } }
@keyframes fg-u3 { 0%, 3% { opacity: 1; } 9% { opacity: 0; } 64% { opacity: 0; } 71%, 100% { opacity: 1; } }
/* The finished result leaves the front unit; a new one settles when the work converges. */
.figure .fg-result { animation-name: fg-result; }
@keyframes fg-result {
  0%, 1% { opacity: 1; transform: translateY(0); animation-timing-function: cubic-bezier(.5, 0, .8, .4); }
  7% { opacity: 0; transform: translateY(-24px); }
  68% { opacity: 0; transform: translateY(-9px); animation-timing-function: var(--fg-ease); }
  75%, 100% { opacity: 1; transform: translateY(0); }
}
/* A task lands on the back unit … */
.figure .fg-drop { animation-name: fg-drop; }
@keyframes fg-drop {
  0%, 8% { opacity: 0; transform: translateY(-34px); animation-timing-function: var(--fg-ease); }
  10% { opacity: 1; }
  15.5% { opacity: 1; transform: translateY(0); }
  28% { opacity: 1; transform: translateY(0); }
  29.5%, 100% { opacity: 0; transform: translateY(0); }
}
/* … is handed to two units at once, then both parts move on to the front unit. */
.figure .fg-hand-a { animation-name: fg-hand-a; }
.figure .fg-hand-b { animation-name: fg-hand-b; }
@keyframes fg-hand-a {
  0%, 27.5% { opacity: 0; transform: translate(0, 0); }
  28% { opacity: 1; transform: translate(0, 0); animation-timing-function: cubic-bezier(.5, 0, .2, 1); }
  37% { opacity: 1; transform: translate(var(--ax), var(--ay)); }
  56% { opacity: 1; transform: translate(var(--ax), var(--ay)); animation-timing-function: cubic-bezier(.5, 0, .2, 1); }
  65% { opacity: 1; transform: translate(var(--bx), var(--by)); }
  68%, 100% { opacity: 0; transform: translate(var(--bx), var(--by)); }
}
@keyframes fg-hand-b {
  0%, 27.5% { opacity: 0; transform: translate(0, 0); }
  28% { opacity: 1; transform: translate(0, 0); animation-timing-function: cubic-bezier(.5, 0, .2, 1); }
  37% { opacity: 1; transform: translate(var(--ax), var(--ay)); }
  61% { opacity: 1; transform: translate(var(--ax), var(--ay)); animation-timing-function: cubic-bezier(.5, 0, .2, 1); }
  70% { opacity: 1; transform: translate(var(--bx), var(--by)); }
  73%, 100% { opacity: 0; transform: translate(var(--bx), var(--by)); }
}

/* ── Fig 0.3 Private infrastructure ───────────────────────────── */
/* Inside: work passes up the stack and the workloads on top take turns (two rounds per loop). */
.figure .fg-wave { animation-name: fg-wave; animation-duration: calc(var(--fg-T) / 2); }
.figure .fg-work { animation-name: fg-work; animation-duration: calc(var(--fg-T) / 2); }
@keyframes fg-wave { 0% { opacity: 0; } 7% { opacity: 1; } 16% { opacity: 1; } 30%, 100% { opacity: 0; } }
@keyframes fg-work { 0% { opacity: 0; } 5% { opacity: 1; } 22% { opacity: 1; } 30%, 100% { opacity: 0; } }
/* Outside: a request approaches a sealed port, stops at the wall and withdraws. Nothing crosses. */
.figure .fg-packet { animation-name: fg-packet; }
@keyframes fg-packet {
  0%, 10% { opacity: 1; transform: translate(0, 0); animation-timing-function: cubic-bezier(.5, 0, .9, .5); }
  22% { opacity: 0; transform: translate(var(--fx), var(--fy)); }
  68% { opacity: 0; transform: translate(var(--fx), var(--fy)); animation-timing-function: var(--fg-ease); }
  72% { opacity: 1; }
  92%, 100% { opacity: 1; transform: translate(0, 0); }
}
/* The boundary acknowledges the refusal: the wall and its port show for a moment. */
.figure .fg-refuse { animation-name: fg-refuse; }
@keyframes fg-refuse { 0% { opacity: 0; } 2.5% { opacity: 1; } 7% { opacity: 1; } 15%, 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .figure .fg { animation: none; }
}

/* ── Showcases ───────────────────────────────────────────────── */
.show { border-top: 1px solid var(--line); padding-block: clamp(88px, 10vw, 144px) clamp(72px, 8vw, 112px); }
.show__head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 48px; align-items: start; }
.show__body { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.45; letter-spacing: -.012em; color: var(--ink-2); max-width: 27em; }
.show__copy .more { margin-top: 28px; }
@media (max-width: 900px) { .show__head { grid-template-columns: 1fr; } }

.visual { margin-top: clamp(40px, 5vw, 72px); }

/* Feature links under each visual */
.feats { display: grid; grid-template-columns: 2fr 1fr 1fr; margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--line); }
.feats__label { font-size: 15px; color: var(--mute); grid-row: span 2; }
.feats ul { display: grid; gap: 8px; align-content: start; }
.feats ul + ul { padding-inline-start: 32px; border-inline-start: 1px solid var(--line); }
.feats ul:first-of-type { padding-inline-end: 32px; }
.feats a { display: inline-flex; gap: 8px; font-size: 15px; color: var(--ink-2); transition: color .15s; }
.feats a .arr { color: var(--mute); }
.feats a:hover { color: var(--ink); }
@media (max-width: 900px) {
  .feats { grid-template-columns: 1fr 1fr; row-gap: 16px; }
  .feats__label { grid-column: 1 / -1; grid-row: auto; }
}

/* ── Contact ─────────────────────────────────────────────────── */
.show--contact { padding-bottom: clamp(96px, 11vw, 160px); }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact__copy .show__body { margin-top: 28px; }
.contact__links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 32px !important; }
.contact__card { background: #fff; border-radius: 16px; padding: clamp(24px, 3vw, 36px); box-shadow: 0 0 0 1px var(--line-2), 0 24px 48px -36px rgba(15, 23, 42, .25); }
@media (min-width: 901px) { .contact__copy { position: sticky; top: 112px; } }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }


/* The analytics pixel (pixel.js) parks a 1×1 image at left:-9999px, which in RTL
   widens the document. Keep it in the viewport, invisible. */
img[src*="/api/track/pixel.gif"] { position: fixed !important; left: 0 !important; top: 0 !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
html[dir=rtl] .hero__sub .lede { max-width: 38em; }
