/* ===== Hero: cinematic dark navy with the product demonstration as the centrepiece ===== */
.hero {
  position: relative; z-index: 1; display: flow-root; padding-block: clamp(22px, 2.6vw, 36px) 0; color: var(--dx-text-2);
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(33, 198, 232, 0.16), transparent 62%),
    radial-gradient(800px 420px at 96% 0%, rgba(32, 169, 107, 0.11), transparent 60%),
    radial-gradient(700px 360px at 60% 100%, rgba(2, 132, 199, 0.12), transparent 70%),
    #0B1426;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-bg canvas { display: block; width: 100%; height: 100%; opacity: 0.9; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 20, 38, 0) 55%, #0B1426 100%); }
.hero-inner { position: relative; }

.hero-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px clamp(32px, 5vw, 72px); align-items: center; margin-bottom: clamp(32px, 4vw, 56px); }
.hero h1 { font-size: clamp(1.9rem, 3.2vw, 2.9rem); line-height: 1.08; letter-spacing: -0.02em; margin: 0; color: #fff; }
.hero h1 > span { display: block; }
.hero h1 .w-st { color: #35D18B; }
.hero h1 .w-ai { color: #21C6E8; }
.hero-lead { font-size: clamp(1rem, 1.25vw, 1.15rem); line-height: 1.65; margin: 0; color: #C6D4E8; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-cta .btn-dx-ghost { color: #fff; border-color: rgba(184, 201, 223, 0.4); background: rgba(255, 255, 255, 0.04); }
.hero-cta .btn-dx-ghost:hover { background: rgba(33, 198, 232, 0.12); border-color: #21C6E8; color: #fff; }
@media (max-width: 991.98px) { .hero-top { grid-template-columns: 1fr; } .hero-lead { max-width: 640px; } }

/* Dark-to-light transition: the demo console floats over the edge of the hero. */
.hero .hx { margin-bottom: calc(-1 * clamp(40px, 5vw, 72px)); }
.hero + #products > .product-section:first-child { padding-top: calc(var(--section-y) + clamp(40px, 5vw, 72px)); }

/* ===== Demo frame ===== */
.hx {
  position: relative; z-index: 2; border-radius: var(--radius-lg); border: 1px solid rgba(184, 201, 223, 0.22);
  padding: 12px 16px 12px;
  background:
    radial-gradient(900px 300px at 50% 0%, rgba(33, 198, 232, 0.08), transparent 70%),
    linear-gradient(180deg, #0f1d36, #0a1426);
  box-shadow: 0 40px 90px -30px rgba(6, 12, 26, 0.75), 0 0 0 1px rgba(33, 198, 232, 0.06), 0 0 100px -40px rgba(33, 198, 232, 0.45);
}
.hx-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 0 2px 10px; }
.hx-modes, .hx-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.hx-mode, .hx-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 7px 14px; border-radius: 999px; cursor: pointer;
  font: 600 0.84rem/1 var(--font-heading); color: var(--dx-text-2); background: rgba(184, 201, 223, 0.06); border: 1px solid var(--dx-border);
  transition: background-color .15s, border-color .15s, color .15s;
}
.hx-mode:hover, .hx-btn:hover { color: #fff; border-color: var(--dx-border-strong); background: rgba(184, 201, 223, 0.13); }
.hx-mode i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.hx-mode-st i { background: #35D18B; } .hx-mode-in i { background: #38BDF8; } .hx-mode-fg i { background: #F5B544; }
.hx-mode.is-active { color: #06101F; background: #21C6E8; border-color: #21C6E8; }
.hx-mode-st.is-active { background: #35D18B; border-color: #35D18B; }
.hx-mode-in.is-active { background: #38BDF8; border-color: #38BDF8; }
.hx-mode-fg.is-active { background: #F5B544; border-color: #F5B544; }
.hx-mode.is-active i { background: #06101F; }
.hx-btn svg { width: 14px; height: 14px; fill: currentColor; }
.hx-btn .icon-play { display: none; }
.hx-btn.is-paused .icon-play { display: inline; }
.hx-btn.is-paused .icon-pause { display: none; }
.no-js .hx-toolbar { display: none; }
.hx-mode:focus-visible, .hx-btn:focus-visible { outline: 2px solid #21C6E8; outline-offset: 2px; }

.hx-stage { position: relative; }
.hx-desktop { display: block; }
.hx-mobile { display: none; }
.hx-svg { display: block; width: 100%; height: auto; max-height: max(500px, calc(100vh - 300px)); margin-inline: auto; overflow: visible; }

/* Ready state: before the engine starts the finished composition shows (no-JS, reduced motion, slow script load). */
.hx-dyn { opacity: var(--hx-dyn, 1); }
.hx-foot { padding: 10px 2px 0; display: grid; gap: 8px; }
.hx-prog { height: 3px; border-radius: 3px; background: rgba(184, 201, 223, 0.14); overflow: hidden; }
.hx-prog i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(1); background: linear-gradient(90deg, #35D18B, #21C6E8, #F5B544); }
.hx-disclaimer { font-size: 0.78rem; margin: 0; color: #8FA5C2; text-align: center; }

/* ===== SVG typography and shapes ===== */
.hx-svg text { font-family: var(--font-body); }
.hx-t { fill: #F4F8FF; } .hx-t2 { fill: #A9BCD6; } .hx-ds { fill: #35D18B; } .hx-di { fill: #38BDF8; }
.hx-label { fill: #8FA5C2; font-size: 10.5px; font-weight: 700; letter-spacing: 0.15em; }
.hx-label-hi { fill: #21C6E8; }
.f9 { font-size: 9px; } .f10 { font-size: 10px; } .f11 { font-size: 11px; } .f12 { font-size: 12px; } .f14 { font-size: 14px; } .f15 { font-size: 15px; }
.w6 { font-weight: 600; } .w7 { font-weight: 700; } .w8 { font-weight: 800; }
.hx-svg .f14, .hx-svg .f15 { font-family: var(--font-heading); }

.hx-src { fill: #12233C; stroke: rgba(184, 201, 223, 0.2); }
.hx-src-lit { fill: rgba(33, 198, 232, 0.1); stroke: #21C6E8; stroke-width: 1.4; }
.hx-icon { fill: none; stroke: #B8C9DF; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hx-rail { stroke: rgba(184, 201, 223, 0.16); stroke-width: 1.5; }
.hx-rail-lit { stroke: rgba(33, 198, 232, 0.75); stroke-width: 1.8; stroke-linecap: round; }
.hx-rail-studio { stroke: rgba(53, 209, 139, 0.8); } .hx-rail-insight { stroke: rgba(56, 189, 248, 0.8); } .hx-rail-forge { stroke: rgba(245, 181, 68, 0.85); }
.hx-pkt { opacity: 0; }
.hx-pkt-cy { fill: #21C6E8; } .hx-pkt-studio { fill: #35D18B; } .hx-pkt-insight { fill: #38BDF8; } .hx-pkt-forge { fill: #F5B544; }

/* Engine: a compact chip, not a glowing sphere */
.hx-ring { fill: none; stroke: rgba(33, 198, 232, 0.35); stroke-width: 1; stroke-dasharray: 3 7; transform-origin: center; animation: hx-spin 26s linear infinite; }
.hx-ring-2 { stroke: rgba(33, 198, 232, 0.2); stroke-dasharray: 1 9; animation-duration: 38s; animation-direction: reverse; }
.hx-chip-body { fill: url(#hx-g-chip); stroke: rgba(33, 198, 232, 0.55); stroke-width: 1.5; }
.hx-chip-lit { fill: none; stroke: #21C6E8; stroke-width: 2.2; }
.hx-chip-lines { fill: none; stroke: rgba(33, 198, 232, 0.55); stroke-width: 1.6; stroke-linecap: round; }
.hx-chip-core { fill: #0B1426; stroke: rgba(33, 198, 232, 0.7); }
.hx-chip-ai { font: 800 30px var(--font-heading); fill: #fff; letter-spacing: 0.02em; }
.hx-node { fill: #21C6E8; animation: hx-blink 2.2s ease-in-out infinite; }
.hx-n2 { animation-delay: .5s; } .hx-n3 { animation-delay: 1.1s; } .hx-n4 { animation-delay: 1.6s; }
@keyframes hx-spin { to { transform: rotate(360deg); } }
@keyframes hx-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* Lanes */
.hx-lane { transition: opacity .45s ease; }
.hx[data-mode="studio"] .hx-lane:not(.hx-lane-studio), .hx[data-mode="insight"] .hx-lane:not(.hx-lane-insight), .hx[data-mode="forge"] .hx-lane:not(.hx-lane-forge) { opacity: 0.2; }
.hx-panel { fill: #0e1c33; stroke: rgba(184, 201, 223, 0.2); stroke-width: 1.2; }
.hx-panel-lit { fill: none; stroke-width: 1.6; }
.hx-lane-studio .hx-panel-lit { stroke: #35D18B; } .hx-lane-insight .hx-panel-lit { stroke: #38BDF8; } .hx-lane-forge .hx-panel-lit { stroke: #F5B544; }
.hx-lane-dot { fill: #8FA5C2; }
.hx-lane-studio .hx-lane-dot, .hx-lane-studio .hx-lane-name { fill: #35D18B; } .hx-lane-insight .hx-lane-dot, .hx-lane-insight .hx-lane-name { fill: #38BDF8; } .hx-lane-forge .hx-lane-dot, .hx-lane-forge .hx-lane-name { fill: #F5B544; }
.hx-sep { stroke: rgba(184, 201, 223, 0.14); }

.hx-step-bg { fill: rgba(184, 201, 223, 0.05); stroke: rgba(184, 201, 223, 0.16); transition: fill .25s, stroke .25s; }
.hx-step-t { fill: #8FA5C2; transition: fill .25s; }
.hx-step.done .hx-step-t { fill: #C6D4E8; }
.hx-step.act .hx-step-t { fill: #fff; }
.hx-lane-studio .hx-step.act .hx-step-bg { fill: rgba(53, 209, 139, 0.2); stroke: #35D18B; } .hx-lane-studio .hx-step.done .hx-step-bg { stroke: rgba(53, 209, 139, 0.5); }
.hx-lane-insight .hx-step.act .hx-step-bg { fill: rgba(56, 189, 248, 0.2); stroke: #38BDF8; } .hx-lane-insight .hx-step.done .hx-step-bg { stroke: rgba(56, 189, 248, 0.5); }
.hx-lane-forge .hx-step.act .hx-step-bg { fill: rgba(245, 181, 68, 0.2); stroke: #F5B544; } .hx-lane-forge .hx-step.done .hx-step-bg { stroke: rgba(245, 181, 68, 0.5); }

/* Lane artifacts */
.hx-card { fill: #14263F; stroke: rgba(184, 201, 223, 0.22); stroke-width: 1; }
.hx-card-in { fill: rgba(184, 201, 223, 0.07); stroke: rgba(184, 201, 223, 0.14); }
.hx-card-hi { stroke: rgba(53, 209, 139, 0.55); }
.hx-card-fg { stroke: rgba(245, 181, 68, 0.6); }
.hx-hd { fill: #20A96B; }
.hx-skel { stroke: rgba(184, 201, 223, 0.28); stroke-width: 2.4; stroke-linecap: round; fill: none; }
.hx-skel-fg { stroke: rgba(245, 181, 68, 0.5); stroke-width: 2.4; stroke-linecap: round; fill: none; }
.hx-rel path { stroke: #35D18B; stroke-width: 1.6; stroke-linecap: round; }
.hx-dot-fill { fill: #35D18B; }
.hx-track { fill: rgba(184, 201, 223, 0.14); }
.hx-fill { transform-box: fill-box; transform-origin: 0 50%; }
.hx-fill-st { fill: #35D18B; }
.hx-axis { stroke: rgba(184, 201, 223, 0.3); stroke-width: 1.2; stroke-linecap: round; }
.hx-line { stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hx-line-st { stroke: #35D18B; } .hx-line-in { stroke: #38BDF8; } .hx-line-fg { stroke: #F5B544; stroke-width: 1.8; }
.hx-dash { stroke-dasharray: 5 5; }
.hx-band-st { fill: rgba(53, 209, 139, 0.18); } .hx-band-in { fill: rgba(56, 189, 248, 0.18); }
.hx-area-in { fill: rgba(56, 189, 248, 0.16); }
.hx-pt-st { fill: #35D18B; } .hx-pt-in { fill: #38BDF8; }
.hx-ok-st { fill: #35D18B; } .hx-ok-in { fill: #38BDF8; } .hx-ok-fg { fill: #F5B544; }
.hx-tick { fill: none; stroke: #06101F; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hx-kpi { fill: rgba(56, 189, 248, 0.5); } .hx-up { fill: #35D18B; }
.hx-bar { transform-box: fill-box; transform-origin: 50% 100%; }
.hx-bar-in { fill: #38BDF8; } .hx-bar-fg { fill: #F5B544; }
.hx-donut-track { stroke: rgba(184, 201, 223, 0.16); stroke-width: 6; }
.hx-donut { stroke: #38BDF8; stroke-width: 6; stroke-linecap: round; }
.hx-tag { fill: rgba(184, 201, 223, 0.08); stroke: rgba(184, 201, 223, 0.25); }
.hx-tag-in { stroke: rgba(56, 189, 248, 0.6); } .hx-tag-fg { stroke: rgba(245, 181, 68, 0.55); fill: rgba(245, 181, 68, 0.08); }
.hx-fg-fill { fill: #F5B544; }
.hx-conv path { stroke: #F5B544; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

[data-fx="pop"], [data-fx="grow"], [data-fx="scalex"], [data-fx="fill"] { transform-box: fill-box; transform-origin: center; }
[data-fx="grow"] { transform-origin: 50% 100%; }
[data-fx="scalex"], [data-fx="fill"] { transform-origin: 0 50%; }

/* Until the engine is ready (slow script load) the composition is shown finished; with no JS it simply stays that way. */

/* ===== Simplified mobile demonstration ===== */
.hxm { display: grid; gap: 12px; }
.hxm .hx-label { margin: 0 0 8px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; color: #8FA5C2; }
.hxm-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; opacity: var(--hx-dyn, 1); }
.hxm-chips li { padding: 7px 12px; border-radius: 999px; font: 600 0.82rem/1 var(--font-heading); color: #E3ECF8; background: #12233C; border: 1px solid rgba(33, 198, 232, 0.5); transform-box: fill-box; }
.hxm-engine { position: relative; display: grid; place-items: center; padding: 14px; border-radius: 14px; background: #12233C; border: 1px solid rgba(184, 201, 223, 0.2); }
.hxm-engine > span { position: absolute; inset: 0; border-radius: 14px; border: 1.5px solid #21C6E8; box-shadow: 0 0 24px -6px rgba(33, 198, 232, 0.6); }
.hxm-engine strong { font: 800 0.9rem var(--font-heading); letter-spacing: 0.08em; color: #fff; text-transform: uppercase; }
.hxm-card { padding: 14px 16px 16px; border-radius: 14px; background: #0e1c33; border: 1px solid rgba(184, 201, 223, 0.2); border-top-width: 3px; }
.hxm-studio { border-top-color: #35D18B; } .hxm-insight { border-top-color: #38BDF8; } .hxm-forge { border-top-color: #F5B544; }
.hxm-card header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; margin-bottom: 10px; }
.hxm-card header strong { font: 800 1rem var(--font-heading); color: #fff; }
.hxm-studio header strong { color: #35D18B; } .hxm-insight header strong { color: #38BDF8; } .hxm-forge header strong { color: #F5B544; }
.hxm-card header span { font-size: 0.8rem; color: #A9BCD6; }
.hxm-seg { height: 3px; border-radius: 3px; background: rgba(184, 201, 223, 0.14); overflow: hidden; margin-bottom: 10px; }
.hxm-seg i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; }
.hxm-studio .hxm-seg i { background: #35D18B; } .hxm-insight .hxm-seg i { background: #38BDF8; } .hxm-forge .hxm-seg i { background: #F5B544; }
.hxm-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; opacity: var(--hx-dyn, 1); }
.hxm-steps li { padding: 8px 12px; border-radius: 9px; font-size: 0.86rem; font-weight: 600; color: #8FA5C2; background: rgba(184, 201, 223, 0.05); border: 1px solid rgba(184, 201, 223, 0.14); transition: color .25s, background-color .25s, border-color .25s; }
.hxm-steps li.done { color: #C6D4E8; }
.hxm-steps li.act { color: #fff; }
.hxm-studio .hxm-steps li.act { background: rgba(53, 209, 139, 0.2); border-color: #35D18B; } .hxm-insight .hxm-steps li.act { background: rgba(56, 189, 248, 0.2); border-color: #38BDF8; } .hxm-forge .hxm-steps li.act { background: rgba(245, 181, 68, 0.2); border-color: #F5B544; }
.hxm-note { margin: 10px 0 0; font-size: 0.78rem; color: #8FA5C2; }
.hx[data-mode="studio"] .hxm-card:not(.hxm-studio), .hx[data-mode="insight"] .hxm-card:not(.hxm-insight), .hx[data-mode="forge"] .hxm-card:not(.hxm-forge) { display: none; }

@media (max-width: 767.98px) {
  .hx { padding: 10px 12px; }
  .hx-desktop { display: none; }
  .hx-mobile { display: block; }
  .hx-mode { padding: 7px 11px; font-size: 0.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-ring, .hx-node { animation: none; }
  .hx-lane, .hxm-steps li { transition: none; }
}

/* No flash of the finished composition while the engine boots; a CSS fallback reveals it if the script never arrives. */
html:not(.no-js) .hx:not(.is-ready) .hx-stage { opacity: 0; animation: hx-fallback .01s 3.5s forwards; }
.hx-stage { transition: opacity .35s ease; }
@keyframes hx-fallback { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { html:not(.no-js) .hx:not(.is-ready) .hx-stage { opacity: 1; animation: none; } }

/* ===== Standalone product demos (homepage product sections) ===== */
.pdemo { margin: 0; }
.hx-solo { padding: 14px; box-shadow: 0 30px 70px -34px rgba(6, 12, 26, 0.7), 0 0 80px -40px rgba(33, 198, 232, 0.4); }
.hx-solo .hx-svg { max-height: none; }
.pdemo figcaption { margin-top: 10px; font-size: 0.82rem; color: var(--dx-text-2); text-align: center; }
.product-section .product-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); }
.product-section .product-grid.reverse { grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr); }
@media (max-width: 991.98px) { .product-section .product-grid, .product-section .product-grid.reverse { grid-template-columns: 1fr; } }


/* ===== Roomier text in the homepage product sections ===== */
.product-section .eyebrow { margin-bottom: 22px; }
.product-section h2 { margin-bottom: 28px; line-height: 1.18; max-width: 16em; text-wrap: balance; }
.product-section .product-copy .lead { margin-bottom: 44px; line-height: 1.7; }
.product-section .point-grid { gap: 28px 32px; margin-bottom: 52px; }
.product-section .point-grid li { line-height: 1.4; }
.product-section .product-cta { gap: 18px 32px; }
.product-section .product-note { margin-top: 44px; }
