:root {
  --bg: #fbfbfd;
  --surface: #f5f5f7;
  --card: #ffffff;
  --ink: #1d1d1f;
  --ink-secondary: #6e6e73;
  --ink-muted: #86868b;
  --line: rgba(0, 0, 0, 0.07);
  --line-strong: rgba(0, 0, 0, 0.12);
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --green: #28cd41;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC",
    "PingFang TC", "Hiragino Sans GB", "Microsoft YaHei", "Microsoft JhengHei", system-ui, sans-serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* ============================================================================
   NAVBAR (Apple-style frosted light bar)
   ============================================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 251, 253, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 1.04rem;
  letter-spacing: -0.015em;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12), 0 0 0 0.5px rgba(15, 23, 42, 0.08);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.86rem;
  color: var(--ink-secondary);
}

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

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 980px;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background 0.16s ease, transform 0.14s ease, box-shadow 0.16s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.985);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 13px 28px;
  font-size: 1.02rem;
}

.btn-primary {
  background: var(--blue);
  color: #ffffff;
}

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

.btn-secondary {
  background: #e8e8ed;
  color: var(--ink);
}

.btn-secondary:hover {
  background: #dedee5;
}

.btn-dark {
  background: #1d1d1f;
  color: #ffffff;
}

.btn-dark:hover {
  background: #323236;
}

.btn-gh {
  background: rgba(0, 0, 0, 0.055);
  color: var(--ink);
  gap: 6px;
}

.btn-gh:hover {
  background: rgba(0, 0, 0, 0.095);
}

.gh-star-pill {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-secondary);
  background: rgba(255, 255, 255, 0.88);
  padding: 1px 6px;
  border-radius: 999px;
}

.gh-star-pill[hidden] {
  display: none;
}

.lang-switch {
  position: relative;
}

.btn-lang {
  background: rgba(0, 0, 0, 0.045);
  color: var(--ink);
  gap: 5px;
  padding: 6px 11px;
}

.btn-lang:hover {
  background: rgba(0, 0, 0, 0.085);
}

.lang-short-lbl {
  display: none;
}

.lang-caret {
  opacity: 0.65;
  transition: transform 0.16s ease;
}

.btn-lang[aria-expanded="true"] .lang-caret {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 176px;
  max-height: 70vh;
  overflow-y: auto;
  padding: 5px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--line-strong);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 80;
}

.lang-menu[hidden] {
  display: none;
}

.lang-opt {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  text-align: left;
  padding: 7px 11px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.12s ease, color 0.12s ease;
}

.lang-opt:hover {
  background: rgba(0, 0, 0, 0.055);
}

.lang-opt.active {
  background: rgba(0, 113, 227, 0.1);
  color: var(--blue);
  font-weight: 600;
}

.lang-opt.active::after {
  content: "✓";
  font-size: 0.78rem;
}

/* Regional chat app brand tint in interactive desktop demo */
.ouu-app-ico-chat {
  background: #28cd41;
  color: #ffffff;
}
.dock-chat-svg {
  color: #28cd41;
}
html[data-lang="zh-Hant"] .ouu-app-ico-chat,
html[data-lang="ja"] .ouu-app-ico-chat {
  background: #06c755;
}
html[data-lang="zh-Hant"] .dock-chat-svg,
html[data-lang="ja"] .dock-chat-svg {
  color: #06c755;
}
html[data-lang="en"] .ouu-app-ico-chat,
html[data-lang="de"] .ouu-app-ico-chat,
html[data-lang="es"] .ouu-app-ico-chat,
html[data-lang="fr"] .ouu-app-ico-chat,
html[data-lang="pt-BR"] .ouu-app-ico-chat {
  background: #25d366;
}
html[data-lang="en"] .dock-chat-svg,
html[data-lang="de"] .dock-chat-svg,
html[data-lang="es"] .dock-chat-svg,
html[data-lang="fr"] .dock-chat-svg,
html[data-lang="pt-BR"] .dock-chat-svg {
  color: #25d366;
}
html[data-lang="ko"] .ouu-app-ico-chat {
  background: #fee500;
  color: #3c1e1e;
}
html[data-lang="ko"] .dock-chat-svg {
  color: #d9a400;
}
html[data-lang="ru"] .ouu-app-ico-chat {
  background: #2aabee;
}
html[data-lang="ru"] .dock-chat-svg {
  color: #2aabee;
}

.hero-oss-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px 14px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: #f2f2f7;
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-secondary);
  max-width: 100%;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.hero-oss-pill svg {
  flex-shrink: 0;
  color: var(--ink);
}

.hero-oss-pill span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-oss-pill:hover {
  background: #e8e8ee;
  color: var(--ink);
  border-color: rgba(0, 0, 0, 0.12);
}

.ver-release-link {
  white-space: nowrap;
}

.ver-release-link:hover b {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.inline-link {
  color: var(--blue);
  font-weight: 500;
}

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

.link-more {
  color: var(--blue);
  font-size: 0.96rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

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

/* ============================================================================
   HERO
   ============================================================================ */
.hero {
  padding: 68px 0 40px;
  text-align: center;
}

.hero h1 {
  margin: 0 auto 18px;
  max-width: 780px;
  font-size: clamp(2.2rem, 4.8vw, 3.55rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero-sub {
  margin: 0 auto 28px;
  max-width: 620px;
  font-size: clamp(1.04rem, 1.8vw, 1.2rem);
  color: var(--ink-secondary);
  line-height: 1.65;
  font-weight: 400;
}

.hero-sub strong {
  color: var(--ink);
  font-weight: 600;
}

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

.hero-reassure {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-bottom: 42px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 8px;
}

.hero-reassure span {
  white-space: nowrap;
}

.hero-reassure i {
  font-style: normal;
  opacity: 0.65;
}

.hero-reassure b {
  font-weight: 600;
  color: var(--ink-secondary);
}

/* ============================================================================
   SUNLIT MAC DESKTOP PREVIEW STAGE (REALISTIC + LIVE ANIMATED WORKFLOW)
   ============================================================================ */
.stage-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.seg-switch {
  display: inline-flex;
  background: #e9e9ee;
  padding: 4px;
  border-radius: 980px;
}

.seg-item {
  border: none;
  outline: none;
  background: transparent;
  color: var(--ink-secondary);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 980px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.seg-item.active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
}

.story-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.story-pill {
  font-size: 0.78rem;
  color: var(--ink-secondary);
  background: #f2f2f6;
  border: 1px solid transparent;
  padding: 5px 13px;
  border-radius: 999px;
  transition: all 0.25s ease;
}

.story-pill.active {
  background: #e8f2ff;
  color: #0066cc;
  border-color: rgba(0, 113, 227, 0.24);
  font-weight: 600;
}

.story-pill.warn.active {
  background: #fff0ee;
  color: #d70015;
  border-color: rgba(215, 0, 21, 0.22);
}

/* Realistic MacBook Bezel + Layered Sequoia Landscape Wallpaper */
.mac-bezel {
  background: #18181a;
  padding: 11px;
  border-radius: 24px;
  box-shadow: 0 30px 76px rgba(0, 0, 0, 0.16), 0 4px 16px rgba(0, 0, 0, 0.08);
  text-align: left;
  border: 1px solid #323236;
}

.mac-stage-viewport {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
}

.mac-wallpaper {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(ellipse 68% 54% at 76% 16%, rgba(255, 226, 188, 0.92), transparent 62%),
    radial-gradient(ellipse 65% 58% at 18% 28%, rgba(124, 179, 242, 0.85), transparent 64%),
    linear-gradient(172deg, #5a95e2 0%, #8cb8ef 40%, #eab996 76%, #7d96c4 100%);
  user-select: none;
}

/* Subtle painted mountain ridge silhouette at bottom of wallpaper */
.mac-wallpaper::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 170px;
  background:
    radial-gradient(120% 95% at 22% 110%, rgba(56, 82, 132, 0.42) 48%, transparent 50%),
    radial-gradient(110% 90% at 78% 115%, rgba(44, 67, 115, 0.48) 50%, transparent 52%);
  pointer-events: none;
  z-index: 0;
}

/* Authentic macOS Top Menu Bar */
.mac-top-bar {
  position: relative;
  z-index: 5;
  height: 28px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  color: #1d1d1f;
  white-space: nowrap;
}

.mac-bar-left,
.mac-bar-right {
  display: flex;
  align-items: center;
  gap: 13px;
}

.mac-active-name {
  font-weight: 700;
}

.mac-menu-item {
  color: rgba(29, 29, 31, 0.82);
}

.mac-connected-tag {
  background: rgba(255, 255, 255, 0.78);
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.69rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.mac-connected-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #28cd41;
}

.bar-icons {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  opacity: 0.82;
}

/* Realistic macOS Top-Right Notification Banner */
.mac-notif {
  position: absolute;
  top: 38px;
  right: 16px;
  z-index: 30;
  width: 286px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(250, 250, 252, 0.9);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateX(30px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.mac-notif.visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.notif-icon {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #28cd41;
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.notif-body {
  flex: 1;
  min-width: 0;
}

.notif-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.71rem;
  font-weight: 700;
  color: #1d1d1f;
}

.notif-top span:last-child {
  font-weight: 500;
  color: #0066cc;
  font-size: 0.66rem;
}

.notif-text {
  font-size: 0.73rem;
  color: #3a3a3c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

/* ============================================================================
   MODE 1: THREE REALISTIC MACOS APPS SIDE-BY-SIDE
   ============================================================================ */
.desk-area {
  position: relative;
  z-index: 2;
  padding: 20px 18px 12px;
  display: grid;
  grid-template-columns: 0.82fr 1.24fr 1.04fr;
  gap: 14px;
  flex: 1;
  align-items: stretch;
}

.app-win {
  min-width: 0;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 11px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.13);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.app-win.is-focused {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.22), 0 0 0 1.5px rgba(0, 113, 227, 0.32);
}

.win-head {
  height: 34px;
  padding: 0 11px;
  background: linear-gradient(180deg, #fbfbfd, #f1f1f4);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.dots {
  display: inline-flex;
  gap: 6px;
  flex-shrink: 0;
}

.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  background: #d2d2d7;
}

.app-win.is-focused .dots i:nth-child(1) { background: #ff5f57; }
.app-win.is-focused .dots i:nth-child(2) { background: #febc2e; }
.app-win.is-focused .dots i:nth-child(3) { background: #28c840; }

.win-name {
  font-size: 0.74rem;
  font-weight: 600;
  color: #1d1d1f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.from-pill {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e5f1ff;
  color: #0066cc;
  border: 1px solid rgba(0, 102, 204, 0.18);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.from-pill img {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.from-pill.local {
  background: #ebebef;
  color: #515154;
  border-color: transparent;
}

/* Center slot stacks OpenUU Client Launcher & Pulled-Out Remote WeChat Window cleanly */
.center-slot {
  display: grid;
  position: relative;
  min-width: 0;
}

.center-slot > .app-win {
  grid-area: 1 / 1;
  transition:
    opacity 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s ease;
}

.center-slot > .app-win.win-minimized {
  opacity: 0;
  pointer-events: none;
  transform: translateY(88px) scale(0.68);
}

.center-slot > .app-win.win-unopened {
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.92);
}

/* --- OPENUU NATIVE LAUNCHER WINDOW (STEP 1 & STEP 2) --- */
.ouu-body {
  background: #f9f9fb;
  padding: 14px 16px;
  flex: 1;
  display: grid;
}

.ouu-pane {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: opacity 0.26s ease, transform 0.26s ease;
}

.ouu-pane.hidden-pane {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

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

.ouu-brand-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ouu-brand-left img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
}

.ouu-brand-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #1d1d1f;
  line-height: 1.2;
}

.ouu-brand-sub {
  font-size: 0.66rem;
  color: #86868b;
}

.ouu-form {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 11px 12px;
  display: grid;
  gap: 9px;
}

.ouu-field label {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  color: #6e6e73;
  margin-bottom: 3px;
}

.ouu-input {
  height: 30px;
  padding: 0 10px;
  border-radius: 7px;
  background: #f5f5f7;
  border: 1.5px solid #e2e2e7;
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #1d1d1f;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.ouu-input.typing-focus {
  background: #ffffff;
  border-color: #0071e3;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
}

.ouu-placeholder {
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: 0;
  font-size: 0.74rem;
  color: #aeaeb2;
}

.ouu-caret {
  display: inline-block;
  width: 1.5px;
  height: 14px;
  background: #0071e3;
  margin-left: 2px;
  animation: blinkCaret 0.9s steps(2, start) infinite;
}

@keyframes blinkCaret {
  to { opacity: 0; }
}

.ouu-connect-btn {
  height: 32px;
  border-radius: 8px;
  background: #0071e3;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.16s ease, transform 0.14s ease;
}

.ouu-connect-btn.pressed {
  background: #005bb5;
  transform: scale(0.98);
}

.ouu-foot-tip {
  font-size: 0.66rem;
  color: #86868b;
  text-align: center;
}

/* OpenUU Step 2: Window Picker List */
.ouu-connected-banner {
  background: #eaf9ee;
  border: 1px solid rgba(40, 205, 65, 0.3);
  color: #166534;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ouu-picker-hint {
  font-size: 0.7rem;
  font-weight: 600;
  color: #424245;
  margin-top: 2px;
}

.ouu-app-list {
  display: grid;
  gap: 7px;
}

.ouu-app-row {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 9px;
  padding: 7px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.ouu-app-row.highlight-pick {
  border-color: #0071e3;
  background: #f2f8ff;
}

.ouu-app-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ouu-app-ico {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  flex-shrink: 0;
}

.ouu-app-name {
  font-size: 0.73rem;
  font-weight: 600;
  color: #1d1d1f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ouu-app-sub {
  font-size: 0.62rem;
  color: #86868b;
}

.ouu-pull-btn {
  padding: 4px 9px;
  border-radius: 6px;
  background: #0071e3;
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 600;
  white-space: nowrap;
}

.ouu-pull-btn.subtle {
  background: #eef0f4;
  color: #424245;
}

.dock-app.dock-hidden {
  width: 0;
  opacity: 0;
  transform: scale(0.3);
  margin-left: -9px;
  pointer-events: none;
  overflow: hidden;
}

/* --- APP 1: APPLE NOTES --- */
.notes-subbar {
  padding: 6px 12px;
  background: #fffdf8;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  font-size: 0.66rem;
  color: #8e8e93;
}

.notes-paper {
  background: #ffffff;
  padding: 12px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.notes-date {
  font-size: 0.65rem;
  color: #8e8e93;
  text-align: center;
  margin-bottom: 6px;
}

.todo-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: #1d1d1f;
  margin: 0 0 10px;
}

.todo-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
  color: #2c2c2e;
  font-size: 0.76rem;
}

.todo-items li {
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.25s ease;
}

.todo-items li.completed-line {
  color: #8e8e93;
  text-decoration: line-through;
}

.chk {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1.5px solid #ff9f0a;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.22s ease, transform 0.22s ease;
}

.chk.done {
  background: #ff9f0a;
}

.chk.done::after {
  content: "";
  width: 5px;
  height: 3px;
  border-left: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(-45deg) translateY(-0.5px);
}

.notes-callout {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff9e6;
  border-left: 3px solid #ff9f0a;
  font-size: 0.7rem;
  color: #6b5319;
  line-height: 1.45;
}

/* --- APP 2: TWO-COLUMN DESKTOP WECHAT --- */
.wechat-split {
  display: grid;
  grid-template-columns: 108px 1fr;
  flex: 1;
  min-height: 0;
}

.wx-sidebar {
  background: #f7f7f8;
  border-right: 1px solid #e5e5ea;
  display: flex;
  flex-direction: column;
}

.wx-search {
  margin: 8px 7px 6px;
  padding: 3px 7px;
  border-radius: 5px;
  background: #e9e9ec;
  font-size: 0.65rem;
  color: #8e8e93;
}

.wx-conv {
  padding: 7px 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.wx-conv.active {
  background: #e2e2e6;
}

.wx-avatar {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-size: 0.66rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.wx-conv-meta {
  min-width: 0;
  flex: 1;
}

.wx-conv-title {
  font-size: 0.68rem;
  font-weight: 600;
  color: #1d1d1f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wx-conv-sub {
  font-size: 0.61rem;
  color: #8e8e93;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wx-main {
  position: relative;
  min-width: 0;
  background: #f3f3f3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.wx-chat-header {
  padding: 6px 11px;
  border-bottom: 1px solid #e4e4e7;
  font-size: 0.72rem;
  font-weight: 700;
  color: #1d1d1f;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wx-messages {
  padding: 10px 11px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

.wx-row {
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.wx-row.me {
  flex-direction: row-reverse;
}

.wx-mini-ava {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  font-size: 0.62rem;
  font-weight: 700;
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.wx-bubble {
  background: #ffffff;
  color: #1d1d1f;
  padding: 6px 9px;
  border-radius: 6px;
  font-size: 0.73rem;
  line-height: 1.42;
  max-width: 82%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.wx-row.me .wx-bubble {
  background: #95ec69;
  color: #111;
}

/* Sent photo card inside WeChat (revealed during drag-drop animation) */
.wx-photo-msg,
.wx-followup-msg {
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.wx-photo-msg.sent,
.wx-followup-msg.sent {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.photo-card-bubble {
  background: #ffffff;
  padding: 5px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  width: 158px;
}

.photo-thumb-art {
  height: 54px;
  border-radius: 4px;
  background: linear-gradient(165deg, #38bdf8 0%, #93c5fd 52%, #fde68a 82%, #f59e0b 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 4px 6px;
  color: #0f172a;
  font-size: 0.6rem;
  font-weight: 600;
}

.photo-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  color: #6e6e73;
  margin-top: 4px;
}

/* Drop target highlight inside WeChat */
.wx-drop-mask {
  position: absolute;
  inset: 6px;
  border-radius: 8px;
  background: rgba(0, 113, 227, 0.11);
  border: 2px dashed #0071e3;
  display: grid;
  place-items: center;
  font-size: 0.74rem;
  font-weight: 600;
  color: #005bb5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.wx-drop-mask.over {
  opacity: 1;
}

.wx-composer {
  background: #f7f7f7;
  border-top: 1px solid #e3e3e6;
  padding: 6px 10px 8px;
}

.wx-tools {
  display: flex;
  gap: 10px;
  color: #6e6e73;
  margin-bottom: 4px;
}

.wx-input-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #8e8e93;
}

.wx-send-btn {
  background: #e9e9ec;
  color: #07c160;
  font-weight: 600;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 4px;
}

/* --- APP 3: MACOS FINDER --- */
.finder-split {
  display: grid;
  grid-template-columns: 88px 1fr;
  flex: 1;
  min-height: 0;
}

.finder-side {
  background: #f2f2f6;
  border-right: 1px solid #e4e4e9;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.finder-sec-label {
  font-size: 0.6rem;
  font-weight: 600;
  color: #8e8e93;
  padding: 3px 6px 1px;
}

.finder-nav-item {
  font-size: 0.68rem;
  color: #3a3a3c;
  padding: 4px 6px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.finder-nav-item.active {
  background: #dcdce2;
  font-weight: 600;
  color: #1d1d1f;
}

.finder-table-wrap {
  min-width: 0;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.finder-thead {
  display: flex;
  justify-content: space-between;
  padding: 5px 10px;
  border-bottom: 1px solid #ececf0;
  font-size: 0.64rem;
  color: #8e8e93;
  font-weight: 600;
}

.finder-list {
  display: flex;
  flex-direction: column;
}

.f-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 10px;
  font-size: 0.72rem;
  color: #1d1d1f;
  border-bottom: 1px solid #f5f5f7;
  transition: background 0.18s ease;
}

.f-item:nth-child(even) {
  background: #fafafc;
}

.f-item.selected {
  background: #0066cc;
  color: #ffffff;
}

.f-item.dragging-src {
  opacity: 0.48;
}

.f-name-cell {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.f-name-cell span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.f-badge {
  width: 18px;
  height: 20px;
  border-radius: 3px;
  font-size: 0.52rem;
  font-weight: 800;
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.f-badge.jpg { background: linear-gradient(135deg, #38bdf8, #f59e0b); }
.f-badge.xls { background: #107c41; }
.f-badge.pdf { background: #e11d48; }
.f-badge.key { background: #0284c7; }

.f-meta {
  font-size: 0.65rem;
  opacity: 0.72;
  white-space: nowrap;
}

.finder-foot {
  padding: 5px 10px;
  border-top: 1px solid #ececf0;
  background: #f9f9fb;
  font-size: 0.63rem;
  color: #8e8e93;
  display: flex;
  justify-content: space-between;
}

/* ============================================================================
   FLOATING DRAG FILE GHOST + ANIMATED MACOS CURSOR
   ============================================================================ */
.drag-ghost {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 42;
  background: rgba(255, 255, 255, 0.94);
  border: 1.5px solid #0071e3;
  border-radius: 8px;
  padding: 5px 9px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.71rem;
  font-weight: 600;
  color: #1d1d1f;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 0, 0) scale(0.92);
  transition: transform 0.82s cubic-bezier(0.25, 1, 0.35, 1), opacity 0.18s ease;
}

.drag-ghost.dragging {
  opacity: 0.96;
}

.demo-cursor {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 50;
  pointer-events: none;
  transform: translate3d(520px, 240px, 0);
  transition: transform 0.82s cubic-bezier(0.25, 1, 0.35, 1), opacity 0.25s ease;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.32));
}

.cursor-ripple {
  position: absolute;
  left: -8px;
  top: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #0071e3;
  background: rgba(0, 113, 227, 0.18);
  transform: scale(0.2);
  opacity: 0;
}

.demo-cursor.clicking .cursor-ripple {
  animation: cursorPop 0.48s ease-out forwards;
}

@keyframes cursorPop {
  0% { transform: scale(0.25); opacity: 0.95; }
  100% { transform: scale(1.65); opacity: 0; }
}

/* ============================================================================
   MODE 2: REALISTIC TRADITIONAL NESTED REMOTE DESKTOP PAIN STAGE
   ============================================================================ */
.legacy-area {
  position: relative;
  z-index: 2;
  display: none;
  padding: 20px 18px 12px;
  flex: 1;
}

.mac-wallpaper[data-mode="legacy"] .desk-area {
  display: none;
}

.mac-wallpaper[data-mode="legacy"] .legacy-area {
  display: block;
}

.mac-wallpaper[data-mode="legacy"] .dock-remote-part {
  display: none;
}

/* Local Notes window partially covered underneath on the left */
.legacy-blocked-local {
  position: absolute;
  left: 20px;
  top: 26px;
  width: 280px;
  bottom: 24px;
  opacity: 0.82;
}

/* Giant Traditional Remote Viewer Covering 74% of the Screen */
.legacy-viewer-win {
  position: relative;
  margin-left: auto;
  width: min(76%, 780px);
  min-height: 365px;
  background: #141416;
  border: 1px solid #3a3a3e;
  border-radius: 11px;
  box-shadow: -16px 20px 48px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.legacy-viewer-bar {
  height: 32px;
  padding: 0 12px;
  background: #242428;
  color: #e5e5ea;
  font-size: 0.71rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  white-space: nowrap;
}

.legacy-floating-strip {
  align-self: center;
  margin-top: 6px;
  padding: 3px 12px;
  border-radius: 6px;
  background: rgba(38, 38, 42, 0.95);
  border: 1px solid #48484e;
  color: #aeaeb2;
  font-size: 0.64rem;
  display: flex;
  gap: 10px;
  white-space: nowrap;
}

/* Shrunken 52% Nested Second Mac Desktop Inside Black Letterbox */
.legacy-letterbox {
  flex: 1;
  margin: 6px 14px 10px;
  border-radius: 6px;
  background: linear-gradient(160deg, #3b6998 0%, #705b6d 100%);
  border: 1px solid #3a3a40;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.nested-menubar {
  height: 18px;
  padding: 0 8px;
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.55rem;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nested-tiny-canvas {
  position: relative;
  flex: 1;
  padding: 12px 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  filter: blur(0.35px);
}

.tiny-win {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 5px;
  padding: 6px 8px;
  font-size: 0.52rem;
  line-height: 1.35;
  color: #333;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  width: 46%;
}

.tiny-win-bar {
  font-weight: 700;
  border-bottom: 1px solid #e5e5ea;
  padding-bottom: 3px;
  margin-bottom: 4px;
  font-size: 0.54rem;
}

.nested-second-dock {
  align-self: center;
  margin-bottom: 5px;
  padding: 3px 9px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.48);
  display: inline-flex;
  gap: 5px;
}

.nested-second-dock i {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  background: #ffffff;
  display: inline-block;
}

/* Callout Toast Bubble in Legacy Mode */
.legacy-pain-toast {
  position: absolute;
  z-index: 35;
  background: rgba(29, 29, 31, 0.92);
  color: #ffffff;
  border: 1px solid rgba(255, 59, 48, 0.55);
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease, left 0.4s ease, top 0.4s ease;
}

.legacy-pain-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Light Frosted Dock */
.dock-wrap {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: center;
  padding: 2px 16px 12px;
}

.frosted-dock {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.56);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.dock-remote-part {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.dock-sep {
  width: 1px;
  height: 26px;
  background: rgba(0, 0, 0, 0.16);
}

.dock-app {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: none;
  background: #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.14);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: transform 0.22s ease, width 0.28s ease, opacity 0.24s ease, margin 0.28s ease;
}

.dock-app:hover {
  transform: translateY(-3px) scale(1.05);
}

.dock-app.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #1d1d1f;
}

.red-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ff3b30;
  color: #fff;
  font-size: 0.63rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.red-dot.cleared {
  transform: scale(0);
  opacity: 0;
}

.corner-logo {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 13px;
  height: 13px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.32);
}

/* ============================================================================
   SECTIONS (Generous breathing room, everyday clarity)
   ============================================================================ */
.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--surface);
}

.sec-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}

.sec-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3.4vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.sec-head p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink-secondary);
}

/* 3 Everyday Feature Cards */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.soft-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-alt .soft-card {
  background: var(--card);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #e8f2ff;
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}

.soft-card h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.soft-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-secondary);
  line-height: 1.68;
}

/* Mobile / Tablet Highlight Card */
.mobile-showcase {
  margin-top: 24px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.mobile-showcase-title {
  margin: 0 0 10px;
  font-size: clamp(1.22rem, 4.6vw, 1.45rem);
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.mobile-showcase-desc {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.96rem;
}

.mobile-points {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 12px;
  font-size: 0.94rem;
  color: var(--ink-secondary);
}

.mobile-points li {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.mobile-points li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  transform: translateY(-1px);
}

.pad-illustration {
  background: #1d1d1f;
  border-radius: 20px;
  padding: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.pad-inner {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
}

.pad-tabs {
  background: #f2f2f7;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.74rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  white-space: nowrap;
}

.pad-tabs-left {
  display: flex;
  gap: 6px;
  align-items: center;
  min-width: 0;
  overflow: hidden;
}

.pad-tab-inactive {
  color: #86868b;
  padding: 0 6px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pad-status-online {
  color: #28cd41;
  font-weight: 600;
  flex-shrink: 0;
}

.pad-tab-pill {
  background: #ffffff;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.pad-content {
  padding: 22px;
  font-size: 0.84rem;
  color: #424245;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.gesture-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.g-chip {
  background: #f5f5f7;
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 0.76rem;
  color: var(--ink);
}

/* 3-Step Easy Setup */
.step-number {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.92rem;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}

.code-demo {
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-align: center;
}

/* ============================================================================
   DOWNLOAD CARDS
   ============================================================================ */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.dl-box {
  background: var(--surface);
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.dl-box.recommended {
  background: #ffffff;
  border-color: rgba(0, 113, 227, 0.35);
  box-shadow: 0 12px 34px rgba(0, 113, 227, 0.08);
}

.dl-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.dl-title {
  font-size: 1.12rem;
  font-weight: 600;
}

.rec-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e8f2ff;
  color: var(--blue);
  white-space: nowrap;
  flex-shrink: 0;
}

.dl-desc {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-secondary);
  line-height: 1.6;
}

.dl-box .btn {
  width: 100%;
}

.dl-actions-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.dl-alt-link {
  font-size: 0.78rem;
  color: var(--ink-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.dl-alt-link:hover {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================================
   FRIENDLY FAQ ACCORDION
   ============================================================================ */
.faq-wrap {
  max-width: 780px;
  margin: 48px auto 0;
  border-top: 1px solid var(--line-strong);
}

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

.faq-item summary {
  list-style: none;
  padding: 20px 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.faq-plus {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink-muted);
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.faq-item[open] .faq-plus {
  transform: rotate(45deg);
}

.faq-body {
  padding: 0 4px 22px;
  font-size: 0.92rem;
  color: var(--ink-secondary);
  line-height: 1.72;
}

.cmd-inline {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cmd-inline code {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--ink);
  min-width: 0;
  overflow-x: auto;
}

.prompt-drawer {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #424245;
  white-space: pre-wrap;
  max-height: 150px;
  overflow-y: auto;
}

.dl-sub-links {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  font-size: 0.86rem;
  color: var(--ink-secondary);
  text-align: center;
}

.dl-sub-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
}

.dl-sub-actions a {
  color: var(--blue);
  font-weight: 500;
  white-space: nowrap;
}

.dl-sub-actions a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.oss-cta-card {
  max-width: 780px;
  margin: 40px auto 0;
  padding: 26px 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.oss-cta-copy {
  flex: 1;
  min-width: 0;
}

.oss-cta-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.oss-cta-title svg {
  flex-shrink: 0;
}

.oss-cta-copy p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-secondary);
  line-height: 1.62;
}

.oss-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ============================================================================
   FOOTER
   ============================================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 44px;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

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

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

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

.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 5px;
  vertical-align: middle;
}

/* ============================================================================
   RESPONSIVE (Proportionally scaled MacBook stage + native mobile typography)
   ============================================================================ */
@media (max-width: 999px) {
  .mac-bezel {
    padding: 9px;
    border-radius: 20px;
  }

  .mac-stage-viewport {
    aspect-ratio: 960 / 500;
    border-radius: 11px;
  }

  .mac-wallpaper {
    width: 960px;
    transform-origin: top left;
  }
}

@media (max-width: 960px) {
  .cards-3,
  .mobile-showcase {
    grid-template-columns: 1fr;
  }

  .cards-3 {
    gap: 16px;
  }

  .dl-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mobile-showcase {
    padding: 28px 24px;
    gap: 26px;
  }

  .oss-cta-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 32px);
  }

  .nav-inner {
    height: 50px;
    gap: 10px;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    gap: 8px;
  }

  .btn-gh {
    padding: 6px 11px;
  }

  .btn-lang {
    padding: 6px 9px;
  }

  .lang-full-lbl {
    display: none;
  }

  .lang-short-lbl {
    display: inline;
  }

  .hero {
    padding: 28px 0 26px;
  }

  .hero-oss-pill {
    font-size: 0.76rem;
    padding: 5px 12px;
    margin-bottom: 14px;
  }

  .hero h1 {
    font-size: clamp(1.5rem, 7vw, 2.1rem);
    line-height: 1.22;
    margin-bottom: 14px;
  }

  .hero-sub {
    font-size: 0.96rem;
    line-height: 1.62;
    margin-bottom: 22px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
  }

  .hero-actions .btn-lg {
    width: 100%;
    max-width: 280px;
    padding: 13px 24px;
    font-size: 0.98rem;
  }

  .hero-reassure {
    font-size: 0.78rem;
    margin-bottom: 26px;
  }

  .stage-controls {
    gap: 10px;
    margin-bottom: 14px;
  }

  .seg-extra {
    display: none;
  }

  .seg-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 360px;
  }

  .seg-item {
    padding: 8px 10px;
    font-size: 0.82rem;
    white-space: nowrap;
    text-align: center;
  }

  .story-steps {
    min-height: 32px;
    width: 100%;
  }

  .story-pill {
    display: none;
    font-size: 0.8rem;
    padding: 5px 14px;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .story-pill.active {
    display: inline-flex;
    align-items: center;
  }

  .mac-bezel {
    padding: 6px;
    border-radius: 15px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.14), 0 3px 10px rgba(0, 0, 0, 0.08);
  }

  .mac-stage-viewport {
    border-radius: 10px;
  }

  .section {
    padding: 52px 0;
  }

  .sec-head {
    margin-bottom: 28px;
  }

  .sec-head p {
    font-size: 0.95rem;
  }

  .soft-card {
    padding: 22px 20px;
    border-radius: 18px;
    gap: 10px;
  }

  .soft-card h3 {
    font-size: 1.1rem;
  }

  .soft-card p {
    font-size: 0.9rem;
  }

  .mobile-showcase {
    margin-top: 16px;
    padding: 24px 18px;
    border-radius: 20px;
    gap: 20px;
  }

  .mobile-points {
    margin-top: 16px;
    gap: 10px;
    font-size: 0.9rem;
  }

  .pad-illustration {
    padding: 7px;
    border-radius: 16px;
  }

  .pad-tabs {
    padding: 7px 10px;
    font-size: 0.7rem;
  }

  .pad-content {
    padding: 16px 14px;
    min-height: auto;
    gap: 14px;
  }

  .gesture-chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  .g-chip {
    font-size: 0.74rem;
    padding: 7px 9px;
  }

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

  .dl-box {
    padding: 20px 18px;
    gap: 16px;
  }

  .dl-box.recommended {
    order: -1;
  }

  .faq-wrap {
    margin-top: 34px;
  }

  .faq-item summary {
    padding: 16px 2px;
    font-size: 0.94rem;
    line-height: 1.45;
    align-items: flex-start;
  }

  .faq-plus {
    line-height: 1.2;
  }

  .faq-body {
    font-size: 0.88rem;
    padding: 0 2px 18px;
  }

  .cmd-inline {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
  }

  .cmd-inline code {
    font-size: 0.78rem;
    white-space: nowrap;
    text-align: center;
    padding: 2px 0;
  }

  .cmd-inline .btn,
  #copy-prompt {
    width: 100%;
  }

  .dl-sub-links {
    margin-top: 16px;
    font-size: 0.82rem;
  }

  .oss-cta-card {
    margin-top: 30px;
    padding: 22px 18px;
    border-radius: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .oss-cta-title {
    font-size: 0.98rem;
    align-items: flex-start;
  }

  .oss-cta-copy p {
    font-size: 0.85rem;
  }

  .oss-cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .oss-cta-buttons .btn {
    width: 100%;
  }

  .footer {
    padding: 26px 0 36px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-links {
    gap: 10px 18px;
  }
}

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