@font-face {
    font-family: "DM Sans Variable";
    src: url("fonts/dm-sans-latin-variable.woff2") format("woff2-variations");
    font-style: normal;
    font-weight: 100 1000;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --scene-ink: #f7f3ff;
    --scene-ink-soft: #c4bdd0;
    --scene-ink-faint: #847d90;
    --scene-night: #0d0a13;
    --scene-night-2: #13101c;
    --scene-night-3: #1b1626;
    --scene-paper: #f1edf7;
    --scene-paper-ink: #17101f;
    --scene-paper-ink-2: #6e6677;
    --scene-paper-ink-3: #786f82;
    --scene-paper-ink-4: #83788e;
    --scene-paper-ink-5: #706778;
    --scene-paper-ink-6: #7a7182;
    --scene-paper-ink-7: #8a7d97;
    --scene-paper-line: rgba(23, 16, 31, 0.08);
    --scene-paper-fill: rgba(23, 16, 31, 0.10);
    --scene-paper-fill-soft: rgba(23, 16, 31, 0.05);
    --scene-window-line: rgba(22, 17, 31, 0.16);
    --scene-line: rgba(241, 235, 255, 0.13);
    --scene-line-strong: rgba(241, 235, 255, 0.23);
    --scene-glow: rgba(184, 133, 255, 0.16);
    --scene-shadow: rgba(0, 0, 0, 0.32);
    --scene-shadow-strong: rgba(0, 0, 0, 0.52);
    --scene-popover: rgba(13, 10, 19, 0.96);
    --scene-signal: #b885ff;
    --scene-signal-2: #ef62ce;
    --scene-blue: #58a9ef;
    --scene-yellow: #f0c638;
    --scene-green: #45c979;
    --scene-red: #ff5f57;
    --scene-amber: #febc2e;
    --scene-traffic-green: #28c840;
    --scene-white: #fff;
    --scene-chrome: #d9d5df;
    --scene-note-ink: #886a00;
    --scene-radius: 20px;
    --scene-ease: cubic-bezier(0.22, 0.82, 0.24, 1);
    font-family: "DM Sans Variable", "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { width: 100%; height: 100%; }
body { margin: 0; overflow: hidden; background: var(--scene-night); color: var(--scene-ink); }
button { font: inherit; }

.scene-demo {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    width: 100%;
    height: 100%;
    min-height: 440px;
    padding: clamp(12px, 2.4vw, 20px);
    background:
        radial-gradient(circle at 72% 5%, var(--scene-glow), transparent 34%),
        var(--scene-night);
}

.mac-frame {
    min-height: 0;
    overflow: hidden;
    border: 1px solid var(--scene-line-strong);
    border-radius: var(--scene-radius);
    background: var(--scene-night-2);
    box-shadow: 0 30px 65px var(--scene-shadow);
}

.menu-bar {
    display: flex;
    align-items: center;
    height: 34px;
    padding: 0 13px;
    border-bottom: 1px solid var(--scene-line);
    font-size: 9px;
    color: var(--scene-ink-soft);
}

.traffic { display: flex; gap: 5px; margin-right: 12px; }
.traffic i { width: 7px; height: 7px; border-radius: 50%; background: var(--scene-red); }
.traffic i:nth-child(2) { background: var(--scene-amber); }
.traffic i:nth-child(3) { background: var(--scene-traffic-green); }
.menu-status { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.menu-status img { width: 17px; height: 17px; }

.desktop { position: relative; height: calc(100% - 34px); min-height: 360px; overflow: hidden; }
.project-workspace, .away-workspace { position: absolute; inset: 0; transition: 650ms var(--scene-ease); }
.project-workspace { transform-origin: 32% 55%; }
.away-workspace { opacity: 0; transform: scale(1.03); }

.browser-window, .notes-window, .file-window, .away-workspace article {
    position: absolute;
    overflow: hidden;
    border: 1px solid var(--scene-window-line);
    border-radius: 13px;
    background: var(--scene-paper);
    color: var(--scene-paper-ink);
    box-shadow: 0 22px 52px var(--scene-shadow);
}

.browser-window { left: 4%; top: 9%; width: 67%; height: 73%; }
.browser-tabs { display: flex; align-items: end; gap: 4px; height: 34px; padding: 7px 11px 0; background: var(--scene-chrome); }
.browser-tabs span { display: flex; align-items: center; gap: 5px; height: 27px; padding: 0 9px; border-radius: 7px 7px 0 0; font-size: 8px; color: var(--scene-paper-ink-2); }
.browser-tabs span.active { background: var(--scene-paper); color: var(--scene-paper-ink); }
.browser-tabs i { width: 5px; height: 5px; border-radius: 2px; background: var(--scene-signal); }
.browser-tabs span + span i { background: var(--scene-green); }
.browser-bar { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 10px; border-bottom: 1px solid var(--scene-paper-line); font-size: 8px; color: var(--scene-paper-ink-3); }
.browser-bar span { flex: 1; padding: 4px 8px; border-radius: 6px; background: var(--scene-paper-fill-soft); }
.browser-page { display: grid; grid-template-columns: 26% 1fr; height: calc(100% - 62px); }
.browser-page aside { display: grid; align-content: start; gap: 9px; padding: 17px 12px; background: var(--scene-paper-fill-soft); }
.browser-page aside i, .browser-page div > span { display: block; height: 5px; border-radius: 5px; background: var(--scene-paper-fill); }
.browser-page div { padding: 18px; }
.browser-page small { font-size: 7px; letter-spacing: 0.18em; color: var(--scene-paper-ink-4); }
.browser-page h1 { margin: 6px 0 7px; font-size: clamp(16px, 2.3vw, 23px); letter-spacing: -0.04em; }
.browser-page p { margin: 0 0 17px; font-size: 8px; color: var(--scene-paper-ink-5); }
.browser-page div > span { width: 78%; margin-top: 9px; }
.browser-page div > span.short { width: 47%; }

.notes-window { left: 7%; bottom: 5%; width: 41%; height: 27%; }
.notes-window header { display: flex; align-items: center; gap: 6px; padding: 9px 11px; border-bottom: 1px solid var(--scene-paper-line); }
.notes-window header b { font-size: 8px; }
.notes-window header small { margin-left: auto; font-size: 7px; color: var(--scene-paper-ink-6); }
.notes-window p { margin: 8px 11px; font-size: 8px; line-height: 1.35; }
.notes-window p em { display: block; margin-bottom: 3px; font-size: 6px; font-style: normal; letter-spacing: 0.14em; color: var(--scene-paper-ink-7); }
.notes-window > i { display: block; width: 74%; height: 4px; margin: 6px 11px; border-radius: 4px; background: var(--scene-paper-fill); }
.notes-window > i:nth-of-type(2) { width: 52%; }

.file-window { right: 4%; bottom: 5%; display: flex; align-items: center; gap: 8px; width: 42%; min-height: 52px; padding: 9px 11px; }
.file-window div { display: grid; min-width: 0; }
.file-window b, .file-window small { font-size: 8px; }
.file-window small, .file-window em { color: var(--scene-paper-ink-6); }
.file-window em { margin-left: auto; overflow: hidden; font-size: 7px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }

.app-icon { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 7px; background: var(--scene-blue); color: var(--scene-white); font-size: 10px; font-weight: 700; }
.app-icon.notes { background: linear-gradient(var(--scene-yellow) 0 28%, var(--scene-white) 28%); color: var(--scene-note-ink); }
.app-icon.numbers { background: var(--scene-green); }
.app-icon.safari { background: var(--scene-blue); }

.away-workspace article { inset: 12% 8% 10% 6%; display: grid; grid-template-columns: 25% 1fr; }
.away-workspace aside { display: grid; align-content: start; gap: 11px; padding: 20px 14px; background: var(--scene-paper-fill-soft); }
.away-workspace aside i, .away-workspace div > i { height: 6px; border-radius: 6px; background: var(--scene-paper-fill); }
.away-workspace article > div { padding: 22px; }
.away-workspace small { font-size: 7px; letter-spacing: 0.16em; color: var(--scene-paper-ink-4); }
.away-workspace h2 { margin: 7px 0; font-size: 20px; }
.away-workspace p { margin: 0 0 18px; font-size: 9px; color: var(--scene-paper-ink-5); }
.away-workspace div > i { display: block; width: 72%; margin: 8px 0; }

.scene-popover {
    position: absolute;
    z-index: 4;
    top: 7%;
    right: 3.5%;
    width: min(47%, 298px);
    overflow: hidden;
    border: 1px solid var(--scene-line-strong);
    border-radius: 18px;
    background: var(--scene-popover);
    box-shadow: 0 26px 64px var(--scene-shadow-strong);
    backdrop-filter: blur(18px);
}

.scene-brand { display: flex; align-items: center; gap: 8px; padding: 11px 12px; border-bottom: 1px solid var(--scene-line); }
.scene-brand img { width: 25px; height: 25px; }
.scene-brand div { display: grid; min-width: 0; }
.scene-brand strong { font-size: 11px; }
.scene-brand small { overflow: hidden; font-size: 7px; color: var(--scene-ink-faint); text-overflow: ellipsis; white-space: nowrap; }
.scene-brand > span { margin-left: auto; font-size: 6px; font-weight: 700; letter-spacing: 0.14em; color: var(--scene-ink-faint); }

.capture-view, .recent-view { padding: 11px; transition: opacity 220ms ease, transform 360ms var(--scene-ease); }
.capture-name { display: flex; align-items: center; height: 34px; padding: 0 11px; border-radius: 10px; background: var(--scene-night-3); font-size: 12px; font-weight: 650; }
.capture-name i { width: 1px; height: 16px; margin-left: 2px; background: var(--scene-signal); animation: caret 1s steps(1) infinite; }
.included-head, .recent-head { display: flex; justify-content: space-between; margin: 12px 1px 7px; font-size: 6px; letter-spacing: 0.12em; color: var(--scene-ink-faint); }
.included-head b, .recent-head b { font-weight: 500; letter-spacing: 0; }
.app-list { overflow: hidden; border-radius: 11px; background: var(--scene-night-2); }
.app-list > div { display: grid; grid-template-columns: 22px 1fr auto 18px; align-items: center; gap: 7px; min-height: 37px; padding: 6px 8px; }
.app-list strong { font-size: 9px; }
.app-list small { font-size: 7px; color: var(--scene-ink-faint); }
.app-list > div > i { font-size: 9px; font-style: normal; color: var(--scene-ink-soft); }

.scene-action, .capsule-row button { border: 0; cursor: pointer; }
.scene-action { display: flex; justify-content: space-between; align-items: center; width: 100%; height: 36px; margin-top: 9px; padding: 0 12px; border-radius: 10px; background: var(--scene-paper); color: var(--scene-paper-ink); font-size: 9px; font-weight: 650; }
.scene-action:hover, .scene-action:focus-visible { background: var(--scene-white); }
.scene-action:focus-visible, .capsule-row button:focus-visible { outline: 2px solid var(--scene-signal); outline-offset: 2px; }
.scene-action:disabled, .capsule-row button:disabled { cursor: wait; opacity: 0.72; }

.recent-view { position: absolute; inset: 48px 0 auto; opacity: 0; pointer-events: none; transform: translateY(9px); }
.capsule-row { display: flex; align-items: center; gap: 8px; padding: 9px; border-radius: 11px; background: var(--scene-night-2); }
.capsule-row > div { display: grid; gap: 5px; min-width: 0; }
.capsule-row strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.capsule-row div > span { display: flex; align-items: center; }
.capsule-row small { margin-left: 6px; font-size: 6px; color: var(--scene-ink-faint); }
.app-dot { width: 12px; height: 12px; margin-right: -3px; border: 1px solid var(--scene-night-2); border-radius: 4px; background: var(--scene-blue); }
.app-dot.notes { background: var(--scene-yellow); }
.app-dot.numbers { background: var(--scene-green); }
.capsule-row button { display: flex; align-items: center; gap: 4px; margin-left: auto; padding: 7px 9px; border-radius: 999px; background: var(--scene-paper); color: var(--scene-paper-ink); font-size: 8px; font-weight: 650; }
.recent-view > p { margin: 8px 2px 1px; font-size: 7px; color: var(--scene-ink-faint); }

.demo-steps { display: flex; justify-content: center; gap: 20px; padding-top: 11px; color: var(--scene-ink-faint); font-size: 8px; font-weight: 600; }
.demo-steps span { display: flex; align-items: center; gap: 5px; transition: color 220ms ease; }
.demo-steps i { display: grid; place-items: center; width: 15px; height: 15px; border: 1px solid var(--scene-line-strong); border-radius: 50%; font-size: 7px; font-style: normal; }
.scene-demo[data-state="ready"] [data-step="capture"], .scene-demo[data-state="saving"] [data-step="capture"], .scene-demo[data-state="saved"] [data-step="away"], .scene-demo[data-state="returning"] [data-step="return"], .scene-demo[data-state="returned"] [data-step="return"] { color: var(--scene-ink); }

.scene-demo[data-state="saved"] .project-workspace, .scene-demo[data-state="returning"] .project-workspace { opacity: 0; transform: scale(0.96); }
.scene-demo[data-state="saved"] .away-workspace, .scene-demo[data-state="returning"] .away-workspace { opacity: 1; transform: none; }
.scene-demo[data-state="returning"] .away-workspace { opacity: 0; transform: scale(1.03); }
.scene-demo[data-state="returned"] .project-workspace { animation: workspace-return 700ms var(--scene-ease) both; }
.scene-demo[data-state="saved"] .capture-view, .scene-demo[data-state="returning"] .capture-view, .scene-demo[data-state="returned"] .capture-view { opacity: 0; pointer-events: none; transform: translateY(-8px); }
.scene-demo[data-state="saved"] .recent-view, .scene-demo[data-state="returning"] .recent-view, .scene-demo[data-state="returned"] .recent-view { opacity: 1; pointer-events: auto; transform: none; }
.scene-demo[data-state="saving"] .scene-action b { animation: nudge 600ms ease infinite alternate; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@keyframes caret { 50% { opacity: 0; } }
@keyframes nudge { to { transform: translateX(3px); } }
@keyframes workspace-return { from { opacity: 0; transform: translateY(10px) scale(0.97); } to { opacity: 1; transform: none; } }

@media (max-width: 520px) {
    .browser-window { left: 3%; width: 82%; }
    .notes-window, .file-window { display: none; }
    .scene-popover { top: 8%; right: 4%; width: 64%; }
}

@media (max-width: 390px) {
    .scene-demo { padding: 10px; }
    .scene-popover { left: 5%; right: 5%; width: auto; }
    .browser-window { left: 4%; top: 5%; width: 92%; opacity: 0.38; }
    .scene-brand { padding: 10px; }
    .capture-view, .recent-view { padding: 10px; }
    .demo-steps { gap: 10px; }
}

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