:root {
  --bg: #090d14;
  --bg-tinted: #0d131d;
  --surface: #111824;
  --surface-2: #161f2e;
  --surface-hover: #1c273a;
  --border: #202b3d;
  --border-strong: #32425c;
  --fg: #eef2f7;
  --fg-muted: #93a1b5;
  --accent: #4cc2ff;
  --accent-fg: #06131f;
  --accent-soft: rgba(76, 194, 255, 0.13);
  --amber: #f59e0b;
  --red: #f87171;
  --green: #34d399;
  --cpu: #2cc5ff;
  --ram: #a87ffb;
  --gpu: #3ddc68;
  --vram: #ff7a2f;
  --ssd: #eab308;
  --net: #38bdf8;
  --sysbat: #2dd4bf;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans: 'IBM Plex Sans', 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;
}

html[data-theme="light"] {
  --bg: #f4f6f9;
  --bg-tinted: #eaeff5;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --surface-hover: #eef3f9;
  --border: #d4dce7;
  --border-strong: #b6c3d4;
  --fg: #111827;
  --fg-muted: #4b5a6e;
  --accent: #0067c0;
  --accent-fg: #ffffff;
  --accent-soft: rgba(0, 103, 192, 0.09);
  --amber: #b45309;
  --red: #c42b1c;
  --green: #0f7b0f;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark light;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: var(--accent-fg);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.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;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  z-index: 999;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus {
  left: 16px;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.inline-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.inline-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.container {
  width: min(1160px, 100%);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-inline: 20px;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 140ms var(--ease-out);
}

.main-nav a:hover,
.main-nav a.nav-is-active {
  color: var(--fg);
}

.main-nav a.nav-is-active {
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.icon-btn,
.nav-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--fg);
  font-size: 0.87rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms var(--ease-out), border-color 140ms var(--ease-out), background-color 140ms var(--ease-out);
}

.icon-btn {
  width: 36px;
}

.nav-link-btn {
  padding: 0 13px;
}

.nav-coffee {
  color: var(--amber);
}

.mobile-nav {
  display: none;
}

.mobile-nav summary {
  list-style: none;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav-panel {
  position: absolute;
  right: 0;
  top: 46px;
  min-width: 220px;
  padding: 10px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 60;
}

.mobile-nav-panel a {
  padding: 10px 12px;
  border-radius: 7px;
  color: var(--fg);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.mobile-nav-panel a:hover {
  background: var(--surface-hover);
}

.icon-btn:active,
.nav-link-btn:active,
.btn:active,
.seg-btn:active,
.mode-btn:active,
.hub-btn:active,
.copy-btn:active {
  transform: scale(0.97);
}

/* Hero */
.hero {
  padding: 46px 20px 54px;
}

.hero-copy {
  max-width: 72ch;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4.1vw, 3.2rem);
  font-weight: 700;
  line-height: 1.09;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero-lead {
  margin: 0 0 22px;
  max-width: 66ch;
  font-size: 1.07rem;
  color: var(--fg-muted);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 18px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 140ms var(--ease-out), background-color 140ms var(--ease-out), border-color 140ms var(--ease-out);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--fg);
}

.btn-quiet {
  background: transparent;
  border-color: var(--border);
  color: var(--fg-muted);
}

@media (hover: hover) and (pointer: fine) {
  .btn-secondary:hover,
  .btn-quiet:hover,
  .icon-btn:hover,
  .nav-link-btn:hover {
    background: var(--surface-hover);
    border-color: var(--accent);
    color: var(--fg);
  }
}

.hero-facts {
  margin: 0 0 6px;
  font-size: 0.83rem;
  color: var(--fg-muted);
}

.hero-trust {
  margin: 0;
  font-size: 0.85rem;
  color: var(--fg-muted);
}

/* Interactive Taskbar & Hover Card Simulator */
.sim-shell {
  margin-top: 28px;
}

.sim-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  padding: 0 0 14px;
}

.control-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.control-label {
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--fg-muted);
  margin-right: 4px;
}

.seg-btn {
  height: 32px;
  padding: 0 11px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg-muted);
  font-family: var(--font-sans);
  font-size: 0.81rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color 140ms var(--ease-out), color 140ms var(--ease-out);
}

.seg-btn.is-active {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}

.desktop-stage {
  --ring-fg: #eef2f7;
  --ring-razer: #44d62c;
  --ring-charge: #4cc2ff;
  --ring-hole: #14161b;
  --ring-track: rgba(148, 163, 184, 0.3);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: radial-gradient(circle at 18% 18%, #1d2d44 0%, #101724 52%, #0a0e16 100%);
  transition: background 200ms var(--ease-out);
}

.desktop-stage[data-bar-theme="light"] {
  --ring-fg: #1e293b;
  --ring-razer: #15803d;
  --ring-charge: #0067c0;
  --ring-hole: #f3f6fa;
  --ring-track: rgba(15, 23, 42, 0.22);
  background: radial-gradient(circle at 18% 18%, #dbeafe 0%, #c6d8ec 58%, #b3c8e0 100%);
}

/* Reserved flex row above taskbar: guarantees zero overlap at all widths */
.sim-stage-top {
  min-height: 205px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.sim-stage-top.is-right {
  justify-content: flex-end;
}

/* Native Rich Hover Card Flyout */
.sim-card {
  width: min(320px, 100%);
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(16, 22, 32, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: #f3f5f8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 18px 40px rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(14px);
  transition: border-color 150ms var(--ease-out), background-color 150ms var(--ease-out);
}

.desktop-stage[data-bar-theme="light"] .sim-card {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #161b22;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
}

.sim-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
}

.sim-card-dot {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--gpu);
  flex: none;
}

.sim-card-meta {
  margin-left: auto;
  font-size: 0.72rem;
  color: #b4becd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.desktop-stage[data-bar-theme="light"] .sim-card-meta {
  color: #4b5563;
}

.sim-card-primary {
  margin: 6px 0;
  font-size: 1.06rem;
  font-weight: 700;
}

.sim-card-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.28);
  overflow: hidden;
  margin-bottom: 7px;
}

.sim-card-bar > span {
  display: block;
  height: 100%;
  width: 45%;
  border-radius: 999px;
  background: var(--gpu);
}

.sim-card-sub {
  font-size: 0.78rem;
  color: #cbd5e1;
  margin-bottom: 10px;
}

.desktop-stage[data-bar-theme="light"] .sim-card-sub {
  color: #374151;
}

.sim-card-chart-label {
  font-size: 0.74rem;
  color: #b4becd;
  margin-bottom: 4px;
}

.sim-sparkline {
  width: 100%;
  height: 44px;
  display: block;
}

.sim-card-axis {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #b4becd;
  margin-top: 2px;
}

.desktop-stage[data-bar-theme="light"] .sim-card-chart-label,
.desktop-stage[data-bar-theme="light"] .sim-card-axis {
  color: #4b5563;
}

/* Taskbar Preview */
.taskbar-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 50px;
  padding: 6px 14px;
  border-radius: 10px;
  background: rgba(20, 22, 27, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f4f4f5;
  backdrop-filter: blur(12px);
}

.desktop-stage[data-bar-theme="light"] .taskbar-preview {
  background: rgba(243, 246, 250, 0.96);
  border-color: rgba(15, 23, 42, 0.16);
  color: #18181b;
}

.strip {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.desktop-stage[data-style="tworow"] #strip-system {
  display: grid;
  grid-template-columns: repeat(4, auto);
  column-gap: 12px;
  row-gap: 4px;
}

.strip-item {
  appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  padding: 4px 5px;
  border-radius: 6px;
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  cursor: pointer;
  transition: background-color 120ms var(--ease-out);
}

.strip-item:hover,
.strip-item.is-inspected {
  background: rgba(148, 163, 184, 0.22);
}

.strip-main {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.79rem;
  font-weight: 500;
  white-space: nowrap;
}

.desktop-stage[data-style="stacked"] .strip-main {
  flex-direction: column;
  gap: 1px;
  font-size: 0.72rem;
}

.mini-bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: rgba(148, 163, 184, 0.25);
  overflow: hidden;
}

.mini-bar > span {
  display: block;
  height: 100%;
  border-radius: 2px;
}

.desktop-stage[data-style="ring"] .bat-item .strip-val,
.desktop-stage[data-style="ring"] .bat-item .bolt-ico,
.desktop-stage[data-style="ring"] .bat-item .mini-bar,
.desktop-stage[data-style="tworow"] .mini-bar,
.desktop-stage[data-quick-preset="minimal"] .bat-item .mini-bar {
  display: none;
}

#strip-system[hidden],
.strip-item[hidden],
.capture-media img[hidden] {
  display: none !important;
}

.ring-gauge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.desktop-stage[data-style="ring"] .bat-item .ring-gauge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, var(--ring-hole) 73%, transparent 75%),
    conic-gradient(var(--ring) calc(var(--pct) * 1%), var(--ring-track) 0);
}

.desktop-stage[data-style="ring"] .bat-item .tv-ico {
  width: 14px;
  height: 14px;
}

.tv-ico {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* Dark taskbar icon strokes (all >=4.5:1 on rgba(20,22,27)) */
.ico-cpu { stroke: var(--cpu); }
.ico-ram { stroke: var(--ram); }
.ico-gpu { stroke: var(--gpu); }
.ico-vram { stroke: var(--vram); }
.ico-ssd { stroke: var(--ssd); }
.ico-net { stroke: var(--net); }
.ico-bat-sys { stroke: var(--sysbat); }
.ico-bat-razer { stroke: #44d62c; }

/* Accessible darkened strokes on light taskbar (#f3f6fa) >=3.5:1 - >=7:1 */
.desktop-stage[data-bar-theme="light"] .ico-cpu { stroke: #026aa7; }
.desktop-stage[data-bar-theme="light"] .ico-ram { stroke: #6d28d9; }
.desktop-stage[data-bar-theme="light"] .ico-gpu { stroke: #15803d; }
.desktop-stage[data-bar-theme="light"] .ico-vram { stroke: #c2410c; }
.desktop-stage[data-bar-theme="light"] .ico-ssd { stroke: #9a6700; }
.desktop-stage[data-bar-theme="light"] .ico-net { stroke: #0067c0; }
.desktop-stage[data-bar-theme="light"] .ico-bat-sys { stroke: #0f766e; }
.desktop-stage[data-bar-theme="light"] .ico-bat-razer { stroke: #15803d; }

.bar-cpu > span { background: var(--cpu); width: 12%; }
.bar-ram > span { background: var(--ram); width: 60%; }
.bar-gpu > span { background: var(--gpu); width: 23%; }
.bar-vram > span { background: var(--vram); width: 66%; }
.bar-ssd > span { background: var(--ssd); width: 8%; }
.bar-sysbat > span { background: var(--sysbat); width: 88%; }
.bar-razer > span { background: #44d62c; }

.desktop-stage[data-bar-theme="light"] .bar-razer > span { background: #15803d; }

.strip-item.heat-warn .strip-val { color: #fbbf24; }
.strip-item.heat-high .strip-val { color: #ff7b72; }

.desktop-stage[data-bar-theme="light"] .strip-item.heat-warn .strip-val { color: #b45309; }
.desktop-stage[data-bar-theme="light"] .strip-item.heat-high .strip-val { color: #c42b1c; }

.bolt-ico {
  width: 11px;
  height: 11px;
  fill: #4cc2ff;
}

.desktop-stage[data-bar-theme="light"] .bolt-ico {
  fill: #0067c0;
}

.taskbar-center-icons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-inline: auto;
}

.win-start {
  width: 15px;
  height: 15px;
  border-radius: 3px;
  background: linear-gradient(135deg, #38bdf8, #0284c7);
}

.win-app {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.34);
}

.taskbar-right {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.win-clock {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.7rem;
  line-height: 1.25;
}

.stage-hint {
  margin: 0;
  font-size: 0.79rem;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

.desktop-stage[data-bar-theme="light"] .stage-hint {
  color: rgba(15, 23, 42, 0.8);
}

/* Bands & Headings */
.band {
  padding: 68px 20px;
}

.band-tinted {
  background: var(--bg-tinted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 68ch;
  margin-bottom: 30px;
}

.section-head h2,
.ledger-block h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 2.7vw, 2.15rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.section-head p {
  margin: 0;
  color: var(--fg-muted);
}

/* Showcases (Taskbar Captures + Unified Control Center + Video Walkthrough) */
.showcase-grid,
.hub-layout {
  display: grid;
  gap: 24px;
  align-items: start;
}

.showcase-grid {
  grid-template-columns: 360px 1fr;
}

.hub-layout {
  grid-template-columns: 330px 1fr;
}

.capture-selector,
.hub-tabs {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.mode-btn,
.hub-btn {
  text-align: left;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg);
  font-family: var(--font-sans);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 140ms var(--ease-out), border-color 140ms var(--ease-out), background-color 140ms var(--ease-out);
}

.mode-btn strong,
.hub-btn strong {
  font-size: 0.96rem;
  font-weight: 600;
}

.mode-btn span,
.hub-btn span {
  font-size: 0.86rem;
  color: var(--fg-muted);
}

.mode-btn.is-active,
.hub-btn.is-active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, var(--surface));
}

.capture-stage,
.hub-stage {
  margin: 0;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), var(--shadow);
  overflow: hidden;
}

.hub-stage {
  padding: 16px;
}

.capture-media {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px;
  background: #0b0f17;
}

.capture-media img,
.hub-stage img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.hub-stage img {
  width: 100%;
  border: 1px solid var(--border);
}

.capture-stage figcaption {
  margin: 0;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--fg-muted);
}

.hub-stage figcaption,
.video-stage figcaption {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--fg-muted);
}

.capture-stage figcaption strong,
.hub-stage figcaption strong,
.video-stage figcaption strong {
  color: var(--fg);
}

/* 4-column Feature & Architecture Grids */
.telemetry-grid,
.hub-highlights {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

/* Video Walkthrough Section */
.video-stage {
  margin: 0 auto;
  max-width: 960px;
  padding: 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), var(--shadow);
}

.video-frame {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #070b11;
}

.video-frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #090d14;
}

.video-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.tele-card {
  padding: 16px 18px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.tele-card h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
  font-weight: 600;
}

.tele-card p {
  margin: 0;
  font-size: 0.87rem;
  color: var(--fg-muted);
}

/* Hardware Explorer */
.hw-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.hw-search-wrap {
  flex: 1 1 320px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 14px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--fg-muted);
}

.hw-search-wrap:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
}

.hw-search-wrap input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
}

.hw-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-btn {
  height: 36px;
  padding: 0 13px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg-muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.filter-btn.is-active {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}

.hw-count {
  margin: 0 0 12px;
  font-size: 0.83rem;
  color: var(--fg-muted);
}

.hw-table-wrap {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: auto;
  background: var(--surface);
}

.hw-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.91rem;
}

.hw-table th {
  padding: 12px 14px;
  font-size: 0.81rem;
  font-weight: 600;
  color: var(--fg-muted);
  background: var(--bg-tinted);
  border-bottom: 1px solid var(--border);
}

.hw-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.hw-table tr:last-child td {
  border-bottom: 0;
}

.hw-brand {
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
}

.hw-brand-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hw-cat {
  color: var(--accent);
  font-size: 0.83rem;
  font-weight: 600;
  white-space: nowrap;
}

.hw-footer-bar {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hw-footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* Compatibility Page */
.compat-hero {
  padding: 40px 20px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-tinted);
}

.compat-back-link {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.compat-back-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.compat-hero h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  margin-bottom: 10px;
}

.compat-lead {
  margin: 0;
  max-width: 74ch;
  color: var(--fg-muted);
  font-size: 1.01rem;
}

.compat-band {
  padding-top: 32px;
}

.compat-clear-btn {
  border: 1px solid var(--border);
  background: var(--bg-tinted);
  color: var(--fg-muted);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.check-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 44px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--fg);
  cursor: pointer;
}

.check-chip input {
  accent-color: var(--accent);
}

.compat-filters {
  margin-bottom: 14px;
}

.compat-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.compat-meta-row .hw-count {
  margin: 0;
}

.compat-json-link {
  font-size: 0.82rem;
}

.compat-vendor-cell {
  min-width: 190px;
}

.compat-vendor-name {
  white-space: normal;
  margin-bottom: 6px;
}

.compat-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge-cat,
.badge-tested {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 600;
}

.badge-cat {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
}

.badge-tested {
  background: color-mix(in srgb, var(--green) 13%, var(--surface));
  color: var(--green);
  border: 1px solid color-mix(in srgb, var(--green) 35%, transparent);
}

.compat-models {
  min-width: 280px;
}

.compat-proto {
  min-width: 240px;
  color: var(--fg-muted);
}

.vidpid-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.vidpid-pill {
  padding: 5px 9px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-tinted);
  color: var(--fg);
  font-size: 0.76rem;
  cursor: pointer;
  transition: border-color 140ms var(--ease-out), background-color 140ms var(--ease-out);
}

.vidpid-pill:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.compat-empty {
  padding: 32px 24px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
}

.compat-empty p {
  margin: 0 0 18px;
  color: var(--fg-muted);
}

.compat-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.compat-tip {
  font-size: 0.85rem;
  color: var(--fg-muted);
}

.text-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.91rem;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Security & CLI Ledger */
.ledger-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.fact-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fact-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.fact-list li span {
  font-size: 0.92rem;
  color: var(--fg-muted);
}

.doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.doc-links a {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.91rem;
  text-decoration: none;
}

.doc-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ledger-sub {
  margin: 0 0 16px;
  color: var(--fg-muted);
  font-size: 0.94rem;
}

.cli-list {
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cli-list > div {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.cli-list dt {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent);
}

.cli-list dd {
  margin: 2px 0 0;
  font-size: 0.89rem;
  color: var(--fg-muted);
}

.code-box-wrap {
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}

.code-box-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-tinted);
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--fg-muted);
}

.copy-btn {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--fg);
  border-radius: 6px;
  padding: 5px 11px;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}

.code-box {
  margin: 0;
  padding: 14px 16px;
  background: var(--surface);
  font-size: 0.78rem;
  line-height: 1.5;
  overflow-x: auto;
  color: var(--fg);
}

.code-box code {
  background: transparent;
  border: 0;
  padding: 0;
}

/* Footer */
.site-footer {
  padding: 32px 20px 42px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.87rem;
  color: var(--fg-muted);
}

.footer-left strong {
  color: var(--fg);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.89rem;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--fg);
}

@media (max-width: 1120px) {
  .taskbar-center-icons {
    display: none;
  }

  .taskbar-preview {
    flex-wrap: wrap;
    justify-content: space-between;
  }
}

@media (max-width: 1020px) {
  .telemetry-grid,
  .hub-highlights {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 940px) {
  .showcase-grid,
  .hub-layout,
  .ledger-grid {
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .taskbar-preview {
    justify-content: center;
  }

  .capture-media {
    min-height: 240px;
  }
}

@media (max-width: 720px) {
  .hw-table,
  .hw-table tbody,
  .hw-table tr,
  .hw-table td {
    display: block;
    width: 100%;
  }

  .hw-table thead {
    display: none;
  }

  .hw-table tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .hw-table tr:last-child {
    border-bottom: 0;
  }

  .hw-table td {
    border-bottom: 0;
    padding: 4px 8px;
    min-width: 0;
    white-space: normal;
  }

  .compat-vendor-cell,
  .compat-models,
  .compat-proto {
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .telemetry-grid,
  .hub-highlights {
    grid-template-columns: 1fr;
  }

  .desktop-stage[data-style="tworow"] #strip-system {
    grid-template-columns: repeat(2, auto);
  }
}

@media (max-width: 440px) {
  .nav-coffee {
    display: none;
  }
}

@media (pointer: coarse) {
  .seg-btn,
  .filter-btn {
    height: 38px;
    padding: 0 13px;
  }

  .strip-item {
    padding: 6px 7px;
  }

  .vidpid-pill,
  .compat-clear-btn {
    min-height: 36px;
    padding: 6px 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
