/* ==========================================================================
   AI family — /ai/ hub and the eleven capability pages (prefix nxa-)

   Injected by build.py only on the AI family's pages, on top of nexla.css.
   Markup comes from src/partials/ai-service.html and tools/ai_blocks.py.

   Signature compositions
     hero console   an AI-native interface per capability (chat, retrieval,
                    agent trace, transcript, extraction…), labelled Illustrative
     editorial      numbered principles beside a statement and a photograph
     bento          the six capabilities, two feature tiles
     sector index   use cases as an indexed table, not a card grid
     layer stack    architecture as stacked layers on one signal line
     hub + spokes   integration around the capability
     pipeline       the example workflow as one track with a moving packet
     eval timeline  the delivery process with the evaluation gate and its loop

   Pre-animation states are gated behind .nxa-ready (set by assets/js/fam/ai.js)
   so nothing is hidden without JavaScript or under reduced motion.
   ========================================================================== */

:root {
  --nxa-amber: #FFB547;
  --nxa-ink: #E6EEFA;
  --nxa-glass: linear-gradient(168deg, rgba(16, 36, 74, .94) 0%, rgba(5, 15, 36, .97) 100%);
}

/* ---------- Shared headings ---------- */
.nxa-head { max-width: 54rem; margin-bottom: clamp(2rem, 1.4rem + 2.2vw, 3.6rem); }
.nxa-head h2,
.nxa-what h2, .nxa-arch h2, .nxa-int h2, .nxa-guards h2, .nxa-faq h2 {
  font-size: var(--nx-h2); margin: 0;
}
.nxa-head--split {
  max-width: none;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(1.4rem, 1rem + 3vw, 5rem); align-items: end;
}
.nxa-head--split .nx-lead { margin: 0; max-width: 36rem; }
@media (max-width: 900px) { .nxa-head--split { grid-template-columns: 1fr; } }

/* ==========================================================================
   Hero
   ========================================================================== */
.nxa-hero .nx-display { font-size: clamp(2.4rem, .8rem + 3.7vw, 4.7rem); }
.nxa-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.nxa-hero .nx-lead { max-width: 37rem; }
.nxa-hero__visual { max-width: 640px; justify-self: end; width: 100%; }
@media (max-width: 992px) {
  .nxa-hero__grid { grid-template-columns: 1fr; }
  .nxa-hero__visual { justify-self: start; margin-top: .6rem; }
}
@media (max-width: 560px) {
  .nxa-hero .nx-display { font-size: clamp(2rem, 7.4vw + .2rem, 2.6rem); }
}

/* ==========================================================================
   Console — the shared frame of every hero interface
   ========================================================================== */
.nxa-console {
  position: relative; margin: 0; isolation: isolate;
  border-radius: var(--nx-radius-lg);
  border: 1px solid rgba(255, 255, 255, .13);
  background: var(--nxa-glass);
  box-shadow: 0 60px 120px -60px rgba(0, 0, 0, .95), 0 0 0 1px rgba(0, 140, 254, .06) inset;
  color: var(--nxa-ink); font-size: .9rem; line-height: 1.5;
  overflow: hidden; text-align: start;
}
.nxa-console::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  inset: -40% -20% auto auto; width: 70%; height: 80%;
  background: radial-gradient(closest-side, rgba(0, 140, 254, .22), transparent);
}
[dir="rtl"] .nxa-console::before { inset: -40% auto auto -20%; }
.nxa-console::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0, 219, 178, .5), transparent) top / 100% 1px no-repeat;
}
.nxa-console__bar {
  display: flex; align-items: center; gap: .65rem;
  padding: .8rem 1.1rem;
  border-bottom: 1px solid var(--nx-hair-dark);
  font-family: var(--nx-font-mono); font-size: .72rem; letter-spacing: .02em;
  color: var(--nx-on-dark-mut);
}
.nxa-console__title { color: #fff; }
.nxa-console__tag {
  margin-inline-start: auto;
  padding: .2rem .55rem; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--nx-on-dark-mut);
  white-space: nowrap;
}
.nxa-console__dot {
  position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: var(--nx-teal); box-shadow: 0 0 12px rgba(0, 219, 178, .8);
}
.nxa-console__dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid rgba(0, 219, 178, .6);
  animation: nxa-ping 2.4s var(--nx-ease) infinite;
}
@keyframes nxa-ping { 0% { transform: scale(.6); opacity: 1; } 80%, 100% { transform: scale(1.9); opacity: 0; } }
.nxa-console__body { display: grid; gap: .85rem; padding: 1.1rem; min-width: 0; }
.nxa-console__body p { margin: 0; color: var(--nxa-ink); }

/* atoms */
.nxa-k {
  font-family: var(--nx-font-mono); font-size: .62rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--nx-on-dark-mut);
}
.nxa-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.nxa-chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .2rem .55rem; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .04);
  font-family: var(--nx-font-mono); font-size: .62rem; letter-spacing: .02em; color: #CFE0F5;
  white-space: nowrap;
}
.nxa-chip--ok { color: var(--nx-teal); border-color: rgba(0, 219, 178, .35); background: rgba(0, 219, 178, .08); }
.nxa-chip--warn { color: var(--nxa-amber); border-color: rgba(255, 181, 71, .38); background: rgba(255, 181, 71, .08); }
.nxa-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: .45rem;
  padding-top: .8rem; border-top: 1px dashed rgba(255, 255, 255, .12);
  font-family: var(--nx-font-mono); font-size: .64rem; letter-spacing: .04em; color: var(--nx-on-dark-mut);
}
.nxa-foot b, .nxa-trace b { flex: none; width: 14px; height: 1px; background: linear-gradient(90deg, var(--nx-blue), var(--nx-teal)); }
.nxa-foot--chips { gap: .4rem; }
.nxa-caret {
  display: inline-block; width: 2px; height: 1em; margin-inline-start: 3px; vertical-align: -.15em;
  background: var(--nx-teal); animation: nxa-blink 1.05s steps(1) infinite;
}
@keyframes nxa-blink { 50% { opacity: 0; } }

/* staged entrance (JS only) */
.nxa-ready [data-nxa-console] [data-s] {
  opacity: 0; transform: translateY(6px);
  transition: opacity .55s var(--nx-ease), transform .55s var(--nx-ease);
}
.nxa-ready [data-nxa-console] [data-s].is-on { opacity: 1; transform: none; }

/* ---------- waveform (speech, voice) ---------- */
.nxa-wave {
  position: relative; display: flex; align-items: center; gap: 2px;
  height: 46px; overflow: hidden;
}
.nxa-wave i {
  flex: 1 1 0; min-width: 1px; height: 100%; border-radius: 2px;
  background: linear-gradient(180deg, #5DBBFF, var(--nx-teal));
  transform: scaleY(var(--h, .5)); opacity: .85;
}
.nxa-wave__head { position: absolute; inset: 0; pointer-events: none; animation: nxa-sweep 7s linear infinite; }
.nxa-wave__head::before {
  content: ''; position: absolute; inset-block: 0; left: 0; width: 2px;
  background: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, .8);
}
@keyframes nxa-sweep { from { transform: translateX(0); } to { transform: translateX(100%); } }
.nxa-wave--live { height: 34px; }
.nxa-wave--live .nxa-wave__head { display: none; }
.nxa-wave--live i { animation: nxa-talk 1.3s var(--nx-ease-in-out) infinite alternate; }
.nxa-wave--live i:nth-child(3n) { animation-delay: -.4s; }
.nxa-wave--live i:nth-child(3n+1) { animation-delay: -.85s; }
.nxa-wave--live i:nth-child(5n) { animation-duration: .9s; }
@keyframes nxa-talk { from { transform: scaleY(calc(var(--h, .5) * .35)); } to { transform: scaleY(var(--h, .5)); } }

/* ---------- text-to-image ---------- */
.nxa-prompt, .nxa-q, .nxa-task, .nxa-tts {
  display: grid; gap: .4rem;
  padding: .8rem .9rem; border-radius: 12px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1);
}
.nxa-prompt p, .nxa-q p, .nxa-task p, .nxa-tts p { color: #fff; font-size: .95rem; }
.nxa-gen {
  display: grid; grid-template-columns: 1fr .8fr 1.78fr .5625fr;
  gap: .5rem; align-items: end;
}
.nxa-gen__tile {
  position: relative; overflow: hidden; border-radius: 10px; aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .12);
  background: linear-gradient(160deg, #18407E, #0A1E44);
}
.nxa-gen__tile--1 { aspect-ratio: 4 / 5; background: linear-gradient(160deg, #0F5F6B, #08283A); }
.nxa-gen__tile--2 { aspect-ratio: 16 / 9; background: linear-gradient(180deg, #23508F 0%, #123566 58%, #0A1D3E 58%); }
.nxa-gen__tile--3 { aspect-ratio: 9 / 16; background: linear-gradient(170deg, #2A2F6E, #0B1433); }
.nxa-gen__tile > i {
  position: absolute; left: 50%; bottom: 20%; height: 40%; aspect-ratio: .86;
  transform: translateX(-50%);
  border-radius: 5px 5px 12px 12px;
  background: linear-gradient(100deg, #DCE9F8 0%, #FFFFFF 45%, #A9C3E4 100%);
  box-shadow: 0 10px 18px -8px rgba(0, 0, 0, .7);
}
.nxa-gen__tile > i::after {
  content: ''; position: absolute; top: 20%; left: 92%; width: 34%; height: 46%;
  border: 3px solid #C9DBF1; border-inline-start: 0; border-radius: 0 40% 40% 0;
}
.nxa-gen__tile--1 > i { background: linear-gradient(100deg, #A8F0E2, #FFFFFF 45%, #7CCFC0); }
.nxa-gen__tile--3 > i { bottom: 28%; height: 22%; }
.nxa-gen__tile .nxa-k { position: absolute; top: .4rem; left: .45rem; color: rgba(255, 255, 255, .7); font-size: .56rem; }
.nxa-gen__tile .nxa-chip {
  position: absolute; left: .35rem; bottom: .35rem; padding: .12rem .4rem; font-size: .54rem;
  background: rgba(3, 12, 30, .72);
}
.nxa-gen__tile--3 .nxa-chip { left: 50%; transform: translateX(-50%); }
@media (max-width: 560px) {
  .nxa-gen { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .nxa-gen__tile, .nxa-gen__tile--1, .nxa-gen__tile--2, .nxa-gen__tile--3 { aspect-ratio: 4 / 3; }
  .nxa-gen__tile--3 > i { bottom: 20%; height: 40%; }
}

/* ---------- text-to-video ---------- */
.nxa-vid {
  position: relative; overflow: hidden; aspect-ratio: 16 / 7.4; border-radius: 12px;
  background: linear-gradient(180deg, #0D2B5E 0%, #165A8E 62%, #0E6B7D 100%);
  border: 1px solid rgba(255, 255, 255, .12);
}
.nxa-vid__sun {
  position: absolute; top: 18%; inset-inline-end: 18%; width: 15%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #FFE6B0, rgba(255, 196, 120, .2) 70%, transparent 72%);
}
.nxa-vid__hill {
  position: absolute; left: -10%; bottom: -55%; width: 75%; aspect-ratio: 1.6; border-radius: 50%;
  background: linear-gradient(180deg, #0B3F55, #052233);
}
.nxa-vid__hill--b { left: 38%; bottom: -62%; width: 80%; background: linear-gradient(180deg, #0A2F4A, #031726); }
.nxa-vid__cap {
  position: absolute; left: 50%; bottom: 10%; transform: translateX(-50%);
  max-width: 88%; padding: .25rem .6rem; border-radius: 6px;
  background: rgba(0, 0, 0, .58); color: #fff; font-size: .76rem; white-space: nowrap;
}
.nxa-vid__tc { position: absolute; top: .55rem; left: .7rem; color: rgba(255, 255, 255, .75); }
.nxa-tl { position: relative; display: grid; gap: .4rem; }
.nxa-tl__row { display: grid; grid-template-columns: 4.4rem 1fr; gap: .6rem; align-items: center; }
.nxa-tl__track { display: flex; gap: 3px; height: 14px; }
.nxa-tl__track i { flex: 1; border-radius: 3px; background: rgba(0, 140, 254, .55); }
.nxa-tl__track--scenes i:nth-child(1) { flex: 1.2; } .nxa-tl__track--scenes i:nth-child(2) { flex: 1.6; background: rgba(0, 140, 254, .85); }
.nxa-tl__track--scenes i:nth-child(4) { flex: .8; }
.nxa-tl__track--voice i { background: rgba(0, 219, 178, .45); }
.nxa-tl__track--voice i:nth-child(2) { flex: 1.8; }
.nxa-tl__track--caps { height: 8px; }
.nxa-tl__track--caps i { background: rgba(255, 255, 255, .22); }
.nxa-tl__play {
  position: absolute; inset-block: -4px; left: 5rem; right: 0; pointer-events: none;
}
.nxa-tl__play span { position: absolute; inset: 0; animation: nxa-sweep 6s linear infinite; }
.nxa-tl__play span::before {
  content: ''; position: absolute; inset-block: 0; left: 0; width: 2px;
  background: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, .8);
}

/* ---------- speech-to-text ---------- */
.nxa-tx { display: grid; }
.nxa-tx li {
  display: grid; grid-template-columns: 2.8rem 5.2rem minmax(0, 1fr); gap: .6rem; align-items: baseline;
  padding: .5rem 0; border-top: 1px dashed rgba(255, 255, 255, .1);
}
.nxa-tx li:first-child { border-top: 0; }
.nxa-tx p { font-size: .86rem; }
.nxa-spk { font-family: var(--nx-font-mono); font-size: .64rem; font-weight: 500; color: #5DBBFF; }
.nxa-spk--b { color: var(--nx-teal); }
.nxa-redact {
  display: inline-block; padding: 0 .4rem; border-radius: 4px;
  background: repeating-linear-gradient(135deg, rgba(255, 181, 71, .22) 0 4px, rgba(255, 181, 71, .1) 4px 8px);
  color: var(--nxa-amber); font-family: var(--nx-font-mono); font-size: .66rem;
}
@media (max-width: 560px) {
  .nxa-tx li { grid-template-columns: 2.8rem 1fr; }
  .nxa-tx p { grid-column: 1 / -1; }
}

/* ---------- text-to-speech ---------- */
.nxa-tts mark {
  padding: 0 .25rem; border-radius: 4px; color: #fff;
  background: rgba(0, 140, 254, .2); border-bottom: 1px dashed #5DBBFF;
}
.nxa-say {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .8rem; align-items: center;
  padding: .7rem .8rem; border-radius: 12px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1);
}
.nxa-play {
  position: relative; width: 30px; height: 30px; border-radius: 50%; background: var(--nx-grad);
}
.nxa-play::before {
  content: ''; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 6px 0 6px 9px; border-color: transparent transparent transparent #04121F;
}
.nxa-turns, .nxa-steps, .nxa-log { display: grid; }
.nxa-turns li, .nxa-steps li, .nxa-log li {
  display: grid; grid-template-columns: 5.4rem minmax(0, 1fr); gap: .8rem; align-items: baseline;
  padding: .55rem .2rem; border-top: 1px dashed rgba(255, 255, 255, .1);
}
.nxa-turns li:first-child, .nxa-steps li:first-child, .nxa-log li:first-child { border-top: 0; }
.nxa-turns p, .nxa-steps p, .nxa-log p { font-size: .86rem; }
.nxa-turns .nxa-k, .nxa-steps .nxa-k, .nxa-log .nxa-k { color: #5DBBFF; }
li.is-gate {
  margin-top: .3rem; padding: .65rem .7rem; border-radius: 10px;
  border: 1px solid rgba(255, 181, 71, .32) !important; background: rgba(255, 181, 71, .07);
}
li.is-gate .nxa-k { color: var(--nxa-amber) !important; }

/* ---------- chatbots ---------- */
.nxa-chat { display: grid; gap: .6rem; }
.nxa-msg {
  max-width: 86%; padding: .65rem .85rem; border-radius: 14px;
  font-size: .86rem; line-height: 1.5;
}
.nxa-msg--user {
  justify-self: end; border-end-end-radius: 4px;
  background: linear-gradient(135deg, #1D7BEA, #0C9C98); color: #fff;
}
.nxa-msg--bot {
  justify-self: start; border-end-start-radius: 4px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: var(--nxa-ink);
}
.nxa-msg--gate { border-color: rgba(255, 181, 71, .3); }
.nxa-cite, .nxa-cite--warn {
  display: flex; width: fit-content; margin-top: .5rem;
  padding: .15rem .5rem; border-radius: 999px;
  border: 1px solid rgba(0, 219, 178, .32); color: var(--nx-teal);
  font-family: var(--nx-font-mono); font-size: .6rem; letter-spacing: .03em;
}
.nxa-cite--warn { border-color: rgba(255, 181, 71, .38); color: var(--nxa-amber); }
.nxa-composer {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  padding: .55rem .55rem .55rem .9rem; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .03);
  color: rgba(157, 174, 203, .8); font-size: .84rem;
}
.nxa-composer i { width: 28px; height: 28px; border-radius: 8px; background: var(--nx-grad); position: relative; }
.nxa-composer i::before {
  content: ''; position: absolute; inset: 0; margin: auto; width: 12px; height: 12px;
  background: #04121F; -webkit-mask: var(--nx-arrow) center / contain no-repeat; mask: var(--nx-arrow) center / contain no-repeat;
}

/* ---------- custom LLM ---------- */
.nxa-run { display: grid; }
.nxa-run li {
  display: grid; grid-template-columns: 22px 8.6rem minmax(0, 1fr); gap: .75rem; align-items: center;
  padding: .55rem 0; border-top: 1px dashed rgba(255, 255, 255, .1);
}
.nxa-run li:first-child { border-top: 0; }
.nxa-run li > i {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .22);
}
.nxa-run li > i svg { width: 12px; height: 12px; }
.nxa-run b { font-weight: 600; color: #fff; font-size: .88rem; }
.nxa-run li > span { font-family: var(--nx-font-mono); font-size: .66rem; color: var(--nx-on-dark-mut); }
.nxa-run li.is-done > i { background: var(--nx-teal); border-color: transparent; color: #04121F; }
.nxa-run li.is-live > i { border-color: var(--nx-teal); border-top-color: transparent; animation: nxa-spin 1.1s linear infinite; }
.nxa-run li.is-live b { color: var(--nx-teal); }
.nxa-run li:not(.is-done):not(.is-live) b { color: var(--nx-on-dark-mut); }
@keyframes nxa-spin { to { transform: rotate(360deg); } }
.nxa-loss { grid-column: 2 / -1; width: 100%; height: 56px; }
.nxa-loss path { fill: none; vector-effect: non-scaling-stroke; }
.nxa-loss__grid { stroke: rgba(255, 255, 255, .07); }
.nxa-loss__line { stroke: var(--nx-teal); stroke-width: 2; }

/* ---------- RAG ---------- */
.nxa-trace {
  display: flex; flex-wrap: wrap; align-items: center; gap: .45rem;
  font-family: var(--nx-font-mono); font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; color: var(--nx-on-dark-mut);
}
.nxa-ans {
  display: grid; gap: .4rem; padding: .85rem .95rem; border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 140, 254, .12), rgba(0, 219, 178, .06));
  border: 1px solid rgba(0, 140, 254, .28);
}
.nxa-ans p { color: #fff; }
.nxa-ans sup, .nxa-src sup {
  display: inline-grid; place-items: center; min-width: 1.15rem; height: 1.15rem; padding: 0 .2rem;
  border-radius: 4px; vertical-align: .35em;
  background: rgba(0, 219, 178, .16); color: var(--nx-teal);
  font-family: var(--nx-font-mono); font-size: .6rem; line-height: 1;
}
.nxa-src { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.nxa-src li {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .5rem; align-items: center;
  padding: .55rem .65rem; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03);
}
.nxa-src sup { grid-row: span 2; vertical-align: 0; }
.nxa-src b { font-size: .76rem; font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nxa-src span { font-family: var(--nx-font-mono); font-size: .62rem; color: var(--nx-on-dark-mut); }
@media (max-width: 480px) { .nxa-src { grid-template-columns: 1fr; } }

/* ---------- AI agents ---------- */
.nxa-steps code {
  font-family: var(--nx-font-mono); font-size: .76rem; color: #9FD4FF;
  overflow-wrap: anywhere;
}
.nxa-steps em {
  margin-inline-start: .5rem; padding: .05rem .4rem; border-radius: 4px;
  background: rgba(0, 219, 178, .14); color: var(--nx-teal);
  font-style: normal; font-family: var(--nx-font-mono); font-size: .6rem;
}
.nxa-btns { display: flex; gap: .4rem; margin-top: .55rem; }
.nxa-btn {
  padding: .3rem .75rem; border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-size: .74rem; font-weight: 600;
}
.nxa-btn--go { background: var(--nx-grad); border-color: transparent; color: #04121F; }
.nxa-budget { display: flex; align-items: center; gap: .7rem; padding-top: .75rem; border-top: 1px dashed rgba(255, 255, 255, .12); }
.nxa-budget { flex-wrap: wrap; }
.nxa-meter { flex: 1 1 6rem; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.nxa-meter i { display: block; height: 100%; background: var(--nx-grad); transform: scaleX(.33); transform-origin: left center; }
[dir="rtl"] .nxa-meter i { transform-origin: right center; }

/* ---------- machine learning ---------- */
.nxa-chart {
  position: relative; height: 170px; padding: .5rem; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .025);
}
.nxa-chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.nxa-chart path { fill: none; vector-effect: non-scaling-stroke; }
.nxa-chart__grid { stroke: rgba(255, 255, 255, .06); }
.nxa-chart path.nxa-chart__band { fill: rgba(0, 219, 178, .13); stroke: none; }
.nxa-chart__hist { stroke: #5DBBFF; stroke-width: 2; }
.nxa-chart__fc { stroke: var(--nx-teal); stroke-width: 2; stroke-dasharray: 5 4; }
.nxa-chart__rop { stroke: var(--nxa-amber); stroke-width: 1; stroke-dasharray: 3 4; }
.nxa-chart__now { stroke: rgba(255, 255, 255, .35); stroke-dasharray: 2 3; }
.nxa-chart__l { position: absolute; font-size: .56rem; }
.nxa-chart__l--now { top: .45rem; left: calc(62.5% + .35rem); color: #fff; }
.nxa-chart__l--fc { top: 1.6rem; right: .6rem; color: var(--nx-teal); }
.nxa-chart__l--rop { bottom: .45rem; left: .7rem; color: var(--nxa-amber); }
.nxa-drivers, .nxa-reco { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .6rem; }
.nxa-reco {
  padding: .7rem .85rem; border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 140, 254, .12), rgba(0, 219, 178, .06)); border: 1px solid rgba(0, 140, 254, .28);
}
.nxa-reco p { color: #fff; font-weight: 600; margin-inline-end: auto !important; }

/* ---------- computer vision ---------- */
.nxa-cam {
  position: relative; overflow: hidden; aspect-ratio: 320 / 170; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: radial-gradient(70% 90% at 50% 10%, #1A3A6E, #07152F 75%);
}
.nxa-cam svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.nxa-cam__belt { stroke: rgba(255, 255, 255, .25); stroke-width: 1.5; fill: none; }
.nxa-cam__rail { stroke: rgba(255, 255, 255, .08); stroke-width: 1; fill: none; }
.nxa-cam__obj { fill: rgba(190, 214, 245, .16); stroke: rgba(255, 255, 255, .38); stroke-width: 1; }
.nxa-cam__flaw { fill: none; stroke: var(--nxa-amber); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nxa-cam::after {
  content: ''; position: absolute; inset: 0 0 auto; height: 30%; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0, 219, 178, .14) 85%, rgba(0, 219, 178, .5));
  animation: nxa-scan 4.2s var(--nx-ease-in-out) infinite;
}
@keyframes nxa-scan { from { transform: translateY(-100%); } to { transform: translateY(340%); } }
.nxa-box {
  position: absolute; top: 36%; height: 38%; width: 20.5%;
  border: 1.5px solid var(--nx-teal); border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .25), 0 0 16px rgba(0, 219, 178, .25);
}
.nxa-box--a { left: 5%; } .nxa-box--b { left: 39.4%; } .nxa-box--c { left: 73.6%; }
.nxa-box em {
  position: absolute; bottom: 100%; left: -1.5px; margin-bottom: 3px;
  padding: .1rem .35rem; border-radius: 3px;
  background: var(--nx-teal); color: #04121F;
  font-style: normal; font-family: var(--nx-font-mono); font-size: .54rem; font-weight: 600; white-space: nowrap;
}
.nxa-box--warn { border-color: var(--nxa-amber); box-shadow: 0 0 0 1px rgba(0, 0, 0, .25), 0 0 18px rgba(255, 181, 71, .35); }
.nxa-box--warn em { background: var(--nxa-amber); }
.nxa-cam__rec { position: absolute; top: .55rem; right: .7rem; display: flex; align-items: center; gap: .4rem; color: rgba(255, 255, 255, .8); }
.nxa-cam__rec i { width: 6px; height: 6px; border-radius: 50%; background: var(--nx-teal); animation: nxa-blink 1.4s steps(1) infinite; }
@media (max-width: 480px) { .nxa-box em { font-size: .48rem; padding: .05rem .25rem; } }

/* ---------- document intelligence ---------- */
.nxa-docx { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: .9rem; align-items: start; }
.nxa-page {
  position: relative; aspect-ratio: 3 / 3.9; padding: 10% 9%; border-radius: 8px;
  background: linear-gradient(180deg, #F7FAFE, #E9F0F9);
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .9);
}
.nxa-page i { position: absolute; display: block; border-radius: 2px; background: #C9D5E6; }
.nxa-page__logo { top: 8%; left: 9%; width: 26%; height: 6%; background: #0B1631 !important; border-radius: 3px; }
.nxa-page__ln { top: 19%; left: 9%; width: 40%; height: 3%; }
.nxa-page__ln--w { top: 8.5%; left: auto; right: 9%; width: 30%; }
.nxa-page__ln--s { top: 25%; width: 28%; }
.nxa-page__tbl {
  top: 40%; left: 9%; right: 9%; height: 34%; border-radius: 3px;
  background: repeating-linear-gradient(180deg, #DCE5F1 0 1px, transparent 1px 22%), #F2F6FB !important;
  border: 1px solid #C9D5E6;
}
.nxa-hl {
  position: absolute; z-index: 1;
  border: 1.5px solid var(--nx-blue); border-radius: 3px; background: rgba(0, 140, 254, .1);
  font-family: var(--nx-font-mono); font-size: .52rem; font-weight: 700; color: #fff;
}
.nxa-hl { color: transparent; } /* the number is drawn as a corner badge below */
.nxa-hl::after {
  position: absolute; top: -.55rem; inset-inline-start: -.55rem;
  display: grid; place-items: center; width: 1rem; height: 1rem; border-radius: 50%;
  background: var(--nx-blue); color: #fff; font-size: .55rem;
}
.nxa-hl--1 { top: 16.5%; left: 6.5%; width: 46%; height: 8%; } .nxa-hl--1::after { content: '1'; }
.nxa-hl--2 { top: 5.5%; right: 6.5%; width: 35%; height: 8%; } .nxa-hl--2::after { content: '2'; }
.nxa-hl--3 { top: 53%; left: 6.5%; right: 6.5%; height: 8%; border-color: var(--nxa-amber); background: rgba(255, 181, 71, .16); }
.nxa-hl--3::after { content: '3'; background: var(--nxa-amber); color: #04121F; }
.nxa-hl--4 { bottom: 9%; right: 6.5%; width: 38%; height: 8%; } .nxa-hl--4::after { content: '4'; }
.nxa-fields { display: grid; gap: .45rem; }
.nxa-fields li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: .6rem; align-items: center;
  padding: .5rem .65rem; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03);
}
.nxa-fields b { grid-column: 1; font-size: .82rem; font-weight: 600; color: #fff; overflow-wrap: anywhere; }
.nxa-fields li > i {
  grid-column: 2; grid-row: 1 / span 2;
  display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  font-style: normal; font-family: var(--nx-font-mono); font-size: .66rem; font-weight: 700;
  background: rgba(255, 181, 71, .18); color: var(--nxa-amber);
}
.nxa-fields li > i.ok { background: rgba(0, 219, 178, .16); color: var(--nx-teal); }
.nxa-fields li > i svg { width: 11px; height: 11px; }
.nxa-fields li.is-warn { border-color: rgba(255, 181, 71, .35); background: rgba(255, 181, 71, .06); }
.nxa-fields li.is-warn b { color: var(--nxa-amber); }
@media (max-width: 420px) {
  .nxa-docx { grid-template-columns: 1fr; }
  .nxa-page { max-width: 12rem; }
}

/* ==========================================================================
   01 — What it does: statement + photograph | numbered principles
   ========================================================================== */
.nxa-what {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 5vw, 7rem); align-items: start;
}
.nxa-what__lead { position: sticky; top: 7rem; display: grid; gap: 1.3rem; }
.nxa-what__lead .nx-lead { margin: 0; max-width: 36rem; }
.nxa-what__fig {
  position: relative; margin: .8rem 0 0; overflow: hidden;
  border-radius: var(--nx-radius-lg); aspect-ratio: 16 / 10;
  box-shadow: 0 40px 80px -46px rgba(1, 17, 47, .55);
}
.nxa-what__fig img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nxa-what__fig::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 10, 30, .35));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.nxa-points { display: grid; counter-reset: none; }
.nxa-points li {
  display: grid; grid-template-columns: clamp(3.4rem, 2.6rem + 2vw, 5rem) minmax(0, 1fr); gap: 1rem;
  padding-block: clamp(1.5rem, 1.1rem + 1.2vw, 2.3rem);
  border-top: 1px solid var(--nx-line-strong);
}
.nxa-points li:last-child { border-bottom: 1px solid var(--nx-line-strong); }
.nxa-points__n {
  font-family: var(--nx-font-display); font-weight: 600; letter-spacing: -.04em;
  font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.8rem); line-height: 1;
  background: linear-gradient(135deg, var(--nx-blue-600), #00806A); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nxa-points h3 { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.5rem); margin: .1rem 0 .5rem; letter-spacing: -.02em; }
.nxa-points p { margin: 0; color: var(--nx-body); line-height: 1.62; }
@media (max-width: 900px) {
  .nxa-what { grid-template-columns: 1fr; }
  .nxa-what__lead { position: static; }
}

/* ==========================================================================
   02 — Capabilities bento
   ========================================================================== */
.nxa-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.8rem, .6rem + .6vw, 1.2rem); }
.nxa-cap {
  position: relative; display: flex; flex-direction: column; gap: .7rem;
  min-height: 15.5rem; padding: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  border-radius: var(--nx-radius-lg); border: 1px solid var(--nx-line);
  background: var(--nx-surface); overflow: hidden;
  transition: transform .45s var(--nx-ease), box-shadow .45s var(--nx-ease), border-color .45s;
}
.nxa-cap:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -36px rgba(1, 17, 47, .35); border-color: var(--nx-line-strong); }
.nxa-cap__n { position: absolute; top: 1.3rem; inset-inline-end: 1.4rem; font-family: var(--nx-font-mono); font-size: .7rem; letter-spacing: .14em; color: var(--nx-muted); }
.nxa-cap__ico {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: auto;
  color: var(--nx-blue-600);
  background: linear-gradient(var(--nx-surface), var(--nx-surface)) padding-box,
              linear-gradient(135deg, rgba(0, 140, 254, .5), rgba(0, 219, 178, .5)) border-box;
  border: 1px solid transparent;
}
.nxa-cap__ico svg { width: 20px; height: 20px; }
.nxa-cap h3 { margin: 1.4rem 0 0; font-size: clamp(1.12rem, 1rem + .4vw, 1.35rem); letter-spacing: -.02em; }
.nxa-cap p { margin: 0; color: var(--nx-body); font-size: .95rem; line-height: 1.6; max-width: 34rem; }
.nxa-cap--1, .nxa-cap--6 { grid-column: span 2; }
.nxa-cap--1 {
  background:
    radial-gradient(28rem 16rem at 100% 0%, rgba(0, 140, 254, .35), transparent 60%),
    radial-gradient(20rem 14rem at 0% 100%, rgba(0, 219, 178, .16), transparent 60%),
    var(--nx-navy);
  border-color: transparent; color: var(--nx-on-dark);
}
.nxa-cap--1 h3 { color: #fff; font-size: clamp(1.4rem, 1.15rem + .9vw, 2rem); }
.nxa-cap--1 p { color: var(--nx-on-dark-mut); }
.nxa-cap--1 .nxa-cap__n { color: var(--nx-teal); }
.nxa-cap--1 .nxa-cap__ico { color: var(--nx-teal); background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); }
.nxa-cap--1::after {
  content: ''; position: absolute; inset: auto 0 0 auto; width: 55%; height: 70%; pointer-events: none; opacity: .55;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 28px);
  -webkit-mask-image: radial-gradient(circle at 100% 100%, #000, transparent 70%);
          mask-image: radial-gradient(circle at 100% 100%, #000, transparent 70%);
}
[dir="rtl"] .nxa-cap--1::after { inset: auto auto 0 0; }
.nxa-cap--6 {
  background: linear-gradient(var(--nx-surface), var(--nx-surface)) padding-box,
              linear-gradient(135deg, rgba(0, 140, 254, .55), rgba(0, 219, 178, .55)) border-box;
  border: 1px solid transparent;
}
@media (max-width: 1024px) { .nxa-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .nxa-bento { grid-template-columns: 1fr; }
  .nxa-cap--1, .nxa-cap--6 { grid-column: auto; }
  .nxa-cap { min-height: 0; }
  .nxa-cap h3 { margin-top: .5rem; }
}

/* ==========================================================================
   03 — Sector index
   ========================================================================== */
.nxa-sectors { border-bottom: 1px solid var(--nx-line-strong); }
.nxa-sector {
  position: relative;
  display: grid; grid-template-columns: 3.4rem minmax(9rem, 12rem) minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(1rem, .6rem + 1.4vw, 2.4rem); align-items: baseline;
  padding: clamp(1.3rem, 1rem + 1vw, 1.9rem) clamp(.4rem, .2rem + .6vw, 1rem);
  border-top: 1px solid var(--nx-line-strong);
  transition: background .4s var(--nx-ease);
}
.nxa-sector::before {
  content: ''; position: absolute; inset-inline-start: 0; top: -1px; width: 100%; height: 2px;
  background: var(--nx-grad); transform: scaleX(0); transform-origin: left center;
  transition: transform .6s var(--nx-ease);
}
[dir="rtl"] .nxa-sector::before { transform-origin: right center; }
.nxa-sector:hover { background: var(--nx-surface); }
.nxa-sector:hover::before { transform: scaleX(1); }
.nxa-sector__n { font-family: var(--nx-font-mono); font-size: .72rem; letter-spacing: .12em; color: var(--nx-muted); }
.nxa-sector__k {
  justify-self: start;
  font-family: var(--nx-font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--nx-blue-600);
}
.nxa-sector h3 { margin: 0; font-size: clamp(1.2rem, 1.02rem + .7vw, 1.65rem); letter-spacing: -.025em; line-height: 1.2; }
.nxa-sector p { margin: 0; color: var(--nx-body); line-height: 1.6; }
@media (max-width: 900px) {
  .nxa-sector { grid-template-columns: 2.6rem minmax(0, 1fr); row-gap: .45rem; }
  .nxa-sector__k, .nxa-sector h3, .nxa-sector p { grid-column: 2; }
}

/* ==========================================================================
   04 — Architecture: layer stack on one signal line
   ========================================================================== */
.nxa-arch { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 1rem + 5vw, 6.5rem); align-items: start; }
.nxa-arch__copy { position: sticky; top: 7rem; display: grid; gap: 1.3rem; }
.nxa-arch__copy .nx-lead { margin: 0; }
.nxa-arch__stack-h {
  margin: 1rem 0 0; font-family: var(--nx-font-mono); font-size: .72rem !important; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--nx-on-dark-mut) !important;
}
.nxa-arch__stack { display: flex; flex-wrap: wrap; gap: .4rem; }
.nxa-arch__stack li {
  padding: .32rem .7rem; border-radius: 999px;
  border: 1px solid var(--nx-hair-dark); background: rgba(255, 255, 255, .04);
  font-family: var(--nx-font-mono); font-size: .72rem; color: #CFE0F5;
}
.nxa-layers { position: relative; display: grid; gap: .9rem; }
.nxa-layers::before {
  content: ''; position: absolute; top: 2rem; bottom: 2rem; inset-inline-start: calc(clamp(1.2rem, 1rem + .8vw, 1.7rem) + 1.25rem);
  width: 1px; background: linear-gradient(180deg, var(--nx-blue), var(--nx-teal)); opacity: .45;
}
.nxa-layer {
  position: relative;
  display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 1.2rem; align-items: start;
  padding: clamp(1.2rem, 1rem + .8vw, 1.7rem);
  border-radius: 16px; border: 1px solid var(--nx-hair-dark);
  background: linear-gradient(170deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  transition: border-color .4s var(--nx-ease), transform .4s var(--nx-ease);
}
.nxa-layer:hover { border-color: rgba(0, 219, 178, .4); transform: translateX(4px); }
[dir="rtl"] .nxa-layer:hover { transform: translateX(-4px); }
.nxa-layer__k {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 10px;
  background: var(--nx-navy-deep); border: 1px solid rgba(0, 219, 178, .45);
  font-family: var(--nx-font-mono); font-size: .72rem; font-weight: 600; color: var(--nx-teal);
}
.nxa-layer h3 { margin: .25rem 0 .4rem; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); }
.nxa-layer p { margin: 0; line-height: 1.6; }
.nxa-layers .nxa-layer:nth-child(odd) { margin-inline-end: clamp(0rem, -1rem + 3vw, 2.4rem); }
.nxa-layers .nxa-layer:nth-child(even) { margin-inline-start: clamp(0rem, -1rem + 3vw, 2.4rem); }
@media (max-width: 900px) {
  .nxa-arch { grid-template-columns: 1fr; }
  .nxa-arch__copy { position: static; }
  .nxa-layers .nxa-layer:nth-child(n) { margin-inline: 0; }
}

/* ==========================================================================
   05 — Integration: hub and spokes
   ========================================================================== */
.nxa-int { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(2rem, 1rem + 4vw, 5.5rem); align-items: center; }
.nxa-int__copy { display: grid; gap: 1.3rem; }
.nxa-int__copy .nx-lead { margin: 0; }
.nxa-hub {
  display: grid; grid-template-columns: minmax(0, 1fr) 9.5rem minmax(0, 1fr);
  column-gap: 2.6rem; align-items: center;
}
.nxa-hub__spokes { display: contents; }
.nxa-hub__core {
  grid-column: 2; grid-row: 1 / span 2; position: relative; z-index: 1;
  display: grid; place-items: center; align-content: center; gap: .6rem; text-align: center;
  width: 9.5rem; aspect-ratio: 1; border-radius: 50%; padding: 1rem;
  background: var(--nx-navy);
  box-shadow: 0 30px 60px -30px rgba(1, 17, 47, .7), 0 0 0 10px rgba(0, 140, 254, .06), 0 0 0 22px rgba(0, 140, 254, .035);
}
.nxa-hub__core::before {
  content: ''; position: absolute; inset: -1px; border-radius: 50%; padding: 1px; pointer-events: none;
  background: conic-gradient(from 0deg, var(--nx-blue), var(--nx-teal), transparent 60%, var(--nx-blue));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: nxa-spin 9s linear infinite;
}
.nxa-hub__core b { color: #fff; font-family: var(--nx-font-display); font-size: .95rem; line-height: 1.2; letter-spacing: -.01em; }
.nxa-spoke {
  position: relative; padding: 1.3rem 1.4rem; margin-block: .6rem;
  border-radius: var(--nx-radius); border: 1px solid var(--nx-line); background: var(--nx-surface);
}
.nxa-spoke h3 { margin: 0 0 .35rem; font-size: 1.08rem; letter-spacing: -.015em; }
.nxa-spoke p { margin: 0; font-size: .92rem; color: var(--nx-body); line-height: 1.55; }
.nxa-spoke--1 { grid-column: 1; grid-row: 1; } .nxa-spoke--2 { grid-column: 3; grid-row: 1; }
.nxa-spoke--3 { grid-column: 1; grid-row: 2; } .nxa-spoke--4 { grid-column: 3; grid-row: 2; }
.nxa-spoke::after {
  content: ''; position: absolute; top: 50%; width: 2.6rem; height: 1px;
  background: linear-gradient(90deg, var(--nx-line-strong), var(--nx-blue));
}
.nxa-spoke::before {
  content: ''; position: absolute; top: calc(50% - 3px); width: 7px; height: 7px; border-radius: 50%;
  background: var(--nx-blue); box-shadow: 0 0 0 4px rgba(0, 140, 254, .15);
}
.nxa-spoke--1::after, .nxa-spoke--3::after { inset-inline-start: 100%; }
.nxa-spoke--2::after, .nxa-spoke--4::after { inset-inline-end: 100%; transform: scaleX(-1); }
.nxa-spoke--1::before, .nxa-spoke--3::before { inset-inline-end: -4px; }
.nxa-spoke--2::before, .nxa-spoke--4::before { inset-inline-start: -4px; }
[dir="rtl"] .nxa-spoke--1::after, [dir="rtl"] .nxa-spoke--3::after { transform: scaleX(-1); }
[dir="rtl"] .nxa-spoke--2::after, [dir="rtl"] .nxa-spoke--4::after { transform: none; }
@media (max-width: 1180px) { .nxa-int { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .nxa-hub { grid-template-columns: 1fr; row-gap: .9rem; padding-inline-start: 1.6rem; position: relative; }
  .nxa-hub::before {
    content: ''; position: absolute; inset-inline-start: .45rem; top: 2rem; bottom: 2.5rem; width: 1px;
    background: linear-gradient(180deg, var(--nx-blue), var(--nx-line-strong));
  }
  .nxa-hub__core {
    grid-column: 1; grid-row: auto; width: auto; aspect-ratio: auto; border-radius: var(--nx-radius);
    display: flex; justify-content: flex-start; padding: .95rem 1.2rem; box-shadow: none;
  }
  .nxa-hub__core::before { border-radius: inherit; animation: none; }
  .nxa-spoke, .nxa-spoke--2, .nxa-spoke--3, .nxa-spoke--4 { grid-column: 1; grid-row: auto; margin: 0; }
  .nxa-spoke::after { display: none; }
  .nxa-spoke::before, .nxa-spoke--2::before, .nxa-spoke--4::before { inset-inline-start: calc(-1.15rem - 4px); inset-inline-end: auto; }
}

/* ==========================================================================
   06 — Workflow pipeline
   ========================================================================== */
.nxa-pipe {
  --pad-x: clamp(1rem, .6rem + 1.4vw, 2rem);
  --pad-y: clamp(1.6rem, 1.2rem + 1.6vw, 2.8rem);
  position: relative; padding: var(--pad-y) var(--pad-x);
  border-radius: var(--nx-radius-lg); border: 1px solid var(--nx-hair-dark);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .01));
}
.nxa-pipe__stages { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
/* the track: a hairline through the node centres, with a travelling packet */
.nxa-pipe__track {
  position: absolute; overflow: hidden; pointer-events: none;
  top: calc(var(--pad-y) + 1.55rem + 2.1rem); height: 3px; margin-top: -1px;
  left: calc(var(--pad-x) + (100% - 2 * var(--pad-x)) / 12);
  right: calc(var(--pad-x) + (100% - 2 * var(--pad-x)) / 12);
}
.nxa-pipe__track::before {
  content: ''; position: absolute; inset: 1px 0;
  background: linear-gradient(90deg, rgba(0, 140, 254, .6), rgba(0, 219, 178, .6));
}
.nxa-pipe__track i {
  position: absolute; top: 0; bottom: 0; left: 0; width: 22%;
  background: linear-gradient(90deg, transparent, var(--nx-teal) 85%, transparent);
  animation: nxa-packet 3.8s var(--nx-ease-in-out) infinite;
}
@keyframes nxa-packet { from { transform: translateX(-100%); } to { transform: translateX(460%); } }
[dir="rtl"] .nxa-pipe__track i { left: auto; right: 0; animation-name: nxa-packet-rtl; background: linear-gradient(270deg, transparent, var(--nx-teal) 85%, transparent); }
@keyframes nxa-packet-rtl { from { transform: translateX(100%); } to { transform: translateX(-460%); } }
.nxa-stage { position: relative; display: grid; justify-items: center; align-content: start; text-align: center; gap: .55rem; padding-inline: .4rem; }
.nxa-stage__n { font-family: var(--nx-font-mono); font-size: .66rem; letter-spacing: .14em; color: var(--nx-on-dark-mut); }
.nxa-stage__ico {
  display: grid; place-items: center; width: 4.2rem; height: 4.2rem; border-radius: 16px;
  background: var(--nx-navy-deep); border: 1px solid rgba(255, 255, 255, .16); color: var(--nx-teal);
  transition: transform .4s var(--nx-ease), border-color .4s var(--nx-ease);
}
.nxa-stage__ico svg { width: 22px; height: 22px; }
.nxa-stage:hover .nxa-stage__ico { transform: translateY(-3px); border-color: rgba(0, 219, 178, .5); }
.nxa-stage b { color: #fff; font-family: var(--nx-font-display); font-size: 1.02rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; margin-top: .3rem; }
.nxa-stage__s { font-family: var(--nx-font-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--nx-on-dark-mut); }
.nxa-stage.is-model .nxa-stage__ico {
  background: var(--nx-grad); color: #04121F; border-color: transparent;
  box-shadow: 0 0 0 6px rgba(0, 140, 254, .12), 0 18px 40px -12px rgba(0, 140, 254, .65);
}
.nxa-stage.is-model .nxa-stage__s { color: var(--nx-teal); }
@media (max-width: 900px) {
  .nxa-pipe__stages { grid-template-columns: 1fr; gap: 1.2rem; }
  .nxa-pipe__track {
    top: calc(var(--pad-y) + 2.1rem); bottom: calc(var(--pad-y) + 2.1rem); height: auto; margin: 0 0 0 -1px;
    left: calc(var(--pad-x) + 2.1rem); right: auto; width: 3px;
  }
  [dir="rtl"] .nxa-pipe__track { left: auto; right: calc(var(--pad-x) + 2.1rem); margin: 0 -1px 0 0; }
  .nxa-pipe__track::before { inset: 0 1px; background: linear-gradient(180deg, rgba(0, 140, 254, .6), rgba(0, 219, 178, .6)); }
  .nxa-pipe__track i, [dir="rtl"] .nxa-pipe__track i {
    left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 22%; animation-name: nxa-packet-v;
    background: linear-gradient(180deg, transparent, var(--nx-teal) 85%, transparent);
  }
  .nxa-stage {
    grid-template-columns: 4.2rem minmax(0, 1fr); grid-template-rows: auto auto auto;
    justify-items: start; text-align: start; column-gap: 1.1rem; row-gap: .1rem; align-items: center; padding: 0;
  }
  .nxa-stage__ico { grid-column: 1; grid-row: 1 / span 3; }
  .nxa-stage__n, .nxa-stage b, .nxa-stage__s { grid-column: 2; margin: 0; }
}
@keyframes nxa-packet-v { from { transform: translateY(-100%); } to { transform: translateY(460%); } }

/* ==========================================================================
   07 — Evaluation-first timeline
   ========================================================================== */
.nxa-time {
  position: relative;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--nx-line-strong);
}
.nxa-time__step {
  position: relative; padding-block: 2.2rem 1.6rem; padding-inline: 0 clamp(.8rem, .4rem + .8vw, 1.4rem);
}
.nxa-time__step.is-eval + .nxa-time__step { padding-inline-start: 1.3rem; }
.nxa-time__step.is-eval + .nxa-time__step::before { inset-inline-start: 1.3rem; }
/* the loop: every step after the gate re-runs the evaluation set */
.nxa-time { padding-bottom: 4rem; }
.nxa-time::before {
  content: ''; position: absolute; left: calc(100% / 3 + 1.2rem + 7px); right: 1.4rem; bottom: 1.3rem; height: 1.5rem;
  border: 1px dashed var(--nx-line-strong); border-top: 0; border-radius: 0 0 14px 14px;
}
.nxa-time::after {
  content: '\21BA\00A0\00A0 evaluation set re-run on every change';
  position: absolute; left: calc(100% / 3 + 1.2rem + 7px); right: 1.4rem; bottom: .7rem;
  width: max-content; margin-inline: auto; padding-inline: .8rem; background: var(--nx-bg-soft);
  font-family: var(--nx-font-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--nx-blue-600);
}
.nxa-time__step::before {
  content: ''; position: absolute; top: -6px; inset-inline-start: 0;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--nx-bg-soft); border: 2px solid var(--nx-blue-600);
}
.nxa-time__n { display: block; font-family: var(--nx-font-mono); font-size: .7rem; letter-spacing: .14em; color: var(--nx-muted); margin-bottom: .8rem; }
.nxa-time__step h3 { margin: 0 0 .55rem; font-size: clamp(1.08rem, 1rem + .3vw, 1.25rem); letter-spacing: -.02em; line-height: 1.25; }
.nxa-time__step p { margin: 0; font-size: .92rem; line-height: 1.6; color: var(--nx-body); }
.nxa-time__step.is-eval {
  margin-top: -1px; padding-inline-start: 1.2rem; border-radius: 0 0 var(--nx-radius) var(--nx-radius);
  background: var(--nx-surface); box-shadow: 0 30px 60px -40px rgba(1, 17, 47, .45);
  border-top: 2px solid transparent;
  border-image: var(--nx-grad) 1;
  border-image-slice: 1 0 0 0;
}
.nxa-time__step.is-eval::before {
  inset-inline-start: 1.2rem; top: -8px; width: 15px; height: 15px; border: 0;
  background: var(--nx-grad); box-shadow: 0 0 0 5px rgba(0, 140, 254, .14);
}
.nxa-time__step.is-eval .nxa-time__n { color: var(--nx-blue-600); }
.nxa-time__step.is-eval .nxa-time__n::after {
  content: ' · eval gate'; letter-spacing: .1em; text-transform: uppercase;
}
@media (max-width: 1100px) {
  .nxa-time { grid-template-columns: 1fr; border-top: 0; border-inline-start: 1px solid var(--nx-line-strong); padding-inline-start: 0; }
  .nxa-time__step, [dir="rtl"] .nxa-time__step { padding: 0 0 2rem 2rem; }
  [dir="rtl"] .nxa-time__step { padding: 0 2rem 2rem 0; }
  .nxa-time__step::before { top: .15rem; inset-inline-start: -6px; }
  .nxa-time__step.is-eval { padding: 1.3rem 1.4rem 1.4rem 2rem; margin: 0 0 2rem; border-radius: 0 var(--nx-radius) var(--nx-radius) 0; border-image-slice: 0 0 0 1; border-top: 0; border-inline-start: 2px solid transparent; margin-inline-start: -1px; }
  .nxa-time__step.is-eval::before { top: 1.4rem; inset-inline-start: -8px; }
  .nxa-time__step:last-child { padding-bottom: 0; }
  .nxa-time { padding-bottom: 0; }
  .nxa-time::before, .nxa-time::after { display: none; }
  .nxa-time__step.is-eval + .nxa-time__step { padding-inline-start: 2rem; }
  .nxa-time__step.is-eval + .nxa-time__step::before { inset-inline-start: -6px; }
  .nxa-time__step h3, .nxa-time__step p { max-width: 40rem; }
}

/* ==========================================================================
   08 — Guardrails
   ========================================================================== */
.nxa-guards { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 1rem + 5vw, 6.5rem); align-items: start; }
.nxa-guards__copy { position: sticky; top: 7rem; display: grid; gap: 1.3rem; }
.nxa-guards__copy .nx-lead { margin: 0; }
.nxa-guards__list { display: grid; }
.nxa-guard {
  display: grid; grid-template-columns: 3rem minmax(0, 1fr); column-gap: 1.3rem; row-gap: .35rem;
  padding-block: clamp(1.3rem, 1rem + 1vw, 1.9rem);
  border-top: 1px solid var(--nx-hair-dark);
}
.nxa-guard:last-child { border-bottom: 1px solid var(--nx-hair-dark); }
.nxa-guard__ico {
  grid-row: 1 / span 2;
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 12px;
  background: rgba(0, 219, 178, .07); border: 1px solid rgba(0, 219, 178, .3); color: var(--nx-teal);
}
.nxa-guard__ico svg { width: 20px; height: 20px; }
.nxa-guard__n { font-family: var(--nx-font-mono); font-size: .66rem; letter-spacing: .16em; color: var(--nx-on-dark-mut); }
.nxa-guard h3 { margin: 0 0 .4rem; font-size: clamp(1.12rem, 1rem + .45vw, 1.35rem); }
.nxa-guard p { margin: 0; line-height: 1.6; }
@media (max-width: 900px) {
  .nxa-guards { grid-template-columns: 1fr; }
  .nxa-guards__copy { position: static; }
}

/* ==========================================================================
   09 — FAQ / 10 — Related
   ========================================================================== */
.nxa-faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 1rem + 4vw, 5.5rem); align-items: start; }
.nxa-faq__head { position: sticky; top: 7rem; }
.nxa-faq__head h2 { font-size: clamp(2rem, 1.3rem + 2.2vw, 3.2rem); }
@media (max-width: 900px) { .nxa-faq { grid-template-columns: 1fr; } .nxa-faq__head { position: static; } }

.nxa-rel-sec .nx-section-top { align-items: end; }
.nxa-rel-sec .nxa-head { margin-bottom: 0; }
.nxa-rels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(1.2rem, .8rem + 1.6vw, 2.6rem); }
.nxa-rel {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; row-gap: .35rem; column-gap: 1rem;
  padding: 1.4rem 0; border-top: 1px solid var(--nx-line-strong); color: inherit;
}
.nxa-rel__k { font-family: var(--nx-font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--nx-blue-600); }
.nxa-rel__t { grid-column: 1; font-family: var(--nx-font-display); font-weight: 600; font-size: 1.22rem; letter-spacing: -.02em; color: var(--nx-text); transition: color .3s; }
.nxa-rel__d { grid-column: 1; font-size: .9rem; color: var(--nx-body); line-height: 1.5; }
.nxa-rel__a {
  grid-column: 2; grid-row: 1 / span 3; align-self: center;
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  border: 1px solid var(--nx-line-strong); color: var(--nx-navy);
  transition: background .35s var(--nx-ease), color .35s var(--nx-ease), transform .35s var(--nx-ease), border-color .35s;
}
[dir="rtl"] .nxa-rel__a svg, [dir="rtl"] .nxa-idx__a svg, [dir="rtl"] .nxa-sys__wire--h svg { transform: scaleX(-1); }
.nxa-rel:hover .nxa-rel__t { color: var(--nx-blue-600); }
.nxa-rel:hover .nxa-rel__a { background: var(--nx-navy); border-color: var(--nx-navy); color: #fff; transform: translateX(3px); }
[dir="rtl"] .nxa-rel:hover .nxa-rel__a { transform: translateX(-3px); }
@media (max-width: 1024px) { .nxa-rels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .nxa-rels { grid-template-columns: 1fr; } .nxa-rel-sec .nx-section-top { flex-direction: column; align-items: flex-start; } }

/* ==========================================================================
   Hub — hero system diagram
   ========================================================================== */
.nxa-hub-hero .nx-display { font-size: clamp(2.6rem, .9rem + 4.4vw, 5.6rem); }
.nxa-sys { display: grid; gap: 0; }
.nxa-sys__row { display: grid; gap: .5rem; }
.nxa-sys__wire {
  position: relative; justify-self: center; width: 1px; height: 1.5rem; overflow: hidden;
  background: linear-gradient(180deg, rgba(0, 140, 254, .6), rgba(0, 219, 178, .6));
}
.nxa-sys__wire::after {
  content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, #fff, transparent);
  animation: nxa-drop 2.2s var(--nx-ease-in-out) infinite;
}
@keyframes nxa-drop { from { transform: translateY(-100%); } to { transform: translateY(100%); } }
.nxa-sys__core {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .45rem;
  padding: .55rem; border-radius: 14px;
  border: 1px solid rgba(0, 140, 254, .3); background: linear-gradient(135deg, rgba(0, 140, 254, .1), rgba(0, 219, 178, .05));
}
.nxa-sys__cell {
  display: grid; gap: .3rem; padding: .7rem .6rem; border-radius: 10px;
  background: rgba(3, 12, 30, .6); border: 1px solid rgba(255, 255, 255, .08);
}
.nxa-sys__cell b { color: #fff; font-size: .84rem; font-weight: 600; letter-spacing: -.01em; }
.nxa-sys__cell span { font-family: var(--nx-font-mono); font-size: .56rem; letter-spacing: .08em; text-transform: uppercase; color: var(--nx-on-dark-mut); }
.nxa-sys__cell.is-hot { border-color: rgba(0, 219, 178, .45); box-shadow: inset 0 0 0 1px rgba(0, 219, 178, .15); }
.nxa-sys__cell.is-hot b { color: var(--nx-teal); }
.nxa-sys__guard {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); overflow: hidden;
}
.nxa-sys__guard span {
  padding: .45rem .3rem; text-align: center;
  font-family: var(--nx-font-mono); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: #CFE0F5;
}
.nxa-sys__guard span + span { border-inline-start: 1px solid rgba(255, 255, 255, .12); }
.nxa-sys__head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .1rem; }
@media (max-width: 560px) {
  .nxa-sys__core { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nxa-sys__guard { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 12px; }
  .nxa-sys__guard span:nth-child(3) { border-inline-start: 0; }
  .nxa-sys__guard span:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); }
}

/* ---------- Hub — capability map, raised ---------- */
.nxa-map-sec .nx-map__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.nxa-map-sec .nx-map__btn { grid-template-columns: 1.7rem 34px minmax(0, 1fr) auto; text-align: start; }
.nxa-map__n { font-family: var(--nx-font-mono); font-size: .64rem; letter-spacing: .1em; color: rgba(255, 255, 255, .4); transition: color .3s; }
.nx-map__btn.is-active .nxa-map__n { color: var(--nx-teal); }
.nxa-map-sec .nx-map__btn.is-active { box-shadow: inset 3px 0 0 var(--nx-teal); }
[dir="rtl"] .nxa-map-sec .nx-map__btn.is-active { box-shadow: inset -3px 0 0 var(--nx-teal); }
.nxa-map-sec .nx-map__panel {
  background: var(--nxa-glass); border-color: rgba(255, 255, 255, .14);
  box-shadow: 0 60px 120px -60px rgba(0, 0, 0, .9);
}
.nxa-map-sec .nx-map__view { padding: 0; }
.nxa-map__bar {
  display: flex; align-items: center; gap: .7rem; padding: .8rem 1.3rem;
  border-bottom: 1px solid var(--nx-hair-dark);
  font-family: var(--nx-font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--nx-on-dark-mut);
}
.nxa-map__bar span:last-child { margin-inline-start: auto; color: var(--nx-teal); }
.nxa-map__body { padding: clamp(1.4rem, 1.1rem + 1.2vw, 2.2rem); }
.nxa-map__body .nxa-map__h {
  margin: 0 0 .7rem; color: #fff; font-family: var(--nx-font-display); font-weight: 600; line-height: 1.1;
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.3rem); letter-spacing: -.03em;
}
.nxa-map__body > p:not(.nxa-map__h):not(.nx-map__value) { color: var(--nx-on-dark-mut); font-size: .96rem; }
.nxa-map-sec .nx-map__meta { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.nxa-map__go { margin-top: 1.3rem; }
.nxa-mini {
  position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .4rem;
  margin: 1.5rem 0 .4rem; padding-top: 1.3rem;
}
.nxa-mini::before {
  content: ''; position: absolute; top: .3rem; inset-inline: calc(100% / 12);
  height: 1px; background: linear-gradient(90deg, rgba(0, 140, 254, .6), rgba(0, 219, 178, .6));
}
.nxa-mini li { position: relative; display: grid; gap: .2rem; justify-items: center; text-align: center; }
.nxa-mini li::before {
  content: ''; position: absolute; top: calc(-1rem - 2px); left: 50%; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%;
  background: var(--nx-navy-deep); border: 1.5px solid var(--nx-blue);
}
.nxa-mini li.is-model::before { background: var(--nx-teal); border-color: var(--nx-teal); box-shadow: 0 0 0 4px rgba(0, 219, 178, .18); }
.nxa-mini b { color: #fff; font-size: .78rem; font-weight: 600; line-height: 1.25; }
.nxa-mini span { font-family: var(--nx-font-mono); font-size: .56rem; letter-spacing: .06em; text-transform: uppercase; color: var(--nx-on-dark-mut); }
.nxa-mini li.is-model b { color: var(--nx-teal); }
@media (max-width: 1180px) { .nxa-map-sec .nx-map__meta { grid-template-columns: 1fr 1fr; } }
@media (max-width: 992px) {
  .nxa-map-sec .nx-map__grid { grid-template-columns: 1fr; }
  .nxa-map-sec .nx-map__panel { position: relative; top: 0; }
}
@media (max-width: 640px) {
  .nxa-map-sec .nx-map__meta { grid-template-columns: 1fr; }
  .nxa-mini { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1.6rem; }
  .nxa-mini::before { display: none; }
}

/* ---------- Hub — editorial index ---------- */
.nxa-idx { border-bottom: 1px solid var(--nx-hair-dark); }
.nxa-idx__group {
  display: grid; grid-template-columns: minmax(12rem, .32fr) minmax(0, 1fr);
  gap: clamp(1rem, .6rem + 2vw, 3rem); padding-block: clamp(1.4rem, 1rem + 1vw, 2rem);
  border-top: 1px solid var(--nx-hair-dark);
}
.nxa-idx__head { display: flex; align-items: baseline; gap: .8rem; padding-top: 1rem; }
.nxa-idx__k { font-family: var(--nx-font-mono); font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--nx-teal); }
.nxa-idx__c { font-family: var(--nx-font-mono); font-size: .66rem; color: var(--nx-on-dark-mut); }
.nxa-idx__rows { display: grid; }
.nxa-idx__row {
  position: relative;
  display: grid; grid-template-columns: 2.6rem minmax(12rem, .8fr) minmax(0, 1.2fr) 2.4rem; gap: 1.2rem; align-items: center;
  padding: 1rem .8rem; border-radius: 12px; color: inherit;
  transition: background .35s var(--nx-ease);
}
.nxa-idx__row + .nxa-idx__row { box-shadow: 0 -1px 0 rgba(255, 255, 255, .06); }
.nxa-idx__n { font-family: var(--nx-font-mono); font-size: .68rem; letter-spacing: .1em; color: var(--nx-on-dark-mut); }
.nxa-idx__t { font-family: var(--nx-font-display); font-weight: 600; font-size: clamp(1.2rem, 1.05rem + .6vw, 1.6rem); letter-spacing: -.025em; color: #fff; transition: color .3s; }
.nxa-idx__d { font-size: .92rem; color: var(--nx-on-dark-mut); line-height: 1.5; }
.nxa-idx__a {
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16); color: #fff;
  transition: background .35s var(--nx-ease), color .35s var(--nx-ease), transform .35s var(--nx-ease), border-color .35s;
}
.nxa-idx__row:hover { background: rgba(255, 255, 255, .04); }
.nxa-idx__row:hover .nxa-idx__t { color: var(--nx-teal); }
.nxa-idx__row:hover .nxa-idx__a { background: var(--nx-grad); border-color: transparent; color: #04121F; transform: translateX(3px); }
[dir="rtl"] .nxa-idx__row:hover .nxa-idx__a { transform: translateX(-3px); }
@media (max-width: 900px) {
  .nxa-idx__group { grid-template-columns: 1fr; gap: .4rem; }
  .nxa-idx__head { padding-top: 0; }
  .nxa-idx__row { grid-template-columns: 2.2rem minmax(0, 1fr) 2.4rem; row-gap: .25rem; padding-inline: .2rem; }
  .nxa-idx__t { grid-column: 2; }
  .nxa-idx__d { grid-column: 2; grid-row: 2; }
  .nxa-idx__a { grid-column: 3; grid-row: 1 / span 2; }
}

/* ---------- Hub — evaluation-first rail (beside the sticky story) ---------- */
.nxa-rail { position: relative; display: grid; border-inline-start: 1px solid var(--nx-line-strong); }
.nxa-rail li { position: relative; padding: 0 0 clamp(1.6rem, 1.2rem + 1vw, 2.4rem) 2.2rem; }
[dir="rtl"] .nxa-rail li { padding: 0 2.2rem clamp(1.6rem, 1.2rem + 1vw, 2.4rem) 0; }
.nxa-rail li:last-child { padding-bottom: 0; }
.nxa-rail li::before {
  content: ''; position: absolute; top: .2rem; inset-inline-start: -6px;
  width: 11px; height: 11px; border-radius: 50%; background: var(--nx-bg-soft); border: 2px solid var(--nx-blue-600);
}
.nxa-rail .nxa-time__n { margin-bottom: .45rem; }
.nxa-rail h3 { margin: 0 0 .45rem; font-size: clamp(1.15rem, 1.02rem + .45vw, 1.4rem); letter-spacing: -.02em; }
.nxa-rail p { margin: 0; color: var(--nx-body); line-height: 1.6; max-width: 38rem; }
.nxa-rail li.is-eval {
  margin: 0 0 clamp(1.6rem, 1.2rem + 1vw, 2.4rem); margin-inline-start: -1px; padding: 1.4rem 1.5rem 1.5rem 2.2rem;
  border-inline-start: 2px solid var(--nx-blue-600);
  border-radius: 0 var(--nx-radius) var(--nx-radius) 0;
  background: var(--nx-surface); box-shadow: 0 30px 60px -40px rgba(1, 17, 47, .45);
}
[dir="rtl"] .nxa-rail li.is-eval { border-radius: var(--nx-radius) 0 0 var(--nx-radius); padding: 1.4rem 2.2rem 1.5rem 1.5rem; }
.nxa-rail li.is-eval::before { top: 1.5rem; inset-inline-start: -8px; width: 15px; height: 15px; border: 0; background: var(--nx-grad); box-shadow: 0 0 0 5px rgba(0, 140, 254, .14); }
.nxa-rail li.is-eval .nxa-time__n { color: var(--nx-blue-600); }
.nxa-rail li.is-eval .nxa-time__n::after { content: ' · eval gate'; text-transform: uppercase; }

/* ---------- Hub — confidence routing diagram ---------- */
.nxa-route {
  position: relative; margin: 0; padding: clamp(1.3rem, 1rem + 1.2vw, 2rem);
  border-radius: var(--nx-radius-lg); border: 1px solid rgba(255, 255, 255, .13); background: var(--nxa-glass);
  box-shadow: 0 60px 120px -60px rgba(0, 0, 0, .9);
  display: grid; gap: 0; color: var(--nxa-ink);
}
.nxa-route__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; }
.nxa-route__node {
  display: grid; gap: .3rem; padding: .9rem 1rem; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04);
}
.nxa-route__node b { color: #fff; font-weight: 600; font-size: .98rem; }
.nxa-route__node small { font-size: .82rem; color: var(--nx-on-dark-mut); }
.nxa-route__gate {
  justify-self: center; position: relative; margin-block: 1.4rem;
  padding: .55rem 1.1rem; border-radius: 999px;
  background: var(--nx-grad); color: #04121F;
  font-family: var(--nx-font-mono); font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.nxa-route__gate::before, .nxa-route__gate::after {
  content: ''; position: absolute; left: 50%; width: 1px; height: 1.4rem; background: rgba(255, 255, 255, .25);
}
.nxa-route__gate::before { bottom: 100%; }
.nxa-route__gate::after { top: 100%; }
.nxa-route__lanes { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; position: relative; padding-top: 1.4rem; }
.nxa-route__lanes::before {
  content: ''; position: absolute; top: 0; left: 25%; right: 25%; height: 1.4rem;
  border: 1px solid rgba(255, 255, 255, .25); border-bottom: 0; border-radius: 10px 10px 0 0;
}
.nxa-route__node.is-auto { border-color: rgba(0, 219, 178, .4); }
.nxa-route__node.is-auto .nxa-k { color: var(--nx-teal); }
.nxa-route__node.is-human { border-color: rgba(255, 181, 71, .4); }
.nxa-route__node.is-human .nxa-k { color: var(--nxa-amber); }
.nxa-route__log {
  margin-top: 1.2rem; padding-top: 1rem; border-top: 1px dashed rgba(255, 255, 255, .14);
  display: flex; align-items: center; gap: .6rem;
}
.nxa-route__log i { flex: 1; height: 6px; border-radius: 6px; background: repeating-linear-gradient(90deg, rgba(0, 219, 178, .5) 0 10%, transparent 10% 12.5%); opacity: .7; }
@media (max-width: 480px) { .nxa-route__lanes { grid-template-columns: 1fr; } .nxa-route__lanes::before { left: 50%; right: auto; width: 1px; border: 0; background: rgba(255, 255, 255, .25); border-radius: 0; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .nxa-console__dot::after, .nxa-caret, .nxa-wave__head, .nxa-wave--live i, .nxa-tl__play span,
  .nxa-run li.is-live > i, .nxa-cam::after, .nxa-cam__rec i, .nxa-hub__core::before,
  .nxa-pipe__track i, .nxa-sys__wire::after { animation: none !important; }
  .nxa-cam::after, .nxa-pipe__track i, .nxa-sys__wire::after, .nxa-wave__head, .nxa-tl__play { display: none; }
  .nxa-cap, .nxa-layer, .nxa-sector::before, .nxa-rel__a, .nxa-idx__a { transition: none; }
}

/* ---------- Arabic hub: index rows carry their visible "details" label ---------- */
.nxa-idx__row--more { grid-template-columns: 2.6rem minmax(12rem, .8fr) minmax(0, 1.2fr) auto; }
.nxa-idx__more {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .86rem; font-weight: 600; color: var(--nx-teal);
}
@media (max-width: 900px) {
  .nxa-idx__row--more { grid-template-columns: 2.2rem minmax(0, 1fr) auto; }
  .nxa-idx__row--more .nxa-idx__more { grid-column: 3; grid-row: 1 / span 2; }
  .nxa-idx__more { font-size: 0; gap: 0; }
}
/* arrows point along the reading direction */
[dir="rtl"] .nxa-hub-hero .nx-btn svg,
[dir="rtl"] .nx-cta .nx-btn svg { transform: scaleX(-1); }
/* Arabic letters must join: no tracking, no forced mono, no case transform on
   Arabic labels (the Latin mono treatment breaks the script apart). */
[dir="rtl"] .nxa-k, [dir="rtl"] .nxa-chip, [dir="rtl"] .nxa-console__title, [dir="rtl"] .nxa-console__tag,
[dir="rtl"] .nxa-sys__cell span, [dir="rtl"] .nxa-sys__guard span, [dir="rtl"] .nxa-idx__k,
[dir="rtl"] .nx-chapter__t, [dir="rtl"] .nxa-console__bar,
[dir="rtl"] .nxa-hub-hero .nx-crumbs, [dir="rtl"] .nxa-hub-hero .nx-eyebrow {
  font-family: "Segoe UI", Tahoma, "Noto Naskh Arabic", Arial, sans-serif; letter-spacing: 0; text-transform: none;
}
[dir="rtl"] .nxa-k, [dir="rtl"] .nxa-sys__cell span, [dir="rtl"] .nxa-sys__guard span { font-size: .72rem; }
[dir="rtl"] .nxa-chip, [dir="rtl"] .nxa-console__tag { font-size: .7rem; }
[dir="rtl"] .nxa-console__title { font-size: .8rem; }
[dir="rtl"] .nxa-idx__k { font-size: .9rem; font-weight: 600; }
[dir="rtl"] .nx-chapter__t { font-size: .85rem; }

/* ==========================================================================
   Clarity pass (launch): obvious section boundaries, header-first sections,
   capped type, calm motion. Overrides the compositions above.
   ========================================================================== */
.nxa-sec { padding-block: clamp(4rem, 2.8rem + 4.5vw, 7rem); }
/* every boundary gets a hairline, whatever the grounds */
.nxa-sec + .nxa-sec, .nx-strip + .nxa-sec { border-top: 1px solid var(--nx-line-strong); }
.nx-section--dark.nxa-sec, .nx-section--deep.nxa-sec,
.nxa-sec + .nx-section--dark, .nxa-sec + .nx-section--deep { border-top-color: var(--nx-hair-dark); }
.nxa-sec + .nx-cta { border-top: 1px solid var(--nx-hair-dark); }

/* header block: label → H2 → subtitle, aligned to the container start */
.nxa-head {
  display: grid; justify-items: start; gap: 1rem; max-width: none;
  margin-bottom: clamp(2.2rem, 1.6rem + 2vw, 3.4rem);
}
.nxa-head .nx-chapter { width: 100%; margin-bottom: .5rem; }
.nxa-head h2, .nxa-sec h2 { font-size: clamp(1.9rem, 1.25rem + 2.1vw, 3.25rem); line-height: 1.06; max-width: 24ch; margin: 0; }
.nxa-head .nx-lead { max-width: 68ch; margin: 0; }
.nxa-head .nx-btn-row { margin-top: .4rem; }
.nx-cta h2 { font-size: clamp(2rem, 1.3rem + 2.2vw, 3.25rem); }

/* type caps */
.nxa-hero .nx-display, .nxa-hub-hero .nx-display { font-size: clamp(2.3rem, .9rem + 3.3vw, 4.25rem); }
@media (max-width: 560px) { .nxa-hero .nx-display, .nxa-hub-hero .nx-display { font-size: clamp(2rem, 7vw + .2rem, 2.5rem); } }
.nxa-sector h3 { font-size: clamp(1.15rem, 1rem + .5vw, 1.45rem); }
.nxa-cap--1 h3 { font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); }
.nxa-map__body .nxa-map__h { font-size: clamp(1.35rem, 1.15rem + .6vw, 1.6rem); }
.nxa-points p, .nxa-sector p, .nxa-layer p, .nxa-guard p, .nxa-spoke p { max-width: 68ch; }

/* hero: the console supports the headline, it does not compete with it */
.nxa-hero__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); }
.nxa-hero__visual { max-width: 560px; }
.nxa-console { font-size: .86rem; box-shadow: 0 40px 80px -50px rgba(0, 0, 0, .85); }
.nxa-console::before { opacity: .45; }
@media (max-width: 992px) { .nxa-hero__grid { grid-template-columns: 1fr; } }

/* 01 overview: photograph | numbered principles, under the header */
.nxa-what { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; }
.nxa-what__fig { margin: 0; position: sticky; top: 7rem; }
@media (max-width: 900px) { .nxa-what__fig { position: static; } }

/* 03 architecture: stack | layers, no staggered offsets */
.nxa-arch { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); }
.nxa-arch__stack-box { display: grid; gap: .9rem; align-content: start; }
.nxa-arch__stack-h { margin: 0; }
.nxa-layers .nxa-layer:nth-child(n) { margin-inline: 0; }
@media (max-width: 900px) { .nxa-arch { grid-template-columns: 1fr; } }

/* 04 integration: diagram under the header */
.nxa-hub { max-width: 1120px; }

/* 07 security: 2 × 2 ledger */
.nxa-guards__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 1rem + 3vw, 4rem); }
.nxa-guards__list .nxa-guard:nth-last-child(-n+2) { border-bottom: 1px solid var(--nx-hair-dark); }
@media (max-width: 900px) {
  .nxa-guards__list { grid-template-columns: 1fr; }
  .nxa-guards__list .nxa-guard:nth-last-child(2) { border-bottom: 0; }
}

/* 09 FAQ / 10 related */
.nxa-faq { max-width: 960px; }
.nxa-rels__all { margin-top: 2rem; }

/* hub: light editorial index */
.nxa-idx--light { border-bottom-color: var(--nx-line-strong); }
.nxa-idx--light .nxa-idx__group { border-top-color: var(--nx-line-strong); }
.nxa-idx--light .nxa-idx__k { color: var(--nx-blue-600); }
.nxa-idx--light .nxa-idx__c, .nxa-idx--light .nxa-idx__n { color: var(--nx-muted); }
.nxa-idx--light .nxa-idx__t { color: var(--nx-text); }
.nxa-idx--light .nxa-idx__d { color: var(--nx-body); }
.nxa-idx--light .nxa-idx__row + .nxa-idx__row { box-shadow: 0 -1px 0 var(--nx-line); }
.nxa-idx--light .nxa-idx__a { border-color: var(--nx-line-strong); color: var(--nx-navy); }
.nxa-idx--light .nxa-idx__row:hover { background: var(--nx-surface); }
.nxa-idx--light .nxa-idx__row:hover .nxa-idx__t { color: var(--nx-blue-600); }
.nxa-idx--light .nxa-idx__row:hover .nxa-idx__a { background: var(--nx-navy); color: #fff; }
.nxa-idx--light .nxa-idx__more { color: var(--nx-blue-600); }

/* calm motion: only the one-time staged entrance remains */
.nxa-console__dot::after, .nxa-caret, .nxa-wave__head, .nxa-wave--live i, .nxa-tl__play span,
.nxa-run li.is-live > i, .nxa-cam::after, .nxa-cam__rec i, .nxa-hub__core::before,
.nxa-pipe__track i, .nxa-sys__wire::after { animation: none !important; }
.nxa-cam::after, .nxa-sys__wire::after, .nxa-console__dot::after, .nxa-caret { display: none; }
.nxa-wave--live i { transform: scaleY(var(--h, .5)); }
.nxa-run li.is-live > i { border-top-color: var(--nx-teal); }
.nxa-stage.is-model .nxa-stage__ico { box-shadow: 0 0 0 5px rgba(0, 140, 254, .12); }
.nxa-console__dot { box-shadow: none; }
.nx-acc.nxa-faq { display: block; }
@media (max-width: 900px) { .nxa-what { grid-template-columns: 1fr; } }
