/* ==========================================================================
   synex.riNN.dev: a page in the visual language of the Synex UI kit
   (colours, buttons, statuses, alerts, terminal and bars from the Figma file).
   ========================================================================== */

:root,
[data-theme="dark"] {
  --bg: #0e1117;
  --surface: #13171c;
  --hover: #1a2029;
  --b-subtle: #1e2530;
  --b: #2e3b4f;
  --b-strong: #516078;
  --text: #ffffff;
  --text-2: #adb4bf;
  --muted: #7d8aa0;

  --accent: #ff7b00;
  --accent-hover: #ff9433;
  --accent-text: #ff8a1f;
  --accent-soft: rgba(156, 92, 32, .5);
  --accent-soft-text: #ffd3a8;
  --on-accent: #0e1117;

  --ok: #12a93f;
  --ok-text: #3ccf68;
  --ok-bg: #173f27;
  --warn: #ffcc00;
  --warn-text: #ffd84a;
  --warn-bg: #4a3f12;
  --danger: #aa2e2e;
  --danger-text: #f0645c;
  --danger-bg: #2a1a1e;
  --offline: #8b94a3;
  --ram: #3d7dff;
  --track: #2b3546;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f3f5f8;
  --surface: #ffffff;
  --hover: #eef1f5;
  --b-subtle: #e4e8ee;
  --b: #d3dae4;
  --b-strong: #9aa6b8;
  --text: #0e1117;
  --text-2: #3d4757;
  --muted: #5d6879;

  --accent: #ff7b00;
  --accent-hover: #ff9433;
  --accent-text: #b25500;
  --accent-soft: #ffe7d1;
  --accent-soft-text: #8a4200;
  --on-accent: #0e1117;

  --ok: #12a93f;
  --ok-text: #0c7a2d;
  --ok-bg: #e5f6ea;
  --warn: #e0a800;
  --warn-text: #7a5a00;
  --warn-bg: #fff5d1;
  --danger: #d03b33;
  --danger-text: #b3261e;
  --danger-bg: #fdecec;
  --offline: #6f7887;
  --ram: #005eff;
  --track: #e3e8ef;
  color-scheme: light;
}

:root {
  --r-sm: 5px;
  --r-md: 10px;
  --r-lg: 20px;
  --font-host: "Host Grotesk", system-ui, sans-serif;
  --font-inter: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --wrap: 1200px;
  --pad: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-inter);
  font-size: 15px;
  line-height: 1.55;
  transition: background-color .3s ease, color .3s ease;
}
a { color: inherit; }
p, h1, h2, h3, ul, ol { margin: 0; }
ul { padding: 0; list-style: none; }
code { font-family: var(--font-mono); font-size: .88em; }
svg { display: block; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-sm); }
::selection { background: var(--accent); color: var(--on-accent); }
.muted { color: var(--muted); }
[hidden] { display: none !important; }
.small { font-size: 13px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: var(--r-sm); background: var(--accent); color: var(--on-accent); }
.skip:focus { top: 12px; }

/* ---------- Kit components ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-family: var(--font-host);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn--lg { height: 46px; padding: 0 22px; font-size: 15px; }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--secondary { border-color: var(--b); background: var(--surface); color: var(--text); }
.btn--secondary:hover { border-color: var(--accent); color: var(--accent-text); }
.btn--ghost { border-color: var(--b-subtle); background: transparent; color: var(--muted); }
.btn--ghost:hover { color: var(--text); border-color: var(--b); }

.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-host);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
}
.status[data-status="online"] { color: var(--ok-text); }
.status[data-status="warning"] { color: var(--warn-text); }
.status[data-status="critical"] { color: var(--danger-text); }
.status[data-status="offline"] { color: var(--offline); }
.status[data-status="accent"] { color: var(--accent-text); }
.status[data-status="connecting"] { color: var(--accent-text); }
.status[data-status="connecting"] .dot { background: none; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
  border: 1px solid var(--b);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
}
.pill--ok { border-color: color-mix(in srgb, var(--ok) 60%, transparent); color: var(--ok-text); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.pill--accent { border-color: transparent; background: var(--accent-soft); color: var(--accent-soft-text); }

.panel {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--b);
  border-radius: var(--r-md);
  transition: background-color .3s, border-color .3s;
}
.panel--flush { padding: 0; overflow-x: auto; }

.icon-box {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent);
}
.icon-box svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-box--ok { background: color-mix(in srgb, var(--ok) 22%, transparent); color: var(--ok-text); }
.icon-box--warn { background: color-mix(in srgb, var(--warn) 25%, transparent); color: var(--warn-text); }
.icon-box--danger { background: color-mix(in srgb, var(--danger) 30%, transparent); color: var(--danger-text); }

/* ---------- Top bar ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
  padding: 0 var(--pad);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--b-subtle);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 28px; height: 28px; fill: var(--accent); }
.brand-name { font-family: var(--font-inter); font-size: 15px; font-weight: 700; letter-spacing: .08em; }
.top-nav { display: flex; gap: 4px; margin-left: auto; }
.top-nav a {
  padding: 8px 12px;
  border-radius: var(--r-sm);
  color: var(--accent-text);
  font-family: var(--font-host);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.top-nav a:hover { background: var(--hover); }
.top-nav a.is-active { background: var(--accent-soft); }
.top-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle { --tt-track: var(--surface); --tt-border: var(--b); --tt-knob: var(--accent); --tt-icon-on: var(--on-accent); color: var(--muted); }

main, .foot { width: min(var(--wrap), 100% - 2 * var(--pad)); margin: 0 auto; }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 96px);
}
.crumbs { display: flex; gap: 8px; margin-bottom: 28px; color: var(--b-strong); font-size: 13px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-text); }
.crumbs [aria-current] { color: var(--text-2); }
.hero-logo { width: 84px; height: 84px; margin-bottom: 22px; fill: var(--accent); overflow: visible; }
.hero-title {
  font-family: var(--font-host);
  font-size: clamp(56px, 8vw, 104px);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -0.035em;
}
.hero-lead { max-width: 46ch; margin: 22px 0 24px; font-size: 18px; color: var(--text-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* The logo assembles once: two halves slide together. */
html.js .hero-logo .hl-a { animation: hl-a .9s cubic-bezier(.2, .8, .2, 1) both .1s; }
html.js .hero-logo .hl-b { animation: hl-b .9s cubic-bezier(.2, .8, .2, 1) both .1s; }
@keyframes hl-a { from { transform: translate(-14px, -9px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes hl-b { from { transform: translate(14px, 9px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Terminal (kit 10) */
.term-card {
  border: 1px solid var(--b);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
}
.term-tabs { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--b-subtle); }
.term-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border: 1px solid var(--b-subtle);
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: 12px;
  font-family: var(--font-mono);
}
.term-tab--on { border-color: var(--b); color: var(--text); background: var(--bg); }
.dot--ok { color: var(--ok); }
.dot--off { color: var(--offline); }
.term {
  height: 300px;
  margin: 14px;
  padding: 14px 16px;
  overflow-y: auto;
  border: 1px dashed var(--b);
  border-radius: var(--r-sm);
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  color: var(--text);
  scrollbar-width: thin;
}
.term .p { color: var(--accent-text); }
.term .o { color: var(--text-2); }
.term .d { color: var(--muted); }
.term .w { color: var(--warn-text); }
.term .e { color: var(--danger-text); }
.term .s { color: var(--ok-text); }
.term .cur { display: inline-block; width: .6em; height: 1.1em; vertical-align: -0.2em; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.term-try { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 0 14px 14px; }
.term-try-label { color: var(--muted); font-size: 12px; }
.term-cmds { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 4px 10px;
  border: 1px solid var(--b);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
}
.chip:hover { border-color: var(--accent); color: var(--accent-text); }
.chip:disabled { opacity: .5; cursor: progress; }

/* ---------- Blocks ---------- */

.block { padding: clamp(48px, 7vw, 88px) 0 0; display: grid; gap: 24px; }
.block-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.block-title {
  font-family: var(--font-host);
  font-size: clamp(21px, 2.4vw, 26px);
  font-weight: 700;
  color: var(--accent-text);
}
.block-title .num { color: var(--accent-text); opacity: .7; }
.block-title .num::after { content: " /"; }
.block-sub { color: var(--muted); font-size: 14px; }
.col-title { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-family: var(--font-host); font-size: 15px; font-weight: 700; color: var(--text); }

/* Overview */
.overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; align-items: stretch; }
.audience { display: flex; gap: 18px; align-items: flex-start; }
.audience h3 { margin-bottom: 8px; font-family: var(--font-host); font-size: 19px; line-height: 1.3; }
.audience p { color: var(--text-2); }
.audience p + p { margin-top: 10px; }
.audience .muted { color: var(--muted); }
[hidden] { display: none !important; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.feature {
  padding: 18px;
  border: 1px solid var(--b);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color .15s, transform .15s;
}
.feature:hover { border-color: var(--accent); transform: translateY(-2px); }
.feature svg { width: 26px; height: 26px; margin-bottom: 12px; color: var(--accent); fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-family: var(--font-host); font-size: 15px; font-weight: 700; }
.feature p { margin-top: 2px; color: var(--muted); font-size: 13px; }

/* Live demo */
.demo { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.monitor-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.server-name { font-family: var(--font-host); font-size: 18px; font-weight: 700; }
.server-host { color: var(--muted); font-size: 13px; font-family: var(--font-mono); }
.bars { display: grid; gap: 16px; }
.bar-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 54px; align-items: center; gap: 16px; }
.bar-name { color: var(--text-2); font-size: 14px; }
.bar-track { position: relative; height: 8px; border-radius: 99px; background: var(--track); overflow: hidden; }
.bar-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--ok); transition: width .45s ease, background-color .3s; }
.bar-row[data-level="warning"] .bar-fill { background: var(--warn); }
.bar-row[data-level="critical"] .bar-fill { background: var(--danger-text); }
.bar-val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 14px; }
.spark { width: 100%; height: 60px; margin-top: 20px; border-bottom: 1px solid var(--b-subtle); overflow: visible; }
.spark polyline { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.spark-cpu { stroke: var(--accent); }
.spark-ram { stroke: var(--ram); opacity: .8; }
.monitor-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 99px;
  background: var(--b-strong);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.count.is-hot { background: var(--danger); }
.alerts { display: grid; gap: 10px; }
.alert {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--b);
  border-radius: var(--r-md);
  background: var(--surface);
  animation: alert-in .35s ease both;
}
@keyframes alert-in { from { opacity: 0; transform: translateY(-6px); } }
.alert--error { border-color: var(--danger); background: var(--danger-bg); }
.alert--warning { border-color: var(--warn); background: var(--warn-bg); }
.alert--ok { border-color: var(--ok); background: var(--ok-bg); }
.alert--empty { border-style: dashed; animation: none; }
.alert-title { font-family: var(--font-host); font-weight: 700; font-size: 15px; }
.alert-text { color: var(--text-2); font-size: 13px; }
.alert-time { margin-left: auto; align-self: flex-start; color: var(--muted); font-size: 12px; font-family: var(--font-mono); }

/* Backend */
.backend { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.work-list { display: grid; padding: 8px 24px; }
.work-list li { padding: 16px 0; border-bottom: 1px solid var(--b-subtle); }
.work-list li:last-child { border-bottom: 0; }
.work-list h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; font-family: var(--font-host); font-size: 16px; }
.work-list h3::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.work-list p { color: var(--text-2); }
.state-card {
  display: flex;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--warn);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color .3s;
}
.state-card[data-state="connecting"] { border-color: var(--accent); }
.state-card[data-state="ok"] { border-color: var(--ok); }
.state-title { font-family: var(--font-host); font-size: 20px; font-weight: 600; }
.state-text { margin-top: 4px; color: var(--text-2); }
.state-text b { color: var(--text); font-weight: 600; }
.state-text ol { margin: 4px 0 0; padding-left: 20px; }
.state-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.error-demo .small { margin-top: 12px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.stat { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--b); border-radius: var(--r-md); background: var(--surface); }
.stat-value { font-family: var(--font-host); font-size: 28px; font-weight: 800; line-height: 1.1; color: var(--accent-text); }
.stat-label { color: var(--muted); font-size: 13px; }
.alerts-hint { margin-top: 10px; }

/* Architecture */
.flow { display: flex; align-items: stretch; margin: 0; padding: 0; list-style: none; }
.node {
  flex: 1 1 0;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--b);
  border-radius: var(--r-md);
  background: var(--surface);
}
.node--mine { flex-grow: 1.9; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.node--target { border-style: dashed; background: transparent; }
.node-owner { font-size: 12px; font-weight: 600; color: var(--muted); font-family: var(--font-host); }
.node--mine .node-owner { color: var(--accent-text); }
.node h3 { margin-top: 4px; font-family: var(--font-host); font-size: 18px; }
.node p { color: var(--text-2); font-size: 13px; }
.edge { position: relative; flex: 0 0 104px; display: flex; align-items: center; justify-content: center; }
.edge::before { content: ""; position: absolute; left: 4px; right: 6px; top: 50%; border-top: 2px dashed var(--b-strong); }
.edge::after { content: ""; position: absolute; right: 0; top: calc(50% - 5px); border: 5px solid transparent; border-left: 7px solid var(--b-strong); }
.edge span { position: relative; padding: 4px 6px; background: var(--bg); font-size: 11px; line-height: 1.3; text-align: center; color: var(--muted); }

.switches { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 6px;
  border: 1px solid var(--b);
  border-radius: 99px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
}
.switch .knob { position: relative; width: 26px; height: 14px; border-radius: 99px; background: var(--ok); transition: background-color .2s; }
.switch .knob::after { content: ""; position: absolute; top: 2px; left: 14px; width: 10px; height: 10px; border-radius: 50%; background: #fff; transition: left .2s; }
.switch[aria-pressed="false"] { color: var(--muted); }
.switch[aria-pressed="false"] .knob { background: var(--b-strong); }
.switch[aria-pressed="false"] .knob::after { left: 2px; }
.switch.is-down { border-color: var(--danger); color: var(--danger-text); }
.switch.is-down .knob { background: var(--danger); }

.api { width: 100%; border-collapse: collapse; font-size: 13px; }
.api th { padding: 14px 20px; text-align: left; font-family: var(--font-host); font-size: 12px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--b); }
.api td { padding: 12px 20px; border-bottom: 1px solid var(--b-subtle); color: var(--text-2); vertical-align: middle; transition: opacity .2s; }
.api tr:last-child td { border-bottom: 0; }
.api tbody tr:hover { background: var(--hover); }
.api code { white-space: nowrap; color: var(--text); }
.api tr.is-off td:not(.st) { opacity: .4; }
.st { white-space: nowrap; }
.m { display: inline-block; min-width: 48px; padding: 2px 6px; border-radius: var(--r-sm); font-family: var(--font-mono); font-size: 11px; font-weight: 700; text-align: center; }
.m--get { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok-text); }
.m--post { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-text); }
.m--ws { background: color-mix(in srgb, var(--ram) 18%, transparent); color: var(--ram); }
[data-theme="dark"] .m--ws { color: #8fb3ff; }

/* Team */
.team-wrap { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.team { padding: 8px 24px; }
.member { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--b-subtle); }
.member:last-child { border-bottom: 0; }
.avatar, .avatar-fallback { width: 40px; height: 40px; border-radius: 50%; background: var(--b-strong); object-fit: cover; }
.avatar-fallback { display: grid; place-items: center; color: #fff; font-family: var(--font-host); font-weight: 700; }
.member-id { display: grid; min-width: 0; }
.member-name { font-family: var(--font-host); font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.member-id a { color: var(--muted); font-size: 12px; text-decoration: none; overflow-wrap: anywhere; }
.member-id a:hover { color: var(--accent-text); }
.me { margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-soft-text); font-size: 11px; font-weight: 600; vertical-align: 2px; }
.zeroddp {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 24px;
  background: #0e1118;
  border-color: #2e3b4f;
  color: #e6e8ec;
  text-align: center;
  text-decoration: none;
}
.zeroddp img { width: 100%; max-width: 260px; height: auto; margin-bottom: 8px; }
.zeroddp-name { font-family: var(--font-host); font-size: 20px; font-weight: 700; }
.zeroddp-sub { color: #9aa3b2; font-size: 13px; }
.zeroddp:hover { border-color: var(--accent); }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: clamp(56px, 8vw, 96px); padding: 22px 0 32px; border-top: 1px solid var(--b-subtle); }
.foot a { color: var(--muted); font-family: var(--font-host); font-weight: 600; text-decoration: none; }
.foot a:hover { color: var(--accent-text); }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .top-nav { display: none; }
  .top-actions { margin-left: auto; }
  .hero, .overview, .demo, .backend, .team-wrap { grid-template-columns: minmax(0, 1fr); }
  .flow { flex-direction: column; }
  .edge { flex-basis: 52px; }
  .edge::before { left: 50%; right: auto; top: 4px; bottom: 6px; border-top: 0; border-left: 2px dashed var(--b-strong); }
  .edge::after { right: auto; left: calc(50% - 4px); top: auto; bottom: 0; border: 5px solid transparent; border-top: 7px solid var(--b-strong); }
}
@media (max-width: 640px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bar-row { grid-template-columns: 44px minmax(0, 1fr) 48px; gap: 10px; }
  .audience { flex-direction: column; }
  .term { height: 260px; font-size: 12px; }
  .state-card { flex-direction: column; }
  .api thead { display: none; }
  .api tr { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 10px; padding: 12px 16px; border-bottom: 1px solid var(--b-subtle); }
  .api td { padding: 0; border: 0; }
  .api td:nth-child(3), .api td:nth-child(4) { grid-column: 1 / -1; }
  .api code { white-space: normal; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; }
}
