/* ==========================================================================
   NEURIS Platform — design system
   Single-hue system anchored on #3162AE (HSL 216.5 / 56.1% / 43.7%)
   Every tint below keeps hue 216.5. Neutrals stay slate, untinted.
   ========================================================================== */

:root {
  /* --- the ramp ------------------------------------------------------- */
  --n-50:  #F0F5FD;
  --n-100: #E0E9F8;
  --n-200: #C3D3EC;
  --n-300: #9FB6DB;
  --n-400: #6E90C4;
  --n-500: #3162AE;   /* the theme */
  --n-600: #1C4687;
  --n-700: #123468;
  --n-800: #0C254E;
  --n-900: #071B39;

  /* --- neutrals (slate, deliberately untinted) ------------------------- */
  --ink-h:    #0F172A;   /* headings           15.3:1 on white */
  --ink-b:    #334155;   /* body                            */
  --ink-m:    #475569;   /* secondary                       */
  --ink-c:    #64748B;   /* caption                         */
  --ink-f:    #94A3B8;   /* faint / on-dark sub             */
  --line:     #C3D3EC;   /* border = ramp 200, not gray     */
  --line-soft:#E8EEF9;
  --surface:  #FFFFFF;
  --surface-2:#F8FAFC;
  --surface-3:#F0F5FD;

  /* --- semantic: DATA ONLY, never decorative --------------------------- */
  --alarm: #DC2626;
  --warn:  #F59E0B;
  --ok:    #10B981;
  --ok-bg: #F0FDF9;
  --ok-tx: #0F6E56;

  /* --- type ----------------------------------------------------------- */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
          "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --mono: "SF Mono", "Cascadia Mono", "Roboto Mono", Consolas, monospace;

  /* --- rhythm --------------------------------------------------------- */
  --r-sm: 5px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --maxw: 1160px;
  --gutter: 24px;
  --nav-h: 64px;
}

/* ==========================================================================
   base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-b);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  color: var(--ink-h);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0;
}

h1 { font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -0.025em; }
h2 { font-size: clamp(23px, 2.9vw, 31px); letter-spacing: -0.02em; }
h3 { font-size: 18px; }
h4 { font-size: 15px; }

p { margin: 0; }
a { color: var(--n-500); text-decoration: none; }
a:hover { color: var(--n-600); }

ul { margin: 0; padding: 0; list-style: none; }

img { max-width: 100%; display: block; }

/* Visually hidden, still in the accessibility tree and still in the HTML source.
   Used for the hero summary paragraph: the h1 is a slogan with no searchable nouns,
   so this carries the actual "what is NEURIS" answer for crawlers, AI answer engines
   and screen-reader users, without adding a visible wall of text to the hero.
   Never apply display:none or visibility:hidden -- that removes it from both. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

address { font-style: normal; }

:focus-visible {
  outline: 2px solid var(--n-500);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ==========================================================================
   layout primitives
   ========================================================================== */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { padding-block: clamp(56px, 7vw, 96px); }

.sec-head { max-width: 660px; margin-bottom: 40px; }
.sec-head p { margin-top: 14px; color: var(--ink-m); font-size: 16px; }

.sec-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--n-500);
  margin-bottom: 14px;
}

.rule { border: 0; border-top: 1px solid var(--line-soft); margin: 0; }

.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* five layers -- auto-fit keeps the cards even rather than leaving a short row */
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* ==========================================================================
   buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  padding: 13px 22px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
  white-space: nowrap;
}

.btn-primary { background: var(--n-500); color: #fff; }
.btn-primary:hover { background: var(--n-600); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--n-700);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--n-400); color: var(--n-600); }

.btn-on-dark {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.28);
}
.btn-on-dark:hover { border-color: rgba(255,255,255,.6); color: #fff; }

.btn-sm { padding: 9px 16px; font-size: 13px; }

.btn .arw { font-size: 12px; opacity: .7; }

/* ==========================================================================
   nav
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.nav-in {
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--nav-h);
}

.nav-brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.nav-brand img { height: 20px; width: auto; display: block; }

/* Trademark marks — EfficientX lockup and the NEURIS wordmark are both registered.
   Superscript, non-selectable, and inherits colour so it works on light and dark.
   `user-select: none` stops it being dragged off into clipboard/selection noise. */
.tm {
  font-size: .55em;
  font-weight: 600;
  vertical-align: super;
  line-height: 0;
  letter-spacing: 0;
  margin-left: .06em;
  user-select: none;
  -webkit-user-select: none;
}

/* the mark on the wordmark needs a touch more lift than the default */
.nav-prod .tm { font-size: .58em; }
.hero-prod .tm { font-size: .5em; }

/* lockup wrapper — lets the ™ sit at the top-right of the mark itself rather than
   being laid out as a flex sibling (which pushed it vertically centred) */
.logo-lockup {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}
.logo-lockup img { display: block; }
.logo-lockup > .tm {
  position: absolute;
  top: 0;
  left: 100%;
  margin: 0 0 0 1px;
  font-size: 10px;
  line-height: 1;
}

/* hero product wordmark — the NEURIS name beside the EfficientX lockup */
.hero-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}
.hero-lockup .hero-logo { margin-bottom: 0; }
.hero-prod {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .04em;
  color: #fff;
}
.hero-lockup .nav-sep { background: rgba(255,255,255,.28); height: 26px; }

/* hero lockup — sits above the eyebrow, needs more presence than the nav mark */
.hero-logo {
  height: 28px;
  width: auto;
  margin-bottom: 26px;
  display: block;
}
/* inside .hero-lockup the margin moves to the wrapper */
.hero-lockup .hero-logo { margin-bottom: 0; }

.nav-sep {
  width: 1px; height: 20px;
  background: var(--n-200);
  margin-inline: 3px;
}

.nav-prod {
  font-size: 14px;
  font-weight: 500;
  color: var(--n-600);
  letter-spacing: .01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav-links a {
  font-size: 14px;
  color: var(--ink-m);
  padding: 8px 11px;
  border-radius: var(--r-sm);
  transition: color .14s, background-color .14s;
}
.nav-links a:hover { color: var(--n-600); background: var(--n-50); }

.nav-cta { margin-left: 10px; flex-shrink: 0; }

.nav-burger {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 8px 10px;
  cursor: pointer;
  color: var(--ink-m);
}

/* mobile drawer */
.nav-drawer {
  display: none;
  border-top: 1px solid var(--line-soft);
  background: #fff;
  padding: 12px var(--gutter) 20px;
}
.nav-drawer.open { display: block; }
.nav-drawer a {
  display: block;
  padding: 11px 0;
  font-size: 15px;
  color: var(--ink-b);
  border-bottom: 1px solid var(--line-soft);
}
.nav-drawer .btn { margin-top: 16px; width: 100%; justify-content: center; }

/* ==========================================================================
   hero
   ========================================================================== */

.hero {
  background: var(--n-900);
  color: #fff;
  padding-block: clamp(52px, 7vw, 88px);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -55% 45%;
  height: 560px;
  background: radial-gradient(circle at 50% 50%, rgba(49,98,174,.30), transparent 68%);
  pointer-events: none;
}

.hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--n-300);
  margin-bottom: 20px;
}
.hero-eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--n-400);
}

.hero h1 { color: #fff; }

.hero-sub {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--n-300);
  max-width: 470px;
}

.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

/* Four facts: 4 / 43 / 19 / Multi-language. The fourth is a word rather than a
   numeral, so it cannot share one row with the others at this column width --
   a 2x2 grid reads as deliberate where a wrapped flex row reads as broken. */
.hero-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 24px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.13);
}
.hero-fact-n {
  font-size: 22px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
/* the word fact reads a step smaller so it balances the numerals */
.hero-fact-n.is-word { font-size: 19px; letter-spacing: -0.01em; }
.hero-fact-l {
  font-size: 12px;
  color: var(--n-300);
  margin-top: 2px;
}

/* --- the stack diagram (hero right) --- */
.stack {
  background: var(--n-800);
  border: 1px solid rgba(159,182,219,.18);
  border-radius: var(--r-lg);
  padding: 22px;
}

.stack-cap {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--n-300);
  margin-bottom: 14px;
}

.stack-up {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--n-300);
  padding: 9px 12px;
  border: 1px dashed rgba(159,182,219,.34);
  border-radius: var(--r-sm);
  text-align: center;
  letter-spacing: .02em;
}

.stack-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--n-400);
  font-size: 13px;
  line-height: 1;
  padding: 5px 0;
}

.stack-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  color: #fff;
  border: 1px solid transparent;
  transition: border-color .16s, transform .16s;
}
.stack-row:hover { transform: translateX(2px); }
.stack-row strong { font-size: 14px; font-weight: 500; display: block; }
.stack-row span { font-size: 11.5px; opacity: .78; }

/* Neuris AI sits at the TOP of the stack. It reads the other three layers rather
   than sitting beneath them, so it gets the emerald accent and first position. */
.sr-ai {
  background: #0E7C6B;
  border-color: rgba(110,231,183,.5);
}
.sr-ai:hover { border-color: #6EE7B7; }

.sr-1 { background: var(--n-500); }
.sr-1:hover { border-color: var(--n-300); }
.sr-2 { background: var(--n-600); }
.sr-2:hover { border-color: var(--n-300); }
.sr-3 { background: var(--n-700); }
.sr-3:hover { border-color: var(--n-300); }
/* Digital Twin sits between WCS and the equipment -- ramp-800 keeps it in the
   same blue family, one step deeper, so the stack reads as one system. */
.sr-dt { background: var(--n-800); border-color: rgba(159,182,219,.4); }
.sr-dt:hover { border-color: var(--n-300); }
.sr-4 {
  background: rgba(255,255,255,.05);
  border-color: rgba(159,182,219,.3);
}
.sr-4:hover { border-color: var(--n-300); }

.stack-foot {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--n-300);
  text-align: center;
  margin-top: 14px;
  line-height: 1.7;
}

/* ==========================================================================
   trust strip
   ========================================================================== */

.trust {
  padding-block: 24px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface-2);
}
.trust-in {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.trust-lbl {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-c);
}
.trust-items { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  font-size: 12.5px;
  color: var(--ink-m);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 5px 13px;
  white-space: nowrap;
}

/* ==========================================================================
   cards
   ========================================================================== */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
}

.card-tint { background: var(--n-50); }
.card-flat { border-radius: var(--r-md); }

.card h3 { margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--ink-m); }

.card-idx {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--n-500);
  letter-spacing: .06em;
  margin-bottom: 12px;
  display: block;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 500;
  margin-top: 16px;
}
.card-link .arw { transition: transform .16s; }
.card:hover .card-link .arw { transform: translateX(3px); }

/* layer card — the five-up row */
.layer-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  background: var(--n-50);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px 18px;
  transition: border-color .18s, background-color .18s, transform .18s;
}
.layer-card:hover {
  border-color: var(--n-400);
  background: #fff;
  transform: translateY(-2px);
  color: inherit;
}
.layer-card.ai {
  background: var(--ok-bg);
  border-color: #A7E8D0;
}
.layer-card.ai:hover { border-color: var(--ok); }
.layer-card.ai .card-idx,
.layer-card.ai .card-link { color: var(--ok-tx); }
/* Digital Twin is the visual layer -- a deeper ramp step, not a new hue, so it
   stays in the same family as WMS/WES/WCS. */
.layer-card.dt {
  background: var(--n-100);
  border-color: var(--n-300);
}
.layer-card.dt:hover { border-color: var(--n-600); }
.layer-card.dt .card-idx,
.layer-card.dt .card-link,
.layer-card.dt .layer-mono { color: var(--n-700); }

.layer-mono {
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--n-500);
  letter-spacing: .03em;
  /* five cards in one row leaves ~200px of text width, so let these wrap on
     phrase boundaries rather than mid-word */
  overflow-wrap: break-word;
}
/* push the CTA to the card floor so all five align on one baseline */
.layer-card .card-link { margin-top: auto; padding-top: 16px; }

/* --------------------------------------------------------------------------
   layer definitions -- one-sentence "what is this" per layer.
   Deliberately plain and visible: search engines reward a page that states its
   own subject in language a reader could quote.

   These are <dl> elements, and a grid auto-places each <dt>/<dd> as its own
   item -- which puts every term in column 1 and every definition in column 2,
   not term-beside-definition. So each row is an explicit two-column template
   and the definition list is a single full-width column of rows.
   -------------------------------------------------------------------------- */
.layer-defs {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 0 30px;
  margin: 34px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
}
.layer-defs dt {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--n-600);
  padding: 13px 0;
  border-top: 1px solid var(--line-soft);
  margin: 0;
}
.layer-defs dd {
  margin: 0;
  padding: 13px 0;
  font-size: 13.5px;
  color: var(--ink-m);
  line-height: 1.6;
  border-top: 1px solid var(--line-soft);
}
/* the first row already sits under the section rule -- no second hairline */
.layer-defs dt:first-of-type,
.layer-defs dd:first-of-type { border-top: 0; padding-top: 0; }

/* --------------------------------------------------------------------------
   common applications -- named use cases.
   Gives the page subject breadth the prose does not carry on its own, and reads
   as a plain list a buyer can scan.
   -------------------------------------------------------------------------- */
.usecases {
  margin-top: 40px;
  padding: 26px 28px;
  background: var(--n-50);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.usecases h3 { font-size: 15px; margin-bottom: 16px; }
.usecases ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 34px;
}
.usecases li {
  position: relative;
  font-size: 13.5px;
  color: var(--ink-m);
  padding: 6px 0 6px 18px;
  line-height: 1.5;
}
.usecases li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--n-400);
}
.layer-card.ai .layer-mono { color: var(--ok-tx); }

/* ==========================================================================
   layer explorer (the centrepiece)
   ========================================================================== */

.explorer {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface);
}

.exp-rail {
  background: var(--n-50);
  border-right: 1px solid var(--line);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.exp-tab {
  display: block;
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-b);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  padding: 12px 14px;
  cursor: pointer;
  transition: background-color .14s, color .14s, border-color .14s;
}
.exp-tab:hover { background: #fff; border-color: var(--line); }
.exp-tab[aria-selected="true"] {
  background: var(--n-500);
  color: #fff;
  border-color: var(--n-500);
}
.exp-tab small {
  display: block;
  font-size: 11.5px;
  font-weight: 400;
  opacity: .72;
  margin-top: 2px;
}
.exp-tab[aria-selected="true"] small { opacity: .85; }

.exp-rail-note {
  margin-top: auto;
  padding: 14px;
  font-size: 12px;
  color: var(--ink-c);
  line-height: 1.5;
}

.exp-body { padding: 32px 34px; min-height: 430px; }

.exp-pane { display: none; }
.exp-pane.on { display: block; animation: fade .22s ease; }

@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.exp-h { font-size: 22px; margin-bottom: 12px; }
.exp-lede { font-size: 15px; color: var(--ink-m); max-width: 620px; }

.exp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 26px;
}
.exp-chip {
  font-size: 12.5px;
  color: var(--n-700);
  background: var(--n-100);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 6px 11px;
}

.exp-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}
.exp-col h4 { font-size: 13px; margin-bottom: 10px; color: var(--n-600); }
.exp-col li {
  font-size: 13.5px;
  color: var(--ink-m);
  padding: 5px 0 5px 15px;
  position: relative;
}
.exp-col li::before {
  content: "";
  position: absolute;
  left: 0; top: 13px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--n-300);
}

.exp-actions {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  flex-wrap: wrap;
}

/* ==========================================================================
   dark AI block
   ========================================================================== */

.dark {
  background: var(--n-900);
  color: var(--n-300);
}
.dark h2, .dark h3, .dark h4 { color: #fff; }
.dark .sec-label { color: var(--n-300); }

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-block: 40px;
}
.metric {
  background: var(--n-800);
  border: 1px solid rgba(159,182,219,.16);
  border-radius: var(--r-md);
  padding: 20px;
}
.metric-n {
  font-size: 30px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.metric-l { font-size: 12.5px; color: var(--n-300); margin-top: 6px; }

.engines {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.engine {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(159,182,219,.16);
  border-radius: var(--r-lg);
  padding: 22px;
}
.engine h3 { font-size: 16px; margin-bottom: 8px; }
.engine p { font-size: 13.5px; color: var(--n-300); }
.engine-no {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ok);
  letter-spacing: .06em;
  display: block;
  margin-bottom: 10px;
}

/* ==========================================================================
   proof / deployments
   ========================================================================== */

.proof {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.proof-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-soft);
  transition: background-color .16s;
}
.proof-row:hover { background: var(--n-50); }
.proof-n {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--n-400);
  padding-top: 3px;
}
.proof-who { font-size: 16px; font-weight: 500; color: var(--ink-h); }
.proof-tag {
  display: inline-block;
  font-size: 11.5px;
  color: var(--ok-tx);
  background: var(--ok-bg);
  border: 1px solid #A7E8D0;
  border-radius: 100px;
  padding: 2px 9px;
  margin-top: 7px;
}
.proof-tag.pending {
  color: var(--ink-c);
  background: var(--surface-2);
  border-color: var(--line);
}
.proof-k { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-c); margin-bottom: 5px; }
.proof-v { font-size: 13.5px; color: var(--ink-b); }
.proof-v strong { font-weight: 500; color: var(--ink-h); }

/* ==========================================================================
   deployment & integration
   ========================================================================== */

.deploy { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.deploy-item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
  background: #fff;
}
.deploy-item h4 { font-size: 13.5px; margin-bottom: 10px; }
.deploy-item p { font-size: 13px; color: var(--ink-m); line-height: 1.55; }

.spec {
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.spec-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 20px;
  padding: 15px 22px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13.5px;
}
.spec-row:last-child { border-bottom: 0; }
.spec-row:nth-child(odd) { background: var(--n-50); }
.spec-k { color: var(--ink-c); }
.spec-v { color: var(--ink-b); }
.spec-v code {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--n-700);
  background: var(--n-100);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  background: var(--n-800);
  border-radius: var(--r-xl);
  padding: clamp(36px, 5vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  color: var(--n-300);
}
.cta-band h2 { color: #fff; }
.cta-band p { margin-top: 14px; font-size: 15px; max-width: 460px; }
.cta-band-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ==========================================================================
   footer
   ========================================================================== */

.foot {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  padding-block: 56px 0;
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 40px;
}
.foot-brand img { height: 20px; width: auto; display: block; margin-bottom: 18px; }
.foot-brand p { font-size: 13px; color: var(--ink-m); line-height: 1.7; max-width: 300px; }

/* trademark assertion line — sits under the brand blurb in the footer column.
   Named .foot-tm, NOT .foot-legal: that class is already the footer's bottom bar. */
.foot-tm {
  margin-top: 14px;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--n-500);
  max-width: 320px;
}
.foot-tm strong { font-weight: 500; color: var(--ink-m); }
.foot-col h4 {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-c);
  margin-bottom: 16px;
}
.foot-col a {
  display: block;
  font-size: 13.5px;
  color: var(--ink-m);
  padding: 5px 0;
}
.foot-col a:hover { color: var(--n-600); }

.foot-contact {
  border-top: 1px solid var(--line);
  padding-block: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.foot-contact div h5 {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-c);
  margin: 0 0 8px;
}
.foot-contact div p { font-size: 13px; color: var(--ink-b); line-height: 1.6; }

.foot-legal {
  border-top: 1px solid var(--line);
  padding-block: 20px 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ink-c);
}

/* ==========================================================================
   product screenshots
   Real UI captures. Framed like an application window, not a stock photo:
   1px border, small radius, no drop shadow, no fake browser chrome.
   ========================================================================== */

.shot { margin: 0; }

.shot-frame {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface-2);
  line-height: 0;
}
.shot-frame img { width: 100%; height: auto; display: block; }

.shot figcaption {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--ink-c);
  line-height: 1.55;
}
.shot figcaption strong {
  font-weight: 500;
  color: var(--ink-m);
  display: block;
  margin-bottom: 2px;
}

/* full-bleed showcase inside the dark AI section */
.shot-dark .shot-frame { border-color: rgba(159,182,219,.24); background: var(--n-800); }
.shot-dark figcaption { color: var(--n-300); }
.shot-dark figcaption strong { color: #fff; }

/* the explorer pane screenshot */
.exp-shot {
  margin: 26px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface-2);
  line-height: 0;
}
.exp-shot img { width: 100%; height: auto; display: block; }
.exp-shot-cap {
  font-size: 12px;
  color: var(--ink-c);
  line-height: 1.5;
  padding: 10px 14px;
  border-top: 1px solid var(--line-soft);
  background: #fff;
}

/* The .is-pending / .shot-pending placeholder styles were removed once the last
   layer (3D Digital Twin) received a real capture. If a future layer page ships
   before its screenshot exists, restore the dashed ramp-300 empty-slot styling
   rather than pointing an <img> at a missing file. */

/* ---- FAQ -----------------------------------------------------------------
   The visible counterpart to the FAQPage JSON-LD. Built on <details>/<summary>
   so the answers are in the DOM and the text layer even with JavaScript off --
   which is the point. An answer that only exists inside a script block cannot
   be extracted as a quote, and Google ignores FAQ markup with no visible match.
   Native <details> also gives keyboard and screen-reader support for free. */
.faq-list {
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item > summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::marker { content: ""; }
.faq-item h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-h);
  line-height: 1.45;
  margin: 0;
}
.faq-item > summary:hover h3 { color: var(--n-600); }
.faq-item > summary:focus-visible {
  outline: 2px solid var(--n-500);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Plus / minus drawn in CSS so there is no icon font to load. The vertical bar
   rotates out on open, leaving a minus. */
.faq-mark {
  position: relative;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  margin-top: 3px;
}
.faq-mark::before,
.faq-mark::after {
  content: "";
  position: absolute;
  background: var(--ink-c);
  transition: transform .18s ease, opacity .18s ease;
}
.faq-mark::before { top: 6px; left: 0; width: 14px; height: 1.5px; }
.faq-mark::after  { left: 6px; top: 0; width: 1.5px; height: 14px; }
.faq-item[open] .faq-mark::after { transform: scaleY(0); opacity: 0; }
.faq-item[open] .faq-mark::before { background: var(--n-500); }

.faq-body {
  padding: 0 38px 24px 0;
  max-width: 760px;
}
.faq-body p {
  font-size: 15px;
  color: var(--ink-b);
  line-height: 1.7;
}

@media (max-width: 620px) {
  .faq-item > summary { padding: 18px 0; gap: 16px; }
  .faq-item h3 { font-size: 15px; }
  .faq-body { padding: 0 0 20px; }
  .faq-body p { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .faq-mark::before, .faq-mark::after { transition: none; }
}

/* ---- Answer capsules -----------------------------------------------------
   A 40-60 word self-contained answer placed immediately after a section <h2>.
   AI answer engines extract short, confident passages; a heading followed by a
   long discursive paragraph gives the extractor nothing clean to lift. The rule
   when writing these: the capsule must make complete sense quoted with no
   surrounding context, and must never open with "we" or "our" -- an extracted
   quote that says "we built" is unusable without knowing who "we" is. */
.capsule {
  max-width: 720px;
  margin-top: 18px;
  padding-left: 16px;
  border-left: 2px solid var(--n-300);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-b);
}
.capsule strong { color: var(--ink-h); font-weight: 500; }

@media (max-width: 620px) {
  .capsule { padding-left: 13px; font-size: 14px; }
}

/* ---- Comparison table (WMS vs WES vs WCS) --------------------------------
   A real <table> because the content is genuinely tabular -- an answer engine
   extracting "what does a WES own" gets a clean row, which a grid of divs does
   not give it. Row headers are <th scope="row"> so the association survives
   being lifted out of the table. */
.cmp-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
}
.cmp-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 13.5px;
}
.cmp-table caption { text-align: left; }
.cmp-table th,
.cmp-table td {
  text-align: left;
  vertical-align: top;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
  line-height: 1.55;
}
.cmp-table tbody tr:last-child th,
.cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table thead th {
  background: var(--n-50);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--n-500);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.cmp-table tbody th {
  font-weight: 500;
  color: var(--ink-h);
  white-space: nowrap;
}
.cmp-table td { color: var(--ink-m); }
.cmp-table tbody tr:hover { background: var(--n-50); }

@media (max-width: 620px) {
  .cmp-table th, .cmp-table td { padding: 12px 14px; }
}

/* ordered variant of the .usecases panel -- same shell, numbered items */
.usecases ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 34px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: uc;
}
.usecases ol li {
  position: relative;
  counter-increment: uc;
  font-size: 13.5px;
  color: var(--ink-m);
  padding: 6px 0 6px 26px;
  line-height: 1.5;
}
.usecases ol li::before {
  content: counter(uc, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 7px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--n-400);
}

/* two-up screenshot pair */
.shot-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.shot-pair .shot-frame { border-color: rgba(159,182,219,.24); }

/* --------------------------------------------------------------------------
   provenance -- where the platform comes from.
   Sits directly above the five layer cards. This is a plain credibility
   statement, so it is set as a statement: label, one paragraph, three facts.
   No accent colour, no badge, nothing that reads as a claim being sold.
   -------------------------------------------------------------------------- */
.provenance {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  padding: 24px 26px;
  margin-bottom: 34px;
  background: var(--n-50);
  border: 1px solid var(--line);
  border-left: 3px solid var(--n-500);
  border-radius: var(--r-sm);
}
.prov-k {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--n-500);
  margin-bottom: 10px;
}
.provenance p { font-size: 14px; color: var(--ink-b); line-height: 1.65; }
.provenance p + p { margin-top: 11px; }
.prov-facts { display: grid; gap: 14px; }
.prov-n {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-h);
  letter-spacing: -0.01em;
}
/* Word-valued fact figures ("Technology transfer") must not sit at the numeral size —
   they wrap to two lines and tower over the label. This is the .is-word pattern used
   for .hero-fact-n, applied here for the same reason. */
.prov-n.is-word {
  font-size: 14.5px;
  line-height: 1.3;
  letter-spacing: 0;
}
.prov-l { font-size: 12px; color: var(--ink-c); margin-top: 2px; line-height: 1.45; }

@media (max-width: 1000px) {
  .provenance { grid-template-columns: 1fr; gap: 24px; }
  .prov-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 20px; }
}
@media (max-width: 620px) {
  .provenance { padding: 20px; }
  .prov-facts { grid-template-columns: 1fr; gap: 12px; }
}

/* ==========================================================================
   country landing pages  (/malaysia/, /singapore/, /philippines/)
   These are full second-level landing pages, not anchor fragments, because a
   single page cannot rank for country-shaped commercial queries. They reuse
   the same design system; the only new primitives are below.
   ========================================================================== */

/* breadcrumb strip under the nav */
.crumb {
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface-2);
  padding-block: 11px;
  font-size: 12.5px;
  color: var(--ink-c);
}
.crumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 0; padding: 0; list-style: none; }
.crumb li { display: flex; align-items: center; gap: 7px; }
.crumb li + li::before { content: "/"; color: var(--n-300); }
.crumb a { color: var(--ink-m); }
.crumb a:hover { color: var(--n-600); }
.crumb [aria-current="page"] { color: var(--ink-h); font-weight: 500; }

/* the country name is the whole point of the page, so it gets its own marker */
.country-flag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--n-300);
  margin-bottom: 18px;
}
.country-flag::before { content: ""; width: 22px; height: 1px; background: var(--n-400); }

/* facts row on a country page -- reuses .hero-facts but on white */
.facts-light {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 24px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.facts-light .fact-n {
  font-size: 21px;
  font-weight: 500;
  color: var(--ink-h);
  letter-spacing: -0.02em;
}
.facts-light .fact-l { font-size: 12px; color: var(--ink-c); margin-top: 3px; line-height: 1.45; }

/* country switcher -- three reciprocal links, always visible */
.geo-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}
.geo-card {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  color: inherit;
  transition: border-color .16s, background-color .16s;
}
.geo-card:hover { border-color: var(--n-400); background: var(--n-50); color: inherit; }
.geo-card .geo-name { font-size: 15px; font-weight: 500; color: var(--ink-h); }
.geo-card .geo-note { font-size: 12.5px; color: var(--ink-c); margin-top: 4px; line-height: 1.5; }
.geo-card[aria-current="page"] { border-color: var(--n-500); background: var(--n-50); }
.geo-card[aria-current="page"] .geo-name { color: var(--n-700); }

/* reason list: numbered, so it reads as a sequence of arguments */
.reasons { display: grid; gap: 0; border-top: 1px solid var(--line); }
.reason {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
}
.reason-n {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--n-400);
  padding-top: 3px;
}
.reason h3 { font-size: 16px; margin-bottom: 7px; }
.reason p { font-size: 13.5px; color: var(--ink-m); line-height: 1.62; }

/* dark CTA strip used at the foot of each country page */
.geo-cta {
  background: var(--n-800);
  border-radius: var(--r-xl);
  padding: clamp(32px, 4.5vw, 48px);
  color: var(--n-300);
}
.geo-cta h2 { color: #fff; }
.geo-cta p { margin-top: 12px; font-size: 15px; max-width: 620px; }
.geo-cta .geo-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

@media (max-width: 1000px) {
  .facts-light { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .geo-switch { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .facts-light { grid-template-columns: 1fr; }
  .reason { grid-template-columns: 32px minmax(0, 1fr); gap: 14px; }
}

/* ==========================================================================
   responsive
   ========================================================================== */

@media (max-width: 1000px) {
  .hero-in { grid-template-columns: 1fr; gap: 44px; }
  .hero-sub { max-width: none; }
  .g4, .metrics, .deploy { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* five layer cards: 3 + 2 reads better than 2 + 2 + 1 */
  .g5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-row { grid-template-columns: 40px minmax(0, 1fr); }
  .proof-row > :nth-child(3),
  .proof-row > :nth-child(4) { grid-column: 2; }
  .cta-band { grid-template-columns: 1fr; gap: 28px; }
}

/* 875px. Measured, not guessed. This was 921px while the nav carried seven links:
   the parts were brand (206px with both ™ marks) + links (544px) + CTA (115px) +
   gaps, which overflowed below ~921px. Removing the "Malaysia" nav link (the
   country pages were withdrawn) cut the links row to 508px -- Platform 77, Layers
   66, Neuris AI 83, Industries 87, Integration 93, Resources 92 -- so the parts now
   total 829px. Stepped the viewport from 830 to 960 in 1px steps with the nav
   forced on: the CTA's right edge needs 862px, and 861px still overflows by 1px.
   So 862 is the true floor; 875 leaves 13px for font-loading and glyph variance.
   Verified 830-960px at 5px steps afterwards: no overflow at or above 875. */
@media (max-width: 875px) {
  .nav-links { display: none; }
  /* order: brand · CTA · burger */
  .nav-cta { margin-left: auto; }
  .nav-burger { display: inline-flex; margin-left: 8px; flex-shrink: 0; }
  .explorer { grid-template-columns: 1fr; }
  .exp-rail {
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 10px;
    gap: 8px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .exp-tab {
    width: auto;
    white-space: nowrap;
    padding: 10px 14px;
    scroll-snap-align: start;
    flex-shrink: 0;
  }
  .exp-tab small { display: none; }
  .exp-rail-note { display: none; }
  .exp-body { padding: 26px 22px; }
  .engines { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  :root { --gutter: 18px; }
  .g2, .g3, .g4, .g5, .metrics, .deploy, .exp-cols, .shot-pair,
  .usecases ul { grid-template-columns: 1fr; }
  /* term above its definition, rather than the desktop two-column row */
  .layer-defs { grid-template-columns: 1fr; gap: 0; }
  .layer-defs dt { padding-bottom: 0; border-top: 0; }
  .layer-defs dd { padding-top: 3px; border-top: 0; }
  .layer-defs dt:not(:first-of-type) { padding-top: 16px; border-top: 1px solid var(--line-soft); }
  .foot-grid, .foot-contact { grid-template-columns: 1fr; gap: 28px; }
  .hero-facts { gap: 18px; }
  .spec-row { grid-template-columns: 1fr; gap: 4px; }
  .spec-k { font-size: 12px; }

  /* header is tight below 620 — brand + CTA + burger cannot all fit at full size */
  .nav-in { gap: 6px; }
  .nav-brand { gap: 8px; }
  .nav-brand img { height: 17px; }
  .nav-sep { margin-inline: 1px; }
  .nav-prod { font-size: 13px; }
  .nav-prod .tm { font-size: .6em; }
  .hero-lockup { gap: 9px; margin-bottom: 20px; }
  .hero-prod { font-size: 18px; }
  .nav-cta { margin-left: auto; padding: 8px 12px; font-size: 12px; }
  .nav-burger { margin-left: 6px; padding: 7px 9px; }

  /* tighter mobile rhythm — 6 stacked cards need less air */
  .grid { gap: 12px; }
  .card, .layer-card, .deploy-item { padding: 18px; }
  .layer-card .card-link { margin-top: 12px; }
  .trust-items { gap: 7px; }
  .trust-in { gap: 12px; }
  .explorer { border-radius: var(--r-lg); }
  .exp-actions .btn { flex: 1 1 auto; justify-content: center; }
  .proof-row { padding: 20px 0; gap: 16px; }
  .cta-band { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* print */
@media print {
  .nav, .nav-drawer, .cta-band, .hero-cta { display: none; }
  body { font-size: 11pt; }
  section { padding-block: 20pt; break-inside: avoid; }
  .hero, .dark, .cta-band { background: #fff !important; color: #000 !important; }
  .hero h1, .dark h2, .cta-band h2 { color: #000 !important; }
}
