/* ==========================================================================
   CYBROTRIX DESIGN SYSTEM
   Depends on tokens.css. Sections:
   1 Base · 2 Layout · 3 Typography · 4 Buttons & links · 5 Header & nav
   6 Footer · 7 Cards & grids · 8 Hero · 9 Signature graph · 10 Pipeline
   11 Technology map · 12 Products · 13 Solutions · 14 Insights & prose
   15 Forms · 16 CTA · 17 Motion · 18 CMS dynamic sections · 19 Responsive
   ========================================================================== */

/* 1. BASE ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--fg-1);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--fg-0); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-xs); }
:focus:not(:focus-visible) { outline: none; }
[hidden] { display: none !important; }

.cx-skip {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  padding: 10px 14px; border-radius: var(--r-sm);
  background: var(--accent); color: #fff; font-weight: 600;
  transition: top var(--dur-fast);
}
.cx-skip:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.cx-icon { width: 1.25em; height: 1.25em; flex: none; }
.cx-icon--sm { width: 1em; height: 1em; }

/* 2. LAYOUT ---------------------------------------------------------------- */
.cx-container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.cx-container--wide { max-width: var(--container-wide); }
.cx-container--narrow { max-width: var(--container-narrow); }

.cx-section { position: relative; padding-block: var(--section-y); }
.cx-section--tight { padding-block: calc(var(--section-y) * 0.6); }
.cx-section--alt { background: color-mix(in srgb, var(--bg-1) 78%, transparent); }
.cx-section--line { border-top: 1px solid var(--line); }
.cx-section__head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.cx-section__head--center { margin-inline: auto; text-align: center; }
.cx-section__head .cx-lead { margin-top: var(--s-4); }
.cx-section__row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-6); flex-wrap: wrap; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.cx-section__row .cx-section__head { margin-bottom: 0; }

main { display: block; flex: 1 0 auto; }

/* 3. TYPOGRAPHY ------------------------------------------------------------ */
h1, h2, h3, h4 { margin: 0; color: var(--fg-0); font-weight: 600; letter-spacing: var(--tracking-snug); line-height: var(--leading-snug); text-wrap: balance; }
.cx-display { font-size: var(--text-display); font-weight: 600; letter-spacing: var(--tracking-tight); line-height: var(--leading-tight); }
.cx-h1 { font-size: var(--text-3xl); letter-spacing: var(--tracking-tight); line-height: 1.1; }
.cx-h2 { font-size: var(--text-2xl); letter-spacing: var(--tracking-tight); line-height: 1.15; }
.cx-h3 { font-size: var(--text-xl); }
.cx-h4 { font-size: var(--text-lg); }
.cx-lead { font-size: var(--text-md); color: var(--fg-2); line-height: var(--leading-relaxed); max-width: 62ch; text-wrap: pretty; }
.cx-muted { color: var(--fg-2); }
.cx-small { font-size: var(--text-sm); }
.cx-mono { font-family: var(--font-mono); }
.cx-accent { color: var(--accent); }
.cx-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 500;
  letter-spacing: var(--tracking-wider); text-transform: uppercase; color: var(--fg-2);
  margin-bottom: var(--s-4);
}
.cx-eyebrow::before { content: ""; width: 20px; height: 1px; background: var(--accent); }
.cx-eyebrow--num::before { display: none; }
.cx-eyebrow__n { color: var(--accent); }
.cx-gradient-text {
  background: linear-gradient(100deg, var(--fg-0) 0%, var(--fg-0) 45%, var(--accent) 75%, var(--teal) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cx-kicker { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--fg-3); }

/* 4. BUTTONS & LINKS ------------------------------------------------------- */
.cx-btn {
  --btn-bg: var(--bg-3); --btn-fg: var(--fg-0); --btn-line: var(--line-strong);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0.8rem 1.35rem; border-radius: var(--r-md);
  font-weight: 600; font-size: var(--text-sm); letter-spacing: 0; line-height: 1;
  color: var(--btn-fg); background: var(--btn-bg); border: 1px solid var(--btn-line);
  transition: transform var(--dur-base) var(--ease-out), background var(--dur-base), border-color var(--dur-base), box-shadow var(--dur-base), color var(--dur-base);
  white-space: nowrap; overflow: hidden; isolation: isolate;
}
.cx-btn:hover { color: var(--btn-fg); transform: translateY(-1px); border-color: var(--line-accent); }
.cx-btn:active { transform: translateY(0); }
.cx-btn .cx-icon { transition: transform var(--dur-base) var(--ease-out); }
.cx-btn:hover .cx-icon--go { transform: translateX(3px); }
.cx-btn:hover .cx-icon--ext { transform: translate(2px, -2px); }
.cx-btn--primary { --btn-bg: var(--accent-600); --btn-fg: #fff; --btn-line: transparent; box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, var(--shadow-accent); }
.cx-btn--primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.18) 50%, transparent 70%); transform: translateX(-120%); transition: transform 700ms var(--ease-out); z-index: -1; }
.cx-btn--primary:hover { background: var(--accent); box-shadow: 0 1px 0 rgba(255,255,255,.14) inset, 0 16px 40px -12px var(--accent-glow); }
.cx-btn--primary:hover::after { transform: translateX(120%); }
.cx-btn--secondary { --btn-bg: transparent; --btn-fg: var(--fg-0); --btn-line: var(--line-strong); }
.cx-btn--secondary:hover { background: var(--accent-soft); }
.cx-btn--ghost { --btn-bg: transparent; --btn-fg: var(--fg-1); --btn-line: transparent; padding-inline: 0.9rem; }
.cx-btn--ghost:hover { background: var(--bg-3); }
.cx-btn--ember { --btn-bg: var(--ember); --btn-fg: #fff; --btn-line: transparent; }
.cx-btn--ember:hover { background: #ff7a2d; }
.cx-btn--sm { padding: 0.6rem 1rem; font-size: var(--text-sm); }
.cx-btn--lg { padding: 1rem 1.7rem; font-size: var(--text-base); border-radius: var(--r-lg); }
.cx-btn--block { width: 100%; }
.cx-btn[disabled], .cx-btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }

.cx-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: var(--text-sm); color: var(--fg-0); }
.cx-link .cx-icon { width: 1.05em; height: 1.05em; transition: transform var(--dur-base) var(--ease-out); color: var(--accent); }
.cx-link:hover { color: var(--accent); }
.cx-link:hover .cx-icon { transform: translateX(3px); }
.cx-link--ext:hover .cx-icon { transform: translate(2px,-2px); }

.cx-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.cx-actions--center { justify-content: center; }

.cx-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg-2); color: var(--fg-1); font-size: var(--text-xs); font-weight: 500; font-family: var(--font-mono); letter-spacing: 0.02em; }
.cx-chip--accent { border-color: var(--line-accent); color: var(--accent); background: var(--accent-soft); }
.cx-chip--ember { border-color: rgba(249,96,14,.35); color: var(--ember-2); background: var(--ember-soft); }
.cx-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.cx-badge { display: inline-flex; align-items: center; gap: 7px; font-size: var(--text-xs); font-weight: 600; color: var(--fg-1); }
.cx-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--fg-3); }
.cx-badge--ok::before { background: var(--ok); box-shadow: 0 0 0 4px rgba(62,207,142,.18); }

/* 5. HEADER & NAV ---------------------------------------------------------- */
.cx-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header); height: var(--header-h);
  display: flex; align-items: center;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background var(--dur-slow) var(--ease-out), border-color var(--dur-slow), height var(--dur-slow) var(--ease-out), backdrop-filter var(--dur-slow);
}
.cx-header.is-scrolled, .nav-open .cx-header { background: var(--bg-elev); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); border-bottom-color: var(--line); height: 64px; }
.cx-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-6); height: 100%; }

.cx-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--fg-0); font-weight: 900; font-size: 1.6rem; letter-spacing: -0.045em; }
.cx-brand:hover { color: var(--fg-0); }
.cx-brand__mark { width: 38px; height: 38px; }
.cx-brand__mark .cx-brand__pulse { transform-origin: center; animation: brandPulse 4.5s var(--ease-in-out) infinite; }
@keyframes brandPulse { 0%, 100% { opacity: .55; transform: scale(.85); } 50% { opacity: 1; transform: scale(1); } }

.cx-nav { display: none; }
.cx-nav__list { display: flex; align-items: center; gap: 2px; }
.cx-nav__item { position: relative; }
.cx-nav__link {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 13px; border-radius: var(--r-sm);
  font-size: var(--text-sm); font-weight: 500; color: var(--fg-1);
  transition: color var(--dur-fast), background var(--dur-fast);
}
.cx-nav__link .cx-icon { width: 14px; height: 14px; opacity: .6; transition: transform var(--dur-base) var(--ease-out); }
.cx-nav__link:hover, .cx-nav__item.is-open .cx-nav__link, .cx-nav__link[aria-current="page"], .cx-nav__item.is-active .cx-nav__link { color: var(--fg-0); background: var(--bg-3); }
.cx-nav__item.is-open .cx-nav__link .cx-icon { transform: rotate(180deg); }
.cx-nav__item.is-active .cx-nav__link::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--accent); }

.cx-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; z-index: var(--z-menu);
  min-width: 300px; transform: translate(-50%, 6px) scale(.98); transform-origin: top center;
  opacity: 0; visibility: hidden; pointer-events: none;
  background: var(--bg-elev); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--line-strong); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility 0s linear var(--dur-base);
}
.cx-menu::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 12px; }
.cx-nav__item.is-open .cx-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0) scale(1); transition-delay: 0s; }
.cx-menu__inner { display: grid; gap: 4px; padding: 10px; }
.cx-menu--wide { min-width: 640px; }
.cx-menu--wide .cx-menu__inner { grid-template-columns: 1fr 1fr; }
.cx-menu--3 { min-width: 780px; }
.cx-menu--3 .cx-menu__inner { grid-template-columns: repeat(3, 1fr); }
.cx-menu__eyebrow { grid-column: 1 / -1; padding: 6px 10px 2px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: var(--tracking-wider); text-transform: uppercase; color: var(--fg-3); }
.cx-menu__link { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: var(--r-md); color: var(--fg-1); transition: background var(--dur-fast); }
.cx-menu__link:hover, .cx-menu__link:focus-visible { background: var(--bg-3); color: var(--fg-0); outline-offset: -2px; }
.cx-menu__icon { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent); }
.cx-menu__icon .cx-icon { width: 18px; height: 18px; }
.cx-menu__title { display: flex; align-items: center; gap: 6px; font-size: var(--text-sm); font-weight: 600; color: var(--fg-0); }
.cx-menu__title .cx-icon { width: 12px; height: 12px; color: var(--fg-3); }
.cx-menu__desc { font-size: 12.5px; color: var(--fg-2); line-height: 1.45; margin-top: 2px; }
.cx-menu__featured { grid-column: 1 / -1; margin-top: 4px; padding: 14px; border-radius: var(--r-md); background: linear-gradient(135deg, var(--ember-soft), transparent 70%); border: 1px solid rgba(249,96,14,.22); display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--fg-1); }
.cx-menu__featured:hover { border-color: rgba(249,96,14,.5); color: var(--fg-0); }
.cx-menu__featured strong { display: block; color: var(--fg-0); font-size: var(--text-sm); }
.cx-menu__featured span { font-size: 12.5px; color: var(--fg-2); }
.cx-menu__featured .cx-icon { color: var(--ember); }

.cx-header__actions { display: flex; align-items: center; gap: 8px; }
.cx-theme-toggle { width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--r-sm); color: var(--fg-2); border: 1px solid transparent; transition: color var(--dur-fast), background var(--dur-fast), border-color var(--dur-fast); }
.cx-theme-toggle:hover { color: var(--fg-0); background: var(--bg-3); border-color: var(--line); }
.cx-theme-toggle .cx-icon { width: 18px; height: 18px; }
.cx-theme-toggle .i-moon { display: none; }
:root[data-theme="light"] .cx-theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .cx-theme-toggle .i-moon { display: block; }
.cx-header__cta { display: none; }
.cx-burger { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-sm); color: var(--fg-0); }
.cx-burger .cx-icon { width: 22px; height: 22px; }
.cx-burger .i-close { display: none; }
.cx-burger[aria-expanded="true"] .i-menu { display: none; }
.cx-burger[aria-expanded="true"] .i-close { display: block; }

/* Mobile drawer */
.cx-mobile {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: var(--z-drawer);
  background: var(--bg-0); overflow-y: auto; -webkit-overflow-scrolling: touch;
  opacity: 0; transform: translateY(-8px);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.nav-open .cx-mobile, .cx-mobile.is-open { opacity: 1; transform: none; }
.nav-open { overflow: hidden; }
.nav-open .cx-header { height: var(--header-h); }
.cx-mobile__inner { padding: var(--s-4) var(--gutter) var(--s-10); display: flex; flex-direction: column; gap: 2px; }
.cx-mobile__acc { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 6px; border-bottom: 1px solid var(--line); font-size: 1.05rem; font-weight: 600; color: var(--fg-0); text-align: left; }
.cx-mobile__acc .cx-icon { width: 18px; height: 18px; color: var(--fg-3); transition: transform var(--dur-base) var(--ease-out); }
.cx-mobile__acc[aria-expanded="true"] .cx-icon { transform: rotate(180deg); }
.cx-mobile__panel { padding: 6px 0 12px; display: grid; gap: 2px; animation: fadeUp var(--dur-base) var(--ease-out); }
.cx-mobile__link { display: flex; align-items: center; gap: 12px; padding: 11px 8px; border-radius: var(--r-sm); color: var(--fg-1); font-size: var(--text-base); }
.cx-mobile__link .cx-menu__icon { width: 30px; height: 30px; }
.cx-mobile__link:hover { background: var(--bg-2); color: var(--fg-0); }
.cx-mobile__top { display: flex; align-items: center; justify-content: space-between; padding: 14px 6px; border-bottom: 1px solid var(--line); font-size: 1.05rem; font-weight: 600; color: var(--fg-0); }
.cx-mobile__cta { margin-top: var(--s-6); display: grid; gap: 10px; }

/* 6. FOOTER ---------------------------------------------------------------- */
.cx-footer {
  /* Always a solid, deep-dark footer, regardless of theme. */
  --bg-0: #04060a; --bg-1: #070a10; --bg-2: #0c1017; --bg-3: #121722;
  --line: rgba(255, 255, 255, 0.09); --line-strong: rgba(255, 255, 255, 0.16);
  --fg-0: #f4f6fa; --fg-1: #c2c9d6; --fg-2: #8c97a8; --fg-3: #6b768a;
  --accent: #4f8cff;
  color: var(--fg-1);
  border-top: 1px solid var(--line-strong); background: #04060a; margin-top: auto; position: relative; overflow: hidden;
  box-shadow: 0 -24px 60px -30px rgba(0, 0, 0, 0.8);
}
.cx-footer::before { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .5; }
.cx-footer__top { display: grid; gap: var(--s-6); padding-block: var(--s-8) var(--s-6); }
.cx-footer__brand .cx-brand { font-size: 1.3rem; }
.cx-footer__brand .cx-brand__mark { width: 30px; height: 30px; }
.cx-footer__brand p { color: var(--fg-2); font-size: 13px; line-height: 1.55; max-width: 32ch; margin-top: var(--s-3); }
.cx-footer__contact { margin-top: var(--s-4); display: grid; gap: 6px; font-size: 13px; color: var(--fg-2); }
.cx-footer__contact a { color: var(--fg-1); display: inline-flex; align-items: center; gap: 8px; }
.cx-footer__contact a:hover { color: var(--accent); }
.cx-footer__contact .cx-icon { width: 14px; height: 14px; color: var(--fg-3); }
.cx-footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-6) var(--s-5); }
.cx-footer__title { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: var(--tracking-wider); text-transform: uppercase; color: var(--fg-0); margin-bottom: var(--s-3); font-size: 11px; }
.cx-footer__links { display: grid; gap: 6px; }
.cx-footer__links a { color: var(--fg-2); font-size: 13px; line-height: 1.4; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; transition: color var(--dur-fast), transform var(--dur-fast); }
.cx-footer__links a:hover { color: var(--fg-0); transform: translateX(2px); }
.cx-footer__links .cx-icon { width: 12px; height: 12px; color: var(--fg-3); }
.cx-footer__bottom { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; justify-content: space-between; padding-block: var(--s-4); border-top: 1px solid var(--line); font-size: 12px; color: var(--fg-3); }
.cx-footer__legal { display: flex; flex-wrap: wrap; gap: var(--s-4); }
.cx-footer__legal a { color: var(--fg-2); }
.cx-footer__legal a:hover { color: var(--fg-0); }

/* 7. CARDS & GRIDS --------------------------------------------------------- */
.cx-grid { display: grid; gap: var(--s-5); }
.cx-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.cx-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.cx-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.cx-grid--split { grid-template-columns: 1fr; align-items: center; gap: var(--s-8); }

.cx-card {
  --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg;
  position: relative; display: flex; flex-direction: column; gap: var(--s-4);
  padding: clamp(1.25rem, 2.2vw, 1.75rem); border-radius: var(--r-lg);
  background: var(--bg-2); border: 1px solid var(--line);
  transition: border-color var(--dur-base), transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base);
  isolation: isolate; overflow: hidden;
}
.cx-card::before { /* cursor glow */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), var(--accent-soft), transparent 45%);
  transition: opacity var(--dur-slow);
}
.cx-card::after { /* animated border sheen */
  content: ""; position: absolute; inset: -1px; z-index: -2; border-radius: inherit; opacity: 0;
  background: conic-gradient(from 180deg at var(--mx) var(--my), transparent 0deg, var(--line-accent) 60deg, transparent 120deg);
  transition: opacity var(--dur-slow);
}
.cx-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.cx-card:hover::before, .cx-card:hover::after { opacity: 1; }
.cx-card--tilt { transform-style: preserve-3d; transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); will-change: transform; }
.cx-card--tilt:hover { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-3px); }
.cx-card--link { color: inherit; }
.cx-card--link:hover { color: inherit; }
.cx-card__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent); border: 1px solid var(--line-accent); transition: transform var(--dur-base) var(--ease-spring), background var(--dur-base); }
.cx-card__icon .cx-icon { width: 22px; height: 22px; }
.cx-card:hover .cx-card__icon { transform: translateY(-2px) scale(1.04); }
.cx-card__title { font-size: var(--text-lg); }
.cx-card__body { color: var(--fg-2); font-size: var(--text-sm); line-height: var(--leading-relaxed); }
.cx-card__foot { margin-top: auto; padding-top: var(--s-2); }
.cx-card--flat { background: transparent; }
.cx-card--num { padding-top: 1.5rem; }
.cx-card__num { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--accent); letter-spacing: var(--tracking-wide); }

.cx-list { display: grid; gap: 10px; }
.cx-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--fg-1); font-size: var(--text-sm); line-height: 1.55; }
.cx-list .cx-icon { width: 16px; height: 16px; margin-top: 3px; color: var(--accent); flex: none; }

.cx-panel { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-2); overflow: hidden; }
.cx-panel__bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg-3); font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); letter-spacing: .02em; }
.cx-panel__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--fg-3); opacity: .5; }
.cx-panel__bar i:nth-child(1) { background: var(--danger); } .cx-panel__bar i:nth-child(2) { background: var(--warn); } .cx-panel__bar i:nth-child(3) { background: var(--ok); }
.cx-panel__body { padding: 16px; }

/* Capability strip */
.cx-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--bg-2); }
.cx-strip__item { padding: 18px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.cx-strip__item strong { color: var(--fg-0); font-size: var(--text-sm); font-weight: 600; }
.cx-strip__item span { color: var(--fg-3); font-size: 12px; font-family: var(--font-mono); }

/* 8. HERO ------------------------------------------------------------------ */
.cx-hero { position: relative; min-height: min(100svh, 960px); display: flex; align-items: center; padding-top: calc(var(--header-h) + 3rem); padding-bottom: 4rem; overflow: hidden; isolation: isolate; }
.cx-hero__bg { position: absolute; inset: 0; z-index: -1; }
.cx-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.cx-neural { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
main, .cx-footer { position: relative; z-index: 1; }
.cx-hero .cx-container, .cx-page-hero > .cx-container { position: relative; z-index: 1; }
.cx-hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; opacity: .55;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 60% 40%, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 70% at 60% 40%, #000 20%, transparent 70%);
  animation: gridDrift 40s linear infinite;
}
@keyframes gridDrift { to { background-position: 64px 64px, 64px 64px; } }
.cx-hero__glow { position: absolute; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px; border-radius: 50%; filter: blur(60px); opacity: .35; pointer-events: none; }
.cx-hero__glow--a { top: -20%; right: -10%; background: radial-gradient(circle, var(--accent-glow), transparent 60%); animation: glowA 14s var(--ease-in-out) infinite alternate; }
.cx-hero__glow--b { bottom: -30%; left: -15%; background: radial-gradient(circle, var(--teal-soft), transparent 60%); animation: glowB 18s var(--ease-in-out) infinite alternate; }
@keyframes glowA { to { transform: translate(-6%, 8%) scale(1.08); } }
@keyframes glowB { to { transform: translate(8%, -6%) scale(1.1); } }
.cx-hero__fade { display: none; }

.cx-hero__inner { display: grid; gap: var(--s-9); align-items: center; }
.cx-hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 8px; border-radius: var(--r-full); border: 1px solid var(--line-strong); background: var(--bg-elev); backdrop-filter: blur(10px); font-size: var(--text-xs); font-weight: 500; color: var(--fg-1); margin-bottom: var(--s-6); }
.cx-hero__eyebrow .cx-badge::before { animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.cx-hero__title { max-width: 16ch; }
.cx-hero__sub { margin-top: var(--s-6); max-width: 56ch; font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem); color: var(--fg-2); line-height: var(--leading-relaxed); }
.cx-hero__actions { margin-top: var(--s-7); }
.cx-hero__meta { margin-top: var(--s-8); display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--fg-3); letter-spacing: .04em; }
.cx-hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.cx-hero__meta span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* Floating architecture panel */
.cx-hero__visual { position: relative; display: none; }
.cx-arch { position: relative; width: 100%; max-width: 520px; margin-left: auto; transform-style: preserve-3d; }
.cx-arch__layer { position: relative; border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--bg-elev); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow-lg); padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.cx-arch__layer + .cx-arch__layer { margin-top: 12px; }
.cx-arch__layer .cx-card__icon { width: 36px; height: 36px; }
.cx-arch__layer .cx-card__icon .cx-icon { width: 18px; height: 18px; }
.cx-arch__layer strong { display: block; color: var(--fg-0); font-size: var(--text-sm); }
.cx-arch__layer span { color: var(--fg-3); font-size: 12px; font-family: var(--font-mono); }
.cx-arch__layer em { margin-left: auto; font-style: normal; font-family: var(--font-mono); font-size: 11px; color: var(--ok); display: inline-flex; align-items: center; gap: 6px; }
.cx-arch__layer em::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: blink 2s infinite; }
.cx-arch__layer:nth-child(1) { animation: floatY 7s var(--ease-in-out) infinite; }
.cx-arch__layer:nth-child(2) { animation: floatY 8s var(--ease-in-out) infinite 0.6s; margin-left: 28px; }
.cx-arch__layer:nth-child(3) { animation: floatY 9s var(--ease-in-out) infinite 1.2s; margin-left: 56px; }
.cx-arch__layer:nth-child(4) { animation: floatY 8.5s var(--ease-in-out) infinite 1.8s; margin-left: 28px; }
@keyframes floatY { 50% { transform: translateY(-6px); } }
.cx-arch__stream { position: absolute; left: 24px; top: 0; bottom: 0; width: 1px; background: linear-gradient(to bottom, transparent, var(--accent), transparent); opacity: .4; }
.cx-arch__stream::after { content: ""; position: absolute; left: -2px; width: 5px; height: 40px; border-radius: 3px; background: var(--teal); filter: blur(1px); animation: streamDown 3.2s linear infinite; }
@keyframes streamDown { from { top: -40px; opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } to { top: 100%; opacity: 0; } }

/* Inner page hero */
.cx-page-hero { position: relative; padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 6rem)); padding-bottom: clamp(2.5rem, 5vw, 4.5rem); overflow: hidden; isolation: isolate; }
.cx-page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(60% 50% at 70% 0%, var(--accent-soft), transparent 70%); }
.cx-page-hero::after { content: ""; position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; opacity: .35; -webkit-mask-image: linear-gradient(to bottom, #000, transparent); mask-image: linear-gradient(to bottom, #000, transparent); }
.cx-page-hero__inner { max-width: 820px; }
.cx-page-hero .cx-lead { margin-top: var(--s-5); }
.cx-page-hero .cx-actions { margin-top: var(--s-7); }
.cx-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--fg-3); margin-bottom: var(--s-6); letter-spacing: .03em; }
.cx-breadcrumb a { color: var(--fg-2); }
.cx-breadcrumb a:hover { color: var(--fg-0); }
.cx-breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--fg-3); }

/* 9. SIGNATURE GRAPH ------------------------------------------------------- */
.cx-sig { position: relative; width: 100%; max-width: 640px; margin-inline: auto; aspect-ratio: 1 / 1; }
.cx-sig svg { width: 100%; height: 100%; overflow: visible; }
.cx-sig__edge { stroke: var(--line-strong); stroke-width: 1.2; fill: none; stroke-dasharray: 1000; stroke-dashoffset: 1000; }
.cx-sig.is-in .cx-sig__edge { animation: drawLine 1.6s var(--ease-out) forwards; }
.cx-sig__edge:nth-of-type(2) { animation-delay: .15s !important; } .cx-sig__edge:nth-of-type(3) { animation-delay: .3s !important; } .cx-sig__edge:nth-of-type(4) { animation-delay: .45s !important; } .cx-sig__edge:nth-of-type(5) { animation-delay: .6s !important; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
.cx-sig__ring { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 6; }
.cx-sig__ring--spin { transform-origin: center; animation: spin 90s linear infinite; }
.cx-sig__ring--spin-r { transform-origin: center; animation: spin 120s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.cx-sig__core { fill: var(--bg-1); stroke: var(--accent); stroke-width: 1.5; filter: drop-shadow(0 0 18px var(--accent-glow)); }
.cx-sig__core-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; fill: var(--fg-0); text-anchor: middle; font-weight: 600; }
.cx-sig__node { opacity: 0; transform: scale(.6); transform-origin: center; transform-box: fill-box; transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-spring); }
.cx-sig.is-in .cx-sig__node { opacity: 1; transform: scale(1); }
.cx-sig.is-in .cx-sig__node:nth-child(1) { transition-delay: .5s; } .cx-sig.is-in .cx-sig__node:nth-child(2) { transition-delay: .65s; } .cx-sig.is-in .cx-sig__node:nth-child(3) { transition-delay: .8s; } .cx-sig.is-in .cx-sig__node:nth-child(4) { transition-delay: .95s; } .cx-sig.is-in .cx-sig__node:nth-child(5) { transition-delay: 1.1s; }
.cx-sig__node circle { fill: var(--bg-2); stroke: var(--line-strong); stroke-width: 1.2; }
.cx-sig__node text { font-family: var(--font-sans); font-size: 12px; font-weight: 600; fill: var(--fg-0); text-anchor: middle; }
.cx-sig__node .cx-sig__sub { font-family: var(--font-mono); font-size: 9.5px; font-weight: 400; fill: var(--fg-3); letter-spacing: .06em; }
.cx-sig__node--accent circle { stroke: var(--accent); }
.cx-sig__pulse { fill: var(--teal); r: 3; opacity: 0; offset-rotate: 0deg; }
.cx-sig.is-in .cx-sig__pulse { animation: pulseTravel 3.2s linear infinite; }
.cx-sig__pulse:nth-of-type(2) { animation-delay: .8s !important; } .cx-sig__pulse:nth-of-type(3) { animation-delay: 1.6s !important; } .cx-sig__pulse:nth-of-type(4) { animation-delay: 2.4s !important; } .cx-sig__pulse:nth-of-type(5) { animation-delay: 1.2s !important; }
@keyframes pulseTravel { 0% { offset-distance: 0%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
.cx-sig__halo { fill: none; stroke: var(--accent); stroke-width: 1; opacity: 0; transform-origin: center; transform-box: fill-box; }
.cx-sig.is-in .cx-sig__halo { animation: halo 4s var(--ease-out) infinite 1.4s; }
@keyframes halo { 0% { opacity: .5; transform: scale(1); } 100% { opacity: 0; transform: scale(1.9); } }

/* 10. PIPELINE (SourceFoundry showcase) ------------------------------------ */
.cx-showcase { position: relative; border: 1px solid rgba(249,96,14,.22); border-radius: var(--r-xl); background: linear-gradient(160deg, var(--bg-2), var(--bg-1)); overflow: hidden; isolation: isolate; }
.cx-showcase::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 40% at 85% 10%, var(--ember-soft), transparent 70%); }
.cx-showcase__grid { display: grid; gap: var(--s-8); padding: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.cx-showcase__logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--fg-0); font-size: 1.1rem; letter-spacing: var(--tracking-snug); }
.cx-showcase__logo .cx-logo-sf { width: 30px; height: 30px; }
.cx-showcase__logo small { color: var(--fg-3); font-weight: 500; }

.cx-pipeline { position: relative; display: grid; gap: 0; padding: 4px 0; }
.cx-pipeline__stage { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: center; padding: 10px 0; opacity: .35; transform: translateX(-6px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); transition-delay: calc(var(--i, 0) * 140ms); }
.cx-pipeline.is-in .cx-pipeline__stage { opacity: 1; transform: none; }
.cx-pipeline__node { position: relative; width: 36px; height: 36px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--bg-3); border: 1px solid var(--line-strong); color: var(--fg-2); z-index: 1; transition: border-color var(--dur-slow), color var(--dur-slow), box-shadow var(--dur-slow); transition-delay: calc(var(--i, 0) * 140ms + 200ms); }
.cx-pipeline__node .cx-icon { width: 18px; height: 18px; }
.cx-pipeline.is-in .cx-pipeline__node { border-color: rgba(249,96,14,.55); color: var(--ember-2); box-shadow: 0 0 0 4px var(--ember-soft); }
.cx-pipeline__stage:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 46px; width: 2px; height: calc(100% - 36px); background: var(--line); }
.cx-pipeline__stage:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 46px; width: 2px; height: 0; background: linear-gradient(to bottom, var(--ember), var(--ember-2)); transition: height var(--dur-slow) var(--ease-out); transition-delay: calc(var(--i, 0) * 140ms + 260ms); }
.cx-pipeline.is-in .cx-pipeline__stage:not(:last-child)::after { height: calc(100% - 36px); }
.cx-pipeline__label { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cx-pipeline__label strong { color: var(--fg-0); font-size: var(--text-sm); font-weight: 600; }
.cx-pipeline__label span { color: var(--fg-3); font-size: 12px; font-family: var(--font-mono); }
.cx-pipeline__packet { position: absolute; left: 15px; top: 10px; width: 6px; height: 14px; border-radius: 3px; background: var(--ember-2); filter: blur(.5px); opacity: 0; }
.cx-pipeline.is-in .cx-pipeline__packet { animation: packet 2.8s linear infinite 1.4s; }
@keyframes packet { 0% { top: 8px; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { top: calc(100% - 20px); opacity: 0; } }

/* 11. TECHNOLOGY MAP ------------------------------------------------------- */
.cx-techmap { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 8px; }
.cx-techmap__lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.cx-techmap__edge { stroke: var(--line-strong); stroke-width: 1; opacity: .7; transition: stroke var(--dur-base), opacity var(--dur-base), stroke-width var(--dur-base); }
.cx-techmap__edge.is-on { stroke: var(--accent); stroke-width: 1.6; opacity: 1; stroke-dasharray: 6 5; animation: dashFlow 1.2s linear infinite; }
.cx-techmap__edge.is-dim { opacity: .15; }
@keyframes dashFlow { to { stroke-dashoffset: -22; } }
.cx-techmap__node { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--r-lg); background: var(--bg-elev); backdrop-filter: blur(8px); border: 1px solid var(--line); color: inherit; transition: border-color var(--dur-base), opacity var(--dur-base), transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base); }
.cx-techmap__node:hover, .cx-techmap__node.is-focus { border-color: var(--line-accent); transform: translateY(-2px); box-shadow: var(--shadow-accent); color: inherit; }
.cx-techmap__node.is-dim { opacity: .38; }
.cx-techmap__node .cx-card__icon { width: 36px; height: 36px; }
.cx-techmap__node .cx-card__icon .cx-icon { width: 18px; height: 18px; }
.cx-techmap__node strong { color: var(--fg-0); font-size: var(--text-sm); }
.cx-techmap__node ul { display: flex; flex-wrap: wrap; gap: 5px; }
.cx-techmap__node li { font-family: var(--font-mono); font-size: 11px; color: var(--fg-2); padding: 3px 7px; border-radius: 4px; background: var(--bg-3); }
.cx-techmap__core { grid-column: 1 / -1; display: flex; flex-direction: column; text-align: center; align-items: center; justify-content: center; gap: 12px; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line-accent); background: linear-gradient(135deg, var(--accent-soft), transparent); color: var(--fg-0); font-weight: 700; letter-spacing: var(--tracking-snug); }
.cx-techmap__core .cx-brand__mark { width: 28px; height: 28px; }

/* Technology detail rows */
.cx-tech-row { display: grid; gap: var(--s-6); padding-block: var(--s-8); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.cx-tech-row__head { display: flex; gap: 14px; align-items: flex-start; }
.cx-tech-row__items { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.cx-tech-item { padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg-2); transition: border-color var(--dur-base), transform var(--dur-base) var(--ease-out); }
.cx-tech-item:hover { border-color: var(--line-accent); transform: translateY(-2px); }
.cx-tech-item strong { display: block; color: var(--fg-0); font-size: var(--text-sm); margin-bottom: 4px; }
.cx-tech-item span { color: var(--fg-2); font-size: 12.5px; line-height: 1.45; }
.cx-tech-row__links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: var(--text-xs); color: var(--fg-3); font-family: var(--font-mono); }

/* 12. PRODUCTS ------------------------------------------------------------- */
.cx-product { position: relative; display: grid; gap: var(--s-6); padding: clamp(1.5rem, 3.5vw, 2.75rem); border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--bg-2); overflow: hidden; isolation: isolate; scroll-margin-top: calc(var(--header-h) + 24px); }
.cx-product--ember { border-color: rgba(249,96,14,.25); }
.cx-product--ember::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(45% 45% at 100% 0%, var(--ember-soft), transparent 70%); }
.cx-product__head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.cx-product__logo { width: 52px; height: 52px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--bg-3); border: 1px solid var(--line-strong); }
.cx-product__logo svg { width: 30px; height: 30px; }
.cx-product__name { font-size: var(--text-xl); }
.cx-product__cat { color: var(--fg-2); font-size: var(--text-sm); margin-top: 2px; }
.cx-product__status { margin-left: auto; }
.cx-product__desc { color: var(--fg-1); max-width: 70ch; line-height: var(--leading-relaxed); }
.cx-product__caps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 8px; }
.cx-product__cap { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: var(--r-sm); background: var(--bg-3); border: 1px solid var(--line); font-size: 13px; color: var(--fg-1); }
.cx-product__cap .cx-icon { width: 14px; height: 14px; color: var(--ember-2); }
.cx-product__deploy { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: var(--text-xs); color: var(--fg-3); font-family: var(--font-mono); }
.cx-product__foot { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; justify-content: space-between; padding-top: var(--s-4); border-top: 1px solid var(--line); }

.cx-logo-sf { display: inline-block; }

/* 13. SOLUTIONS ------------------------------------------------------------ */
.cx-solution-hero { display: grid; gap: var(--s-8); align-items: start; }
.cx-outcomes { display: grid; gap: 12px; }
.cx-outcome { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line); font-size: var(--text-sm); color: var(--fg-1); line-height: 1.5; }
.cx-outcome .cx-icon { width: 16px; height: 16px; color: var(--ok); flex: none; margin-top: 3px; }
.cx-pillars { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.cx-pillar { padding: clamp(1.25rem, 2.5vw, 1.75rem); background: var(--bg-2); border-bottom: 1px solid var(--line); display: grid; gap: 8px; transition: background var(--dur-base); }
.cx-pillar:last-child { border-bottom: 0; }
.cx-pillar:hover { background: var(--bg-3); }
.cx-pillar__n { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--accent); }
.cx-pillar p { color: var(--fg-2); font-size: var(--text-sm); line-height: var(--leading-relaxed); }

/* Narrative sections (alternating rows) */
.cx-story { display: grid; gap: var(--s-8); align-items: center; padding-block: var(--s-8); }
.cx-story + .cx-story { border-top: 1px solid var(--line); }
.cx-story__visual { position: relative; }

/* Principles */
.cx-principle { position: relative; padding: clamp(1.25rem, 2.5vw, 1.75rem) 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 56px 1fr; gap: var(--s-4); }
.cx-principle__num { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--accent); padding-top: 4px; }
.cx-principle h3 { font-size: var(--text-lg); margin-bottom: 8px; }
.cx-principle p { color: var(--fg-2); font-size: var(--text-sm); line-height: var(--leading-relaxed); max-width: 60ch; }

/* 14. INSIGHTS & PROSE ----------------------------------------------------- */
.cx-insight { display: flex; flex-direction: column; gap: 12px; padding: clamp(1.25rem, 2.2vw, 1.6rem) 0; border-top: 1px solid var(--line); color: inherit; transition: padding-left var(--dur-base) var(--ease-out); }
.cx-insight:hover { color: inherit; }
.cx-insight__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--fg-3); letter-spacing: .03em; }
.cx-insight__cat { color: var(--accent); font-weight: 500; }
.cx-insight h3 { font-size: var(--text-lg); transition: color var(--dur-fast); }
.cx-insight:hover h3 { color: var(--accent); }
.cx-insight p { color: var(--fg-2); font-size: var(--text-sm); line-height: var(--leading-relaxed); max-width: 70ch; }
.cx-insight--feature { padding: clamp(1.5rem, 3vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--r-xl); background: linear-gradient(160deg, var(--bg-2), var(--bg-1)); border-top: 1px solid var(--line); }
.cx-insight--feature h3 { font-size: var(--text-2xl); letter-spacing: var(--tracking-tight); max-width: 24ch; }
.cx-insight--feature p { font-size: var(--text-base); }
.cx-insight__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cx-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.cx-filter a { padding: 6px 12px; border-radius: var(--r-full); border: 1px solid var(--line); color: var(--fg-2); font-size: var(--text-xs); font-weight: 500; transition: all var(--dur-fast); }
.cx-filter a:hover, .cx-filter a[aria-current="true"] { color: var(--fg-0); border-color: var(--line-accent); background: var(--accent-soft); }

.cx-article { padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem)); }
.cx-article__head { max-width: 800px; margin-bottom: var(--s-9); }
.cx-article__head h1 { font-size: var(--text-3xl); letter-spacing: var(--tracking-tight); line-height: 1.1; margin-top: var(--s-5); }
.cx-article__lead { margin-top: var(--s-5); font-size: var(--text-md); color: var(--fg-2); line-height: var(--leading-relaxed); }
.cx-prose { max-width: var(--container-narrow); font-size: 1.06rem; line-height: 1.8; color: var(--fg-1); }
.cx-prose h2 { font-size: var(--text-xl); margin: 2.2em 0 .7em; }
.cx-prose h3 { font-size: var(--text-lg); margin: 1.8em 0 .6em; }
.cx-prose p { margin-bottom: 1.2em; }
.cx-prose ul, .cx-prose ol { margin: 0 0 1.4em 1.2em; display: grid; gap: .5em; }
.cx-prose ul { list-style: disc; } .cx-prose ol { list-style: decimal; }
.cx-prose li::marker { color: var(--accent); }
.cx-prose strong { color: var(--fg-0); font-weight: 600; }
.cx-prose code { font-family: var(--font-mono); font-size: .9em; padding: 2px 6px; border-radius: 4px; background: var(--bg-3); color: var(--fg-0); }
.cx-prose pre { margin: 1.5em 0; padding: 18px 20px; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line); overflow-x: auto; font-family: var(--font-mono); font-size: .88rem; line-height: 1.6; color: var(--fg-1); }
.cx-prose pre code { padding: 0; background: none; }
.cx-prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--accent); color: var(--fg-0); font-size: 1.1em; }
.cx-prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-accent); }
.cx-prose a:hover { text-decoration-color: currentColor; }
.cx-prose .cx-callout { margin: 1.6em 0; padding: 16px 18px; border-radius: var(--r-md); border: 1px solid var(--line-accent); background: var(--accent-soft); font-size: .96rem; }
.cx-article__foot { max-width: var(--container-narrow); margin-top: var(--s-9); padding-top: var(--s-6); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: var(--s-4); justify-content: space-between; align-items: center; }

/* 15. FORMS ---------------------------------------------------------------- */
.cx-form { display: grid; gap: 16px; }
.cx-form__row { display: grid; gap: 16px; }
.cx-field { display: grid; gap: 6px; }
.cx-field label { font-size: var(--text-sm); font-weight: 500; color: var(--fg-0); }
.cx-field label small { color: var(--fg-3); font-weight: 400; }
.cx-input, .cx-select, .cx-textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line-strong);
  background: var(--bg-2); color: var(--fg-0); font: inherit; font-size: var(--text-sm);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast);
}
.cx-input::placeholder, .cx-textarea::placeholder { color: var(--fg-3); }
.cx-input:focus, .cx-select:focus, .cx-textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--bg-1); }
.cx-textarea { min-height: 150px; resize: vertical; }
.cx-select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--fg-2) 50%), linear-gradient(135deg, var(--fg-2) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.cx-field__error { font-size: var(--text-xs); color: var(--danger); min-height: 1em; }
.cx-field .input-validation-error { border-color: var(--danger); }
.cx-alert { padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg-2); font-size: var(--text-sm); display: flex; gap: 10px; align-items: flex-start; }
.cx-alert--ok { border-color: rgba(62,207,142,.4); background: rgba(62,207,142,.08); color: var(--fg-0); }
.cx-alert--ok .cx-icon { color: var(--ok); }
.cx-alert--err { border-color: rgba(240,97,107,.4); background: rgba(240,97,107,.08); }
.cx-hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.cx-contact-grid { display: grid; gap: var(--s-8); }
.cx-contact-aside { display: grid; gap: var(--s-4); align-content: start; }

/* 16. CTA ------------------------------------------------------------------ */
.cx-cta { position: relative; overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); }
.cx-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 50% 120%, var(--accent-soft), transparent 70%); }
.cx-cta::after { content: ""; position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; opacity: .35; -webkit-mask-image: radial-gradient(60% 70% at 50% 100%, #000, transparent); mask-image: radial-gradient(60% 70% at 50% 100%, #000, transparent); }
.cx-cta__inner { text-align: center; max-width: 760px; margin-inline: auto; padding-block: var(--section-y); }
.cx-cta__inner .cx-lead { margin: var(--s-5) auto 0; }
.cx-cta__inner .cx-actions { margin-top: var(--s-7); }

/* 17. MOTION --------------------------------------------------------------- */
[data-reveal], [data-reveal-group] > * { opacity: 0; transform: translateY(22px); transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms + var(--d, 0ms)); will-change: opacity, transform; }
[data-reveal="left"] { transform: translateX(-24px); }
[data-reveal="right"] { transform: translateX(24px); }
[data-reveal="scale"] { transform: scale(.96); }
[data-reveal].is-in, [data-reveal-group].is-in > * { opacity: 1; transform: none; }
[data-draw] path, [data-draw] line, [data-draw] polyline { stroke-dasharray: 1200; stroke-dashoffset: 1200; }
[data-draw].is-in path, [data-draw].is-in line, [data-draw].is-in polyline { animation: drawLine 1.8s var(--ease-out) forwards; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
html.is-ready main { animation: pageIn 520ms var(--ease-out) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
html.is-leaving main { opacity: 0; transform: translateY(-6px); transition: opacity 180ms var(--ease-in-out), transform 180ms var(--ease-in-out); }

/* Marquee of technology labels */
.cx-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.cx-marquee__track { display: flex; gap: 12px; width: max-content; animation: marquee 48s linear infinite; }
.cx-marquee:hover .cx-marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Reduced motion: complete experience, no movement */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  [data-reveal], [data-reveal-group] > *, .cx-pipeline__stage, .cx-sig__node { opacity: 1 !important; transform: none !important; }
  .cx-sig__edge { stroke-dashoffset: 0 !important; }
  .cx-sig__pulse, .cx-pipeline__packet, .cx-arch__stream::after { display: none; }
  .cx-marquee__track { animation: none; flex-wrap: wrap; width: auto; }
  .cx-card--tilt, .cx-card--tilt:hover { transform: none; }
  .cx-hero__grid { animation: none; }
  .cx-neural { opacity: .9; }
  html.is-ready main { animation: none; }
}

/* 18. CMS DYNAMIC SECTIONS (retained CMS pipeline) ------------------------- */
.dynamic-section { padding-block: var(--section-y); position: relative; }
.dynamic-section + .dynamic-section { border-top: 1px solid var(--line); }
.hero-section { position: relative; min-height: 70vh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 4rem) var(--gutter) 4rem; isolation: isolate; }
.hero-overlay { position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 50% at 50% 0%, var(--accent-soft), transparent 70%), linear-gradient(to bottom, rgba(7,9,15,.6), var(--bg-0)); }
.hero-content { max-width: 820px; }
.hero-title { font-size: var(--text-display); letter-spacing: var(--tracking-tight); line-height: var(--leading-tight); }
.hero-subtitle { margin: var(--s-6) auto 0; max-width: 60ch; font-size: var(--text-md); color: var(--fg-2); }
.hero-cta { margin-top: var(--s-7); display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary-glow, .btn-outline-glow { display: inline-flex; align-items: center; gap: 8px; padding: .8rem 1.35rem; border-radius: var(--r-md); font-weight: 600; font-size: var(--text-sm); border: 1px solid transparent; transition: transform var(--dur-base) var(--ease-out), background var(--dur-base); }
.btn-primary-glow { background: var(--accent-600); color: #fff; box-shadow: var(--shadow-accent); }
.btn-primary-glow:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }
.btn-outline-glow { border-color: var(--line-strong); color: var(--fg-0); }
.btn-outline-glow:hover { background: var(--accent-soft); color: var(--fg-0); }
.text-center { text-align: center; }
.mb-section { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-badge { display: inline-block; font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: var(--tracking-wider); text-transform: uppercase; color: var(--accent); margin-bottom: var(--s-4); }
.section-title { font-size: var(--text-2xl); letter-spacing: var(--tracking-tight); }
.section-subtitle { color: var(--fg-2); margin-top: var(--s-4); max-width: 60ch; margin-inline: auto; }
.section-body { color: var(--fg-1); line-height: var(--leading-relaxed); margin-top: var(--s-5); }
.section-body ul { list-style: disc; margin-left: 1.2em; display: grid; gap: .4em; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--s-5); }
.service-card { padding: 1.6rem; border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--line); transition: border-color var(--dur-base), transform var(--dur-base) var(--ease-out); }
.service-card:hover { border-color: var(--line-accent); transform: translateY(-3px); }
.service-icon { width: 44px; height: 44px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; font-size: 18px; }
.service-title { font-size: var(--text-lg); margin-bottom: 8px; }
.service-description { color: var(--fg-2); font-size: var(--text-sm); line-height: var(--leading-relaxed); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; }
.stat-card { padding: 1.4rem; border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--line); text-align: center; }
.stat-icon { color: var(--accent); margin-bottom: 8px; }
.stat-value { font-size: var(--text-2xl); letter-spacing: var(--tracking-tight); }
.stat-label { color: var(--fg-2); font-size: var(--text-sm); margin-top: 4px; }
.content-layout { display: grid; gap: var(--s-8); align-items: center; }
.content-image img { border-radius: var(--r-lg); border: 1px solid var(--line); }
.trust-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.trust-item { padding: 12px 18px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg-2); color: var(--fg-1); font-weight: 600; font-size: var(--text-sm); }
.trust-logo { max-height: 36px; }
.cta-block .cta-card { text-align: center; padding: clamp(2rem, 5vw, 4rem); border-radius: var(--r-xl); border: 1px solid var(--line-accent); background: linear-gradient(160deg, var(--accent-soft), transparent 60%); }
.cta-heading { font-size: var(--text-2xl); letter-spacing: var(--tracking-tight); }
.cta-subheading { color: var(--fg-2); margin: var(--s-4) auto var(--s-6); max-width: 60ch; }
.dynamic-page-empty { text-align: center; padding: calc(var(--header-h) + 6rem) var(--gutter) 6rem; }
.custom-html-block { padding-inline: var(--gutter); }

/* 19. RESPONSIVE ----------------------------------------------------------- */
@media (min-width: 640px) {
  .cx-form__row { grid-template-columns: 1fr 1fr; }
  .cx-footer__cols { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
  .cx-grid--split .cx-strip { grid-template-columns: repeat(2, 1fr); }
  .cx-grid--split .cx-strip__item:nth-child(2n) { border-right: 0; }
  .cx-grid--split .cx-grid--2 { grid-template-columns: 1fr 1fr; }
  .cx-techmap { grid-template-columns: repeat(3, 1fr); }
  .cx-techmap__core { grid-column: 2; }
  .cx-hero__inner { grid-template-columns: 1.15fr .85fr; }
  .cx-hero__visual { display: block; }
  .cx-story { grid-template-columns: 1fr 1fr; }
  .cx-story--rev .cx-story__visual { order: -1; }
  .cx-tech-row { grid-template-columns: 300px 1fr; }
  .cx-solution-hero { grid-template-columns: 1.1fr .9fr; }
  .cx-contact-grid { grid-template-columns: 1.2fr .8fr; }
  .cx-showcase__grid { grid-template-columns: 1fr 1fr; }
  .cx-grid--split { grid-template-columns: 1fr 1fr; }
  .cx-product__caps { grid-template-columns: repeat(4, 1fr); }
  .cx-strip__item:nth-child(4n) { border-right: 0; }
}
@media (min-width: 1024px) {
  .cx-nav { display: block; }
  .cx-burger { display: none; }
  .cx-header__cta { display: inline-flex; }
  .cx-footer__top { grid-template-columns: minmax(240px, 0.8fr) 2.6fr; gap: var(--s-9); }
  .cx-footer__cols { grid-template-columns: repeat(6, auto); justify-content: space-between; gap: var(--s-6); }
  .cx-hero__title { max-width: 14ch; }
}
@media (max-width: 767px) {
  .cx-hero__eyebrow > span:last-child:not(.cx-badge) { display: none; }
  .cx-strip__item:nth-child(2n) { border-right: 0; }
  .cx-principle { grid-template-columns: 1fr; gap: 6px; }
  .cx-product__status { margin-left: 0; width: 100%; }
  .cx-hero { min-height: auto; padding-top: calc(var(--header-h) + 3.5rem); }
  .cx-section__row { align-items: flex-start; }
}
@media (max-width: 1023px) {
  .cx-menu { display: none; }
}
@media (hover: none) {
  .cx-card::before, .cx-card::after { display: none; }
}
