/* ==========================================================================
   site.css — Clean Indie Software Showcase + Native Windows 10 Desktop Stage
   ========================================================================== */

:root {
  --site-bg: #09090b;
  --site-panel: #111114;
  --site-header-bg: rgba(9, 9, 11, 0.85);
  --site-border: rgba(255, 255, 255, 0.09);
  --site-border-hover: rgba(255, 255, 255, 0.28);
  --site-text: #f4f4f5;
  --site-heading: #ffffff;
  --site-muted: #a1a1aa;
  --site-subtle: #71717a;
  --site-surface-hover: rgba(255, 255, 255, 0.06);
  --site-surface-active: rgba(255, 255, 255, 0.1);
  --site-cta-bg: #ffffff;
  --site-cta-text: #09090b;
  --site-kbd-bg: rgba(255, 255, 255, 0.05);
  --site-monitor-bar: #141418;
  --site-monitor-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  --site-accent: #e4e4e7;
  --site-font: "Inter", "Segoe UI", -apple-system, sans-serif;
  --site-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

html[data-site-theme="light"] {
  --site-bg: #ffffff;
  --site-panel: #f4f4f5;
  --site-header-bg: rgba(255, 255, 255, 0.88);
  --site-border: rgba(9, 9, 11, 0.11);
  --site-border-hover: rgba(9, 9, 11, 0.28);
  --site-text: #18181b;
  --site-heading: #09090b;
  --site-muted: #52525b;
  --site-subtle: #71717a;
  --site-surface-hover: rgba(9, 9, 11, 0.05);
  --site-surface-active: rgba(9, 9, 11, 0.08);
  --site-cta-bg: #09090b;
  --site-cta-text: #ffffff;
  --site-kbd-bg: rgba(9, 9, 11, 0.05);
  --site-monitor-bar: #f4f4f5;
  --site-monitor-shadow: 0 20px 50px rgba(9, 9, 11, 0.12);
}

html,
body {
  width: 100%;
  height: auto !important;
  min-height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  background: var(--site-bg) !important;
  color: var(--site-text) !important;
  font-family: var(--site-font) !important;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* ---- 1. Top Bar (Sticky, full width — never overlaps page text) ---- */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 500;
  background: var(--site-header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--site-border);
  font-family: var(--site-font) !important;
}

.site-header-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--site-text);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.site-brand img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: block;
}

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

.site-nav-links button {
  background: transparent;
  border: none;
  color: var(--site-muted);
  font-family: var(--site-font);
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 11px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.site-nav-links button:hover {
  color: var(--site-heading);
  background: var(--site-surface-hover);
}

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

.site-lang-wrap {
  position: relative;
}

.site-lang-btn {
  font-family: var(--site-mono);
  font-size: 12px;
  color: var(--site-text);
  background: transparent;
  border: 1px solid var(--site-border);
  border-radius: 6px;
  padding: 6px 10px;
  min-width: 52px;
  white-space: nowrap;
  cursor: pointer;
}

.site-lang-btn:hover {
  border-color: var(--site-border-hover);
}

.site-lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--site-panel);
  border: 1px solid var(--site-border);
  border-radius: 8px;
  padding: 4px;
  display: none;
  flex-direction: column;
  gap: 2px;
  min-width: 140px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.site-lang-menu.open {
  display: flex;
}

.site-lang-opt {
  font-family: var(--site-font);
  font-size: 12.5px;
  color: var(--site-muted);
  background: transparent;
  border: none;
  border-radius: 5px;
  padding: 6px 10px;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
}

.site-lang-opt:hover,
.site-lang-opt.active {
  background: var(--site-surface-hover);
  color: var(--site-heading);
}

.site-theme-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--site-border);
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
  background: transparent;
}

.site-theme-opt {
  font-family: var(--site-mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--site-muted);
  background: transparent;
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.site-theme-opt:hover {
  color: var(--site-heading);
}

.site-theme-opt.active {
  background: var(--site-cta-bg);
  color: var(--site-cta-text);
}

.site-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--site-cta-bg);
  color: var(--site-cta-text);
  font-family: var(--site-font);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 6px;
  text-decoration: none;
  min-width: 124px;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

.site-cta-btn:hover {
  opacity: 0.9;
}

/* ---- 2. Sober Hero Intro (zero overlap, clean editorial layout) ---- */
.hero-intro {
  padding: 48px 24px 32px 24px;
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  font-family: var(--site-font) !important;
}

.hero-intro-text {
  max-width: 680px;
}

.hero-meta-line {
  font-family: var(--site-mono);
  font-size: 12px;
  color: var(--site-muted);
  margin-bottom: 10px;
  display: block;
}

.hero-intro h1 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--site-heading);
  margin-bottom: 12px;
}

.hero-intro p {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--site-muted);
}

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

.hero-btn-primary {
  background: var(--site-cta-bg);
  color: var(--site-cta-text);
  font-weight: 600;
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.hero-btn-ghost {
  background: transparent;
  color: var(--site-text);
  border: 1px solid var(--site-border);
  font-weight: 500;
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
}

.hero-btn-ghost:hover {
  border-color: var(--site-border-hover);
}

/* ---- 3. Pinned Fullscreen Stage (#tour) ---- */
.tour-section {
  position: relative;
  width: 100%;
  padding: 8px 24px 48px 24px;
}

.tour-pin-container {
  max-width: 1380px;
  margin: 0 auto;
  height: calc(100vh - 80px);
  min-height: 600px;
  max-height: 820px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 20px;
  align-items: stretch;
}

/* Left Monitor Frame wrapping the Theme Bar + Windows 10 Desktop Stage */
.monitor-shell {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid var(--site-border);
  background: var(--site-panel);
  overflow: hidden;
  box-shadow: var(--site-monitor-shadow);
}

/* Clean Top Strip of Monitor Frame: OS Preview + Theme Switcher */
.monitor-top-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: var(--site-monitor-bar);
  border-bottom: 1px solid var(--site-border);
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--site-font) !important;
}

.monitor-title-label {
  font-family: var(--site-mono);
  font-size: 11.5px;
  color: var(--site-muted);
}

.stage-theme-dock {
  display: flex;
  align-items: center;
  gap: 4px;
}

.stage-theme-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--site-muted);
  font-family: var(--site-font);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.stage-theme-btn:hover {
  color: var(--site-heading);
  background: var(--site-surface-hover);
}

.stage-theme-btn.active {
  background: var(--site-surface-active);
  border-color: var(--site-border-hover);
  color: var(--site-heading);
}

/* ---- Native Windows 10 Desktop Screen ---- */
.glimpse-desktop-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* Iconic Windows 10 Hero Deep Blue background */
  background:
    radial-gradient(circle at 68% 48%, rgba(56, 189, 248, 0.42) 0%, rgba(14, 116, 198, 0.18) 38%, transparent 65%),
    linear-gradient(125deg, #03152e 0%, #062b5c 45%, #020c1d 100%);
}

/* Windows 10 Light-Beam Geometric Window Panes (Pure SVG Layer) */
.win10-wallpaper-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: calc(100% - 40px);
  pointer-events: none;
  z-index: 1;
}

/* Windows XP Bliss wallpaper variant when XP theme is active */
html[data-ui-theme="win-xp"] .glimpse-desktop-stage {
  background: linear-gradient(180deg, #3b82f6 0%, #60a5fa 56%, #3f9c35 57%, #2e8b22 100%);
}
html[data-ui-theme="win-xp"] .win10-wallpaper-svg {
  opacity: 0.12;
}

/* Minecraft dark stone/sky variant when Minecraft theme is active */
html[data-ui-theme="minecraft"] .glimpse-desktop-stage {
  background: linear-gradient(180deg, #1b2838 0%, #16202c 62%, #1d2e1e 100%);
}
html[data-ui-theme="minecraft"] .win10-wallpaper-svg {
  opacity: 0.18;
}

/* Windows 10 Desktop Icons Grid (Top-Left of Virtual Screen) */
.win10-desktop-icons {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 14px;
  pointer-events: none;
  font-family: "Segoe UI", var(--site-font), sans-serif !important;
}

.win10-icon-item {
  width: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.win10-icon-item span {
  font-size: 11px;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* Windows 10 Taskbar along the bottom of the virtual monitor */
.glimpse-desktop-stage,
.glimpse-desktop-stage * {
  box-sizing: border-box;
}

.win10-taskbar {
  position: relative;
  margin-top: auto;
  height: 40px;
  width: 100%;
  background: rgba(16, 20, 28, 0.92);
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 0;
  font-family: "Segoe UI", var(--site-font), sans-serif !important;
}

.win10-tb-left {
  display: flex;
  align-items: center;
  height: 100%;
}

.win10-start-btn {
  width: 44px;
  height: 100%;
  display: grid;
  place-items: center;
  color: #ffffff;
}

.win10-search-box {
  height: 30px;
  width: 210px;
  background: rgba(255, 255, 255, 0.95);
  color: #475569;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  margin-right: 6px;
}

.win10-tb-apps {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 2px;
}

.win10-tb-app {
  width: 42px;
  height: 100%;
  display: grid;
  place-items: center;
  position: relative;
}

.win10-tb-app.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 6px;
  right: 6px;
  height: 2px;
  background: #38bdf8;
}

.win10-tb-tray {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #f8fafc;
  font-size: 11.5px;
}

.win10-clock {
  text-align: right;
  line-height: 1.15;
  font-size: 11px;
}

/* ---- Native Glimpse Components inside the Windows 10 Screen ---- */
.desktop-workspace-area {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  z-index: 10;
}

.glimpse-desktop-stage .dock-viewport {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  display: grid;
  place-items: center;
  z-index: 20;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.glimpse-desktop-stage .dock-viewport.stage-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: scale(0.94);
}

.glimpse-desktop-stage .liquid-blob {
  transition:
    left var(--spring),
    width var(--spring),
    transform var(--spring),
    border-radius var(--spring);
}

/* Live Capture Overlay Layer inside Windows 10 Screen */
.stage-capture-overlay {
  position: absolute;
  inset: 0;
  z-index: 18;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.stage-capture-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Authentic Top Capture Mode Bar from overlay.html / overlay.css */
.stage-capture-overlay .overlay-top-wrap {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 25;
  max-width: calc(100% - 24px);
}

.stage-capture-overlay .mode-bar {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: var(--overlay-label-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow-sm), var(--glass-inner-glow);
  overflow: hidden;
}

.stage-capture-overlay .overlay-liquid-blob {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 10px;
  width: 108px;
  border-radius: var(--radius-pill);
  background: var(--liquid-blob-bg);
  box-shadow: var(--liquid-blob-glow);
  pointer-events: none;
  z-index: 0;
  transition:
    left var(--spring),
    width var(--spring),
    transform var(--spring),
    border-radius var(--spring);
}

.stage-capture-overlay .mode-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-secondary);
  font-family: "Segoe UI", var(--site-font), sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--transition), transform var(--spring);
}

.stage-capture-overlay .mode-btn:hover {
  color: var(--text-primary);
  transform: translateY(-1px);
}

.stage-capture-overlay .mode-btn.active {
  color: var(--text-on-accent);
  font-weight: 600;
}

.stage-capture-overlay .mode-divider {
  width: 1px;
  height: 18px;
  background: var(--glass-divider);
  margin: 0 3px;
}

.stage-capture-overlay .mode-close {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
}

.stage-capture-overlay .mode-close:hover {
  background: var(--danger);
  color: var(--text-on-accent);
}

.stage-capture-rect {
  position: relative;
  margin-top: 44px;
  width: 64%;
  height: 58%;
  border: 2px solid #0a84ff;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage-capture-badge {
  position: absolute;
  top: -28px;
  left: 0;
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  font-family: var(--site-mono);
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stage-handle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #ffffff;
  border: 2px solid #0a84ff;
  border-radius: 50%;
}
.sh-nw { top: -5px; left: -5px; }
.sh-ne { top: -5px; right: -5px; }
.sh-sw { bottom: -5px; left: -5px; }
.sh-se { bottom: -5px; right: -5px; }

/* Native Editor View inside Windows 10 Screen */
.glimpse-desktop-stage .editor-view {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
  gap: 8px;
  z-index: 15;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.98);
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.glimpse-desktop-stage .editor-view.stage-visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.glimpse-desktop-stage .editor-view .top-action-wrap {
  position: relative;
  z-index: 30;
  display: flex;
  justify-content: center;
  padding: 0;
}

.glimpse-desktop-stage .editor-view .bottom-capsule {
  position: relative;
  flex-wrap: nowrap;
  white-space: nowrap;
  justify-content: center;
  max-width: 100%;
  gap: 4px;
  padding: 4px 8px;
}

.glimpse-desktop-stage .editor-view .bottom-capsule .btn {
  padding: 4px 7px;
  font-size: 11px;
  gap: 4px;
}

.glimpse-desktop-stage .editor-view .bottom-capsule .dim-badge {
  font-size: 10.5px;
  padding: 2px 6px;
}

.glimpse-desktop-stage .editor-view .bottom-capsule .zoom-btn {
  width: 20px;
  height: 20px;
}

.glimpse-desktop-stage .editor-view .bottom-capsule .zoom-label {
  font-size: 11px;
  min-width: 34px;
}

.glimpse-desktop-stage .editor-view .bottom-capsule .icon-btn {
  width: 24px;
  height: 24px;
}

.glimpse-desktop-stage .editor-view .photo-tabs-wrap {
  display: flex;
  justify-content: center;
  z-index: 25;
}

.glimpse-desktop-stage .editor-view .workspace-row {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 78px; /* clears Win10 left desktop icons cleanly */
  gap: 12px;
}

.glimpse-desktop-stage .toolbar-wrap {
  position: relative !important;
  flex-shrink: 0;
  z-index: 24;
  display: flex !important;
  align-items: center;
}

.glimpse-desktop-stage .vertical-toolbar {
  padding: 8px 6px !important;
  max-height: none !important;
}

.glimpse-desktop-stage .canvas-stage {
  position: relative;
  flex: 1;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* Captured Window inside Editor Canvas */
.demo-captured-board {
  position: relative;
  width: 100%;
  max-width: 560px;
  height: 330px;
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.45);
  font-family: var(--site-font) !important;
}

.demo-app-titlebar {
  height: 32px;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 600;
  color: #334155;
}

.demo-app-dots {
  display: flex;
  gap: 5px;
}
.demo-app-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.demo-app-dots span:nth-child(1) { background: #ef4444; }
.demo-app-dots span:nth-child(2) { background: #f59e0b; }
.demo-app-dots span:nth-child(3) { background: #22c55e; }

.demo-app-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.demo-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.demo-app-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.demo-app-btn {
  background: #0a84ff;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
}

.demo-highlight-line {
  position: relative;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: #334155;
  line-height: 1.45;
}

.demo-highlight-text {
  position: relative;
  z-index: 2;
}

.demo-secret-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--site-mono);
  font-size: 12px;
  color: #0f172a;
}

.demo-secret-token {
  position: relative;
  display: inline-block;
  padding: 2px 4px;
}

/* Vector & Pixel Annotations Overlay */
.demo-annot-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.annot-item {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.annot-item.visible {
  opacity: 1;
  transform: scale(1);
}

.annot-highlighter-bar {
  position: absolute;
  top: 9px;
  left: 11px;
  width: 245px;
  height: 19px;
  background: rgba(250, 204, 21, 0.55);
  border-radius: 3px;
  z-index: 1;
  pointer-events: none;
}

.annot-step-badge {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #ff453a;
  color: #ffffff;
  font-weight: 700;
  font-size: 11.5px;
  display: grid;
  place-items: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 3;
  pointer-events: none;
}

.annot-mosaic-blur {
  position: absolute;
  inset: -3px -6px;
  border-radius: 4px;
  background-image: linear-gradient(45deg, rgba(100, 116, 139, 0.92) 25%, rgba(148, 163, 184, 0.92) 25%, rgba(148, 163, 184, 0.92) 50%, rgba(100, 116, 139, 0.92) 50%, rgba(100, 116, 139, 0.92) 75%, rgba(71, 85, 105, 0.92) 75%);
  background-size: 10px 10px;
  backdrop-filter: blur(6px);
  z-index: 4;
  pointer-events: none;
}

.annot-rich-text {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: #ff453a;
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 7px;
  border: 1.5px solid #ffffff;
}

.demo-split-board {
  display: none;
  width: 48%;
  height: 330px;
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.45);
  overflow: hidden;
  font-family: var(--site-font) !important;
}

.canvas-stage.is-split .demo-captured-board {
  width: 48%;
}
.canvas-stage.is-split .demo-app-content {
  padding: 14px;
  gap: 10px;
}
.canvas-stage.is-split .demo-app-header h3 {
  font-size: 13.5px;
}
.canvas-stage.is-split .demo-split-board {
  display: flex;
  flex-direction: column;
}

.login-url-pill {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  padding: 2px 8px;
  font-family: var(--site-mono);
  font-size: 10px;
  font-weight: 500;
  color: #475569;
}

.demo-login-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

.demo-login-body h4 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.login-label {
  font-size: 10.5px;
  font-weight: 600;
  color: #475569;
}

.login-input {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 9px;
  font-size: 11.5px;
  color: #0f172a;
}

.login-pass-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.login-pass-value {
  position: relative;
  display: inline-block;
  font-family: var(--site-mono);
  font-size: 11px;
  padding: 1px 4px;
}

.login-secret-blur {
  position: absolute;
  inset: -3px -6px;
  border-radius: 4px;
  background-image: linear-gradient(45deg, rgba(100, 116, 139, 0.94) 25%, rgba(148, 163, 184, 0.94) 25%, rgba(148, 163, 184, 0.94) 50%, rgba(100, 116, 139, 0.94) 50%, rgba(100, 116, 139, 0.94) 75%, rgba(71, 85, 105, 0.94) 75%);
  background-size: 9px 9px;
  backdrop-filter: blur(6px);
}

.login-blur-tag {
  font-family: var(--site-mono);
  font-size: 9.5px;
  font-weight: 600;
  color: #64748b;
  background: #e2e8f0;
  padding: 1px 5px;
  border-radius: 4px;
}

.login-error-alert {
  position: relative;
  background: #fef2f2;
  border: 2px solid #ff453a;
  border-radius: 7px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #b91c1c;
  line-height: 1.35;
}

.login-error-badge {
  position: absolute;
  top: -10px;
  left: -9px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ff453a;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.login-callout-chip {
  position: absolute;
  top: -10px;
  right: 8px;
  background: #ff453a;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  border: 1.5px solid #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
}

.login-submit-btn {
  margin-top: auto;
  background: #0f172a;
  color: #ffffff;
  text-align: center;
  font-size: 11.5px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 6px;
}

/* Right Floating Panels */
.stage-right-drawer {
  flex-shrink: 0;
  width: 225px;
  max-height: 100%;
  overflow-y: auto;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 24;
}

.stage-right-drawer .ocr-panel,
.stage-right-drawer .layers-panel,
.stage-right-drawer .phone-share-panel {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  bottom: auto !important;
  width: 100% !important;
  margin: 0 !important;
  transform: none !important;
}

.stage-right-drawer .phone-share-panel {
  padding: 11px 12px !important;
  gap: 7px !important;
}

.stage-right-drawer .phone-share-panel strong {
  font-size: 12.5px;
}

.stage-right-drawer .phone-share-qr {
  padding: 6px !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  display: grid;
  place-items: center;
}

.stage-right-drawer .phone-share-qr svg {
  width: 116px !important;
  height: 116px !important;
  display: block;
}
  bottom: auto !important;
  width: 100% !important;
  margin: 0 !important;
  transform: none !important;
}

.stage-right-drawer .hidden {
  display: none !important;
}

/* ---- 4. Right Editorial Chapter Rail (Sober Hairline Style, No AI Neon) ---- */
.story-rail {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 1px solid var(--site-border);
  padding-left: 16px;
  font-family: var(--site-font) !important;
}

.chapter-card {
  position: relative;
  background: transparent;
  border: none;
  border-left: 2px solid transparent;
  margin-left: -17px;
  padding: 10px 12px 10px 16px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.chapter-card:hover {
  background: var(--site-surface-hover);
}

.chapter-card.active {
  border-left-color: var(--site-heading);
  background: var(--site-surface-hover);
}

.chapter-step-num {
  font-family: var(--site-mono);
  font-size: 11px;
  color: var(--site-muted);
  display: block;
  margin-bottom: 2px;
}

.chapter-card.active .chapter-step-num {
  color: var(--site-heading);
}

.chapter-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--site-muted);
  margin-bottom: 3px;
}

.chapter-card.active h3 {
  color: var(--site-heading);
}

.chapter-card p {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--site-subtle);
  margin: 0;
}

.chapter-card.active p {
  color: var(--site-muted);
}

/* ---- 5. Bottom Sections (Shortcuts, Download, Footer) ---- */
.bottom-sections {
  max-width: 1380px;
  margin: 24px auto 0 auto;
  padding: 40px 24px 80px 24px;
  display: flex;
  flex-direction: column;
  gap: 64px;
  font-family: var(--site-font) !important;
}

.section-head {
  max-width: 620px;
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--site-heading);
  margin-bottom: 8px;
}

.section-head p {
  color: var(--site-muted);
  font-size: 15px;
}

.shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.shortcut-tile {
  background: var(--site-panel);
  border: 1px solid var(--site-border);
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.shortcut-tile strong {
  display: block;
  color: var(--site-heading);
  font-size: 14px;
  margin-bottom: 2px;
}

.shortcut-tile span {
  font-size: 13px;
  color: var(--site-muted);
}

.kbd-badge {
  font-family: var(--site-mono);
  font-size: 12px;
  color: var(--site-text);
  background: var(--site-kbd-bg);
  border: 1px solid var(--site-border);
  border-radius: 6px;
  padding: 4px 9px;
  white-space: nowrap;
}

.download-card {
  background: var(--site-panel);
  border: 1px solid var(--site-border);
  border-radius: 14px;
  padding: 40px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.download-card h2 {
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 700;
  color: var(--site-heading);
  margin-bottom: 6px;
}

.download-card p {
  max-width: 560px;
  color: var(--site-muted);
  font-size: 14.5px;
}

.site-footer {
  max-width: 1380px;
  margin: 0 auto;
  padding: 20px 24px 36px 24px;
  border-top: 1px solid var(--site-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--site-muted);
  font-family: var(--site-font) !important;
}

@media (max-width: 1080px) {
  .tour-pin-container {
    height: auto;
    min-height: 0;
    max-height: none;
    grid-template-columns: 1fr;
  }
  .glimpse-desktop-stage {
    min-height: 580px;
  }
  .glimpse-desktop-stage .editor-view .workspace-row {
    padding-left: 0;
  }
  .win10-desktop-icons,
  .stage-right-drawer {
    display: none;
  }
  .shortcuts-grid {
    grid-template-columns: 1fr;
  }
  .site-nav-links {
    display: none;
  }
}
