/* ==========================================================================
   TrustMatrix — public home page + the inner public pages (Views/Home/Index.cshtml, Views/Site/*)

   Every visual on this page is markup: real text, CSS and inline SVG. The public
   surface carries no <img>, no hot-linked media and no third-party script, so
   nothing here can go blank, leak a request, or show a stock photograph.

   Motion rules
   - The resting style of every animated element is its FINISHED state (bar full,
     row ticked, seal shown). Keyframes only describe the way there. So with
     `prefers-reduced-motion: reduce` (animations removed below) the page shows
     the completed picture, never an empty one.
   - Loops pause while their section is off-screen (home.js adds .hx-off).
   - Direction-aware: --hx-dir is 1 in LTR and -1 in RTL, for anything that moves
     along the inline axis.
   ========================================================================== */

.tm-home {
  --hx-ink: #070d1c;
  --hx-ink-2: #0b1530;
  --hx-ink-3: #111d3d;
  --hx-line: rgba(15, 23, 42, .1);
  --hx-sky: #38bdf8;
  --hx-teal: #2dd4bf;
  --hx-blue: #3b82f6;
  --hx-violet: #a78bfa;
  --hx-gold: #fbbf24;
  --hx-green: #22c55e;
  --hx-red: #f87171;
  --hx-grad: linear-gradient(115deg, #38bdf8 0%, #2dd4bf 45%, #a78bfa 100%);
  --hx-grad-2: linear-gradient(135deg, #0ea5e9 0%, #0d9488 100%);
  --hx-radius: 18px;
  --hx-dir: 1;
  --hx-mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  overflow-x: clip;
}
html[dir="rtl"] .tm-home { --hx-dir: -1; }

/* The deep surfaces — the hero, its product window, the security band, the closing box and the inner pages'
   pictures — are light in the light theme; the dark ground and the dark windows are the dark theme's only (the owner,
   2026-11-18: «خلي الألوان الأسود والخلفيات دي فقط في الدارك مود»). Every colour they use is a --hd-* token below,
   and the dark values are the ones these parts always had, so the dark theme is unchanged. The sign-in page has no
   dark theme, so its panel (.lx-panel) is light too (the owner, same day: «صفحة الدخول نفس الشي»). */
.tm-home {
  --hd-ground: linear-gradient(180deg, #eaf3fc 0%, var(--mk-bg, #fff) 100%);
  --hd-glow1: rgba(56, 189, 248, .22); --hd-glow2: rgba(45, 212, 191, .16); --hd-orb: .5;
  --hd-grid: rgba(15, 23, 42, .06); --hd-beam: rgba(14, 165, 233, .5); --hd-beam2: rgba(13, 148, 136, .5);
  --hd-title: #0f172a; --hd-strong: #0f172a; --hd-text: #1e293b; --hd-text-2: #334155; --hd-lead: #475569;
  --hd-muted: #64748b; --hd-sep: #94a3b8;
  --hd-sky-t: #0369a1; --hd-sky-pale: #0369a1; --hd-sky-i: #0284c7; --hd-teal-t: #0f766e; --hd-teal-i: #0d9488;
  --hd-cyan-t: #0e7490; --hd-green-t: #15803d; --hd-gold-t: #b45309; --hd-seal-t: #15803d; --hd-pale-blue: #0369a1;
  --hd-win: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(244, 249, 254, .94));
  --hd-win-bd: rgba(15, 23, 42, .1);
  --hd-win-sh: 0 40px 80px -42px rgba(15, 23, 42, .42), 0 1px 0 #fff inset;
  --hd-tile: #fff; --hd-tile-2: #f8fafc; --hd-tile-3: #f8fafc; --hd-gap: #f4f9fe; --hd-node: #fff; --hd-dot-ring: #fff;
  --hd-float: rgba(255, 255, 255, .96); --hd-float-bd: rgba(15, 23, 42, .1); --hd-float-sh: 0 20px 40px -18px rgba(15, 23, 42, .35);
  --hd-orbit-node: #fff; --hd-orbit-bd: rgba(15, 23, 42, .14); --hd-orbit-sh: 0 10px 24px -12px rgba(15, 23, 42, .35);
  --hd-core: radial-gradient(circle at 30% 28%, rgba(56, 189, 248, .25), #fff 70%);
  --hd-ghost: #0f172a; --hd-ghost-bd: rgba(15, 23, 42, .18); --hd-ghost-bg: rgba(255, 255, 255, .75);
  --hd-ghost-h: #0f172a; --hd-ghost-hbd: rgba(15, 23, 42, .36); --hd-ghost-hbg: #fff;
  --hd-band: radial-gradient(800px 400px at 15% 20%, rgba(56, 189, 248, .14) 0%, transparent 60%), var(--mk-bg-alt, #f8fafc);
  --hd-card: var(--mk-bg, #fff); --hd-card-bd: var(--mk-border, #e2e8f0);
  --hd-cta: radial-gradient(600px 300px at 20% 0%, rgba(56, 189, 248, .22) 0%, transparent 60%), radial-gradient(500px 300px at 90% 100%, rgba(45, 212, 191, .2) 0%, transparent 60%), linear-gradient(180deg, #f2f8fe, #e8f2fb);
  --hd-cta-ring: inset 0 0 0 1px rgba(15, 23, 42, .07);
  --hd-shield: #fff;
}
.tm-home[data-bs-theme="dark"], [data-bs-theme="dark"] .tm-home {
  --hx-line: rgba(148, 163, 184, .16);
  --hd-ground: var(--hx-ink);
  --hd-glow1: #12306b; --hd-glow2: #0b3b46; --hd-orb: 1;
  --hd-grid: rgba(148, 163, 184, .09); --hd-beam: rgba(56, 189, 248, .8); --hd-beam2: rgba(45, 212, 191, .8);
  --hd-title: #fff; --hd-strong: #f1f5f9; --hd-text: #e2e8f0; --hd-text-2: #cbd5e1; --hd-lead: #a5b4cf;
  --hd-muted: #94a3b8; --hd-sep: #475569;
  --hd-sky-t: #7dd3fc; --hd-sky-pale: #bae6fd; --hd-sky-i: var(--hx-sky); --hd-teal-t: #5eead4; --hd-teal-i: var(--hx-teal);
  --hd-cyan-t: #a5f3fc; --hd-green-t: #4ade80; --hd-gold-t: #fcd34d; --hd-seal-t: #bbf7d0; --hd-pale-blue: #e0f2fe;
  --hd-win: linear-gradient(180deg, rgba(30, 41, 72, .78), rgba(12, 20, 40, .86));
  --hd-win-bd: rgba(148, 163, 184, .22);
  --hd-win-sh: 0 50px 100px -30px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255,255,255,.03) inset, 0 1px 0 rgba(255,255,255,.08) inset;
  --hd-tile: rgba(7, 13, 28, .72); --hd-tile-2: rgba(7, 13, 28, .8); --hd-tile-3: rgba(7, 13, 28, .65); --hd-gap: rgba(7, 13, 28, .9);
  --hd-node: #0b1530; --hd-dot-ring: #04121f;
  --hd-float: rgba(15, 23, 48, .88); --hd-float-bd: rgba(148, 163, 184, .25); --hd-float-sh: 0 20px 40px -12px rgba(0, 0, 0, .6);
  --hd-orbit-node: rgba(15, 23, 48, .92); --hd-orbit-bd: rgba(148, 163, 184, .3); --hd-orbit-sh: 0 10px 24px -10px rgba(0, 0, 0, .7);
  --hd-core: radial-gradient(circle at 30% 28%, rgba(56, 189, 248, .28), rgba(7, 13, 28, .96) 70%);
  --hd-ghost: #e2e8f0; --hd-ghost-bd: rgba(226, 232, 240, .28); --hd-ghost-bg: rgba(255,255,255,.04);
  --hd-ghost-h: #fff; --hd-ghost-hbd: rgba(226, 232, 240, .6); --hd-ghost-hbg: rgba(255,255,255,.09);
  --hd-band: radial-gradient(800px 400px at 15% 20%, #0f2f5c 0%, transparent 60%), var(--hx-ink);
  --hd-card: rgba(255, 255, 255, .03); --hd-card-bd: rgba(148, 163, 184, .16);
  --hd-cta: radial-gradient(600px 300px at 20% 0%, #134e8a 0%, transparent 60%), radial-gradient(500px 300px at 90% 100%, #0f5f5a 0%, transparent 60%), var(--hx-ink);
  --hd-cta-ring: none;
  --hd-shield: rgba(7, 13, 28, .9);
}

.tm-home .container { position: relative; }
.tm-home section { position: relative; }

/* ---------- shared bits ---------- */
.hx-kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--mk-accent);
  margin-bottom: .9rem;
}
html[dir="rtl"] .hx-kicker { letter-spacing: 0; font-size: .85rem; }
.hx-kicker::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; opacity: .7;
}
.hx-h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.6rem); font-weight: 800; line-height: 1.2;
  letter-spacing: -.02em; color: var(--mk-text); margin: 0 0 .9rem; text-wrap: balance;
}
html[dir="rtl"] .hx-h2 { letter-spacing: 0; line-height: 1.4; }
.hx-sub {
  font-size: 1.06rem; line-height: 1.75; color: var(--mk-text-muted); max-width: 46rem; margin: 0;
}
.hx-head { margin-bottom: 3rem; }
.hx-head.hx-center { text-align: center; }
.hx-head.hx-center .hx-sub { margin-inline: auto; }
/* marketing-pages.css caps every heading at 34ch; a centred heading must centre that box too */
.hx-head.hx-center .hx-h2, .hx-cta-box h2 { margin-inline: auto; }
.hx-section { padding: 6rem 0; background: var(--mk-bg); }
.hx-section.hx-alt { background: var(--mk-bg-alt); }
.hx-grad-text {
  background: var(--hx-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hx-btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.5rem; border-radius: 12px; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 1px solid transparent; position: relative; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.hx-btn:focus-visible { outline: 3px solid var(--hx-sky); outline-offset: 3px; }
.hx-btn-primary {
  color: #04121f; background: var(--hx-grad);
  box-shadow: 0 10px 30px -8px rgba(45, 212, 191, .55);
}
.hx-btn-primary::after {           /* a sheen that sweeps across now and then */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%);
  transform: translateX(-120%); animation: hx-sheen 5.5s ease-in-out infinite 1.5s;
}
.hx-btn-primary:hover { color: #04121f; transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(45, 212, 191, .7); }
.hx-btn-ghost { color: var(--hd-ghost); border-color: var(--hd-ghost-bd); background: var(--hd-ghost-bg); }
.hx-btn-ghost:hover { color: var(--hd-ghost-h); border-color: var(--hd-ghost-hbd); background: var(--hd-ghost-hbg); transform: translateY(-2px); }
.hx-btn-outline { color: var(--mk-text); border-color: var(--mk-border); background: var(--mk-bg); }
.hx-btn-outline:hover { color: var(--mk-accent); border-color: var(--mk-accent); transform: translateY(-2px); }
@keyframes hx-sheen { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* ==========================================================================
   HERO
   ========================================================================== */
.hx-hero {
  background: radial-gradient(1200px 600px at 80% -10%, var(--hd-glow1) 0%, transparent 60%),
              radial-gradient(900px 500px at 0% 110%, var(--hd-glow2) 0%, transparent 60%),
              var(--hd-ground);
  color: var(--hd-text); padding: 5.5rem 0 9rem; overflow: hidden; isolation: isolate;
}
.hx-hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hx-orb {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55;
  animation: hx-drift 18s ease-in-out infinite alternate;
}
.hx-orb-1 { width: 520px; height: 520px; background: #0ea5e9; top: -180px; inset-inline-end: -120px; opacity: calc(.35 * var(--hd-orb)); }
.hx-orb-2 { width: 420px; height: 420px; background: #14b8a6; bottom: -200px; inset-inline-start: 10%; opacity: calc(.28 * var(--hd-orb)); animation-duration: 22s; animation-delay: -6s; }
.hx-orb-3 { width: 300px; height: 300px; background: #8b5cf6; top: 30%; inset-inline-start: 45%; opacity: calc(.22 * var(--hd-orb)); animation-duration: 26s; animation-delay: -12s; }
@keyframes hx-drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(calc(60px * var(--hx-dir)), 40px, 0) scale(1.12); }
  100% { transform: translate3d(calc(-40px * var(--hx-dir)), -30px, 0) scale(.95); }
}
.hx-grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(var(--hd-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--hd-grid) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 30%, transparent 75%);
  animation: hx-grid-pan 40s linear infinite;
}
@keyframes hx-grid-pan { to { background-position: 56px 56px, 56px 56px; } }
.hx-beam {
  position: absolute; top: -30%; width: 1px; height: 200px;
  background: linear-gradient(180deg, transparent, var(--hd-beam), transparent);
  animation: hx-fall 7s linear infinite; opacity: .7;
}
.hx-beam:nth-child(5) { inset-inline-start: 18%; animation-delay: -1s; }
.hx-beam:nth-child(6) { inset-inline-start: 38%; animation-delay: -4.5s; animation-duration: 9s; }
.hx-beam:nth-child(7) { inset-inline-start: 64%; animation-delay: -2.5s; animation-duration: 8s; background: linear-gradient(180deg, transparent, var(--hd-beam2), transparent); }
.hx-beam:nth-child(8) { inset-inline-start: 86%; animation-delay: -6s; }
@keyframes hx-fall { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: .8; } 100% { transform: translateY(1100px); opacity: 0; } }

.hx-hero-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 3.5rem; align-items: center;
}
.hx-eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .4rem .95rem .4rem .75rem; border-radius: 999px;
  background: rgba(56, 189, 248, .1); border: 1px solid rgba(56, 189, 248, .3);
  color: var(--hd-sky-pale); font-size: .85rem; font-weight: 600; margin-bottom: 1.5rem;
}
.hx-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hx-teal); box-shadow: 0 0 0 0 rgba(45, 212, 191, .7); animation: hx-ping 2s infinite; }
@keyframes hx-ping { 0% { box-shadow: 0 0 0 0 rgba(45, 212, 191, .7); } 80%, 100% { box-shadow: 0 0 0 10px rgba(45, 212, 191, 0); } }

.hx-title { margin: 0 0 1.25rem; }
.hx-title .hx-brand {
  display: block; font-size: clamp(3rem, 6.2vw, 5.2rem); font-weight: 900; line-height: 1;
  letter-spacing: -.045em; color: var(--hd-title); margin-bottom: 1rem;
}
.hx-title .hx-brand .tm-brand-2 {
  background: var(--hx-grad); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: hx-shimmer 8s ease-in-out infinite;
}
@keyframes hx-shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hx-title .hx-prop {
  display: block; font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 700; line-height: 1.35; color: var(--hd-strong);
  text-wrap: balance;
}
html[dir="rtl"] .hx-title .hx-prop { line-height: 1.6; }
.hx-lead { font-size: 1.1rem; line-height: 1.85; color: var(--hd-lead); margin: 0 0 2rem; max-width: 36rem; }
.hx-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 2rem; }
.hx-assure { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.hx-assure li { display: inline-flex; align-items: center; gap: .45rem; color: var(--hd-text-2); font-size: .92rem; }
.hx-assure i { color: var(--hd-teal-i); font-size: 1.05rem; }

/* ---------- the product stage ---------- */
.hx-stage { position: relative; perspective: 1600px; padding: 2.2rem 1.2rem; }
.hx-tilt { transform: rotateX(var(--hx-rx, 0deg)) rotateY(var(--hx-ry, 0deg)); transition: transform .25s ease-out; transform-style: preserve-3d; }
.hx-window {
  position: relative; border-radius: var(--hx-radius);
  background: var(--hd-win);
  border: 1px solid var(--hd-win-bd);
  box-shadow: var(--hd-win-sh);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  animation: hx-hover 9s ease-in-out infinite;
}
@keyframes hx-hover { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hx-window::before {               /* light rim that travels round the window */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--hx-angle, 0deg), transparent 0 70%, rgba(56, 189, 248, .9) 80%, rgba(45, 212, 191, .9) 88%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: hx-rim 6s linear infinite; pointer-events: none;
}
@property --hx-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes hx-rim { to { --hx-angle: 360deg; } }

.hx-window-bar {
  display: flex; align-items: center; gap: .45rem; padding: .7rem 1rem;
  border-bottom: 1px solid var(--hx-line); font-size: .78rem; color: var(--hd-muted);
}
.hx-window-bar > i { width: 10px; height: 10px; border-radius: 50%; background: #334155; display: inline-block; }
.hx-window-bar > i:nth-child(1) { background: #f87171; }
.hx-window-bar > i:nth-child(2) { background: #fbbf24; }
.hx-window-bar > i:nth-child(3) { background: #34d399; }
.hx-window-bar span { margin-inline-start: .6rem; font-weight: 600; color: var(--hd-text-2); }
.hx-live { margin-inline-start: auto; display: inline-flex; align-items: center; gap: .35rem; font-style: normal; color: var(--hd-teal-t); font-weight: 700; }
.hx-live b { width: 7px; height: 7px; border-radius: 50%; background: #2dd4bf; animation: hx-ping 1.8s infinite; }

.hx-window-body {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto;
  gap: 18px; padding: 18px;
}
.hx-tile {
  position: relative; border-radius: 12px; padding: .8rem .85rem .9rem;
  background: var(--hd-tile); border: 1px solid var(--hx-line);
  color: var(--hd-text); font-size: .74rem; overflow: hidden; min-width: 0;
  animation: hx-focus 8s ease-in-out infinite;
}
.hx-t1 { grid-column: 1; grid-row: 1; animation-delay: 0s; }
.hx-t2 { grid-column: 2; grid-row: 1; animation-delay: 2s; }
.hx-t3 { grid-column: 2; grid-row: 2; animation-delay: 4s; }
.hx-t4 { grid-column: 1; grid-row: 2; animation-delay: 6s; }
@keyframes hx-focus {
  0%, 27%, 100% { border-color: var(--hx-line); box-shadow: none; }
  5%, 22% { border-color: rgba(56, 189, 248, .75); box-shadow: 0 0 0 1px rgba(56, 189, 248, .3), 0 14px 34px -12px rgba(56, 189, 248, .6); }
}
.hx-tile-head { display: flex; align-items: center; gap: .45rem; margin-bottom: .6rem; font-weight: 700; color: var(--hd-strong); font-size: .78rem; white-space: nowrap; }
.hx-tile-head i { color: var(--hd-sky-i); font-size: .95rem; }
.hx-tile-head small { margin-inline-start: auto; color: #64748b; font-weight: 600; font-size: .68rem; }
.hx-step-no {
  display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 6px;
  background: rgba(56, 189, 248, .16); color: var(--hd-sky-t); font-size: .66rem; font-weight: 800;
}

/* connectors between the four tiles (a U: 1 → 2, down to 3, back to 4) */
.hx-link {
  position: absolute; z-index: 2; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: .8rem; color: #0b1530;
  background: var(--hx-grad); box-shadow: 0 0 0 4px var(--hd-gap);
  animation: hx-link 8s ease-in-out infinite;
}
.hx-link-a { top: calc(25% + 10px); inset-inline-start: 50%; transform: translate(calc(-50% * var(--hx-dir)), -50%); animation-delay: 1.6s; }
.hx-link-b { top: 50%; inset-inline-start: 75%; transform: translate(calc(-50% * var(--hx-dir)), -50%); animation-delay: 3.6s; }
.hx-link-c { top: calc(75% - 6px); inset-inline-start: 50%; transform: translate(calc(-50% * var(--hx-dir)), -50%); animation-delay: 5.6s; }
@keyframes hx-link {
  0%, 12%, 100% { box-shadow: 0 0 0 4px var(--hd-gap), 0 0 0 4px rgba(45, 212, 191, 0); }
  5% { box-shadow: 0 0 0 4px var(--hd-gap), 0 0 0 12px rgba(45, 212, 191, .35); }
}

/* tile 1 — trial balance rows with a scanning highlight */
.hx-tb { position: relative; display: grid; gap: 2px; }
.hx-tb-row { display: grid; grid-template-columns: 2.4em minmax(0, 1fr) auto; gap: .45rem; align-items: center; padding: .28rem .35rem; border-radius: 6px; }
.hx-tb-row .c { color: #64748b; font-family: var(--hx-mono); font-size: .68rem; }
.hx-tb-row .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--hd-text-2); }
.hx-tb-row .a { font-family: var(--hx-mono); color: var(--hd-text); font-size: .7rem; direction: ltr; }
.hx-scan {
  position: absolute; inset-inline: 0; top: 0; height: 25%; border-radius: 6px;
  background: linear-gradient(90deg, rgba(56, 189, 248, .05), rgba(56, 189, 248, .22), rgba(56, 189, 248, .05));
  border: 1px solid rgba(56, 189, 248, .35);
  animation: hx-scan 4s steps(1, end) infinite;
}
@keyframes hx-scan { 0% { top: 0; } 25% { top: 25%; } 50% { top: 50%; } 75% { top: 75%; } 100% { top: 0; } }

/* tile 2 — mapping with confidence bars */
.hx-map { display: grid; gap: .5rem; }
.hx-map-row { display: grid; gap: .25rem; }
.hx-chip {
  display: inline-block; max-width: 100%; direction: ltr; text-align: start; unicode-bidi: isolate;
  font-family: var(--hx-mono); font-size: .64rem; color: var(--hd-cyan-t);
  background: rgba(45, 212, 191, .1); border: 1px solid rgba(45, 212, 191, .28);
  padding: .12rem .4rem; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hx-meter { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem; align-items: center; }
.hx-meter > span { height: 5px; border-radius: 3px; background: rgba(148, 163, 184, .16); overflow: hidden; }
.hx-meter > span > i {
  display: block; height: 100%; width: var(--w, 90%); border-radius: inherit;
  background: linear-gradient(90deg, #2dd4bf, #38bdf8);
  animation: hx-fill 4s cubic-bezier(.2, .8, .2, 1) infinite; animation-delay: var(--d, 0s);
}
.hx-meter > b { font-size: .66rem; color: var(--hd-teal-t); font-family: var(--hx-mono); }
@keyframes hx-fill { 0% { width: 0; } 45%, 100% { width: var(--w, 90%); } }

/* tile 3 — statements: bars + the balance check */
.hx-bars { display: flex; align-items: flex-end; gap: 6px; height: 64px; padding: 0 .1rem; border-bottom: 1px solid var(--hx-line); }
.hx-bars i {
  flex: 1; height: var(--h, 60%); border-radius: 4px 4px 1px 1px;
  background: linear-gradient(180deg, #38bdf8, rgba(56, 189, 248, .25));
  transform-origin: bottom; animation: hx-grow 4s cubic-bezier(.2, .8, .2, 1) infinite; animation-delay: var(--d, 0s);
}
.hx-bars i:nth-child(even) { background: linear-gradient(180deg, #a78bfa, rgba(167, 139, 250, .25)); }
@keyframes hx-grow { 0% { transform: scaleY(.08); } 40%, 100% { transform: scaleY(1); } }
.hx-eq { display: flex; align-items: center; gap: .35rem; margin-top: .55rem; color: var(--hd-text-2); font-size: .68rem; white-space: nowrap; overflow: hidden; }
.hx-eq b { color: var(--hd-strong); }
.hx-eq .ok { margin-inline-start: auto; color: var(--hd-green-t); font-size: .9rem; animation: hx-pop 4s ease-out infinite 1.6s; }
@keyframes hx-pop { 0%, 30% { transform: scale(1); } 36% { transform: scale(1.45); } 44%, 100% { transform: scale(1); } }

/* tile 4 — the XBRL instance being written, then validated */
.hx-code { direction: ltr; text-align: left; font-family: var(--hx-mono); font-size: .62rem; line-height: 1.7; color: var(--hd-muted); }
.hx-code > span { display: block; white-space: nowrap; overflow: hidden; width: 100%; animation: hx-type 8s steps(28, end) infinite; }
.hx-code > span:nth-child(2) { animation-delay: .5s; }
.hx-code > span:nth-child(3) { animation-delay: 1s; }
.hx-code .t { color: var(--hd-sky-t); }
.hx-code .v { color: var(--hd-gold-t); }
@keyframes hx-type { 0% { width: 0; } 30%, 100% { width: 100%; } }
.hx-seal {
  display: inline-flex; align-items: center; gap: .35rem; margin-top: .55rem;
  padding: .22rem .55rem; border-radius: 999px; font-size: .66rem; font-weight: 700;
  color: var(--hd-seal-t); background: rgba(34, 197, 94, .14); border: 1px solid rgba(34, 197, 94, .4);
  animation: hx-seal 8s ease-out infinite;
}
@keyframes hx-seal { 0%, 30% { opacity: .25; transform: scale(.9); } 36% { opacity: 1; transform: scale(1.08); } 42%, 100% { opacity: 1; transform: scale(1); } }

/* floating cards around the window */
.hx-float {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: .65rem;
  padding: .7rem .95rem; border-radius: 14px; font-size: .8rem; color: var(--hd-text);
  background: var(--hd-float); border: 1px solid var(--hd-float-bd);
  box-shadow: var(--hd-float-sh);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  animation: hx-bob 6s ease-in-out infinite;
}
.hx-float strong { display: block; color: var(--hd-title); font-size: .9rem; }
.hx-float small { color: var(--hd-muted); font-size: .72rem; }
.hx-f1 { top: 0; inset-inline-end: -.5rem; }
.hx-f2 { bottom: -.7rem; inset-inline-start: -1.2rem; animation-delay: -2s; }
.hx-f3 { bottom: -.7rem; inset-inline-end: 1.6rem; animation-delay: -4s; }
.hx-f2 > i, .hx-f3 > i {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 1rem;
}
.hx-f2 > i { background: rgba(34, 197, 94, .16); color: var(--hd-green-t); }
.hx-f3 > i { background: rgba(251, 191, 36, .14); color: var(--hd-gold-t); }
@keyframes hx-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hx-ring { width: 40px; height: 40px; flex: none; }
.hx-ring circle { fill: none; stroke-width: 4; }
.hx-ring .bg { stroke: rgba(148, 163, 184, .2); }
.hx-ring .fg {
  stroke: url(#hx-ring-grad); stroke-linecap: round; stroke-dasharray: 100 100; stroke-dashoffset: 0;
  transform: rotate(-90deg); transform-origin: center; animation: hx-ring 6s ease-in-out infinite;
}
@keyframes hx-ring { 0% { stroke-dashoffset: 100; } 50%, 100% { stroke-dashoffset: 0; } }

/* ==========================================================================
   STAT BAR (overlaps the hero)
   ========================================================================== */
.hx-statbar-wrap { margin-top: -5.5rem; position: relative; z-index: 4; padding-bottom: 1rem; background: transparent; }
.hx-statbar {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  background: var(--mk-bg); border: 1px solid var(--mk-border); border-radius: 20px;
  box-shadow: 0 30px 60px -30px rgba(15, 23, 42, .35);
  overflow: hidden;
}
.hx-stat { padding: 1.6rem 1.3rem; position: relative; }
.hx-stat + .hx-stat { border-inline-start: 1px solid var(--mk-border); }
.hx-stat-value {
  font-size: clamp(1.7rem, 2.6vw, 2.35rem); font-weight: 900; line-height: 1.1; letter-spacing: -.02em;
  background: var(--hx-grad-2); -webkit-background-clip: text; background-clip: text; color: transparent;
  direction: ltr; unicode-bidi: isolate; display: inline-block; white-space: nowrap;
}
.hx-stat-value.hx-sm { font-size: clamp(1.25rem, 1.9vw, 1.7rem); padding-top: .35rem; }
.hx-stat-label { margin-top: .45rem; font-size: .88rem; line-height: 1.55; color: var(--mk-text-muted); }

/* ==========================================================================
   MARQUEE — standards the platform works against
   ========================================================================== */
.hx-marquee { padding: 2.2rem 0 1rem; background: var(--mk-bg); }
.hx-marquee-title { text-align: center; color: var(--mk-text-light); font-size: .85rem; font-weight: 600; margin-bottom: 1.1rem; }
.hx-marquee-row {
  overflow: hidden; padding: .4rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.hx-marquee-track { display: flex; width: max-content; animation: hx-marq 42s linear infinite; }
.hx-marquee-group { display: flex; gap: .9rem; padding-inline-end: .9rem; }
.hx-marquee-row.hx-rev .hx-marquee-track { animation-direction: reverse; animation-duration: 50s; }
.hx-marquee-row:hover .hx-marquee-track { animation-play-state: paused; }
@keyframes hx-marq { to { transform: translateX(calc(-50% * var(--hx-dir))); } }
.hx-pill {
  display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap;
  padding: .6rem 1.1rem; border-radius: 12px; font-weight: 700; font-size: .92rem;
  color: var(--mk-text); background: var(--mk-bg-alt); border: 1px solid var(--mk-border);
}
.hx-pill i { color: var(--mk-accent); }
.hx-pill small { font-weight: 500; color: var(--mk-text-light); }

/* ==========================================================================
   BEFORE / AFTER
   ========================================================================== */
.hx-vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.5rem; align-items: stretch; }
.hx-vs-card {
  border-radius: var(--hx-radius); padding: 2rem; border: 1px solid var(--mk-border); background: var(--mk-bg);
  box-shadow: 0 20px 50px -35px rgba(15, 23, 42, .35);
}
.hx-vs-card h3 { font-size: 1.25rem; font-weight: 800; margin: 0 0 1.2rem; display: flex; align-items: center; gap: .6rem; color: var(--mk-text); }
.hx-vs-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.hx-vs-card li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: .65rem; line-height: 1.7; color: var(--mk-text-muted); }
.hx-vs-card li i { font-size: 1.15rem; margin-top: .1rem; }
.hx-before h3 i, .hx-before li i { color: #ef4444; }
.hx-after { border-color: rgba(13, 148, 136, .45); background: linear-gradient(180deg, rgba(45, 212, 191, .07), transparent 60%), var(--mk-bg); }
.hx-after h3 i, .hx-after li i { color: #0d9488; }
.hx-vs-mid { display: grid; place-items: center; }
.hx-vs-arrow {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem;
  color: #fff; background: var(--hx-grad-2); box-shadow: 0 14px 30px -10px rgba(13, 148, 136, .6);
  animation: hx-nudge 2.4s ease-in-out infinite;
}
@keyframes hx-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(calc(8px * var(--hx-dir))); } }
.hx-papers { position: relative; height: 92px; margin-bottom: 1.2rem; }
.hx-papers span {
  position: absolute; width: 64px; height: 80px; border-radius: 8px; border: 1px solid var(--mk-border);
  background: repeating-linear-gradient(180deg, var(--mk-bg) 0 12px, var(--mk-bg-alt) 12px 13px);
  box-shadow: 0 8px 16px -10px rgba(15, 23, 42, .4);
  animation: hx-jitter 3.2s ease-in-out infinite;
}
.hx-papers span:nth-child(1) { inset-inline-start: 0; top: 8px; --r: -8deg; }
.hx-papers span:nth-child(2) { inset-inline-start: 46px; top: 0; --r: 6deg; animation-delay: -.8s; }
.hx-papers span:nth-child(3) { inset-inline-start: 92px; top: 10px; --r: -3deg; animation-delay: -1.6s; }
.hx-papers span:nth-child(4) { inset-inline-start: 138px; top: 4px; --r: 10deg; animation-delay: -2.4s; }
.hx-papers span::after {
  content: "!"; position: absolute; top: -8px; inset-inline-end: -8px; width: 20px; height: 20px; border-radius: 50%;
  background: #ef4444; color: #fff; font-size: .75rem; font-weight: 800; display: grid; place-items: center;
}
.hx-papers span:nth-child(odd)::after { display: none; }
@keyframes hx-jitter { 0%, 100% { transform: rotate(var(--r)); } 50% { transform: rotate(calc(var(--r) * -1)) translateY(-3px); } }
.hx-flowline { position: relative; height: 92px; margin-bottom: 1.2rem; display: flex; align-items: center; gap: 8px; }
.hx-flowline b {
  flex: 1; height: 54px; border-radius: 10px; display: grid; place-items: center; font-size: 1.3rem;
  color: #0d9488; background: rgba(45, 212, 191, .1); border: 1px solid rgba(13, 148, 136, .35);
  animation: hx-lit 4s ease-in-out infinite;
}
.hx-flowline b:nth-of-type(2) { animation-delay: 1s; }
.hx-flowline b:nth-of-type(3) { animation-delay: 2s; }
.hx-flowline b:nth-of-type(4) { animation-delay: 3s; }
.hx-flowline em { color: var(--mk-text-light); font-style: normal; }
@keyframes hx-lit { 0%, 30%, 100% { background: rgba(45, 212, 191, .1); transform: none; } 12% { background: rgba(45, 212, 191, .3); transform: translateY(-4px); } }

.hx-shift {
  margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .8rem 1.2rem;
  padding: 1.1rem 1.4rem; border-radius: 14px; border: 1px dashed var(--mk-border); color: var(--mk-text-muted);
}
.hx-shift .was { text-decoration: line-through; text-decoration-color: #ef4444; opacity: .75; }
.hx-shift .now { font-weight: 800; color: var(--mk-text); }
.hx-shift .tag { font-size: .72rem; font-weight: 800; padding: .2rem .55rem; border-radius: 6px; }
.hx-shift .tag-was { background: rgba(239, 68, 68, .12); color: #dc2626; }
.hx-shift .tag-now { background: rgba(13, 148, 136, .14); color: #0f766e; }

/* ==========================================================================
   FILING CYCLE — seven steps with a travelling pulse
   ========================================================================== */
.hx-steps { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1rem; }
.hx-steps-line { position: absolute; top: 36px; inset-inline: 7%; height: 3px; border-radius: 3px; background: var(--mk-border); overflow: hidden; }
.hx-steps-line i {
  position: absolute; top: 0; inset-inline-start: 0; width: 22%; height: 100%;
  background: linear-gradient(90deg, transparent, #2dd4bf, #38bdf8, transparent);
  animation: hx-run 7s linear infinite;
}
@keyframes hx-run { from { transform: translateX(calc(-100% * var(--hx-dir))); } to { transform: translateX(calc(460% * var(--hx-dir))); } }
.hx-step { position: relative; text-align: center; z-index: 1; }
.hx-step-node {
  width: 72px; height: 72px; margin: 0 auto .9rem; border-radius: 22px; display: grid; place-items: center;
  font-size: 1.55rem; color: var(--mk-accent); background: var(--mk-bg); border: 1px solid var(--mk-border);
  box-shadow: 0 10px 24px -14px rgba(15, 23, 42, .4); position: relative;
  animation: hx-node 7s ease-in-out infinite; animation-delay: calc(var(--i) * .95s);
}
.hx-step-node b {
  position: absolute; top: -8px; inset-inline-end: -8px; width: 24px; height: 24px; border-radius: 50%;
  font-size: .72rem; font-weight: 800; display: grid; place-items: center; color: #fff; background: var(--hx-grad-2);
}
@keyframes hx-node {
  0%, 18%, 100% { border-color: var(--mk-border); transform: none; box-shadow: 0 10px 24px -14px rgba(15, 23, 42, .4); }
  6%, 12% { border-color: #2dd4bf; transform: translateY(-6px); box-shadow: 0 18px 30px -14px rgba(13, 148, 136, .65); }
}
.hx-step h3 { font-size: .98rem; font-weight: 800; color: var(--mk-text); margin: 0 0 .35rem; line-height: 1.45; }
.hx-step p { font-size: .84rem; line-height: 1.6; color: var(--mk-text-muted); margin: 0; }

/* ==========================================================================
   SHOWCASE — four rows with live mock-ups
   ========================================================================== */
.hx-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 4rem; align-items: center; }
.hx-feature + .hx-feature { margin-top: 6rem; }
.hx-feature.hx-flip .hx-feature-copy { order: 2; }
.hx-feature-copy h3 { font-size: clamp(1.45rem, 2.4vw, 1.95rem); font-weight: 800; line-height: 1.3; color: var(--mk-text); margin: 0 0 1rem; }
html[dir="rtl"] .hx-feature-copy h3 { line-height: 1.55; }
.hx-feature-copy > p { color: var(--mk-text-muted); line-height: 1.85; font-size: 1.02rem; margin: 0 0 1.4rem; }
.hx-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.hx-checks li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: .55rem; color: var(--mk-text); line-height: 1.65; }
.hx-checks li i { color: #0d9488; font-size: 1.1rem; }
.hx-icon-badge {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-size: 1.45rem; color: #fff;
  background: var(--hx-grad-2); box-shadow: 0 14px 26px -12px rgba(14, 165, 233, .7); margin-bottom: 1.2rem;
}

.hx-mock {
  position: relative; border-radius: var(--hx-radius); background: var(--mk-bg); border: 1px solid var(--mk-border);
  box-shadow: 0 40px 80px -40px rgba(15, 23, 42, .45), 0 2px 6px rgba(15, 23, 42, .05);
  overflow: hidden; font-size: .86rem;
}
.hx-mock::before {               /* coloured halo behind the card */
  content: ""; position: absolute; inset: auto -30% -60% auto; width: 70%; height: 90%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(56, 189, 248, .14), transparent); pointer-events: none;
}
.hx-mock-bar { display: flex; align-items: center; gap: .45rem; padding: .75rem 1.1rem; border-bottom: 1px solid var(--mk-border); background: var(--mk-bg-alt); font-weight: 700; color: var(--mk-text); font-size: .84rem; }
.hx-mock-bar > i { width: 9px; height: 9px; border-radius: 50%; background: var(--mk-border); }
.hx-mock-bar span { margin-inline-start: .5rem; }
.hx-mock-bar em { margin-inline-start: auto; font-style: normal; font-size: .74rem; font-weight: 700; color: #0f766e; background: rgba(45, 212, 191, .14); padding: .2rem .55rem; border-radius: 999px; }
.hx-mock-body { padding: 1.1rem; position: relative; }

/* mapping mock */
.hx-mrow {
  display: grid; grid-template-columns: 3.2em minmax(0, 1.1fr) 18px minmax(0, 1.4fr) 5.2em; gap: .6rem; align-items: center;
  padding: .7rem .6rem; border-radius: 10px;
}
.hx-mrow + .hx-mrow { border-top: 1px solid var(--mk-border); }
.hx-mrow .code { font-family: var(--hx-mono); color: var(--mk-text-light); font-size: .78rem; }
.hx-mrow .name { font-weight: 600; color: var(--mk-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-mrow .arrow { color: var(--mk-text-light); }
.hx-mrow .concept { min-width: 0; }
.hx-mrow .concept code {
  display: block; direction: ltr; text-align: start; unicode-bidi: isolate; font-size: .72rem; color: #0369a1;
  background: rgba(14, 165, 233, .08); border: 1px solid rgba(14, 165, 233, .22); padding: .15rem .45rem; border-radius: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hx-mrow .meter { height: 5px; margin-top: .35rem; border-radius: 3px; background: var(--mk-border); overflow: hidden; }
.hx-mrow .meter i {
  display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, #14b8a6, #0ea5e9);
  animation: hx-fill 5s cubic-bezier(.2, .8, .2, 1) infinite; animation-delay: var(--d, 0s);
}
.hx-state { font-size: .72rem; font-weight: 800; text-align: center; padding: .25rem .3rem; border-radius: 999px; white-space: nowrap; }
.hx-state.ok { color: #047857; background: rgba(16, 185, 129, .13); animation: hx-stamp 5s ease-out infinite; animation-delay: var(--d, 0s); }
.hx-state.wait { color: #b45309; background: rgba(245, 158, 11, .14); }
@keyframes hx-stamp { 0%, 40% { opacity: .2; transform: scale(.85); } 48% { opacity: 1; transform: scale(1.1); } 56%, 100% { opacity: 1; transform: scale(1); } }

/* statements mock */
.hx-tabs { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: 1rem; }
.hx-tabs span { font-size: .74rem; font-weight: 700; padding: .3rem .7rem; border-radius: 8px; color: var(--mk-text-muted); background: var(--mk-bg-alt); border: 1px solid var(--mk-border); }
.hx-tabs span.on { color: #fff; background: var(--hx-grad-2); border-color: transparent; }
.hx-fs { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 1.2rem; align-items: end; }
.hx-fs-lines { display: grid; gap: .1rem; }
.hx-fs-line { display: flex; justify-content: space-between; gap: 1rem; padding: .42rem .2rem; border-bottom: 1px dashed var(--mk-border); color: var(--mk-text-muted); }
.hx-fs-line b { color: var(--mk-text); font-family: var(--hx-mono); font-weight: 600; direction: ltr; unicode-bidi: isolate; }
.hx-fs-line.total { border-bottom: 2px solid var(--mk-text); color: var(--mk-text); font-weight: 800; }
.hx-fs-line.total b { font-weight: 800; }
.hx-fs-chart { display: flex; gap: 14px; align-items: flex-end; height: 170px; padding: 0 .4rem; border-bottom: 2px solid var(--mk-border); }
.hx-fs-col { flex: 1; display: flex; flex-direction: column-reverse; height: 100%; gap: 2px; }
.hx-fs-col i { display: block; border-radius: 5px; transform-origin: bottom; animation: hx-grow 5s cubic-bezier(.2, .8, .2, 1) infinite; }
.hx-fs-col .a { height: 100%; background: linear-gradient(180deg, #38bdf8, #0284c7); }
.hx-fs-col .l { height: 34%; background: linear-gradient(180deg, #fb923c, #ea580c); animation-delay: .25s; }
.hx-fs-col .e { height: 66%; background: linear-gradient(180deg, #2dd4bf, #0d9488); animation-delay: .5s; }
.hx-fs-legend { display: flex; gap: .8rem; justify-content: center; margin-top: .55rem; font-size: .7rem; color: var(--mk-text-light); flex-wrap: wrap; }
.hx-fs-legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-inline-end: .3rem; background: var(--c); }
.hx-balance {
  margin-top: 1rem; display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border-radius: 12px;
  background: rgba(16, 185, 129, .1); color: #047857; font-weight: 700; font-size: .84rem;
}
.hx-balance i { font-size: 1.15rem; animation: hx-pop 5s ease-out infinite 1.4s; }

/* consolidation mock */
.hx-ws { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .8rem; }
.hx-ws th { font-size: .72rem; font-weight: 800; color: var(--mk-text-light); text-align: end; padding: .5rem .55rem; border-bottom: 1px solid var(--mk-border); white-space: nowrap; }
.hx-ws th:first-child, .hx-ws td:first-child { text-align: start; }
.hx-ws td { padding: .62rem .55rem; border-bottom: 1px solid var(--mk-border); color: var(--mk-text); white-space: nowrap; }
.hx-ws td.n { font-family: var(--hx-mono); text-align: end; direction: ltr; unicode-bidi: isolate; }
.hx-ws td.neg { color: #dc2626; }
.hx-ws td.pos { color: #0f766e; }
.hx-ws .elim { position: relative; background: rgba(251, 191, 36, .08); animation: hx-col 6s ease-in-out infinite; }
.hx-ws th.elim { color: #b45309; }
.hx-ws .grp { font-weight: 800; }
.hx-ws tr:last-child td { border-bottom: 0; }
@keyframes hx-col { 0%, 100% { background: rgba(251, 191, 36, .06); } 50% { background: rgba(251, 191, 36, .2); } }
.hx-ws-foot { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.hx-tag { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; font-weight: 700; padding: .3rem .65rem; border-radius: 8px; background: var(--mk-bg-alt); border: 1px solid var(--mk-border); color: var(--mk-text-muted); }
.hx-tag i { color: var(--mk-accent); }

/* sign-off gate mock */
.hx-gate { display: grid; gap: .55rem; }
.hx-gate-item {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: .65rem; align-items: center;
  padding: .7rem .8rem; border-radius: 12px; border: 1px solid var(--mk-border); background: var(--mk-bg);
}
.hx-gate-item .ico { position: relative; width: 26px; height: 26px; }
.hx-gate-item .ico::before,
.hx-gate-item .ico::after { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.hx-gate-item .ico { border-radius: 50%; border: 3px solid var(--mk-border); }
.hx-gate-item .ico::before { inset: -3px; border: 3px solid rgba(14, 165, 233, .2); border-top-color: #0ea5e9; opacity: 0; }
.hx-gate-item .ico::after {     /* the tick — the resting (finished) state */
  inset: -3px;
  background: #10b981 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M4 8.5l2.6 2.5L12 5.5'/%3E%3C/svg%3E") center/16px no-repeat;
}
@keyframes hx-spin { to { transform: rotate(360deg); } }
.hx-gate-item:nth-child(1) .ico::before { animation: hx-spin .8s linear infinite, hx-r1 10s linear infinite; }
.hx-gate-item:nth-child(1) .ico::after, .hx-gate-item:nth-child(1) .res { animation: hx-d1 10s linear infinite; }
@keyframes hx-r1 { 0%, 4.9% { opacity: 0; } 5%, 12.9% { opacity: 1; } 13%, 100% { opacity: 0; } }
@keyframes hx-d1 { 0%, 12.9% { opacity: 0; } 13%, 100% { opacity: 1; } }
.hx-gate-item:nth-child(2) .ico::before { animation: hx-spin .8s linear infinite, hx-r2 10s linear infinite; }
.hx-gate-item:nth-child(2) .ico::after, .hx-gate-item:nth-child(2) .res { animation: hx-d2 10s linear infinite; }
@keyframes hx-r2 { 0%, 14.9% { opacity: 0; } 15%, 22.9% { opacity: 1; } 23%, 100% { opacity: 0; } }
@keyframes hx-d2 { 0%, 22.9% { opacity: 0; } 23%, 100% { opacity: 1; } }
.hx-gate-item:nth-child(3) .ico::before { animation: hx-spin .8s linear infinite, hx-r3 10s linear infinite; }
.hx-gate-item:nth-child(3) .ico::after, .hx-gate-item:nth-child(3) .res { animation: hx-d3 10s linear infinite; }
@keyframes hx-r3 { 0%, 24.9% { opacity: 0; } 25%, 32.9% { opacity: 1; } 33%, 100% { opacity: 0; } }
@keyframes hx-d3 { 0%, 32.9% { opacity: 0; } 33%, 100% { opacity: 1; } }
.hx-gate-item:nth-child(4) .ico::before { animation: hx-spin .8s linear infinite, hx-r4 10s linear infinite; }
.hx-gate-item:nth-child(4) .ico::after, .hx-gate-item:nth-child(4) .res { animation: hx-d4 10s linear infinite; }
@keyframes hx-r4 { 0%, 34.9% { opacity: 0; } 35%, 42.9% { opacity: 1; } 43%, 100% { opacity: 0; } }
@keyframes hx-d4 { 0%, 42.9% { opacity: 0; } 43%, 100% { opacity: 1; } }
.hx-gate-item:nth-child(5) .ico::before { animation: hx-spin .8s linear infinite, hx-r5 10s linear infinite; }
.hx-gate-item:nth-child(5) .ico::after, .hx-gate-item:nth-child(5) .res { animation: hx-d5 10s linear infinite; }
@keyframes hx-r5 { 0%, 44.9% { opacity: 0; } 45%, 52.9% { opacity: 1; } 53%, 100% { opacity: 0; } }
@keyframes hx-d5 { 0%, 52.9% { opacity: 0; } 53%, 100% { opacity: 1; } }
.hx-gate-item .lbl { font-weight: 600; color: var(--mk-text); }
.hx-gate-item .res { font-size: .74rem; font-weight: 800; color: #047857; font-family: var(--hx-mono); direction: ltr; unicode-bidi: isolate; }
.hx-gate-bar { height: 8px; border-radius: 4px; background: var(--mk-border); overflow: hidden; margin: 1rem 0 .9rem; }
.hx-gate-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #14b8a6, #0ea5e9); animation: hx-gate-fill 10s linear infinite; }
@keyframes hx-gate-fill { 0% { width: 0; } 53%, 100% { width: 100%; } }
.hx-export {
  display: flex; align-items: center; justify-content: center; gap: .6rem; padding: .85rem; border-radius: 12px;
  font-weight: 800; color: #fff; background: var(--hx-grad-2);
  animation: hx-arm 10s ease-out infinite;
}
@keyframes hx-arm {
  0%, 54% { filter: grayscale(1); opacity: .45; box-shadow: none; }
  60% { filter: none; opacity: 1; box-shadow: 0 0 0 8px rgba(45, 212, 191, .25); }
  68%, 100% { filter: none; opacity: 1; box-shadow: 0 12px 26px -12px rgba(13, 148, 136, .8); }
}

/* ==========================================================================
   MODULES
   ========================================================================== */
.hx-modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.hx-module {
  position: relative; border-radius: var(--hx-radius); padding: 1.6rem; background: var(--mk-bg);
  border: 1px solid var(--mk-border); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex; flex-direction: column;
}
.hx-module::before {      /* gradient edge that appears on hover */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--hx-grad); opacity: 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  transition: opacity .25s ease; pointer-events: none;
}
.hx-module:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -28px rgba(14, 116, 144, .45); }
.hx-module:hover::before { opacity: 1; }
.hx-module-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem;
  color: #0369a1; background: linear-gradient(135deg, rgba(56, 189, 248, .16), rgba(45, 212, 191, .16)); margin-bottom: 1rem;
  transition: transform .3s ease;
}
.hx-module:hover .hx-module-icon { transform: rotate(-6deg) scale(1.08); }
.hx-module h3 { font-size: 1.08rem; font-weight: 800; color: var(--mk-text); margin: 0 0 .45rem; line-height: 1.45; }
.hx-module > p { color: var(--mk-text-muted); font-size: .92rem; line-height: 1.7; margin: 0 0 .8rem; }
.hx-module ul { list-style: none; margin: 0 0 .9rem; padding: 0; display: grid; gap: .4rem; }
.hx-module li { position: relative; padding-inline-start: 1.15rem; font-size: .86rem; line-height: 1.6; color: var(--mk-text-muted); }
.hx-module li::before { content: ""; position: absolute; inset-inline-start: 0; top: .62em; width: 6px; height: 6px; border-radius: 2px; background: #14b8a6; }
.hx-module details { margin-top: auto; border-top: 1px solid var(--mk-border); padding-top: .7rem; }
.hx-module summary { cursor: pointer; font-weight: 700; font-size: .86rem; color: var(--mk-accent); list-style: none; display: inline-flex; align-items: center; gap: .35rem; }
.hx-module summary::-webkit-details-marker { display: none; }
.hx-module summary::after { content: "+"; font-weight: 800; }
.hx-module details[open] summary::after { content: "−"; }
.hx-module details p { margin: .6rem 0 0; font-size: .88rem; line-height: 1.8; color: var(--mk-text-muted); }

.hx-swipe {
  display: none; align-items: center; justify-content: center; gap: .45rem; margin-top: .4rem;
  font-size: .82rem; font-weight: 600; color: var(--mk-text-light);
}
.hx-swipe i { animation: hx-nudge 1.8s ease-in-out infinite; }

/* ==========================================================================
   SECURITY (dark band)
   ========================================================================== */
.hx-dark { background: var(--hd-band); color: var(--hd-text-2); padding: 6rem 0; overflow: hidden; }
.hx-dark .hx-h2 { color: var(--hd-title); }
.hx-dark .hx-sub { color: var(--hd-muted); }
.hx-dark .hx-kicker { color: var(--hd-teal-t); }
/* the shield is drawn in the markup for the dark band; its face and tick follow the theme */
.hx-shield .core path:first-child { fill: var(--hd-shield); }
.hx-shield .core path:last-child { stroke: var(--hd-teal-t); }
.hx-sec { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 4rem; align-items: center; }
.hx-shield { position: relative; width: min(100%, 380px); aspect-ratio: 1; margin: 0 auto; }
.hx-shield svg { width: 100%; height: 100%; overflow: visible; }
.hx-shield .r1 { transform-origin: 200px 200px; animation: hx-rot 30s linear infinite; }
.hx-shield .r2 { transform-origin: 200px 200px; animation: hx-rot 22s linear infinite reverse; }
.hx-shield .r3 { transform-origin: 200px 200px; animation: hx-rot 14s linear infinite; }
.hx-shield .core { transform-origin: 200px 200px; animation: hx-breathe 4s ease-in-out infinite; }
.hx-shield .sweep { transform-origin: 200px 200px; animation: hx-rot 5s linear infinite; }
@keyframes hx-rot { to { transform: rotate(360deg); } }
@keyframes hx-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.hx-sec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.hx-sec-item {
  padding: 1.2rem 1.25rem; border-radius: 14px; background: var(--hd-card); border: 1px solid var(--hd-card-bd);
  transition: border-color .25s ease, background-color .25s ease, transform .25s ease;
}
.hx-sec-item:hover { border-color: rgba(45, 212, 191, .5); background: rgba(45, 212, 191, .05); transform: translateY(-3px); }
.hx-sec-item i { font-size: 1.35rem; color: var(--hd-teal-t); }
.hx-sec-item h3 { font-size: 1rem; font-weight: 800; color: var(--hd-strong); margin: .6rem 0 .35rem; }
.hx-sec-item p { font-size: .88rem; line-height: 1.7; margin: 0; color: var(--hd-muted); }

/* ==========================================================================
   GLOSSARY + DOCS
   ========================================================================== */
.hx-glossary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.hx-term { border-radius: 14px; padding: 1.25rem 1.3rem; background: var(--mk-bg); border: 1px solid var(--mk-border); transition: border-color .2s ease, transform .2s ease; }
.hx-term:hover { border-color: var(--mk-accent); transform: translateY(-3px); }
.hx-term dl { margin: 0; }
.hx-term dt { font-weight: 800; color: var(--mk-text); margin-bottom: .4rem; display: flex; align-items: center; gap: .5rem; }
.hx-term dt::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--hx-grad); flex: none; }
.hx-term dd { margin: 0; font-size: .9rem; line-height: 1.75; color: var(--mk-text-muted); }

.hx-docs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.hx-doc { border-radius: 14px; padding: 1.25rem; background: var(--mk-bg); border: 1px solid var(--mk-border); transition: transform .2s ease, box-shadow .2s ease; }
.hx-doc:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -24px rgba(15, 23, 42, .4); }
.hx-doc-head { display: flex; align-items: center; gap: .65rem; margin-bottom: .6rem; }
.hx-doc-head i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #0369a1; background: rgba(14, 165, 233, .1); font-size: 1.05rem; flex: none; }
.hx-doc h3 { font-size: .98rem; font-weight: 800; color: var(--mk-text); margin: 0; }
.hx-doc p { margin: 0; font-size: .87rem; line-height: 1.7; color: var(--mk-text-muted); }

/* ==========================================================================
   ADVANTAGE, BUSINESS MODEL, ROADMAP
   ========================================================================== */
.hx-adv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.hx-adv-card { padding: 1.7rem; border-radius: var(--hx-radius); border: 1px solid var(--mk-border); background: var(--mk-bg); position: relative; overflow: hidden; }
.hx-adv-card .num { font-size: 3.2rem; font-weight: 900; line-height: 1; opacity: .14; position: absolute; top: .8rem; inset-inline-end: 1.1rem; color: var(--mk-accent); }
.hx-adv-card i { font-size: 1.5rem; color: var(--mk-accent); }
.hx-adv-card h3 { font-size: 1.05rem; font-weight: 800; margin: .8rem 0 .5rem; color: var(--mk-text); }
.hx-adv-card p { margin: 0; color: var(--mk-text-muted); line-height: 1.75; font-size: .92rem; }
.hx-rule {
  margin-top: 1.25rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: var(--hx-radius);
  border: 1px solid var(--mk-border); overflow: hidden; background: var(--mk-bg);
}
.hx-rule > div { padding: 1.2rem 1.3rem; }
.hx-rule > div + div { border-inline-start: 1px solid var(--mk-border); }
.hx-rule span { display: block; font-size: .74rem; font-weight: 800; letter-spacing: .06em; color: var(--mk-accent); margin-bottom: .3rem; text-transform: uppercase; }
html[dir="rtl"] .hx-rule span { letter-spacing: 0; font-size: .8rem; }
.hx-rule p { margin: 0; color: var(--mk-text); font-weight: 600; line-height: 1.6; }

.hx-biz { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 3rem; }
.hx-biz h3 { font-size: 1.3rem; font-weight: 800; color: var(--mk-text); margin: 0 0 1.2rem; }
.hx-biz-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.hx-biz-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: .8rem; align-items: center; padding: .9rem 1rem; border-radius: 14px; border: 1px solid var(--mk-border); background: var(--mk-bg); color: var(--mk-text); line-height: 1.6; }
.hx-biz-list li i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #0369a1; background: rgba(14, 165, 233, .1); font-size: 1.1rem; }
.hx-road { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.hx-road::before { content: ""; position: absolute; top: 12px; bottom: 12px; inset-inline-start: 15px; width: 2px; background: linear-gradient(180deg, #14b8a6, var(--mk-border)); }
.hx-road li { position: relative; padding-inline-start: 3rem; line-height: 1.7; color: var(--mk-text-muted); }
.hx-road li::before {
  content: ""; position: absolute; inset-inline-start: 5px; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #14b8a6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M4 8.5l2.6 2.5L12 5.5'/%3E%3C/svg%3E") center/14px no-repeat;
  box-shadow: 0 0 0 4px var(--mk-bg-alt);
}
.hx-road li.next::before { background: var(--mk-bg); border: 3px solid #0ea5e9; animation: hx-ping-blue 2s infinite; }
@keyframes hx-ping-blue { 0% { box-shadow: 0 0 0 4px var(--mk-bg-alt), 0 0 0 4px rgba(14, 165, 233, .5); } 80%, 100% { box-shadow: 0 0 0 4px var(--mk-bg-alt), 0 0 0 14px rgba(14, 165, 233, 0); } }
.hx-road strong { display: inline-block; font-size: .72rem; font-weight: 800; padding: .12rem .5rem; border-radius: 6px; margin-inline-end: .45rem; color: #0f766e; background: rgba(45, 212, 191, .14); }
.hx-road li.next strong { color: #0369a1; background: rgba(14, 165, 233, .14); }

/* ==========================================================================
   SECTORS + CTA
   ========================================================================== */
.hx-sectors { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.hx-sectors span {
  display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1rem; border-radius: 999px; font-weight: 600; font-size: .92rem;
  color: var(--mk-text); background: var(--mk-bg); border: 1px solid var(--mk-border); transition: transform .2s ease, border-color .2s ease, color .2s ease;
}
.hx-sectors span:hover { transform: translateY(-3px); border-color: #14b8a6; color: #0f766e; }
.hx-sectors span i { color: #14b8a6; }

.hx-cta { padding: 2rem 0 6rem; background: var(--mk-bg); }
.hx-cta-box {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 28px; padding: 4rem 2rem; text-align: center; color: var(--hd-text);
  background: var(--hd-cta); box-shadow: var(--hd-cta-ring);
}
.hx-cta-box::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--hd-grid) 1px, transparent 1px), linear-gradient(90deg, var(--hd-grid) 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
  animation: hx-grid-pan 30s linear infinite;
}
.hx-cta-box h2 { color: var(--hd-title); font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 900; margin: 0 auto 1rem; }
.hx-cta-box p { color: var(--hd-lead); font-size: 1.08rem; line-height: 1.8; max-width: 40rem; margin: 0 auto 2rem; }
.hx-cta-box .hx-actions { justify-content: center; margin: 0; }

/* ==========================================================================
   Dark theme for the light sections (the hero, security band and CTA follow the --hd-* tokens)
   ========================================================================== */
body.tm-marketing[data-bs-theme="dark"] .hx-mrow .concept code { color: #7dd3fc; }
body.tm-marketing[data-bs-theme="dark"] .hx-module-icon,
body.tm-marketing[data-bs-theme="dark"] .hx-doc-head i,
body.tm-marketing[data-bs-theme="dark"] .hx-biz-list li i { color: #7dd3fc; }
body.tm-marketing[data-bs-theme="dark"] .hx-state.ok,
body.tm-marketing[data-bs-theme="dark"] .hx-balance,
body.tm-marketing[data-bs-theme="dark"] .hx-gate-item .res,
body.tm-marketing[data-bs-theme="dark"] .hx-ws td.pos { color: #6ee7b7; }
body.tm-marketing[data-bs-theme="dark"] .hx-shift .tag-now,
body.tm-marketing[data-bs-theme="dark"] .hx-road strong,
body.tm-marketing[data-bs-theme="dark"] .hx-mock-bar em { color: #5eead4; }
body.tm-marketing[data-bs-theme="dark"] .hx-statbar { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1199.98px) {
  .hx-docs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .hx-hero { padding: 3.5rem 0 8rem; }
  .hx-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .hx-stage { max-width: 620px; margin: 0 auto; width: 100%; }
  .hx-statbar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hx-stat:nth-child(4) { border-inline-start: 0; }
  .hx-stat:nth-child(n + 4) { border-top: 1px solid var(--mk-border); }
  .hx-vs { grid-template-columns: minmax(0, 1fr); }
  .hx-vs-arrow { transform: rotate(90deg); animation: none; }
  .hx-steps { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
  .hx-steps-line { top: 10px; bottom: 10px; height: auto; width: 3px; inset-inline: auto; inset-inline-start: 34px; }
  .hx-steps-line i { display: none; }
  .hx-step { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 1rem; text-align: start; align-items: center; }
  .hx-step-node { margin: 0; }
  .hx-feature, .hx-sec, .hx-biz { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .hx-feature.hx-flip .hx-feature-copy { order: 0; }
  .hx-feature + .hx-feature { margin-top: 4.5rem; }
  .hx-modules, .hx-glossary, .hx-adv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-rule { grid-template-columns: minmax(0, 1fr); }
  .hx-rule > div + div { border-inline-start: 0; border-top: 1px solid var(--mk-border); }
}
@media (max-width: 767.98px) {
  .hx-section, .hx-dark { padding: 4.2rem 0; }
  .hx-head { margin-bottom: 2.2rem; }
  .hx-lead { font-size: 1rem; }
  .hx-stage { padding: 1.2rem 0 1.6rem; }
  .hx-window-body { gap: 12px; padding: 12px; }
  .hx-tile { padding: .6rem .6rem .7rem; font-size: .68rem; }
  .hx-tile-head small { display: none; }
  .hx-tb-row { grid-template-columns: minmax(0, 1fr) auto; }
  .hx-tb-row .c { display: none; }
  .hx-f1 { inset-inline-end: -.2rem; top: -.4rem; }
  .hx-f2 { inset-inline-start: -.2rem; bottom: -.2rem; }
  .hx-f3 { display: none; }
  .hx-float { padding: .5rem .7rem; }
  .hx-statbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-stat { padding: 1.2rem 1rem; }
  .hx-stat:nth-child(n) { border-inline-start: 0; border-top: 0; }
  .hx-stat:nth-child(even) { border-inline-start: 1px solid var(--mk-border); }
  .hx-stat:nth-child(n + 3) { border-top: 1px solid var(--mk-border); }
  .hx-stat:last-child { grid-column: 1 / -1; border-inline-start: 0; }
  .hx-adv, .hx-sec-grid { grid-template-columns: minmax(0, 1fr); }
  /* long card sets become swipeable rows on a phone instead of a 6,000-pixel column */
  .hx-modules, .hx-glossary, .hx-docs {
    display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    gap: .9rem; padding: .3rem .75rem 1rem; margin-inline: -.75rem; scrollbar-width: thin;
    scroll-padding-inline: .75rem;
  }
  .hx-modules > *, .hx-glossary > *, .hx-docs > * { flex: 0 0 84%; scroll-snap-align: start; }
  .hx-module:hover, .hx-term:hover, .hx-doc:hover { transform: none; }
  .hx-swipe { display: flex; }
  .hx-ws { font-size: .66rem; }
  .hx-ws th, .hx-ws td { padding: .5rem .28rem; }
  .hx-ws td:first-child { white-space: normal; min-width: 5.2em; line-height: 1.35; }
  .hx-mock-body { padding: .8rem; }
  .hx-mrow { grid-template-columns: minmax(0, 1fr) 4.8em; row-gap: .35rem; }
  .hx-mrow .code, .hx-mrow .arrow { display: none; }
  .hx-mrow .concept { grid-column: 1 / -1; grid-row: 2; }
  .hx-fs { grid-template-columns: minmax(0, 1fr); }
  .hx-fs-chart { height: 120px; }
  .hx-mock { font-size: .8rem; }
  .hx-ws-scroll { overflow-x: auto; }
  .hx-cta-box { padding: 3rem 1.25rem; border-radius: 22px; }
  .hx-papers span { width: 52px; height: 66px; }
  .hx-papers span:nth-child(2) { inset-inline-start: 38px; }
  .hx-papers span:nth-child(3) { inset-inline-start: 76px; }
  .hx-papers span:nth-child(4) { inset-inline-start: 114px; }
}

/* ==========================================================================
   INNER PAGES — /site/platform, /architecture, /docs, /investors and each
   /platform/modules/{slug}. They link this file too (body class "tm-home tm-site"),
   so a visitor who follows a link from the home page stays on the same site:
   the same ground (light, or dark in the dark theme), buttons, cards and closing box. The header is
   Views/Shared/_SiteHero.cshtml, the closing box _SiteCta.cshtml.
   ========================================================================== */
.hx-page-hero { padding: 4.25rem 0 5rem; }
.hx-page-hero-inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 3rem; }
.hx-crumbs ol {
  list-style: none; margin: 0 0 1.1rem; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem;
  font-size: .85rem; color: var(--hd-muted);
}
.hx-crumbs li + li::before { content: "/"; margin-inline-end: .4rem; color: var(--hd-sep); }
.hx-crumbs a { color: var(--hd-text-2); text-decoration: none; }
.hx-crumbs a:hover { color: var(--hd-title); text-decoration: underline; }
.hx-crumbs [aria-current] { color: var(--hd-sky-t); font-weight: 600; }
.hx-eyebrow > i { color: var(--hd-teal-i); }
.tm-home .hx-page-title {
  font-size: clamp(2.1rem, 4.3vw, 3.3rem); font-weight: 900; line-height: 1.15; letter-spacing: -.03em;
  color: var(--hd-title); margin: 0 0 1.1rem; text-wrap: balance;
}
html[dir="rtl"] .tm-home .hx-page-title { letter-spacing: 0; line-height: 1.45; }
.hx-accent {
  background: var(--hx-grad); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: hx-shimmer 8s ease-in-out infinite;
}
.hx-sv { position: relative; width: 100%; max-width: 470px; margin-inline: auto; }

/* ---------- picture: the modules orbiting the core ---------- */
.hx-orbit { --R: 400px; position: relative; width: var(--R); height: var(--R); margin: 0 auto; }
.hx-orbit-glow {
  position: absolute; inset: 22%; border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 212, 191, .3), transparent 70%); filter: blur(18px);
}
.hx-orbit-ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(148, 163, 184, .3); animation: hx-rot 48s linear infinite; }
.hx-r1 { inset: 6%; --rad: calc(var(--R) * .44); }
.hx-r2 { inset: 24%; --rad: calc(var(--R) * .26); border-color: rgba(56, 189, 248, .32); animation-duration: 32s; animation-direction: reverse; }
.hx-orbit-ring::before {              /* a spark riding each ring */
  content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%;
  background: #2dd4bf; box-shadow: 0 0 12px 2px rgba(45, 212, 191, .8);
}
.hx-r2::before { top: auto; bottom: -4px; background: #38bdf8; box-shadow: 0 0 12px 2px rgba(56, 189, 248, .8); }
.hx-orbit-node {
  position: absolute; top: 50%; left: 50%; width: 50px; height: 50px; margin: -25px 0 0 -25px;
  transform: rotate(var(--a)) translateY(calc(var(--rad) * -1)) rotate(calc(var(--a) * -1));
}
.hx-orbit-node i {                    /* turns against its ring, so the icon stays upright */
  display: grid; place-items: center; width: 100%; height: 100%; border-radius: 14px; font-size: 1.25rem;
  color: var(--hd-sky-t); background: var(--hd-orbit-node); border: 1px solid var(--hd-orbit-bd);
  box-shadow: var(--hd-orbit-sh);
  animation: hx-rot 48s linear infinite reverse, hx-blip 9s ease-in-out infinite;
  animation-delay: 0s, calc(var(--k) * 1s);
}
.hx-r2 .hx-orbit-node i { animation-duration: 32s, 9s; animation-direction: normal, normal; }
@keyframes hx-blip {
  0%, 9%, 100% { border-color: var(--hd-orbit-bd); box-shadow: var(--hd-orbit-sh); }
  3%, 6% { border-color: rgba(45, 212, 191, .9); box-shadow: 0 0 0 5px rgba(45, 212, 191, .16), var(--hd-orbit-sh); }
}
.hx-orbit-node.on i {
  color: #04121f; background: var(--hx-grad); border-color: transparent;
  box-shadow: 0 0 0 6px rgba(45, 212, 191, .2), 0 14px 30px -8px rgba(45, 212, 191, .65);
  animation-name: hx-rot, none;
}
.hx-orbit-core {
  position: absolute; inset: 34%; border-radius: 50%; display: grid; place-content: center; text-align: center; gap: .15rem;
  background: var(--hd-core);
  border: 1px solid rgba(56, 189, 248, .45);
  box-shadow: 0 0 0 10px rgba(56, 189, 248, .06), 0 0 60px -10px rgba(45, 212, 191, .6);
  animation: hx-breathe 4s ease-in-out infinite;
}
.hx-orbit-core b { font-size: 1.05rem; font-weight: 900; color: var(--hd-title); letter-spacing: -.02em; }
.hx-orbit-core b .tm-brand-2 { background: var(--hx-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hx-orbit-core small { font-size: .7rem; color: var(--hd-muted); font-weight: 600; }

/* ---------- picture: the report path, one stage at a time ---------- */
.hx-flowwin, .hx-docwin, .hx-chartwin { max-width: 470px; margin: 0 auto; }
.hx-flowlist { position: relative; list-style: none; margin: 0; padding: 1rem 1.1rem 1.2rem; display: grid; gap: .45rem; }
.hx-flowlist::before {
  content: ""; position: absolute; top: 2rem; bottom: 2rem; inset-inline-start: calc(1.1rem + .6rem + 17px); width: 2px;
  background: rgba(148, 163, 184, .22);
}
.hx-flowlist li:not(.hx-flowdot) {
  position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: .75rem; align-items: center;
  padding: .5rem .6rem; border-radius: 12px; border: 1px solid transparent;
  animation: hx-flowstep 9s ease-in-out infinite; animation-delay: calc(var(--i) * 1.5s);
}
.hx-flowlist li > i {
  position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: var(--hd-node); border: 1px solid rgba(56, 189, 248, .35); color: var(--hd-sky-t); font-size: 1rem;
}
.hx-flowlist li > span { color: var(--hd-text); font-weight: 700; font-size: .88rem; min-width: 0; }
.hx-flowlist li > em {
  font-style: normal; font-size: .7rem; font-weight: 700; color: var(--hd-teal-t); white-space: nowrap;
  background: rgba(45, 212, 191, .12); border: 1px solid rgba(45, 212, 191, .3); padding: .15rem .5rem; border-radius: 999px;
}
@keyframes hx-flowstep {
  0%, 16%, 100% { background: transparent; border-color: transparent; }
  3%, 13% { background: rgba(56, 189, 248, .1); border-color: rgba(56, 189, 248, .45); }
}
.hx-flowdot {
  position: absolute; z-index: 2; top: 2rem; inset-inline-start: calc(1.1rem + .6rem + 18px); width: 10px; height: 10px; margin-inline-start: -5px;
  border-radius: 50%; background: #2dd4bf; box-shadow: 0 0 12px 2px rgba(45, 212, 191, .8);
  animation: hx-flowdot 9s linear infinite;
}
@keyframes hx-flowdot { from { top: 2rem; } to { top: calc(100% - 2rem); } }

/* ---------- picture: a documentation page being read ---------- */
.hx-docbody { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 1rem; padding: 1rem 1.1rem 1.3rem; }
.hx-doctoc {
  list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; align-content: start;
  border-inline-end: 1px solid var(--hx-line); padding-inline-end: .8rem;
}
.hx-doctoc li {
  font-size: .76rem; font-weight: 600; color: var(--hd-muted); padding: .38rem .55rem; border-radius: 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  animation: hx-tocon 12s ease-in-out infinite; animation-delay: calc(var(--i) * 2s);
}
@keyframes hx-tocon {
  0%, 16%, 100% { background: transparent; color: var(--hd-muted); }
  2%, 14% { background: rgba(56, 189, 248, .14); color: var(--hd-pale-blue); }
}
.hx-docpage { min-width: 0; }
.hx-docline {
  display: block; height: 8px; border-radius: 4px; background: rgba(148, 163, 184, .22); width: var(--w, 100%); margin-bottom: .6rem;
  animation: hx-lineg 6s ease-out infinite; animation-delay: calc(var(--i, 0) * .35s);
}
.hx-docline.hx-doch { --w: 58%; height: 13px; background: linear-gradient(90deg, #38bdf8, #2dd4bf); margin-bottom: .9rem; }
@keyframes hx-lineg { 0% { width: 0; } 35%, 100% { width: var(--w, 100%); } }
.hx-doccode {
  display: grid; gap: .2rem; margin: .3rem 0 .9rem; padding: .6rem .7rem; border-radius: 10px; text-align: left;
  font-family: var(--hx-mono); font-size: .66rem; color: var(--hd-text-2); background: var(--hd-tile-2); border: 1px solid var(--hx-line);
}
.hx-doccode span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-doccode em { font-style: normal; color: var(--hd-sky-t); }

/* ---------- picture: the measures an investor would track ---------- */
.hx-chartbody { padding: 1rem 1.1rem 1.2rem; }
.hx-trend { display: block; width: 100%; height: 150px; overflow: visible; }
.hx-trend .grid line { stroke: rgba(148, 163, 184, .16); stroke-width: 1; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.hx-trend .area { fill: url(#hx-trend-fill); animation: hx-areain 7s ease-in-out infinite; }
.hx-trend .line {
  fill: none; stroke: url(#hx-trend-line); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 100; stroke-dashoffset: 0; animation: hx-draw 7s ease-in-out infinite;
}
.hx-trend .dot { fill: #2dd4bf; stroke: var(--hd-dot-ring); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: hx-dotin 7s ease-out infinite; }
@keyframes hx-draw { 0% { stroke-dashoffset: 100; } 50%, 100% { stroke-dashoffset: 0; } }
@keyframes hx-areain { 0%, 20% { opacity: 0; } 55%, 100% { opacity: 1; } }
@keyframes hx-dotin { 0%, 46% { transform: scale(0); } 54% { transform: scale(1.5); } 60%, 100% { transform: scale(1); } }
.hx-kpi-chips { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.hx-kpi-chips li {
  display: flex; align-items: center; gap: .45rem; min-width: 0; padding: .45rem .6rem; border-radius: 10px;
  font-size: .74rem; font-weight: 600; color: var(--hd-text); background: var(--hd-tile-3); border: 1px solid var(--hx-line);
}
.hx-kpi-chips li i { color: var(--hd-teal-t); }
.hx-kpi-chips li.down i { color: var(--hd-sky-t); }

/* ---------- cards ---------- */
.hx-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.hx-cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hx-module-link { color: inherit; text-decoration: none; }
.hx-module-link:hover { color: inherit; }
.hx-module-link:hover h3 { color: var(--mk-accent); }
.hx-module-link:focus-visible { outline: 3px solid var(--hx-sky); outline-offset: 3px; }
.hx-more { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .88rem; color: var(--mk-accent); }
.hx-more i { transition: transform .2s ease; }
.hx-module-link:hover .hx-more i { transform: translateX(calc(4px * var(--hx-dir))); }

.hx-head.hx-split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.hx-head.hx-split .hx-h2 { margin: 0; }

.hx-flowcard { display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.hx-flowcard:hover { transform: translateY(-4px); border-color: rgba(13, 148, 136, .45); box-shadow: 0 26px 50px -30px rgba(14, 116, 144, .45); }
.hx-flowcard > p { margin-bottom: 1rem; }
.hx-why {
  margin-top: auto; padding: .8rem .95rem; border-radius: 12px; font-size: .88rem; line-height: 1.75; color: var(--mk-text-muted);
  background: rgba(45, 212, 191, .08); border: 1px solid rgba(13, 148, 136, .22);
}
.hx-why b { color: #0f766e; }

.hx-ncard {
  border-radius: var(--hx-radius); padding: 1.7rem; background: var(--mk-bg); border: 1px solid var(--mk-border);
  box-shadow: 0 20px 50px -38px rgba(15, 23, 42, .4);
}
.hx-ncard h3 { display: flex; align-items: center; gap: .7rem; font-size: 1.15rem; font-weight: 800; color: var(--mk-text); margin: 0 0 1.1rem; line-height: 1.45; }
.hx-ncard h3 > i {
  width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 1.15rem;
  color: #0369a1; background: linear-gradient(135deg, rgba(56, 189, 248, .16), rgba(45, 212, 191, .16));
}
.hx-ncard-warn h3 > i { color: #dc2626; background: rgba(239, 68, 68, .1); }
.hx-ncard > p { color: var(--mk-text-muted); line-height: 1.8; margin: 0 0 1.2rem; }
.hx-ncard > ul:not(.hx-checks) { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.hx-ncard > ul:not(.hx-checks) li { position: relative; padding-inline-start: 1.2rem; line-height: 1.75; color: var(--mk-text-muted); }
.hx-ncard > ul:not(.hx-checks) li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .7em; width: 7px; height: 7px; border-radius: 2px; background: #14b8a6;
}
.hx-ncard-warn > ul li::before { background: #ef4444; }
.hx-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.hx-checks li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: .6rem; line-height: 1.7; color: var(--mk-text); }
.hx-checks li > i { color: #0d9488; font-size: 1.15rem; line-height: 1.5; }

.hx-inv-bottom { margin-top: 1.25rem; gap: 1.25rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hx-road-plain li::before { background: var(--mk-bg); border: 3px solid #14b8a6; }
.hx-ncard .hx-road li::before { box-shadow: 0 0 0 4px var(--mk-bg); }
.hx-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.hx-kpi { display: grid; gap: .3rem; align-content: start; padding: 1rem 1.05rem; border-radius: 14px; background: var(--mk-bg-alt); border: 1px solid var(--mk-border); }
.hx-kpi > i { font-size: 1.3rem; color: var(--mk-accent); }
.hx-kpi > b { font-weight: 800; color: var(--mk-text); line-height: 1.45; }
.hx-kpi > span { font-size: .86rem; line-height: 1.6; color: var(--mk-text-muted); }

/* the four layers every module stands on */
.hx-layers { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.hx-layers::before {
  content: ""; position: absolute; top: 34px; inset-inline: 12%; height: 2px;
  background: linear-gradient(90deg, rgba(20, 184, 166, .15), rgba(56, 189, 248, .55), rgba(20, 184, 166, .15));
}
.hx-layers li { position: relative; text-align: center; padding: 0 .5rem; }
.hx-layers li > i {
  position: relative; z-index: 1; width: 68px; height: 68px; margin: 0 auto 1rem; border-radius: 20px;
  display: grid; place-items: center; font-size: 1.5rem; color: var(--mk-accent);
  background: var(--mk-bg); border: 1px solid var(--mk-border); box-shadow: 0 10px 24px -14px rgba(15, 23, 42, .4);
  animation: hx-node 8s ease-in-out infinite; animation-delay: calc(var(--i) * 2s);
}
.hx-layers b { display: block; font-weight: 800; color: var(--mk-text); margin-bottom: .3rem; }
.hx-layers span { display: block; font-size: .88rem; line-height: 1.65; color: var(--mk-text-muted); max-width: 22ch; margin-inline: auto; }
.hx-layers-sm { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.hx-layers-sm::before { display: none; }
.hx-layers-sm li {
  display: flex; align-items: center; gap: .65rem; text-align: start; padding: .6rem .7rem; border-radius: 12px;
  background: var(--mk-bg-alt); border: 1px solid var(--mk-border);
}
.hx-layers-sm li > i { width: 38px; height: 38px; margin: 0; border-radius: 11px; font-size: 1rem; flex: none; }
.hx-layers-sm b { margin: 0; font-size: .92rem; }

/* a module's own page */
.hx-modpage { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.hx-modlinks { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; }
.hx-modlinks a {
  display: inline-flex; align-items: center; gap: .55rem; padding: .7rem 1.15rem; border-radius: 999px;
  font-weight: 700; font-size: .94rem; color: var(--mk-text); text-decoration: none;
  background: var(--mk-bg); border: 1px solid var(--mk-border);
  transition: transform .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.hx-modlinks a i { color: #14b8a6; }
.hx-modlinks a:hover { transform: translateY(-3px); border-color: #14b8a6; color: #0f766e; box-shadow: 0 14px 28px -18px rgba(13, 148, 136, .6); }

/* the docs page keeps its reader (sidebar, sections, progress bar) under the new header */
.hx-docs-page { padding-top: 3.5rem; }

/* dark theme for the light parts of the inner pages */
body.tm-marketing[data-bs-theme="dark"] .hx-ncard h3 > i,
body.tm-marketing[data-bs-theme="dark"] .hx-layers li > i { color: #7dd3fc; }
body.tm-marketing[data-bs-theme="dark"] .hx-why b,
body.tm-marketing[data-bs-theme="dark"] .hx-checks li > i,
body.tm-marketing[data-bs-theme="dark"] .hx-modlinks a:hover { color: #5eead4; }

@media (max-width: 991.98px) {
  .hx-page-hero { padding: 3.25rem 0 4rem; }
  .hx-page-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .hx-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-cards-2, .hx-inv-bottom, .hx-modpage { grid-template-columns: minmax(0, 1fr); }
  .hx-layers { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
  .hx-layers::before { display: none; }
}
@media (max-width: 575.98px) {
  .hx-orbit { --R: 300px; }
  .hx-orbit-node { width: 42px; height: 42px; margin: -21px 0 0 -21px; }
  .hx-orbit-node i { border-radius: 12px; font-size: 1.05rem; }
  .hx-orbit-core b { font-size: .88rem; }
  .hx-cards, .hx-kpis { grid-template-columns: minmax(0, 1fr); }
  .hx-layers-sm { grid-template-columns: minmax(0, 1fr); }
  .hx-ncard { padding: 1.3rem; }
  .hx-docbody { grid-template-columns: minmax(0, 1fr); }
  .hx-doctoc {
    grid-template-columns: repeat(3, minmax(0, 1fr)); border-inline-end: 0; padding-inline-end: 0;
    border-bottom: 1px solid var(--hx-line); padding-bottom: .7rem;
  }
  .hx-flowlist li > em { display: none; }
  .hx-flowlist li:not(.hx-flowdot) { grid-template-columns: 36px minmax(0, 1fr); }
}

/* pause every loop while its section is off-screen (home.js toggles .hx-off) */
/* pseudo-elements are listed too: they do not match `*`, and a tick drawn by ::after must stop
   on the same frame as the row it belongs to, or the two drift apart */
.hx-off, .hx-off *, .hx-off *::before, .hx-off *::after { animation-play-state: paused !important; }

/* reduced motion: no loops at all — each element rests on its finished state */
@media (prefers-reduced-motion: reduce) {
  .tm-home *, .tm-home *::before, .tm-home *::after { animation: none !important; transition: none !important; }
  .hx-tilt { transform: none !important; }
  .hx-marquee-track { flex-wrap: wrap; justify-content: center; width: auto; }
  .hx-marquee-group[aria-hidden="true"] { display: none; }
  .hx-marquee-group { flex-wrap: wrap; justify-content: center; padding: 0; }
  .hx-marquee-row { -webkit-mask-image: none; mask-image: none; }
}
