:root {
  --bg: #0f111a;
  --bg-elev: #141724;
  --panel: #1a1d2b;
  --panel-soft: rgba(26, 29, 43, 0.76);
  --panel-border: #2a2e42;
  --panel-border-strong: #393f5a;
  --text: #e8eaf2;
  --text-dim: #9aa0b5;
  --text-muted: #707790;
  --accent: #f59e0b;
  --accent-hover: #fbbf24;
  --accent-ink: #161822;
  --sky: #3da1ea;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-window: 0 30px 90px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --ambient-color: rgba(245, 158, 11, 0.22);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
  color-scheme: dark;
}

html:has(.whats-new-bar) {
  scroll-padding-top: 108px;
}

body {
  margin: 0;
  padding-top: 64px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  position: relative;
}

body.has-whats-new {
  padding-top: 108px;
}

:root:lang(zh-Hant) body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", "Segoe UI", sans-serif;
}

img {
  max-width: 100%;
  display: block;
}

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

button,
select {
  font: inherit;
  color: inherit;
}

.hidden {
  display: none !important;
}

/* Dynamic ambient backdrop tinted by the currently previewed wallpaper */
.ambient-glow {
  position: fixed;
  inset: -120px 0 auto 0;
  height: 760px;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(640px 420px at 72% 18%, var(--ambient-color), transparent 72%),
    radial-gradient(560px 380px at 22% 10%, rgba(61, 161, 234, 0.14), transparent 70%);
  transition: background 0.5s ease;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* ---- Header ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(15, 17, 26, 0.78);
  border-bottom: 1px solid rgba(42, 46, 66, 0.72);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  height: 64px;
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.brand-icon {
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.brand-version {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  color: var(--text-dim);
}

.site-nav a {
  transition: color 0.15s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  font-weight: 600;
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 9px;
  border: 1px solid var(--panel-border);
  background: var(--panel-soft);
  color: var(--text-dim);
  font-size: 13px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.lang-switch:hover,
.lang-switch:focus-within {
  border-color: var(--panel-border-strong);
  color: var(--text);
}

.lang-switch svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.lang-switch select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  color: inherit;
  padding-right: 4px;
}

.lang-switch option {
  background: var(--panel);
  color: var(--text);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.22);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.32);
}

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

.btn-secondary:hover {
  background: #222638;
  border-color: var(--panel-border-strong);
}

.btn-lg {
  padding: 13px 20px;
  min-height: 58px;
}

.btn-block {
  width: 100%;
  padding: 13px 18px;
  justify-content: center;
  gap: 0;
}

.btn-meta {
  font-size: 0.92em;
  font-weight: 500;
  opacity: 0.86;
}

/* ---- Hero ---- */
.whats-new-bar {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 49;
  height: 44px;
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(15, 17, 26, 0.72);
  border-bottom: 1px solid rgba(42, 46, 66, 0.55);
}

.whats-new-bar-inner {
  display: flex;
  justify-content: center;
}

.hero {
  padding: 46px 0 72px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
}

.hero-copy {
  text-align: center;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-whats-new {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  white-space: nowrap;
  padding: 5px 14px 5px 6px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.08);
  font-size: 13px;
  color: var(--text-dim);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.hero-whats-new-text {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text);
}

.hero-whats-new:hover {
  border-color: rgba(245, 158, 11, 0.52);
  background: rgba(245, 158, 11, 0.13);
  color: var(--text);
  transform: translateY(-1px);
}

.hero-whats-new-badge {
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.18);
  color: var(--accent-hover);
  font-size: 11.5px;
  font-weight: 700;
}

.hero-whats-new-version {
  color: var(--text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.hero-whats-new-sep {
  opacity: 0.45;
}

.hero-whats-new-arrow {
  color: var(--accent);
  transition: transform 0.15s ease;
}

.hero-whats-new:hover .hero-whats-new-arrow {
  transform: translateX(2px);
}

.hero-title {
  margin: 0;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.14;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.hero-title-accent {
  background: linear-gradient(110deg, #fff5dc 0%, #fbbf24 52%, #7cc4fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 18px 0 0;
  max-width: 620px;
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--text-dim);
  line-height: 1.65;
}

/* A factual, AI-friendly description of what the app is (GEO) */
.hero-facts {
  margin: 14px 0 0;
  max-width: 620px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  opacity: 0.7;
}

.hero-ctas {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.cta-btn {
  min-width: 248px;
  justify-content: flex-start;
  text-align: left;
}

.os-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.cta-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.cta-text strong {
  font-size: 15px;
  font-weight: 700;
}

.cta-text small {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.78;
  margin-top: 2px;
}

.hero-meta {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.hero-meta a {
  color: var(--text-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.hero-meta a:hover {
  color: var(--accent);
}

/* ---- Interactive Window Preview (mirrors frontend/style.css) ---- */
.showcase-wrap {
  width: min(920px, 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.showcase-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px;
}

.showcase-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.chrome-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 9px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
}

.chrome-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.chrome-btn:hover {
  color: var(--text);
}

.chrome-btn.active {
  background: #272c40;
  color: var(--text);
}

.app-window {
  background: var(--bg);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  box-shadow: var(--shadow-window);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.app-window.chrome-windows {
  border-radius: 10px;
}

.app-titlebar-mac {
  height: 36px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-window.chrome-windows .app-titlebar-mac {
  display: none;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.app-titlebar-win {
  display: none;
  height: 32px;
  padding-left: 14px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(42, 46, 66, 0.5);
}

.app-window.chrome-windows .app-titlebar-win {
  display: flex;
}

.win-title {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 500;
}

.win-controls {
  display: flex;
  height: 100%;
}

.win-ctrl {
  width: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text-dim);
}

.win-ctrl-close {
  color: var(--text-dim);
}

.app-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 18px 0;
}

.app-year-split {
  display: inline-flex;
  align-items: stretch;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  overflow: hidden;
}

.app-tab {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.app-tab:hover {
  background: var(--panel);
  color: var(--text);
}

.app-tab.active {
  color: var(--text);
  font-weight: 600;
}

.app-year-split .app-tab {
  border-radius: 0;
  padding: 6px 11px 6px 14px;
}

.app-year-caret {
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: var(--text-dim);
  font-size: 13px;
  border-left: 1px solid var(--panel-border);
}

.app-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
}

.app-back-btn svg {
  width: 17px;
  height: 17px;
}

.app-view-toggle {
  display: inline-flex;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  margin-left: 4px;
}

.app-view-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-dim);
  padding: 6px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.app-view-btn:hover {
  color: var(--text);
}

.app-view-btn.active {
  background: var(--accent);
  color: var(--panel);
}

.app-view-btn svg {
  width: 15px;
  height: 15px;
}

.app-toast {
  margin-left: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.42);
  color: #fde68a;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.app-settings-tab {
  margin-left: auto;
}

.app-settings-tab.active {
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--panel-border);
}

.app-stage {
  position: relative;
  padding: 14px 18px 18px;
}

.app-hero-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--panel-border);
}

.app-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.28s ease;
}

.app-hero-img.is-loading {
  opacity: 0.45;
}

.app-hero-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
  background: radial-gradient(circle at 50% 42%, rgba(61, 161, 234, 0.08), transparent 65%);
}

.app-spinner {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(154, 160, 181, 0.25);
  border-top-color: var(--accent);
  animation: app-spin 0.8s linear infinite;
}

@keyframes app-spin {
  to {
    transform: rotate(360deg);
  }
}

.app-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(15, 17, 26, 0.54);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.app-nav-arrow:hover {
  background: rgba(15, 17, 26, 0.82);
}

.app-nav-prev { left: 14px; }
.app-nav-next { right: 14px; }

.app-top-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-btn {
  appearance: none;
  height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.app-btn:hover {
  background: rgba(255, 255, 255, 0.26);
}

.app-share-btn {
  padding: 0 9px;
}

.app-share-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}

.app-current-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fbbf24;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}

.app-hero-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 56px 20px 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(transparent, rgba(7, 9, 16, 0.82));
}

.app-hero-title {
  margin: 0;
  font-size: clamp(15px, 2vw, 19px);
  font-weight: 600;
  color: #fff;
}

.app-hero-copyright {
  margin: 4px 0 0;
  font-size: 13px;
  color: #d6dae8;
}

.app-hero-date {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.app-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding-bottom: 4px;
}

.app-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.app-dot.active {
  width: 20px;
  background: var(--accent);
}

/* Grid view inside mockup */
.app-grid-view {
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  flex: 1;
  min-height: 0;
}

.grid-thumb {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  padding: 0;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.grid-thumb:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.grid-thumb.is-current {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.35);
}

.grid-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.grid-thumb-meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px 12px 9px;
  background: linear-gradient(transparent, rgba(7, 9, 16, 0.85));
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.grid-thumb-title {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.grid-thumb-date {
  font-size: 11px;
  color: var(--text-dim);
  flex-shrink: 0;
}

.grid-thumb-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 700;
}

.app-grid-hint {
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
}

/* Settings view inside mockup */
.app-settings-view {
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
}

.app-panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 10px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.app-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--panel-border);
  font-size: 13.5px;
}

.app-setting-row:last-child {
  border-bottom: none;
}

.mock-switch {
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: var(--accent);
  position: relative;
  flex-shrink: 0;
}

.mock-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
}

.mock-pill {
  padding: 4px 10px;
  border-radius: 7px;
  background: var(--bg);
  border: 1px solid var(--panel-border);
  color: var(--text-dim);
  font-size: 12px;
}

.mock-kbd {
  padding: 4px 10px;
  border-radius: 7px;
  background: var(--bg);
  border: 1px solid var(--panel-border);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.mock-version {
  font-size: 12.5px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

/* Share card modal inside preview */
.app-share-modal {
  position: absolute;
  inset: 0;
  background: rgba(7, 9, 16, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 10;
}

.app-share-card {
  width: min(390px, 100%);
  background: var(--panel);
  border: 1px solid var(--panel-border-strong);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.app-share-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
}

.app-share-close {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
}

.app-share-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.share-poster {
  background: #f8fafc;
  color: #0f172a;
  border-radius: 10px;
  overflow: hidden;
  padding: 8px;
}

.share-poster img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
}

.share-poster-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 4px 2px;
}

.share-poster-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.share-poster-sub {
  font-size: 11px;
  color: #475569;
  margin-top: 2px;
}

.share-qr-mini {
  width: 34px;
  height: 34px;
  padding: 4px;
  border-radius: 5px;
  border: 1px solid #cbd5e1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  flex-shrink: 0;
}

.share-qr-mini span {
  background: #0f172a;
  border-radius: 1px;
}

.share-qr-mini span:nth-child(4) {
  background: transparent;
  border: 2px solid #0f172a;
}

.app-share-desc {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ---- Sections ---- */
.section {
  padding: 82px 0;
  border-top: 1px solid rgba(42, 46, 66, 0.55);
}

.section-head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 48px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  margin: 0;
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-subtitle {
  margin: 12px 0 0;
  font-size: 16px;
  color: var(--text-dim);
}

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

.feature-card {
  background: linear-gradient(180deg, rgba(26, 29, 43, 0.92), rgba(20, 23, 36, 0.92));
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: var(--panel-border-strong);
  transform: translateY(-2px);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.feature-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.feature-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
}

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

.install-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.install-card.is-recommended {
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 18px 48px rgba(245, 158, 11, 0.08);
}

.install-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.install-card h3 {
  margin: 0;
  font-size: 22px;
}

.install-badge {
  display: inline-block;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--text-dim);
}

.install-version {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--panel-border);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.install-desc {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-dim);
}

.install-alt-wrap {
  margin-top: -8px;
  text-align: center;
}

.install-alt-link {
  font-size: 12.5px;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.install-alt-link:hover {
  color: var(--text-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.install-tip {
  margin-top: auto;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg-elev);
  border: 1px solid rgba(42, 46, 66, 0.85);
  min-width: 0;
}

.install-tip h4 {
  margin: 0 0 6px;
  font-size: 13.5px;
  color: var(--text);
}

.install-tip p {
  margin: 0;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}

.code-box {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  background: #0a0c13;
  border: 1px solid var(--panel-border);
  min-width: 0;
}

.code-box code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: #fde68a;
  overflow-x: auto;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}

.copy-btn {
  appearance: none;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 7px;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.copy-btn:hover {
  border-color: var(--accent);
  background: #222638;
}

/* ---- FAQ ---- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: linear-gradient(180deg, rgba(26, 29, 43, 0.92), rgba(20, 23, 36, 0.92));
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  overflow: hidden;
}

.faq-item:hover {
  border-color: var(--panel-border-strong);
}

.faq-item[open] {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.26), 0 0 0 1px rgba(245, 158, 11, 0.08);
}

.faq-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  outline: none;
}

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

.faq-summary::marker {
  content: "";
}

.faq-summary:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(245, 158, 11, 0.55);
  border-radius: calc(var(--radius) - 1px);
}

.faq-index {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--bg-elev);
  border: 1px solid var(--panel-border);
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.faq-item:hover .faq-index {
  border-color: var(--panel-border-strong);
  color: var(--text-dim);
}

.faq-item[open] .faq-index {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.34);
  color: var(--accent);
}

.faq-question {
  flex: 1;
  min-width: 0;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
}

.faq-chevron {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(42, 46, 66, 0.85);
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.faq-chevron svg {
  width: 16px;
  height: 16px;
}

.faq-item:hover .faq-chevron {
  border-color: var(--panel-border-strong);
  color: var(--text);
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.34);
  color: var(--accent);
}

.faq-answer {
  padding: 0 22px 20px 64px;
}

.faq-answer p {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(42, 46, 66, 0.65);
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ---- Changelog Page ---- */
.changelog-main {
  padding: 40px 0 88px;
}

.changelog-container {
  max-width: 820px;
}

.cl-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.cl-breadcrumb a {
  transition: color 0.15s ease;
}

.cl-breadcrumb a:hover {
  color: var(--text);
}

.cl-hero {
  margin-bottom: 40px;
}

.cl-title {
  margin: 0;
  font-size: clamp(30px, 4.4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.cl-hero-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cl-action-btn {
  padding: 8px 15px;
  font-size: 13.5px;
}

.cl-timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cl-card {
  padding: 26px 28px;
  border-radius: var(--radius);
  background: var(--panel-soft);
  border: 1px solid var(--panel-border);
  scroll-margin-top: 84px;
}

.cl-card.is-latest {
  border-color: rgba(245, 158, 11, 0.36);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}

.cl-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(42, 46, 66, 0.72);
}

.cl-version-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cl-version {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.cl-version a:hover {
  color: var(--accent-hover);
}

.cl-latest-badge {
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.34);
  color: var(--accent-hover);
  font-size: 11.5px;
  font-weight: 700;
}

.cl-card-meta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--text-muted);
}

.cl-date {
  font-variant-numeric: tabular-nums;
}

.cl-github-link {
  color: var(--text-dim);
  transition: color 0.15s ease;
}

.cl-github-link:hover {
  color: var(--accent-hover);
}

.cl-body {
  padding: 18px 0 6px;
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.72;
}

.cl-body > :first-child {
  margin-top: 0;
}

.cl-body > :last-child {
  margin-bottom: 0;
}

.cl-subheading {
  margin: 18px 0 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
}

.cl-list {
  margin: 8px 0 14px;
  padding-left: 20px;
}

.cl-list li {
  margin: 6px 0;
}

.cl-body p {
  margin: 10px 0;
}

.cl-body strong {
  color: var(--text);
  font-weight: 600;
}

.cl-body code {
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  color: var(--text);
}

.cl-body a {
  color: var(--sky);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cl-empty {
  color: var(--text-muted);
  font-style: italic;
}

.cl-card-actions {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(42, 46, 66, 0.55);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cl-dl-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.025);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.cl-dl-link:hover {
  border-color: var(--panel-border-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.cl-dl-size {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid rgba(42, 46, 66, 0.65);
  padding: 36px 0 46px;
  background: rgba(10, 12, 19, 0.55);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  border-radius: 7px;
}

.footer-brand p {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13.5px;
  color: var(--text-dim);
}

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

.footer-disclaimer {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .install-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(1120px, calc(100% - 28px));
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero {
    padding: 32px 0 54px;
  }

  .hero-whats-new {
    font-size: 12px;
    gap: 6px;
    padding: 4px 12px;
  }

  .hero-whats-new-badge {
    display: none;
  }

  .cta-btn {
    width: 100%;
    min-width: 0;
  }

  .showcase-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .app-tabs {
    padding: 6px 12px 0;
    flex-wrap: wrap;
  }

  .app-stage {
    padding: 10px 12px 12px;
  }

  .app-hero-overlay {
    padding: 36px 14px 12px;
  }

  .app-hero-copyright {
    display: none;
  }

  .app-settings-view {
    aspect-ratio: auto;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 58px 0;
  }

  .faq-summary {
    padding: 15px 16px;
    gap: 12px;
  }

  .faq-question {
    font-size: 15px;
  }

  .faq-answer {
    padding: 0 16px 16px;
  }

  .changelog-main {
    padding: 28px 0 64px;
  }

  .cl-card {
    padding: 20px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
