/* Swift Download Manager: the website.
   One stylesheet, no frameworks, nothing loaded from other sites. Light and dark follow the visitor's system
   (or the switch in the header); every animation is switched off for people who ask their system for less motion. */

:root {
  --bg: #fbfbfd;
  --bg-2: #f3f3f8;
  --card: #ffffff;
  --card-2: #f7f7fb;
  --ink: #15151c;
  --ink-2: #4a4a5a;
  --ink-3: #747486;
  --line: rgba(21, 21, 40, .1);
  --line-2: rgba(21, 21, 40, .16);
  --accent: #ff385c;
  --accent-2: #ff7a45;
  --accent-3: #8b5cf6;
  --accent-ink: #d70466;
  --on-accent: #fff;
  --win: #0067c0;
  --win-2: #4cc2ff;
  --good: #16a34a;
  --glow-a: rgba(255, 56, 92, .22);
  --glow-b: rgba(139, 92, 246, .18);
  --glow-c: rgba(255, 149, 0, .16);
  --shadow-s: 0 1px 2px rgba(20, 20, 40, .06), 0 2px 8px rgba(20, 20, 40, .05);
  --shadow-m: 0 8px 30px rgba(20, 20, 40, .1);
  --shadow-l: 0 30px 80px -20px rgba(30, 20, 60, .35), 0 12px 30px -12px rgba(30, 20, 60, .25);
  --glass: rgba(255, 255, 255, .72);
  --grid-line: rgba(21, 21, 40, .05);
  --code-bg: #14141c;
  --code-ink: #e8e8f2;
  --radius: 20px;
  --radius-s: 12px;
  --max: 1180px;
  --font: "Segoe UI Variable Display", "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #09090d;
  --bg-2: #101016;
  --card: #14141c;
  --card-2: #1a1a24;
  --ink: #f4f4f9;
  --ink-2: #b9b9c8;
  --ink-3: #8a8a9c;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --accent-ink: #ff7a93;
  --glow-a: rgba(255, 56, 92, .28);
  --glow-b: rgba(139, 92, 246, .26);
  --glow-c: rgba(255, 149, 0, .14);
  --shadow-s: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow-m: 0 10px 34px rgba(0, 0, 0, .5);
  --shadow-l: 0 40px 90px -20px rgba(0, 0, 0, .8), 0 12px 30px -12px rgba(0, 0, 0, .7);
  --glass: rgba(20, 20, 28, .66);
  --grid-line: rgba(255, 255, 255, .045);
  --code-bg: #0c0c12;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, video, picture { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 70%, #fff); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--max), 100% - 48px); margin-inline: auto; }
.ico { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ------------------------------------------------------------------ header */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.nav.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -16px rgba(0, 0, 0, .4); }
.nav .in { display: flex; align-items: center; gap: 22px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -.01em; text-decoration: none; font-size: 18px; }
.brand .mark { width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(140deg, #ff4d73, #e31c5f 55%, #c2124f); display: grid; place-items: center; color: #fff; box-shadow: 0 6px 16px -6px rgba(227, 28, 95, .8), inset 0 1px 0 rgba(255, 255, 255, .35); }
.brand .mark svg { width: 21px; height: 21px; stroke-width: 2.2; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0 0 0 14px; padding: 0; }
.nav ul a { display: block; padding: 8px 13px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 550; color: var(--ink-2); transition: color .15s, background .15s; }
.nav ul a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.nav ul a.on { color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.nav .grow { flex: 1; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; transition: transform .15s, border-color .15s, background .15s; }
.icon-btn:hover { border-color: var(--line-2); transform: translateY(-1px); }
.icon-btn .sun { display: none; }
:root[data-theme="dark"] .icon-btn .sun { display: block; }
:root[data-theme="dark"] .icon-btn .moon { display: none; }
.stars { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); text-decoration: none; font-size: 14.5px; font-weight: 600; transition: border-color .15s, transform .15s; }
.stars:hover { border-color: var(--line-2); transform: translateY(-1px); }
.stars .n { color: var(--ink-3); font-weight: 600; padding-left: 8px; border-left: 1px solid var(--line); }
.burger { display: none; }

/* ------------------------------------------------------------------ buttons */
.btn { --h: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: var(--h); padding: 0 26px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font-weight: 650; font-size: 16.5px; text-decoration: none; white-space: nowrap; transition: transform .18s cubic-bezier(.2, .8, .2, 1), box-shadow .2s, background .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-m); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.sm { --h: 42px; padding: 0 18px; font-size: 15px; }
.btn.primary { position: relative; border: 0; color: #fff; background: linear-gradient(135deg, #ff4d73 0%, #e31c5f 50%, #c2124f 100%); box-shadow: 0 12px 30px -10px rgba(227, 28, 95, .75), inset 0 1px 0 rgba(255, 255, 255, .35); overflow: hidden; }
.btn.primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .38) 48%, transparent 66%); transform: translateX(-120%); }
.btn.primary:hover { box-shadow: 0 18px 40px -10px rgba(227, 28, 95, .85), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn.primary:hover::after { transition: transform .8s ease; transform: translateX(120%); }
.btn.win { border: 0; color: #fff; background: linear-gradient(135deg, #1a86e0, #0067c0 60%, #00539b); box-shadow: 0 12px 28px -10px rgba(0, 103, 192, .8), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn.ghost { background: transparent; }
.btn small { display: block; font-size: 12px; font-weight: 500; opacity: .85; line-height: 1.1; }
.btn.stack { flex-direction: row; text-align: left; line-height: 1.15; padding-inline: 26px 28px; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; padding: 76px 0 40px; isolation: isolate; overflow: clip; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); }
.blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .9; will-change: transform; }
.blob.a { width: 560px; height: 560px; left: -140px; top: -120px; background: var(--glow-a); animation: drift 18s ease-in-out infinite alternate; }
.blob.b { width: 620px; height: 620px; right: -180px; top: 40px; background: var(--glow-b); animation: drift 22s ease-in-out -6s infinite alternate-reverse; }
.blob.c { width: 460px; height: 460px; left: 36%; top: 380px; background: var(--glow-c); animation: drift 26s ease-in-out -12s infinite alternate; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(60px, 40px, 0) scale(1.12); } }
.hero-copy { text-align: center; max-width: 880px; margin: 0 auto; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px); font-size: 14.5px; font-weight: 600; color: var(--ink-2); text-decoration: none; box-shadow: var(--shadow-s); transition: border-color .2s, transform .2s; }
.pill:hover { border-color: var(--line-2); transform: translateY(-1px); }
.pill b { background: linear-gradient(135deg, #ff4d73, #e31c5f); color: #fff; border-radius: 999px; padding: 2px 10px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
h1, h2, h3 { font-weight: 760; letter-spacing: -.035em; line-height: 1.04; margin: 0; }
.hero h1 { font-size: clamp(44px, 7.4vw, 88px); margin: 26px 0 0; }
.grad { background: linear-gradient(100deg, #ff385c 0%, #ff7a45 38%, #b45cff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: sheen 7s ease-in-out infinite alternate; }
@keyframes sheen { to { background-position: 100% 0; } }
.lede { font-size: clamp(18px, 2.1vw, 21px); color: var(--ink-2); max-width: 720px; margin: 24px auto 0; line-height: 1.55; }
.cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.fine { margin: 18px 0 0; font-size: 14px; color: var(--ink-3); display: flex; gap: 8px 20px; justify-content: center; flex-wrap: wrap; }
.fine span { display: inline-flex; align-items: center; gap: 7px; }
.fine .ico { color: var(--good); width: 1.05em; height: 1.05em; }

.stage { position: relative; margin: 64px auto 0; max-width: 1080px; perspective: 1600px; }
.window { position: relative; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-l); border: 1px solid var(--line-2); background: var(--card); transform: rotateX(var(--rx, 3deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out; transform-style: preserve-3d; }
.window::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .18) 0%, transparent 30%); mix-blend-mode: soft-light; }
.window .shots { position: relative; aspect-ratio: 1180 / 720; background: var(--card-2); }
.window .shots img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
.window .shots img.on { opacity: 1; }
.tag { position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%); z-index: 3; display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(14px); border: 1px solid var(--line-2); box-shadow: var(--shadow-m); font-size: 14.5px; font-weight: 650; }
.tag i { width: 12px; height: 12px; border-radius: 50%; background: var(--dot, var(--accent)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--dot, var(--accent)) 25%, transparent); transition: background .4s; }
.tag span { color: var(--ink-3); font-weight: 550; }
.chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 14px; border-radius: 16px; background: var(--glass); backdrop-filter: blur(16px) saturate(160%); border: 1px solid var(--line-2); box-shadow: var(--shadow-m); font-weight: 650; font-size: 15px; line-height: 1.25; animation: float 7s ease-in-out infinite; }
.chip .ico { width: 24px; height: 24px; padding: 4px; border-radius: 8px; box-sizing: content-box; }
.chip small { display: block; font-size: 12.5px; font-weight: 500; color: var(--ink-3); }
.chip.c1 { left: -44px; top: 16%; animation-delay: -1s; }
.chip.c1 .ico { background: rgba(255, 56, 92, .14); color: var(--accent); }
.chip.c2 { right: -40px; top: 34%; animation-delay: -3s; }
.chip.c2 .ico { background: rgba(22, 163, 74, .14); color: var(--good); }
.chip.c3 { left: 6%; bottom: 14%; animation-delay: -5s; }
.chip.c3 .ico { background: rgba(0, 103, 192, .14); color: var(--win); }
:root[data-theme="dark"] .chip.c3 .ico { color: var(--win-2); }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.live-speed { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ stats + marquee */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 84px auto 0; max-width: 1000px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-s); overflow: hidden; }
.stat { padding: 30px 20px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-size: clamp(34px, 4.4vw, 52px); letter-spacing: -.04em; font-weight: 780; line-height: 1; background: linear-gradient(120deg, var(--ink), color-mix(in srgb, var(--ink) 55%, var(--accent))); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 10px; font-size: 14.5px; color: var(--ink-3); font-weight: 550; }
.marquee { margin-top: 70px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee .track { display: flex; gap: 14px; width: max-content; animation: scroll 46s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: 9px; padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-weight: 600; font-size: 15px; color: var(--ink-2); white-space: nowrap; }
.marquee span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: .85; }
.marquee span:nth-child(4n+2)::before { background: var(--accent-3); }
.marquee span:nth-child(4n+3)::before { background: var(--accent-2); }
.marquee span:nth-child(4n)::before { background: var(--win); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ sections */
section { position: relative; padding: 120px 0; }
.eyebrow { display: inline-block; font-size: 13.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 18px; }
.sec-head { max-width: 760px; margin-bottom: 56px; }
.sec-head.center { margin-inline: auto; text-align: center; }
h2 { font-size: clamp(34px, 5vw, 58px); }
.sec-head p { font-size: 19px; color: var(--ink-2); margin: 20px 0 0; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ bento */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.cell { position: relative; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); padding: 30px; overflow: hidden; box-shadow: var(--shadow-s); transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, border-color .3s; }
.cell:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: var(--line-2); }
.cell::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 14%, transparent), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.cell:hover::before { opacity: 1; }
.cell h3 { font-size: 24px; letter-spacing: -.02em; margin: 14px 0 10px; line-height: 1.15; }
.cell p { margin: 0; color: var(--ink-2); font-size: 16.5px; }
.cell .badge { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--accent)) 14%, transparent); color: var(--c, var(--accent)); }
.cell .badge .ico { width: 24px; height: 24px; }
.s7 { grid-column: span 7; } .s5 { grid-column: span 5; } .s4 { grid-column: span 4; } .s3 { grid-column: span 3; } .s6 { grid-column: span 6; }
.cell ul.ticks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; font-size: 15.5px; color: var(--ink-2); }
.cell ul.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.cell ul.ticks .ico { color: var(--good); margin-top: 4px; width: 1em; height: 1em; }

/* the 32 connections picture */
.lanes { margin-top: 26px; display: grid; gap: 9px; }
.lane { display: grid; grid-template-columns: 74px 1fr 64px; align-items: center; gap: 14px; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lane .bar { height: 10px; border-radius: 999px; background: var(--bg-2); overflow: hidden; position: relative; }
.lane .bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); animation: fill var(--t, 6s) cubic-bezier(.4, .1, .3, 1) var(--w, 0s) infinite; }
.lane:nth-child(3n) .bar i { background: linear-gradient(90deg, var(--accent-3), #6aa6ff); }
.lane:nth-child(3n+1) .bar i { background: linear-gradient(90deg, #ff385c, #ff8a5c); }
.lane:nth-child(3n+2) .bar i { background: linear-gradient(90deg, #ff7a45, #ffc145); }
@keyframes fill { 0% { width: 0; } 70%, 88% { width: 100%; } 100% { width: 100%; opacity: 0; } }
.lanes .total { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding: 14px 18px; border-radius: 14px; background: var(--bg-2); font-weight: 650; }
.lanes .total em { font-style: normal; color: var(--ink-3); font-weight: 500; font-size: 14px; }
.lanes .total b { font-size: 22px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* resume */
.resume { margin-top: 26px; padding: 22px; border-radius: 16px; background: var(--bg-2); }
.resume .row { display: flex; align-items: center; gap: 16px; }
.resume .file { width: 44px; height: 44px; border-radius: 12px; background: rgba(214, 130, 20, .16); color: #d68214; display: grid; place-items: center; font-size: 11px; font-weight: 800; letter-spacing: .04em; flex: none; }
.resume .meta { flex: 1; min-width: 0; }
.resume .meta b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resume .meta span { font-size: 13px; color: var(--ink-3); }
.resume .bar { height: 8px; border-radius: 99px; background: var(--card); margin-top: 18px; overflow: hidden; }
.resume .bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); animation: resume 9s ease-in-out infinite; }
@keyframes resume { 0% { width: 8%; } 38% { width: 46%; } 46%, 62% { width: 46%; filter: grayscale(1); } 100% { width: 100%; } }
.resume .state { font-size: 12.5px; font-weight: 700; padding: 4px 12px; border-radius: 99px; background: var(--card); animation: statechip 9s steps(1) infinite; }
.resume .state::before { content: "Downloading"; }
@keyframes statechip { 0%, 38% { color: var(--accent-ink); } 38.1%, 62% { color: #c77700; } 62.1% { color: var(--good); } }
.resume .state { position: relative; }
.resume .state::before { animation: statetext 9s steps(1) infinite; }
@keyframes statetext { 0% { content: "Downloading"; } 38.1% { content: "Paused"; } 46.1% { content: "App closed"; } 54.1% { content: "Restarted"; } 62.1% { content: "Downloading"; } 95% { content: "Complete"; } }

/* networks */
.nets { margin-top: 20px; }
.nets svg { width: 100%; height: auto; }
.nets .flow { stroke-dasharray: 5 9; animation: dash 1.1s linear infinite; }
.nets .flow.f2 { animation-duration: 1.4s; } .nets .flow.f3 { animation-duration: 1.9s; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.nets .pulse { transform-origin: center; transform-box: fill-box; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.08); } }

/* small cells with a mini picture */
.mini { margin-top: 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.mini span { padding: 6px 12px; border-radius: 99px; background: var(--bg-2); font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.kbd { font-family: var(--mono); font-size: .86em; padding: 2px 7px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); }

/* ------------------------------------------------------------------ themes */
.themes { background: linear-gradient(180deg, transparent, var(--bg-2) 18%, var(--bg-2) 82%, transparent); }
.gallery { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
.gal-stage { position: relative; border-radius: 18px; padding: 22px; background: var(--stage, var(--card)); border: 1px solid var(--line); transition: background .6s; box-shadow: var(--shadow-m); overflow: hidden; }
.gal-stage::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; left: 15%; top: 10%; background: var(--dot, var(--accent)); opacity: .22; filter: blur(80px); transition: background .6s; }
.gal-shot { position: relative; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-l); border: 1px solid var(--line-2); aspect-ratio: 1180 / 720; background: var(--card); }
.gal-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease; }
.gal-shot img.on { opacity: 1; }
.gal-bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.gal-bar h3 { font-size: 22px; display: flex; align-items: center; gap: 12px; }
.gal-bar h3 i { width: 14px; height: 14px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 0 5px color-mix(in srgb, var(--dot) 24%, transparent); }
.gal-bar p { margin: 4px 0 0; font-size: 14.5px; color: var(--ink-3); }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-s); }
.seg button { border: 0; background: transparent; height: 36px; padding: 0 18px; border-radius: 999px; font-weight: 650; font-size: 14.5px; color: var(--ink-3); display: inline-flex; gap: 8px; align-items: center; transition: background .2s, color .2s; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sw { position: relative; border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 12px 8px 10px; display: grid; justify-items: center; gap: 8px; font-size: 13.5px; font-weight: 650; color: var(--ink-2); transition: transform .2s, border-color .2s, box-shadow .2s, background .2s; }
.sw:hover { transform: translateY(-2px); border-color: var(--line-2); }
.sw[aria-pressed="true"] { border-color: var(--dot); box-shadow: 0 0 0 2px color-mix(in srgb, var(--dot) 45%, transparent); color: var(--ink); }
.sw .dots { display: flex; }
.sw .dots i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--card); margin-left: -6px; }
.sw .dots i:first-child { margin-left: 0; }
.sw .dots i:nth-child(2) { background: var(--dot); }
.tour { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; margin-top: 90px; }
.tour .frame { border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow-l); background: var(--card); }
.tour h3 { font-size: clamp(28px, 3.4vw, 40px); }
.tour p { color: var(--ink-2); margin: 18px 0 24px; }
.links { display: flex; gap: 12px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ WinUI 3 */
.winui { color: #fff; background: radial-gradient(1100px 600px at 80% -10%, rgba(76, 194, 255, .28), transparent 60%), radial-gradient(900px 600px at 0% 110%, rgba(139, 92, 246, .3), transparent 60%), #0a1220; overflow: hidden; }
.winui .eyebrow { color: var(--win-2); }
.winui h2 em { font-style: normal; background: linear-gradient(100deg, #4cc2ff, #8ab4ff 60%, #c6a8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.winui .sec-head p, .winui .lead { color: rgba(255, 255, 255, .72); }
.win-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.win-feats { display: grid; gap: 14px; margin-top: 34px; }
.wf { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 16px 18px; border-radius: 12px; background: rgba(255, 255, 255, .055); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(14px); transition: background .2s, transform .2s; }
.wf:hover { background: rgba(255, 255, 255, .09); transform: translateX(4px); }
.wf .ico { width: 24px; height: 24px; padding: 10px; box-sizing: content-box; border-radius: 10px; background: rgba(76, 194, 255, .16); color: var(--win-2); }
.wf b { display: block; font-size: 16.5px; letter-spacing: -.01em; }
.wf span { font-size: 14.5px; color: rgba(255, 255, 255, .68); line-height: 1.5; display: block; margin-top: 2px; }
.win-shot { position: relative; }
.win-shot .frame { border-radius: 10px; overflow: hidden; box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .14); }
.win-shot .cap { margin-top: 18px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.win-shot .cap span { padding: 6px 14px; border-radius: 99px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, .8); }
.win-shot .stackpair { position: absolute; right: -26px; bottom: -34px; width: 46%; border-radius: 8px; overflow: hidden; box-shadow: 0 24px 50px -10px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .16); animation: float 8s ease-in-out -2s infinite; }

/* ------------------------------------------------------------------ AI / MCP */
.ai-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.ai-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.ai-points li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; color: var(--ink-2); font-size: 16.5px; }
.ai-points .ico { width: 20px; height: 20px; padding: 7px; box-sizing: content-box; border-radius: 10px; background: color-mix(in srgb, var(--accent-3) 14%, transparent); color: var(--accent-3); margin-top: -3px; }
.ai-points b { color: var(--ink); }
.term { border-radius: 18px; background: var(--code-bg); color: var(--code-ink); box-shadow: var(--shadow-l); border: 1px solid rgba(255, 255, 255, .08); overflow: hidden; font-family: var(--mono); font-size: 13.5px; line-height: 1.65; }
.term .top { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, .07); background: rgba(255, 255, 255, .03); }
.term .top i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.term .top i:nth-child(2) { background: #febc2e; } .term .top i:nth-child(3) { background: #28c840; }
.term .top span { margin-left: 10px; font-family: var(--font); font-size: 13px; color: rgba(255, 255, 255, .5); }
.term .body { padding: 20px 22px 24px; min-height: 380px; display: flex; flex-direction: column; gap: 12px; }
.msg { opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; }
.msg.show { opacity: 1; transform: none; }
.msg .who { display: inline-block; font-family: var(--font); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.msg.user .who { color: #8ab4ff; } .msg.ai .who { color: #ff8da1; }
.msg.user .t, .msg.ai .t { font-family: var(--font); font-size: 15px; color: #f1f1f7; }
.call { border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); border-radius: 10px; padding: 10px 14px; }
.call .fn { color: #a5f3c8; } .call .fn small { color: rgba(255, 255, 255, .45); font-size: 12px; margin-left: 8px; }
.call .out { color: rgba(255, 255, 255, .62); font-size: 12.5px; margin-top: 2px; white-space: pre-wrap; }
.call .lvl { float: right; font-size: 11px; padding: 1px 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); font-family: var(--font); font-weight: 650; color: #c8c8d8; }
.call.denied { border-color: rgba(255, 150, 60, .5); background: rgba(255, 150, 60, .08); }
.call.denied .fn { color: #ffb86b; }
.cursor { display: inline-block; width: 8px; height: 1em; background: currentColor; vertical-align: -2px; animation: blink 1s steps(2) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }
.tools { margin-top: 56px; }
.tools h3 { font-size: 22px; margin-bottom: 20px; }
.toolgroups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tg { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 24px; position: relative; overflow: hidden; }
.tg::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c); }
.tg h4 { margin: 0; font-size: 18px; letter-spacing: -.01em; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tg h4 span { font-size: 12px; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); padding: 3px 10px; border-radius: 99px; letter-spacing: .04em; text-transform: uppercase; }
.tg p { margin: 8px 0 16px; font-size: 14.5px; color: var(--ink-3); }
.tg ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 7px; flex-wrap: wrap; }
.tg li { font-family: var(--mono); font-size: 12.5px; padding: 4px 10px; border-radius: 8px; background: var(--bg-2); color: var(--ink-2); }
.code { position: relative; border-radius: 14px; background: var(--code-bg); color: var(--code-ink); font-family: var(--mono); font-size: 13.5px; line-height: 1.7; padding: 48px 20px 18px; overflow-x: auto; border: 1px solid rgba(255, 255, 255, .08); white-space: pre; }
.code .c { color: #7f7f96; } .code .k { color: #ff9eb0; } .code .s { color: #a5f3c8; } .code .n { color: #8ab4ff; }
.copy { position: absolute; top: 8px; right: 8px; height: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: #e8e8f2; font: 600 12.5px var(--font); display: inline-flex; gap: 6px; align-items: center; transition: background .2s; }
.copy:hover { background: rgba(255, 255, 255, .14); }
.snip { margin-top: 28px; position: relative; }
.snip + .snip { margin-top: 14px; }

/* ------------------------------------------------------------------ web interface preview */
.web-grid { display: grid; grid-template-columns: 390px 1fr; gap: 44px; align-items: start; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.checks .ico { color: var(--good); margin-top: 3px; }
.browser { border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: var(--card); box-shadow: var(--shadow-l); transition: max-width .4s cubic-bezier(.2, .8, .2, 1); margin-inline: auto; }
.browser .bar { display: flex; align-items: center; gap: 12px; padding: 11px 16px; background: var(--card-2); border-bottom: 1px solid var(--line); }
.browser .bar .dots { display: flex; gap: 7px; }
.browser .bar .dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.browser .url { flex: 1; display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 14px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-size: 13px; color: var(--ink-3); font-family: var(--mono); min-width: 0; overflow: hidden; white-space: nowrap; }
.browser .url .ico { width: 14px; height: 14px; color: var(--good); }
.browser .view { position: relative; height: 620px; background: var(--bg-2); }
.browser iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.browser .launch { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; align-content: center; gap: 22px; text-align: center; padding: 30px; overflow: hidden; }
.browser .launch::before { content: ""; position: absolute; inset: -12px; z-index: -1; background: var(--bg-2) url("img/product/web-light.webp") center top / cover; filter: blur(4px); opacity: .55; }
:root[data-theme="dark"] .browser .launch::before { background-image: url("img/product/web-dark.webp"); opacity: .45; }
.browser .launch::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(closest-side, var(--bg-2) 35%, transparent); }
.browser .launch p { margin: 0; max-width: 420px; color: var(--ink-2); }
.tools-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; justify-content: space-between; }
.select { height: 40px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); padding: 0 14px; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); }
.select:focus-visible { outline-offset: 2px; }
.gallery-web { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; align-items: end; }
.gallery-web figure { margin: 0; }
.gallery-web img { border-radius: 14px; border: 1px solid var(--line-2); box-shadow: var(--shadow-m); width: 100%; height: auto; }
.gallery-web figcaption { font-size: 14.5px; color: var(--ink-3); text-align: center; margin-top: 12px; }

/* ------------------------------------------------------------------ downloads */
.dl { background: linear-gradient(180deg, transparent, var(--bg-2)); }
.dl-main { border-radius: 28px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow-m); overflow: hidden; }
.dl-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; padding: 44px; background: radial-gradient(700px 300px at 0% 0%, var(--glow-a), transparent 70%), radial-gradient(600px 300px at 100% 100%, var(--glow-b), transparent 70%); border-bottom: 1px solid var(--line); align-items: center; }
.dl-hero h3 { font-size: clamp(28px, 3.4vw, 40px); }
.dl-hero p { margin: 14px 0 26px; color: var(--ink-2); font-size: 16.5px; }
.dl-meta { display: grid; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.dl-meta div { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.dl-meta .ico { color: var(--accent-ink); }
.dl-meta code, .file code { font-family: var(--mono); font-size: 13px; }
.tabs { display: flex; gap: 6px; padding: 14px 20px 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs button { position: relative; border: 0; background: transparent; padding: 12px 16px 16px; font-weight: 650; font-size: 15.5px; color: var(--ink-3); white-space: nowrap; display: inline-flex; gap: 9px; align-items: center; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); }
.tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.panel { padding: 12px 28px 32px; }
.files { display: grid; }
.file { display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center; padding: 18px 8px; border-bottom: 1px solid var(--line); }
.file:last-child { border-bottom: 0; }
.file .fi { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--accent)) 14%, transparent); color: var(--c, var(--accent)); }
.file b { display: block; font-size: 16px; letter-spacing: -.005em; }
.file .sub { font-size: 14px; color: var(--ink-3); margin-top: 2px; }
.file .sub code { color: var(--ink-2); word-break: break-all; }
.file .acts { display: flex; gap: 10px; align-items: center; }
.tagx { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 9px; border-radius: 99px; margin-left: 8px; vertical-align: 2px; background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--good); }
.tagx.warn { background: color-mix(in srgb, #f59e0b 18%, transparent); color: #b45309; }
:root[data-theme="dark"] .tagx.warn { color: #fbbf24; }
.note { margin: 20px 0 0; padding: 16px 18px; border-radius: 14px; background: var(--bg-2); color: var(--ink-2); font-size: 14.5px; line-height: 1.55; border: 1px solid var(--line); }
.note a { color: var(--accent-ink); font-weight: 600; }
.dl-foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.dl-foot > div { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); font-size: 15px; color: var(--ink-2); }
.dl-foot b { display: block; margin-bottom: 6px; color: var(--ink); font-size: 16.5px; }
.skeleton { height: 70px; border-radius: 14px; margin: 12px 0; background: linear-gradient(90deg, var(--bg-2) 25%, var(--card-2) 50%, var(--bg-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ------------------------------------------------------------------ versions */
.ver-tools { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.timeline { position: relative; display: grid; gap: 18px; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px; background: linear-gradient(var(--line-2), var(--line)); border-radius: 2px; }
.rel { position: relative; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow-s); padding: 24px 26px; transition: border-color .25s, box-shadow .25s; }
.rel:hover { border-color: var(--line-2); box-shadow: var(--shadow-m); }
.rel::before { content: ""; position: absolute; left: -29px; top: 31px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--line-2); }
.rel.latest::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent); }
.rel.pre::before { border-color: #f59e0b; }
.rel .head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rel h3 { font-size: 26px; letter-spacing: -.03em; }
.rel time { color: var(--ink-3); font-size: 14.5px; }
.rel .sp { flex: 1; }
.rel .sum { margin: 10px 0 0; color: var(--ink-2); font-size: 15.5px; }
.badge-s { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 11px; border-radius: 99px; }
.badge-s.latest { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent-ink); }
.badge-s.pre { background: color-mix(in srgb, #f59e0b 18%, transparent); color: #b45309; }
:root[data-theme="dark"] .badge-s.pre { color: #fbbf24; }
.badge-s.stable { background: color-mix(in srgb, var(--good) 15%, transparent); color: var(--good); }
.rel .acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.rel .more { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1.4fr 1fr; gap: 34px; }
.notes { font-size: 15px; color: var(--ink-2); line-height: 1.6; max-height: 420px; overflow: auto; padding-right: 8px; }
.notes h4 { margin: 18px 0 6px; font-size: 16px; color: var(--ink); letter-spacing: -.01em; }
.notes h4:first-child { margin-top: 0; }
.notes ul { margin: 6px 0 10px; padding-left: 20px; }
.notes li { margin: 3px 0; }
.notes p { margin: 8px 0; }
.notes code { font-family: var(--mono); font-size: 13px; padding: 1px 6px; border-radius: 6px; background: var(--bg-2); }
.notes a { color: var(--accent-ink); }
.assets { display: grid; gap: 8px; align-content: start; }
.assets h4 { margin: 0 0 4px; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.assets a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 13px; border-radius: 10px; background: var(--bg-2); text-decoration: none; font-size: 13.5px; transition: background .15s; }
.assets a:hover { background: color-mix(in srgb, var(--accent) 12%, var(--bg-2)); }
.assets a span:first-child { font-family: var(--mono); word-break: break-all; }
.assets a span:last-child { color: var(--ink-3); white-space: nowrap; }

dialog.preview { width: min(1180px, 96vw); height: min(820px, 92vh); border: 0; padding: 0; border-radius: 20px; overflow: hidden; background: var(--card); color: var(--ink); box-shadow: 0 50px 120px -20px rgba(0, 0, 0, .7); }
dialog.preview::backdrop { background: rgba(6, 6, 12, .62); backdrop-filter: blur(6px); }
dialog.preview[open] { display: flex; flex-direction: column; animation: pop .35s cubic-bezier(.2, .9, .3, 1.1); }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.97); } }
dialog.preview header { display: flex; align-items: center; gap: 14px; padding: 14px 18px 14px 22px; border-bottom: 1px solid var(--line); background: var(--card-2); }
dialog.preview header b { font-size: 17px; }
dialog.preview header span { color: var(--ink-3); font-size: 14px; }
dialog.preview iframe { flex: 1; border: 0; width: 100%; background: #fff; }

/* ------------------------------------------------------------------ FAQ, footer */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
details { border: 1px solid var(--line); border-radius: 16px; background: var(--card); transition: border-color .2s, box-shadow .2s; }
details[open] { border-color: var(--line-2); box-shadow: var(--shadow-s); }
summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font-weight: 650; font-size: 17.5px; letter-spacing: -.01em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; width: 12px; height: 12px; border-right: 2.5px solid var(--ink-3); border-bottom: 2.5px solid var(--ink-3); transform: rotate(45deg) translateY(-3px); transition: transform .25s; flex: none; }
details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
details .ans { padding: 0 24px 22px; color: var(--ink-2); font-size: 16px; }
details .ans p { margin: 0 0 10px; }
details .ans a { color: var(--accent-ink); font-weight: 600; }
.final { text-align: center; padding: 110px 0; position: relative; overflow: hidden; }
.final::before { content: ""; position: absolute; left: 50%; top: 50%; width: 900px; height: 500px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, var(--glow-a), transparent), radial-gradient(closest-side at 70% 60%, var(--glow-b), transparent); filter: blur(30px); z-index: -1; }
.final h2 { max-width: 780px; margin: 0 auto; }
.final p { color: var(--ink-2); margin: 20px auto 34px; max-width: 560px; font-size: 19px; }
footer { border-top: 1px solid var(--line); padding: 56px 0 44px; background: var(--bg); }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.foot p { color: var(--ink-3); font-size: 14.5px; margin: 14px 0 0; max-width: 340px; }
.foot h5 { margin: 0 0 14px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { text-decoration: none; color: var(--ink-2); font-size: 15px; }
.foot a:hover { color: var(--accent-ink); }
.legal { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-3); }

/* ------------------------------------------------------------------ small screens */
@media (max-width: 1020px) {
  .nav ul { display: none; }
  .nav.open ul { display: grid; position: absolute; left: 0; right: 0; top: 68px; margin: 0; padding: 14px 24px 22px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-m); }
  .burger { display: grid; }
  .gallery, .tour, .win-grid, .ai-grid, .web-grid, .dl-hero { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(5, 1fr); }
  .toolgroups, .dl-foot { grid-template-columns: 1fr; }
  .s7, .s5, .s4, .s3, .s6 { grid-column: span 12; }
  .bento { grid-template-columns: 1fr; }
  .s7, .s5, .s4, .s3, .s6 { grid-column: auto; }
  .win-shot .stackpair { right: 8px; bottom: -20px; }
  .rel .more { grid-template-columns: 1fr; }
  .chip.c1 { left: -12px; } .chip.c2 { right: -12px; }
  .foot { grid-template-columns: 1fr 1fr; }
  .stars .n { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .wrap { width: min(var(--max), 100% - 36px); }
  section { padding: 84px 0; }
  .hero { padding-top: 44px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .swatches { grid-template-columns: repeat(3, 1fr); }
  .chip { display: none; }
  .file { grid-template-columns: 44px 1fr; }
  .file .acts { grid-column: 1 / -1; }
  .file .acts .btn { flex: 1; }
  .dl-hero { padding: 28px 22px; }
  .panel { padding: 8px 14px 24px; }
  .browser .view { height: 560px; }
  .gallery-web { grid-template-columns: 1fr; }
  .lane { grid-template-columns: 58px 1fr 54px; }
  .cell { padding: 24px; }
  .foot { grid-template-columns: 1fr; }
  .stars { display: none; }
  .timeline { padding-left: 22px; }
  .rel::before { left: -21px; }
  .rel { padding: 20px; }
  .win-shot .stackpair { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee .track { animation: none; }
  .lane .bar i { width: 100%; }
}

/* ------------------------------------------------------------------ updates and the first minute */
.upd-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.upd-pics { position: relative; min-height: 460px; }
.upd-pics img, .upd-pics picture img { border-radius: 14px; border: 1px solid var(--line-2); box-shadow: var(--shadow-l); width: 100%; height: auto; }
.upd-pics .p1 { width: 78%; position: relative; z-index: 2; }
.upd-pics .p2 { width: 70%; position: absolute; right: 0; top: 46%; z-index: 3; }
.upd-pics .p3 { display: block; width: 66%; position: absolute; left: 0; bottom: -34px; z-index: 1; }
@media (max-width: 1020px) { .upd-grid { grid-template-columns: 1fr; } .upd-pics { min-height: 0; display: grid; gap: 18px; } .upd-pics .p1, .upd-pics .p2, .upd-pics .p3 { position: static; width: 100%; } }
