/* ============================================================
   OctoBBTools · Brand01 墨赭 — Ink & Mechanism Edition ("墨枢")
   Aligned with https://octoooo.com official visual system
   ============================================================ */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/site-assets/fonts/plus-jakarta-sans-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/site-assets/fonts/jetbrains-mono-latin.woff2') format('woff2');
}

:root {
  color-scheme: light;
  --bg: #F6F3EC;
  --bg-subtle: #EFECE3;
  --surface: #FFFDFA;
  --surface-2: #EAE6DC;
  --surface-glass: rgba(246, 243, 236, 0.86);
  --mono-bg: #131714;
  --mono-surface: #1B211D;
  --mono-surface-2: #232A25;
  --ink: #1C201D;
  --ink-2: #3A403B;
  --muted: #555B55;
  --faint: #616760;
  --brand-copper: #B76546;
  --copper: #9E4B2E;
  --copper-hover: #843D24;
  --copper-on: #FFFDFA;
  --copper-wash: rgba(183, 101, 70, 0.10);
  --copper-line: rgba(183, 101, 70, 0.36);
  --ok: #236542;
  --ok-wash: rgba(35, 101, 66, 0.10);
  --ok-line: rgba(35, 101, 66, 0.30);
  --line: #DCDAD0;
  --line-soft: rgba(28, 32, 29, 0.085);
  --line-strong: #949A91;
  --shadow: 0 18px 44px rgba(24, 28, 25, 0.075);

  /* Theme-aware BB10 Device Preview tokens (Light / 宣纸 Ceramic-Titanium Edition) */
  --bb-bezel-bg: linear-gradient(160deg, #F3EFE6 0%, #E7E2D6 100%);
  --bb-bezel-border: #D2CEC2;
  --bb-bezel-shadow: 0 14px 32px rgba(28, 32, 29, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  --bb-screen-bg: #FAF8F3;
  --bb-screen-border: #DAD5C9;
  --bb-mast-bg: #F1EDE4;
  --bb-card-bg: #FFFDFA;
  --bb-card-border: #DFDBD0;
  --bb-pill-bg: #EFEBE1;
  --bb-pill-border: #BFBBAE;
  --bb-pill-ink: #1C201D;
  --bb-cta-bg: #9E4B2E;
  --bb-cta-border: #843D24;
  --bb-cta-ink: #FFFDFA;
  --bb-ok-bg: rgba(35, 101, 66, 0.10);
  --bb-ok-border: rgba(35, 101, 66, 0.34);
  --bb-ok-ink: #236542;
  --bb-accent-ink: #9E4B2E;
  --bb-accent-bar: #B76546;
  --bb-ink: #1C201D;
  --bb-ink-2: #3A403B;
  --bb-muted: #5C625B;
  --bb-faint: #757C74;
  --bb-field-bg: #F4F1E8;
  --bb-bar-bg: #EFECE3;
  --bb-bar-div: #DCD7CB;
  --bb-fret: #C7C2B5;

  --font-sans: 'Plus Jakarta Sans', 'PingFang SC', 'HarmonyOS Sans SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Noto Sans CJK SC', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, Consolas, monospace;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --container: 1260px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121613;
  --bg-subtle: #171C18;
  --surface: #1B211D;
  --surface-2: #242B26;
  --surface-glass: rgba(18, 22, 19, 0.86);
  --mono-bg: #0C0F0D;
  --mono-surface: #151A16;
  --mono-surface-2: #1E241F;
  --ink: #EEEDE5;
  --ink-2: #CED3C9;
  --muted: #A4ADA2;
  --faint: #8F998E;
  --brand-copper: #B76546;
  --copper: #E0A082;
  --copper-hover: #EDB69B;
  --copper-on: #121613;
  --copper-wash: rgba(224, 160, 130, 0.12);
  --copper-line: rgba(224, 160, 130, 0.36);
  --ok: #72D39D;
  --ok-wash: rgba(114, 211, 157, 0.11);
  --ok-line: rgba(114, 211, 157, 0.30);
  --line: #2E362F;
  --line-soft: rgba(238, 237, 229, 0.085);
  --line-strong: #586358;
  --shadow: 0 24px 56px rgba(0, 0, 0, 0.44);

  /* Theme-aware BB10 Device Preview tokens (Dark / 墨夜 Obsidian Edition) */
  --bb-bezel-bg: linear-gradient(160deg, #161B17 0%, #0B0E0C 100%);
  --bb-bezel-border: #2C342D;
  --bb-bezel-shadow: 0 20px 44px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(238, 237, 229, 0.06);
  --bb-screen-bg: #121613;
  --bb-screen-border: #2A322B;
  --bb-mast-bg: #171C18;
  --bb-card-bg: #1B211D;
  --bb-card-border: #2B332C;
  --bb-pill-bg: #242B26;
  --bb-pill-border: #525D52;
  --bb-pill-ink: #EEEDE5;
  --bb-cta-bg: #B76546;
  --bb-cta-border: #E0A082;
  --bb-cta-ink: #FFFDFA;
  --bb-ok-bg: #182A20;
  --bb-ok-border: #236542;
  --bb-ok-ink: #72D39D;
  --bb-accent-ink: #E0A082;
  --bb-accent-bar: #B76546;
  --bb-ink: #EEEDE5;
  --bb-ink-2: #CED3C9;
  --bb-muted: #A4ADA2;
  --bb-faint: #889287;
  --bb-field-bg: #121613;
  --bb-bar-bg: #0E120F;
  --bb-bar-div: #232A24;
  --bb-fret: #2D352E;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  position: relative;
}

/* Signature OctoLab Ambient Grain & Warm Copper Wash */
.octo-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.octo-ambient::before {
  content: "";
  position: absolute;
  inset: -16%;
  background:
    radial-gradient(44% 38% at 76% 18%, rgba(183, 101, 70, 0.085), transparent 72%),
    radial-gradient(36% 34% at 18% 78%, rgba(166, 83, 54, 0.048), transparent 74%);
}
:root[data-theme="dark"] .octo-ambient::before {
  background:
    radial-gradient(48% 42% at 76% 18%, rgba(183, 101, 70, 0.13), transparent 72%),
    radial-gradient(38% 34% at 18% 78%, rgba(114, 211, 157, 0.05), transparent 74%);
}

a { color: inherit; text-decoration: none; }
code, pre, .mono { font-family: var(--font-mono); }

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(18px, 3.4vw, 40px);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 68px;
  background: var(--surface-glass);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex: 0 0 auto;
  white-space: nowrap;
}
.brand-mark { width: 26px; height: 26px; flex: 0 0 auto; }
.brand-name { font-size: 16.5px; color: var(--ink); }
.brand-name .copper { color: var(--copper); }
.brand-sep { width: 1px; height: 14px; background: var(--line-strong); opacity: 0.55; }
.brand-lab { font-size: 13px; font-weight: 500; color: var(--muted); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.16s, background 0.16s;
}
.nav-links a:hover { color: var(--ink); background: var(--copper-wash); }

.header-tools {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}
.tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex: 0 0 auto;
  cursor: pointer;
  transition: border-color 0.16s, color 0.16s, background 0.16s;
}
.tool-btn:hover { border-color: var(--copper-line); color: var(--copper); }
.tool-icon { width: 34px; padding: 0; }
:root[data-theme="dark"] .tool-icon .icon-moon { display: none; }
:root[data-theme="dark"] .tool-icon .icon-sun { display: block; }
:root:not([data-theme="dark"]) .tool-icon .icon-sun { display: none; }
:root:not([data-theme="dark"]) .tool-icon .icon-moon { display: block; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 17px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  flex: 0 0 auto;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.14s, background 0.16s, border-color 0.16s, box-shadow 0.16s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--copper);
  color: var(--copper-on);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 8px 20px rgba(183, 101, 70, 0.22);
}
.btn-primary:hover { background: var(--copper-hover); }
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-secondary:hover { border-color: var(--copper); color: var(--copper); }
.btn-sm { min-height: 32px; padding: 5px 11px; font-size: 12px; border-radius: 8px; }

/* Eyebrow & Section Headers */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--copper-line);
  background: var(--copper-wash);
  color: var(--copper);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  max-width: 100%;
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  flex: 0 0 auto;
}

.section { padding: 76px 0; position: relative; z-index: 1; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.section-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--copper);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.section-title {
  margin: 0;
  font-size: clamp(23px, 2.6vw, 32px);
  line-height: 1.24;
  letter-spacing: -0.025em;
}
.section-sub {
  margin: 0;
  max-width: 440px;
  font-size: 14px;
  color: var(--muted);
}

/* Hero */
.hero { padding: 44px 0 56px; position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.hero-grid > *, .install-grid > *, .harness-grid > *, .grid-2 > *, .grid-3 > * {
  min-width: 0;
}
.hero h1 {
  margin: 16px 0 14px;
  font-size: clamp(26px, 3.05vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.028em;
}
.hero h1 .copper { color: var(--copper); }
.hero-lead {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 570px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.hero-meta-strip {
  display: grid;
  grid-template-columns: 1.32fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.meta-cell {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.meta-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--faint);
  text-transform: uppercase;
}
.meta-val {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.hash-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-subtle);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
}
.hash-code {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-2);
}

/* Compact, Poised, Theme-Adaptive BB10 Device Showcase */
.device-stage {
  width: 100%;
  max-width: 440px;
  justify-self: end;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 14px;
  box-shadow: var(--shadow);
  transition: background 0.2s, border-color 0.2s;
}
.stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}
.stage-fig {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--faint);
  white-space: nowrap;
}
.stage-tabs {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border-radius: 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  flex: 0 0 auto;
}
.stage-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 6px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
}
.stage-tab:hover { color: var(--ink); }
.stage-tab.active {
  background: var(--copper);
  color: var(--copper-on);
}

.bb-bezel {
  border-radius: 15px;
  background: var(--bb-bezel-bg);
  border: 1px solid var(--bb-bezel-border);
  padding: 9px 9px 10px;
  box-shadow: var(--bb-bezel-shadow);
  transition: background 0.2s, border-color 0.2s;
}
.bb-screen {
  border-radius: 8px;
  background: var(--bb-screen-bg);
  border: 1px solid var(--bb-screen-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 368px;
}
.bb-masthead {
  background: var(--bb-mast-bg);
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--bb-card-border);
  position: relative;
}
.bb-masthead::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 60px;
  height: 2px;
  background: var(--bb-accent-bar);
}
.bb-mast-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bb-mast-title { font-weight: 700; font-size: 13px; color: var(--bb-ink); line-height: 1.2; }
.bb-mast-title .c { color: var(--bb-accent-ink); }
.bb-mast-sub { font-size: 10px; color: var(--bb-faint); font-family: var(--font-mono); white-space: nowrap; }
.bb-ready-pill {
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid var(--bb-ok-border);
  background: var(--bb-ok-bg);
  color: var(--bb-ok-ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.bb-body {
  padding: 8px 10px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bb-pane { display: none; flex-direction: column; flex: 1; }
.bb-pane.active { display: flex; }
.bb-sec-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--bb-accent-ink);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.bb-sec-label::after { content: ""; flex: 1; height: 1px; background: var(--bb-card-border); }
.bb-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--bb-card-bg);
  border: 1px solid var(--bb-card-border);
  border-left: 3px solid var(--bb-ok-ink);
  border-radius: 5px;
  padding: 6px 9px;
}
.bb-card.pending {
  border-color: var(--copper-line);
  border-left-color: var(--bb-accent-ink);
}
.bb-card-main { min-width: 0; }
.bb-card-k { font-family: var(--font-mono); font-size: 9px; color: var(--bb-accent-ink); line-height: 1.25; }
.bb-card-k.app { color: var(--bb-faint); }
.bb-card-t { font-size: 12px; font-weight: 700; color: var(--bb-ink); line-height: 1.3; }
.bb-card-d { font-size: 10.5px; color: var(--bb-muted); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bb-pill {
  flex: 0 0 auto;
  padding: 3px 9px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 700;
  background: var(--bb-pill-bg);
  border: 1px solid var(--bb-pill-border);
  color: var(--bb-pill-ink);
  min-width: 46px;
  text-align: center;
  white-space: nowrap;
}
.bb-pill.cta { background: var(--bb-cta-bg); border-color: var(--bb-cta-border); color: var(--bb-cta-ink); }
.bb-form-box {
  background: var(--bb-card-bg);
  border: 1px solid var(--bb-card-border);
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.bb-field {
  padding: 6px 8px;
  background: var(--bb-field-bg);
  border: 1px solid var(--bb-card-border);
  border-radius: 4px;
  font-size: 11px;
  color: var(--bb-ink-2);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.bb-field span:first-child { color: var(--bb-faint); flex: 0 0 auto; }
.bb-field span:last-child { text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bb-actionbar {
  margin-top: auto;
  background: var(--bb-bar-bg);
  border-top: 1px solid var(--bb-bar-div);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  font-size: 10.5px;
  color: var(--bb-ink-2);
  text-align: center;
}
.bb-actionbar div { padding: 7px 4px; border-right: 1px solid var(--bb-bar-div); white-space: nowrap; }
.bb-actionbar div:last-child { border-right: 0; }
.bb-actionbar .hi { color: var(--bb-accent-ink); font-weight: 700; }
.bb-frets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: 8px;
  padding: 0 22px;
}
.bb-frets span { height: 2.5px; border-radius: 2px; background: var(--bb-fret); }

/* Feature Cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.18s, transform 0.18s;
}
.card:hover { border-color: var(--copper-line); transform: translateY(-2px); }
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.card-code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--copper);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid var(--line);
  background: var(--bg-subtle);
  color: var(--muted);
}
.badge.ok { border-color: var(--ok-line); background: var(--ok-wash); color: var(--ok); }
.badge.copper { border-color: var(--copper-line); background: var(--copper-wash); color: var(--copper); }
.card h3 { margin: 2px 0 0; font-size: 19px; letter-spacing: -0.015em; }
.card p { margin: 0; font-size: 14px; color: var(--muted); }
.card-points {
  margin: 6px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line-soft);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-2);
}
.card-points li::before {
  content: "— ";
  color: var(--copper);
  font-family: var(--font-mono);
}
.card-foot {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--faint);
}
.card-foot a { color: var(--copper); font-weight: 600; white-space: nowrap; }
.card-foot a:hover { text-decoration: underline; }

/* Monolith Dark Engineering Band */
.monolith {
  background: var(--mono-bg);
  color: #EEEDE5;
  border-top: 1px solid #262E27;
  border-bottom: 1px solid #262E27;
}
.monolith .section-head { border-bottom-color: #262E27; }
.monolith .section-kicker { color: #E0A082; }
.monolith .section-sub { color: #A4ADA2; }

.harness-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: stretch;
}
.layer-list { display: flex; flex-direction: column; gap: 12px; }
.layer-item {
  width: 100%;
  text-align: left;
  padding: 17px 19px;
  border-radius: 14px;
  border: 1px solid #273028;
  background: var(--mono-surface);
  color: #EEEDE5;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: border-color 0.16s, background 0.16s;
}
.layer-item:hover { border-color: rgba(224, 160, 130, 0.45); }
.layer-item.active {
  border-color: #E0A082;
  background: var(--mono-surface-2);
}
.layer-id { font-family: var(--font-mono); font-size: 11px; color: #E0A082; margin-bottom: 3px; }
.layer-title { font-size: 15px; font-weight: 700; color: #EEEDE5; }
.layer-desc { font-size: 13px; color: #A4ADA2; margin-top: 2px; }
.layer-tag {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #39433A;
  color: #CED3C9;
  white-space: nowrap;
}

.layer-panel {
  border-radius: 16px;
  border: 1px solid #273028;
  background: var(--mono-surface);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
.layer-panel-kicker { font-family: var(--font-mono); font-size: 11.5px; color: #E0A082; letter-spacing: 0.06em; }
.layer-panel h3 { margin: 8px 0 10px; font-size: 22px; line-height: 1.28; color: #EEEDE5; }
.layer-panel p { margin: 0; font-size: 14px; color: #CED3C9; }
.code-slab {
  margin: 0;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #262E27;
  background: #0C0F0D;
  color: #E0A082;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.65;
  overflow-x: auto;
  max-width: 100%;
}

/* Install & Verification */
.install-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 22px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 26px;
  min-width: 0;
}
.panel h3 { margin: 0 0 12px; font-size: 19px; }
.step-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.step-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.step-num {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--copper-line);
  background: var(--copper-wash);
  color: var(--copper);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cmd-box {
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-subtle);
  font-family: var(--font-mono);
  font-size: 12.5px;
  overflow-x: auto;
  max-width: 100%;
  color: var(--ink);
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
}
.ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  margin-top: 12px;
}
.ledger-table th, .ledger-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
}
.ledger-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--faint);
  font-weight: 600;
  white-space: nowrap;
}
.status-ok { color: var(--ok); font-family: var(--font-mono); font-weight: 600; white-space: nowrap; }

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 34px 0 38px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13.5px;
  color: var(--muted);
}
.footer-links a:hover { color: var(--copper); }
.footer-bottom {
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: var(--faint);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.footer-legal a:hover { color: var(--ink); }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(16px);
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 90;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Tablet & Compact Laptop Breakpoints */
@media (max-width: 1140px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 24px; }
  .hero-actions { gap: 8px; }
  .hero-actions .btn { padding: 8px 13px; font-size: 13px; }
  .hero-meta-strip { grid-template-columns: 1.42fr 1fr 1fr; gap: 8px; }
  .meta-cell { padding: 9px 10px; }
  .meta-val { font-size: 11px; }
}
@media (max-width: 920px) {
  .hero { padding: 36px 0 48px; }
  .section { padding: 56px 0; }
  .hero-grid, .harness-grid, .install-grid, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero-meta-strip { grid-template-columns: 1.32fr 1fr 1fr; }
  .meta-val { font-size: 12px; }
  .device-stage { justify-self: center; max-width: 460px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 560px) {
  .hero { padding: 26px 0 40px; }
  .hero h1 { font-size: 24px; }
  .hero-meta-strip { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .brand-sep, .brand-lab { display: none; }
  .header-inner { gap: 8px; }
  .header-tools { gap: 5px; }
  .tool-btn { padding: 0 8px; font-size: 11px; height: 32px; }
  .eyebrow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10.5px; }
  .device-stage { padding: 12px; }
  .stage-top { flex-wrap: wrap; gap: 8px; }
  .bb-field { flex-direction: column; gap: 2px; }
  .bb-field span:last-child { text-align: left; }
  .panel, .card, .layer-panel { padding: 18px; }
  .ledger-table { font-size: 12.5px; }
}
@media (max-width: 380px) {
  .wrap { padding: 0 14px; }
  .hero h1 { font-size: 21.5px; }
  .brand-name { font-size: 15px; }
  .stage-tab { padding: 4px 7px; font-size: 11px; }
  .bb-card-d { font-size: 10px; }
}
