/* CoreGate · site.css
   Dark, network-operations look: Deep Space ground, GATE Blue for action, Signal Cyan for data. */
:root {
  --bg: #050E1C; --bg-alt: #071325; --bg-deep: #040B17;
  --surface: #0B1A30; --surface-strong: #0A2350; --surface-hi: #0D2244;
  --line: #1B2E4A; --line-soft: #13243D; --line-strong: #2A4366; --line-accent: #2F5A94;
  --fg: #E8EEF7; --fg-2: #C9D6E8; --muted: #A9B9D0; --subtle: #8FA3BF; --faint: #6F84A3;
  --blue: #006AFC; --blue-hover: #2B84FF; --cyan: #3FB4FF; --link: #8CC2FF; --link-hover: #CFE4FF;
  --ok: #3BD67A; --err: #FF8A8A;
  --f-display: 'Saira', 'Arial Narrow', 'Segoe UI', sans-serif;
  --f-body: 'IBM Plex Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --container: 1280px; --gutter: 32px; --section: 104px; --radius: 12px; --radius-sm: 6px;
  color-scheme: dark;
}
@media (max-width: 760px) { :root { --gutter: 20px; --section: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip:focus { top: 12px; color: #fff; }
.ic { flex: none; vertical-align: middle; }

/* ---------------------------------------------------------------- layout */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section-tight { padding-block: calc(var(--section) * .8); }
.pt-0 { padding-top: 0 !important; }
.mt { margin-top: 28px; }
.stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.stack-lg { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.grid-5 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 56px; align-items: start; }
.band { background: var(--bg-alt); border-block: 1px solid var(--line-soft); }
.gridbg { background-image: linear-gradient(rgba(143,163,191,.065) 1px, transparent 1px), linear-gradient(90deg, rgba(143,163,191,.065) 1px, transparent 1px); background-size: 48px 48px; }

/* ---------------------------------------------------------------- type */
.eyebrow { font: 500 13px/1.4 var(--f-mono); letter-spacing: .15em; text-transform: uppercase; color: var(--cyan); }
.display { font: 700 clamp(38px, 5.4vw, 72px)/1.03 var(--f-display); letter-spacing: -.005em; text-wrap: balance; }
.h1 { font: 700 clamp(36px, 4.6vw, 60px)/1.05 var(--f-display); text-wrap: balance; }
.h2 { font: 600 clamp(30px, 3.3vw, 44px)/1.1 var(--f-display); text-wrap: balance; }
.h2.sm { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; }
.lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--muted); max-width: 68ch; }
.mono-label { font: 500 11.5px/1.4 var(--f-mono); letter-spacing: .06em; color: var(--cyan); }
.mono-meta { font: 400 13px/1.5 var(--f-mono); color: var(--subtle); }
.mini-title { font: 500 12px/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.muted { color: var(--subtle); }
.group-label { font: 500 12px/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--subtle); margin: 28px 0 14px; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 800px; margin-bottom: 36px; }
.section-head.row { max-width: none; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 24px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.link-arrow.sm { font-size: 14px; font-weight: 500; margin-top: 6px; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 22px; border-radius: var(--radius-sm); font: 600 16px/1 var(--f-body); border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s; text-align: center; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); color: #fff; }
.btn-secondary { background: transparent; color: var(--fg); border-color: var(--line-strong); font-weight: 500; }
.btn-secondary:hover { border-color: var(--subtle); color: #fff; }
.btn-secondary .ic { color: var(--cyan); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-lg { min-height: 52px; padding: 0 26px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 6px; }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(5,14,28,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-soft); }
.nav { display: flex; align-items: center; gap: 24px; min-height: 70px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 34px; width: auto; }
.nav-toggle { display: none; margin-left: auto; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; background: transparent; color: var(--fg); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font: 500 15px var(--f-body); cursor: pointer; }
.nav-panel { display: flex; align-items: center; gap: 24px; flex: 1; }
.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px; color: var(--fg-2); font: 500 15px var(--f-body); background: none; border: 0; cursor: pointer; border-radius: var(--radius-sm); }
.nav-link:hover, .nav-link[aria-expanded="true"] { color: #fff; }
.nav-link.is-active { color: #fff; box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }
.mega-toggle .ic { transition: transform .15s; color: var(--subtle); }
.mega-toggle[aria-expanded="true"] .ic { transform: rotate(180deg); }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.lang { font: 400 13px var(--f-mono); color: var(--subtle); padding: 10px 4px; }
.lang-cur { color: var(--fg); }
.has-mega { position: static; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: rgba(7,19,37,.98); border-bottom: 1px solid var(--line); box-shadow: 0 24px 48px rgba(0,0,0,.4); display: none; }
.has-mega.is-open .mega { display: block; }
.mega-inner { max-width: var(--container); margin: 0 auto; padding: 28px var(--gutter) 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 40px; }
.mega-title { font: 500 12px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); margin-bottom: 10px; }
.mega-title .sub { color: var(--faint); margin-left: 6px; }
.mega-col ul { display: grid; gap: 2px; }
.mega-col a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 8px; color: var(--fg); }
.mega-col a:hover, .mega-col a[aria-current] { background: var(--surface); }
.mega-col a strong { font: 600 16px var(--f-display); letter-spacing: .01em; }
.mega-col a span { font-size: 14px; color: var(--subtle); line-height: 1.45; }
.mega-all { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; padding: 8px 12px 0; }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .nav-panel { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; max-height: calc(100vh - 70px); overflow-y: auto; }
  .site-header.is-open .nav-panel { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; }
  .nav-link { width: 100%; justify-content: space-between; min-height: 50px; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .nav-link.is-active { box-shadow: inset 3px 0 0 var(--blue); padding-left: 14px; }
  .mega { position: static; box-shadow: none; border: 0; background: transparent; }
  .mega-inner { grid-template-columns: 1fr; padding: 8px 0 12px; }
  .nav-actions { justify-content: space-between; padding-top: 16px; }
}

/* ---------------------------------------------------------------- hero + path */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.hero-glow { position: absolute; right: -220px; top: -280px; width: 860px; height: 860px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,106,252,.30), rgba(0,106,252,0)); pointer-events: none; }
.hero-inner { position: relative; padding-block: 88px 64px; display: flex; flex-direction: column; gap: 52px; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; max-width: 880px; }
.hero-copy .lead { max-width: 690px; }

.path { container-type: inline-size; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(8,20,38,.85); padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 16px; }
.path-head { display: flex; justify-content: space-between; gap: 8px; font: 500 clamp(10px, 1cqi, 12px) var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.path-scroll { overflow-x: auto; scrollbar-width: thin; }
.path-row { display: flex; flex-wrap: nowrap; align-items: stretch; min-width: 760px; }
.node { flex: 1 1 0; min-width: 0; border: 1px solid var(--line-accent); border-radius: 8px; background: var(--surface); }
.node > a, .node { color: inherit; }
.node > a, .node:not(:has(a)) { display: flex; flex-direction: column; gap: 3px; padding: clamp(8px, 1.1cqi, 14px) clamp(8px, 1.2cqi, 16px); height: 100%; }
.node > a:hover { background: var(--surface-hi); border-radius: 8px; }
.node.is-edge { border-style: dashed; border-color: var(--line-strong); background: transparent; }
.node.is-accent { border-color: var(--blue); background: var(--surface-strong); }
.node-label { font: 500 clamp(9px, .9cqi, 11px)/1.3 var(--f-mono); color: var(--cyan); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.node.is-edge .node-label { color: var(--faint); }
.node-name { font: 600 clamp(13px, 1.6cqi, 19px)/1.2 var(--f-display); }
.node-meta { font: 400 clamp(9px, 1cqi, 12px)/1.35 var(--f-mono); color: var(--subtle); }
.wire { flex: 0 0 clamp(10px, 2.2cqi, 28px); align-self: center; height: 2px; background-image: linear-gradient(90deg, var(--cyan) 0 8px, transparent 8px 16px); background-size: 16px 2px; background-repeat: repeat-x; animation: flow 1.1s linear infinite; }
@keyframes flow { to { background-position: 16px 0; } }

/* ---------------------------------------------------------------- proof */
.proof { background: var(--bg-alt); border-bottom: 1px solid var(--line-soft); }
.proof-grid { padding-block: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.proof-item { display: flex; flex-direction: column; gap: 2px; }
.proof-value { font: 600 clamp(30px, 3vw, 38px)/1.1 var(--f-display); }
.proof-label { color: var(--subtle); font-size: 15px; }

/* ---------------------------------------------------------------- cards */
.card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--fg); transition: border-color .15s, background .15s; min-width: 0; }
a.card:hover { border-color: var(--line-accent); color: var(--fg); }
.card.is-static { cursor: default; }
.card.is-accent { border-color: var(--blue); background: var(--surface-strong); }
.card-dashed { background: transparent; border-style: dashed; border-color: var(--line-strong); justify-content: center; }
.product-card.is-ent { background: linear-gradient(160deg, var(--surface-hi), var(--surface) 60%); }
.card-title { font: 600 23px/1.18 var(--f-display); }
.card-title.sm { font-size: 20px; line-height: 1.3; }
.card-text { color: var(--muted); font-size: 15px; line-height: 1.55; }
.card-more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; color: var(--link); font-weight: 600; font-size: 15px; }
a.card:hover .card-more { color: var(--link-hover); }
.cell-icon { color: var(--cyan); display: inline-flex; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1px; padding-block: 72px; }
.tile { display: flex; flex-direction: column; gap: 12px; padding: 28px; background: var(--bg-alt); color: var(--fg); border-left: 1px solid var(--line-soft); }
.tile:first-child { border-left: 0; padding-left: 0; }
.tile:hover { color: var(--fg); }
.tile:hover .tile-title { color: #fff; }
.tile-title { font: 600 26px/1.2 var(--f-display); }
@media (max-width: 1060px) { .tile { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-soft); } .tile:first-child { border-top: 0; } }

/* ---------------------------------------------------------------- page hero */
.page-hero { border-bottom: 1px solid var(--line-soft); }
.page-hero > .container { padding-block: 36px 60px; }
.page-hero-body { display: flex; flex-direction: column; gap: 18px; padding-top: 28px; max-width: 900px; }
.page-hero-body.is-split { max-width: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 24px 48px; align-items: end; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; font: 400 13px var(--f-mono); color: var(--faint); }
.breadcrumb li + li::before { content: '/'; margin-right: 8px; color: var(--line-strong); }
.breadcrumb a { color: var(--subtle); }
.breadcrumb [aria-current] { color: var(--fg); }

/* ---------------------------------------------------------------- product */
.product-hero { border-bottom: 1px solid var(--line-soft); }
.product-hero > .container { padding-block: 36px 72px; }
.product-hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 48px; align-items: start; padding-top: 32px; }
.appliance-wrap { border: 1px solid var(--line); border-radius: var(--radius); background: radial-gradient(120% 140% at 50% 0%, #0F2242, #060F1E 70%); padding: 26px 20px 22px; }
.appliance { display: block; width: 100%; height: auto; filter: drop-shadow(0 14px 22px rgba(0,0,0,.55)); }
.led-blink { animation: blink 1.6s steps(2, start) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.metrics { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.metrics-title { padding: 14px 22px; border-bottom: 1px solid var(--line); font: 500 12px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.metrics dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metrics dl > div { padding: 18px 22px; border-bottom: 1px solid var(--line); min-width: 0; }
.metrics dl > div:nth-child(odd) { border-right: 1px solid var(--line); }
.metrics dl > div:nth-last-child(-n+2) { border-bottom: 0; }
.metrics dt { font-size: 13px; color: var(--subtle); }
.metrics dd { margin-top: 4px; font: 600 clamp(20px, 2.2vw, 28px)/1.15 var(--f-display); overflow-wrap: anywhere; }
.metrics dd span { font-size: 15px; color: var(--subtle); font-weight: 500; }

.flow { display: flex; align-items: stretch; gap: 10px; }
.flow-step { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.flow-step.is-accent { border-color: var(--blue); background: var(--surface-strong); }
.flow-value { font: 500 clamp(16px, 1.5vw, 19px)/1.35 var(--f-mono); overflow-wrap: anywhere; }
.flow-wire { flex: none; align-self: center; color: var(--cyan); }
@media (max-width: 860px) { .flow { flex-direction: column; } .flow-wire { transform: rotate(90deg); } }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); border-top: 1px solid var(--line); margin-top: 30px; }
.feature { padding: 22px 24px 22px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.feature h3 { font: 600 19px/1.3 var(--f-display); }
.feature p { color: var(--subtle); font-size: 15px; }

.note-card { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding: 28px 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.note-text { font: 500 19px/1.4 var(--f-display); max-width: 60ch; }

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.table-wrap thead tr { background: var(--surface); }
.table-wrap th, .table-wrap td { padding: 15px 20px; text-align: left; vertical-align: top; }
.table-wrap thead th { font: 500 12.5px var(--f-mono); letter-spacing: .02em; color: var(--faint); white-space: nowrap; }
.table-wrap tbody tr { border-top: 1px solid var(--line); }
.tiers { min-width: 840px; }
.tiers tbody { font-family: var(--f-mono); }
.tiers tbody th { font: 600 17px var(--f-display); white-space: nowrap; }
.tiers tbody td { white-space: nowrap; }
.tiers tr.is-top { background: rgba(10,35,80,.55); }
.table-wrap td.muted { color: var(--muted); }
.table-note { margin-top: 12px; font: 400 13px/1.6 var(--f-mono); color: var(--faint); max-width: 100ch; }
.compare { min-width: 680px; font-size: 16px !important; }
.compare tbody th { font-weight: 600; width: 20%; }
.compare th.is-us { color: var(--cyan) !important; background: var(--surface-strong); }
.compare td.is-us { background: rgba(10,35,80,.5); }
.compare td.is-us .ic { color: var(--cyan); margin-right: 4px; margin-top: -2px; }

.tier-bars { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.tier-bar { background: var(--bg-alt); padding: 22px 18px; display: flex; flex-direction: column; gap: 10px; }
.tier-bar.is-top { background: var(--surface-strong); }
.tier-gbps { font: 700 clamp(26px, 2.3vw, 34px)/1 var(--f-display); }
.tier-gbps small { font-size: 15px; color: var(--subtle); font-weight: 500; }
.bar { display: block; height: 4px; background: var(--line); border-radius: 2px; }
.bar span { display: block; height: 100%; background: var(--cyan); border-radius: 2px; }

/* ---------------------------------------------------------------- lists, faq */
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 400 22px/1 var(--f-mono); color: var(--cyan); }
.faq details[open] summary::after { content: '–'; }
.faq p { margin-top: 10px; color: var(--muted); }
.link-list li { border-top: 1px solid var(--line); }
.link-list li:last-child { border-bottom: 1px solid var(--line); }
.link-list a { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; color: var(--fg); font-weight: 600; font-size: 17px; }
.link-list a:hover { color: #fff; }
.rows > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.rows > div:last-child { border-bottom: 1px solid var(--line); }
.rows > div.rows-wide { grid-template-columns: 1fr; gap: 4px; }
.rows dt { font: 500 13px var(--f-mono); color: var(--cyan); letter-spacing: .04em; }
.rows-wide dt { font: 600 18px var(--f-display); color: var(--fg); letter-spacing: 0; }
.rows dd { color: var(--fg-2); }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 15px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.step-n { font: 400 15px var(--f-mono); color: var(--cyan); }
.dash-list li { position: relative; padding: 10px 0 10px 26px; border-top: 1px solid var(--line); color: var(--fg-2); }
.dash-list li::before { content: '—'; position: absolute; left: 0; color: var(--cyan); font-family: var(--f-mono); }
.point { border-top: 2px solid var(--blue); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.point h3 { font: 600 22px var(--f-display); }
.point p { color: var(--muted); }

.cells { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cell { background: var(--bg); padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.cell h3 { font: 600 22px var(--f-display); }
.cell p { color: var(--muted); }

/* ---------------------------------------------------------------- use cases */
.tablist { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.tab { min-height: 44px; padding: 0 20px; border-radius: 999px; font: 500 15px var(--f-body); cursor: pointer; background: transparent; color: var(--fg-2); border: 1px solid var(--line-strong); }
.tab:hover { border-color: var(--subtle); }
.tab[aria-selected="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.segment { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px; align-items: start; padding-block: 40px; border-top: 1px solid var(--line-soft); }
.segment:first-of-type { border-top: 0; }
.js .segment { padding-block: 0; border-top: 0; }
.js .segment-label { display: none; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.rec-list li { border-top: 1px solid var(--line); }
.rec-list a { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; color: var(--fg); }
.rec-list a:hover .rec-name { color: #fff; text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: 4px; }
.rec-name { font: 600 20px var(--f-display); }
.rec-role { font: 400 13px/1.5 var(--f-mono); color: var(--subtle); text-align: right; }

/* ---------------------------------------------------------------- solutions list */
.solution-list { border-top: 1px solid var(--line); }
.solution-row { display: grid; grid-template-columns: minmax(200px, 1.1fr) 2fr 1.4fr 32px; gap: 24px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); color: var(--fg); }
.solution-row:hover { color: var(--fg); background: linear-gradient(90deg, rgba(13,34,68,.6), transparent); }
.solution-name { display: flex; flex-direction: column; gap: 6px; }
.solution-arrow { color: var(--cyan); }
@media (max-width: 900px) { .solution-row { grid-template-columns: 1fr; gap: 10px; } .solution-arrow { display: none; } }

/* ---------------------------------------------------------------- articles / prose */
.article-head { padding-top: 28px; max-width: 880px; }
.article-title { font-size: clamp(32px, 4vw, 52px); }
.article-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 64px; padding-block: 64px 96px; align-items: start; }
.article-aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 24px; }
.toc ol { margin-top: 10px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; color: var(--subtle); font-size: 14px; line-height: 1.45; }
.toc a:hover { color: var(--fg); }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; gap: 32px; } .article-aside { position: static; order: 2; } }
.prose { max-width: 72ch; color: var(--fg-2); font-size: 17px; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font: 600 28px/1.25 var(--f-display); color: var(--fg); margin-top: 1.8em; }
.prose h3 { font: 600 21px/1.3 var(--f-display); color: var(--fg); margin-top: 1.5em; }
.prose strong { color: var(--fg); }
.prose ul { list-style: none; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ''; position: absolute; left: 4px; top: .75em; width: 7px; height: 2px; background: var(--cyan); }
.prose ol { list-style: decimal; padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose code { font: 0.9em var(--f-mono); background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; color: var(--fg); }
.prose blockquote { border-left: 3px solid var(--blue); background: var(--surface); border-radius: 0 8px 8px 0; padding: 14px 18px; color: var(--muted); font-size: 15px; }
.prose .table-wrap { font-size: 15px; line-height: 1.5; }
.prose .table-wrap th, .prose .table-wrap td { padding: 12px 16px; }
.prose .table-wrap thead th { white-space: normal; }
.legal { max-width: 80ch; }
.legal .table-wrap tbody th { font-weight: 500; }
.legal > :first-child { margin-top: 0; }
.table-wrap table.kv th[scope="row"] { width: 30%; color: var(--subtle); font-weight: 400; }
@media (max-width: 560px) { .table-wrap table.kv th[scope="row"] { width: 40%; } }

.glossary > div { display: grid; grid-template-columns: minmax(160px, 260px) 1fr; gap: 24px; padding: 20px 0; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.glossary > div:target { background: linear-gradient(90deg, rgba(0,106,252,.14), transparent); }
.glossary dt { font: 600 19px var(--f-display); }
.glossary dd { color: var(--muted); max-width: 72ch; }
@media (max-width: 700px) { .glossary > div { grid-template-columns: 1fr; gap: 6px; } }
.az { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.az a { font: 400 13px var(--f-mono); color: var(--fg-2); border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 12px; }
.az a:hover { border-color: var(--subtle); color: #fff; }
.glossary-card { justify-content: center; }

/* ---------------------------------------------------------------- forms */
.form-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 56px; align-items: start; }
.form-page .form-layout { padding-top: 32px; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 30px; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; padding: 22px; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.is-wide, .form .is-wide, .form-error { grid-column: 1 / -1; }
.field label { font-size: 14px; color: var(--muted); }
.field .opt { color: var(--faint); font-size: 13px; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); color: var(--fg); padding: 0 12px; font: 16px var(--f-body); }
.field textarea { padding: 10px 12px; resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px rgba(63,180,255,.18); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--err); }
.field-error { color: var(--err); font-size: 13px; }
.field.check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.field.check input { width: 18px; height: 18px; min-height: 0; margin-top: 3px; accent-color: var(--blue); }
.field.check label { font-size: 13px; color: var(--subtle); }
.field.check .field-error { grid-column: 2; }
.form-error { color: #fff; background: rgba(255,138,138,.12); border: 1px solid rgba(255,138,138,.45); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; }
.form-ok { border: 1px solid var(--blue); border-radius: var(--radius); background: var(--surface-strong); padding: 36px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.form-ok p { color: var(--fg-2); }
.contact-mini { display: flex; flex-wrap: wrap; gap: 10px 24px; padding-top: 6px; }
.contact-mini li { display: inline-flex; align-items: center; gap: 8px; color: var(--subtle); }
.kv { display: grid; gap: 6px; font-size: 15px; margin-top: 4px; }
.kv div { display: grid; grid-template-columns: 76px 1fr; gap: 10px; }
.kv dt { color: var(--faint); }
.kv dd { font-family: var(--f-mono); font-size: 13px; overflow-wrap: anywhere; }
.channel.is-accent .kv dt { color: var(--subtle); }

/* ---------------------------------------------------------------- cta + footer */
.cta-band { border-top: 1px solid var(--line-soft); background: radial-gradient(900px 400px at 85% 0%, rgba(0,106,252,.24), rgba(0,106,252,0)), var(--bg-alt); }
.cta-inner { padding-block: 80px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; }
.cta-inner .stack { max-width: 680px; }
.site-footer { border-top: 1px solid var(--line-soft); background: var(--bg-deep); }
.footer-grid { padding-block: 56px 40px; display: grid; grid-template-columns: minmax(240px, 1.5fr) repeat(6, minmax(120px, 1fr)); gap: 28px; }
@media (max-width: 1100px) { .footer-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand img { height: 30px; width: auto; align-self: flex-start; }
.footer-brand p { color: var(--subtle); font-size: 15px; max-width: 340px; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--subtle); }
.footer-contact li { display: flex; align-items: center; gap: 8px; }
.footer-contact .ic { color: var(--cyan); }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-col a { color: var(--fg-2); }
.footer-col a:hover { color: #fff; }
.footer-title { font: 500 12px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 2px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 22px 28px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--faint); }
.footer-legal nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-legal a { color: var(--subtle); }

.notfound .container { padding-block: 120px 140px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .cta-band { display: none; }
  body { background: #fff; color: #000; }
}

/* ---------------------------------------------------------------- search */
.search-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius-sm); color: var(--fg-2); border: 1px solid transparent; }
.search-toggle:hover, .search-toggle[aria-expanded="true"] { color: #fff; border-color: var(--line-strong); }
.search-panel { border-top: 1px solid var(--line-soft); background: rgba(7,19,37,.98); }
.search-panel .search-inline { padding-block: 16px; max-width: var(--container); }
.search-inline { display: flex; gap: 10px; align-items: center; width: 100%; max-width: 640px; }
.search-inline.lg { max-width: 760px; margin-top: 8px; }
.search-inline input { flex: 1; min-width: 0; min-height: 50px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); color: var(--fg); padding: 0 16px; font: 17px var(--f-body); }
.search-inline input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(63,180,255,.18); }
.search-inline input::-webkit-search-cancel-button { filter: invert(.7); }
.search-inline .btn { min-height: 50px; flex: none; }
.search-close { flex: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: transparent; color: var(--subtle); border: 0; cursor: pointer; border-radius: var(--radius-sm); }
.search-close:hover { color: #fff; }
@media (max-width: 560px) { .search-inline .btn span, .search-inline .btn { font-size: 0; gap: 0; padding: 0 14px; } .search-inline .btn .ic { width: 20px; height: 20px; } }
@media (max-width: 1100px) { .nav-actions .search-toggle { order: -1; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { font: 400 14px var(--f-mono); color: var(--fg-2); border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 14px; }
.chip:hover { border-color: var(--cyan); color: #fff; }
.results { border-top: 1px solid var(--line); margin-top: 18px; max-width: 900px; }
.results li { border-bottom: 1px solid var(--line); }
.results a { display: flex; flex-direction: column; gap: 6px; padding: 22px 0; color: var(--fg); }
.results a:hover .result-title { color: #fff; text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: 5px; }
.result-title { font: 600 21px/1.3 var(--f-display); }
.result-snippet { color: var(--muted); font-size: 15px; line-height: 1.6; }
.result-url { font: 400 12.5px var(--f-mono); color: var(--faint); }
mark { background: rgba(63,180,255,.22); color: #fff; border-radius: 3px; padding: 0 2px; }
.empty-search { display: flex; flex-direction: column; gap: 12px; }

/* ---------------------------------------------------------------- error pages */
.error-page { border-bottom: 1px solid var(--line-soft); overflow: hidden; }
.error-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; padding-block: 64px 80px; }
@media (max-width: 1000px) { .error-grid { grid-template-columns: 1fr; padding-block: 40px 64px; } .error-art { order: -1; } }
.error-copy .eyebrow { color: var(--cyan); }
.trace { margin: 0; font: 400 13.5px/1.7 var(--f-mono); color: var(--subtle); background: var(--bg-deep); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; overflow-x: auto; white-space: pre; }
.trace .prompt { color: var(--cyan); }
.trace .miss { color: #FFB86B; }
@media (max-width: 560px) { .trace { font-size: 12px; padding: 14px; white-space: pre-wrap; word-break: break-all; } }
.quick-routes ul { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 8px; }
.quick-routes a { font-weight: 500; }
.error-art { margin: 0; }
.error-art figcaption { margin-top: 10px; font: 400 13px var(--f-mono); color: var(--faint); text-align: center; }
.lost-packet { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #050E1C; }
.dc-led { animation: blink 1.4s steps(2, start) infinite; }
.sq-tail { transform-box: view-box; transform-origin: 36px 120px; animation: tail 2.6s ease-in-out infinite; }
@keyframes tail { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-7deg); } }
.lp-beam { transform-box: view-box; transform-origin: 116px 47px; animation: beam 3.2s ease-in-out infinite; }
@keyframes beam { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(5deg); } }
.lp-packet { animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.lp-bubble { animation: bubble 5s ease-in-out infinite; }
@keyframes bubble { 0%, 70% { opacity: 1; } 80%, 92% { opacity: 0; } 100% { opacity: 1; } }
.lp-trail { animation: trail 2.2s linear infinite; }
@keyframes trail { to { stroke-dashoffset: -24; } }
.sq-q { animation: q 1.8s ease-in-out infinite; }
@keyframes q { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.lp-spark { animation: spark .5s steps(2, start) infinite; }
@keyframes spark { 50% { opacity: .1; } }

/* section heading directly followed by a card grid */
.section-tight > .h2 + .grid { margin-top: 32px; }


/* ================================================================ mobile layer (≤ 760px)
   Shorter pages, denser cards, vertical packet path, tier tables as cards,
   full-height menu sheet. Desktop is untouched. */
.nav-toggle .ic-close { display: none; }
.nav-toggle[aria-expanded="true"] .ic-open { display: none; }
.nav-toggle[aria-expanded="true"] .ic-close { display: inline-flex; }
.nav-toggle span { display: inline-flex; }

@media (max-width: 1100px) {
  html.nav-locked, html.nav-locked body { overflow: hidden; }
  .nav-panel { height: calc(100dvh - 70px); max-height: none; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .mega-col a { padding: 9px 12px; }
  .mega-title { padding-left: 12px; margin: 6px 0 4px; }
}
@media (max-width: 760px) {
  .mega-col a span { display: none; }
  .mega-col a strong { font-size: 17px; }
  .mega-inner { gap: 4px; }
}

@media (max-width: 760px) {
  :root { --section: 52px; }
  body { font-size: 16px; }
  .section-head { margin-bottom: 24px; }
  .group-label { margin: 22px 0 10px; }

  /* hero */
  .hero-inner { padding-block: 40px 36px; gap: 32px; }
  .hero-copy { gap: 18px; }
  .hero-copy .btn-row .btn { flex: 1 1 auto; }
  .page-hero > .container, .product-hero > .container { padding-block: 24px 40px; }
  .page-hero-body, .product-hero-grid { padding-top: 18px; }
  .product-hero-grid { gap: 24px; }
  .appliance-wrap { padding: 16px 12px 14px; }

  /* packet path: vertical on phones */
  .path { padding: 16px; gap: 12px; }
  .path-head span:nth-child(2) { display: none; }
  .path-scroll { overflow: visible; }
  .path-row { flex-direction: column; min-width: 0; }
  .wire { flex: 0 0 14px; width: 2px; height: auto; align-self: flex-start; margin-left: 22px;
          background-image: linear-gradient(180deg, var(--cyan) 0 6px, transparent 6px 12px); background-size: 2px 12px; background-repeat: repeat-y; animation: flowv 1.1s linear infinite; }
  @keyframes flowv { to { background-position: 0 12px; } }
  .node > a, .node:not(:has(a)) { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 2px; align-items: baseline; padding: 10px 14px; }
  .node-label { grid-column: 1 / -1; font-size: 11px; }
  .node-name { font-size: 17px; }
  .node-meta { font-size: 12px; text-align: right; }

  /* proof: 2 × 2 */
  .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; padding-block: 26px; }
  .proof-value { font-size: 26px; }
  .proof-label { font-size: 14px; }

  /* cards: denser, whole card is the link */
  .card { padding: 18px; gap: 6px; }
  .card-title { font-size: 21px; }
  .product-card .card-more { display: none; }
  .product-card .card-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .product-card .card-title::after { content: '→'; color: var(--link); font: 600 18px var(--f-body); }
  .grid { gap: 12px; }
  .tiles { padding-block: 36px; }
  .tile { padding: 22px 0; gap: 8px; }
  .tile-title { font-size: 22px; }

  /* product sections */
  .flow-step { padding: 16px; }
  .features { margin-top: 18px; }
  .feature { padding: 16px 0; }
  .feature h3 { font-size: 18px; }
  .note-card { padding: 20px; }
  .metrics dl > div { padding: 14px 16px; }
  .metrics-title { padding: 12px 16px; }

  /* tier tables become stacked cards */
  .table-wrap:has(table.tiers) { overflow: visible; border: 0; background: transparent; }
  table.tiers, table.tiers tbody { display: block; width: 100%; min-width: 0; }
  table.tiers thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.tiers tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; padding: 12px 14px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
  table.tiers tr.is-top { border-color: var(--blue); background: var(--surface-strong); }
  table.tiers th[scope="row"] { grid-column: 1 / -1; padding: 0 0 4px; border: 0; border-bottom: 1px solid var(--line); font: 600 18px var(--f-display); text-align: left; }
  table.tiers td { display: flex; flex-direction: column; justify-content: space-between; gap: 2px; padding: 0; border: 0; font-size: 14px; white-space: normal; min-width: 0; }
  table.tiers td::before { content: attr(data-label); font: 500 10.5px/1.3 var(--f-mono); letter-spacing: .04em; color: var(--faint); }
  table.tiers td.muted:nth-child(6) { grid-column: span 2; }
  table.tiers td:nth-child(2):nth-last-child(1) { grid-column: 1 / -1; }

  /* glossary index chips: real touch targets */
  .chip { min-height: 40px; display: inline-flex; align-items: center; }

  /* footer: two columns of links, compact */
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; padding-block: 40px 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col { gap: 4px; }
  .footer-col a { min-height: 36px; display: flex; align-items: center; }
  .footer-legal { flex-direction: column; gap: 10px; }
  .footer-legal nav { gap: 6px 18px; }
  .footer-legal nav a { min-height: 36px; display: inline-flex; align-items: center; }
}

@media (max-width: 760px) {
  /* comparison table → stacked rows */
  .table-wrap:has(table.compare) { overflow: visible; border: 0; }
  table.compare, table.compare tbody { display: block; min-width: 0; }
  table.compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.compare tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  table.compare th[scope="row"] { grid-column: 1 / -1; width: auto; padding: 0; border: 0; font: 600 17px var(--f-display); }
  table.compare td { display: block; padding: 8px 10px; border: 0; border-radius: 8px; font-size: 15px; line-height: 1.45; }
  table.compare td::before { content: attr(data-label); display: block; margin-bottom: 4px; font: 500 10.5px var(--f-mono); letter-spacing: .05em; text-transform: none; color: var(--faint); }
  table.compare td.is-us::before { color: var(--cyan); }
  table.compare td.muted { background: var(--surface); }

  .cell { padding: 20px 18px; gap: 8px; }
  .cell h3 { font-size: 19px; }
  .h1 { font-size: clamp(30px, 8.4vw, 36px); }
  .display { font-size: clamp(34px, 9.6vw, 40px); }
  .breadcrumb ol { flex-wrap: nowrap; }
  .breadcrumb li { flex: none; white-space: nowrap; }
  .breadcrumb li:last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}

/* ---------------------------------------------------------------- use-case landing */
.arch { display: grid; gap: 12px; margin-top: 28px; counter-reset: none; }
.arch-step { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.arch-num { font: 500 22px/1 var(--f-mono); color: var(--cyan); padding-top: 4px; }
.arch-step .card-title a { color: var(--fg); }
.arch-step .card-title a:hover { color: #fff; }
.stack-sm { display: flex; flex-direction: column; gap: 6px; }
.uc-intro { align-items: start; }
@media (max-width: 760px) { .arch-step { grid-template-columns: 1fr; gap: 6px; padding: 16px; } .arch-num { font-size: 15px; padding: 0; } }

@media (max-width: 760px) { .uc-intro .panel { display: none; } }
