:root {
  --bg: #172554;
  --bg-deep: #111c42;
  --grain: #2e4aa8;
  --fg: #ffffff;
  --heading: #f5f5f5;
  --muted: rgba(255, 255, 255, 0.76);
  --nav: rgba(255, 255, 255, 0.62);
  --caption: rgba(255, 255, 255, 0.56);
  --border: rgba(255, 255, 255, 0.15);
  --border-strong: rgba(255, 255, 255, 0.24);
  --surface: rgba(255, 255, 255, 0.045);
  --surface-hover: rgba(255, 255, 255, 0.09);
  --selection: #0070ff;
  --selection-soft: rgba(0, 112, 255, 0.18);
  --success: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --close: #ff5f57;
  --minimize: #febc2e;
  --zoom: #28c840;
  --ruler-tick: rgba(255, 255, 255, 0.28);
  --ruler-tick-strong: rgba(255, 255, 255, 0.55);

  /* Paper & Ink widget tokens inside showcase frames */
  --paper-bg: #f5f4f0;
  --paper-card: #ffffff;
  --paper-ink: #181715;
  --paper-muted: #625f59;
  --paper-faint: #8f8b82;
  --paper-border: rgba(28, 25, 23, 0.12);
  --paper-hairline: rgba(28, 25, 23, 0.08);
  --paper-chip: rgba(28, 25, 23, 0.055);
  --paper-accent: #23537a;
  --paper-up: #c53d3d;
  --paper-down: #1f7a5a;
  --paper-warn: #b46914;

  /* Dark Obsidian widget tokens */
  --dark-card: #18191d;
  --dark-surface: #202228;
  --dark-ink: #f0efea;
  --dark-muted: #9d9a93;
  --dark-border: rgba(255, 255, 255, 0.11);

  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  color-scheme: dark;
}

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

html {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
  color: inherit;
}

.tnum {
  font-variant-numeric: tabular-nums;
}

/* Blueprint grain overlay */
.blueprint-grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(46, 74, 168, 0.42), transparent 70%),
    radial-gradient(900px 500px at 85% 35%, rgba(46, 74, 168, 0.22), transparent 65%);
}

.blueprint-grain::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

/* Precision Blueprint Rulers (matching p-mirror.com) */
.ruler-x {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 20px;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background-color: rgba(23, 37, 84, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      90deg,
      var(--ruler-tick-strong) 0 1px,
      transparent 1px 80px
    ),
    repeating-linear-gradient(
      90deg,
      var(--ruler-tick) 0 1px,
      transparent 1px 40px
    ),
    repeating-linear-gradient(
      90deg,
      var(--ruler-tick) 0 1px,
      transparent 1px 8px
    );
  background-size: 80px 11px, 40px 7px, 8px 4px;
  background-position: 20px bottom, 20px bottom, 20px bottom;
  background-repeat: repeat-x;
}

.ruler-y {
  position: fixed;
  top: 20px;
  bottom: 0;
  left: 0;
  width: 20px;
  z-index: 40;
  display: none;
  border-right: 1px solid var(--border);
  background-color: rgba(23, 37, 84, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      180deg,
      var(--ruler-tick-strong) 0 1px,
      transparent 1px 80px
    ),
    repeating-linear-gradient(
      180deg,
      var(--ruler-tick) 0 1px,
      transparent 1px 40px
    ),
    repeating-linear-gradient(
      180deg,
      var(--ruler-tick) 0 1px,
      transparent 1px 8px
    );
  background-size: 11px 80px, 7px 40px, 4px 8px;
  background-position: right 0, right 0, right 0;
  background-repeat: repeat-y;
}

@media (min-width: 640px) {
  .ruler-y {
    display: block;
  }
}

/* Fixed Left Sidebar Navigation (min-width: 72rem / 1152px) */
.side-nav {
  position: fixed;
  top: 84px;
  left: 54px;
  width: 206px;
  z-index: 30;
  display: none;
  flex-direction: column;
  gap: 28px;
}

@media (min-width: 1152px) {
  .side-nav {
    display: flex;
  }
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--fg);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
}

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

.nav-heading {
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 2px;
}

.nav-link {
  display: block;
  width: fit-content;
  font-size: 13px;
  line-height: 20px;
  color: var(--nav);
  text-decoration: none;
  transition: transform 150ms ease-out, color 150ms ease-out;
}

.nav-link:hover {
  color: var(--fg);
}

.nav-link[aria-current="true"] {
  color: var(--fg);
  transform: translateX(8px);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  width: fit-content;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--nav);
  font-size: 11.5px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}

.lang-btn.active {
  background: var(--fg);
  color: #111827;
}

.lang-btn:not(.active):hover {
  color: var(--fg);
}

/* Mobile / Narrow Top Bar */
.mobile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px 6px;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 1152px) {
  .mobile-top {
    display: none;
  }
}

/* Main Centered Architectural Column */
.page-shell {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding-top: 20px;
  min-height: 100dvh;
}

@media (min-width: 640px) {
  .page-shell {
    padding-left: 20px;
    padding-right: 20px;
  }
}

.blueprint-col {
  width: 100%;
  max-width: 590px;
  display: flex;
  flex-direction: column;
  padding-top: 44px;
}

@media (min-width: 640px) {
  .blueprint-col {
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }
}

@media (min-width: 1152px) {
  .blueprint-col {
    padding-top: 60px;
  }
}

/* Signature Frosted 12px Section Divider Band */
.section-band {
  height: 12px;
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px);
}

/* Sections & Editorial Typography */
.section {
  scroll-margin-top: 32px;
  display: flex;
  flex-direction: column;
}

.hero {
  scroll-margin-top: 64px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-copy {
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-title {
  margin: 0;
  font-size: 19px;
  line-height: 30px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--fg);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.inline-mark {
  display: inline-block;
  width: 15px;
  height: 15px;
  vertical-align: -2px;
  margin-right: 2px;
}

.hero-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.62;
  letter-spacing: 0.01em;
  color: var(--muted);
  max-width: 536px;
}

.hero-desc u,
.inline-link {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  text-underline-offset: 3px;
  transition: text-decoration-color 140ms ease;
}

.inline-link:hover {
  text-decoration-color: var(--fg);
}

.hero-actions {
  padding: 0 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.pill-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 0;
  background: #fafafa;
  color: #171717;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 140ms ease, transform 120ms ease;
}

.pill-primary:hover {
  opacity: 0.92;
}

.pill-primary:active {
  transform: scale(0.975);
}

.pill-secondary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.08);
  color: var(--fg);
  font-size: 13px;
  font-weight: 450;
  text-decoration: none;
  cursor: pointer;
  transition: background 140ms ease, transform 120ms ease;
}

.pill-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.pill-secondary:active {
  transform: scale(0.975);
}

.pill-meta {
  color: var(--nav);
  font-variant-numeric: tabular-nums;
}

.section-body {
  padding: 40px 18px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section-head {
  padding: 40px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

h2.sec-title {
  margin: 0;
  font-size: 14.5px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--heading);
}

p.sec-p {
  margin: 0;
  font-size: 14px;
  line-height: 1.62;
  letter-spacing: 0.01em;
  color: var(--muted);
}

ul.sec-list {
  margin: 2px 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

ul.sec-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

ul.sec-list li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: var(--caption);
}

ul.sec-list li strong {
  color: var(--fg);
  font-weight: 500;
}

.sec-list code {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 1.5px 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--fg);
}

/* Copyable Command Box (matching p-mirror.com) */
.cmd-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.075);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--fg);
  cursor: pointer;
  text-align: left;
  transition: background 140ms ease, border-color 140ms ease;
}

.cmd-box:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-strong);
}

.cmd-code {
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.cmd-code::-webkit-scrollbar {
  display: none;
}

.cmd-copy {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  color: var(--nav);
}

.cmd-box.copied .cmd-copy {
  color: var(--success);
}

/* Download Platform Grid */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 480px) {
  .dl-grid {
    grid-template-columns: 1fr;
  }
}

.dl-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.055);
  text-decoration: none;
  transition: background 140ms ease, border-color 140ms ease;
}

.dl-card:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: var(--border-strong);
}

.dl-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
}

.dl-meta {
  font-size: 11.5px;
  font-family: var(--font-mono);
  color: var(--caption);
  margin-top: 2px;
}

/* Feature Showcase List */
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.feature-item {
  display: flex;
  flex-direction: column;
}

.feature-caption {
  padding: 18px 18px 34px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feature-caption h3 {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--heading);
}

.feature-caption p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.58;
  color: var(--muted);
}

/* Framed Blueprint Stage (Full-width inside 590px column) */
.stage {
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.042);
  overflow: hidden;
}

.stage-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 560px) {
  .stage-split {
    grid-template-columns: 1fr;
  }
}

.stage-pane {
  position: relative;
  padding: 18px 16px;
  min-width: 0;
}

.stage-pane + .stage-pane {
  border-left: 1px solid var(--border);
}

@media (max-width: 560px) {
  .stage-pane + .stage-pane {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
}

.stage-single {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stage-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.stage-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--caption);
  letter-spacing: 0.02em;
}

.seg-bar {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
}

.seg-btn {
  border: 0;
  background: transparent;
  color: var(--nav);
  font-size: 11.5px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
  white-space: nowrap;
}

.seg-btn:hover {
  color: var(--fg);
}

.seg-btn.active {
  background: #ffffff;
  color: #181715;
}

/* =====================================================
   INTERACTIVE SHOWCASE WIDGETS (Paper & Ink + Obsidian)
   ===================================================== */

/* Hero Left: Blueprint Selected Code Frame */
.code-frame {
  background: #ffffff;
  color: #181715;
  border-radius: 12px;
  border: 2px solid var(--selection);
  box-shadow: 0 12px 32px rgba(9, 15, 40, 0.35);
  overflow: hidden;
  position: relative;
}

.code-frame-dots {
  display: flex;
  gap: 3px;
  margin-bottom: 6px;
}

.code-frame-dots span {
  width: 3px;
  height: 3px;
  border-radius: 99px;
  background: #4e8fff;
  opacity: 0.7;
}

.code-frame-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 11px;
  border-bottom: 1px solid var(--paper-hairline);
  background: #faf9f6;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--paper-muted);
}

.code-frame-body {
  padding: 10px 11px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.55;
  color: #292524;
  white-space: pre;
  overflow-x: auto;
}

.tok-k { color: #23537a; font-weight: 600; }
.tok-s { color: #1f7a5a; }
.tok-n { color: #b46914; }
.tok-c { color: #8f8b82; }

.hero-dim-bar {
  display: flex;
  gap: 4px;
  padding: 7px 10px;
  border-top: 1px solid var(--paper-hairline);
  background: #faf9f6;
  flex-wrap: wrap;
}

.hero-dim-pill {
  border: 1px solid var(--paper-border);
  background: #ffffff;
  color: var(--paper-muted);
  font-size: 10.5px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 120ms ease;
}

.hero-dim-pill.active {
  background: var(--paper-accent);
  border-color: var(--paper-accent);
  color: #ffffff;
}

/* macOS Mini Window Frame */
.mac-win {
  background: var(--paper-bg);
  color: var(--paper-ink);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(8, 13, 36, 0.42);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.mac-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 11px;
  background: #eceae4;
  border-bottom: 1px solid var(--paper-hairline);
  gap: 8px;
}

.traffic-lights {
  display: flex;
  gap: 5px;
}

.traffic-lights span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.tl-r { background: var(--close); }
.tl-y { background: var(--minimize); }
.tl-g { background: var(--zoom); }

.mac-tray-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--paper-border);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--paper-ink);
  font-family: var(--font-mono);
}

.tray-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--paper-down);
}

.mac-body {
  padding: 12px;
}

/* Paper & Ink Card inside Showcases */
.pi-card {
  background: var(--paper-card);
  color: var(--paper-ink);
  border-radius: 12px;
  border: 1px solid var(--paper-border);
  box-shadow: 0 1px 3px rgba(28, 25, 23, 0.05);
  padding: 14px 16px;
}

.pi-card.dark-mode {
  background: var(--dark-card);
  color: var(--dark-ink);
  border-color: var(--dark-border);
}

.pi-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  color: var(--paper-muted);
  margin-bottom: 6px;
}

.pi-card.dark-mode .pi-kicker {
  color: var(--dark-muted);
}

.pi-hero-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.pi-hero-num {
  font-size: 30px;
  line-height: 1.1;
  font-weight: 350;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.pi-hero-unit {
  font-size: 12.5px;
  font-weight: 450;
  color: var(--paper-muted);
  margin-left: 4px;
}

.delta-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.delta-up {
  color: var(--paper-up);
  background: rgba(197, 61, 61, 0.11);
}

.delta-down {
  color: var(--paper-down);
  background: rgba(31, 122, 90, 0.11);
}

.pi-sub {
  font-size: 12px;
  color: var(--paper-muted);
  margin-top: 3px;
}

.pi-card.dark-mode .pi-sub {
  color: var(--dark-muted);
}

/* Interactive Chart SVG */
.chart-wrap {
  position: relative;
  margin-top: 10px;
  height: 132px;
  user-select: none;
  cursor: crosshair;
}

.chart-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}

.pi-stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--paper-hairline);
}

.pi-stat-k {
  font-size: 10.5px;
  color: var(--paper-faint);
}

.pi-stat-v {
  font-size: 12px;
  font-weight: 600;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.pi-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.pi-pill {
  border: 1px solid var(--paper-border);
  background: var(--paper-chip);
  color: var(--paper-muted);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 120ms ease;
}

.pi-pill:hover {
  border-color: rgba(28, 25, 23, 0.25);
  color: var(--paper-ink);
}

.pi-pill.active {
  background: var(--paper-accent);
  border-color: var(--paper-accent);
  color: #ffffff;
}

/* KV List Rows (Gold KV & Menu Panel) */
.kv-list {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}

.kv-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-top: 1px solid var(--paper-hairline);
  font-size: 12px;
}

.pi-card.dark-mode .kv-row {
  border-top-color: var(--dark-border);
}

.kv-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.kv-val {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* macOS Menu Bar Strip & Popover */
.menubar-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 10px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.72);
}

.menubar-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  border: 0;
  cursor: pointer;
}

.menubar-dropdown {
  background: var(--paper-card);
  color: var(--paper-ink);
  border-radius: 10px;
  border: 1px solid var(--paper-border);
  padding: 5px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.menubar-dropdown.dark-mode {
  background: var(--dark-card);
  color: var(--dark-ink);
  border-color: var(--dark-border);
}

.mb-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 9px;
  border-radius: 6px;
  font-size: 12px;
}

.mb-item:hover {
  background: var(--paper-chip);
}

.menubar-dropdown.dark-mode .mb-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.mb-sep {
  height: 1px;
  background: var(--paper-hairline);
  margin: 4px 6px;
}

.menubar-dropdown.dark-mode .mb-sep {
  background: var(--dark-border);
}

/* Bento IP & Network Dashboard */
.bento-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.25fr;
  gap: 12px;
}

@media (max-width: 520px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
}

.bento-ip {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.probe-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.probe-row {
  display: grid;
  grid-template-columns: 64px 1fr 38px;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}

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

.p-dot {
  height: 9px;
  border-radius: 2.5px;
  transition: transform 120ms ease, opacity 180ms ease;
  cursor: pointer;
}

.p-dot:hover {
  transform: scale(1.25);
}

.p-ok { background: #1f7a5a; }
.p-mid { background: #c26d2d; }
.p-slow { background: #c53d3d; }
.p-pend { background: rgba(28, 25, 23, 0.12); }

/* Obsidian HUD: LED Matrix / Neon / Rings */
.hud-card {
  background: #121318;
  color: #f0efea;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  padding: 15px 16px;
  box-shadow: 0 14px 36px rgba(6, 10, 26, 0.45);
}

.matrix-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 10px;
}

.matrix-item:first-child {
  margin-top: 0;
}

.matrix-head {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: #a1a1aa;
}

.matrix-head strong {
  color: #f4f4f5;
  font-weight: 500;
}

.led-bar {
  display: grid;
  grid-template-columns: repeat(28, 1fr);
  gap: 2.5px;
  padding: 5px 6px;
  border-radius: 6px;
  background: #0a0b0e;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.led-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.led-cell {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 1.5px;
  background: rgba(255, 255, 255, 0.06);
}

.led-cell.on {
  animation: led-breathe 3.2s ease-in-out infinite;
}

@keyframes led-breathe {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.18); }
}

.neon-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.neon-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.rings-stage {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 16px;
  padding: 8px 4px;
  flex-wrap: wrap;
}

/* World Clock + Ping Monitor */
.clock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  border-top: 1px solid var(--paper-hairline);
}

.clock-row:first-child {
  border-top: 0;
  padding-top: 2px;
}

.clock-time {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* Floating Status Capsule Demo */
.float-capsule-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.float-capsule {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(17, 20, 30, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(16px);
  flex-wrap: wrap;
  justify-content: center;
}

.float-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-mono);
  font-size: 11.5px;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}

.float-pill:hover,
.float-pill.active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.float-flyout {
  width: 100%;
  max-width: 310px;
}

/* Footer */
.site-footer {
  padding: 40px 18px 52px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.footer-links a {
  font-size: 13.5px;
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color 140ms ease;
}

.footer-links a:hover {
  text-decoration-color: currentColor;
}

.footer-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--caption);
}
