/* MustaFlow AI Technologies: the company website.
   Light and dark themes from the logo's royal blue; follows the visitor's device, with a switch.
   One stylesheet, one tiny script (the switch), no cookies, no fonts or files from elsewhere. */

/* The blues are sampled from the owner's two logo pictures (14 Nov 2026): on white the logo's
   blue runs #003b88 to #0a52b8 to #2a79f5; on the dark version #16377f to #2152ad to #2f6fea,
   on a background of #0c0e1b. The Nabu and Nabu Code marks keep their own fixed blues
   (light blue and deep blue tiles) so they read the same on both backgrounds. */
/* The brand fonts, kept on this site (SIL Open Font License 1.1, licences in fonts/): Inter for
   Latin letters, IBM Plex Sans Arabic for Arabic letters. Each file is fetched only when a page
   uses its letters. */
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/plex-arabic-400.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/plex-arabic-600.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/plex-arabic-700.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/inter-latin.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+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f5f7fc;
  --surface: #ffffff;
  --line: #e1e7f2;
  --line-strong: #c7d3ea;
  --text: #071a3d;
  --muted: #46577a;
  --faint: #5f6c8a;  /* 5.3:1 on white (was 4.1:1, under the 4.5:1 that small text needs) */
  --blue: #0a4fba;
  --blue-2: #1c6ff0;
  --accent: #0b55c4;
  --blue-soft: rgba(11, 85, 196, .08);
  --badge-line: rgba(31, 111, 232, .22);
  --glow: rgba(11, 85, 196, .16);
  --arch: #0b55c4;
  --grid: rgba(11, 85, 196, .06);
  --mark-1: #2a79f5;
  --mark-2: #0a52b8;
  --mark-3: #003b88;
  --band: #031538;
  --band-2: #0a2c70;
  --band-text: #eaf0ff;
  --band-muted: #a9badf;
  --shadow: 0 1px 2px rgba(7, 26, 61, .05), 0 14px 34px -18px rgba(7, 26, 61, .25);
  --max: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b0e1a;
    --bg-soft: #0f1427;
    --surface: #111830;
    --line: rgba(120, 150, 230, .14);
    --line-strong: rgba(120, 150, 230, .26);
    --text: #e9eefc;
    --muted: #a2afcf;
    --faint: #7884a6;
    --blue: #2152ad;
    --blue-2: #2f6fea;
    --accent: #5b8ff5;
    --blue-soft: rgba(47, 111, 234, .14);
    --badge-line: rgba(78, 164, 255, .35);
    --glow: rgba(42, 96, 202, .34);
    --arch: #4a7fe6;
    --grid: rgba(90, 130, 230, .07);
    --mark-1: #2f6fea;
    --mark-2: #2152ad;
    --mark-3: #16377f;
    --band: #0a1636;
    --band-2: #12307a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 18px 44px -22px rgba(0, 0, 0, .8);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0e1a;
  --bg-soft: #0f1427;
  --surface: #111830;
  --line: rgba(120, 150, 230, .14);
  --line-strong: rgba(120, 150, 230, .26);
  --text: #e9eefc;
  --muted: #a2afcf;
  --faint: #7884a6;
  --blue: #2152ad;
  --blue-2: #2f6fea;
  --accent: #5b8ff5;
  --blue-soft: rgba(47, 111, 234, .14);
  --badge-line: rgba(78, 164, 255, .35);
  --glow: rgba(42, 96, 202, .34);
  --arch: #4a7fe6;
  --grid: rgba(90, 130, 230, .07);
  --mark-1: #2f6fea;
  --mark-2: #2152ad;
  --mark-3: #16377f;
  --band: #0a1636;
  --band-2: #12307a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 18px 44px -22px rgba(0, 0, 0, .8);
}

* { box-sizing: border-box; }
h1, h2, .statement { text-wrap: balance; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 "Inter", "IBM Plex Sans Arabic", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}
[dir="rtl"] body {
  font-family: "Inter", "IBM Plex Sans Arabic", "Segoe UI", "Noto Naskh Arabic", "Noto Sans Arabic", "Geeza Pro", Tahoma, sans-serif;
  line-height: 1.9;
}
a { color: inherit; }
section[id] { scroll-margin-top: 84px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.mf-s1 { stop-color: var(--mark-1); }
.mf-s2 { stop-color: var(--mark-2); }
.mf-s3 { stop-color: var(--mark-3); }
/* hidden above the page until a keyboard user reaches it (never off to a side: nothing may lie beside the page) */
.skip {
  position: absolute; inset-inline-start: 10px; top: 10px; z-index: 30; transform: translateY(-300%);
  padding: 8px 14px; border-radius: 8px; background: var(--blue); color: #fff;
}
.skip:focus { transform: none; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: 28px; }
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
.label::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
[dir="rtl"] .label { letter-spacing: 0; text-transform: none; font-size: 14px; }
.badge {
  display: inline-block; padding: 5px 12px; border-radius: 999px; white-space: nowrap;
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1.5;
  color: var(--accent); background: var(--blue-soft); border: 1px solid var(--badge-line);
}
[dir="rtl"] .badge { letter-spacing: 0; text-transform: none; font-size: 13px; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .mark { width: 26px; height: 42px; display: block; }
.word { font-size: 19px; font-weight: 650; letter-spacing: .01em; white-space: nowrap; }
.word b { font-weight: 650; color: var(--accent); }
.menu { display: flex; align-items: center; gap: 30px; margin-inline-start: auto; }
.menu a { text-decoration: none; color: var(--muted); font-size: 15px; transition: color .15s ease; }
.menu a:hover { color: var(--text); }
.tools { display: flex; align-items: center; gap: 10px; }
.tools.end { margin-inline-start: auto; }
.chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; min-width: 38px;
  padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--text); font: inherit; font-size: 14px; text-decoration: none; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.chip:hover { border-color: var(--accent); }
.chip.icon { padding: 0; width: 38px; }
.chip svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sun { display: none; }
:root[data-theme="dark"] .sun { display: block; }
:root[data-theme="dark"] .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sun { display: block; }
  :root:not([data-theme="light"]) .moon { display: none; }
}

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 12px;
  font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn svg, .more-link svg, .mailcard .go svg {
  width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
[dir="rtl"] .btn svg, [dir="rtl"] .more-link svg, [dir="rtl"] .mailcard .go svg { transform: scaleX(-1); }
.btn.solid {
  color: #fff; background: linear-gradient(180deg, var(--blue-2), var(--blue) 90%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 14px 30px -14px var(--blue);
}
.btn.solid:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 18px 36px -14px var(--blue); }
.btn.line { color: var(--text); border: 1px solid var(--line-strong); background: var(--surface); }
.btn.line:hover { border-color: var(--accent); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 72% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 72% 45%, #000 20%, transparent 75%);
}
[dir="rtl"] .hero::before {
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 28% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 28% 45%, #000 20%, transparent 75%);
}
.hero-in { position: relative; display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; padding-block: 88px 96px; }
.hero h1 {
  margin: 22px 0 22px; font-size: clamp(2.4rem, 4.4vw, 3.7rem); line-height: 1.06; letter-spacing: -.03em; font-weight: 700;
}
[dir="rtl"] .hero h1 { letter-spacing: 0; line-height: 1.32; font-size: clamp(2.3rem, 5vw, 4rem); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin: 0; max-width: 33em; font-size: clamp(1.08rem, 1.5vw, 1.24rem); color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 34px; color: var(--muted); font-size: 14.5px; }
.facts span { display: inline-flex; align-items: center; gap: 9px; }
.facts svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.stage { position: relative; aspect-ratio: 560 / 620; width: 100%; max-width: 470px; justify-self: center; }
.stage .halo {
  position: absolute; inset: 14% 10%; border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent 72%);
  animation: breathe 8s ease-in-out infinite;
}
.stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.arch { fill: none; stroke: var(--arch); stroke-width: 1.3; }
.arch.a1 { stroke-opacity: .5; }
.arch.a2 { stroke-opacity: .3; stroke-dasharray: 4 7; }
.arch.a3 { stroke-opacity: .18; }
.tick { fill: var(--arch); fill-opacity: .55; }
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s cubic-bezier(.6, 0, .2, 1) .2s forwards; }
.hero-mark { filter: drop-shadow(0 18px 30px var(--glow)); }
@keyframes breathe { 0%, 100% { opacity: .85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- mission ---------- */
.mission { padding-block: 110px 40px; }
.statement {
  margin: 22px 0 0; max-width: 22em; font-size: clamp(1.7rem, 3.3vw, 2.7rem); line-height: 1.22;
  letter-spacing: -.02em; font-weight: 600;
}
[dir="rtl"] .statement { letter-spacing: 0; line-height: 1.6; max-width: 26em; }
.statement em { font-style: normal; color: var(--accent); }
.mission .body { margin: 26px 0 0; max-width: 40em; color: var(--muted); font-size: 1.08rem; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 64px; border-top: 1px solid var(--line); }
.principle { padding-block: 34px 10px; padding-inline: 0 32px; }
.principle + .principle { padding-inline-start: 32px; border-inline-start: 1px solid var(--line); }
.num { font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--accent); font-variant-numeric: tabular-nums; }
.principle h3 { margin: 12px 0 10px; font-size: 1.32rem; letter-spacing: -.01em; }
.principle p { margin: 0; color: var(--muted); }

/* ---------- products ---------- */
.products { padding-block: 70px 100px; }
.products .head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 44px; }
.products h2 { margin: 16px 0 0; font-size: clamp(2rem, 3.6vw, 2.9rem); letter-spacing: -.025em; line-height: 1.1; }
[dir="rtl"] .products h2 { letter-spacing: 0; line-height: 1.4; }
.products .head p { margin: 0; color: var(--muted); font-size: 1.08rem; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.product {
  display: grid; gap: 14px; align-content: start; padding: 34px 36px 32px; border-radius: 22px;
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease;
}
.product:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.product .top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.product .tile { width: 64px; height: 64px; flex: none; filter: drop-shadow(0 10px 18px rgba(28, 95, 224, .28)); }
.product h3 { margin: 0; font-size: 1.65rem; letter-spacing: -.015em; line-height: 1.2; }
.product p { margin: 0; color: var(--muted); font-size: 1.04rem; }
.more-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--accent); font-weight: 600; text-decoration: none; }
.more-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Nabu ---------- */
.nabu { padding-block: 0 110px; }
.panel {
  position: relative; overflow: hidden; border-radius: 28px; color: var(--band-text);
  background:
    radial-gradient(900px 420px at 100% 0%, rgba(42, 121, 245, .30), transparent 60%),
    radial-gradient(700px 380px at 0% 100%, rgba(10, 82, 184, .30), transparent 60%),
    linear-gradient(160deg, var(--band-2), var(--band));
  box-shadow: var(--shadow);
}
.panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(140, 175, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 175, 255, .06) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
  mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.panel-in { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 64px; }
.panel .nabu-big { width: 76px; height: 76px; display: block; margin-bottom: 22px; filter: drop-shadow(0 12px 26px rgba(78, 164, 255, .45)); }
.panel .label { color: #8db2ff; }
.panel h2 { margin: 18px 0 18px; font-size: clamp(2.1rem, 4vw, 3.2rem); line-height: 1.08; letter-spacing: -.025em; }
[dir="rtl"] .panel h2 { letter-spacing: 0; line-height: 1.35; }
.panel h2 .badge { margin-inline-start: 12px; vertical-align: middle; color: #cfe0ff; background: rgba(91, 140, 255, .18); border-color: rgba(141, 178, 255, .35); }
.panel .intro { margin: 0 0 16px; font-size: 1.12rem; color: var(--band-text); }
.panel .origin { margin: 0; color: var(--band-muted); font-size: .98rem; }
.panel .more { margin: 30px 0 0; color: var(--band-muted); }
.panel .btn.solid { margin-top: 26px; background: #ffffff; color: #0b1f4d; box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .7); }
.panel .btn.solid:hover { background: #eaf1ff; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; align-content: start; }
.step {
  display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; padding: 22px 24px; border-radius: 18px;
  background: rgba(255, 255, 255, .045); border: 1px solid rgba(141, 178, 255, .16);
}
.step .n {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-weight: 700; font-size: 18px; color: #fff; background: linear-gradient(160deg, #2a79f5, #0a52b8);
  box-shadow: 0 10px 24px -12px rgba(42, 121, 245, .9);
}
.step h3 { margin: 2px 0 6px; font-size: 1.1rem; }
.step p { margin: 0; color: var(--band-muted); font-size: .98rem; }

/* ---------- company ---------- */
.company { padding-block: 100px 40px; }
.company-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.company h2 { margin: 16px 0 16px; font-size: clamp(1.9rem, 3.2vw, 2.6rem); letter-spacing: -.02em; line-height: 1.15; }
[dir="rtl"] .company h2 { letter-spacing: 0; line-height: 1.45; }
.company p { margin: 0; color: var(--muted); font-size: 1.06rem; max-width: 34em; }
.company p + p { margin-top: 16px; }
.factlist { margin: 6px 0 0; border-top: 1px solid var(--line); }
.factlist div { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.factlist dt { color: var(--faint); font-size: 14.5px; }
.factlist dd { margin: 0; font-weight: 600; }
.factlist a { color: var(--accent); text-decoration: none; }
.factlist a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- contact ---------- */
.contact { padding-block: 0 110px; }
.contact-in {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; padding: 54px 56px;
  border-radius: 24px; border: 1px solid var(--line); background: var(--bg-soft);
}
.contact h2 { margin: 16px 0 12px; font-size: clamp(1.9rem, 3.4vw, 2.7rem); letter-spacing: -.02em; line-height: 1.12; }
[dir="rtl"] .contact h2 { letter-spacing: 0; line-height: 1.4; }
.contact p { margin: 0; color: var(--muted); max-width: 30em; }
.mailcards { display: grid; gap: 14px; }
.mailcard {
  display: grid; grid-template-columns: 48px 1fr auto; gap: 16px; align-items: center; padding: 20px 22px;
  border-radius: 16px; border: 1px solid var(--line); background: var(--surface); text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.mailcard:hover { border-color: var(--accent); transform: translateY(-1px); }
.mailcard .ic {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(160deg, var(--blue-2), var(--blue));
}
.mailcard .ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mailcard .txt { min-width: 0; }
.mailcard strong { display: block; font-size: 1.02rem; color: var(--text); }
.mailcard .txt span { display: block; color: var(--accent); font-size: .98rem; overflow-wrap: anywhere; text-align: start; }
[dir="rtl"] .mailcard .txt span { text-align: right; }
.mailcard .go { color: var(--accent); display: grid; place-items: center; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-block: 56px 36px; }
.foot .brand .mark { width: 20px; height: 32px; }
.foot .word { font-size: 16px; }
.foot .about p { margin: 14px 0 6px; color: var(--muted); font-size: 14.5px; max-width: 24em; }
.foot .about small { color: var(--faint); font-size: 13.5px; }
.foot h4 { margin: 4px 0 14px; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
[dir="rtl"] .foot h4 { letter-spacing: 0; text-transform: none; font-size: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot ul a { color: var(--muted); text-decoration: none; font-size: 15px; }
.foot ul a:hover { color: var(--text); }
.foot .base {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  padding-block: 22px 34px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13.5px;
}
.foot .base .tools { gap: 8px; }

/* ---------- plain pages (privacy, terms, not found) ---------- */
.doc { max-width: 780px; margin: 0 auto; padding: 72px 28px 64px; }
.doc h1 { margin: 16px 0 6px; font-size: clamp(2.2rem, 4.4vw, 3.2rem); letter-spacing: -.02em; line-height: 1.1; }
[dir="rtl"] .doc h1 { letter-spacing: 0; line-height: 1.4; }
.doc .updated { margin: 0 0 34px; color: var(--faint); }
.doc .item { padding: 22px 0; border-top: 1px solid var(--line); }
.doc .item h2 { margin: 0 0 6px; font-size: 1.12rem; }
.doc .item p { margin: 0; color: var(--muted); }
.doc .item a { color: var(--accent); }
.doc.lost { min-height: 52vh; padding-top: 96px; }
.doc.lost .updated { font-size: 1.08rem; margin-bottom: 0; }

/* ---------- smaller screens ---------- */
@media (max-width: 1000px) {
  .hero-in { grid-template-columns: 1fr; padding-block: 56px 64px; gap: 30px; }
  .stage { max-width: 420px; }
  .products .head, .company-in, .contact-in { grid-template-columns: 1fr; gap: 20px; }
  .cards { grid-template-columns: 1fr; }
  .panel-in { grid-template-columns: 1fr; padding: 48px; gap: 36px; }
  .foot .cols { grid-template-columns: 1fr 1fr 1fr; }
  .foot .about { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 18px; }
  .bar { height: 62px; gap: 14px; }
  .menu { display: none; }
  .tools { margin-inline-start: auto; }
  .word { font-size: 17px; }
  .brand .mark { width: 22px; height: 36px; }
  .stage { max-width: 270px; }
  .mission { padding-block: 72px 24px; }
  .principles { grid-template-columns: 1fr; margin-top: 40px; }
  .principle, .principle + .principle { padding: 26px 0 18px; border-inline-start: 0; }
  .principle + .principle { border-top: 1px solid var(--line); }
  .products { padding-block: 48px 64px; }
  .product { padding: 26px 22px; }
  .nabu { padding-block: 0 72px; }
  .panel { border-radius: 22px; }
  .panel-in { padding: 34px 22px; }
  .panel h2 .badge { display: table; margin: 12px 0 0; }
  .step { grid-template-columns: 44px 1fr; padding: 18px; gap: 14px; }
  .step .n { width: 44px; height: 44px; font-size: 16px; }
  .company { padding-block: 0 64px; }
  .factlist div { grid-template-columns: 1fr; gap: 2px; }
  .contact { padding-block: 0 72px; }
  .contact-in { padding: 36px 20px; }
  .mailcard { grid-template-columns: 42px 1fr auto; padding: 16px; gap: 12px; }
  .mailcard .ic { width: 42px; height: 42px; }
  .btn { height: 50px; padding: 0 22px; }
  .foot .cols { grid-template-columns: 1fr 1fr; padding-block: 40px 24px; gap: 26px; }
  .doc { padding: 48px 18px 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage .halo, .draw { animation: none; }
  .draw { stroke-dashoffset: 0; }
  body, .btn, .chip, .product, .mailcard { transition: none; }
}

/* ---------- v4: the hero's pill, the phone menu, product previews, AI training, questions ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 6px 14px 6px 12px;
  border-radius: 999px; border: 1px solid var(--badge-line); background: var(--blue-soft);
  color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; transition: border-color .15s ease;
}
.pill:hover { border-color: var(--accent); }
.pill .pulse { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--blue-2); animation: ping 2.2s ease-out infinite; }
.pill .sep { width: 1px; height: 14px; flex: none; background: var(--line-strong); }
.pill .go { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); white-space: nowrap; }
.pill svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .pill svg { transform: scaleX(-1); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(28, 111, 240, .45); } 70%, 100% { box-shadow: 0 0 0 8px rgba(28, 111, 240, 0); } }

.mnav { display: none; }
.mnav summary { list-style: none; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav[open] .open-icon, .mnav:not([open]) .close-icon { display: none; }
.mnav-panel {
  position: absolute; top: 100%; inset-inline: 0; display: grid; padding: 6px 18px 14px;
  background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 22px 30px -22px rgba(7, 26, 61, .45);
}
.mnav-panel a { padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 17px; font-weight: 600; color: var(--text); }
.mnav-panel a:last-child { border-bottom: 0; }

.mock { display: grid; gap: 10px; align-content: center; min-height: 158px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-soft); }
.mock.chat .bubble { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; }
.mock.chat .me { justify-self: end; color: #fff; background: linear-gradient(160deg, var(--blue-2), var(--blue)); border-end-end-radius: 4px; }
.mock.chat .nabu {
  justify-self: start; display: flex; align-items: flex-start; gap: 10px;
  color: var(--text); background: var(--surface); border: 1px solid var(--line); border-end-start-radius: 4px;
}
.mock .mini { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.mock.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.mock.plan li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--muted); }
.mock.plan .tick {
  position: relative; width: 20px; height: 20px; flex: none; border-radius: 50%;
  background: var(--blue-soft); border: 1px solid var(--badge-line);
}
.mock.plan li.done .tick::after {
  content: ""; position: absolute; left: 6px; top: 4px; width: 5px; height: 9px;
  border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.mock.plan li.now { color: var(--text); font-weight: 600; }
.mock.plan li.now .tick { border-color: transparent; background: linear-gradient(160deg, var(--blue-2), var(--blue)); box-shadow: 0 0 0 4px var(--blue-soft); }

.training { position: relative; overflow: hidden; padding-block: 104px; background: var(--bg-soft); border-block: 1px solid var(--line); }
.training::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 10%, transparent 70%);
}
.training .wrap { position: relative; }
.training .head { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.training h2 { margin: 16px 0 0; font-size: clamp(2rem, 3.6vw, 2.9rem); letter-spacing: -.025em; line-height: 1.1; }
[dir="rtl"] .training h2 { letter-spacing: 0; line-height: 1.4; }
.training .head p { margin: 0; color: var(--muted); font-size: 1.08rem; }
.pipeline { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
/* a short link from each step's mark to the next one (never past the last step) */
.stage-step:not(:last-child)::after {
  content: ""; position: absolute; top: 27px; inset-inline-start: 68px; width: calc(100% + 22px - 80px); height: 2px;
  border-radius: 2px; background: linear-gradient(90deg, var(--mark-1), var(--mark-3)); opacity: .45;
}
[dir="rtl"] .stage-step:not(:last-child)::after { background: linear-gradient(270deg, var(--mark-1), var(--mark-3)); }
.stage-step { position: relative; display: grid; gap: 8px; align-content: start; }
.stage-step .node {
  width: 56px; height: 56px; margin-bottom: 12px; border-radius: 16px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(160deg, var(--blue-2), var(--blue));
  box-shadow: 0 0 0 6px var(--bg-soft), 0 14px 26px -12px var(--blue);
}
.stage-step .node svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.stage-step .kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
[dir="rtl"] .stage-step .kicker { letter-spacing: 0; text-transform: none; font-size: 13.5px; }
.stage-step h3 { margin: 0; font-size: 1.16rem; letter-spacing: -.01em; }
.stage-step p { margin: 0; color: var(--muted); font-size: .97rem; }
.cta-strip {
  margin-top: 60px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px;
  padding: 26px 30px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow);
}
.cta-strip p { margin: 0; font-size: 1.12rem; font-weight: 600; max-width: 34em; }

.faq { padding-block: 60px 100px; }
.faq-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq h2 { margin: 16px 0 0; font-size: clamp(1.9rem, 3.2vw, 2.6rem); letter-spacing: -.02em; line-height: 1.15; }
[dir="rtl"] .faq h2 { letter-spacing: 0; line-height: 1.45; }
.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 2px; font-weight: 600; font-size: 1.06rem;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--accent); }
.qa .pm { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1px solid var(--line-strong); }
.qa .pm::before, .qa .pm::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; margin: -1px 0 0 -5px;
  border-radius: 2px; background: var(--accent); transition: transform .2s ease;
}
.qa .pm::after { transform: rotate(90deg); }
.qa details[open] .pm::after { transform: rotate(0deg); }
.qa details p { margin: 0 0 22px; color: var(--muted); max-width: 46em; }
.qa a { color: var(--accent); }

@media (max-width: 1000px) {
  .menu { display: none; }
  .mnav { display: block; }
  .tools { margin-inline-start: auto; }
  .training .head, .faq-in { grid-template-columns: 1fr; gap: 20px; }
  .pipeline { grid-template-columns: 1fr; gap: 28px; }
  .stage-step:not(:last-child)::after, [dir="rtl"] .stage-step:not(:last-child)::after {
    top: 68px; bottom: -16px; inset-inline-start: 27px; width: 2px; height: auto;
    background: linear-gradient(180deg, var(--mark-1), var(--mark-3));
  }
  .stage-step { grid-template-columns: 56px 1fr; column-gap: 20px; row-gap: 6px; }
  .stage-step .node { grid-row: span 3; margin: 0; }
  .stage-step > :not(.node) { grid-column: 2; }
}
@media (max-width: 760px) {
  .training { padding-block: 72px; }
  .company { padding-block: 72px 24px; }
  .faq { padding-block: 40px 72px; }
  .cta-strip { padding: 22px 20px; }
  .cta-strip .btn { white-space: normal; height: auto; min-height: 50px; padding-block: 12px; }
}
@media (max-width: 400px) {
  .bar { gap: 8px; }
  .tools { gap: 6px; }
  .word { font-size: 16px; }
  .chip { padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .pill .pulse { animation: none; }
  .qa .pm::before, .qa .pm::after { transition: none; }
}
