@charset "UTF-8";

:root {
  font-family: "Segoe UI Variable Text", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #20232a;
  background: #fff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --ink: #20232a;
  --muted: #686d76;
  --blue: #3468dc;
  --line: #e8e9ed;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* WinSpot 真实设计系统变量 (from src/styles.css) */
  --mac-font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --surface-alpha: 0.82;
  --glass-blur: 24px;
  --glass-diffusion: 0.4;
  --glass-veil-alpha: 0.16;
  --glass-grain-alpha: 0.035;
  --glass-specular-spread: 26px;
  --glass-saturate: 180%;
  --glass-contrast: 104%;
  --glass-start-rgb: 255, 255, 255;
  --glass-end-rgb: 240, 243, 248;
  --glass-grain-url: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.90' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='1'/%3E%3C/svg%3E");
  --mac-card: #ffffff;
  --mac-card-border: rgba(0, 0, 0, 0.07);
  --mac-card-divider: rgba(0, 0, 0, 0.07);
  --mac-sidebar: rgba(238, 239, 242, 0.88);
  --mac-text: #1d1d1f;
  --mac-text-secondary: #6e6e73;
  --mac-text-tertiary: #86868b;
  --mac-accent: #007aff;
  --mac-accent-hover: #0066d6;
  --mac-accent-soft: rgba(0, 122, 255, 0.12);
  --mac-hover: rgba(0, 0, 0, 0.045);
  --mac-active: rgba(0, 0, 0, 0.08);
  --mac-selected: rgba(0, 122, 255, 0.12);
  --mac-danger: #ff3b30;
  --mac-success: #34c759;
  --mac-warning: #ff9500;
  --mac-shadow-card: 0 1px 3px rgba(0, 0, 0, 0.03), 0 2px 8px rgba(0, 0, 0, 0.02);
  --mac-shadow-tile: 0 4px 14px rgba(0, 0, 0, 0.09);
  --mac-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; letter-spacing: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; min-width: 280px; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button { border: 0; }
img { display: block; max-width: 100%; }
button, input, a, summary { touch-action: manipulation; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #3468dc; outline-offset: 5px; }
input[type="search"]::-webkit-search-cancel-button { display: none; }
input[type="search"]::-webkit-search-decoration { display: none; }
input[type="search"] {
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
input[type="search"]:focus,
input[type="search"]:focus-visible {
  outline: none;
  outline-offset: 0;
  box-shadow: none;
}
input::selection, ::selection { background: #d6e1fa; color: #182744; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h2, h3 { text-wrap: balance; }
p { line-height: 1.75; text-wrap: pretty; }
[data-icon] { display: inline-flex; width: 20px; height: 20px; flex: 0 0 auto; align-items: center; justify-content: center; }
[data-icon] svg { width: 100%; height: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 12px 18px; background: #fff; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.content-shell, .nav-shell { width: min(1120px, calc(100% - 96px)); margin: 0 auto; }
.section-space { padding: 110px 0; }
.section-kicker { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
h2 { font-size: 48px; line-height: 1.3; font-weight: 600; }
h3 { font-size: 34px; line-height: 1.35; font-weight: 600; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgb(255 255 255 / 92%); border-bottom: 1px solid rgb(30 35 40 / 5%); backdrop-filter: blur(16px); }
.nav-shell { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand span { font-weight: 650; font-size: 22px; }
.brand img { object-fit: contain; }
.desktop-nav { display: flex; gap: 30px; }
.desktop-nav a { font-size: 14px; color: #62656c; transition: color 160ms; padding: 10px 0; }
.desktop-nav a:hover { color: #1a1e25; }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.github-link { display: grid; width: 32px; height: 36px; place-items: center; transition: opacity 160ms; }
.github-link:hover { opacity: 0.6; }
.github-link [data-icon] { width: 21px; height: 21px; }
.button { min-height: 46px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: 6px; font-size: 14px; font-weight: 550; white-space: nowrap; transition: background 180ms, box-shadow 180ms, transform 100ms; }
.button:hover { box-shadow: 0 3px 7px rgb(20 25 32 / 10%); }
.button:active { transform: translateY(1px) scale(0.98); }
.button-dark { background: #22262d; color: #fff; }
.button-dark:hover { background: #3b414c; }
.button-small { min-height: 36px; padding: 0 14px; font-size: 13px; gap: 9px; }
.button-small [data-icon] { width: 16px; height: 16px; }
.text-link { display: inline-flex; align-items: center; justify-content: flex-start; gap: 8px; font-size: 14px; font-weight: 500; background: none; padding: 6px 0; transition: color 180ms; }
.text-link:hover { color: var(--blue); }
.text-link [data-icon] { width: 16px; height: 16px; transition: transform 180ms var(--ease); }
.text-link:hover [data-icon] { transform: translate(2px, -1px); }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 7px; background: transparent; border-radius: 6px; transition: background 180ms, transform 100ms; }
.icon-button:hover { background: rgb(110 115 125 / 12%); }
.icon-button:active { transform: scale(0.95); }
.icon-button [data-icon] { width: 19px; height: 19px; }
.menu-toggle { display: none; }
.mobile-nav { border-top: 1px solid var(--line); padding: 12px 24px 18px; }
.mobile-nav a { padding: 14px 8px; font-size: 15px; }

.hero { position: relative; isolation: isolate; background: #e2e9f2; }
.hero-wallpaper { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 50%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(247 249 252 / 18%); }
.hero-content { width: min(1100px, calc(100% - 80px)); margin: auto; padding: 34px 0 26px; }
.hero-copy { text-align: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #435369; }
.windows-mark { display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); width: 14px; height: 14px; gap: 2px; flex-shrink: 0; }
.windows-mark i { background: currentColor; }
.hero h1 { font-family: "Segoe UI Variable Display", "Segoe UI", Arial, sans-serif; font-size: 86px; font-weight: 700; line-height: 1.12; margin: 5px 0 6px; color: #222831; }
.brand-period { color: #bd596c; }
.hero-tagline { font-size: 28px; font-weight: 500; line-height: 1.4; color: #26313f; }
.hero-description { font-size: 15px; color: #4b596a; margin-top: 12px; }
.mobile-break { display: none; }
.hero-actions { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 21px; }
.hero-actions .button { min-height: 42px; }
.hero-actions .text-link { color: #3c4a5c; font-size: 13px; }
.product-scene { width: min(760px, 100%); margin: 28px auto 0; }

/* WinSpot 原生毛玻璃背板与合成材质 (from src/styles.css) */
.native-surface {
  --glass-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  --glass-tint: linear-gradient(
    145deg,
    rgba(var(--glass-start-rgb), var(--surface-alpha)) 0%,
    rgba(var(--glass-end-rgb), var(--surface-alpha)) 100%
  );
  position: relative;
  isolation: isolate;
  background: var(--glass-tint);
  border: 1px solid rgba(255, 255, 255, calc(0.28 + var(--surface-alpha) * 0.40 - var(--glass-diffusion, 0.4) * 0.10));
  box-shadow:
    inset 0 1px 1.5px 0 rgba(255, 255, 255, calc(0.65 + (1 - var(--glass-diffusion, 0.4)) * 0.25)),
    inset 0 0 0 1px rgba(255, 255, 255, calc(0.15 + var(--surface-alpha) * 0.18)),
    0 18px 48px rgba(10, 20, 36, 0.16),
    0 4px 14px rgba(10, 20, 36, 0.06);
  backdrop-filter: var(--glass-filter);
  -webkit-backdrop-filter: var(--glass-filter);
}

[data-demo-theme="dark"] .native-surface {
  border: 1px solid rgba(255, 255, 255, calc(0.10 + var(--surface-alpha) * 0.08));
  box-shadow:
    inset 0 1px 1.5px 0 rgba(255, 255, 255, calc(0.22 + (1 - var(--glass-diffusion, 0.4)) * 0.14)),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 22px 56px rgba(0, 0, 0, 0.45),
    0 6px 18px rgba(0, 0, 0, 0.25);
}

/* 舞台容器与单窗口原地极致变形卡片 */
.launcher-stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  box-sizing: border-box;
}

.spotlight-bar-shell {
  width: 100%;
  display: flex;
  align-items: flex-start;
  position: relative;
}

.winspot-morph-card {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
  background-clip: padding-box;
  color: var(--mac-text);
  transition: height 320ms var(--mac-ease),
              border-radius 260ms var(--mac-ease);
  will-change: height, border-radius;
}

.winspot-morph-card::before,
.scope-standalone-circle::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    130% var(--glass-specular-spread, 28px) at 50% 0%,
    rgba(255, 255, 255, calc(0.40 + var(--glass-diffusion, 0.4) * 0.35)) 0%,
    rgba(255, 255, 255, calc(0.12 + var(--glass-veil-alpha, 0.16) * 0.35)) 35%,
    rgba(240, 244, 255, calc(var(--glass-veil-alpha, 0.16) * 0.20)) 70%,
    transparent 100%
  );
  opacity: calc(var(--surface-alpha) * 0.95);
  z-index: 0;
  transition: opacity 160ms ease;
}

[data-demo-theme="dark"] .winspot-morph-card::before,
[data-demo-theme="dark"] .scope-standalone-circle::before {
  background: radial-gradient(
    130% var(--glass-specular-spread, 28px) at 50% 0%,
    rgba(255, 255, 255, calc(0.18 + var(--glass-diffusion, 0.4) * 0.14)) 0%,
    rgba(255, 255, 255, calc(0.04 + var(--glass-veil-alpha, 0.16) * 0.10)) 35%,
    rgba(0, 0, 0, calc(var(--glass-diffusion, 0.4) * 0.25)) 80%,
    transparent 100%
  );
  opacity: 0.95;
}

.winspot-morph-card::after,
.scope-standalone-circle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image: var(--glass-grain-url);
  background-size: 120px 120px;
  background-repeat: repeat;
  opacity: var(--glass-grain-alpha, 0.032);
  mix-blend-mode: overlay;
  z-index: 0;
  transition: opacity 160ms ease;
}

[data-demo-theme="dark"] .winspot-morph-card::after,
[data-demo-theme="dark"] .scope-standalone-circle::after {
  opacity: calc(var(--glass-grain-alpha, 0.032) * 0.9);
  mix-blend-mode: soft-light;
}

.winspot-morph-card.is-capsule {
  height: 60px;
  border-radius: 30px;
}

.winspot-morph-card.is-search-expanded {
  height: 480px;
  border-radius: 20px;
}

.winspot-morph-card.is-library {
  height: 560px;
  border-radius: 26px;
}

.morph-card-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

/* 胶囊右侧两个独立圆形毛玻璃按钮 */
.spotlight-standalone-scopes {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 0;
  max-width: 0;
  opacity: 0;
  margin-left: 0;
  margin-top: 3px;
  pointer-events: none;
  overflow: hidden;
  transform: translateX(18px) scale(0.86);
  transition: width 320ms var(--mac-ease),
              max-width 320ms var(--mac-ease),
              margin-left 320ms var(--mac-ease),
              opacity 220ms var(--mac-ease),
              transform 320ms var(--mac-ease);
  flex-shrink: 0;
}

[data-mode="library"] .spotlight-standalone-scopes,
.winspot-morph-card.is-library ~ .spotlight-standalone-scopes,
.winspot-morph-card.is-search-expanded ~ .spotlight-standalone-scopes {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
  width: 0 !important;
  max-width: 0 !important;
  margin-left: 0 !important;
  opacity: 0 !important;
}

[data-mode="search"] .winspot-morph-card.is-capsule ~ .spotlight-standalone-scopes.is-expanded,
[data-mode="search"] .winspot-morph-card.is-capsule ~ .spotlight-standalone-scopes:hover {
  width: 118px;
  max-width: 118px;
  opacity: 1;
  margin-left: 10px;
  pointer-events: auto;
  overflow: visible;
  transform: translateX(0) scale(1);
}

.scope-standalone-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--mac-text);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 0;
  transition: transform 180ms var(--mac-ease),
              background 160ms var(--mac-ease),
              color 140ms var(--mac-ease);
}

.scope-standalone-circle [data-icon] {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
}

.scope-standalone-circle:hover {
  transform: translateY(-1.5px) scale(1.05);
  color: var(--mac-text);
  background: var(--mac-active);
}

.scope-standalone-circle:active {
  transform: translateY(0.5px) scale(0.95);
}

/* 聚焦搜索胶囊头部与展开头部 */
.spotlight-capsule-header,
.spotlight-card-header {
  height: 60px;
  min-height: 60px;
  display: flex;
  align-items: center;
  padding: 0 18px 0 20px;
  gap: 14px;
  position: relative;
  z-index: 40;
  box-sizing: border-box;
}

.spotlight-card-header {
  border-bottom: 1px solid var(--mac-card-divider);
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.55);
}

[data-demo-theme="dark"] .spotlight-card-header {
  box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.25);
}

.spotlight-capsule-icon {
  color: var(--mac-accent);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.spotlight-capsule-icon [data-icon] {
  width: 22px;
  height: 22px;
}

.spotlight-capsule-input {
  flex: 1;
  min-width: 0;
  font-size: 20px;
  font-weight: 400;
  color: var(--mac-text);
  line-height: 1.3;
  border: 0;
  background: transparent;
  outline: none;
  caret-color: var(--mac-accent);
  -webkit-appearance: none;
  appearance: none;
}

.spotlight-capsule-input:focus,
.spotlight-capsule-input:focus-visible {
  outline: none !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
  border: 0 !important;
}

.spotlight-capsule-input::placeholder {
  color: var(--mac-text-tertiary);
  font-weight: 350;
}

.spotlight-header-scopes {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.scope-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: var(--mac-text-secondary);
  background: var(--mac-hover);
  border: 1px solid var(--mac-card-border);
  cursor: pointer;
  transition: background 140ms var(--mac-ease), color 140ms var(--mac-ease), transform 140ms var(--mac-ease);
}

.scope-circle [data-icon] {
  width: 17px;
  height: 17px;
}

.scope-circle:hover,
.scope-circle.active {
  color: var(--mac-text);
  background: var(--mac-active);
  transform: translateY(-1px);
}

.capsule-clear-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--mac-text-secondary);
  background: var(--mac-hover);
  cursor: pointer;
  border: 0;
  transition: all 140ms var(--mac-ease);
  flex-shrink: 0;
}

.capsule-clear-btn [data-icon] {
  width: 14px;
  height: 14px;
}

.capsule-clear-btn:hover {
  background: var(--mac-active);
  color: var(--mac-text);
}

.spotlight-capsule-hover-trigger {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 180px;
  z-index: 2;
  pointer-events: auto;
  cursor: text;
}

/* 程序库头部 (Library Header) */
.library-header {
  height: 60px;
  min-height: 60px;
  padding: 0 20px;
  border-bottom: 1px solid var(--mac-card-divider);
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
  position: relative;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

[data-demo-theme="dark"] .library-header {
  box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.25);
}

.library-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: text;
}

.library-back-button {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: inline-grid;
  place-items: center;
  position: relative;
  flex-shrink: 0;
  color: var(--mac-text);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background 120ms;
}

.library-back-button:hover {
  background: var(--mac-hover);
}

.library-back-default,
.library-back-hover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.library-back-default [data-icon],
.library-back-hover [data-icon] {
  width: 20px;
  height: 20px;
}

.library-back-hover {
  display: none;
}

.library-back-button:hover .library-back-default {
  display: none;
}

.library-back-button:hover .library-back-hover {
  display: inline-flex;
}

.library-search-area {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  position: relative;
  cursor: text;
}

.library-search-input {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--mac-text);
  letter-spacing: -0.01em;
  line-height: 1.3;
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
  margin: 0;
  width: 140px;
  caret-color: var(--mac-accent);
  flex-shrink: 0;
  transition: width 60ms ease;
  -webkit-appearance: none;
  appearance: none;
}

.library-search-input:focus,
.library-search-input:focus-visible {
  outline: none !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
  border: none !important;
}

.library-search-area .library-search-input {
  field-sizing: content;
  min-width: 0;
}

.library-search-input::placeholder {
  color: var(--mac-text);
  opacity: 0.92;
  font-size: 16px;
  font-weight: 600;
}

/* 预测灰框：仅包裹匹配补全内容，用户输入的字符在灰框左侧 */
.library-match-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.16);
  border-radius: 5px;
  padding: 1px 7px;
  font-size: 14px;
  font-weight: 500;
  color: var(--mac-text);
  opacity: 0.9;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  line-height: 1.3;
  letter-spacing: -0.01em;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 1;
}

[data-demo-theme="dark"] .library-match-pill {
  background: rgba(255, 255, 255, 0.18);
  color: #f5f5f7;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.library-search-measure {
  position: absolute;
  visibility: hidden;
  height: 0;
  overflow: hidden;
  white-space: pre;
  pointer-events: none;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-family: inherit;
  top: 0;
  left: 0;
}

.library-header-right {
  position: relative;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
}

.library-matched-app-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  cursor: pointer;
}

.library-more-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: var(--mac-text);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background 140ms;
}

.library-more-btn:hover {
  background: var(--mac-hover);
}

.library-more-btn [data-icon] {
  width: 18px;
  height: 18px;
}

/* 程序库内容视图与 8 个分类胶囊 */
.library-content-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.library-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 10px 20px 4px;
  flex-shrink: 0;
  box-sizing: border-box;
  overflow-x: auto;
  scrollbar-width: none;
}

.library-tabs-bar::-webkit-scrollbar {
  display: none;
}

.library-tab-pill {
  flex: 1;
  min-width: 0;
  height: 27px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--mac-text-secondary);
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 0 8px;
  white-space: nowrap;
  transition: all 150ms var(--mac-ease);
}

[data-demo-theme="dark"] .library-tab-pill {
  color: #d1d1d6;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.library-tab-pill:hover {
  background: rgba(0, 0, 0, 0.09);
  color: var(--mac-text);
}

[data-demo-theme="dark"] .library-tab-pill:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.library-tab-pill.active {
  background: rgba(255, 255, 255, 0.92);
  color: #111113;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.9);
}

[data-demo-theme="dark"] .library-tab-pill.active {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.22);
}

/* 滚动区域：推荐应用行 + 分隔线 + 主网格 */
.library-scroll-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 16px 20px 20px;
  box-sizing: border-box;
  scrollbar-width: thin;
}

.library-recommended-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 6px;
  gap: 4px;
}

.library-divider {
  height: 1px;
  margin: 4px 6px 14px;
  background: var(--mac-card-divider);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

[data-demo-theme="dark"] .library-divider {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
}

.library-main-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 12px;
  column-gap: 4px;
  width: 100%;
  box-sizing: border-box;
}

.app-cell {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.app-tile {
  width: 100%;
  max-width: 96px;
  height: 98px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 4px 4px;
  gap: 6px;
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: transform 160ms var(--mac-ease);
}

.app-tile:active {
  transform: scale(0.96);
}

.tile-icon {
  display: flex;
  position: relative;
  height: 56px;
  width: 56px;
  flex-shrink: 0;
  transition: transform 160ms var(--mac-ease);
}

.app-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 13px;
}

.app-icon-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.12));
  border-radius: 13px;
}

.app-tile:hover .tile-icon {
  transform: translateY(-2px);
}

/* 强调色纯线段仅包裹在应用图标外围，不包裹网格或名称 */
.app-tile.selected .tile-icon::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 15px;
  border: 2px solid var(--mac-accent);
  pointer-events: none;
  box-sizing: border-box;
}

.app-tile.selected .app-name {
  font-weight: 600;
  color: var(--mac-text);
}

.app-name {
  font-size: 12px;
  line-height: 1.4;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 100%;
  color: var(--mac-text);
}

.pin-badge {
  position: absolute;
  bottom: -2px;
  right: -3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--mac-accent);
  background: var(--mac-card);
  border: 1px solid var(--mac-card-border);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.pin-badge [data-icon] {
  width: 9px;
  height: 9px;
}

/* 深色模式 Steam 亮度翻转处理 */
[data-demo-theme="dark"] .app-tile[data-app="steam"] img,
[data-demo-theme="dark"] .spotlight-item-row[data-app="steam"] img,
[data-demo-theme="dark"] #inspector-icon-img[src*="steam"] {
  filter: brightness(0) invert(1);
}

/* 聚焦搜索展开状态 (Spotlight Expanded Split-View) */
.spotlight-card-body {
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.spotlight-results-pane {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--mac-card-divider);
  padding: 8px 10px;
}

.spotlight-results-header {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--mac-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.spotlight-list-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
}

.spotlight-item-row {
  height: 48px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border-radius: 10px;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background 120ms;
}

.spotlight-item-row:hover {
  background: var(--mac-hover);
}

.spotlight-item-row.selected {
  background: var(--mac-accent);
  color: #fff;
}

.spotlight-item-row.selected .spotlight-item-category {
  color: rgba(255, 255, 255, 0.8);
}

.file-result-visual {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 6px;
}

.file-result-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.spotlight-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.spotlight-item-name {
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotlight-item-category {
  font-size: 11px;
  color: var(--mac-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotlight-item-enter {
  font-size: 11px;
  opacity: 0.8;
  display: none;
}

.spotlight-item-row.selected .spotlight-item-enter {
  display: inline-block;
}

/* 搜索结果右侧详情预览栏 (Inspector Pane) */
.spotlight-inspector-pane {
  width: clamp(200px, 36%, 270px);
  min-width: 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.25);
}

[data-demo-theme="dark"] .spotlight-inspector-pane {
  background: rgba(0, 0, 0, 0.18);
}

.inspector-icon {
  margin-bottom: 12px;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.16));
}

.inspector-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.inspector-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
  color: var(--mac-text);
}

.inspector-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--mac-text-secondary);
  background: var(--mac-hover);
  padding: 3px 9px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.inspector-path {
  font-size: 10.5px;
  color: var(--mac-text-tertiary);
  word-break: break-all;
  max-height: 48px;
  overflow: hidden;
  line-height: 1.4;
  margin-bottom: 16px;
  padding: 5px 8px;
  background: var(--mac-card-divider);
  border-radius: 6px;
  user-select: text;
  width: 100%;
  text-align: left;
}

.inspector-actions {
  margin-top: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.launcher-button {
  min-height: 32px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  transition: background 120ms ease, transform 120ms ease;
}

.launcher-button [data-icon] {
  width: 13px;
  height: 13px;
}

.launcher-button:active {
  transform: scale(0.98);
}

.launcher-button.primary {
  color: #fff;
  background: var(--mac-accent);
}

.launcher-button.primary:hover {
  background: var(--mac-accent-hover);
}

.launcher-button.secondary {
  color: var(--mac-text);
  background: var(--mac-hover);
  border: 1px solid var(--mac-card-border);
}

.launcher-button.secondary:hover {
  background: var(--mac-active);
}

/* 聚焦搜索卡片底部快捷键提示 (Footer) */
.spotlight-card-footer {
  height: 38px;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  font-size: 11px;
  color: var(--mac-text-tertiary);
  border-top: 1px solid var(--mac-card-divider);
}

.spotlight-footer-left {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.spotlight-footer-left .brand-mark {
  width: 16px;
  height: 16px;
}

.kbd-hints {
  display: flex;
  align-items: center;
  gap: 10px;
}

.kbd-hints kbd {
  font-family: inherit;
  font-size: 10px;
  background: var(--mac-hover);
  border: 1px solid var(--mac-card-border);
  padding: 2px 5px;
  border-radius: 4px;
  margin-right: 2px;
}

.hint-tab-library {
  cursor: pointer;
  transition: color 140ms ease;
  user-select: none;
}

.hint-tab-library:hover {
  color: var(--mac-accent);
}

.demo-empty {
  min-height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  color: var(--mac-text-secondary);
  font-size: 14px;
}

.demo-empty [data-icon] {
  width: 28px;
  height: 28px;
}

.demo-empty .text-link {
  color: var(--mac-accent);
}

.scene-controls { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; gap: 12px; }
.view-switch { display: grid; grid-template-columns: 1fr 1fr; position: relative; padding: 3px; background: rgb(238 244 253 / 82%); border: 1px solid rgb(255 255 255 / 60%); border-radius: 7px; backdrop-filter: blur(12px); width: 226px; }
.view-switch button { position: relative; z-index: 1; display: flex; justify-content: center; align-items: center; gap: 7px; height: 30px; font-size: 12px; color: #647082; background: none; }
.view-switch button [data-icon] { width: 14px; height: 14px; }
.view-switch button.is-active { color: #303a49; }
.view-indicator { position: absolute; left: 3px; top: 3px; bottom: 3px; width: calc((100% - 6px) / 2); border-radius: 4px; background: #fff; box-shadow: 0 1px 3px rgb(36 46 60 / 8%); transition: transform 320ms var(--ease); }
.view-switch[data-active="search"] .view-indicator { transform: translateX(100%); }
.scene-caption { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; color: #fff; text-shadow: 0 1px 3px rgb(25 40 65 / 55%); }
.tiny-dot { width: 5px; height: 5px; background: currentColor; border-radius: 50%; display: inline-block; flex-shrink: 0; }


.principles-band { border-bottom: 1px solid var(--line); background: #fafbfc; }
.principles { display: flex; align-items: center; justify-content: space-around; min-height: 86px; gap: 24px; }
.principles > span { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: #646b75; }
.principles [data-icon] { width: 17px; height: 17px; color: #7b8490; }
.section-intro { text-align: center; margin-bottom: 75px; }
.section-intro h2 { font-size: 50px; }
.search-feature { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 84px; align-items: center; }
.chapter-number { display: block; font-family: "Segoe UI", sans-serif; font-size: 12px; color: #9097a4; font-variant-numeric: tabular-nums; margin-bottom: 17px; }
.feature-copy > p { font-size: 15px; color: var(--muted); margin-top: 21px; line-height: 1.9; }
.search-language-switch { display: flex; width: max-content; border-bottom: 1px solid #d9dce3; margin-top: 27px; }
.search-language-switch button { position: relative; min-height: 38px; min-width: 66px; background: none; font-size: 13px; color: #868b94; padding: 6px 14px; transition: color 160ms; }
.search-language-switch button:first-child { padding-left: 0; min-width: 52px; }
.search-language-switch button.is-active { color: #2c5db9; }
.search-language-switch button::after { content: ""; position: absolute; bottom: -1px; height: 2px; left: 8px; right: 8px; background: var(--blue); transform: scaleX(0); transition: transform 250ms var(--ease); }
.search-language-switch button:first-child::after { left: 0; }
.search-language-switch button.is-active::after { transform: scaleX(1); }
.feature-copy p.feature-footnote { font-size: 13px; margin-top: 16px; color: #9297a1; }
.spotlight-demo { border: 1px solid #e2e6ee; border-radius: 8px; background: #fff; box-shadow: 0 2px 5px rgb(27 45 80 / 3%), 0 20px 60px rgb(27 45 80 / 7%); min-width: 0; }
.spotlight-input { display: flex; gap: 13px; align-items: center; min-height: 73px; padding: 14px 23px; border-bottom: 1px solid #edf0f4; }
.spotlight-input > [data-icon] { color: #858e9e; }
.spotlight-input input {
  width: 100%;
  min-width: 0;
  height: 40px;
  border: 0;
  background: none;
  color: #303743;
  font-size: 22px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.spotlight-input input:focus,
.spotlight-input input:focus-visible {
  outline: none !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
  border: 0 !important;
}
.spotlight-match { flex-shrink: 0; border-left: 1px solid #d8dde7; padding-left: 17px; color: #8e97a6; font-size: 14px; }
.spotlight-results { min-height: 150px; padding: 10px; }
.result-row { width: 100%; display: flex; align-items: center; gap: 14px; background: none; border-radius: 5px; padding: 13px; text-align: left; min-height: 66px; transition: background 160ms; }
.result-row:hover { background: #f6f7fa; }
.result-row.is-selected { background: #edf2fc; }
.result-row img { width: 33px; height: 33px; object-fit: contain; }
.result-copy { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.result-copy strong { font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.result-copy > span { font-size: 12px; color: #8b93a2; }
.result-row > [data-icon] { width: 15px; height: 15px; color: #929aab; }
.spotlight-footer { display: flex; justify-content: space-between; gap: 16px; padding: 13px 24px; border-top: 1px solid #edf0f4; color: #9097a3; font-size: 11px; }
.spotlight-footer > span:first-child { display: flex; align-items: center; gap: 7px; }
.spotlight-empty { min-height: 150px; display: grid; place-items: center; color: var(--muted); font-size: 14px; padding: 20px; }
.library-feature { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 84px; align-items: center; padding-top: 125px; }
.collection-visual { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 0 12px; }
.collection-column { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 20px 0 24px; border-top: 1px solid #e3e6eb; }
.collection-column:nth-child(2) { margin-top: 35px; }
.collection-column:nth-child(3) { margin-top: 70px; }
.collection-heading { font-size: 12px; color: #8a909b; }
.collection-column img { width: 51px; height: 51px; object-fit: contain; filter: drop-shadow(0 5px 4px rgb(0 0 0 / 5%)); }
.library-details { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 24px; color: #8c929d; font-size: 12px; }
.library-details span + span { border-left: 1px solid #dce0e6; padding-left: 18px; }
.keyboard-feature { margin-top: 100px; padding-top: 55px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1.45fr 0.8fr; gap: 35px; align-items: center; }
.keyboard-feature h3 { font-size: 24px; }
.keyboard-feature .chapter-number { margin-bottom: 12px; }
.keyboard-visual { display: flex; align-items: center; justify-content: center; gap: 25px; padding-top: 12px; }
.key-group { display: flex; align-items: center; flex-direction: column; gap: 17px; }
.key-group > span:last-child { font-size: 11px; color: #8a9099; }
.shortcut-keys { display: flex; align-items: center; gap: 11px; }
.physical-key { display: inline-flex; justify-content: center; align-items: center; width: 62px; height: 57px; font-family: "Segoe UI", sans-serif; font-size: 17px; border: 1px solid #d5d9e0; border-bottom: 4px solid #c6cbd4; border-radius: 7px; color: #555d6c; background: #fcfcfd; box-shadow: 0 3px 4px rgb(40 50 70 / 6%), inset 0 0 0 3px #fff; }
.win-key .windows-mark { width: 21px; height: 21px; gap: 3px; }
.space-key { width: 106px; }
.key-plus { font-size: 14px; color: #a7adb6; }
.keyboard-divider { height: 38px; width: 1px; background: #e2e5ea; margin-bottom: 28px; }
.keyboard-note { font-size: 12px; line-height: 1.9; color: #858c97; justify-self: end; }

.appearance-section { background: #202328; color: #fff; padding-bottom: 54px; }
.appearance-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 43px; }
.appearance-heading .section-kicker { color: #a4abb6; }
.appearance-heading h2 { font-size: 38px; }
.appearance-heading > p { color: #b1b7c0; font-size: 14px; }
.appearance-stage { position: relative; isolation: isolate; min-height: 365px; display: flex; align-items: center; justify-content: center; background: #b0bfd0; overflow: hidden; }
.appearance-wallpaper { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.material-demo {
  position: relative;
  isolation: isolate;
  width: min(560px, calc(100% - 48px));
  border-radius: 22px;
  color: var(--mac-text);
  box-shadow: 0 2px 4px rgb(10 18 29 / 12%), 0 20px 50px rgb(10 18 29 / 23%);
  transition: background 260ms, color 260ms, border-color 260ms;
}
.material-demo::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    130% 28px at 50% 0%,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0.15) 35%,
    transparent 100%
  );
  opacity: 0.9;
  z-index: 0;
}
[data-demo-theme="dark"] .material-demo::before,
.material-demo[data-demo-theme="dark"]::before {
  background: radial-gradient(
    130% 28px at 50% 0%,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.05) 35%,
    rgba(0, 0, 0, 0.2) 80%,
    transparent 100%
  );
}
.material-demo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image: var(--glass-grain-url);
  background-size: 120px 120px;
  background-repeat: repeat;
  opacity: 0.035;
  mix-blend-mode: overlay;
  z-index: 0;
}
[data-demo-theme="dark"] .material-demo::after,
.material-demo[data-demo-theme="dark"]::after {
  opacity: 0.03;
  mix-blend-mode: soft-light;
}
.material-search {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 66px;
  padding: 0 22px;
  border-bottom: 1px solid var(--mac-card-divider);
}
.material-search > span:first-of-type {
  font-size: 16px;
  flex: 1;
  min-width: 0;
  color: var(--mac-text-secondary);
}
.material-search > [data-icon] {
  width: 18px;
  height: 18px;
  color: var(--mac-text-secondary);
}
.material-apps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 24px 24px 27px;
  gap: 12px;
}
.material-apps > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 12px;
  white-space: nowrap;
  color: var(--mac-text);
}
.material-apps img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.12));
}
.appearance-controls { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 79px; border-bottom: 1px solid rgb(255 255 255 / 10%); }
.theme-switch { display: flex; gap: 4px; padding: 3px; background: #30343b; border-radius: 6px; }
.theme-switch button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; min-width: 78px; background: none; color: #a9b0bc; font-size: 12px; border-radius: 3px; padding: 5px 12px; transition: background 180ms, color 180ms; }
.theme-switch button [data-icon] { width: 14px; height: 14px; }
.theme-switch button.is-active { background: #4c535f; color: #fff; }
.opacity-control { display: flex; align-items: center; gap: 17px; }
.opacity-control label, .opacity-control output { font-size: 12px; color: #b2bac8; }
.opacity-control output { min-width: 35px; font-variant-numeric: tabular-nums; }
.opacity-control input { width: 160px; height: 20px; accent-color: #d9e2f5; cursor: pointer; }
.wallpaper-options { display: flex; gap: 11px; }
.wallpaper-swatch { width: 30px; height: 30px; padding: 0; border-radius: 4px; border: 2px solid transparent; background-size: cover; background-position: center; transition: outline-color 180ms; }
.wallpaper-swatch[data-wallpaper="mountains"] { background-image: url("./assets/mountains.jpg"); }
.wallpaper-swatch[data-wallpaper="alpine"] { background-image: url("./assets/alpine.jpg"); }
.wallpaper-swatch.is-active { outline: 1px solid #b6bdc9; outline-offset: 3px; }
.appearance-note { font-size: 11px; color: #8e96a3; margin-top: 22px; text-align: center; }

.privacy-section { background: #f7f1f3; }
.privacy-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 110px; align-items: center; }
.privacy-symbol { width: 35px; height: 35px; margin-bottom: 24px; color: #916573; }
.privacy-heading h2 { font-size: 52px; }
.privacy-heading h2 span { color: #9a6878; }
.privacy-heading > p:last-child { font-size: 15px; color: #8a7780; margin-top: 22px; }
.privacy-heading .section-kicker { font-size: 13px; color: #8a7780; }
.privacy-list { margin: 0; }
.privacy-list > div { position: relative; padding: 28px 38px 28px 0; border-bottom: 1px solid #e6dade; }
.privacy-list > div:last-child { border-bottom: 0; }
.privacy-list dt { font-size: 18px; font-weight: 550; margin-bottom: 10px; }
.privacy-list dd { margin: 0; font-size: 14px; line-height: 1.8; color: #8a7780; }
.privacy-list [data-icon] { position: absolute; right: 0; top: 32px; width: 17px; height: 17px; color: #9a6878; }
.faq-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 100px; }
.faq-layout h2 { font-size: 42px; }
.faq-layout > div:first-child .text-link { margin-top: 27px; color: #737d8c; font-size: 13px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 25px; min-height: 74px; padding: 20px 0; list-style: none; cursor: pointer; font-size: 15px; font-weight: 500; line-height: 1.6; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary > [data-icon] { width: 17px; height: 17px; color: #8b93a1; transition: transform 250ms var(--ease); }
.faq-list details[open] summary > [data-icon] { transform: rotate(45deg); }
.faq-list details > p { padding: 0 32px 24px 0; font-size: 14px; color: var(--muted); line-height: 1.9; }
.faq-list details > .text-link { margin: -12px 0 20px; font-size: 13px; color: var(--blue); }
.get-section { background: #f5f7fa; border-top: 1px solid #edf0f4; padding: 70px 0; }
.get-layout { display: grid; grid-template-columns: 88px 1fr auto; gap: 33px; align-items: center; }
.get-logo { filter: drop-shadow(0 8px 12px rgb(148 60 100 / 12%)); }
.get-copy .section-kicker { margin-bottom: 10px; font-size: 13px; }
.get-copy h2 { font-size: 31px; }
.get-copy > p:last-child { font-size: 12px; color: #8b929d; margin-top: 13px; }
.get-actions { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.get-actions .button { min-width: 218px; }
.get-actions .button > [data-icon]:last-child { width: 16px; height: 16px; margin-left: 8px; }
.get-actions > .text-link { font-size: 12px; color: #667183; }
.get-actions > p { font-size: 11px; color: #939aa5; }
.site-footer { background: #fff; }
.footer-content { min-height: 88px; display: flex; justify-content: space-between; align-items: center; gap: 22px; }
.site-footer .brand { gap: 8px; }
.site-footer .brand span { font-size: 17px; }
.footer-tagline { color: #969ca7; font-size: 12px; }
.footer-links { display: flex; gap: 25px; color: #77808f; font-size: 12px; }
.footer-links a:hover { color: var(--blue); }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: hero-arrive 450ms var(--ease) both; }
  .product-scene { animation: panel-arrive 550ms 70ms var(--ease) both; }
  .scene-controls { animation: hero-arrive 350ms 150ms var(--ease) both; }
  .spotlight-demo.is-changing .result-row:not([hidden]) { animation: result-arrive 240ms var(--ease) both; }
  .spotlight-demo.is-changing .result-row:nth-child(2) { animation-delay: 35ms; }
  @keyframes hero-arrive { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes panel-arrive { from { opacity: 0; transform: translateY(14px) scale(0.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
  @keyframes result-arrive { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
}

@media (min-width: 1500px) {
  .hero-content { padding-top: 40px; padding-bottom: 34px; }
  .hero h1 { font-size: 96px; }
  .product-scene { margin-top: 33px; }
}
@media (max-width: 1050px) {
  .content-shell, .nav-shell { width: calc(100% - 64px); }
  .desktop-nav { gap: 21px; }
  .search-feature, .library-feature { gap: 45px; }
  .privacy-layout, .faq-layout { gap: 65px; }
  .keyboard-feature { grid-template-columns: 1fr 1.3fr; }
  .keyboard-note { grid-column: 1 / -1; justify-self: start; padding-top: 8px; }
  .keyboard-note br { display: none; }
  .get-layout { gap: 24px; }
  .get-copy h2 { font-size: 27px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 80px; }
  .content-shell, .nav-shell { width: calc(100% - 40px); }
  .nav-shell { height: 64px; gap: 16px; }
  .brand span { font-size: 20px; }
  .brand img { width: 30px; height: 30px; }
  .desktop-nav { display: none; }
  .menu-toggle:not([hidden]) { display: inline-flex; }
  .nav-actions { gap: 11px; }
  .nav-actions .github-link { display: none; }
  .nav-actions .button-small { min-height: 34px; font-size: 12px; padding: 0 11px; }
  .mobile-nav:not([hidden]) { display: grid; grid-template-columns: repeat(2, 1fr); }
  .hero-content { width: calc(100% - 40px); padding-top: 28px; padding-bottom: 24px; }
  .hero h1 { font-size: 70px; }
  .hero-tagline { font-size: 24px; }
  .hero-description { font-size: 14px; }
  .hero-actions { gap: 20px; margin-top: 18px; }
  .hero-actions .button { padding: 0 17px; font-size: 13px; }
  .hero-actions .text-link { font-size: 12px; }
  .product-scene { margin-top: 25px; }
  .scene-caption { display: none; }
  .scene-controls { justify-content: center; }
  .principles { min-height: 75px; gap: 15px; }
  .principles > span { gap: 7px; font-size: 12px; }
  .section-space { padding: 75px 0; }
  h2, .section-intro h2 { font-size: 40px; }
  h3 { font-size: 30px; }
  .section-intro { margin-bottom: 50px; }
  .search-feature, .library-feature { gap: 45px; grid-template-columns: 1fr; }
  .search-feature .feature-copy { max-width: 420px; }
  .spotlight-demo { width: min(480px, 100%); justify-self: center; }
  .library-feature { padding-top: 80px; }
  .library-feature .feature-copy { grid-row: 1; }
  .collection-visual { max-width: 430px; width: 100%; justify-self: center; }
  .keyboard-feature { margin-top: 55px; padding-top: 35px; gap: 35px 20px; }
  .keyboard-feature h3 { font-size: 23px; }
  .keyboard-visual { gap: 17px; }
  .physical-key { width: 47px; height: 49px; font-size: 14px; }
  .space-key { width: 74px; }
  .shortcut-keys { gap: 7px; }
  .appearance-heading { flex-direction: column; align-items: start; gap: 18px; margin-bottom: 30px; }
  .appearance-heading h2 { font-size: 32px; }
  .appearance-heading > p br { display: none; }
  .appearance-stage { min-height: 300px; }
  .appearance-controls { gap: 20px; flex-wrap: wrap; padding: 22px 0; min-height: unset; }
  .opacity-control { order: 3; flex: 1 0 100%; }
  .opacity-control input { width: auto; flex: 1; min-width: 50px; }
  .privacy-layout { grid-template-columns: 1fr; gap: 30px; }
  .privacy-heading h2 { font-size: 46px; }
  .privacy-heading > p:last-child { font-size: 14px; }
  .privacy-list > div { padding: 25px 38px 25px 0; }
  .faq-layout { grid-template-columns: 1fr; gap: 35px; }
  .faq-layout h2 { font-size: 34px; }
  .faq-layout h2 br { display: none; }
  .faq-layout > div:first-child .text-link { margin-top: 18px; }
  .get-layout { grid-template-columns: 70px 1fr; gap: 24px; }
  .get-logo { width: 70px; height: 70px; }
  .get-copy h2 { font-size: 26px; }
  .get-actions { grid-column: 1 / -1; margin-top: 7px; }
  .footer-content { flex-wrap: wrap; padding: 26px 0; row-gap: 20px; }
  .footer-tagline { order: 3; flex-basis: 100%; text-align: center; }
}
@media (max-width: 520px) {
  .mobile-break { display: block; }
  .hero-content { width: calc(100% - 28px); }
  .hero h1 { font-size: 64px; }
  .hero-tagline { font-size: 23px; }
  .hero-eyebrow { font-size: 12px; }
  .hero-actions { gap: 16px; }
  .hero-actions .text-link { gap: 5px; }
  .product-scene { width: 100%; }
  .winspot-morph-card.is-library { height: 510px; border-radius: 20px; }
  .winspot-morph-card.is-search-expanded { height: 460px; border-radius: 18px; }
  .library-recommended-row { grid-template-columns: repeat(4, 1fr); }
  .library-main-grid { grid-template-columns: repeat(4, 1fr); }
  .spotlight-card-body { flex-direction: column; }
  .spotlight-results-pane { border-right: 0; border-bottom: 1px solid var(--mac-card-divider); }
  .spotlight-inspector-pane { width: 100%; padding: 12px; }
  .spotlight-standalone-scopes.is-expanded { width: 96px; max-width: 96px; }
  .scope-standalone-circle { width: 44px; height: 44px; }
  .principles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 23px 12px; justify-items: center; }
  .principles > span { font-size: 12px; }
  .section-space { padding: 62px 0; }
  .section-kicker { font-size: 13px; margin-bottom: 13px; }
  h2, .section-intro h2 { font-size: 36px; }
  h3 { font-size: 28px; }
  .feature-copy > p { font-size: 14px; margin-top: 17px; }
  .feature-copy > p br { display: none; }
  .spotlight-input { min-height: 67px; padding: 11px 18px; }
  .spotlight-input input { font-size: 20px; }
  .spotlight-match { padding-left: 12px; font-size: 13px; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .result-row { padding: 12px 10px; }
  .collection-visual { gap: 18px; padding: 0 8px; }
  .collection-column { gap: 22px; }
  .collection-column img { width: 45px; height: 45px; }
  .collection-column:nth-child(2) { margin-top: 24px; }
  .collection-column:nth-child(3) { margin-top: 48px; }
  .keyboard-feature { grid-template-columns: 1fr; }
  .keyboard-feature h3 { font-size: 28px; }
  .keyboard-visual { gap: 30px; justify-content: start; }
  .physical-key { width: 57px; height: 54px; font-size: 16px; }
  .space-key { width: 95px; }
  .keyboard-note { padding-top: 0; }
  .appearance-heading h2 { font-size: 29px; }
  .appearance-heading > p { font-size: 13px; }
  .appearance-stage { min-height: 260px; margin-left: -20px; margin-right: -20px; }
  .material-demo { width: calc(100% - 34px); border-radius: 18px; }
  .material-search { padding: 0 16px; height: 59px; gap: 11px; }
  .material-search > span:first-of-type { font-size: 14px; }
  .material-apps { padding: 23px 14px; gap: 8px; }
  .material-apps img { width: 34px; height: 34px; }
  .material-apps > span { font-size: 11px; }
  .appearance-note { font-size: 11px; line-height: 1.9; }
  .privacy-heading h2 { font-size: 44px; }
  .privacy-list dt { font-size: 17px; }
  .privacy-list dd { font-size: 13px; }
  .faq-list summary { font-size: 14px; gap: 16px; min-height: 69px; }
  .faq-list details > p { padding-right: 10px; font-size: 13px; }
  .get-section { padding: 48px 0; }
  .get-layout { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 20px; }
  .get-copy h2 { font-size: 28px; }
  .get-actions { margin-top: 4px; }
  .footer-links { gap: 16px; }
}
@media (max-width: 350px) {
  .nav-shell { width: calc(100% - 24px); }
  .brand { gap: 6px; }
  .nav-shell .brand span { font-size: 18px; }
  .nav-shell .brand img { width: 26px; height: 26px; }
  .nav-actions { gap: 6px; }
  .nav-actions .button-small { padding: 0 8px; }
  .nav-actions .button-small [data-icon] { display: none; }
  .hero h1 { font-size: 56px; }
  .hero-tagline { font-size: 21px; }
  .hero-description { font-size: 13px; }
  .hero-actions { gap: 12px; }
  .hero-actions .button { padding: 0 13px; font-size: 12px; }
  .hero-actions .text-link { font-size: 11px; }
  .category-tab { padding: 4px 6px; }
  .material-apps > span { font-size: 10px; }
  .keyboard-visual { gap: 20px; }
  .physical-key { width: 47px; height: 49px; font-size: 14px; }
  .space-key { width: 78px; }
  .footer-links { gap: 12px; }
}
@media (max-height: 850px) and (min-width: 761px) {
  .hero-content { padding-top: 20px; padding-bottom: 21px; }
  .hero h1 { font-size: 70px; margin-top: 3px; }
  .hero-tagline { font-size: 25px; }
  .hero-description { margin-top: 8px; }
  .hero-actions { margin-top: 14px; }
  .product-scene { margin-top: 20px; }
}
@media (max-height: 740px) and (max-width: 520px) {
  .hero-content { padding-top: 20px; padding-bottom: 20px; }
  .hero h1 { font-size: 56px; }
  .hero-description { display: none; }
  .hero-actions { margin-top: 14px; }
  .product-scene { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.demo-launch-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(30, 35, 45, 0.92);
  color: #fff;
  padding: 8px 20px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  z-index: 1000;
  transition: opacity 220ms var(--mac-ease), transform 220ms var(--mac-ease);
}

.demo-launch-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

