/* ==========================================================
   Syncora — marketing site
   Palette taken from the Pioneers Computer Co. brand mark:
   navy, teal, gold and grey.
   Logical properties are used throughout so RTL works by default.
   ========================================================== */

:root {
  --navy-900: #0b1530;
  --navy-800: #111e42;
  --navy-700: #1d2b5e;
  --navy-600: #2a3b78;
  --teal-500: #13898b;
  --teal-400: #1fb0b2;
  --teal-300: #7fd3d4;
  --gold-500: #c8952c;
  --gold-400: #e7b75a;
  --grey-400: #a7a9ac;
  --ok: #22c38e;
  --bad: #e5566b;

  --bg: #ffffff;
  --bg-tint: #f4f6fb;
  --surface: #ffffff;
  --text: #1a2240;
  --text-muted: #5a6382;
  --border: #e2e6f0;
  --heading: #0f1a3d;
  --shadow: 0 1px 2px rgba(15, 26, 61, .06), 0 8px 24px rgba(15, 26, 61, .08);

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1200px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1329;
    --bg-tint: #0f1833;
    --surface: #131d3c;
    --text: #d9deef;
    --text-muted: #9aa3c2;
    --border: #23305a;
    --heading: #ffffff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
  }
}
:root[data-theme="dark"] {
  --bg: #0c1329;
  --bg-tint: #0f1833;
  --surface: #131d3c;
  --text: #d9deef;
  --text-muted: #9aa3c2;
  --border: #23305a;
  --heading: #ffffff;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { font-family: var(--font-ar); line-height: 1.75; }
img, svg { max-width: 100%; }
a { color: var(--teal-500); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--heading); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
html[lang="ar"] :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.4; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 720px) { .container { padding-inline: 32px; } }
.narrow { max-width: 860px; }

.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--gold-500); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { inset-inline-start: 8px; }

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  color: var(--teal-500); margin-bottom: .9rem;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: .9rem; }
.eyebrow-light { color: var(--teal-300); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.5em; border-radius: 999px; font-weight: 650; font-size: 1rem;
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none !important;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--gold-500), #d9a640); color: #1b1300; box-shadow: 0 6px 20px rgba(200, 149, 44, .35); }
.btn-primary:hover { box-shadow: 0 10px 28px rgba(200, 149, 44, .45); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .04); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
.btn-sm { padding: .55em 1.1em; font-size: .9rem; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.scrolled { background: rgba(11, 21, 48, .86); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.nav { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none !important; }
.brand-name { font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; font-family: var(--font); }
.nav-links { display: flex; gap: 26px; margin-inline-start: auto; }
.nav-links a { color: rgba(255, 255, 255, .78); font-weight: 500; font-size: .95rem; text-decoration: none; }
.nav-links a:hover { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px;
  padding: .35em .9em; cursor: pointer; font-size: .9rem; font-family: var(--font-ar);
}
html[lang="ar"] .lang-toggle { font-family: var(--font); }
.lang-toggle:hover { border-color: #fff; }
.menu-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-actions { margin-inline-start: auto; }
  .nav-links {
    position: absolute; top: 72px; inset-inline: 0; flex-direction: column; gap: 0;
    background: rgba(11, 21, 48, .97); backdrop-filter: blur(12px);
    padding: 8px 16px 20px; margin: 0; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 4px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #cfd6ee;
  background: var(--navy-900);
  padding-block: 132px 88px;
  /* fill the first screen so the next section never peeks in half-cut */
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
}
.hero > .container { flex: 1; }
.scroll-cue {
  position: absolute; bottom: 24px; inset-inline-start: 50%; margin-inline-start: -13px;
  width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .35); border-radius: 14px;
}
.scroll-cue span {
  position: absolute; top: 8px; inset-inline-start: 50%; margin-inline-start: -2px;
  width: 4px; height: 8px; border-radius: 2px; background: var(--gold-400);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@media (max-height: 700px), (max-width: 960px) { .scroll-cue { display: none; } }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(800px 420px at 85% 20%, rgba(19, 137, 139, .28), transparent 60%),
    radial-gradient(600px 400px at 10% 90%, rgba(200, 149, 44, .16), transparent 60%),
    linear-gradient(180deg, #0b1530, #0e1b3d);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; }
.grad { background: linear-gradient(90deg, var(--teal-300), var(--gold-400)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: #b7c0dd; max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-block: 28px; }
.hero-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-chips li {
  font-size: .85rem; padding: .4em .9em; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: #d6dcf0;
}
.hero-chips li::before { content: "✓"; color: var(--teal-300); margin-inline-end: .45em; font-weight: 700; }

.hero-visual { position: relative; }
.flow-svg { width: 100%; height: auto; display: block; overflow: visible; }
.flow-svg .wire { fill: none; stroke: rgba(127, 211, 212, .28); stroke-width: 2; stroke-dasharray: 5 6; animation: dash 1.2s linear infinite; }
.flow-svg .wire-out { stroke: rgba(231, 183, 90, .45); }
.flow-svg .wire-back { stroke: rgba(34, 195, 142, .4); animation-direction: reverse; }
@keyframes dash { to { stroke-dashoffset: -22; } }
.flow-svg .node rect { fill: rgba(255, 255, 255, .05); stroke: rgba(255, 255, 255, .16); stroke-width: 1.2; }
.flow-svg .node-qnd .lbl { font-size: 13px; }
.flow-svg .node-qnd rect { fill: rgba(200, 149, 44, .08); stroke: rgba(231, 183, 90, .55); }
.flow-svg .lbl { fill: #eef1fb; font-size: 12px; font-weight: 600; font-family: var(--font); }
html[lang="ar"] .flow-svg .lbl, html[lang="ar"] .flow-svg .sub { font-family: var(--font-ar); }
.flow-svg .sub { fill: #8f9abd; font-size: 10.5px; font-family: var(--font); }
.flow-svg .hub-name { font-size: 15px !important; font-weight: 800; font-family: var(--font) !important; }
.flow-svg .hub-step { fill: var(--teal-300); font-size: 13px !important; font-weight: 700; letter-spacing: .04em; transition: opacity .3s; }
.flow-svg .ring { fill: none; stroke: rgba(127, 211, 212, .45); stroke-width: 1.5; stroke-dasharray: 3 9; transform-origin: 295px 210px; animation: spin 14s linear infinite; }
.flow-svg .ring2 { stroke: rgba(231, 183, 90, .35); stroke-dasharray: 2 14; animation-duration: 22s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.pk { filter: drop-shadow(0 0 6px currentColor); }
.pk-teal { fill: var(--teal-300); color: var(--teal-300); }
.pk-gold { fill: var(--gold-400); color: var(--gold-400); }
.pk-grey { fill: #c4cae0; color: #c4cae0; }
.pk-signed { fill: var(--gold-400); color: var(--gold-400); }
.pk-ok { fill: var(--ok); color: var(--ok); }
/* mirror the diagram in RTL while keeping its text readable */
html[dir="rtl"] .flow-svg { transform: scaleX(-1); }
html[dir="rtl"] .flow-svg .no-mirror,
html[dir="rtl"] .flow-svg text { transform: scaleX(-1); transform-box: fill-box; transform-origin: center; }

.hero-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 10px; font-size: .82rem; color: #9aa5c8; }
.hero-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-teal { background: var(--teal-300); } .dot-gold { background: var(--gold-400); } .dot-ok { background: var(--ok); }

@media (max-width: 960px) {
  .hero { padding-block: 112px 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { max-width: 560px; margin-inline: auto; width: 100%; }
}

/* ---------- sections ---------- */
.section { padding-block: 96px; position: relative; }
@media (max-width: 720px) { .section { padding-block: 64px; } }
.section-tint { background: var(--bg-tint); }
.section-dark { background: var(--navy-900); color: #c3cbe6; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-lead { font-size: 1.1rem; color: var(--text-muted); }
.section-dark .section-lead { color: #a6b0d2; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3 { grid-template-columns: 1fr; } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- mandate ---------- */
.mandate-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.mandate p { color: var(--text-muted); }
.rails {
  position: relative; border-radius: var(--radius); padding: 32px; text-align: center;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); color: #fff; box-shadow: var(--shadow); overflow: hidden;
}
.rails-title { font-size: .85rem; color: #a6b0d2; margin-bottom: 18px; }
.rail-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; position: relative; z-index: 1; }
.rail {
  padding: 14px 8px; border-radius: 12px; font-weight: 700; letter-spacing: .03em; font-family: var(--font);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  animation: railPulse 4s ease-in-out infinite;
}
.rail:nth-child(2) { animation-delay: 1s; } .rail:nth-child(3) { animation-delay: 2s; } .rail:nth-child(4) { animation-delay: 3s; }
@keyframes railPulse { 0%, 70%, 100% { border-color: rgba(255, 255, 255, .14); box-shadow: none; } 20% { border-color: var(--gold-400); box-shadow: 0 0 22px rgba(231, 183, 90, .35); } }
.rail-hub {
  margin: 22px auto 0; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle, var(--teal-500), var(--navy-700)); font-weight: 800; font-family: var(--font);
  box-shadow: 0 0 0 10px rgba(19, 137, 139, .12), 0 0 0 22px rgba(19, 137, 139, .06);
}
@media (max-width: 860px) { .mandate-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- compare ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare-col { border-radius: var(--radius); padding: 32px; border: 1px solid var(--border); background: var(--surface); }
.compare-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.compare-col li { position: relative; padding-inline-start: 34px; }
.compare-col li::before {
  position: absolute; inset-inline-start: 0; top: .15em; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: .75rem; font-weight: 800;
}
.compare-without h3 { color: var(--text-muted); }
.compare-without li { color: var(--text-muted); }
.compare-without li::before { content: "✕"; background: rgba(229, 86, 107, .12); color: var(--bad); }
.compare-with { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--teal-500), var(--gold-500)) border-box; border: 2px solid transparent; box-shadow: var(--shadow); }
.compare-with li::before { content: "✓"; background: rgba(19, 137, 139, .14); color: var(--teal-500); }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }

/* ---------- pipeline ---------- */
.pipeline { position: relative; }
.pipe-track { position: relative; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); margin-inline: 6.25%; top: 30px; }
.pipe-fill { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--teal-400), var(--gold-400)); transition: width .8s var(--ease); }
html[dir="rtl"] .pipe-fill { background: linear-gradient(-90deg, var(--teal-400), var(--gold-400)); }
.pipe-packet {
  position: absolute; top: 50%; inset-inline-start: 0; width: 16px; height: 16px; margin-inline-start: -8px; margin-top: -8px;
  border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(231, 183, 90, .35), 0 0 24px var(--gold-400);
  transition: inset-inline-start .8s var(--ease);
}
.pipe-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; position: relative; }
.pipe-step {
  width: 100%; background: none; border: 0; color: #9aa5c8; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-weight: 600; font-size: .9rem; padding: 0;
}
.pipe-ico {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy-800); border: 2px solid rgba(255, 255, 255, .14); transition: all .4s var(--ease);
}
.pipe-ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html[dir="rtl"] .dir-ico svg { transform: scaleX(-1); }
.pipe-step.done .pipe-ico { border-color: var(--teal-400); color: var(--teal-300); }
.pipe-step.active { color: #fff; }
.pipe-step.active .pipe-ico { border-color: var(--gold-400); color: #1b1300; background: var(--gold-400); transform: scale(1.12); box-shadow: 0 0 0 8px rgba(231, 183, 90, .15), 0 0 30px rgba(231, 183, 90, .4); }
.pipe-detail { position: relative; margin-top: 40px; min-height: 190px; }
.pipe-card {
  position: absolute; inset: 0; padding: 32px 36px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); border: 1px solid rgba(255, 255, 255, .12);
  opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease); pointer-events: none;
}
.pipe-card.active { opacity: 1; transform: none; pointer-events: auto; position: relative; }
.pipe-card p { margin: 0; max-width: 62em; font-size: 1.05rem; }
.pipe-num { font-family: var(--mono); color: var(--gold-400); font-size: .9rem; font-weight: 500; display: block; margin-bottom: 6px; }
.pipe-controls { display: flex; justify-content: flex-end; margin-top: 16px; }
.pipe-play { background: transparent; border: 1px solid rgba(255, 255, 255, .25); color: #cfd6ee; padding: .4em 1em; border-radius: 999px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; font-size: .85rem; }
.pipe-play .ico-play { display: none; }
.pipe-play[aria-pressed="false"] .ico-play { display: inline; }
.pipe-play[aria-pressed="false"] .ico-pause { display: none; }

@media (max-width: 860px) {
  .pipe-track { display: none; }
  .pipe-steps { grid-template-columns: repeat(4, 1fr); row-gap: 20px; }
  .pipe-ico { width: 52px; height: 52px; }
  .pipe-card { padding: 24px; }
}

/* ---------- transformation ---------- */
.tx { display: grid; grid-template-columns: 1fr minmax(240px, .9fr) 1fr; gap: 28px; align-items: center; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: .85rem; font-weight: 600; color: var(--text-muted); }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.dots i:nth-child(1) { background: #e5566b; } .dots i:nth-child(2) { background: var(--gold-400); } .dots i:nth-child(3) { background: var(--ok); }
.tx pre { margin: 0; padding: 18px 20px; font-family: var(--mono); font-size: .82rem; line-height: 1.6; color: var(--text); overflow-x: auto; text-align: left; }
.tx-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tx-checks li {
  position: relative; padding: 10px 14px; padding-inline-start: 42px; border-radius: 10px; font-size: .92rem; font-weight: 550;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-muted);
  opacity: .35; transform: translateX(-8px); transition: all .45s var(--ease);
}
html[dir="rtl"] .tx-checks li { transform: translateX(8px); }
.tx-checks li::before {
  content: ""; position: absolute; inset-inline-start: 12px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%;
  border: 2px solid var(--border); transition: all .3s;
}
.tx-checks li.on { opacity: 1; transform: none; color: var(--text); border-color: rgba(19, 137, 139, .4); }
.tx-checks li.on::before { content: "✓"; display: grid; place-items: center; color: #fff; font-size: .7rem; font-weight: 800; background: var(--teal-500); border-color: var(--teal-500); }
.tx-out-body { padding: 24px; display: grid; gap: 20px; }
.tx-env { position: relative; }
.tx-layer {
  border-radius: 12px; padding: 12px 14px; font-size: .85rem; font-weight: 650; transition: all .5s var(--ease);
  opacity: .3; transform: scale(.97);
}
.tx-layer.l1 { background: rgba(200, 149, 44, .14); border: 1.5px dashed var(--gold-500); color: var(--gold-500); padding-bottom: 14px; }
.tx-layer.l2 { background: rgba(29, 43, 94, .08); border: 1.5px solid var(--navy-600); color: var(--navy-600); margin-top: 10px; }
.tx-layer.l3 { background: rgba(19, 137, 139, .12); border: 1.5px solid var(--teal-500); color: var(--teal-500); margin-top: 10px; }
.tx-layer.on { opacity: 1; transform: none; }
:root[data-theme="dark"] .tx-layer.l2 { color: #b9c4ee; border-color: #6b7cc0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tx-layer.l2 { color: #b9c4ee; border-color: #6b7cc0; } }
.tx-status { display: flex; justify-content: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: .5em 1.1em; border-radius: 999px; font-weight: 700; font-size: .9rem; }
.badge-wait { background: rgba(167, 169, 172, .18); color: var(--text-muted); }
.badge-wait::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; animation: spin .8s linear infinite; }
.badge-ok { background: rgba(34, 195, 142, .15); color: #13955f; display: none; }
.badge-ok::before { content: "✓"; }
.tx-status.done .badge-wait { display: none; }
.tx-status.done .badge-ok { display: inline-flex; animation: pop .5s var(--ease); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 960px) { .tx { grid-template-columns: 1fr; } }

/* ---------- integrations ---------- */
.int-card, .feat, .aud {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.int-card:hover, .feat:hover, .aud:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(19, 137, 139, .35); }
.int-card p, .feat p, .aud p { color: var(--text-muted); margin: 0; font-size: .97rem; }
.int-ico, .feat-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; }
.int-ico { background: linear-gradient(135deg, var(--navy-700), var(--teal-500)); color: #fff; }
.int-ico svg, .feat-ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fi-teal { background: rgba(19, 137, 139, .12); color: var(--teal-500); }
.fi-gold { background: rgba(200, 149, 44, .14); color: var(--gold-500); }
.fi-navy { background: rgba(42, 59, 120, .12); color: var(--navy-600); }
:root[data-theme="dark"] .fi-navy { color: #9fb0f0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fi-navy { color: #9fb0f0; } }
.tag { position: absolute; top: 18px; inset-inline-end: 18px; font-size: .72rem; font-weight: 700; padding: .25em .7em; border-radius: 999px; background: rgba(200, 149, 44, .15); color: var(--gold-500); }

.int-diagram {
  margin-top: 48px; display: grid; grid-template-columns: 1.2fr .5fr auto .5fr auto; align-items: center; gap: 12px;
  padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
}
.int-sources { display: grid; gap: 8px; }
.int-sources span { padding: 8px 14px; border-radius: 10px; background: var(--bg-tint); border: 1px solid var(--border); font-size: .88rem; font-weight: 550; }
.int-arrows { position: relative; height: 120px; display: flex; flex-direction: column; justify-content: space-around; }
.int-arrows i { display: block; height: 2px; position: relative; overflow: hidden; background: var(--border); }
.int-arrows i::after {
  content: ""; position: absolute; inset-block: 0; width: 40%; inset-inline-start: -40%;
  background: linear-gradient(90deg, transparent, var(--teal-500), transparent); animation: flowx 1.8s linear infinite;
}
.int-arrows i:nth-child(2)::after { animation-delay: .6s; } .int-arrows i:nth-child(3)::after { animation-delay: 1.2s; }
@keyframes flowx { to { inset-inline-start: 100%; } }
.int-core {
  display: grid; justify-items: center; gap: 4px; padding: 22px 26px; border-radius: 20px; color: #fff; font-weight: 800; font-family: var(--font);
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); box-shadow: 0 0 0 6px rgba(19, 137, 139, .12);
}
.int-core small { font-weight: 500; color: var(--teal-300); font-family: var(--font-ar), var(--font); }
html[lang="en"] .int-core small { font-family: var(--font); }
.int-target {
  width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-family: var(--font);
  background: rgba(200, 149, 44, .12); border: 2px solid var(--gold-500); color: var(--gold-500);
}
@media (max-width: 860px) {
  .int-diagram { grid-template-columns: 1fr; justify-items: center; }
  .int-sources { grid-template-columns: repeat(2, 1fr); width: 100%; }
  .int-arrows { height: 40px; width: 120px; flex-direction: row; justify-content: space-around; }
  .int-arrows i { width: 2px; height: 100%; }
  .int-arrows i::after { inset-inline: 0; width: auto; height: 40%; top: -40%; inset-block: auto; animation-name: flowy; background: linear-gradient(180deg, transparent, var(--teal-500), transparent); }
}
@keyframes flowy { to { top: 100%; } }

/* ---------- console mockup ---------- */
.console-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.ticks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-inline-start: 30px; color: #d3d9ef; }
.ticks li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--teal-300); font-weight: 800; }
.console { background: #0f1938; border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.console-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: rgba(255, 255, 255, .04); border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: .82rem; color: #9aa5c8; }
.console-title { font-family: var(--font); }
html[lang="ar"] .console-title { font-family: var(--font-ar); }
.console-body { padding: 22px; display: grid; gap: 20px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi { padding: 14px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.kpi small { display: block; color: #8f9abd; font-size: .75rem; }
.kpi b { font-size: 1.45rem; color: #fff; font-variant-numeric: tabular-nums; font-family: var(--font); }
.kpi-ok b { color: var(--ok); } .kpi-bad b { color: var(--bad); }
.muted { color: #8f9abd; font-size: .78rem; }
.states { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.states li {
  text-align: center; font-size: .7rem; font-weight: 650; padding: 8px 2px; border-radius: 8px; color: #6f7aa0;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); transition: all .4s var(--ease);
}
.states li.on { color: #d6f5f5; background: rgba(19, 137, 139, .3); border-color: var(--teal-400); }
.states li.cur { color: #1b1300; background: var(--gold-400); border-color: var(--gold-400); }
.rows { display: grid; gap: 8px; }
.row { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 10px; background: rgba(255, 255, 255, .03); font-family: var(--mono); font-size: .82rem; color: #c3cbe6; }
.chip { font-family: var(--font); font-size: .72rem; font-weight: 700; padding: .25em .75em; border-radius: 999px; }
html[lang="ar"] .chip { font-family: var(--font-ar); }
.chip-ok { background: rgba(34, 195, 142, .16); color: var(--ok); }
.chip-bad { background: rgba(229, 86, 107, .16); color: var(--bad); }
.chip-wait { background: rgba(231, 183, 90, .16); color: var(--gold-400); }
@media (max-width: 960px) { .console-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .states { grid-template-columns: repeat(3, 1fr); }
  .kpi b { font-size: 1.15rem; }
  .console-body { padding: 14px; }
}

/* ---------- security ---------- */
.sec { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); border-inline-start: 4px solid var(--teal-500); }
.sec:nth-child(even) { border-inline-start-color: var(--gold-500); }
.sec b { display: block; font-size: 1.15rem; color: var(--heading); margin-bottom: 6px; }
.sec p { margin: 0; color: var(--text-muted); font-size: .96rem; }

/* ---------- audience ---------- */
.aud-num { font-family: var(--mono); font-weight: 500; color: var(--gold-500); font-size: .9rem; display: block; margin-bottom: 14px; }

/* ---------- journey ---------- */
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.journey::before { content: ""; position: absolute; top: 22px; inset-inline: 12% ; height: 2px; background: linear-gradient(90deg, var(--teal-500), var(--gold-500)); opacity: .5; }
html[dir="rtl"] .journey::before { background: linear-gradient(-90deg, var(--teal-500), var(--gold-500)); }
.journey li { position: relative; text-align: center; }
.journey p { color: var(--text-muted); font-size: .95rem; margin: 0; }
.j-dot {
  position: relative; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; margin-bottom: 16px;
  background: var(--navy-700); color: #fff; font-weight: 800; box-shadow: 0 0 0 6px var(--bg);
}
.journey li:last-child .j-dot { background: var(--gold-500); color: #1b1300; }
@media (max-width: 760px) {
  .journey { grid-template-columns: 1fr; gap: 28px; }
  .journey::before { top: 0; bottom: 0; inset-inline-start: 22px; inset-inline-end: auto; width: 2px; height: auto; }
  .journey li { text-align: start; padding-inline-start: 70px; }
  .j-dot { position: absolute; inset-inline-start: 0; top: 0; }
}

/* ---------- faq ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 22px; transition: border-color .3s; }
.faq details[open] { border-color: rgba(19, 137, 139, .45); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 650; color: var(--heading); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--teal-500); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-muted); padding-bottom: 18px; margin: 0; }

/* ---------- demo ---------- */
.demo-section { background: radial-gradient(700px 400px at 90% 10%, rgba(19, 137, 139, .25), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(200, 149, 44, .14), transparent 60%), var(--navy-900); }
.demo-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.demo-mail { color: #cfd6ee; }
.demo-mail a { color: var(--gold-400); font-weight: 650; }
.demo-form { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 28px; display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.demo-form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; color: #cfd6ee; }
.demo-form input, .demo-form select, .demo-form textarea {
  width: 100%; font: inherit; font-size: .97rem; color: #fff; background: rgba(11, 21, 48, .6);
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 10px; padding: .7em .9em; transition: border-color .2s, box-shadow .2s;
}
.demo-form select option { color: #000; }
.demo-form input:focus, .demo-form select:focus, .demo-form textarea:focus { outline: none; border-color: var(--teal-400); box-shadow: 0 0 0 3px rgba(31, 176, 178, .25); }
.demo-form .invalid { border-color: var(--bad); }
.form-error { color: #ff9aa8; margin: 0; font-size: .9rem; }
.form-ok { color: #7fe3c3; margin: 0; font-size: .95rem; font-weight: 600; }
.demo-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.demo-form button[disabled] { opacity: .65; cursor: progress; }
.form-note { margin: 0; font-size: .8rem; color: #8f9abd; text-align: center; }
@media (max-width: 860px) { .demo-grid { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } .demo-form { padding: 20px; } }

/* ---------- footer ---------- */
.site-footer { background: #070e22; color: #8f9abd; padding-block: 56px 28px; font-size: .92rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; align-items: center; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer-brand p { margin: 10px 0 0; }
.footer-company { display: grid; justify-items: start; gap: 8px; }
.footer-company small { color: #6f7aa0; }
.footer-company a { color: var(--gold-400); }
.company-logo { display: block; background: #fff; border-radius: 12px; padding: 10px 16px; }
.company-logo img { display: block; width: 220px; max-width: 100%; height: auto; }
.footer-legal { padding-top: 24px; display: grid; gap: 6px; font-size: .82rem; }
.footer-legal p { margin: 0; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .flow-svg .packets { display: none; }
}
