/* MassBoot — massboot.com
   Ultra-clean minimal bare-metal design system
*/

:root,
[data-theme="dark"] {
  color-scheme: dark;
  --scrollbar-track: #070b14;
  --scrollbar-thumb: #1c2842;
  --scrollbar-thumb-hover: #2c3e63;
  --bg: #070b14;
  --bg-elevated: #0b1120;
  --surface: #0e1628;
  --surface-raised: #131e35;
  --surface-hover: rgba(255, 255, 255, 0.045);
  --nav-bg: rgba(11, 17, 32, 0.78);
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.24);
  --hairline: rgba(148, 163, 184, 0.09);

  --text: #f8fafc;
  --text-secondary: #cbd5e1;
  --muted: #8b9bb4;
  --faint: #64748b;

  --cyan: #22d3ee;
  --cyan-strong: #06b6d4;
  --cyan-soft: rgba(34, 211, 238, 0.12);
  --cyan-border: rgba(34, 211, 238, 0.34);

  --emerald: #34d399;
  --emerald-soft: rgba(52, 211, 153, 0.12);
  --emerald-border: rgba(52, 211, 153, 0.32);

  --amber: #fbbf24;
  --amber-soft: rgba(251, 191, 36, 0.12);

  --btn-primary-bg: #22d3ee;
  --btn-primary-hover: #38e1fa;
  --btn-primary-text: #04101d;

  --window-bg: #080e1c;
  --window-chrome: #0d1527;
  --term-bg: #050912;

  --shadow-nav: 0 10px 30px -12px rgba(0, 0, 0, 0.65);
  --shadow-window:
    0 0 0 1px rgba(148, 163, 184, 0.16),
    0 12px 32px rgba(0, 0, 0, 0.45),
    0 36px 90px -20px rgba(0, 0, 0, 0.75);
  --contour-stroke: rgba(34, 211, 238, 0.085);
  --hero-glow: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(34, 211, 238, 0.11), transparent 68%);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --wide: 1120px;
}

[data-theme="light"] {
  color-scheme: light;
  --scrollbar-track: #f8fafc;
  --scrollbar-thumb: #cbd5e1;
  --scrollbar-thumb-hover: #94a3b8;
  --bg: #f8fafc;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-raised: #f1f5f9;
  --surface-hover: rgba(15, 23, 42, 0.04);
  --nav-bg: rgba(255, 255, 255, 0.84);
  --border: rgba(15, 23, 42, 0.11);
  --border-strong: rgba(15, 23, 42, 0.2);
  --hairline: rgba(15, 23, 42, 0.07);

  --text: #0b1220;
  --text-secondary: #334155;
  --muted: #52627a;
  --faint: #7c8ca3;

  --cyan: #0891b2;
  --cyan-strong: #0e7490;
  --cyan-soft: rgba(8, 145, 178, 0.09);
  --cyan-border: rgba(8, 145, 178, 0.28);

  --emerald: #059669;
  --emerald-soft: rgba(5, 150, 105, 0.1);
  --emerald-border: rgba(5, 150, 105, 0.28);

  --amber: #d97706;
  --amber-soft: rgba(217, 119, 6, 0.1);

  --btn-primary-bg: #0b1220;
  --btn-primary-hover: #1e293b;
  --btn-primary-text: #ffffff;

  --window-bg: #ffffff;
  --window-chrome: #f1f5f9;
  --term-bg: #090f1d;

  --shadow-nav: 0 8px 28px -12px rgba(15, 23, 42, 0.14);
  --shadow-window:
    0 0 0 1px rgba(15, 23, 42, 0.09),
    0 12px 30px -10px rgba(15, 23, 42, 0.12),
    0 32px 72px -24px rgba(15, 23, 42, 0.18);
  --contour-stroke: rgba(8, 145, 178, 0.11);
  --hero-glow: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(8, 145, 178, 0.09), transparent 65%);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb);
  border-radius: 999px;
  border: 2px solid var(--scrollbar-track);
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--scrollbar-thumb-hover);
}

::-webkit-scrollbar-corner {
  background: var(--scrollbar-track);
}

.cli-bar,
.code-block pre {
  scrollbar-color: #1c2842 #050912;
}

.cli-bar::-webkit-scrollbar-track,
.code-block pre::-webkit-scrollbar-track {
  background: #050912;
}

.cli-bar::-webkit-scrollbar-thumb,
.code-block pre::-webkit-scrollbar-thumb {
  background-color: #1c2842;
  border-color: #050912;
}

.cli-bar::-webkit-scrollbar-thumb:hover,
.code-block pre::-webkit-scrollbar-thumb:hover {
  background-color: #2c3e63;
}

body {
  font-family: var(--sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.2s ease, color 0.2s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

code,
pre,
.mono {
  font-family: var(--mono);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 200;
}

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

.wrap {
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================
   FLOATING PILL NAVIGATION
   ========================================= */
.nav-shell {
  position: sticky;
  top: 14px;
  z-index: 100;
  padding: 0 16px;
}

.nav-bar {
  max-width: var(--wide);
  margin: 0 auto;
  height: 58px;
  padding: 0 12px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-nav);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.025em;
  flex-shrink: 0;
}

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: block;
}

[data-theme="dark"] .brand-icon-light {
  display: none;
}

[data-theme="light"] .brand-icon-dark {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--surface-hover);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

[data-theme="dark"] .icon-moon {
  display: none;
}

[data-theme="light"] .icon-sun {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 999px;
  padding: 10px 20px;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  font-size: 0.84rem;
  padding: 8px 16px;
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}

.btn-primary:hover {
  background: var(--btn-primary-hover);
}

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

.btn-secondary:hover {
  background: var(--surface-raised);
  border-color: var(--cyan-border);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cyan);
}

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

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
  position: relative;
  padding: 76px 0 64px;
  overflow: hidden;
  background-image: var(--hero-glow);
}

.hero-contours {
  position: absolute;
  inset: -40px 0 auto 0;
  width: 100%;
  height: 580px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

.hero-contours path,
.hero-contours circle,
.hero-contours line {
  stroke: var(--contour-stroke);
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 4px var(--emerald-soft);
}

.hero h1 {
  font-size: clamp(2.55rem, 5.2vw, 4.35rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  max-width: 960px;
  margin: 0 auto 18px;
}

.accent-grad {
  background: linear-gradient(95deg, var(--cyan) 0%, var(--emerald) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(1.06rem, 1.8vw, 1.22rem);
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 28px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.hero-meta {
  font-size: 0.82rem;
  color: var(--faint);
  margin-bottom: 52px;
}

/* =========================================
   HERO INTERACTIVE SHOWCASE WINDOW
   ========================================= */
.studio-window {
  text-align: left;
  background: var(--window-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-window);
  overflow: hidden;
  border: 1px solid var(--border);
}

.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  background: var(--window-chrome);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.window-chrome-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.window-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-r { background: #ef4444; opacity: 0.85; }
.dot-y { background: #f59e0b; opacity: 0.85; }
.dot-g { background: #10b981; opacity: 0.85; }

.window-title {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--muted);
}

.mode-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--border);
}

.mode-tab {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 7px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.mode-tab:hover {
  color: var(--text);
}

.mode-tab.active {
  background: var(--surface-raised);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.window-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--emerald);
}

.window-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
}

.window-pane {
  display: none;
}

.window-pane.active {
  display: block;
}

/* Planner layout */
.planner-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 410px;
}

.planner-sidebar {
  padding: 20px;
  border-right: 1px solid var(--border);
  background: var(--bg-elevated);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
  margin-bottom: 8px;
}

.vm-source-card {
  padding: 11px 13px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}

.vm-source-name {
  font-family: var(--mono);
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
  word-break: break-all;
}

.vm-source-meta {
  font-size: 0.74rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chip-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}

.os-chip,
.size-chip {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.79rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.size-chip {
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 7px 3px;
}

.os-chip:hover,
.size-chip:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.os-chip.active,
.size-chip.active {
  border-color: var(--cyan-border);
  background: var(--cyan-soft);
  color: var(--text);
}

.os-chip .arch-tag {
  font-family: var(--mono);
  font-size: 0.67rem;
  color: var(--muted);
}

.os-chip.active .arch-tag {
  color: var(--cyan);
}

.diskguard-pill {
  margin-top: auto;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-border);
  font-family: var(--mono);
  font-size: 0.71rem;
  color: var(--emerald);
}

.planner-main {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.kpi-box {
  padding: 11px 13px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}

.kpi-label {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 3px;
}

.kpi-val {
  font-family: var(--mono);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text);
}

.kpi-val.emerald { color: var(--emerald); }
.kpi-val.cyan { color: var(--cyan); }

.partition-visual {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}

.partition-visual-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--muted);
  margin-bottom: 10px;
  gap: 12px;
}

.partition-bar {
  display: flex;
  width: 100%;
  height: 30px;
  border-radius: 7px;
  overflow: hidden;
  gap: 3px;
  background: var(--bg);
  padding: 3px;
  border: 1px solid var(--border);
}

.part-seg {
  height: 100%;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  padding: 0 6px;
}

.part-efi {
  background: rgba(56, 189, 248, 0.25);
  color: var(--cyan);
  border: 1px solid rgba(56, 189, 248, 0.45);
  min-width: 46px;
}

.part-msr {
  background: rgba(251, 191, 36, 0.2);
  color: var(--amber);
  border: 1px solid rgba(251, 191, 36, 0.4);
  min-width: 34px;
}

.part-os {
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.28), rgba(52, 211, 153, 0.34));
  color: var(--text);
  border: 1px solid var(--emerald-border);
  flex: 1;
}

.part-rec {
  background: rgba(148, 163, 184, 0.18);
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  min-width: 68px;
}

.partition-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 0.78rem;
}

.partition-table th {
  text-align: left;
  color: var(--faint);
  font-weight: 600;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 7px 10px;
  border-bottom: 1px solid var(--border);
}

.partition-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--hairline);
  color: var(--text-secondary);
}

.partition-table tr:last-child td {
  border-bottom: none;
}

.partition-table tr.is-expanded td {
  color: var(--text);
  background: var(--emerald-soft);
}

.badge-expand {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 1px solid var(--emerald-border);
}

.cli-bar {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--term-bg);
  border: 1px solid var(--border);
  color: #e2e8f0;
  font-family: var(--mono);
  font-size: 0.77rem;
  overflow-x: auto;
}

.cli-bar code {
  white-space: nowrap;
}

.cli-prompt {
  color: #22d3ee;
  margin-right: 8px;
  user-select: none;
}

.copy-btn {
  flex-shrink: 0;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 5px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* Tab 2: Boot Deployer TUI */
.tui-pane {
  background: #050912;
  color: #e2e8f0;
  padding: 22px 24px;
  font-family: var(--mono);
  font-size: 0.8rem;
  min-height: 410px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tui-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  border: 1px solid #1e2d4a;
  background: #0a1222;
  border-radius: 6px;
  flex-wrap: wrap;
}

.tui-title {
  color: #22d3ee;
  font-weight: 700;
}

.tui-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.tui-box {
  border: 1px solid #1e2d4a;
  border-radius: 6px;
  padding: 13px 15px;
  background: #080f1d;
}

.tui-box-title {
  color: #94a3b8;
  font-size: 0.71rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.tui-kv {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 3px 0;
  font-size: 0.76rem;
}

.tui-kv span:first-child { color: #64748b; }

.tui-progress-box {
  border: 1px solid #1e2d4a;
  border-radius: 6px;
  padding: 14px 16px;
  background: #080f1d;
}

.tui-bar-track {
  width: 100%;
  height: 10px;
  background: #0e1628;
  border: 1px solid #1e2d4a;
  border-radius: 4px;
  overflow: hidden;
  margin: 10px 0 12px;
}

.tui-bar-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #22d3ee, #34d399);
  transition: width 0.25s linear;
}

.tui-log {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.74rem;
  color: #94a3b8;
}

.tui-log .ok { color: #34d399; }
.tui-log .info { color: #22d3ee; }

.tui-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid #1e2d4a;
  font-size: 0.73rem;
  color: #64748b;
}

/* Tab 3: LAN Fleet Server */
.fleet-pane {
  padding: 22px 24px;
  min-height: 410px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fleet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.fleet-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fleet-pill {
  font-family: var(--mono);
  font-size: 0.73rem;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.fleet-pill strong { color: var(--cyan); }

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.node-card {
  padding: 13px 14px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.node-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.node-name {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
}

.node-tag {
  font-family: var(--mono);
  font-size: 0.66rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--cyan-soft);
  color: var(--cyan);
}

.node-tag.done {
  background: var(--emerald-soft);
  color: var(--emerald);
}

.node-sub {
  font-size: 0.75rem;
  color: var(--muted);
}

.node-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--bg);
  overflow: hidden;
  border: 1px solid var(--hairline);
}

.node-bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--emerald));
}

.node-foot {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--faint);
}

/* =========================================
   TELEMETRY STRIP
   ========================================= */
.stats-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 28px 24px;
  border-right: 1px solid var(--border);
}

.stat-item:last-child {
  border-right: none;
}

.stat-num {
  font-family: var(--mono);
  font-size: clamp(1.25rem, 2vw, 1.62rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  white-space: nowrap;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.4;
}

/* =========================================
   SECTIONS
   ========================================= */
section.band {
  padding: 88px 0;
  border-bottom: 1px solid var(--hairline);
}

.section-eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}

.section-head {
  max-width: 600px;
  margin-bottom: 42px;
}

.section-head h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.section-head p {
  font-size: 1.02rem;
  color: var(--muted);
  line-height: 1.55;
}

/* 3-Step minimal */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cyan);
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.step-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* 4-column minimal principles (tinyclient style) */
.principles-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 8px;
}

.principle-col {
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.principle-col h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}

.principle-col p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Comparison bars */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.compare-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.compare-card h3 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.bar-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.bar-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  gap: 12px;
}

.bar-labels span:first-child {
  color: var(--text-secondary);
  font-weight: 500;
}

.bar-labels span:last-child {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  flex-shrink: 0;
}

.bar-row.is-hero .bar-labels span:first-child {
  color: var(--text);
  font-weight: 700;
}

.bar-row.is-hero .bar-labels span:last-child {
  color: var(--emerald);
  font-weight: 700;
}

.bar-track {
  height: 9px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--hairline);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--border-strong);
}

.bar-row.is-hero .bar-fill {
  background: linear-gradient(90deg, var(--cyan), var(--emerald));
}

/* Platform matrix */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 660px;
  font-size: 0.88rem;
}

.matrix-table th {
  text-align: left;
  padding: 13px 18px;
  font-size: 0.72rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--faint);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.matrix-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--hairline);
  color: var(--text-secondary);
}

.matrix-table tr:last-child td {
  border-bottom: none;
}

.os-name {
  font-weight: 700;
  color: var(--text);
}

.check-yes {
  color: var(--emerald);
  font-weight: 600;
}

.section-foot {
  margin-top: 22px;
}

/* Delivery diagrams */
.delivery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.delivery-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.delivery-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.delivery-card > p {
  color: var(--muted);
  font-size: 0.92rem;
}

.usb-diagram {
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.usb-bar {
  display: flex;
  gap: 4px;
  height: 30px;
}

.usb-part {
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0 6px;
  white-space: nowrap;
}

.usb-efi {
  width: 20%;
  background: var(--cyan-soft);
  border: 1px solid var(--cyan-border);
  color: var(--cyan);
}

.usb-data {
  width: 60%;
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-border);
  color: var(--emerald);
}

.usb-mac {
  width: 20%;
  background: var(--amber-soft);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: var(--amber);
}

.usb-legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.69rem;
  color: var(--muted);
}

.lan-diagram {
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.74rem;
  margin-top: auto;
}

.lan-box {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}

.lan-box strong {
  display: block;
  color: var(--text);
  margin-bottom: 2px;
}

.lan-box span {
  color: var(--muted);
  font-size: 0.68rem;
}

.lan-arrow {
  color: var(--cyan);
  font-weight: 700;
  text-align: center;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 1.2rem;
  color: var(--muted);
}

.faq-item[open] summary::after {
  content: "−";
  color: var(--cyan);
}

.faq-body {
  padding: 0 0 20px;
  max-width: 68ch;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.faq-body code {
  font-size: 0.85em;
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--surface-raised);
  color: var(--text);
}

/* Closing CTA */
.cta-band {
  padding: 88px 0;
}

.cta-card {
  padding: 52px 36px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
  background-image: radial-gradient(ellipse 65% 60% at 50% 0%, var(--cyan-soft), transparent 70%);
}

.cta-card h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 10px;
}

.cta-card > p {
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 24px;
  font-size: 0.98rem;
}

.access-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto 12px;
  flex-wrap: wrap;
}

.access-input {
  flex: 1 1 220px;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font-size: 0.92rem;
  outline: none;
}

.access-input:focus {
  border-color: var(--cyan);
}

.access-note {
  font-size: 0.8rem;
  color: var(--faint);
  min-height: 22px;
}

.access-note.success {
  color: var(--emerald);
}

/* =========================================
   DOCS PAGE LAYOUT (/docs/)
   ========================================= */
.docs-shell {
  padding: 48px 0 96px;
}

.docs-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.docs-nav-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.docs-nav-title {
  font-family: var(--mono);
  font-size: 0.69rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
  padding: 4px 10px;
}

.docs-nav-group a {
  font-size: 0.86rem;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.docs-nav-group a:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.docs-content {
  max-width: 760px;
  min-width: 0;
}

.docs-hero {
  padding-bottom: 28px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

.docs-hero h1 {
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.docs-hero p {
  font-size: 1.04rem;
  color: var(--muted);
}

.docs-section {
  scroll-margin-top: 96px;
  padding-bottom: 44px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--hairline);
}

.docs-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.docs-section h2 {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.docs-section h3 {
  font-size: 1.06rem;
  font-weight: 700;
  margin: 24px 0 8px;
}

.docs-section p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 14px;
  line-height: 1.68;
}

.docs-section ul {
  margin: 0 0 16px 18px;
  color: var(--text-secondary);
  font-size: 0.94rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.docs-section code:not(pre code) {
  font-size: 0.84em;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--surface-raised);
  color: var(--text);
  border: 1px solid var(--hairline);
}

.code-block {
  position: relative;
  margin: 16px 0 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--term-bg);
  overflow: hidden;
}

.code-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: #0b1222;
  border-bottom: 1px solid #1e2d4a;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #94a3b8;
}

.code-block pre {
  padding: 16px 18px;
  font-size: 0.81rem;
  line-height: 1.68;
  color: #e2e8f0;
  overflow-x: auto;
}

.code-block .c { color: #22d3ee; }
.code-block .g { color: #34d399; }
.code-block .a { color: #fbbf24; }
.code-block .m { color: #64748b; }

.docs-callout {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  margin: 18px 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.docs-callout strong {
  color: var(--text);
}

/* =========================================
   FOOTER
   ========================================= */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 48px;
}

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

.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: var(--muted);
}

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

.footer-bottom {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--faint);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 960px) {
  .planner-grid {
    grid-template-columns: 1fr;
  }
  .planner-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .kpi-strip,
  .stats-grid,
  .principles-row,
  .fleet-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item:nth-child(2) {
    border-right: none;
  }
  .stat-item:nth-child(1),
  .stat-item:nth-child(2) {
    border-bottom: 1px solid var(--border);
  }
  .steps-grid,
  .compare-grid,
  .delivery-grid,
  .tui-grid,
  .docs-layout {
    grid-template-columns: 1fr;
  }
  .docs-sidebar {
    position: static;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
  }
}

@media (max-width: 740px) {
  .nav-links {
    display: none;
  }
  .nav-bar {
    border-radius: 16px;
    padding: 0 12px;
  }
  .hero {
    padding: 48px 0 44px;
  }
  section.band {
    padding: 60px 0;
  }
  .principles-row,
  .fleet-grid {
    grid-template-columns: 1fr;
  }
  .lan-diagram {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .cta-card {
    padding: 36px 22px;
  }
}
