/* Xmac hero mockup (menu bar, Finder, dashboard) and typing demo, rendered inside .q-media / sections. */
:root { --mock-accent: #0071e3; }
.mac-screen {
  position: relative; margin: 0; aspect-ratio: 16 / 9;
  border-radius: inherit; overflow: hidden; box-shadow: none;
  background: radial-gradient(120% 90% at 20% 10%, #ffb88a 0%, #ff6a88 30%, #8a5cff 62%, #1c2a6b 100%);
}
.menubar { display: flex; align-items: center; gap: 18px; height: 28px; padding: 0 16px; font-size: 13px; color: #fff; background: rgba(0, 0, 0, 0.18); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); }
.menubar-apple { width: 13px; height: 15px; background: #fff; border-radius: 50% 50% 45% 45%; }
.menubar-app { font-weight: 700; }
.menubar-spacer { flex: 1; }
.menubar-xmac { padding: 1px 7px; border-radius: 5px; background: rgba(255, 255, 255, 0.25); font-weight: 600; }
.dashboard {
  position: absolute; top: 36px; right: 16px; width: min(330px, 58%);
  padding: 14px; border-radius: 18px; text-align: left; color: #1d1d1f;
  background: rgba(246, 246, 248, 0.78); backdrop-filter: blur(40px) saturate(180%); -webkit-backdrop-filter: blur(40px) saturate(180%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), inset 0 0 0 0.5px rgba(255, 255, 255, 0.6);
  font-size: 13px; display: grid; gap: 8px;
}
.dash-row { display: flex; align-items: center; gap: 8px; }
.dash-badge { margin-left: auto; padding: 2px 8px; border-radius: 6px; background: var(--mock-accent); color: #fff; font-size: 11px; font-weight: 600; }
.dash-tile { display: grid; gap: 6px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.72); }
.dash-label { font-weight: 600; font-size: 12px; }
.dash-meta { font-size: 11px; color: #6e6e73; }
.dash-ok { color: #1d9b4f; font-weight: 600; }
.dash-big { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dash-bar { height: 6px; border-radius: 3px; background: rgba(0, 0, 0, 0.08); overflow: hidden; }
.dash-bar span { display: block; height: 100%; border-radius: inherit; background: var(--mock-accent); }
.dash-drive { grid-template-columns: 1fr auto; align-items: center; }
@media (max-width: 600px) { .dashboard { left: 12px; right: 12px; width: auto; font-size: 12px; } .menubar span:nth-child(n+4):not(.menubar-spacer):not(.menubar-xmac):not(.menubar-cut):not(.menubar-clock) { display: none; } .mac-screen { aspect-ratio: 4 / 5; } }
/* Hero Finder window mockup: three items marked by ⌘X */
.finder { position: absolute; left: 6%; top: 18%; width: min(380px, 40%); border-radius: 14px; overflow: hidden; text-align: left; color: #1d1d1f; background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3); font-size: 13px; }
.finder-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
.finder-bar span { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.finder-bar span:nth-child(2) { background: #febc2e; }
.finder-bar span:nth-child(3) { background: #28c840; }
.finder-bar strong { margin-left: 10px; }
.finder-list { margin: 0; padding: 6px; list-style: none; }
.finder-list li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 7px; }
.finder-list li.is-cut { background: rgba(0, 113, 227, 0.12); color: rgba(29, 29, 31, 0.55); }
.fi { width: 18px; height: 22px; border-radius: 3px; background: #8e8e93; flex: none; }
.fi-pdf { background: #ff3b30; } .fi-img { background: #34c759; } .fi-doc { background: #0a84ff; } .fi-zip { background: #8e8e93; }
@media (max-width: 600px) { .finder { display: none; } }

/* ---------- Typing demo (keystrokes → Vietnamese output) ---------- */
.typing-demo { margin: 48px 0 0; padding: 28px 32px; border-radius: var(--q-r-card); background: var(--q-surface); text-align: left; }
.typing-keys { min-height: 24px; font: 15px/1.6 ui-monospace, "SF Mono", Menlo, monospace; color: var(--q-ink-3); }
.kbd-label { margin-right: 10px; }
.typing-output { margin-top: 10px; min-height: 1.3em; font: 600 clamp(26px, 4.5vw, 40px)/1.3 var(--q-font); }
.caret { display: inline-block; width: 3px; height: 0.9em; margin-left: 4px; vertical-align: -0.08em; background: var(--q-accent); border-radius: 2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 40px 0 0; text-align: center; }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; }
.stat dd { margin: 0; font: 700 28px/1.1 var(--q-font-round); }
.stat dt { color: var(--q-ink-3); font-size: 14px; }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } }
