/* ZilverNet shared chrome — one nav for every page, product-page footer, "why" band. */
:root {
  --zn-purple: #630094;
  --zn-magenta: #e4007f;
  --zn-grad: linear-gradient(135deg, #630094 0%, #e4007f 100%);
  --zn-nav-h: 64px;
}

html { scroll-padding-top: var(--zn-nav-h); overflow-x: clip; }
body { overflow-x: clip; }

/* ── Site nav ───────────────────────────────────────────── */
.zn-nav {
  position: sticky;
  top: 0;
  z-index: 9100;          /* above the drawer, so the burger stays tappable to close */
  height: var(--zn-nav-h);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  /* background + blur live on ::before, NOT here — see below */
}

/* The blur is deliberately on a pseudo-element. backdrop-filter on .zn-nav
   itself would make it a containing block for position:fixed DESCENDANTS, and
   the mobile drawer (.zn-links) is one: it would then be positioned against
   the nav's box instead of the viewport. With a sticky nav that box sits at
   its flow position, so scrolling down 1800px and opening the menu put the
   drawer at top:-1736px — open, off-screen, unreachable. A pseudo-element is
   a sibling of .zn-links, not an ancestor, so it traps nothing. */
.zn-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(13,13,18,0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  pointer-events: none;
}

.zn-nav-in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2.4rem;
}

.zn-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; flex-shrink: 0; }
.zn-logo img { height: 36px; width: auto; display: block; }
.zn-logo span { font-size: 1.3rem; font-weight: 400; letter-spacing: -0.4px; color: #fff; white-space: nowrap; }
.zn-logo span strong { font-weight: 700; }

.zn-links { display: flex; align-items: center; gap: 2rem; flex: 1; }

.zn-links > a,
.zn-item > a {
  color: #fff;
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  padding: 0.4rem 0;
}

.zn-links > a::after,
.zn-item > a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--zn-grad);
  transition: width 0.25s ease;
}

.zn-links > a:hover::after,
.zn-item:hover > a::after,
.zn-item.current > a::after { width: 100%; }

.zn-item { position: relative; display: flex; align-items: center; height: var(--zn-nav-h); }

.zn-item > a .caret {
  display: inline-block;
  margin-left: 6px;
  width: 7px; height: 7px;
  border-right: 1.5px solid rgba(255,255,255,0.55);
  border-bottom: 1.5px solid rgba(255,255,255,0.55);
  transform: translateY(-3px) rotate(45deg);
}

.zn-menu {
  position: absolute;
  top: calc(100% - 8px);
  left: -14px;
  min-width: 350px;
  padding: 0.45rem;
  background: #15151c;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.zn-item:hover .zn-menu,
.zn-item:focus-within .zn-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.zn-menu::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  border-radius: 12px 12px 0 0;
  background: var(--zn-m-grad, var(--zn-grad));
}

.zn-menu-head {
  padding: 0.7rem 0.85rem 0.65rem;
  margin-bottom: 0.3rem;
  font-size: 0.76rem;
  line-height: 1.4;
  color: rgba(255,255,255,0.5);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.zn-menu-head b {
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-size: 0.68rem;
  background: var(--zn-m-grad, var(--zn-grad));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.zn-menu a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 12px;
  padding: 0.6rem 0.85rem;
  border-radius: 9px;
  text-decoration: none;
  transition: background 0.15s;
}
.zn-menu a::after {
  content: '\2192';
  color: rgba(255,255,255,0.35);
  font-size: 0.9rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.15s, transform 0.15s;
}
.zn-menu a:hover::after { opacity: 1; transform: none; }
.zn-menu .zn-mark { width: 30px; height: 30px; }
.zn-mi { min-width: 0; }
.zn-mi strong { display: block; color: #fff; font-size: 0.92rem; font-weight: 700; line-height: 1.2; }
.zn-mi em { display: block; font-style: normal; color: rgba(255,255,255,0.5); font-size: 0.76rem; line-height: 1.35; margin-top: 2px; }

.zn-menu a:hover, .zn-menu a.current { background: rgba(255,255,255,0.07); }
.zn-menu a.current { background: rgba(255,255,255,0.05); }

.zn-menu-infra { --zn-m-grad: linear-gradient(90deg,#7B2FBE,#C026A0,#F0134D); }
.zn-menu-intel { --zn-m-grad: linear-gradient(90deg,#34d399,#22d3ee,#818cf8,#7c3aed); }

.zn-login {
  margin-left: auto;
  background: var(--zn-grad);
  color: #fff;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  padding: 0.6rem 1.3rem;
  border-radius: 7px;
  white-space: nowrap;
  transition: box-shadow 0.2s, transform 0.2s;
}

.zn-login:hover { box-shadow: 0 6px 18px rgba(228,0,127,0.4); transform: translateY(-1px); }

.zn-nav-backdrop { display: none; }
.zn-burger { display: none; background: none; border: none; cursor: pointer; padding: 6px; margin-left: auto; }
.zn-burger span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: transform 0.3s, opacity 0.3s; }
.zn-burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.zn-burger.active span:nth-child(2) { opacity: 0; }
.zn-burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 960px) {
  .zn-burger { display: block; }
  .zn-login { display: none; }

  .zn-links {
    position: fixed;
    top: var(--zn-nav-h); right: 0;
    transform: translateX(100%);
    width: min(320px, 88vw);
    height: calc(100vh - var(--zn-nav-h));
    height: calc(100dvh - var(--zn-nav-h));   /* iOS: exclude the browser chrome */
    background: #0d0d12;
    border-left: 1px solid rgba(255,255,255,0.08);
    box-shadow: -10px 0 30px rgba(0,0,0,0.4);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px 22px 30px;
    overflow-y: auto;
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s;
    z-index: 9001;
  }

  .zn-links.open { transform: none; visibility: visible; }

  .zn-nav-backdrop {
    display: block;
    position: fixed; inset: var(--zn-nav-h) 0 0 0;
    background: rgba(0,0,0,.5);
    opacity: 0; visibility: hidden;
    transition: opacity .3s ease, visibility .3s;
    z-index: 9000;
    border: 0; padding: 0; width: 100%;
  }
  .zn-nav-backdrop.open { opacity: 1; visibility: visible; }
  /* Fixed, not sticky. A sticky nav still sits in the document flow, so when
     the page scrolls behind the fixed drawer the nav — and the X that closes
     it — scrolls away, stranding the menu open with no way to dismiss it.
     Measured: scrolled 1378px with the drawer open and the burger ended up at
     top:-1365px. Fixed keeps it pinned whatever the scroll does. */
  .zn-nav { position: fixed; top: 0; left: 0; right: 0; }
  body { padding-top: var(--zn-nav-h); }   /* nav no longer occupies flow */

  /* iOS Safari ignores overflow:hidden on body — the page scrolls anyway,
     which is how the drawer got stranded in the first place. Pinning the body
     is the only lock that actually holds; zn-nav.js supplies the top offset
     and restores the scroll position on close. */
  body.zn-nav-open { overflow: hidden; position: fixed; width: 100%; }
  body.zn-nav-open .zn-chat { display: none; }   /* FAB would sit on top of the drawer */

  .zn-item { height: auto; flex-direction: column; align-items: stretch; }
  .zn-item > a, .zn-links > a { padding: 14px 0; font-size: 1.02rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .zn-item > a .caret { display: none; }
  .zn-item > a::after, .zn-links > a::after { display: none; }

  .zn-menu {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    background: transparent; border: 0; box-shadow: none;
    min-width: 0; padding: 0 0 8px 12px;
  }
  .zn-menu::before { display: none; }
  .zn-menu-head { display: none; }
  .zn-menu a { padding: 0.55rem 0.4rem; }
  .zn-menu a::after { display: none; }
  .zn-mi em { font-size: 0.72rem; }

  .zn-links .zn-login-m {
    display: block;
    margin-top: 18px;
    background: var(--zn-grad);
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    font-size: 0.82rem;
    padding: 0.8rem;
    border-radius: 8px;
  }
}

@media (min-width: 961px) { .zn-login-m { display: none; } }

/* ── Product hero lockup + on-page links ───────────────── */
.zn-lockup { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.zn-lockup svg { width: 44px; height: 44px; flex-shrink: 0; }
.zn-lockup .wordmark { font-size: 22px; font-weight: 800; letter-spacing: -0.3px; line-height: 1.1; }
.zn-lockup .byline { font-size: 11.5px; letter-spacing: 1.4px; text-transform: uppercase; opacity: 0.55; margin-top: 3px; }
.zn-lockup .ver {
  margin-left: 6px;
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 3px 8px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.55);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.zn-jump {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  margin-top: 26px;
  font-size: 12.5px;
}
.zn-jump .lbl { font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; font-size: 10.5px; opacity: 0.45; }
.zn-jump a { text-decoration: none; opacity: 0.7; transition: opacity 0.15s; }
.zn-jump a:hover { opacity: 1; }

/* Footer strip */
.zn-foot {
  background: #08090e;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 44px 24px 32px;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.zn-foot-in {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.zn-foot h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.35);
  margin: 0 0 14px;
  font-weight: 700;
}

.zn-foot ul { list-style: none; margin: 0; padding: 0; }
.zn-foot li { margin-bottom: 9px; }

.zn-foot a {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.2s;
}

.zn-foot a:hover { color: #fff; }
.zn-foot a.current { color: #fff; font-weight: 600; }

.zn-foot-brand p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  line-height: 1.65;
  margin: 12px 0 0;
  max-width: 300px;
}

.zn-foot-legal {
  max-width: 1200px;
  margin: 36px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.35);
}

.zn-foot-legal nav { display: flex; gap: 20px; }

@media (max-width: 860px) {
  .zn-crumb { display: none; }
  .zn-foot-in { grid-template-columns: 1fr; gap: 30px; }
}

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

/* ── "Why you need this" band ─────────────────────────────── */
.zn-why {
  background: linear-gradient(180deg, rgba(99,0,148,0.10) 0%, rgba(228,0,127,0.05) 100%);
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 54px 24px;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.zn-why-in { max-width: 1000px; margin: 0 auto; }

.zn-why .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #fff;
  background: var(--zn-grad);
  padding: 5px 13px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.zn-why h2 {
  font-size: clamp(22px, 3.1vw, 31px);
  line-height: 1.32;
  font-weight: 700;
  color: #f0f6fc;
  margin: 0 0 16px;
  letter-spacing: -0.4px;
  max-width: 860px;
}

.zn-why p {
  font-size: 15.5px;
  line-height: 1.72;
  color: rgba(255,255,255,0.62);
  margin: 0;
  max-width: 800px;
}

.zn-why-pains {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 30px;
  list-style: none;
  padding: 0;
}

.zn-why-pains li {
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 2px solid var(--zn-magenta);
  border-radius: 0 7px 7px 0;
  padding: 15px 17px;
  font-size: 13.8px;
  line-height: 1.55;
  color: rgba(255,255,255,0.74);
}

.zn-why-pains li strong {
  display: block;
  color: #f0f6fc;
  font-weight: 700;
  font-size: 13.2px;
  margin-bottom: 5px;
}

@media (max-width: 820px) {
  .zn-why { padding: 38px 20px; }
  .zn-why-pains { grid-template-columns: 1fr; gap: 11px; }
}

/* Normalize product navs: fit on one line without clipping */
body > nav:not(.zn-nav) a { white-space: nowrap; }
body > nav:not(.zn-nav) .wrap { flex-wrap: nowrap; gap: 18px; }
body > nav:not(.zn-nav) .navlinks { gap: 17px; margin-left: 6px; }
body > nav:not(.zn-nav) .navlinks a { font-size: 13px; }

@media (max-width: 1240px) {
  body > nav:not(.zn-nav) .navlinks { gap: 13px; }
  body > nav:not(.zn-nav) .navlinks a { font-size: 12.3px; }
}
@media (max-width: 1080px) {
  body > nav:not(.zn-nav) .wrap { overflow-x: auto; scrollbar-width: none; }
  body > nav:not(.zn-nav) .wrap::-webkit-scrollbar { display: none; }
}

/* ── Product hero: copy + system view ──────────────────── */
/* minmax(0,…) not plain fr: an fr track has an implicit auto (min-content)
   minimum, so any single unbreakable child widens the column past the
   viewport and takes the other column with it. */
.zn-hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: 52px; align-items: center; margin-bottom: 36px; }
.zn-hero-copy .hero-h { max-width: none; }

.zn-screen {
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(0,0,0,0.4);
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  font-size: 12px;
  color: #e6edf3;
  line-height: 1.35;
}
.zn-sbar { display: flex; align-items: center; gap: 12px; padding: 9px 12px; background: #161b22; border-bottom: 1px solid rgba(255,255,255,0.07); }
.zn-sbar .dots { display: flex; gap: 6px; }
.zn-sbar .dots i { width: 9px; height: 9px; border-radius: 50%; background: #30363d; display: block; }
.zn-sbar .dots i:nth-child(1) { background: #ff5f57; } .zn-sbar .dots i:nth-child(2) { background: #febc2e; } .zn-sbar .dots i:nth-child(3) { background: #28c840; }
/* min-width:0 is load-bearing. A flex item defaults to min-width:auto, which
   is min-content — so this nowrap title could never shrink and the ellipsis
   below could never fire. Worse, it set the min-content width of the whole
   hero grid, which pushed the headline beside it off the screen. */
.zn-sbar-t { flex: 1; min-width: 0; color: #8b949e; font-size: 11.5px; letter-spacing: 0.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zn-live { color: #3fb950; font-size: 10.5px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; }
.zn-live::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #3fb950; margin-right: 6px; box-shadow: 0 0 8px #3fb950; animation: zn-pulse 2s ease-in-out infinite; }
@keyframes zn-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.zn-sbody { padding: 14px; }

.zn-st { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.zn-st.ok { background: #3fb950; box-shadow: 0 0 6px rgba(63,185,80,0.6); }
.zn-st.warn { background: #d29922; box-shadow: 0 0 6px rgba(210,153,34,0.6); }
.zn-st.bad { background: #f85149; box-shadow: 0 0 6px rgba(248,81,73,0.6); }

/* site view (NetYard) */
.zn-chain { display: flex; flex-direction: column; align-items: stretch; }
.zn-node { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 9px 12px; background: #161b22; border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; }
.zn-node b { font-size: 12.5px; font-weight: 600; color: #f0f6fc; }
.zn-node span { grid-column: 1; color: #8b949e; font-size: 11px; }
.zn-node .zn-st { grid-column: 2; grid-row: 1 / span 2; }
.zn-link { width: 2px; height: 14px; margin: 0 auto; background: linear-gradient(#630094, #e4007f); opacity: 0.8; }
.zn-link.split { height: 18px; }
.zn-ports { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed rgba(255,255,255,0.1); }
.zn-ports s { display: block; height: 11px; border-radius: 2px; background: #21262d; border: 1px solid rgba(255,255,255,0.06); text-decoration: none; }
.zn-ports s.on { background: #1f6f3a; border-color: #3fb950; }
.zn-ports s.poe { background: #2b5fa8; border-color: #58a6ff; }
.zn-ports s.warn { background: #7a5a12; border-color: #d29922; }
.zn-ports s.bad { background: #7a2a26; border-color: #f85149; }
.zn-legend { grid-column: 1 / -1; display: flex; gap: 12px; font-size: 10px; color: #8b949e; margin-top: 6px; }
.zn-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.zn-leaf-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.zn-leaf { padding: 8px 10px; background: #161b22; border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; display: grid; grid-template-columns: 1fr auto; gap: 1px 8px; align-items: center; }
.zn-leaf b { font-size: 11.5px; font-weight: 600; color: #f0f6fc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zn-leaf span { grid-column: 1; color: #8b949e; font-size: 10.5px; }
.zn-leaf .zn-st { grid-column: 2; grid-row: 1 / span 2; }
.zn-leaf.flag { border-color: rgba(248,81,73,0.5); background: rgba(248,81,73,0.06); }

/* console view (NetFoundry) */
.zn-console { display: grid; grid-template-columns: 98px 1fr; gap: 0; padding: 0; }
.zn-console .zn-tiles { grid-template-columns: repeat(2, 1fr); }
.zn-console .zn-tiles-5 { grid-template-columns: repeat(3, 1fr); }
.zn-side { background: #161b22; border-right: 1px solid rgba(255,255,255,0.07); padding: 10px 8px; display: flex; flex-direction: column; gap: 3px; }
.zn-side span { padding: 6px 9px; border-radius: 6px; color: #8b949e; font-size: 11.5px; }
.zn-side span.on { background: linear-gradient(135deg, rgba(99,0,148,0.5), rgba(228,0,127,0.4)); color: #fff; font-weight: 600; }
.zn-main { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.zn-row-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 10.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #8b949e; }
.zn-row-h em { font-style: normal; font-weight: 500; letter-spacing: 0; text-transform: none; color: #6e7681; }
.zn-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.zn-tiles-5 { grid-template-columns: repeat(5, 1fr); }
.zn-tile { padding: 8px 9px; background: #161b22; border: 1px solid rgba(255,255,255,0.08); border-radius: 7px; display: grid; grid-template-columns: 1fr auto; gap: 1px 6px; align-items: center; min-width: 0; }
.zn-tile b { font-size: 11px; font-weight: 600; color: #f0f6fc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zn-tile span { grid-column: 1; color: #8b949e; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zn-tile .zn-st { grid-column: 2; grid-row: 1 / span 2; }
.zn-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.zn-table th { text-align: left; font-weight: 700; font-size: 9.5px; letter-spacing: 0.8px; text-transform: uppercase; color: #6e7681; padding: 4px 6px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.zn-table td { padding: 6px; border-bottom: 1px solid rgba(255,255,255,0.04); color: #c9d1d9; white-space: nowrap; }
.zn-table td:first-child { color: #f0f6fc; font-weight: 600; }
.zn-table .tag { font-size: 9.5px; padding: 1px 6px; border-radius: 4px; background: rgba(99,0,148,0.35); color: #d8b4fe; margin-left: 5px; }
.zn-table .ok { color: #3fb950; font-weight: 700; } .zn-table .warn { color: #d29922; font-weight: 700; }

.zn-screen-cap { margin-top: 12px; font-size: 12px; color: rgba(255,255,255,0.5); text-align: center; letter-spacing: 0.1px; }
.zn-screen-cap b { color: rgba(255,255,255,0.85); font-weight: 600; }

@media (max-width: 960px) {
  .zn-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; margin-bottom: 28px; }
}
@media (max-width: 600px) {
  .zn-leaf-row { grid-template-columns: 1fr; }
  .zn-tiles, .zn-tiles-5 { grid-template-columns: repeat(2, 1fr); }
  .zn-console { grid-template-columns: 1fr; }
  .zn-side { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .zn-ports { grid-template-columns: repeat(8, 1fr); }
}

/* ── Product marks ─────────────────────────────────────── */
.zn-mark { width: 22px; height: 22px; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.zn-mark-sm { width: 16px; height: 16px; margin-right: 7px; vertical-align: -3px; }
.zn-mark-lg { width: 34px; height: 34px; }
.zn-foot li a { display: inline-flex; align-items: center; }

/* ── Two-tone product wordmarks ─────────────────────────── */
.zn-wm b { font-weight: inherit; background: var(--wm-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.zn-wm-netyard { --wm-grad: linear-gradient(90deg, #7B2FBE 0%, #C026A0 50%, #F0134D 100%); }
.zn-wm-netfoundry { --wm-grad: linear-gradient(90deg, #7B2FBE 0%, #C026A0 50%, #F0134D 100%); }
.zn-wm-neurohive { --wm-grad: linear-gradient(135deg,#22d3ee 0%,#818cf8 50%,#7c3aed 100%); }
.zn-wm-neurobots { --wm-grad: linear-gradient(135deg,#34d399 0%,#22d3ee 52%,#818cf8 100%); }
.zn-wm-neuroscope { --wm-grad: linear-gradient(135deg,#34d399 0%,#22d3ee 45%,#6366f1 100%); }
/* infra wordmarks carry a gap: "Net Yard", "Net Foundry" (Neuro marks stay closed) */
.zn-wm-netyard b, .zn-wm-netfoundry b { margin-left: 0.24em; }
.zn-lockup .wordmark .brand-grad { margin-left: 0.24em; }
.zn-mi em, .zn-menu-head { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Product nav brand: centre the mark with the wordmark.
   NeuroBots' own CSS baseline-aligns it and nudges the mark down, which was
   tuned for its standalone page and sits low under the shared ZilverNet nav. */
body > nav:not(.zn-nav) .brand { align-items: center; }
body > nav:not(.zn-nav) .brand svg { transform: none; }

/* ── Chat widget (shared, self-contained) ───────────────── */
.zn-chat { position: fixed; right: 26px; bottom: 26px; z-index: 9500;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }

.zn-chat-fab { width: 64px; height: 64px; border-radius: 50%; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; margin-left: auto;
  background: var(--zn-grad); color: #fff;
  box-shadow: 0 10px 28px rgba(228,0,127,.4);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease; }
.zn-chat-fab:hover { transform: translateY(-2px) scale(1.07); box-shadow: 0 14px 34px rgba(228,0,127,.5); }

.zn-chat-fab svg { position: absolute; transition: opacity .18s ease, transform .18s ease; }
.zn-chat-fab { position: relative; }
.zn-i-close { opacity: 0; transform: scale(.7) rotate(-45deg); }
.zn-chat.open .zn-i-open { opacity: 0; transform: scale(.7) rotate(45deg); }
.zn-chat.open .zn-i-close { opacity: 1; transform: none; }

.zn-chat-panel { position: absolute; right: 0; bottom: 70px; width: 360px; max-height: 470px;
  display: flex; flex-direction: column; overflow: hidden;
  background: #14141b; border: 1px solid rgba(255,255,255,.1); border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(.97);
  transition: opacity .22s ease, transform .22s ease, visibility .22s; }
.zn-chat.open .zn-chat-panel { opacity: 1; visibility: visible; transform: none; }

.zn-chat-head { display: flex; align-items: center; justify-content: space-between;
  padding: 13px 15px; background: var(--zn-grad); color: #fff; flex-shrink: 0; }
.zn-chat-title { display: flex; align-items: center; gap: 9px; font-size: .88rem; font-weight: 600; }
.zn-chat-x { background: none; border: 0; color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; opacity: .85; padding: 0; }
.zn-chat-x:hover { opacity: 1; }

.zn-chat-log { flex: 1; overflow-y: auto; padding: 15px; display: flex; flex-direction: column;
  gap: 9px; min-height: 210px; max-height: 310px; }

.zn-msg { max-width: 86%; padding: 9px 13px; border-radius: 12px; font-size: .84rem; line-height: 1.5;
  animation: zn-msg-in .25s ease; }
@keyframes zn-msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.zn-msg.bot { background: rgba(255,255,255,.07); color: #e8e8ef; align-self: flex-start; border-bottom-left-radius: 4px; }
.zn-msg.me  { background: var(--zn-grad); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }

.zn-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.zn-chips button { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  color: #e8e8ef; padding: 6px 12px; border-radius: 100px; font-size: .74rem; cursor: pointer;
  font-family: inherit; transition: background .18s, border-color .18s; }
.zn-chips button:hover { background: rgba(255,255,255,.12); border-color: var(--zn-magenta); color: #fff; }

.zn-chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,.08); flex-shrink: 0; }
.zn-chat-form textarea { flex: 1; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px; padding: 10px 12px; color: #fff; font-size: .84rem; font-family: inherit; outline: none;
  transition: border-color .2s;
  /* Grows with content via JS; scrolls once it hits max-height.
     border-box matters: autosize assigns scrollHeight, which already includes
     padding. Under content-box that padding got counted twice and the box grew
     by 20px on every single resize. */
  box-sizing: border-box;
  resize: none; overflow-y: auto; line-height: 1.45; max-height: 112px;
  min-height: 42px; height: 42px; display: block; }
.zn-chat-form textarea::placeholder { color: rgba(255,255,255,.38); }
.zn-chat-form textarea:focus { border-color: var(--zn-magenta); }
.zn-chat-send { background: var(--zn-grad); border: 0; border-radius: 8px; width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center; color: #fff; cursor: pointer; flex-shrink: 0;
  transition: opacity .2s; }
.zn-chat-send:hover { opacity: .88; }

@media (max-width: 480px) {
  .zn-chat { right: 16px; bottom: 16px; }
  .zn-chat-panel { width: calc(100vw - 32px); }
}

/* iOS Safari zooms the whole page when you focus a control whose font-size is
   under 16px, and it does not zoom back out afterwards. 16px is a threshold,
   not a suggestion.
   Keyed on `pointer: coarse` rather than a width breakpoint, because the zoom
   is a touch-device behaviour: an iPad in landscape at 1024px needs this as
   much as a phone at 390px.
   The other well-known "fix" — maximum-scale=1 in the viewport meta — is not
   an option here: it disables pinch-zoom for everyone, permanently. */
@media (pointer: coarse) {
  .zn-chat-form textarea {
    font-size: 16px;
    /* 16px x 1.45 line-height + 20px padding + 2px border = 45.2 */
    min-height: 46px; height: 46px; max-height: 120px;
  }
  .zn-chat-send { width: 46px; height: 46px; }
}
/* ── Chat widget, AI mode ───────────────────────────────────
   The Intelligence family gradient (NeuroHive spine), not the parent brand
   magenta: this is the assistant, and it should read as part of Intelligence.
   Applied to the button, the panel header, the visitor's own bubbles, the
   send button and the focus ring. */
.zn-ai { --zn-ai-grad: linear-gradient(135deg, #22d3ee 0%, #818cf8 50%, #7c3aed 100%);
         --zn-ai-edge: #818cf8; }
.zn-ai .zn-chat-fab   { background: var(--zn-ai-grad); box-shadow: 0 10px 28px rgba(124,58,237,.42); }
.zn-ai .zn-chat-fab:hover { box-shadow: 0 14px 34px rgba(124,58,237,.52); }
.zn-ai .zn-chat-head  { background: var(--zn-ai-grad); }

/* Only ever shown while an AI really is answering. .zn-degraded is set the
   moment the widget falls back to the local FAQ. */
.zn-ai-pill { font-size: .58rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.28);
  border-radius: 4px; padding: 2px 6px; line-height: 1.3; margin-left: 2px;
  opacity: 0; transform: scale(.8); transition: opacity .3s ease, transform .3s ease; }
.zn-ai .zn-ai-pill { opacity: 1; transform: none; }
.zn-ai.zn-degraded .zn-ai-pill { opacity: 0; transform: scale(.8); }
.zn-ai .zn-msg.me     { background: var(--zn-ai-grad); }
.zn-ai .zn-chat-send  { background: var(--zn-ai-grad); }
.zn-ai .zn-chat-form textarea:focus { border-color: var(--zn-ai-edge); }
.zn-ai .zn-chips button:hover { border-color: var(--zn-ai-edge); }

/* the bot's face. transform-box keeps each part spinning about its own centre
   rather than the whole 24×24 canvas. */
.zn-bot * { transform-box: fill-box; transform-origin: center; }
.zn-bot .zn-eye { transform: translate(var(--ex,0px), var(--ey,0px))
                             scale(var(--sx,1), calc(var(--sy,1) * var(--lid,1)));
                  transition: transform var(--jump,120ms) cubic-bezier(.2,.9,.25,1); }
.zn-bot .zn-brow { opacity: var(--brow,0); transition: opacity .18s ease; }
.zn-bot .zn-ant  { r: var(--ant,1.25); transition: r .2s ease; }

/* awake — pointer is on the button */
.zn-chat.zn-awake .zn-bot { --sx: 1.26; --sy: 1.26; --brow: .9; --ant: 1.7; }

/* scanning — a reply is generating. The old side-to-side sweep, kept for the
   state it actually suits: the repetition reads as work in progress. It holds
   at centre, left and right rather than sliding, which is what stops it
   looking frantic. */
.zn-chat.zn-scan .zn-bot .zn-eye { animation: zn-sweep 5s ease-in-out infinite; transition: none; }
@keyframes zn-sweep { 0%,18%   { transform: translateX(0) }
                      30%,44%  { transform: translateX(-1.6px) }
                      56%,70%  { transform: translateX(1.6px) }
                      82%,100% { transform: translateX(0) } }
.zn-chat.zn-scan .zn-bot .zn-ant { animation: zn-ant 5s ease-in-out infinite; }
@keyframes zn-ant { 0%,100% { r: 1.25 } 50% { r: 1.8 } }

/* waiting for the first token. data-label appears when the model is a
   reasoning model and has told us it is thinking. */
.zn-msg.zn-wait { display: flex; gap: 4px; align-items: center; padding: 13px; }
.zn-msg.zn-wait[data-label]::before { content: attr(data-label); font-size: .76rem;
  opacity: .55; margin-right: 4px; }
.zn-msg.zn-wait i { width: 6px; height: 6px; border-radius: 50%; background: currentColor;
  opacity: .35; animation: zn-dot 1.2s ease-in-out infinite; }
.zn-msg.zn-wait i:nth-child(2) { animation-delay: .18s; }
.zn-msg.zn-wait i:nth-child(3) { animation-delay: .36s; }
@keyframes zn-dot { 0%,60%,100% { opacity: .25; transform: none }
                    30% { opacity: .9; transform: translateY(-3px) } }

/* an honest line when the assistant has degraded to the local FAQ */
.zn-chat-note { font-size: .72rem; line-height: 1.45; color: rgba(255,255,255,.5);
  border-left: 2px solid rgba(255,255,255,.18); padding: 2px 0 2px 9px; margin: 2px 0; }

/* Turnstile only occupies space when Cloudflare actually asks for something */
.zn-chat-challenge:empty { display: none; }
.zn-chat-challenge { padding: 8px 12px 0; }

@media (prefers-reduced-motion: reduce) {
  .zn-bot *, .zn-chat.zn-scan .zn-bot .zn-eye, .zn-chat.zn-scan .zn-bot .zn-ant,
  .zn-msg.zn-wait i { animation: none !important; transition: none !important; transform: none !important; }
  .zn-ai-pill { transition: none; transform: none !important; }
  .zn-ai.zn-degraded .zn-ai-pill { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .zn-chat-fab, .zn-chat-panel, .zn-msg { transition: none; animation: none; }
  .zn-chat-fab:hover { transform: none; }
}
