/* Shared source; package-websites copies this into each independent download site. */
:root {
  --liquid-rgb: 77, 170, 242;
  --liquid-secondary: 72, 216, 229;
  --scroll-track: #10181f;
  scrollbar-color: rgb(var(--liquid-rgb)) var(--scroll-track);
  scrollbar-width: thin;
}
:root:has(body[data-platform="macos"]) {
  --liquid-rgb: 169, 123, 234;
  --liquid-secondary: 218, 163, 245;
  --scroll-track: #1b1425;
}
:root:has(body[data-platform="linux"]) {
  --liquid-rgb: 239, 145, 66;
  --liquid-secondary: 248, 195, 93;
  --scroll-track: #21170e;
}
:root:has(body[data-platform="android"]) {
  --liquid-rgb: 132, 203, 111;
  --liquid-secondary: 192, 220, 124;
  --scroll-track: #131d12;
}
:root[data-theme="light"] { --scroll-track: #eef1f4; }
:root[data-theme="light"]:has(body[data-platform="macos"]) { --scroll-track: #f0eaf8; }
:root[data-theme="light"]:has(body[data-platform="linux"]) { --scroll-track: #f8eddf; }
:root[data-theme="light"]:has(body[data-platform="android"]) { --scroll-track: #edf3e7; }

body { isolation: isolate; }
body[data-platform="linux"] {
  --bg: #19140f;
  --surface: #262018;
  --surface-raised: #382a1d;
  --line: #59402b;
  --accent: #f0aa68;
  --accent-ink: #31200d;
  --accent-soft: #ef914217;
}
:root[data-theme="light"] body[data-platform="linux"] {
  --bg: #faf3e9;
  --surface: #fffaf3;
  --surface-raised: #f3e3cf;
  --line: #dec4a8;
  --accent: #a5571e;
  --accent-ink: #fffbef;
  --accent-soft: #a5571e12;
}

/* Two independently moving pools blend into a fluid, softly lit background. */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  opacity: 1;
  pointer-events: none;
  animation: none;
  transform: none;
  background: radial-gradient(ellipse at 50% 10%, rgba(var(--liquid-rgb), .07), transparent 70%);
}
.ambient::before, .ambient::after {
  position: absolute;
  content: "";
  width: clamp(480px, 74vmax, 1100px);
  height: clamp(420px, 68vmax, 1000px);
  border-radius: 44% 56% 62% 38% / 54% 38% 62% 46%;
  filter: blur(64px);
  will-change: transform;
}
.ambient::before {
  left: -22%;
  top: -34%;
  opacity: .4;
  background: radial-gradient(ellipse at 38% 40%, rgba(var(--liquid-rgb), .78), rgba(var(--liquid-rgb), .2) 45%, transparent 70%);
}
.ambient::after {
  right: -24%;
  bottom: -40%;
  opacity: .3;
  background: radial-gradient(ellipse at 56% 58%, rgba(var(--liquid-secondary), .68), rgba(var(--liquid-rgb), .24) 40%, transparent 70%);
}
:root[data-theme="light"] .ambient::before { opacity: .25; }
:root[data-theme="light"] .ambient::after { opacity: .22; }

.download-panel {
  border-color: rgba(var(--liquid-rgb), .32);
  background: radial-gradient(ellipse at 100% 0, rgba(var(--liquid-rgb), .1), transparent 65%),
    color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: 0 20px 64px -32px #0009, 0 0 48px rgba(var(--liquid-rgb), .09), inset 0 1px 0 #ffffff09;
  backdrop-filter: blur(16px);
  transition: border-color .22s, box-shadow .22s;
}
.download-panel:is(:hover, :focus-within) {
  border-color: rgba(var(--liquid-rgb), .64);
  box-shadow: 0 22px 64px -30px #0008, 0 0 54px rgba(var(--liquid-rgb), .18), inset 0 1px 0 rgba(var(--liquid-rgb), .2);
}
.artifact, .download-button, .theme-toggle {
  transition: transform .22s var(--ease), border-color .22s, box-shadow .22s, background-color .22s;
}
.artifact:is(:hover, :focus-visible) {
  border-color: var(--accent);
  box-shadow: 0 6px 24px rgba(var(--liquid-rgb), .14);
}
.download-button:is(:hover, :focus-visible) {
  box-shadow: 0 8px 32px rgba(var(--liquid-rgb), .3);
}
.theme-toggle:hover { background: var(--accent-soft); box-shadow: 0 0 18px rgba(var(--liquid-rgb), .13); }
.android-features { gap: 16px; }
.android-features article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  transition: border-color .22s, box-shadow .22s;
}
.android-features article:hover {
  border-color: rgba(var(--liquid-rgb), .5);
  box-shadow: 0 8px 30px rgba(var(--liquid-rgb), .1);
}
.release-status{display:grid;gap:5px;margin:0 0 14px;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:color-mix(in srgb,var(--bg) 75%,transparent);color:var(--muted);font-size:12px;line-height:1.55}
.release-status strong { color: var(--accent); }

/* Root scrollbar colors follow the platform, including variables defined on body. */
* { scrollbar-color: rgb(var(--liquid-rgb)) var(--scroll-track); scrollbar-width: thin; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--scroll-track); }
::-webkit-scrollbar-thumb {
  min-height: 42px;
  border: 3px solid var(--scroll-track);
  border-radius: 20px;
  background: rgba(var(--liquid-rgb), .72);
}
::-webkit-scrollbar-thumb:hover { background: rgb(var(--liquid-rgb)); }
::-webkit-scrollbar-corner { background: var(--scroll-track); }

@media (prefers-reduced-motion: no-preference) {
  .ambient::before { animation: liquid-pool-a 24s ease-in-out infinite alternate; }
  .ambient::after { animation: liquid-pool-b 29s ease-in-out -11s infinite alternate; }
  .platform-icon, .installer-brand > img { animation: platform-float 6s ease-in-out infinite; }
  .installer-brand > img { animation-delay: -2s; }
}
@keyframes liquid-pool-a {
  from { transform: translate3d(-6%, -3%, 0) rotate(-16deg) scale(.92, 1.05); }
  50% { transform: translate3d(23%, 18%, 0) rotate(14deg) scale(1.12, .88); }
  to { transform: translate3d(44%, 30%, 0) rotate(35deg) scale(.96, 1.12); }
}
@keyframes liquid-pool-b {
  from { transform: translate3d(4%, 10%, 0) rotate(18deg) scale(1.1, .94); }
  50% { transform: translate3d(-18%, -10%, 0) rotate(-8deg) scale(.9, 1.1); }
  to { transform: translate3d(-39%, -28%, 0) rotate(-30deg) scale(1.12, .9); }
}
@keyframes platform-float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-5px) rotate(-2deg); }
}
@media (max-width: 760px) {
  .ambient::before, .ambient::after { filter: blur(40px); }
  .ambient::before { left: -55%; top: -15%; }
  .ambient::after { right: -75%; bottom: -10%; }
  .android-features article { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .ambient::before, .ambient::after { animation: none; will-change: auto; }
  .platform-icon, .installer-brand > img { animation: none; }
}

/* A single centered installer card, matching the supplied macOS reference. */
body[data-platform] {
  --bg: #0d1110;
  --surface: #1b211e;
  --surface-raised: #252d28;
  --line: #38423b;
  --text: #edf1ed;
  --muted: #a6afa9;
}
:root[data-theme="light"] body[data-platform] {
  --bg: #f2f4ef;
  --surface: #fbfcf9;
  --surface-raised: #e7ece4;
  --line: #cdd5cb;
  --text: #25302a;
  --muted: #5d6b61;
}
.download-shell {
  display: flex;
  min-height: 100svh;
  width: min(850px, calc(100% - 40px));
  flex-direction: column;
  justify-content: center;
  padding-block: 48px;
}
.download-shell .topbar {
  min-height: 48px;
  margin-bottom: 18px;
  border: 0;
  gap: 16px;
}
.download-shell .brand { font-size: 12px; }
.download-shell .brand img { width: 32px; height: 36px; }
.download-shell .topbar__label { display: flex; align-items: center; gap: 8px; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.status-dot { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(var(--liquid-rgb), .55); }
.download-shell .theme-toggle { width: 28px; height: 28px; border: 0; font-size: 15px; color: var(--muted); }
.download-card-centered { padding: 42px; border-radius: 24px; }
.download-heading { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.download-heading > .platform-icon {
  display: grid; place-items: center; flex: 0 0 58px; width: 58px; height: 58px;
  padding: 17px; border: 1px solid rgba(var(--liquid-rgb), .4); border-radius: 18px;
  background: rgba(var(--liquid-rgb), .12);
}
.download-heading > .platform-icon svg { width: 24px; height: 24px; }
.download-heading__copy { min-width: 0; flex: 1; }
.download-heading .eyebrow { margin: 0 0 7px; font-size: 10px; letter-spacing: .13em; }
.download-heading h1 { max-width: none; font-size: clamp(28px, 3.5vw, 40px); line-height: 1.12; letter-spacing: -.045em; }
.download-heading .version-pill { align-self: flex-start; margin-top: 1px; padding: 4px 10px; font-size: 10px; border-radius: 50px; border-color: rgba(var(--liquid-rgb), .35); background: rgba(var(--liquid-rgb), .09); }
.download-card-centered .intro { max-width: none; margin: 0 0 24px; font-size: 14px; line-height: 1.8; }
.download-card-centered .artifact { min-height: 72px; gap: 14px; margin-bottom: 10px; padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--bg) 78%, transparent); }
.download-card-centered .artifact--featured { border-color: rgba(var(--liquid-rgb), .4); background: linear-gradient(110deg, rgba(var(--liquid-rgb), .12), transparent); }
.download-card-centered .artifact__glyph { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border: 1px solid rgba(var(--liquid-rgb), .32); border-radius: 12px; background: var(--bg); }
.download-card-centered .artifact__copy strong { font-size: 14px; }
.download-card-centered .artifact__copy small { font-family: var(--font-sans); font-size: 12px; line-height: 1.5; }
.platform-note { margin: 12px 2px 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.platform-note strong { color: var(--text); }
.platform-note a { text-decoration: underline; text-underline-offset: 3px; }
.feature-row { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 700; }
.feature-row span { display: inline-flex; align-items: center; gap: 8px; }
.feature-row b { color: var(--accent); font: 700 10px var(--mono); }
.download-shell .footer { border: 0; padding: 16px 4px 0; font-size: 11px; }
.download-shell .context-hint { display: block; margin: 14px 0 0; color: var(--muted); text-align: center; font-size: 10px; opacity: .7; }
.download-card-centered .command-row { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 12px; margin: 12px 2px 0; color: var(--muted); font-size: 12px; }
.download-card-centered .command-row code { max-width: 100%; overflow-wrap: anywhere; color: var(--accent); font: 11px/1.7 var(--mono); }
.download-card-centered .release-status{display:grid;gap:5px;margin:0 0 14px;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:color-mix(in srgb,var(--bg) 75%,transparent);color:var(--muted);font-size:12px;line-height:1.55}
.download-card-centered .source-link { margin-top: 12px; }
@media (max-width: 600px) {
  .download-shell { padding-block: 24px; }
  .download-card-centered { padding: 26px; border-radius: 20px; }
  .download-heading { flex-wrap: wrap; gap: 12px; }
  .download-heading > .platform-icon { flex-basis: 48px; width: 48px; height: 48px; padding: 12px; border-radius: 14px; }
  .download-heading__copy { flex: 1 0 calc(100% - 60px); }
  .download-heading h1 { font-size: 29px; }
  .download-heading .eyebrow { font-size: 9px; }
  .download-heading .version-pill { margin-left: 60px; margin-top: -4px; }
  .download-card-centered .intro { font-size: 13px; }
  .download-card-centered .artifact { padding: 13px; gap: 12px; }
  .download-card-centered .artifact__copy small { font-size: 11px; }
  .feature-row { gap: 12px 18px; }
}
@media (max-width: 380px) {
  .download-card-centered { padding: 20px; }
  .download-shell .topbar__label { font-size: 8px; letter-spacing: .05em; }
  .download-shell .topbar { gap: 10px; }
  .download-card-centered .artifact__glyph { flex-basis: 32px; width: 32px; height: 32px; }
}

/* A coordinated arrival: the surface settles, then its contents follow in order. */
@media (prefers-reduced-motion: no-preference) {
  .download-shell .topbar { animation: download-item-in .65s cubic-bezier(.16, 1, .3, 1) backwards; }
  .download-shell .download-panel { animation: download-surface-in .82s cubic-bezier(.16, 1, .3, 1) .02s backwards; }
  .download-heading__copy { animation: download-item-in .76s cubic-bezier(.16, 1, .3, 1) .06s backwards; }
  .download-heading > .platform-icon {
    animation: download-item-in .7s cubic-bezier(.16, 1, .3, 1) .15s backwards,
      platform-float 6s ease-in-out 1.05s infinite;
  }
  .download-heading .version-pill { animation: download-item-in .7s cubic-bezier(.16, 1, .3, 1) .12s backwards; }
  .download-card-centered .intro { animation: download-item-in .74s cubic-bezier(.16, 1, .3, 1) .16s backwards; }
  .artifact-list > * {
    --arrival-delay: .25s;
    animation: download-item-in .7s cubic-bezier(.16, 1, .3, 1) var(--arrival-delay) backwards;
  }
  .artifact-list > :nth-child(2) { --arrival-delay: .35s; }
  .artifact-list > :nth-child(n+3) { --arrival-delay: .43s; }
  .download-card-centered :is(.platform-note, .command-row) { animation: download-item-in .7s cubic-bezier(.16, 1, .3, 1) .36s backwards; }
  .download-card-centered .feature-row { animation: download-item-in .7s cubic-bezier(.16, 1, .3, 1) .44s backwards; }
  .download-shell .footer { animation: download-item-in .7s cubic-bezier(.16, 1, .3, 1) .22s backwards; }
  .download-shell .context-hint { --arrival-opacity: .7; animation: download-item-in .65s cubic-bezier(.16, 1, .3, 1) .38s backwards; }
}
@keyframes download-surface-in {
  from { opacity: 0; transform: translate3d(0, 20px, 0) scale(.985); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes download-item-in {
  from { opacity: 0; transform: translate3d(0, 16px, 0); }
  to { opacity: var(--arrival-opacity, 1); transform: translate3d(0, 0, 0); }
}
/* Focusing a control must never leave the user interacting with invisible content. */
.download-shell.is-interacting * { animation: none !important; }

/* Important copy receives a quiet, platform-colored marker as the page arrives. */
.text-highlight {
  color: var(--accent);
  text-decoration-line: underline;
  text-decoration-color: rgba(var(--liquid-rgb), .35);
  text-decoration-thickness: .07em;
  text-underline-offset: .16em;
  background: linear-gradient(90deg, rgba(var(--liquid-rgb), .12), transparent) 0 100% / 100% 45% no-repeat;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.copy-highlight {
  padding: .08em .12em;
  border-radius: 3px;
  color: var(--text);
  background: linear-gradient(90deg, rgba(var(--liquid-rgb), .2), rgba(var(--liquid-rgb), .08)) 0 100% / 100% 100% no-repeat;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.install-tips { margin-top: 22px; border-top: 1px solid var(--line); }
.install-tips summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 54px; padding: 14px 2px; list-style: none; cursor: pointer;
  color: var(--text); font-size: 12px; font-weight: 600;
}
.install-tips summary::-webkit-details-marker { display: none; }
.install-tips summary:hover { color: var(--accent); }
.install-tips summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.tips-toggle { display: grid; place-items: center; flex: 0 0 24px; width: 24px; height: 24px; color: var(--accent); border: 1px solid rgba(var(--liquid-rgb), .25); border-radius: 50%; font-size: 17px; font-weight: 400; transition: transform .3s ease, background .3s ease; }
.install-tips:not([data-expanded])[open] .tips-toggle,
.install-tips[data-expanded="true"] .tips-toggle { transform: rotate(45deg); background: rgba(var(--liquid-rgb), .12); }
.install-tips__body { padding: 4px 2px 8px; }
.install-tips ol { margin: 0; padding: 0; list-style: none; counter-reset: setup; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.install-tips li { counter-increment: setup; min-width: 0; }
.install-tips li::before { content: "0" counter(setup); display: block; margin-bottom: 10px; color: var(--accent); font: 10px var(--mono); }
.install-tips li strong { color: var(--text); font-size: 12px; }
.install-tips li p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.guide-link { display: inline-flex; gap: 10px; align-items: center; margin-top: 20px; color: var(--accent); font-size: 12px; }
.guide-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.install-tips + .feature-row { margin-top: 8px; }
.artifact__arrow { transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.artifact:is(:hover, :focus-visible) .artifact__arrow { transform: translate(3px, -3px); }
.artifact__glyph { transition: background .25s, border-color .25s; }
.artifact:is(:hover, :focus-visible) .artifact__glyph { background: rgba(var(--liquid-rgb), .14); border-color: var(--accent); }
@media (max-width: 600px) {
  .install-tips ol { grid-template-columns: 1fr; gap: 18px; }
  .install-tips li { position: relative; padding-left: 30px; }
  .install-tips li::before { position: absolute; top: 4px; left: 0; }
}
@media (min-width: 601px) and (max-height: 800px) {
  .download-shell { padding-block: 24px; }
  .download-card-centered { padding: 30px; }
  .download-heading { margin-bottom: 20px; }
  .download-card-centered .intro { margin-bottom: 20px; }
  .install-tips { margin-top: 16px; }
  .install-tips summary { min-height: 50px; }
  .feature-row { padding-top: 14px; }
}
@media (prefers-reduced-motion: no-preference) {
  .text-highlight { animation: marker-reveal 1.05s cubic-bezier(.16, 1, .3, 1) .3s backwards; }
  .copy-highlight { animation: marker-reveal 1.1s cubic-bezier(.16, 1, .3, 1) .55s backwards; }
  .install-tips { animation: download-item-in .7s cubic-bezier(.16, 1, .3, 1) .4s backwards; }
  .context-menu:not([hidden]) { animation: shortcut-in .16s cubic-bezier(.16, 1, .3, 1) backwards; }
}
@keyframes marker-reveal { from { background-size: 0% 100%; text-decoration-color: transparent; } }
@keyframes shortcut-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .tips-toggle, .artifact__arrow, .artifact__glyph { transition: none; }
}
