/* Home page: hero, live desktop and sections. */
.home-hero { position: relative; border-bottom: 1px solid var(--line); background-color: var(--bg); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M40 0H0v40' fill='none' stroke='%23121417' stroke-opacity='.06'/%3E%3C/svg%3E"); }
:root[data-theme="dark"] .home-hero { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M40 0H0v40' fill='none' stroke='%23ecebe6' stroke-opacity='.05'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .home-hero { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M40 0H0v40' fill='none' stroke='%23ecebe6' stroke-opacity='.05'/%3E%3C/svg%3E"); } }
.home-in { max-width: var(--w); margin: 0 auto; padding: 0 var(--gut); }
.hero-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: end; padding: 44px 0 32px; }
.hero-top h1 { font-size: clamp(2.5rem, 5.2vw, 4.2rem); max-width: 13ch; }
.hero-top h1 em { font-style: normal; color: var(--accent); }
.hero-lede { font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--ink-2); margin: 22px 0 0; max-width: 56ch; }
.hero-side { padding-bottom: 6px; }
.hero-k { margin: 0 0 8px; font: 600 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.hero-side .cmdline { margin: 0 0 14px; padding: 8px 8px 8px 16px; }
.hero-side .cmdline code { font-size: 14px !important; }
.hero-side .btn-row { margin: 0 0 18px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--ink-3); }
.hero-facts li { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.hero-facts b { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 5px 12px 5px 6px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; color: var(--ink-2); text-decoration: none; }
.hero-badge:hover { color: var(--ink); border-color: var(--line-2); }
.hero-badge span { padding: 2px 8px; border-radius: 99px; background: var(--ink); color: var(--bg); font: 600 11px var(--mono); }
@media (max-width: 960px) { .hero-top { grid-template-columns: 1fr; gap: 26px; padding-top: 40px; } }

/* ── the live desktop ─────────────────────────────────────────────────── */
.dt { display: grid; grid-template-columns: minmax(0, 1fr) 272px; gap: 18px; padding: 0 0 56px; }
@media (max-width: 1000px) { .dt { grid-template-columns: 1fr; } }

.dt-frame { align-self: start; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow-l); overflow: hidden; }
.dt-chrome { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--raised); }
.dt-chrome span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.dt-chrome p { margin: 0 0 0 10px; font: 500 12px var(--mono); color: var(--ink-3); }
.dt-stage { position: relative; aspect-ratio: 16 / 10; container-type: inline-size; overflow: hidden; background: #c7d5e8; font-family: 'Segoe UI Variable', 'Segoe UI', var(--sans); color: #1b1b1b; user-select: none; }
.dt-wall i { position: absolute; border-radius: 50%; }
.dt-wall .w1 { width: 70cqw; height: 70cqw; left: 38cqw; top: -18cqw; background: #a9bfdf; }
.dt-wall .w2 { width: 46cqw; height: 46cqw; left: 52cqw; top: 6cqw; background: #7f9fd0; }
.dt-wall .w3 { width: 26cqw; height: 26cqw; left: 64cqw; top: 16cqw; background: #4c74b8; }
.dt-wall .w4 { width: 50cqw; height: 50cqw; left: -16cqw; top: 26cqw; background: #b9cbe4; }
.dt-icons { position: absolute; left: 1.4cqw; top: 1.6cqw; display: grid; gap: 1.3cqw; }
.dt-ic { display: flex; flex-direction: column; align-items: center; gap: .5cqw; width: 8cqw; font-size: max(7px, 1.12cqw); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .55); text-align: center; line-height: 1.2; }
.dt-ici { width: 4.2cqw; height: 4.2cqw; border-radius: .5cqw; background: #f4f4f4; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); position: relative; }
.dt-bin { background: #e8eef6; border-radius: .4cqw .4cqw .9cqw .9cqw; }
.dt-xls { background: #1f7a45; } .dt-txt { background: #f4f4f4; } .dt-jpg { background: #e1a33b; }
.dt-ext { font-weight: 400; display: inline-block; max-width: 0; overflow: hidden; vertical-align: bottom; transition: max-width .4s var(--ease); }
.dt-stage[data-on~="ShowKnownFileExt"] .dt-ext { max-width: 6em; }
.dt-start { position: absolute; left: 50%; bottom: 7.4cqw; width: 54cqw; transform: translateX(-50%); padding: 2.2cqw 2.6cqw 0; border-radius: 1.2cqw; background: rgba(243, 243, 243, .96); border: 1px solid rgba(0, 0, 0, .08); box-shadow: 0 2cqw 5cqw rgba(0, 0, 0, .28); transition: left .5s var(--ease), transform .5s var(--ease), background .4s, color .4s; }
.dt-ss { display: flex; align-items: center; gap: .9cqw; height: 3.4cqw; padding: 0 1.4cqw; border-radius: 3cqw; background: #fff; border: 1px solid rgba(0, 0, 0, .1); border-bottom: 2px solid #3d6fc4; font-size: max(7px, 1.12cqw); color: #666; margin-bottom: 1.8cqw; }
.dt-sh { display: flex; justify-content: space-between; align-items: center; font-size: max(7px, 1.15cqw); margin: 0 .6cqw 1cqw; }
.dt-sh span { padding: .25cqw .8cqw; border-radius: .4cqw; background: rgba(255, 255, 255, .8); font-size: max(6px, .95cqw); }
.dt-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .6cqw .2cqw; margin-bottom: 1.6cqw; }
.dt-tile { display: flex; flex-direction: column; align-items: center; gap: .55cqw; padding: .8cqw .2cqw; border-radius: .6cqw; font-size: max(6.5px, 1cqw); text-align: center; line-height: 1.15; }
.dt-ti { display: grid; place-items: center; width: 3.7cqw; height: 3.7cqw; border-radius: .8cqw; background: var(--tc); color: #fff; }
.dt-ti svg { width: 2.1cqw; height: 2.1cqw; }
.dt-tl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.dt-rec { padding-bottom: .5cqw; }
.dt-recl { display: grid; grid-template-columns: 1fr 1fr; gap: .6cqw 1.6cqw; margin-bottom: 1.6cqw; }
.dt-ri { display: flex; align-items: center; gap: 1cqw; padding: .6cqw .7cqw; border-radius: .6cqw; font-size: max(6.5px, 1cqw); line-height: 1.25; }
.dt-ri span { display: flex; flex-direction: column; }
.dt-ri b { font-weight: 600; } .dt-ri em { font-style: normal; color: #6a6a6a; }
.dt-rf { width: 2.6cqw; height: 2.6cqw; border-radius: .4cqw; flex-shrink: 0; }
.dt-tip { background: #2b6fd6; border-radius: 50%; } .dt-promo { background: #c4462a; }
.dt-sf { display: flex; align-items: center; gap: 1cqw; margin: 0 -2.6cqw; padding: 1.4cqw 3.4cqw; border-top: 1px solid rgba(0, 0, 0, .08); background: rgba(235, 235, 235, .9); border-radius: 0 0 1.2cqw 1.2cqw; font-size: max(7px, 1.05cqw); }
.dt-av { width: 2.6cqw; height: 2.6cqw; border-radius: 50%; background: #8aa1c4; }
.dt-pw { margin-left: auto; width: 1.8cqw; height: 1.8cqw; border-radius: 50%; border: 2px solid #555; border-top-color: transparent; }
.dt-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 6cqw; display: flex; align-items: center; padding: 0 1cqw; background: rgba(243, 243, 243, .97); border-top: 1px solid rgba(0, 0, 0, .08); transition: background .4s, color .4s; }
.dt-wid { display: flex; align-items: center; gap: .8cqw; font-size: max(6.5px, .95cqw); line-height: 1.2; width: 12cqw; }
.dt-wid span { display: flex; flex-direction: column; } .dt-wid em { font-style: normal; color: #666; }
.dt-sun { width: 2.4cqw; height: 2.4cqw; border-radius: 50%; background: #f2b632; box-shadow: 0 0 0 .4cqw rgba(242, 182, 50, .25); }
.dt-mid { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: .35cqw; transition: left .5s var(--ease), transform .5s var(--ease); }
.dt-tb { display: grid; place-items: center; width: 4.2cqw; height: 4.2cqw; border-radius: .6cqw; color: var(--tc, #333); }
.dt-tb svg { width: 2.4cqw; height: 2.4cqw; }
.dt-win { grid-template-columns: 1cqw 1cqw; gap: .15cqw; place-content: center; }
.dt-win i { width: 1cqw; height: 1cqw; background: #2f7fd6; border-radius: .1cqw; }
.dt-search { display: flex; align-items: center; gap: .7cqw; height: 3.6cqw; width: 18cqw; padding: 0 .6cqw 0 1.2cqw; border-radius: 3cqw; background: #fff; border: 1px solid rgba(0, 0, 0, .1); font-size: max(7px, 1.05cqw); color: #555; overflow: hidden; transition: width .45s var(--ease), padding .45s var(--ease); }
.dt-sl { flex: 1; white-space: nowrap; }
.dt-hl { width: 4.4cqw; height: 2.4cqw; border-radius: 1.4cqw; background: #e5ecf9; position: relative; }
.dt-hl::after { content: ''; position: absolute; inset: .5cqw 1.3cqw; border-radius: .3cqw; background: #7c9fdd; }
.dt-stage[data-on~="ShowSearchIconTb"] .dt-search { width: 4.2cqw; padding: 0 1.15cqw; background: transparent; border-color: transparent; }
.dt-stage[data-on~="ShowSearchIconTb"] .dt-sl, .dt-stage[data-on~="ShowSearchIconTb"] .dt-hl { display: none; }
.dt-tv i { display: block; width: 1.6cqw; height: 1.2cqw; border: .2cqw solid #444; border-radius: .2cqw; position: absolute; }
.dt-tv { position: relative; } .dt-tv i:first-child { transform: translate(-.4cqw, -.3cqw); } .dt-tv i:last-child { transform: translate(.4cqw, .3cqw); background: rgba(243, 243, 243, .97); }
.dt-cop i { width: 2.4cqw; height: 2.4cqw; border-radius: .9cqw .3cqw .9cqw .3cqw; background: #2a8bd8; box-shadow: inset -.6cqw -.6cqw 0 #8a5bd8; transform: rotate(-12deg); }
.dt-tray { margin-left: auto; display: flex; align-items: center; gap: .9cqw; font-size: max(6.5px, .92cqw); text-align: right; line-height: 1.25; }
.dt-net, .dt-vol { width: 1.5cqw; height: 1.5cqw; border: .2cqw solid #333; border-radius: 50% 50% 0 0; border-bottom: 0; }
.dt-vol { border-radius: .2cqw; width: 1.2cqw; }
/* alignment, dark mode */
.dt-stage[data-on~="TaskbarAlignLeft"] .dt-mid { left: 1cqw; transform: none; }
.dt-stage[data-on~="TaskbarAlignLeft"] .dt-start { left: 1cqw; transform: none; }
.dt-stage[data-on~="TaskbarAlignLeft"] .dt-wid { order: 2; margin-left: auto; width: auto; }
.dt-stage[data-on~="TaskbarAlignLeft"] .dt-tray { order: 3; margin-left: 2cqw; }
.dt-stage[data-on~="EnableDarkMode"] .dt-start { background: rgba(40, 40, 40, .97); color: #f2f2f2; border-color: rgba(255, 255, 255, .08); }
.dt-stage[data-on~="EnableDarkMode"] .dt-ss { background: #2d2d2d; color: #bbb; border-color: rgba(255, 255, 255, .08); border-bottom-color: #6ea1ff; }
.dt-stage[data-on~="EnableDarkMode"] .dt-sh span { background: rgba(255, 255, 255, .08); }
.dt-stage[data-on~="EnableDarkMode"] .dt-ri em, .dt-stage[data-on~="EnableDarkMode"] .dt-wid em { color: #aaa; }
.dt-stage[data-on~="EnableDarkMode"] .dt-sf { background: rgba(32, 32, 32, .95); border-color: rgba(255, 255, 255, .06); }
.dt-stage[data-on~="EnableDarkMode"] .dt-pw { border-color: #ccc; border-top-color: transparent; }
.dt-stage[data-on~="EnableDarkMode"] .dt-bar { background: rgba(32, 32, 32, .97); color: #eee; border-color: rgba(255, 255, 255, .06); }
.dt-stage[data-on~="EnableDarkMode"] .dt-search { background: #2d2d2d; color: #bbb; border-color: rgba(255, 255, 255, .08); }
.dt-stage[data-on~="EnableDarkMode"] .dt-tb { color: var(--tc, #ddd); }
.dt-stage[data-on~="EnableDarkMode"] .dt-tv i { border-color: #ddd; } .dt-stage[data-on~="EnableDarkMode"] .dt-tv i:last-child { background: #202020; }
.dt-stage[data-on~="EnableDarkMode"] .dt-net, .dt-stage[data-on~="EnableDarkMode"] .dt-vol { border-color: #ddd; }
.dt-stage[data-on~="EnableDarkMode"] .dt-tb[style*="#2e2f33"] { --tc: #ddd; }
/* removal */
.dt [data-remove] { transition: opacity .35s var(--ease), transform .35s var(--ease); }
.dt .is-going { opacity: 0; transform: scale(.7); }
.dt .is-gone { display: none !important; }
.dt .is-flash { animation: dtflash .9s var(--ease); }
@keyframes dtflash { 0% { box-shadow: 0 0 0 0 var(--accent); } 40% { box-shadow: 0 0 0 .5cqw color-mix(in srgb, var(--accent) 60%, transparent); } 100% { box-shadow: 0 0 0 0 transparent; } }
/* simulated console */
.dt-log { position: absolute; left: 2cqw; top: 2cqw; width: 46cqw; max-height: 44cqw; display: flex; flex-direction: column; border-radius: .8cqw; background: rgba(12, 12, 14, .94); color: #e8e6df; box-shadow: 0 2cqw 5cqw rgba(0, 0, 0, .4); font: max(7px, 1.05cqw)/1.5 var(--mono); overflow: hidden; z-index: 5; }
.dt-log[hidden] { display: none; }
.dt-log-h { margin: 0; padding: .8cqw 1.4cqw; border-bottom: 1px solid #2a2c30; color: #9aa0a8; display: flex; justify-content: space-between; }
.dt-log-h span { color: var(--accent); }
.dt-log ol { list-style: none; margin: 0; padding: 1cqw 1.4cqw; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; flex: 1; }
.dt-log li { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: fade .2s ease; }
.dt-log li.ok { color: #7bd88f; } .dt-log li.dim { color: #8b9099; } .dt-log li.hl { color: #ffb38a; }
/* control panel */
.dt-panel { align-self: start; padding: 16px 16px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.dt-ph { margin: 0; font-weight: 720; font-size: 1.05rem; letter-spacing: -.015em; }
.dt-pd { margin: 2px 0 12px; font-size: 13.5px; color: var(--ink-3); }
.dt-actions { display: flex; gap: 8px; margin-bottom: 12px; }
.dt-actions .btn { height: 38px; font-size: 14px; padding: 0 14px; }
.dt-actions .dt-run { flex: 1; justify-content: center; }
.dt-group { border: 0; margin: 0 0 6px; padding: 0; }
.dt-group legend { padding: 8px 0 4px; font: 600 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.dt-tg { display: flex; align-items: center; gap: 10px; padding: 4px 4px; border-radius: 8px; cursor: pointer; }
.dt-tg:hover { background: var(--bg-2); }
.dt-tg input { position: absolute; opacity: 0; pointer-events: none; }
.dt-sw { flex-shrink: 0; position: relative; width: 30px; height: 18px; border-radius: 99px; background: var(--line-2); transition: background .2s; }
.dt-sw::after { content: ''; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .2s var(--ease); }
.dt-tg input:checked + .dt-sw { background: var(--accent); }
.dt-tg input:checked + .dt-sw::after { transform: translateX(12px); }
.dt-tg input:focus-visible + .dt-sw { outline: 2px solid var(--accent); outline-offset: 2px; }
.dt-tgl { display: flex; flex-direction: column; min-width: 0; font-size: 13.5px; line-height: 1.25; }
.dt-tgt { font-weight: 560; }
.dt-tgl code { font-size: 11px !important; background: none !important; border: 0 !important; padding: 0 !important; color: var(--ink-3) !important; }
.dt-cmd { margin-top: 10px; padding: 10px 10px 10px 12px; border-radius: 10px; background: var(--code-bg); display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: center; }
.dt-cmd p { grid-column: 1 / -1; margin: 0; font: 500 11px var(--mono); color: var(--code-3); }
.dt-cmd code { font-size: 11.5px !important; color: var(--code-ink) !important; background: none !important; border: 0 !important; padding: 0 !important; word-break: break-all; line-height: 1.5; }

/* ── sections ─────────────────────────────────────────────────────────── */
.h-sec { padding: 72px 0; border-bottom: 1px solid var(--line); }
.h-sec:last-of-type { border-bottom: 0; }
.h-sec-alt { background: var(--bg-2); }
.h-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; margin-bottom: 30px; }
.h-head h2 { margin: 0; font-size: clamp(1.7rem, 3.2vw, 2.5rem); letter-spacing: -.035em; max-width: 18ch; }
.h-head p { margin: 0; color: var(--ink-2); max-width: 56ch; }
.h-num { display: block; margin-bottom: 14px; font: 600 12px var(--mono); letter-spacing: .08em; color: var(--accent-ink); }
@media (max-width: 860px) { .h-head { grid-template-columns: 1fr; } .h-sec { padding: 52px 0; } }
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 960px) { .ways { grid-template-columns: 1fr; } }
.way { display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); }
.way-k { font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 6px; }
.way h3 { margin: 0 0 8px; }
.way p { color: var(--ink-2); font-size: 15px; }
.way .code, .way .cmdline { margin: auto 0 0; }
.way-best { border-color: var(--ink); box-shadow: var(--shadow); }
.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@media (max-width: 1000px) { .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .cats { grid-template-columns: 1fr; } }
.cat { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px 20px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); min-height: 168px; transition: background .15s; }
a.cat:hover { background: var(--raised); color: var(--ink); }
.cat-n { font: 700 34px/1 var(--sans); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.cat-t { font-weight: 680; font-size: 15.5px; }
.cat-d { font-size: 13.5px; color: var(--ink-3); line-height: 1.45; }
.cat-m { margin-top: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 48px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split .deflist { margin-top: 0; }
.bignum { display: flex; align-items: baseline; gap: 12px; margin: 0 0 6px; }
.bignum b { font: 760 clamp(3rem, 7vw, 5rem)/1 var(--sans); letter-spacing: -.05em; }
.bignum span { font-weight: 600; color: var(--ink-2); }
.risk { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .risk { grid-template-columns: 1fr; } }
.risk .panel h3 { display: flex; align-items: center; gap: 8px; }
.home-faq { max-width: 860px; }
.hero-top > div, .dt > *, .split > *, .h-head > *, .ways > *, .risk > * { min-width: 0; }
.hero-badge { max-width: 100%; }
@media (max-width: 520px) { .hero-badge { font-size: 12px; } .hero-side .btn-row .btn { flex: 1 1 100%; justify-content: center; } }
