/* AsrielNetworks public site.

   Tokens are the console's (enterprise.html :root, login.html light override),
   copied verbatim. The treatment follows the console's Professional skin rules:
   tinted panels on a near-black page, blurred fixed chrome, no specular edge,
   no glow, no decorative background; one accent, reserved for interaction;
   severity colors mean severity only. Marketing-weight type, quiet chrome. */

:root {
  --page:            #060607;
  --surface-1:       rgba(255,255,255,0.035);
  --surface-2:       rgba(255,255,255,0.06);
  --glass-border:    rgba(255,255,255,0.09);
  --glass-highlight: rgba(255,255,255,0.2);
  --text-primary:    #f5f5f4;
  --text-secondary:  #a3a29c;
  --text-muted:      #7d7c75;
  --accent-red:      #e5484d;
  --accent-purple:   #6f5bd4;
  --accent-purple-soft: rgba(111,91,212,0.18);
  --status-good:     #30a46c;
  --status-warn:     #d8a01f;
  --delta-bad:       #eb5757;
  --delta-good:      #2fbf71;
  --chrome-bg:       rgba(8,8,9,0.78);
  --code-bg:         rgba(0,0,0,0.35);
  --mono:            "JetBrains Mono", "Cascadia Code", "SF Mono", Consolas, monospace;
  --ease-glass:      cubic-bezier(0.32, 0.72, 0, 1);
  --ease-smooth:     cubic-bezier(0.22, 1, 0.36, 1);
  --on-accent:       #ffffff;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --page:            #f4f4f2;
  --surface-1:       rgba(15, 15, 20, 0.035);
  --surface-2:       rgba(15, 15, 20, 0.06);
  --glass-border:    rgba(15, 15, 20, 0.12);
  --glass-highlight: rgba(15, 15, 20, 0.2);
  --text-primary:    #17171a;
  --text-secondary:  #55555c;
  --text-muted:      #86868e;
  --accent-red:      #c62828;
  --accent-purple:   #5b46c4;
  --accent-purple-soft: rgba(91, 70, 196, 0.16);
  --status-good:     #0a7d0a;
  --status-warn:     #a9750a;
  --delta-bad:       #c94a4a;
  --delta-good:      #1f9b52;
  --chrome-bg:       rgba(244, 244, 242, 0.85);
  --code-bg:         rgba(15, 15, 20, 0.06);
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 68px; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--text-primary);
  font-family: "Inter", -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
h1 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.02em; }
h2 { font-size: clamp(21px, 2.2vw, 26px); }
h3 { font-size: 16px; }
p  { margin: 0; }
a  { color: var(--text-primary); text-decoration: underline; text-decoration-color: var(--glass-highlight); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--text-primary); }
code, pre, kbd { font-family: var(--mono); font-size: 12.5px; }
code { background: var(--code-bg); padding: 1px 5px; border-radius: 4px; }
pre {
  margin: 0; padding: 14px 16px; overflow: auto;
  background: var(--code-bg); border: 1px solid var(--glass-border); border-radius: 8px;
  line-height: 1.55; color: var(--text-primary);
}
pre code { background: none; padding: 0; }
ul, ol { margin: 0; padding-left: 20px; }
li + li { margin-top: 6px; }
img, svg { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--accent-purple); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent-purple-soft); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  padding: 8px 12px; border-radius: 6px;
  background: var(--accent-purple); color: var(--on-accent); font-weight: 600;
}
.skip-link:focus { top: 12px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- panels ---------- */
.card {
  border-radius: 10px;
  background: var(--surface-1);
  border: 1px solid var(--glass-border);
  padding: 22px 22px 24px;
  transition: border-color 0.2s var(--ease-glass), background 0.2s var(--ease-glass);
}
a.card { display: block; text-decoration: none; color: inherit; }
a.card:hover, .card.hoverable:hover { border-color: var(--glass-highlight); background: var(--surface-2); }
.card > h3 + p, .card > h2 + p { margin-top: 8px; }
.card .eyebrow + h3 { margin-top: 8px; }

/* ---------- chrome: app bar ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  height: 56px;
  background: var(--chrome-bg);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(26px) saturate(1.6);
  -webkit-backdrop-filter: blur(26px) saturate(1.6);
}
.site-header .bar { height: 56px; display: flex; align-items: center; gap: 24px; }
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none; color: var(--text-primary);
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
}
.brand .mark { display: block; height: 28px; width: auto; flex: none; border-radius: 6px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav li + li { margin-top: 0; }
.site-nav ul a {
  display: inline-flex; align-items: center; height: 56px; padding: 0 10px;
  text-decoration: none; font-size: 14px; color: var(--text-secondary);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color 0.2s var(--ease-glass), border-color 0.2s var(--ease-glass);
}
.site-nav ul a:hover { color: var(--text-primary); }
.site-nav ul a[aria-current="page"] { color: var(--text-primary); border-bottom-color: var(--text-primary); }
.site-nav .actions { display: flex; align-items: center; gap: 8px; margin-left: 12px; }
.site-nav .actions .link { font-size: 14px; color: var(--text-secondary); text-decoration: none; padding: 0 6px; }
.site-nav .actions .link:hover { color: var(--text-primary); }
.nav-toggle, .theme-btn {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 6px; border: 1px solid var(--glass-border); background: transparent;
  color: var(--text-secondary); cursor: pointer; font: inherit;
  transition: color 0.2s var(--ease-glass), background 0.2s var(--ease-glass), border-color 0.2s var(--ease-glass);
}
.nav-toggle:hover, .theme-btn:hover { color: var(--text-primary); background: var(--surface-1); border-color: var(--glass-highlight); }
.nav-toggle { display: none; }
.nav-toggle svg, .theme-btn svg { width: 16px; height: 16px; }
.theme-btn .moon, :root[data-theme="light"] .theme-btn .sun { display: none; }
:root[data-theme="light"] .theme-btn .moon { display: block; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: 6px;
  font: inherit; font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer;
  color: var(--text-primary); background: transparent; border: 1px solid var(--glass-border);
  transition: background 0.2s var(--ease-glass), color 0.2s var(--ease-glass), border-color 0.2s var(--ease-glass);
}
.btn:hover { background: var(--surface-1); border-color: var(--glass-highlight); }
.btn-primary { background: var(--accent-purple); border-color: var(--accent-purple); color: var(--on-accent); }
.btn-primary:hover { background: #5f4cc0; border-color: #5f4cc0; color: var(--on-accent); }
:root[data-theme="light"] .btn-primary:hover { background: #4e3bb0; border-color: #4e3bb0; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13.5px; }
.btn-lg { height: 42px; padding: 0 20px; font-size: 14.5px; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
main { display: block; }
.section { padding: 56px 0; border-top: 1px solid var(--glass-border); }
.section-head { max-width: 680px; margin-bottom: 26px; }
.section-head p { margin-top: 10px; color: var(--text-secondary); font-size: 15.5px; }
.eyebrow {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted);
}
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.lead { font-size: 17px; color: var(--text-secondary); line-height: 1.6; }
.muted { color: var(--text-secondary); }
.small { font-size: 13px; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px;
  border-radius: 4px; border: 1px solid var(--glass-border);
  font-family: var(--mono); font-size: 11px; color: var(--text-secondary);
}
.pill.sev-high { color: var(--delta-bad); border-color: rgba(235,87,87,0.4); }
.pill.sev-medium { color: var(--status-warn); border-color: rgba(216,160,31,0.4); }
.pill.sev-critical { color: var(--accent-red); border-color: rgba(229,72,77,0.5); }
.pill.good { color: var(--delta-good); border-color: rgba(47,191,113,0.4); }

/* ---------- hero ---------- */
.hero { padding: 72px 0 48px; }
.hero h1 { max-width: 760px; }
.hero .lead { margin-top: 16px; max-width: 640px; }
.hero .row { margin-top: 26px; }
.facts {
  margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--glass-border);
  display: grid; gap: 14px 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  list-style: none; padding-left: 0;
}
.facts li + li { margin-top: 0; }
.facts dt { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.facts dd { margin: 4px 0 0; font-size: 14px; color: var(--text-primary); }
.facts code { font-size: 12px; }
.notice { padding: 12px 14px; border-radius: 8px; border: 1px solid var(--glass-border); background: var(--surface-1); font-size: 14px; color: var(--text-secondary); }
.notice strong { color: var(--text-primary); }

/* ---------- hero grid, process strip, capability strip ---------- */
.hero-grid { display: grid; gap: 40px; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); align-items: center; }
.process { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px 0; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.process li + li { margin-top: 0; }
.process li + li::before { content: "/"; margin: 0 10px; color: var(--glass-highlight); }
.caps-strip { list-style: none; padding: 22px 0 0; margin: 30px 0 0; border-top: 1px solid var(--glass-border); display: grid; gap: 14px 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.caps-strip li + li { margin-top: 0; }
.caps-strip strong { display: block; font-size: 13.5px; font-weight: 600; }
.caps-strip span { display: block; font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }

/* ---------- screenshots ---------- */
.shot { margin: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--glass-border); background: #0b0b0d; }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { padding: 8px 12px; font-size: 12px; color: var(--text-muted); border-top: 1px solid var(--glass-border); background: var(--surface-1); }
:root[data-theme="light"] .shot { border-color: rgba(15,15,20,0.2); }
.caps { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cap { display: flex; flex-direction: column; gap: 12px; padding-top: 18px; border-top: 1px solid var(--glass-border); }
.cap h3 { font-size: 20px; letter-spacing: -0.015em; }
.cap .shot { margin-top: 4px; }
.cap ul { padding-left: 18px; font-size: 14px; color: var(--text-secondary); }
.cap li + li { margin-top: 6px; }

.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tier-row { margin-top: 16px; }
.tier-row .link { color: var(--text-secondary); text-decoration: none; }
.tier-row .link:hover { color: var(--text-primary); }
.concept-group + .concept-group { margin-top: 36px; }
.group-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding-bottom: 10px; border-bottom: 1px solid var(--glass-border); }
.group-h h3 { font-size: 16px; }
.concept-list { margin-top: 14px; }

/* ---------- pipeline diagram ---------- */
.pipeline { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 1000px) { .pipeline { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pipeline { grid-template-columns: 1fr; } }
.stage { padding: 16px 16px 18px; border-radius: 10px; }
.stage .n { font-family: var(--mono); font-size: 11px; color: var(--text-muted); letter-spacing: 0.06em; }
.stage h3 { margin-top: 6px; font-size: 15px; }
.stage p { margin-top: 8px; font-size: 13px; color: var(--text-secondary); }
.stage ul { margin-top: 8px; padding-left: 16px; font-size: 12.5px; color: var(--text-secondary); }
.stage li + li { margin-top: 3px; }
.stage code { font-size: 11.5px; }
.branch { margin-top: 12px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border-radius: 8px; border: 1px solid var(--glass-border); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--glass-border); vertical-align: top; }
th { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; background: var(--surface-1); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:target td { background: var(--accent-purple-soft); }
td code { white-space: nowrap; }

/* ---------- learn ---------- */
.search { display: flex; gap: 10px; align-items: center; margin-top: 22px; max-width: 640px; }
.search label { flex: 1; }
.search input[type="search"] {
  width: 100%; height: 42px; padding: 0 14px; border-radius: 6px; font: inherit; font-size: 15px;
  color: var(--text-primary); background: var(--surface-1); border: 1px solid var(--glass-border);
  transition: border-color 0.2s var(--ease-glass);
}
.search input[type="search"]:focus { border-color: var(--accent-purple); outline: none; }
.search-status { margin-top: 10px; font-size: 13px; color: var(--text-muted); min-height: 20px; }
.results { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.results li + li { margin-top: 0; }
.results h3 { font-size: 15.5px; }
.results .snippet { margin-top: 6px; font-size: 14px; color: var(--text-secondary); }
.results mark, .concept-list mark { background: var(--accent-purple-soft); color: var(--text-primary); border-radius: 2px; padding: 0 1px; }
.results .meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.empty { padding: 20px; border-radius: 8px; border: 1px dashed var(--glass-border); }
.empty h3 { font-size: 15.5px; }
.empty ul { margin-top: 10px; list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.empty li + li { margin-top: 0; }
.concept-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 20px; }
.concept-list .card p { font-size: 14px; color: var(--text-secondary); }
.concept-list .meta { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.article { max-width: 760px; }
.article .lead { margin-top: 14px; }
.article section { margin-top: 40px; }
.article section h2 { font-size: 21px; padding-bottom: 10px; border-bottom: 1px solid var(--glass-border); }
.article section h2 + * { margin-top: 14px; }
.article section p + p, .article section p + ul, .article section ul + p, .article section p + pre, .article section pre + p { margin-top: 12px; }
.article section li { color: var(--text-secondary); }
.article section li strong { color: var(--text-primary); }
.article .refs li { font-size: 14px; }
.article .rules { list-style: none; padding: 0; display: grid; gap: 8px; }
.article .rules li { padding: 12px 14px; border-radius: 8px; border: 1px solid var(--glass-border); background: var(--surface-1); color: var(--text-secondary); }
.article .rules li + li { margin-top: 0; }
.article .rules strong { display: block; color: var(--text-primary); }
.article .rules code { font-size: 11.5px; }
.toc { position: sticky; top: 76px; align-self: start; }
.toc ol { list-style: none; padding: 0; border-left: 1px solid var(--glass-border); }
.toc li + li { margin-top: 0; }
.toc a { display: block; padding: 6px 12px; margin-left: -1px; border-left: 2px solid transparent; font-size: 13.5px; color: var(--text-secondary); text-decoration: none; }
.toc a:hover { color: var(--text-primary); border-left-color: var(--text-primary); }
.article-layout { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr) 200px; }
.crumbs { font-size: 13px; color: var(--text-muted); }
.crumbs a { color: var(--text-secondary); text-decoration: none; }
.crumbs a:hover { color: var(--text-primary); }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li { margin-top: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--text-muted); }

/* ---------- how-to pages ---------- */
.plan-tabs { display: inline-flex; gap: 2px; margin-top: 16px; padding: 3px; border: 1px solid var(--glass-border); border-radius: 8px; }
.plan-tabs a { padding: 6px 12px; border-radius: 6px; font-size: 13.5px; text-decoration: none; color: var(--text-secondary); }
.plan-tabs a:hover { color: var(--text-primary); }
.plan-tabs a[aria-current="page"] { background: var(--surface-2); color: var(--text-primary); font-weight: 600; }
.howto .first-hour { padding-left: 22px; }
.howto .first-hour li { color: var(--text-secondary); }
.howto .first-hour li + li { margin-top: 8px; }
.howto .first-hour li > strong:first-child { color: var(--text-primary); display: block; }
.howto .first-hour li strong { color: var(--text-primary); }
.howto-group { margin-top: 44px; }
.howto-group > h2 { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); border-bottom: 0; padding-bottom: 0; }
.howto-module { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--glass-border); }
.howto-module .module-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.howto-module h3 { font-size: 20px; letter-spacing: -0.015em; }
.howto-module h4 { margin-top: 16px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.howto-module .plain { margin-top: 8px; font-size: 15.5px; }
.howto-module .when { margin-top: 8px; color: var(--text-secondary); }
.howto-module .shot { margin-top: 14px; }
.howto-module ol, .howto-module ul { margin-top: 8px; padding-left: 20px; color: var(--text-secondary); }
.howto-module li + li { margin-top: 6px; }
.howto-module li strong, .howto-module li em { color: var(--text-primary); }
.pill.tier-free { color: var(--text-secondary); }
.pill.tier-pro { color: var(--accent-purple); border-color: rgba(111,91,212,0.45); }
.pill.tier-enterprise { color: var(--text-primary); border-color: var(--glass-highlight); }
.locked-list { list-style: none; padding: 0; margin-top: 12px; display: grid; gap: 8px; }
.locked-list li { display: grid; grid-template-columns: auto auto 1fr; gap: 10px; align-items: baseline; padding: 10px 12px; border: 1px solid var(--glass-border); border-radius: 8px; font-size: 14px; color: var(--text-secondary); }
.locked-list li + li { margin-top: 0; }
.locked-list a { text-decoration: none; color: var(--text-primary); }
.toc .toc-sec { display: block; padding: 8px 12px 2px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.toc ol ol { border-left: 0; }
@media (max-width: 760px) { .locked-list li { grid-template-columns: 1fr; gap: 4px; } }

.dl-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 28px; }
.dl h2 { font-size: 18px; }
.dl .row { margin-top: 12px; }
@media (max-width: 900px) { .dl-grid { grid-template-columns: 1fr; } }

/* ---------- forms (contact) ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border-radius: 6px; font: inherit; font-size: 14px;
  color: var(--text-primary); background: var(--surface-1); border: 1px solid var(--glass-border);
  transition: border-color 0.2s var(--ease-glass);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent-purple); outline: none; }
.field [aria-invalid="true"] { border-color: var(--delta-bad); }
.field .error { font-size: 12.5px; color: var(--delta-bad); min-height: 16px; }
.field .hint { font-size: 12.5px; color: var(--text-muted); }
.form-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.summary { white-space: pre-wrap; }

/* ---------- product intake dialog ---------- */
.intake {
  width: calc(100% - 32px); max-width: 600px; padding: 0; margin: auto;
  border: 1px solid var(--glass-border); border-radius: 10px;
  background: var(--page); color: var(--text-primary);
}
.intake::backdrop { background: rgba(0, 0, 0, 0.6); }
.intake form { padding: 24px; display: grid; gap: 20px; }
.intake fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.intake legend { padding: 0; font-weight: 600; font-size: 15px; }
.intake .hint { margin-top: 2px; font-size: 12.5px; color: var(--text-muted); }
.intake .error { margin-top: 6px; font-size: 12.5px; color: var(--delta-bad); min-height: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip {
  height: 32px; padding: 0 12px; border-radius: 6px; font: inherit; font-size: 13.5px; cursor: pointer;
  color: var(--text-secondary); background: transparent; border: 1px solid var(--glass-border);
  transition: color 0.2s var(--ease-glass), background 0.2s var(--ease-glass), border-color 0.2s var(--ease-glass);
}
.chip:hover { color: var(--text-primary); border-color: var(--glass-highlight); }
.chip[aria-pressed="true"] { color: var(--text-primary); background: var(--accent-purple-soft); border-color: var(--accent-purple); }
.tiers { display: grid; gap: 8px; margin-top: 10px; }
.tier {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; cursor: pointer;
  border: 1px solid var(--glass-border); border-radius: 8px; font-size: 13.5px; color: var(--text-secondary);
}
.tier input { margin: 3px 0 0; accent-color: var(--accent-purple); }
.tier strong { display: block; color: var(--text-primary); font-weight: 600; margin-bottom: 2px; }
.tier:has(input:checked) { border-color: var(--accent-purple); background: var(--surface-1); }
@media (max-width: 760px) { .intake form { padding: 18px; } }

/* ---------- footer ---------- */
.site-footer { margin-top: 40px; padding: 26px 0 40px; border-top: 1px solid var(--glass-border); font-size: 13px; color: var(--text-muted); }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer li + li { margin-top: 0; }
.site-footer a { color: var(--text-secondary); text-decoration: none; }
.site-footer a:hover { color: var(--text-primary); }

/* ---------- home: split hero + two live modules ----------
   Two-column hero (display headline left, plain paragraph right), then the
   product sections; the Users Map globe and the live AI attack graph sit
   further down and carry a small sample. Borders, not shadows; accent only on
   the second headline line and the one primary button. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero-split { padding: 84px 0 28px; }
.hero-cols { display: grid; gap: 40px; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
.display { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 600; }
.display .accent { color: var(--accent-purple); }
.hero-aside { margin: 0; font-size: 17px; line-height: 1.6; color: var(--text-secondary); max-width: 460px; padding-bottom: 6px; }
.hero-split .row { margin-top: 28px; }

.feature-split { display: grid; gap: 40px; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
.feature-copy { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.feature-copy p { margin: 0; color: var(--text-secondary); font-size: 15.5px; }
.feature-copy ul { margin: 4px 0 6px; padding-left: 18px; font-size: 14px; color: var(--text-secondary); }
.globe-stage { position: relative; height: 520px; border-radius: 10px; border: 1px solid var(--glass-border); background: var(--code-bg); overflow: hidden; }
#homeGlobe { width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
#homeGlobe.dragging { cursor: grabbing; }
.globe-tip { position: absolute; pointer-events: none; padding: 8px 11px; border-radius: 8px; background: var(--chrome-bg); border: 1px solid var(--glass-border); font-size: 11.5px; opacity: 0; transition: opacity 0.15s ease; white-space: nowrap; z-index: 2; }
.globe-tip.show { opacity: 1; }
.globe-tip .t-name { font-weight: 600; margin-bottom: 2px; }
.globe-tip .t-meta { color: var(--text-secondary); }
.stage-note { position: absolute; right: 10px; bottom: 8px; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.lag-card { display: flex; flex-direction: column; gap: 12px; }
.pt-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pt-title { font-weight: 600; }
.pt-desc { margin: 4px 0 0; color: var(--text-secondary); line-height: 1.5; font-size: 13px; }

/* live AI attack graph: the console's own rules, on the site's tokens */
.lag-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lag-head .btn { margin-left: auto; }
.lag-live { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-secondary); border: 1px solid var(--glass-border); border-radius: 4px; padding: 3px 7px; }
.lag-live .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--status-good); }
.lag-live.paused .dot { background: var(--text-muted); }
.lag-stage { border: 1px solid var(--glass-border); border-radius: 10px; background: var(--code-bg); overflow-x: auto; overflow-y: hidden; }
.lag-svg { display: block; width: 100%; min-width: 900px; height: auto; }
.lag-svg .lag-edge { stroke: var(--glass-border); stroke-width: 1; fill: none; }
.lag-node rect { fill: var(--surface-1); stroke: var(--glass-border); stroke-width: 1; transition: stroke 0.25s linear; }
.lag-node { cursor: pointer; outline: none; }
.lag-node:hover rect, .lag-node:focus-visible rect { stroke: var(--text-muted); }
.lag-node.sel rect { stroke: var(--text-secondary); fill: var(--surface-2); }
.lag-node.bad rect { stroke: var(--accent-red); }
.lag-node.warn rect { stroke: var(--status-warn); }
.lag-node .ln-name { font-size: 13px; fill: var(--text-primary); font-family: inherit; }
.lag-node .ln-count { font-size: 11px; fill: var(--text-muted); font-family: var(--mono); }
.lag-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 11px; color: var(--text-muted); }
.lag-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lag-legend i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.lag-legend i.good { background: var(--status-good); } .lag-legend i.warn { background: var(--status-warn); } .lag-legend i.bad { background: var(--accent-red); }
.lag-rate { margin-left: auto; font-family: var(--mono); }
.lag-feed { border: 1px solid var(--glass-border); border-radius: 8px; background: var(--code-bg); padding: 4px 0; overflow: hidden; }
.lag-line { display: flex; align-items: baseline; gap: 10px; padding: 4px 12px; font-family: var(--mono); font-size: 11px; color: var(--text-secondary); }
.lag-line .lg-time { color: var(--text-muted); flex: none; }
.lag-line .lg-tag { flex: none; width: 66px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; }
.lag-line.bad .lg-tag { color: var(--accent-red); } .lag-line.warn .lg-tag { color: var(--status-warn); } .lag-line.good .lg-tag { color: var(--text-muted); }
.lag-line .lg-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lag-detail { font-size: 13px; }

@media (max-width: 900px) {
  .hero-cols { grid-template-columns: 1fr; gap: 18px; align-items: start; }
  .feature-split { grid-template-columns: 1fr; gap: 20px; }
  .globe-stage { height: 340px; }
}

/* ---------- scroll-linked depth (home; enabled by site/motion.js) ----------
   --p is 0 before an element has been scrolled into place and 1 once it has;
   every value below is a plain interpolation on it, so the static page (no
   script, or reduced motion) is exactly the --p: 1 state. */
.motion main { overflow-x: clip; }
.motion [data-motion] { --p: 1; will-change: transform, opacity; }
.motion [data-motion="hero"] {
  --tilt-x: 13deg; --tilt-y: -9deg;
  transform: perspective(1500px)
    rotateX(calc(var(--tilt-x) * (1 - var(--p))))
    rotateY(calc(var(--tilt-y) * (1 - var(--p))))
    translateY(calc(-8px * var(--p)));
  transform-origin: 50% 45%;
  box-shadow: 0 44px 80px -44px rgba(0, 0, 0, calc(0.75 * (1 - var(--p))));
}
.motion [data-motion="rise"] {
  --tilt-x: 15deg;
  transform: perspective(1300px)
    rotateX(calc(var(--tilt-x) * (1 - var(--p))))
    translateY(calc(44px * (1 - var(--p))))
    scale(calc(0.965 + 0.035 * var(--p)));
  transform-origin: 50% 100%;
  opacity: calc(0.12 + 0.88 * var(--p));
  box-shadow: 0 36px 60px -40px rgba(0, 0, 0, calc(0.6 * (1 - var(--p))));
}
.motion [data-motion="fade"] {
  transform: translateY(calc(20px * (1 - var(--p))));
  opacity: calc(0.15 + 0.85 * var(--p));
}
@media (max-width: 760px) {
  .motion [data-motion="hero"] { --tilt-x: 8deg; --tilt-y: 0deg; }
  .motion [data-motion="rise"] { --tilt-x: 9deg; }
}
@media (prefers-reduced-motion: reduce) {
  .motion [data-motion] { transform: none; opacity: 1; box-shadow: none; will-change: auto; }
}

:root[data-app-shell] .site-footer,
:root[data-app-shell] [data-marketing] { display: none !important; }

/* ---------- control feel (pairs with ui-feel.js) ----------
   Same idea as the consoles' siq-ui-feel block: press scale + ink from the
   pointer, a one-pixel lift on hover, one focus ring, nothing under reduced
   motion. */
.btn, .chip, .nav-toggle, .theme-btn, .site-nav ul a, .lag-node, .plan-tab, [role="button"], [role="tab"] {
  position: relative; -webkit-tap-highlight-color: transparent;
  transition: transform 0.16s var(--ease-smooth), background 0.2s var(--ease-glass), color 0.2s var(--ease-glass), border-color 0.2s var(--ease-glass), filter 0.15s ease;
}
.is-pressed { overflow: hidden; isolation: isolate; }
.is-pressed::before {
  content: ""; position: absolute; left: var(--ink-x, 50%); top: var(--ink-y, 50%);
  width: var(--ink-size, 200px); height: var(--ink-size, 200px);
  margin: calc(var(--ink-size, 200px) / -2) 0 0 calc(var(--ink-size, 200px) / -2);
  border-radius: 50%; background: currentColor; opacity: 0; pointer-events: none; z-index: -1;
  animation: siqInk 0.5s var(--ease-smooth) forwards;
}
.btn-primary.is-pressed::before { background: var(--on-accent); }
@keyframes siqInk { 0% { transform: scale(0.08); opacity: 0.22; } 60% { opacity: 0.1; } 100% { transform: scale(1); opacity: 0; } }
.btn:hover:not(:active) { transform: translateY(-1px); }
.btn-primary:hover:not(:active) { filter: brightness(1.06); }
.btn:active, .chip:active, .nav-toggle:active, .theme-btn:active, [role="button"]:active { transform: scale(0.97); }
.site-nav ul a:active { transform: scale(0.98); }
.btn:focus-visible, .chip:focus-visible, .nav-toggle:focus-visible, .theme-btn:focus-visible, .site-nav ul a:focus-visible { outline: 2px solid var(--accent-purple); outline-offset: 2px; }
[disabled], [aria-disabled="true"] { transform: none !important; filter: none !important; }
@media (prefers-reduced-motion: reduce) {
  .btn, .chip, .nav-toggle, .theme-btn, .site-nav ul a, [role="button"], [role="tab"] { transform: none !important; }
  .is-pressed::before { display: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .caps { grid-template-columns: 1fr; gap: 28px; }
  .grid.three { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 6px; border-left: 0; }
  .toc a { border-left: 0; padding: 4px 8px; }
}
@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .section { padding: 40px 0; }
  .hero { padding: 40px 0 32px; }
  .nav-toggle { display: grid; }
  .site-nav { position: relative; }
  .site-nav ul {
    display: none; position: absolute; right: 0; top: 46px; min-width: 220px; flex-direction: column; align-items: stretch;
    padding: 6px; border-radius: 8px; border: 1px solid var(--glass-border); background: var(--chrome-bg);
    backdrop-filter: blur(26px) saturate(1.6); -webkit-backdrop-filter: blur(26px) saturate(1.6);
  }
  .site-nav.open ul { display: flex; }
  .site-nav ul a { height: 40px; border-bottom: 0; margin-bottom: 0; border-radius: 6px; }
  .site-nav ul a[aria-current="page"] { background: var(--surface-2); }
  .site-nav .actions .link { display: none; }
  .brand { font-size: 13.5px; gap: 8px; }
  .brand .mark { height: 24px; }
  .site-nav .actions { margin-left: 6px; gap: 6px; }
  .site-nav .actions .btn-sm { padding: 0 10px; }
  .card { padding: 18px; }
  .hero .row .btn { flex: 1 1 auto; }
  .caps-strip { grid-template-columns: 1fr; }
}
