/* zenTx — Serene Clinical Intelligence design system (see DESIGN.md)
   Light theme is the default; dark applies via [data-theme="dark"] or the OS setting. */

/* ---------- Tokens ---------- */
:root {
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --subtle: #F0F4F8;
  --subtle-2: #E4EDF7;
  --border: #E2E8F0;
  --divider: #F1F5F9;
  --ink: #1F2A44;
  --ink-2: #334155;
  --muted: #64748B;

  --primary: #006CB6;
  --primary-hover: #005B9A;
  --primary-ink: #FFFFFF;
  --primary-soft: #E6F0FA;
  --link: #006CB6;
  --peri: #97B5DA;
  --peri-soft: #EAF1FA;

  --accent: #F97316;
  --accent-text: #C2410C;
  --accent-soft: #FFF7ED;

  --ok: #047857;
  --ok-dot: #10B981;
  --ok-soft: #E6F9F2;
  --danger: #DC2626;
  --danger-hover: #B91C1C;

  --feature-from: #006CB6;
  --feature-to: #00497D;
  --feature-ink: #FFFFFF;
  --feature-muted: rgba(255, 255, 255, 0.82);
  --feature-chip: rgba(255, 255, 255, 0.14);

  --glass: rgba(255, 255, 255, 0.86);
  --shadow-1: 0 4px 20px -2px rgba(31, 42, 68, 0.05), 0 2px 6px -1px rgba(31, 42, 68, 0.03);
  --shadow-2: 0 12px 32px -4px rgba(0, 108, 182, 0.10), 0 4px 12px -2px rgba(31, 42, 68, 0.05);
  --shadow-3: 0 24px 48px -12px rgba(31, 42, 68, 0.14);
  --ring: 0 0 0 3px rgba(0, 108, 182, 0.22);
  --hero-glow: radial-gradient(60% 50% at 50% 0%, rgba(0, 108, 182, 0.10), transparent 70%),
               radial-gradient(30% 30% at 85% 20%, rgba(249, 115, 22, 0.06), transparent 70%);

  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, Consolas, monospace;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;

  --hero-bg: #FFFFFF;
  --hero-title: #000000;
  --hero-lead: #25235D;

  --plate-bg: #FFFFFF;
  --plate-border: #E2E8F0;
  --plate-ink: #1F2A44;
  --plate-muted: #64748B;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --gutter-fluid: clamp(16px, 3vw, 40px);
  --section-y: clamp(56px, 8vw, 96px);
  --header-h: 76px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A1120;
    --surface: #0F192C;
    --subtle: #152238;
    --subtle-2: #1B2B46;
    --border: #22324E;
    --divider: #1A2740;
    --ink: #E7EDF7;
    --ink-2: #C3CEDF;
    --muted: #8FA0BA;
    --primary: #4FA6EC;
    --primary-hover: #74B9F1;
    --primary-ink: #04172B;
    --primary-soft: #12304F;
    --link: #7CC0F5;
    --peri: #4C6E97;
    --peri-soft: #16294A;
    --accent: #FB923C;
    --accent-text: #FDBA74;
    --accent-soft: #2E1B0E;
    --ok: #34D399;
    --ok-dot: #34D399;
    --ok-soft: #0E2E25;
    --danger: #F87171;
    --danger-hover: #FCA5A5;
    --feature-from: #0B4A80;
    --feature-to: #0A2A4D;
    --feature-ink: #FFFFFF;
    --feature-muted: rgba(255, 255, 255, 0.78);
    --feature-chip: rgba(255, 255, 255, 0.10);
    --glass: rgba(15, 25, 44, 0.86);
  --hero-bg: #0F192C;
  --plate-bg: #F4F7FB;
  --plate-border: #F4F7FB;
  --plate-ink: #1F2A44;
  --plate-muted: #475569;
  --hero-title: #FFFFFF;
  --hero-lead: #C9C7F2;
    --hero-bg: #0F192C;
    --plate-bg: #F4F7FB;
    --plate-border: #F4F7FB;
    --plate-ink: #1F2A44;
    --plate-muted: #475569;
    --hero-title: #FFFFFF;
    --hero-lead: #C9C7F2;
    --shadow-1: 0 4px 20px -2px rgba(0, 0, 0, 0.35);
    --shadow-2: 0 12px 32px -4px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(79, 166, 236, 0.06);
    --shadow-3: 0 24px 48px -12px rgba(0, 0, 0, 0.6);
    --ring: 0 0 0 3px rgba(79, 166, 236, 0.35);
    --hero-glow: radial-gradient(60% 50% at 50% 0%, rgba(79, 166, 236, 0.14), transparent 70%),
                 radial-gradient(30% 30% at 85% 20%, rgba(251, 146, 60, 0.07), transparent 70%);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0A1120;
  --surface: #0F192C;
  --subtle: #152238;
  --subtle-2: #1B2B46;
  --border: #22324E;
  --divider: #1A2740;
  --ink: #E7EDF7;
  --ink-2: #C3CEDF;
  --muted: #8FA0BA;
  --primary: #4FA6EC;
  --primary-hover: #74B9F1;
  --primary-ink: #04172B;
  --primary-soft: #12304F;
  --link: #7CC0F5;
  --peri: #4C6E97;
  --peri-soft: #16294A;
  --accent: #FB923C;
  --accent-text: #FDBA74;
  --accent-soft: #2E1B0E;
  --ok: #34D399;
  --ok-dot: #34D399;
  --ok-soft: #0E2E25;
  --danger: #F87171;
  --danger-hover: #FCA5A5;
  --feature-from: #0B4A80;
  --feature-to: #0A2A4D;
  --feature-ink: #FFFFFF;
  --feature-muted: rgba(255, 255, 255, 0.78);
  --feature-chip: rgba(255, 255, 255, 0.10);
  --glass: rgba(15, 25, 44, 0.86);
  --shadow-1: 0 4px 20px -2px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 12px 32px -4px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(79, 166, 236, 0.06);
  --shadow-3: 0 24px 48px -12px rgba(0, 0, 0, 0.6);
  --ring: 0 0 0 3px rgba(79, 166, 236, 0.35);
  --hero-glow: radial-gradient(60% 50% at 50% 0%, rgba(79, 166, 236, 0.14), transparent 70%),
               radial-gradient(30% 30% at 85% 20%, rgba(251, 146, 60, 0.07), transparent 70%);
  color-scheme: dark;
  --hero-bg: #0F192C;
  --hero-title: #FFFFFF;
  --hero-lead: #C9C7F2;
}

/* ---------- 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;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
body.nav-open { overflow: hidden; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  display: inline-block;
  width: 1em;
  height: 1em;
  overflow: hidden;
  white-space: nowrap;
  direction: ltr;
  flex-shrink: 0;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--primary); color: var(--primary-ink);
  padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.container-fluid {
  width: 100%;
  padding-left: max(var(--gutter-fluid), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter-fluid), env(safe-area-inset-right, 0px));
}

/* ---------- Buttons, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--r-full);
  padding: 10px 22px; font-size: 15px; font-weight: 600; line-height: 1.3;
  text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease), color .2s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 7px 16px; font-size: 14px; }
.btn-lg { padding: 13px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn .material-symbols-outlined { font-size: 18px; }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: var(--primary-hover); box-shadow: 0 6px 16px -2px rgba(0, 108, 182, 0.3); }
.btn-soft { background: var(--subtle); color: var(--link); border-color: var(--peri); }
.btn-soft:hover { background: var(--subtle-2); }
.btn-danger { background: var(--danger); color: #FFFFFF; }
.btn-danger:hover { background: var(--danger-hover); }
:root[data-theme="dark"] .btn-danger { color: #2A0707; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-danger { color: #2A0707; } }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: var(--r-full);
  border: 1px solid var(--border); background: var(--surface); color: var(--ink);
  transition: background-color .2s, border-color .2s, color .2s;
}
.icon-btn:hover { background: var(--subtle); }
.icon-btn[aria-pressed="true"] { background: var(--primary-soft); color: var(--link); border-color: var(--peri); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: var(--r-full);
  background: var(--subtle); color: var(--ink-2);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.01em; line-height: 1.3;
}
.chip .material-symbols-outlined { font-size: 16px; }
.chip-sm { padding: 3px 10px; font-size: 11.5px; }
.chip-primary { background: var(--primary-soft); color: var(--link); }
.chip-ok { background: var(--ok-soft); color: var(--ok); }
.chip-accent { background: var(--accent-soft); color: var(--accent-text); }

.live-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(249, 115, 22, 0); }
  100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.card-elevated { box-shadow: var(--shadow-2); border-radius: var(--r-xl); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--link);
}
.eyebrow .material-symbols-outlined { font-size: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 1px 12px rgba(15, 27, 52, 0.06); }

.header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 24px; height: var(--header-h);
}
.brand { justify-self: start; display: inline-flex; align-items: center; color: var(--ink); }
.brand:hover { text-decoration: none; }
.logo { display: block; width: auto; height: 46px; max-width: none; }
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}

.primary-nav ul { display: flex; align-items: center; gap: 4px; }
.primary-nav a {
  position: relative; display: block; padding: 10px 14px;
  color: var(--ink-2); font-size: 15px; font-weight: 500; white-space: nowrap;
  transition: color .2s;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--primary);
  transform: scaleX(0); transform-origin: center; transition: transform .25s var(--ease);
}
.primary-nav a:hover { color: var(--ink); text-decoration: none; }
.primary-nav a:hover::after { transform: scaleX(1); opacity: .35; }
.primary-nav a.is-active { color: var(--link); }
.primary-nav a.is-active::after { transform: scaleX(1); opacity: 1; }

.header-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.site-header .theme-toggle { border-color: transparent; background: transparent; color: var(--ink-2); }
.site-header .theme-toggle:hover { background: var(--subtle); color: var(--ink); }
.header-cta { padding: 10px 20px; font-size: 14.5px; }
.header-cta .material-symbols-outlined { font-size: 18px; transition: transform .2s var(--ease); }
.header-cta:hover .material-symbols-outlined { transform: translateX(3px); }
.theme-toggle .icon-light { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-dark { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-light { display: inline-block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-dark { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-light { display: inline-block; }
}
.menu-toggle { display: none; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: inline-block; }

.mobile-nav {
  border-top: 1px solid var(--border);
  background: var(--surface);
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  padding-block: 12px 24px;
}
.mobile-nav nav { display: flex; flex-direction: column; gap: 16px; }
.mobile-nav ul { display: flex; flex-direction: column; }
.mobile-nav ul a {
  display: block; padding: 14px 4px; border-bottom: 1px solid var(--divider);
  color: var(--ink); font-size: 17px; font-weight: 600;
}
.mobile-phones { display: flex; flex-direction: column; gap: 8px; }

/* Menu motion */
@keyframes nav-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.brand, .primary-nav li, .header-actions { animation: nav-in .5s var(--ease) both; }
.primary-nav li:nth-child(1) { animation-delay: .05s; }
.primary-nav li:nth-child(2) { animation-delay: .1s; }
.primary-nav li:nth-child(3) { animation-delay: .15s; }
.primary-nav li:nth-child(4) { animation-delay: .2s; }
.primary-nav li:nth-child(5) { animation-delay: .25s; }
.primary-nav li:nth-child(6) { animation-delay: .3s; }
.primary-nav li:nth-child(7) { animation-delay: .35s; }
.header-actions { animation-delay: .4s; }
.mobile-nav:not([hidden]) { animation: nav-in .3s var(--ease) both; }
.mobile-nav:not([hidden]) li { animation: nav-in .35s var(--ease) both; }
.mobile-nav li:nth-child(2) { animation-delay: .03s; }
.mobile-nav li:nth-child(3) { animation-delay: .06s; }
.mobile-nav li:nth-child(4) { animation-delay: .09s; }
.mobile-nav li:nth-child(5) { animation-delay: .12s; }
.mobile-nav li:nth-child(6) { animation-delay: .15s; }
.mobile-nav li:nth-child(7) { animation-delay: .18s; }
.mobile-nav ul a { transition: color .2s, padding-left .25s var(--ease); }
.mobile-nav ul a:hover { color: var(--link); padding-left: 10px; text-decoration: none; }
.menu-toggle .material-symbols-outlined { transition: transform .3s var(--ease); }
.menu-toggle[aria-expanded="true"] .icon-close { animation: spin-in .3s var(--ease); }
@keyframes spin-in { from { transform: rotate(-90deg); opacity: 0; } to { transform: none; opacity: 1; } }
.mobile-phones a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: 12px var(--section-y); background: var(--hero-bg); overflow-x: clip; }
.hero > .container { position: relative; z-index: 1; }

/* Hero background slider (assets/js/hero-bg.js). Photos of people using zenTx
   cross-fade with a slow zoom, drift with the pointer and sit
   under a wash in the page colour so the copy stays readable. Nothing here changes the theme. */
.hero-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: var(--hero-bg);
  container-type: size; --hs-wash-r: 30%;
}
:root[data-theme="dark"] .hero-bg { --hs-wash-r: 45%; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-bg { --hs-wash-r: 45%; } }
.hs-bg {
  position: absolute; inset: -24px; opacity: 0; transition: opacity 1.8s ease;
  transform: translate3d(calc(var(--mx, 0) * -22px), calc(var(--my, 0) * -14px), 0);
}
.hs-bg.is-on { opacity: 1; }
.hs-bg > img { display: block; width: 100%; height: 100%; transform: scale(1.02); }
.hs-bg > img { object-fit: cover; object-position: 70% 30%; filter: saturate(.9); }
.hs-bg.is-on > img { animation: hs-zoom 11s ease-out both; }
:root[data-theme="dark"] .hs-bg > img { filter: saturate(.85) brightness(.7); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hs-bg > img { filter: saturate(.85) brightness(.7); } }
@keyframes hs-zoom { from { transform: scale(1.02); } to { transform: scale(1.12); } }
/* Slides 2-6: the device (phone or laptop showing a zenTx screen) is centred in the free strip right of
   the demo phone and sized to fit it; the photo fades out around it. Positions are in hero units (cq*),
   offset by the layer's 24px bleed. */
.hs-shot-box {
  --strip: calc(50cqw - min(100cqw, var(--container)) / 2 + var(--gutter) + 100px);
  position: absolute; display: block; aspect-ratio: var(--ar);
  width: min(calc(var(--strip) * .86 / var(--sw)), calc(60cqh * var(--ar) / var(--sh)));
  left: calc(24px + 50cqw + min(100cqw, var(--container)) / 2 - var(--gutter) - 100px + var(--strip) / 2);
  top: calc(24px + 44cqh);
  transform: translate(calc(var(--fx) * -100%), calc(var(--fy) * -100%));
  -webkit-mask-image: radial-gradient(ellipse 46% 62% at calc(var(--fx) * 100%) calc(var(--fy) * 100%), #000 45%, transparent 100%);
          mask-image: radial-gradient(ellipse 46% 62% at calc(var(--fx) * 100%) calc(var(--fy) * 100%), #000 45%, transparent 100%);
}
.hs-shot-art { display: block; width: 100%; height: 100%; font-family: var(--font); transform-origin: calc(var(--fx) * 100%) calc(var(--fy) * 100%); }
.hs-shot-art [lang="bn"] { font-family: "Noto Sans Bengali", var(--font); }
.hs-bg.is-on .hs-shot-art { animation: hs-zoom 11s ease-out both; }
:root[data-theme="dark"] .hs-shot-art > image { filter: brightness(.75); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hs-shot-art > image { filter: brightness(.75); } }
/* Mobile and tablet: no photo slider. Instead a "living aurora" under a connected network (below and hero-mobile.js). */
@media (max-width: 1079px) {
  .hero-bg, .hero-scenes { display: none !important; }
  .hero:has(> .hero-scenes:not([hidden])) { padding-bottom: var(--section-y); }
}
.hero-m-fx { display: none; }
@media (max-width: 1079px) {
  .hero-m-fx { display: block; position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
  /* Three soft glows: drift on their own (transform), and follow finger, tilt and scroll (translate, hero-mobile.js) */
  .hma {
    position: absolute; width: 130vw; height: 130vw; max-width: 900px; max-height: 900px; border-radius: 50%;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--c) var(--a, 26%), transparent), transparent);
    will-change: transform, translate;
  }
  .hma-1 { --c: var(--primary); top: -45vw; left: -50vw; animation: hma-1 19s ease-in-out infinite alternate; }
  .hma-2 { --c: #22B8CF; top: 18%; right: -60vw; animation: hma-2 23s ease-in-out infinite alternate; }
  .hma-3 { --c: #4F46E5; --a: 20%; top: 52%; left: -40vw; animation: hma-3 27s ease-in-out infinite alternate; }
}
:root[data-theme="dark"] .hma { --a: 30%; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hma { --a: 30%; } }
/* Connected network (canvas, hero-mobile.js) over the aurora, under the content. */
@media (max-width: 1079px) {
  .hmn {
    position: absolute; inset: 0; width: 100%; height: 100%;
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
            mask-image: linear-gradient(to bottom, #000 70%, transparent);
  }
}
@keyframes hma-1 { to { transform: translate(18vw, 14vw) scale(1.12); } }
@keyframes hma-2 { to { transform: translate(-22vw, -10vw) scale(.9); } }
@keyframes hma-3 { to { transform: translate(16vw, -16vw) scale(1.15); } }
@media (max-width: 1079px) {
  .hs-shot-box {
    left: 50%; top: 50%; width: max(calc(100cqw + 48px), calc((100cqh + 48px) * var(--ar)));
    transform: translate(-50%, -50%); -webkit-mask-image: none; mask-image: none;
  }
}
.hs-wash {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, transparent 62%, var(--hero-bg) 100%),
    linear-gradient(90deg,
      var(--hero-bg) 0%,
      color-mix(in srgb, var(--hero-bg) 93%, transparent) 30%,
      color-mix(in srgb, var(--hero-bg) 72%, transparent) 52%,
      color-mix(in srgb, var(--hero-bg) var(--hs-wash-r), transparent) 100%);
}
@media (max-width: 1080px) {
  .hs-wash { background: linear-gradient(to bottom, color-mix(in srgb, var(--hero-bg) 86%, transparent), color-mix(in srgb, var(--hero-bg) 92%, transparent) 70%, var(--hero-bg)); }
}
.hero-scenes {
  position: absolute; z-index: 2; right: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); bottom: 22px;
  display: flex; align-items: center; gap: 14px; padding: 8px 14px 8px 8px; border-radius: var(--r-full);
  background: color-mix(in srgb, var(--surface) 72%, transparent); border: 1px solid var(--border); box-shadow: var(--shadow-1);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.hero-scenes[hidden] { display: none; }
.hero:has(> .hero-scenes:not([hidden])) { padding-bottom: calc(var(--section-y) + 44px); }
.hs-label { display: flex; align-items: center; gap: 10px; min-width: 0; transition: opacity .4s var(--ease); }
.hs-label.is-out { opacity: 0; }
.hs-ic { width: 32px; height: 32px; display: grid !important; place-items: center; flex-shrink: 0; border-radius: var(--r-full); font-size: 18px !important; color: var(--primary); background: var(--primary-soft); }
.hs-txt { display: flex; flex-direction: column; line-height: 1.25; font-size: 12px; color: var(--muted); white-space: nowrap; }
.hs-txt strong { font-size: 13px; font-weight: 700; color: var(--ink); }
.hs-dots { display: flex; gap: 6px; }
.hero-scenes button {
  position: relative; width: 10px; height: 10px; padding: 0; overflow: hidden; border-radius: var(--r-full); cursor: pointer;
  background: color-mix(in srgb, var(--ink) 22%, transparent); border: 0;
  transition: width .5s var(--ease), box-shadow .3s;
}
.hero-scenes button[aria-pressed="true"] { width: 34px; }
/* Progress until the next slide */
.hero-scenes button i { position: absolute; inset: 0; transform: scaleX(0); transform-origin: left; background: var(--primary); opacity: .75; }
.hero-scenes button[aria-pressed="true"] i { transform: scaleX(1); }
.hero-scenes.is-run button[aria-pressed="true"] i { animation: hs-progress var(--hs-hold, 12s) linear both; }
@keyframes hs-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-scenes button:hover { box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent); }
.hero-scenes button:focus-visible { outline: none; box-shadow: var(--ring); }
@media (max-width: 560px) {
  .hero-scenes { left: var(--gutter); right: var(--gutter); bottom: 14px; justify-content: space-between; }
  .hs-txt span { white-space: normal; }
}
.hero h1 {
  font-size: clamp(26px, 6.4vw, 60px); line-height: 1.08; font-weight: 800; letter-spacing: -0.03em;
  color: var(--hero-title);
}
.text-gradient {
  background: linear-gradient(100deg, var(--primary) 10%, var(--accent) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(16px, 1.6vw, 18.5px); color: var(--hero-lead); max-width: 62ch; }


/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); background: var(--bg); }
.section-surface { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 17px; max-width: 62ch; }
.section-head.center { align-items: center; text-align: center; }
.section-head.split { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 32px; }
.section-head.split > div { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.section-head.split > p { max-width: 44ch; }


/* Platform */
/* Platform: an architecture map (channels → zenTx layers → systems) with a detail panel */
.arch { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.arch-map {
  display: flex; flex-direction: column; padding: 22px; border-radius: 24px; border: 1px solid var(--border);
  background:
    radial-gradient(70% 50% at 50% 50%, color-mix(in srgb, var(--primary) 7%, transparent), transparent 75%),
    var(--surface);
}
.arch-band { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.arch-k { font-size: 12px; font-weight: 600; color: var(--muted); }
.arch-nodes { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.arch-nodes li {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg); font-size: 13px; font-weight: 600; color: var(--ink-2);
  transition: opacity .3s, border-color .3s, background-color .3s, color .3s;
}
.arch-nodes .material-symbols-outlined { font-size: 17px; color: var(--muted); transition: color .3s; }
.arch-nodes li.is-on { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); background: var(--primary-soft); color: var(--ink); }
.arch-nodes li.is-on .material-symbols-outlined { color: var(--link); }
.arch-nodes li.is-off { opacity: .4; }
/* Flow: quiet vertical lines with dots drifting down, showing data moving through */
.arch-flow { position: relative; height: 44px; margin: 4px 0; }
.arch-flow i { position: absolute; left: var(--x); top: 0; bottom: 0; width: 1px; background: linear-gradient(var(--border), var(--border)); }
.arch-flow i::after {
  content: ""; position: absolute; left: -2.5px; top: 0; width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary); opacity: 0; animation: archDrop 2.6s var(--d) ease-in infinite;
}
@keyframes archDrop { 0% { top: -4px; opacity: 0; } 15% { opacity: .9; } 85% { opacity: .9; } 100% { top: calc(100% - 2px); opacity: 0; } }
.arch-core {
  display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 18px;
  background: color-mix(in srgb, var(--primary) 6%, var(--bg)); border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border));
}
.arch-core-k { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.arch-logo { height: 30px; width: auto; }
.arch-layers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.arch-layer {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px 12px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--surface); color: var(--ink); text-align: center;
  transition: border-color .25s, box-shadow .25s, transform .2s var(--ease);
}
.arch-layer:hover { border-color: var(--peri); transform: translateY(-2px); }
.arch-layer .material-symbols-outlined {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; margin-bottom: 2px; font-size: 21px;
  color: var(--link); background: var(--primary-soft); transition: background-color .25s, color .25s;
}
.arch-layer strong { font-size: 14.5px; font-weight: 700; }
.arch-layer small { font-size: 11.5px; color: var(--muted); }
.arch-layer[aria-selected="true"] { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent), 0 12px 24px -16px rgba(0, 108, 182, .5); }
.arch-layer[aria-selected="true"] .material-symbols-outlined { background: var(--primary); color: #FFFFFF; }
/* Detail panel */
.arch-detail {
  display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 24px;
  background: linear-gradient(160deg, var(--feature-from), var(--feature-to)); color: var(--feature-ink);
}
.arch-detail > * { animation: archIn .35s var(--ease) both; }
.arch-detail > *:nth-child(2) { animation-delay: .04s; } .arch-detail > *:nth-child(3) { animation-delay: .08s; } .arch-detail > *:nth-child(4) { animation-delay: .12s; } .arch-detail > *:nth-child(5) { animation-delay: .16s; }
@keyframes archIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.arch-dk { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--feature-muted); }
.arch-detail h3 { font-size: clamp(21px, 2vw, 25px); line-height: 1.25; color: var(--feature-ink); }
.arch-detail > p:not(.arch-dk):not(.arch-ex) { font-size: 15px; line-height: 1.6; color: var(--feature-muted); }
.arch-detail ul { display: flex; flex-direction: column; gap: 8px; }
.arch-detail li { position: relative; padding-left: 18px; font-size: 14.5px; line-height: 1.5; }
.arch-detail li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 1.5px; background: currentColor; opacity: .7; }
.arch-ex { margin-top: auto; padding: 14px 16px; border-radius: 14px; background: var(--feature-chip); font-size: 14px; line-height: 1.55; }
.arch-ex span { display: block; margin-bottom: 3px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--feature-muted); }
@media (max-width: 1080px) {
  .arch { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .arch-map { padding: 14px; border-radius: 18px; }
  .arch-nodes li { padding: 5px 10px 5px 7px; font-size: 12px; }
  .arch-layers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .arch-layer small { display: none; }
  .arch-flow { height: 30px; }
  .arch-detail { padding: 22px; border-radius: 18px; }
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.tags li { padding: 3px 10px; border-radius: var(--r-full); background: var(--subtle); font-size: 11.5px; font-weight: 600; color: var(--ink-2); }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

/* Products */
.product { padding: 24px; display: flex; flex-direction: column; gap: 12px; transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); }
.product:hover { border-color: var(--peri); box-shadow: 0 0 0 1px var(--peri), var(--shadow-2); transform: translateY(-2px); }
.product-top { display: flex; justify-content: space-between; align-items: center; }
.tile-ic { display: grid !important; place-items: center; width: 48px !important; height: 48px !important; border-radius: 14px; background: var(--primary-soft); color: var(--link); font-size: 24px; }
.product h3 { font-size: 20px; }
.product > p { font-size: 14.5px; color: var(--muted); }
.checklist { display: flex; flex-direction: column; margin-top: 4px; border-top: 1px solid var(--divider); }
.checklist li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--divider); font-size: 14px; font-weight: 500; color: var(--ink-2); }
.checklist li:last-child { border-bottom: 0; }
.checklist .material-symbols-outlined { font-size: 18px; color: var(--link); }

/* Features */
.pillar { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.pillar h3 { display: flex; align-items: center; gap: 12px; font-size: 18px; }
.pillar-ic { display: grid !important; place-items: center; width: 40px !important; height: 40px !important; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); }
.feature-list { display: flex; flex-direction: column; gap: 8px; }
.feature-list li { position: relative; padding-left: 20px; font-size: 14px; color: var(--ink-2); }
.feature-list li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--primary); }

/* Industries */
.feature-panel {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; align-items: center;
  padding: clamp(24px, 4vw, 40px); border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--feature-from), var(--feature-to));
  color: var(--feature-ink);
}
.feature-copy { display: flex; flex-direction: column; gap: 12px; }
.feature-k { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--feature-muted); }
.feature-panel h3 { color: var(--feature-ink); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; }
.feature-panel p:not(.feature-k) { color: var(--feature-muted); font-size: 15.5px; }
.feature-certs { display: flex; flex-direction: column; gap: 8px; }
.feature-certs li { padding: 10px 14px; border-radius: var(--r-md); background: var(--feature-chip); border: 1px solid rgba(255, 255, 255, .18); font-size: 14px; font-weight: 600; }

.verticals { margin-top: 20px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.verticals li {
  display: flex; flex-direction: column; gap: 6px; padding: 16px;
  border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg);
  transition: border-color .2s, background-color .2s;
}
.verticals li:hover { border-color: var(--peri); background: var(--surface); }
.verticals .material-symbols-outlined { color: var(--link); font-size: 22px; }
.verticals h3 { font-size: 14.5px; line-height: 1.3; }
.verticals p { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
@media (max-width: 1280px) { .verticals { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1024px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .verticals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature-panel { grid-template-columns: 1fr; }
  .feature-certs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .verticals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-certs { grid-template-columns: 1fr; }
}

/* Integrations — logos sit on a light plate in both themes so dark wordmarks stay visible */
/* Integrations: one row per kind of system, every logo the same size */
.conn-groups { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.conn-group { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--border); }
.conn-group h3 { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.connectors { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.connectors li {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 8px; min-height: 86px;
  padding: 14px 14px 12px; border-radius: 12px; border: 1px solid var(--plate-border); background: var(--plate-bg);
  transition: border-color .2s;
}
.connectors li:hover { border-color: var(--peri); }
.conn-logo { display: block; height: 26px; width: auto; max-width: 112px; object-fit: contain; object-position: left center; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.connectors li:hover .conn-logo { filter: none; opacity: 1; }
.conn-lockup { display: inline-flex; align-items: center; gap: 7px; height: 26px; color: var(--plate-ink); }
.conn-lockup img { width: 20px; height: 20px; border-radius: 5px; filter: grayscale(1); transition: filter .2s; }
.connectors li:hover .conn-lockup img { filter: none; }
.conn-lockup .material-symbols-outlined { display: grid; place-items: center; width: 22px; height: 22px; font-size: 16px; border-radius: 6px; background: #E6F0FA; color: #006CB6; }
.conn-lockup strong { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.connectors li > span:last-child { font-size: 12px; color: var(--plate-muted); line-height: 1.35; }


/* Demo */
.demo-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-content: start; padding: clamp(20px, 3vw, 30px); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field select {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--ink);
  font-size: 15px; transition: border-color .2s, box-shadow .2s;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.field input::placeholder { color: var(--muted); opacity: 1; }
.field input:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field-error { font-size: 12.5px; color: var(--danger); min-height: 0; }
.field-error:empty { display: none; }
.form-status { font-size: 14px; font-weight: 600; color: var(--ok); }
.form-status:empty { display: none; }
.form-note { font-size: 12.5px; color: var(--muted); text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding-top: clamp(48px, 6vw, 72px); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand p { color: var(--muted); max-width: 36ch; }
.footer-brand address { font-style: normal; display: flex; flex-direction: column; gap: 4px; color: var(--muted); }
.site-footer h2 { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer nav ul { display: flex; flex-direction: column; gap: 8px; }
.site-footer nav a { color: var(--muted); }
.site-footer nav a:hover { color: var(--link); }
.footer-certs { margin-top: 40px; }
.footer-certs p { padding: 16px 0; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 16px 32px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); }
.footer-bottom { border-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .primary-nav a { padding: 10px 10px; font-size: 14.5px; }
  .primary-nav a::after { left: 10px; right: 10px; }
}

@media (max-width: 1200px) {
  .header-inner { gap: 16px; }
  .primary-nav ul { gap: 0; }
  .primary-nav a { padding: 10px 8px; font-size: 14px; }
  .primary-nav a::after { left: 8px; right: 8px; }
}

@media (max-width: 1080px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .primary-nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .conn-group { grid-template-columns: 1fr; gap: 10px; }
  .connectors { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  .section-head.split { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 900px) {
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .header-cta { display: none; }
  .logo { height: 38px; }
  .connectors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .demo-form { grid-template-columns: 1fr; }
  .section-head p:not(.eyebrow) { font-size: 16px; }
}

@media (max-width: 480px) {
  .connectors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero h1 { font-size: min(34px, 7.2vw); }
  .footer-grid { gap: 28px 16px; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Contact panel (header) ---------- */
.nav-contact { position: relative; }
.nav-contact-btn {
  display: inline-flex; align-items: center; gap: 1px; padding: 10px 10px 10px 14px; border: 0; border-radius: 10px; background: none;
  font: inherit; font-size: 15px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: color .2s, background-color .2s;
}
.nav-contact-btn:hover, .nav-contact-btn[aria-expanded="true"] { color: var(--ink); background: var(--subtle); }
@media (min-width: 1081px) and (max-width: 1280px) {
  .primary-nav ul { gap: 0; }
  .primary-nav a, .nav-contact-btn { padding-left: 9px; padding-right: 9px; font-size: 14.5px; }
  .primary-nav a::after { left: 9px; right: 9px; }
}
.nav-contact-btn .material-symbols-outlined { font-size: 18px; transition: transform .2s; }
.nav-contact-btn[aria-expanded="true"] .material-symbols-outlined { transform: rotate(180deg); }
.contact-pop {
  position: absolute; right: -40px; top: calc(100% + 12px); z-index: 60; width: 300px; display: flex; flex-direction: column; gap: 4px;
  padding: 14px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-3, 0 24px 48px -12px rgba(15, 27, 52, .25));
  animation: popDown .18s var(--ease, ease-out);
}
.contact-pop[hidden] { display: none; }
@keyframes popDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.cp-k { margin: 0 4px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cp-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; color: var(--ink); }
.cp-row:hover { background: var(--subtle); text-decoration: none; }
.cp-row > span:last-child { display: flex; flex-direction: column; font-size: 14px; font-weight: 600; }
.cp-row small { font-size: 11.5px; font-weight: 500; color: var(--muted); }
.cp-ic { width: 32px; height: 32px; display: grid !important; place-items: center; border-radius: 9px; background: var(--primary-soft); color: var(--link); font-size: 18px !important; }
.contact-pop .btn { margin-top: 6px; }
.mobile-contact { display: flex; flex-direction: column; gap: 2px; padding-top: 6px; }

/* ---------- Request-a-demo dialog ---------- */
.modal { width: min(880px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 22px; background: var(--surface); color: var(--ink); box-shadow: 0 40px 80px -24px rgba(15, 27, 52, .45); overflow: auto; }
.modal::backdrop { background: rgba(10, 17, 32, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal[open] { animation: modalIn .25s var(--ease, ease-out); }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-box { position: relative; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.modal-x { position: absolute; right: 12px; top: 12px; z-index: 1; }
.modal-side { display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 3vw, 32px); background: var(--subtle); border-right: 1px solid var(--border); }
.modal-side h2 { font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; }
.modal-side > p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.modal-points { display: flex; flex-direction: column; gap: 10px; }
.modal-points li { position: relative; padding-left: 18px; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.modal-points li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.modal-contact { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.modal-contact a { font-weight: 600; }
body.modal-open { overflow: hidden; }
@media (max-width: 720px) {
  .modal { width: 100%; max-width: none; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; }
  .modal-box { grid-template-columns: 1fr; }
  .modal-side { border-right: 0; border-bottom: 1px solid var(--border); padding-right: 56px; }
  .modal-points, .modal-contact { display: none; }
  .demo-form { grid-template-columns: 1fr; }
}

/* Bangla words outside the phone demo use the Bangla web font (phones without one would show boxes) */
:lang(bn):not(.material-symbols-outlined) { font-family: "Noto Sans Bengali", var(--font); }
@media (max-width: 640px) {
  /* five layer buttons: 3 + 2, with the last row centred */
  .arch-layers { display: flex; flex-wrap: wrap; justify-content: center; }
  .arch-layer { flex: 0 0 calc((100% - 16px) / 3); }
}

/* ---------- Platform on phones: interactive isometric stack ----------
   Channels on top, five zenTx layers as stacked isometric plates with labels beside them, systems
   below, and a detail card for the picked layer. It cycles by itself until tapped (main.js).
   The map above is hidden on phones; desktop is unchanged. */
.axk { display: none; }
@media (max-width: 640px) {
  .arch { display: none; }
  .axk { display: flex; flex-direction: column; align-items: center; gap: 10px; }
  .axk-k { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
  .axk-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin: 0; padding: 0; list-style: none; }
  .axk-row li {
    width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
    background: var(--surface); border: 1px solid var(--border); color: var(--muted);
    transition: background-color .4s, color .4s, border-color .4s, transform .4s var(--ease), opacity .4s;
  }
  .axk-row .material-symbols-outlined { font-size: 18px; }
  .axk-row li.is-on { background: var(--primary); border-color: var(--primary); color: #FFFFFF; transform: translateY(-2px); }
  .axk-row li.is-off { opacity: .45; }

  .axk-stage { position: relative; width: 100%; height: 330px; }
  .axk-stack { position: absolute; left: 0; top: 0; bottom: 0; width: 56%; }
  .axk-beam {
    position: absolute; left: 50%; top: -6px; bottom: -6px; width: 2px; margin-left: -1px;
    background: linear-gradient(color-mix(in srgb, var(--primary) 10%, transparent), color-mix(in srgb, var(--primary) 40%, transparent), color-mix(in srgb, var(--primary) 10%, transparent));
  }
  .axk-beam::after {
    content: ""; position: absolute; left: -4px; top: 0; width: 10px; height: 10px; border-radius: 50%; background: #22B8CF;
    box-shadow: 0 0 12px 3px color-mix(in srgb, #22B8CF 60%, transparent); animation: axk-drop 2.6s ease-in-out infinite;
  }
  .axk-plate {
    --pc: var(--primary);
    position: absolute; left: 50%; top: 18px; width: 128px; height: 128px; margin-left: -64px; display: grid; place-items: center;
    border-radius: 18px; border: 1.5px solid color-mix(in srgb, var(--pc) 55%, transparent);
    background: color-mix(in srgb, var(--pc) 16%, var(--surface)); color: var(--pc);
    box-shadow: 7px 7px 0 color-mix(in srgb, var(--pc) 30%, var(--surface)), 16px 16px 30px -8px rgba(15, 27, 52, .18);
    transform: translateY(calc(var(--i) * 46px)) rotateX(58deg) rotateZ(45deg);
    transition: transform .55s var(--ease), background-color .45s, color .45s, opacity .45s, box-shadow .45s;
    cursor: pointer; pointer-events: auto;
  }
  .axk-plate:nth-child(3) { --pc: #2E8FD6; } .axk-plate:nth-child(4) { --pc: #0E9F9A; }
  .axk-plate:nth-child(5) { --pc: #4F46E5; } .axk-plate:nth-child(6) { --pc: #22B8CF; }
  .axk-plate .material-symbols-outlined { font-size: 40px; }
  .axk.has-pick .axk-plate { opacity: .5; }
  .axk .axk-plate.is-on {
    opacity: 1; background: var(--pc); color: #FFFFFF;
    transform: translateY(calc(var(--i) * 46px - 16px)) rotateX(58deg) rotateZ(45deg);
    box-shadow: 7px 7px 0 color-mix(in srgb, var(--pc) 60%, #000), 0 0 0 6px color-mix(in srgb, var(--pc) 18%, transparent), 20px 20px 40px -8px color-mix(in srgb, var(--pc) 55%, transparent);
  }
  .axk-labels { position: absolute; right: 0; top: 0; bottom: 0; width: 46%; }
  .axk-label {
    position: absolute; left: 6px; right: 0; top: calc(64px + var(--i) * 46px); display: flex; flex-direction: column; align-items: flex-start;
    padding: 4px 8px 4px 14px; border: 0; background: none; text-align: left; color: var(--ink-2); border-radius: 10px;
    transition: color .3s, background-color .3s;
  }
  .axk-label::before {
    content: ""; position: absolute; left: -18px; top: 50%; width: 26px; height: 1.5px; background: var(--border); transition: background-color .3s;
  }
  .axk-label::after {
    content: ""; position: absolute; left: 2px; top: 50%; width: 7px; height: 7px; margin-top: -3px; border-radius: 50%; background: var(--border); transition: background-color .3s, transform .3s;
  }
  .axk-label strong { font-size: 14.5px; font-weight: 700; }
  .axk-label small { font-size: 11.5px; color: var(--muted); }
  .axk-label[aria-pressed="true"] { color: var(--ink); background: var(--primary-soft); }
  .axk-label[aria-pressed="true"]::before, .axk-label[aria-pressed="true"]::after { background: var(--primary); }
  .axk-label[aria-pressed="true"]::after { transform: scale(1.3); }

  .axk-detail {
    width: 100%; margin-top: 10px; padding: 18px; border-radius: 20px; border: 1px solid var(--border);
    background: var(--surface); box-shadow: var(--shadow-2);
  }
  .axk-step { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
  .axk-step b { color: var(--ink); }
  .axk-step i { flex: 1; height: 4px; border-radius: 4px; background: var(--subtle); overflow: hidden; }
  .axk-step em { display: block; width: calc(var(--p, 1) * 20%); height: 100%; border-radius: 4px; background: var(--primary); transition: width .5s var(--ease); }
  .axk-body { display: flex; flex-direction: column; gap: 10px; animation: archIn .4s var(--ease) both; }
  .axk-body h3 { font-size: 19px; line-height: 1.3; }
  .axk-body > p:not(.arch-ex) { font-size: 14px; line-height: 1.55; color: var(--muted); }
  .axk-body ul { display: flex; flex-direction: column; gap: 6px; }
  .axk-body ul li { position: relative; padding-left: 18px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
  .axk-body ul li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); opacity: .8; }
  .axk-body .arch-ex { padding: 12px 14px; font-size: 13px; background: var(--subtle); color: var(--ink-2); }
  .axk-body .arch-ex span { color: var(--link); }
}
@keyframes axk-drop { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 10px); opacity: 0; } }

/* Demo form: hidden field that only bots fill in (the server ignores those posts) */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
