/* Dysky's website: a minimal Windows 11 product page. Light and dark follow the system through light-dark(). */
:root {
  color-scheme: light dark;
  --bg: light-dark(#F7F8FB, #131419); --surface: light-dark(#FFFFFF, #1C1E24); --surface-hover: light-dark(#F3F4F7, #24262D);
  --card: light-dark(rgba(255, 255, 255, .78), rgba(255, 255, 255, .045));
  --line: light-dark(rgba(0, 0, 0, .08), rgba(255, 255, 255, .08)); --line-strong: light-dark(rgba(0, 0, 0, .14), rgba(255, 255, 255, .14));
  --text: light-dark(#1B1C20, #F2F3F5); --muted: light-dark(#575C67, #AEB3BD);
  --accent: light-dark(#3A66F0, #8FA9FF); --accent-hover: light-dark(#2D55D2, #A9BCFF); --on-accent: light-dark(#FFFFFF, #10131A);
  --c1: light-dark(#4C6AF0, #8FA9FF); --c2: light-dark(#1FA597, #5BD2C2); --c3: light-dark(#EE9F35, #F4C67C); --c4: light-dark(#DE5E7F, #F28DA9);
  --acrylic: light-dark(rgba(247, 248, 251, .76), rgba(19, 20, 25, .76));
  --subtle: light-dark(rgba(0, 0, 0, .04), rgba(255, 255, 255, .06));
  --bloom: .5;
  --flyout: light-dark(rgba(252, 252, 253, .86), rgba(40, 42, 48, .9));
  --shadow: 0 2px 8px light-dark(rgba(20, 30, 60, .08), rgba(0, 0, 0, .3)), 0 32px 80px light-dark(rgba(20, 30, 60, .2), rgba(0, 0, 0, .55));
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-d: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; --bloom: .42; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bloom: .42; } }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-d); line-height: 1.12; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
p { text-wrap: pretty; }
code { font: .92em ui-monospace, "Cascadia Mono", Consolas, monospace; }
svg[aria-hidden] { fill: currentColor; flex: none; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 20; padding: 10px 16px; border-radius: 6px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.skip:focus { top: 12px; }

/* Navigation: an acrylic bar that stays on top */
.nav { position: sticky; top: 0; z-index: 10; background: var(--acrylic); backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 16px var(--font-d); color: var(--text); text-decoration: none; }
.brand svg { width: 22px; height: 22px; fill: none; }
.nav nav { display: flex; gap: 24px; margin-left: 16px; }
.nav nav a { color: var(--text); text-decoration: none; font-size: 14px; }
.nav nav a:hover { color: var(--accent); }
.nav .end { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav .end .btn { margin-left: 12px; }

/* Language and theme: buttons that open WinUI-style flyouts, anchored under them */
.pick { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px; border: 0; border-radius: 6px; background: none; color: var(--text); font: 600 13px var(--font); cursor: pointer; }
.pick:hover, .pick:has(+ :popover-open) { background: var(--subtle); }
.pick svg { width: 18px; height: 18px; }
.pick .chev { width: 12px; height: 12px; opacity: .65; }
.theme svg[class^="t-"] { display: none; }
:root:not([data-theme]) .theme .t-system, :root[data-theme="light"] .theme .t-light, :root[data-theme="dark"] .theme .t-dark { display: block; }
#langPick { anchor-name: --langs; } #themePick { anchor-name: --themes; }
#langs { position-anchor: --langs; } #themes { position-anchor: --themes; }
.flyout { position: fixed; inset: auto; top: anchor(bottom); right: anchor(right); margin: 6px 0 0; min-width: 190px; padding: 4px; border-radius: 8px; border: 1px solid var(--line); background: var(--flyout); color: var(--text); backdrop-filter: blur(30px) saturate(1.8); -webkit-backdrop-filter: blur(30px) saturate(1.8); box-shadow: 0 8px 24px light-dark(rgba(0, 0, 0, .14), rgba(0, 0, 0, .45)); }
@supports not (anchor-name: --a) { .flyout { top: 58px; right: 16px; } }
.flyout:popover-open { animation: drop .16s ease-out; }
@keyframes drop { from { opacity: 0; translate: 0 -6px; } }
.flyout a, .flyout button { display: flex; align-items: center; gap: 12px; width: 100%; height: 36px; padding: 0 12px; border: 0; border-radius: 4px; background: none; color: var(--text); font: 14px var(--font); text-decoration: none; text-align: left; cursor: pointer; }
.flyout a:hover, .flyout button:hover { background: var(--subtle); color: var(--text); }
.flyout svg { width: 18px; height: 18px; }
.flyout .check { width: 16px; height: 16px; margin-left: auto; padding-left: 16px; box-sizing: content-box; color: var(--accent); visibility: hidden; }
.flyout [aria-current="true"] .check, .flyout [aria-checked="true"] .check { visibility: visible; }
@media (max-width: 760px) { .nav nav { display: none; } }

/* Buttons, as in WinUI: accent and standard */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 6px; font: 600 15px var(--font); text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); transition: background .15s; }
.btn svg { width: 20px; height: 20px; }
.btn:hover { color: var(--text); background: var(--surface-hover); }
.btn.accent { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.btn.accent:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn.small { height: 32px; padding: 0 14px; font-size: 14px; }
.btn.big { height: 44px; padding: 0 22px; }
.store img { display: block; height: 44px; width: auto; }

/* Hero: Dysky's own bloom, its four arcs blurred into light behind the live demo */
.hero { position: relative; isolation: isolate; overflow: clip; text-align: center; padding: 96px 0 80px; }
.bloom { position: absolute; inset: 0; z-index: -1; pointer-events: none; mask-image: linear-gradient(#000 60%, transparent); }
.bloom svg { position: absolute; left: 50%; top: 64%; width: max(1500px, 120vw); translate: -50% -50%; rotate: -18deg; filter: blur(64px); opacity: var(--bloom); will-change: transform; }
.eyebrow { margin: 0 0 16px; font-weight: 600; font-size: 15px; color: var(--accent); }
.hero h1 { font-size: clamp(42px, 7.4vw, 80px); font-weight: 700; }
.hero .lead { max-width: 660px; margin: 22px auto 0; font-size: clamp(17px, 2.1vw, 21px); color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 36px; }
.meta { margin: 14px 0 0; font-size: 13px; color: var(--muted); }

/* The live demo: the app itself in an iframe, laid out at 1180×740 and zoomed to fit (site.js), so it is drawn
   sharp at the size it shows; browsers whose zoom doesn't reach into frames get a scale transform instead */
.demo { margin: 64px auto 0; max-width: 1180px; }
.frame { --k: 1; position: relative; aspect-ratio: 1180 / 740; border-radius: 8px; overflow: hidden; background: light-dark(#ECEFF5, #1C1E24); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.frame iframe { position: absolute; left: 0; top: 0; width: 1180px; height: 740px; border: 0; transform-origin: 0 0; }
.frame.scaled iframe { transform: scale(var(--k)); }
.shapes { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 24px; padding: 4px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); }
.shapes button { height: 32px; padding: 0 14px; border: 0; border-radius: 5px; background: none; color: var(--text); font: 14px var(--font); cursor: pointer; }
.shapes button:hover { background: var(--subtle); }
.shapes button[aria-pressed="true"] { background: var(--surface); font-weight: 600; box-shadow: 0 0 0 1px var(--line), 0 1px 3px light-dark(rgba(0, 0, 0, .1), rgba(0, 0, 0, .4)); }
.shapes[hidden] { display: none; }
.demo figcaption { max-width: 620px; margin: 14px auto 0; font-size: 14px; color: var(--muted); }

/* Sections */
section:not(.hero) { padding: 88px 0; }
section h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 700; text-align: center; }
.features .lead { max-width: 620px; margin: 16px auto 0; text-align: center; font-size: 18px; color: var(--muted); }
.grid { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card { padding: 24px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); }
.card:nth-child(4n+1) { --tone: var(--c1); } .card:nth-child(4n+2) { --tone: var(--c2); }
.card:nth-child(4n+3) { --tone: var(--c3); } .card:nth-child(4n+4) { --tone: var(--c4); }
.ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; color: var(--tone); background: color-mix(in srgb, var(--tone) 14%, transparent); }
.ico svg { width: 24px; height: 24px; }
.card h3 { margin-top: 18px; font-size: 18px; font-weight: 600; }
.card p { margin: 8px 0 0; font-size: 15px; color: var(--muted); }
.panel { padding: 64px 32px; text-align: center; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.panel p { max-width: 640px; margin: 16px auto 28px; font-size: 18px; color: var(--muted); }
.panel .btn { color: var(--text); }

/* FAQ: WinUI expanders */
.faq .list { max-width: 820px; margin: 40px auto 0; display: grid; gap: 4px; }
.faq details { border-radius: 6px; background: var(--card); border: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; gap: 16px; padding: 16px 20px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 16px; height: 16px; margin-left: auto; transition: rotate .2s; }
.faq details[open] summary svg { rotate: 180deg; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* Footer */
.foot { padding: 32px 0 48px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.foot .brand { font: 600 14px var(--font); }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
.foot nav a { color: var(--muted); }
.foot nav a:hover { color: var(--text); }
.foot small { flex-basis: 100%; font-size: 12px; }

/* Text pages: privacy and 404 */
.page { max-width: 720px; padding: 72px 0 104px; }
.page.center { text-align: center; padding-top: 120px; }
.page h1 { font-size: clamp(34px, 5vw, 48px); font-weight: 700; }
.page h2 { margin-top: 40px; font-size: 22px; text-align: left; }
.page p { margin: 12px 0 0; }
.page .updated { color: var(--muted); }
.page .cta { margin-top: 32px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media (forced-colors: active) {
  .bloom { display: none; }
  .card, .panel, .faq details, .frame, .shapes, .btn, .flyout { border: 1px solid CanvasText; }
  .shapes button[aria-pressed="true"] { outline: 2px solid Highlight; }
}
