/* ============================================================
   لافندر — Lvendr  ·  Arabic / RTL
   "Business System Blueprint" art direction
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Purple — disciplined, used as ink not glow */
  --brand: oklch(0.52 0.21 293);
  --brand-2: oklch(0.62 0.17 298);
  --brand-deep: oklch(0.33 0.13 293);
  --brand-ink: oklch(0.30 0.11 293);

  /* Emerald — the single "live / owned / active" signal */
  --signal: oklch(0.66 0.13 168);
  --signal-soft: oklch(0.80 0.08 168);

  /* Neutrals — warm plum-tinted */
  --ink: oklch(0.22 0.045 295);
  --ink-soft: oklch(0.44 0.035 295);
  --muted: oklch(0.58 0.028 295);
  --faint: oklch(0.72 0.02 295);
  --paper: oklch(0.985 0.005 300);
  --paper-2: oklch(0.965 0.011 300);
  --paper-3: oklch(0.945 0.016 300);
  --card: #ffffff;

  /* Dark canvas (systems + cta + footer) */
  --night: oklch(0.205 0.045 294);
  --night-2: oklch(0.255 0.05 294);
  --night-line: color-mix(in oklab, white 12%, transparent);

  --line: color-mix(in oklab, var(--brand) 15%, transparent);
  --line-2: color-mix(in oklab, var(--brand) 26%, transparent);
  --hair: color-mix(in oklab, var(--ink) 10%, transparent);

  /* Type */
  --sans: 'Readex Pro', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', 'Readex Pro', monospace;

  /* Shape */
  --r-xs: 8px;
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --maxw: 1240px;

  --sh-sm: 0 1px 2px rgba(30,16,52,.05), 0 2px 8px rgba(30,16,52,.04);
  --sh: 0 6px 20px rgba(40,18,90,.07), 0 22px 50px rgba(40,18,90,.08);
  --sh-lg: 0 10px 30px rgba(40,18,90,.10), 0 44px 90px rgba(40,18,90,.16);
  --sh-brand: 0 14px 34px color-mix(in oklab, var(--brand) 30%, transparent);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
svg { display: block; }
ul { list-style: none; }
::selection { background: color-mix(in oklab, var(--brand) 26%, transparent); }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 48px, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(74px, 9vw, 140px) 0; position: relative; }
.section--tight { padding: clamp(58px, 6vw, 96px) 0; }

/* ---------- Mono technical label / index ---------- */
.kicker {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 26px; height: 1.5px;
  background: currentColor;
  opacity: .5;
}
.kicker--center { justify-content: center; }
.kicker--center::before { display: none; }
.kicker--light { color: var(--brand-2); }

/* ---------- Headings ---------- */
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 600; line-height: 1.28; color: var(--ink); }
.display { font-size: clamp(34px, 5.4vw, 64px); font-weight: 700; line-height: 1.18; letter-spacing: -0.01em; }
.h2 { font-size: clamp(26px, 3vw, 42px); font-weight: 700; line-height: 1.25; }
.h3 { font-size: clamp(19px, 1.7vw, 24px); font-weight: 600; }
.lead { font-size: clamp(16.5px, 1.3vw, 20px); color: var(--ink-soft); line-height: 1.85; font-weight: 300; }
.muted { color: var(--muted); }
.grad { color: var(--brand); }
.under { box-shadow: inset 0 -0.34em 0 color-mix(in oklab, var(--brand) 16%, transparent); }

.head { max-width: 720px; }
.head--center { margin-inline: auto; text-align: center; }
.head .h2 { margin-top: 18px; }
.head .lead { margin-top: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: 15.5px;
  padding: 15px 26px; border-radius: 999px; line-height: 1;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
[dir="rtl"] .btn svg { transform: scaleX(-1); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--sh-brand); }
.btn--primary:hover { transform: translateY(-2px); background: var(--brand-deep); }
.btn--ghost { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--brand); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--brand-ink); }
.btn--light:hover { transform: translateY(-2px); }
.btn--line-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.28); }
.btn--line-light:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }
.btn--lg { padding: 18px 32px; font-size: 16.5px; }

.tlink { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--brand); font-size: 15px; }
.tlink svg { width: 16px; height: 16px; transition: transform .2s ease; }
[dir="rtl"] .tlink svg { transform: scaleX(-1); }
[dir="rtl"] .tlink:hover svg { transform: scaleX(-1) translateX(4px); }

/* ---------- Crop marks (technical drawing cue) ---------- */
.cropped { position: relative; }
.cropped::before, .cropped::after {
  content: ""; position: absolute; width: 13px; height: 13px; pointer-events: none;
  border-color: var(--line-2); border-style: solid; border-width: 0;
}
.cropped::before { top: -5px; inset-inline-start: -5px; border-top-width: 1.5px; border-inline-start-width: 1.5px; }
.cropped::after { bottom: -5px; inset-inline-end: -5px; border-bottom-width: 1.5px; border-inline-end-width: 1.5px; }

/* ============================================================
   NAV
   ============================================================ */
.nav { position: sticky; top: 0; z-index: 60; padding: 16px 0; transition: background .3s, box-shadow .3s, padding .3s; isolation: isolate; }
.nav.stuck { background: color-mix(in oklab, var(--paper) 80%, transparent); backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 1px 0 var(--line); padding: 10px 0; }
.nav__in { display: flex; align-items: center; gap: 30px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.brand__mark { width: 32px; height: 32px; flex: none; }
.nav__links { display: flex; align-items: center; gap: 32px; margin-inline: auto; }
.nav__links a { font-size: 15px; font-weight: 500; color: var(--ink-soft); transition: color .18s; }
.nav__links a:hover,
.nav__links a.active,
.nav__links a[aria-current="page"] { color: var(--brand); }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__cta .signin { font-size: 15px; font-weight: 500; color: var(--ink); white-space: nowrap; }

/* logged-in user link */
.nav__user { display: flex; align-items: center; gap: 7px; text-decoration: none; transition: opacity .18s; }
.nav__user:hover { opacity: .75; }
.nav__avatar { width: 22px; height: 22px; border-radius: 50%; overflow: hidden; flex: none; background: color-mix(in oklab, var(--brand) 18%, var(--paper)); }
.nav__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nav__username { font-size: 15px; font-weight: 500; color: var(--ink); }
.nav__chevron { display: none; }

/* hamburger — hidden on desktop */
.burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; padding: 8px; background: none; border: none; cursor: pointer; margin-inline-start: auto; flex: none; }
.burger span { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .22s, opacity .22s, width .22s; }
.burger span:nth-child(3) { width: 60%; }
.nav--open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav--open .burger span:nth-child(2) { opacity: 0; }
.nav--open .burger span:nth-child(3) { width: 100%; transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-top: clamp(34px, 5vw, 64px); padding-bottom: clamp(60px, 8vw, 112px); overflow: hidden; }
.blueprint-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blueprint-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--hair) 1px, transparent 1px),
    linear-gradient(90deg, var(--hair) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .5;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 12%, #000 25%, transparent 78%);
          mask-image: radial-gradient(ellipse 80% 70% at 70% 12%, #000 25%, transparent 78%);
}
.blueprint-bg::after {
  content: ""; position: absolute; width: 560px; height: 560px; border-radius: 50%;
  top: -240px; inset-inline-start: -160px; opacity: .4;
  background: radial-gradient(circle, color-mix(in oklab, var(--brand-2) 50%, transparent), transparent 68%);
  filter: blur(40px);
}

.hero__in { display: grid; grid-template-columns: 1.02fr 1.1fr; gap: clamp(34px, 4vw, 64px); align-items: center; }
.hero__copy { max-width: 600px; }
.tagpill {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 26px;
  padding: 8px 9px 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: var(--card); box-shadow: var(--sh-sm), inset 0 0 0 1px var(--line); color: var(--ink-soft);
}
[dir="rtl"] .tagpill { padding: 8px 16px 8px 9px; }
.tagpill b { background: var(--brand); color: #fff; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.hero h1 { margin-bottom: 22px; }
.hero__sub { font-size: clamp(16px, 1.35vw, 19px); color: var(--ink-soft); font-weight: 300; max-width: 540px; }
.hero__not {
  margin-top: 22px; padding: 16px 20px; border-radius: var(--r-sm);
  background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14.5px; line-height: 1.7; color: var(--ink); position: relative;
}
.hero__not::before { content: ""; position: absolute; inset-inline-start: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--brand); }
[dir="rtl"] .hero__not { padding-inline-start: 26px; }
.hero__not b { font-weight: 600; color: var(--brand-ink); }
.hero__cta { display: flex; gap: 13px; margin-top: 30px; flex-wrap: wrap; }
.hero__badges { display: flex; gap: 14px 26px; margin-top: 30px; flex-wrap: wrap; }
.hero__badges span { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--muted); font-weight: 400; }
.hero__badges svg { width: 17px; height: 17px; color: var(--signal); flex: none; }

/* ----- Hero pipeline (idea → blueprint → live) ----- */
.pipe { position: relative; }
.pipe__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pipe__chip {
  font-family: var(--sans); font-size: 13px; font-weight: 500; padding: 8px 15px; border-radius: 999px;
  color: var(--ink-soft); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: all .16s;
}
.pipe__chip:hover { color: var(--brand); box-shadow: inset 0 0 0 1px var(--line-2); }
.pipe__chip.on { background: var(--brand); color: #fff; box-shadow: var(--sh-brand); }

.stages { position: relative; display: flex; flex-direction: column; gap: 14px; }
.stages::before {
  content: ""; position: absolute; inset-inline-start: 31px; top: 36px; bottom: 36px; width: 2px;
  background: repeating-linear-gradient(var(--line-2) 0 6px, transparent 6px 12px);
  z-index: 0;
}
.stage {
  position: relative; z-index: 1; background: var(--card); border-radius: var(--r);
  box-shadow: var(--sh), inset 0 0 0 1px var(--line); padding: 18px;
  display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start;
}
.stage__node {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none;
  font-family: var(--mono); font-size: 14px; font-weight: 600;
  background: var(--paper-2); color: var(--brand); box-shadow: inset 0 0 0 1px var(--line);
}
.stage--live .stage__node { background: color-mix(in oklab, var(--signal) 16%, white); color: var(--signal); }
.stage__label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.stage__title { font-size: 15px; font-weight: 600; line-height: 1.5; }

/* stage 1 — brief */
.stage--brief .stage__title { color: var(--ink); font-weight: 500; }
.stage--brief .cursor { display: inline-block; width: 2px; height: 1em; background: var(--brand); margin-inline-start: 2px; vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* stage 2 — blueprint modules */
.stage--blueprint { padding-bottom: 20px; }
.modgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.mod {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm);
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line);
  opacity: 0; transform: translateY(8px);
  transition: opacity .45s cubic-bezier(.2,.8,.2,1), transform .45s cubic-bezier(.2,.8,.2,1);
}
.mod.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .mod { opacity: 1; transform: none; } }
.mod__ic { width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center; background: color-mix(in oklab, var(--brand) 11%, white); color: var(--brand); }
.mod__ic svg { width: 16px; height: 16px; }
.mod__t { font-size: 12.5px; font-weight: 500; line-height: 1.35; }

/* stage 3 — live */
.stage--live { grid-template-columns: 44px 1fr auto; align-items: center; }
.stage--live .stage__title { font-weight: 600; }
.live-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; color: var(--signal); font-family: var(--mono); }
.live-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 color-mix(in oklab, var(--signal) 60%, transparent); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--signal) 55%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ============================================================
   CATEGORY STRIP
   ============================================================ */
.cats { padding: 26px 0 8px; }
.cats__label { text-align: center; font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.cats__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.cats__row span {
  font-size: 14px; font-weight: 500; color: var(--ink-soft); padding: 9px 16px; border-radius: 999px;
  background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line);
}

/* ============================================================
   PROBLEM — two-card contrast
   ============================================================ */
.problem { background: var(--paper-2); }
.cmp2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 54px; }
.cc { border-radius: var(--r-lg); padding: 36px; position: relative; overflow: hidden; }
.cc--bad { background: var(--card); box-shadow: var(--sh-sm), inset 0 0 0 1px var(--line); }
.cc--good { background: linear-gradient(165deg, var(--night-2), var(--night)); color: #fff; box-shadow: var(--sh-lg); }
.cc--good::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(var(--night-line) 1px, transparent 1px), linear-gradient(90deg, var(--night-line) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 80% 100%, #000, transparent 70%);
          mask-image: radial-gradient(ellipse 70% 80% at 80% 100%, #000, transparent 70%);
}
.cc__tag { position: relative; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px; display: inline-block; }
.cc--bad .cc__tag { color: var(--muted); }
.cc--good .cc__tag { color: var(--brand-2); }
.cc h3 { position: relative; margin-bottom: 24px; }
.cc--good h3 { color: #fff; }
.cc__list { position: relative; display: flex; flex-direction: column; gap: 15px; }
.cc__list li { display: flex; gap: 13px; align-items: flex-start; font-size: 15px; line-height: 1.6; }
.cc__list .ic { width: 22px; height: 22px; border-radius: 7px; flex: none; display: grid; place-items: center; margin-top: 3px; }
.cc__list .ic svg { width: 13px; height: 13px; }
.cc--bad .cc__list .ic { background: color-mix(in oklab, #d08 8%, var(--paper-2)); color: oklch(0.6 0.12 18); }
.cc--bad .cc__list li { color: var(--ink-soft); }
.cc--good .cc__list .ic { background: color-mix(in oklab, var(--signal) 22%, transparent); color: var(--signal-soft); }
.cc--good .cc__list li { color: rgba(255,255,255,.84); }

/* ============================================================
   SOLUTION — pillars + connective line
   ============================================================ */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 54px; position: relative; }
.pillar { background: var(--card); border-radius: var(--r); padding: 32px; box-shadow: var(--sh-sm), inset 0 0 0 1px var(--line); transition: transform .2s, box-shadow .2s; position: relative; }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--sh), inset 0 0 0 1px var(--line); }
.pillar__n { font-family: var(--mono); font-size: 12px; color: var(--brand); margin-bottom: 18px; }
.pillar__ic { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; background: color-mix(in oklab, var(--brand) 9%, white); color: var(--brand); margin-bottom: 20px; box-shadow: inset 0 0 0 1px var(--line); }
.pillar__ic svg { width: 27px; height: 27px; }
.pillar h3 { margin-bottom: 11px; }
.pillar p { font-size: 14.5px; color: var(--ink-soft); font-weight: 300; line-height: 1.75; }

/* ============================================================
   SYSTEMS — immersive dark showcase
   ============================================================ */
.systems { background: linear-gradient(180deg, var(--night), var(--night-2)); color: #fff; position: relative; overflow: hidden; }
.systems::before {
  content: ""; position: absolute; inset: 0; opacity: .45; pointer-events: none;
  background-image: linear-gradient(var(--night-line) 1px, transparent 1px), linear-gradient(90deg, var(--night-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 80%);
}
.systems .head { position: relative; }
.systems .h2 { color: #fff; }
.systems .lead { color: rgba(255,255,255,.7); }
.sys__layout { position: relative; display: grid; grid-template-columns: 0.8fr 1.45fr; gap: 28px; margin-top: 56px; align-items: start; }
.sys__tabs { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 92px; }
.stab { display: flex; align-items: center; gap: 14px; text-align: start; padding: 14px 16px; border-radius: var(--r-sm); width: 100%; color: rgba(255,255,255,.66); transition: all .18s; position: relative; }
.stab:hover { background: rgba(255,255,255,.05); color: #fff; }
.stab.on { background: rgba(255,255,255,.07); color: #fff; box-shadow: inset 0 0 0 1px var(--night-line); }
.stab.on::before { content: ""; position: absolute; inset-inline-start: 0; top: 13px; bottom: 13px; width: 3px; border-radius: 3px; background: var(--brand-2); }
.stab__n { font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,.4); width: 18px; flex: none; }
.stab.on .stab__n { color: var(--brand-2); }
.stab__ic { width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center; background: rgba(255,255,255,.06); color: rgba(255,255,255,.7); transition: all .18s; }
.stab.on .stab__ic { background: var(--brand); color: #fff; }
.stab__ic svg { width: 20px; height: 20px; }
.stab__t { font-weight: 600; font-size: 15px; line-height: 1.2; }
.stab__s { font-size: 12px; color: rgba(255,255,255,.45); margin-top: 2px; }

.sys__stage { position: relative; }
.spanel { display: none; grid-template-columns: 1fr 1.04fr; gap: 4px; background: rgba(255,255,255,.035); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--night-line); overflow: hidden; min-height: 480px; }
.spanel.on { display: grid; }
.spanel__copy { padding: 38px; display: flex; flex-direction: column; }
.spanel__pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .03em; padding: 7px 13px; border-radius: 999px; background: rgba(157,107,245,.16); color: var(--brand-2); box-shadow: inset 0 0 0 1px rgba(157,107,245,.28); margin-bottom: 20px; }
.spanel__copy h3 { color: #fff; font-size: clamp(22px, 2vw, 30px); margin-bottom: 14px; }
.spanel__copy > p { font-size: 15px; color: rgba(255,255,255,.66); font-weight: 300; line-height: 1.75; margin-bottom: 24px; }
.spanel__feat { display: flex; flex-direction: column; gap: 13px; margin-top: auto; }
.spanel__feat li { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; color: rgba(255,255,255,.82); }
.spanel__feat .ic { width: 20px; height: 20px; border-radius: 6px; flex: none; display: grid; place-items: center; background: color-mix(in oklab, var(--signal) 22%, transparent); color: var(--signal-soft); margin-top: 2px; }
.spanel__feat .ic svg { width: 12px; height: 12px; }
.spanel__scene { background: radial-gradient(ellipse 120% 90% at 50% 0%, rgba(157,107,245,.16), transparent 60%); padding: 34px; display: grid; place-items: center; position: relative; }
.spanel__scene::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--night-line) 1px, transparent 1px), linear-gradient(90deg, var(--night-line) 1px, transparent 1px); background-size: 28px 28px; opacity: .4; }

/* ---- mini dashboard mock (on dark) ---- */
.mock { width: 100%; max-width: 360px; background: #fff; border-radius: var(--r); box-shadow: var(--sh-lg); overflow: hidden; position: relative; z-index: 1; color: var(--ink); }
.mock__bar { display: flex; align-items: center; gap: 9px; padding: 12px 15px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.mock__bar .av { width: 26px; height: 26px; border-radius: 8px; background: var(--brand); flex: none; }
.mock__bar .ttl { font-weight: 600; font-size: 13px; }
.mock__bar .sp { margin-inline-start: auto; display: flex; gap: 5px; }
.mock__bar .sp i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.mock__body { padding: 15px; display: flex; flex-direction: column; gap: 10px; }
.mrow { display: flex; gap: 10px; align-items: center; }
.mthumb { width: 52px; height: 42px; border-radius: 9px; background: linear-gradient(135deg, color-mix(in oklab, var(--brand) 22%, white), color-mix(in oklab, var(--brand-2) 30%, white)); flex: none; }
.mlines { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.mline { height: 8px; border-radius: 5px; background: var(--paper-3); }
.mline.s { width: 52%; }
.mline.m { width: 76%; }
.mpill { font-size: 10px; font-weight: 600; padding: 4px 9px; border-radius: 999px; white-space: nowrap; background: color-mix(in oklab, var(--brand) 12%, white); color: var(--brand); }
.mpill.live { background: color-mix(in oklab, var(--signal) 16%, white); color: oklch(0.45 0.12 168); }
.mstat { flex: 1; background: var(--paper); border-radius: 11px; padding: 11px 13px; box-shadow: inset 0 0 0 1px var(--line); }
.mstat .n { font-weight: 700; font-size: 18px; font-family: var(--mono); letter-spacing: -.02em; }
.mstat .l { font-size: 10.5px; color: var(--muted); }
.mcta { background: var(--brand); color: #fff; text-align: center; font-size: 12px; font-weight: 600; padding: 10px; border-radius: 9px; }
.mmap { height: 78px; border-radius: 10px; background:
    radial-gradient(circle at 30% 40%, color-mix(in oklab, var(--brand) 18%, white), transparent 38%),
    radial-gradient(circle at 70% 65%, color-mix(in oklab, var(--brand-2) 22%, white), transparent 36%),
    var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--line); position: relative; }
.mmap::before, .mmap::after { content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 22%, transparent); }
.mmap::before { top: 32%; inset-inline-start: 28%; }
.mmap::after { top: 56%; inset-inline-start: 64%; background: var(--signal); box-shadow: 0 0 0 4px color-mix(in oklab, var(--signal) 22%, transparent); }
.mbars { display: flex; align-items: flex-end; gap: 7px; height: 60px; padding: 0 2px; }
.mbars i { flex: 1; border-radius: 5px 5px 0 0; background: color-mix(in oklab, var(--brand) 30%, white); }
.mbars i:nth-child(3) { background: var(--brand); }
.mprog { height: 9px; border-radius: 999px; background: var(--paper-3); overflow: hidden; }
.mprog i { display: block; height: 100%; border-radius: 999px; background: var(--brand); }

/* ============================================================
   AI GUIDANCE
   ============================================================ */
.ai__in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 5vw, 68px); align-items: center; }
.ai__points { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; margin-top: 32px; }
.ai__points .p { display: flex; gap: 12px; align-items: flex-start; }
.ai__points .p .ic { width: 22px; height: 22px; border-radius: 7px; flex: none; display: grid; place-items: center; background: color-mix(in oklab, var(--brand) 11%, white); color: var(--brand); margin-top: 3px; box-shadow: inset 0 0 0 1px var(--line); }
.ai__points .p .ic svg { width: 13px; height: 13px; }
.ai__points .p span { font-size: 14.5px; color: var(--ink); line-height: 1.55; }

.chat { background: var(--card); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--sh), inset 0 0 0 1px var(--line); }
.chat__head { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.chat__head .av { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; }
.chat__head .t { font-weight: 600; font-size: 14px; }
.chat__head .s { font-family: var(--mono); font-size: 10.5px; color: var(--signal); display: flex; align-items: center; gap: 6px; }
.chat__head .s .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }
.msg { display: flex; gap: 11px; margin-bottom: 16px; align-items: flex-start; }
.msg .who { width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.msg .who.u { background: var(--paper-3); color: var(--ink-soft); }
.msg .who.l { background: var(--brand); color: #fff; }
.msg .bubble { border-radius: 14px; padding: 12px 15px; font-size: 14px; line-height: 1.7; }
.msg.me { flex-direction: row-reverse; }
.msg.me .bubble { background: var(--brand); color: #fff; border-top-right-radius: 4px; }
.msg.ai .bubble { background: var(--paper-2); color: var(--ink); border-top-left-radius: 4px; box-shadow: inset 0 0 0 1px var(--line); }
[dir="rtl"] .msg.ai .bubble { border-top-left-radius: 14px; border-top-right-radius: 4px; }
[dir="rtl"] .msg.me .bubble { border-top-right-radius: 14px; border-top-left-radius: 4px; }
.msg .bubble b { font-weight: 600; }
.chat__chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.chat__chips span { font-size: 12px; font-weight: 500; padding: 6px 11px; border-radius: 999px; background: color-mix(in oklab, var(--brand) 9%, white); color: var(--brand); box-shadow: inset 0 0 0 1px var(--line); }

/* ============================================================
   OWNERSHIP
   ============================================================ */
.own { background: var(--paper-2); }
.own__in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 5vw, 64px); align-items: center; }
.own__list { display: flex; flex-direction: column; gap: 20px; margin-top: 30px; }
.own__list .oi { display: flex; gap: 14px; align-items: flex-start; }
.own__list .oi .ic { width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--card); color: var(--brand); box-shadow: var(--sh-sm), inset 0 0 0 1px var(--line); }
.own__list .oi .ic svg { width: 21px; height: 21px; }
.own__list .oi h4 { font-size: 16.5px; margin-bottom: 4px; }
.own__list .oi p { font-size: 14px; color: var(--ink-soft); font-weight: 300; line-height: 1.65; }

.handoff { background: var(--card); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--sh-lg), inset 0 0 0 1px var(--line); position: relative; max-width: 420px; margin-inline: auto; }
.handoff__head { display: flex; align-items: center; gap: 13px; margin-bottom: 8px; }
.handoff__head .seal { width: 48px; height: 48px; border-radius: 14px; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: var(--sh-brand); }
.handoff__head .seal svg { width: 24px; height: 24px; }
.handoff__head .t { font-weight: 700; font-size: 16px; }
.handoff__head .s { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.handoff__file { font-family: var(--mono); font-size: 11px; color: var(--muted); padding: 14px 0 16px; border-bottom: 1px dashed var(--line-2); margin-bottom: 16px; }
.handoff__list { display: flex; flex-direction: column; gap: 0; }
.hrow { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hrow:last-child { border-bottom: none; }
.hrow .k { display: flex; align-items: center; gap: 11px; font-size: 14px; font-weight: 500; }
.hrow .k .fic { width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center; background: var(--paper-2); color: var(--brand); }
.hrow .k .fic svg { width: 16px; height: 16px; }
.hrow .v { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; font-family: var(--mono); color: var(--signal); }
.hrow .v svg { width: 15px; height: 15px; }

/* ============================================================
   HOW IT WORKS — blueprint timeline (home section)
   ============================================================ */
.steps { margin-top: 56px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.step { position: relative; padding-top: 28px; }
.step::before { content: ""; position: absolute; top: 7px; inset-inline-start: 0; inset-inline-end: 0; height: 2px; background: var(--line-2); }
.step::after { content: ""; position: absolute; top: 3px; inset-inline-start: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 16%, transparent); }
.step:last-child::before { background: linear-gradient(to var(--to-end, left), var(--line-2), transparent); }
.step__n { font-family: var(--mono); font-size: 12px; color: var(--brand); margin-bottom: 12px; }
.step h4 { font-size: 17px; margin-bottom: 9px; }
.step p { font-size: 14px; color: var(--ink-soft); font-weight: 300; line-height: 1.7; }

/* ============================================================
   WHY — feature grid
   ============================================================ */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 54px; background: var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.feat { background: var(--card); padding: 34px; transition: background .2s; }
.feat:hover { background: var(--paper); }
.feat__ic { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in oklab, var(--brand) 9%, white); color: var(--brand); margin-bottom: 20px; box-shadow: inset 0 0 0 1px var(--line); }
.feat__ic svg { width: 24px; height: 24px; }
.feat h4 { font-size: 17.5px; margin-bottom: 10px; }
.feat p { font-size: 14px; color: var(--ink-soft); font-weight: 300; line-height: 1.75; }

/* ============================================================
   COMPARISON
   ============================================================ */
.compare { background: var(--paper-2); }
.ctable { margin-top: 54px; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh), inset 0 0 0 1px var(--line); background: var(--card); }
.crow { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; align-items: stretch; }
.crow + .crow { border-top: 1px solid var(--line); }
.ccell { padding: 18px 22px; display: flex; align-items: center; font-size: 14px; font-weight: 300; color: var(--ink-soft); }
.chead { background: var(--paper-3); }
.chead .ccell { font-weight: 600; font-size: 14.5px; color: var(--ink); flex-direction: column; align-items: flex-start; gap: 3px; justify-content: center; }
.chead .feat-name { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.col-us { background: color-mix(in oklab, var(--brand) 6%, white); }
.chead .col-us { background: var(--brand); color: #fff; }
.chead .col-us .tagm { font-family: var(--mono); font-size: 10px; font-weight: 500; background: rgba(255,255,255,.22); padding: 3px 9px; border-radius: 999px; }
.cfeat { font-weight: 500; color: var(--ink); }
.ccell .yes { color: var(--brand); display: flex; align-items: center; gap: 8px; font-weight: 500; }
.ccell .yes svg { width: 17px; height: 17px; color: var(--signal); }
.col-us.uscell { color: var(--brand-ink); font-weight: 600; }

/* ============================================================
   FINAL CTA — dark
   ============================================================ */
.cta { background: linear-gradient(160deg, var(--night-2), var(--night)); position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; opacity: .4; background-image: linear-gradient(var(--night-line) 1px, transparent 1px), linear-gradient(90deg, var(--night-line) 1px, transparent 1px); background-size: 52px 52px; -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 0%, #000, transparent 75%); mask-image: radial-gradient(ellipse 70% 90% at 50% 0%, #000, transparent 75%); }
.cta__glow { position: absolute; width: 600px; height: 600px; border-radius: 50%; left: 50%; top: -50%; transform: translateX(-50%); background: radial-gradient(circle, color-mix(in oklab, var(--brand) 40%, transparent), transparent 65%); filter: blur(60px); opacity: .5; }
.cta__in { position: relative; text-align: center; max-width: 720px; margin-inline: auto; }
.cta h2 { color: #fff; font-size: clamp(28px, 4vw, 48px); line-height: 1.25; }
.cta p { color: rgba(255,255,255,.74); font-size: clamp(16px, 1.3vw, 19px); font-weight: 300; max-width: 560px; margin: 20px auto 0; }
.cta__row { display: flex; gap: 13px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.cta__note { margin-top: 22px; font-family: var(--mono); font-size: 12.5px; color: rgba(255,255,255,.6); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 840px; margin: 54px auto 0; display: flex; flex-direction: column; gap: 12px; }
.qa { background: var(--card); border-radius: var(--r-sm); box-shadow: var(--sh-sm), inset 0 0 0 1px var(--line); overflow: hidden; transition: box-shadow .2s; }
.qa.open { box-shadow: var(--sh), inset 0 0 0 1px var(--line-2); }
.qa__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 26px; text-align: start; font-weight: 600; font-size: 17px; color: var(--ink); }
.qa__q .ico { width: 28px; height: 28px; border-radius: 9px; flex: none; display: grid; place-items: center; background: var(--paper-2); color: var(--brand); transition: transform .25s, background .2s; }
.qa__q .ico svg { width: 16px; height: 16px; }
.qa.open .qa__q .ico { background: var(--brand); color: #fff; transform: rotate(45deg); }
.qa__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.qa__a-in { padding: 0 26px 24px; font-size: 15px; color: var(--ink-soft); font-weight: 300; line-height: 1.8; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--night); color: rgba(255,255,255,.7); padding: 64px 0 32px; }
.footer__top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; }
.footer .brand { color: #fff; margin-bottom: 16px; }
.footer__brand p { font-size: 14px; font-weight: 300; max-width: 320px; line-height: 1.8; }
.footer__col h5 { font-family: var(--mono); font-weight: 500; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 18px; }
.footer__col a { display: block; font-size: 14px; font-weight: 300; color: rgba(255,255,255,.7); margin-bottom: 12px; transition: color .15s; }
.footer__col a:hover { color: #fff; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--night-line); font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,.5); flex-wrap: wrap; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1020px) {
  .hero__in, .ai__in, .own__in, .sys__layout { grid-template-columns: 1fr; gap: 44px; }
  .sys__tabs { position: static; flex-direction: row; flex-wrap: wrap; }
  .stab { width: auto; flex: 1 1 250px; }
  .stab__t { white-space: nowrap; }
  .pillars, .feat-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 30px 16px; }
  .step::before, .step:last-child::before { background: var(--line-2); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .burger { display: flex; }
  .nav__links {
    display: none; position: absolute; top: 100%; inset-inline: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); box-shadow: 0 8px 24px rgba(0,0,0,.1);
    padding: 12px 0; border-top: 1px solid var(--line);
  }
  .nav--open .nav__links { display: flex; }
  .nav__links a { padding: 14px 24px; font-size: 16px; }
  .nav__cta { display: none; }
  .nav--open .nav__cta {
    display: flex; flex-direction: column; align-items: stretch;
    padding: 12px 24px 20px; border-top: 1px solid var(--line);
    background: var(--paper);
  }
  .cmp2, .pillars, .feat-grid, .ai__points { grid-template-columns: 1fr; }
  .spanel.on { grid-template-columns: 1fr; }
  .spanel__scene { display: none; }
  .steps { grid-template-columns: 1fr; }
  .ctable { overflow-x: auto; }
  .crow { grid-template-columns: 1.4fr .8fr .8fr .8fr; min-width: 560px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .modgrid { grid-template-columns: 1fr; }
}
