:root {
  --paper: #f6f0e4;
  --paper-deep: #e9dfcd;
  --surface: #fffdf8;
  --ink: #211d17;
  --muted: #706659;
  --line: rgba(71, 56, 39, 0.18);
  --cinnabar: #c7463b;
  --cinnabar-dark: #96342d;
  --gold: #d99b17;
  --jade: #287b5b;
  --shadow: 0 24px 70px rgba(72, 51, 27, 0.16);
  font-family: "SF Pro Text", "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 300px;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
    env(safe-area-inset-bottom) env(safe-area-inset-left);
  background:
    linear-gradient(rgba(104, 78, 43, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(104, 78, 43, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 30;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  display: flex;
  width: min(1180px, calc(100% - 40px));
  min-height: 88px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.brand-seal,
.mini-seal {
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 116, 0.72);
  background: #080808;
  box-shadow: 0 8px 22px rgba(31, 23, 14, 0.18);
  object-fit: cover;
  object-position: center;
}

.brand-seal {
  width: 42px;
  height: 42px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
  letter-spacing: -0.01em;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.language-switch {
  display: flex;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.62);
}

.language-switch button {
  min-width: 40px;
  min-height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.language-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  min-height: 620px;
  padding: 72px 0 68px;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 500px);
  gap: clamp(48px, 8vw, 110px);
}

.eyebrow,
.card-kicker {
  margin: 0;
  color: var(--cinnabar);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 660px;
  margin: 18px 0 0;
  font-family: "SF Pro Display", "Segoe UI Display", system-ui, sans-serif;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-wrap: balance;
}

.hero-lead {
  max-width: 580px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.65;
}

.feature-list {
  display: flex;
  margin: 34px 0 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.feature-list li {
  display: flex;
  min-height: 42px;
  padding: 7px 12px 7px 7px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 253, 248, 0.56);
}

.feature-list span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: rgba(199, 70, 59, 0.11);
  color: var(--cinnabar-dark);
  font-family: "Songti SC", "STSong", serif;
  font-size: 12px;
  font-weight: 800;
}

.feature-list b {
  font-size: 12px;
  font-weight: 730;
}

.download-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(71, 56, 39, 0.22);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.platform-switch {
  display: grid;
  margin: 16px;
  padding: 4px;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.platform-switch button {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 760;
}

.platform-switch button span {
  margin-right: 6px;
}

.platform-switch button[aria-pressed="true"] {
  background: var(--surface);
  box-shadow: 0 3px 12px rgba(75, 53, 29, 0.1);
  color: var(--ink);
}

.platform-prompt {
  display: grid;
  min-height: 214px;
  padding: 34px 28px;
  place-items: center;
  align-content: center;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 88% 10%, rgba(199, 70, 59, 0.13), transparent 34%),
    linear-gradient(145deg, #fffdf8, #f3eadb);
}

.platform-prompt[hidden],
.installer-stage[hidden],
.install-guide[hidden],
.security-note[hidden] {
  display: none;
}

.platform-prompt-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  background: var(--ink);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}

.platform-prompt strong {
  display: block;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.platform-prompt p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.installer-stage {
  position: relative;
  min-height: 214px;
  padding: 30px 26px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 18% 24%, rgba(217, 155, 23, 0.24), transparent 30%),
    linear-gradient(145deg, #b33c34, #d75b4e);
}

.installer-stage::after {
  position: absolute;
  right: -62px;
  bottom: -92px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  content: "";
}

.installer-window {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 154px;
  padding: 43px 25px 18px;
  align-items: center;
  grid-template-columns: 1fr 42px 1fr;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 17px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 18px 42px rgba(77, 20, 16, 0.24);
}

.installer-dots {
  position: absolute;
  top: 14px;
  left: 16px;
  display: flex;
  gap: 5px;
}

.installer-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d9cbbb;
}

.installer-dots i:first-child {
  background: var(--cinnabar);
}

.installer-app,
.applications-folder {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
}

.mini-seal {
  width: 56px;
  height: 56px;
}

.installer-app small,
.applications-folder small {
  font-size: 10px;
  font-weight: 760;
}

.applications-folder span {
  display: grid;
  width: 64px;
  height: 51px;
  place-items: center;
  border-radius: 7px 7px 12px 12px;
  background: #68a8e3;
  box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.24);
  color: #fff;
  font-size: 27px;
  font-weight: 760;
}

.drag-arrow {
  color: var(--cinnabar);
  font-size: 28px;
  font-weight: 800;
  animation: guideArrow 1.8s ease-in-out infinite;
}

.download-copy {
  padding: 24px 24px 0;
}

.download-copy h2 {
  margin: 7px 0 0;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.release-meta {
  display: flex;
  margin: 7px 0 0;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.download-button {
  display: flex;
  min-height: 58px;
  margin: 21px 24px 0;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 15px;
  background: var(--cinnabar);
  box-shadow: 0 12px 24px rgba(150, 52, 45, 0.2);
  color: #fff;
  font-size: 15px;
  font-weight: 790;
  text-decoration: none;
  transition:
    transform 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease;
}

.download-button:not([aria-disabled="true"]):hover {
  background: var(--cinnabar-dark);
  box-shadow: 0 15px 28px rgba(150, 52, 45, 0.26);
  transform: translateY(-1px);
}

.download-button[aria-disabled="true"] {
  cursor: wait;
  filter: grayscale(0.25);
  opacity: 0.58;
}

.download-button-icon {
  font-size: 22px;
}

.download-status {
  display: flex;
  min-height: 51px;
  margin: 0;
  padding: 13px 24px 16px;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--gold);
}

.download-status[data-state="ready"] .status-dot {
  background: var(--jade);
}

.download-status[data-state="error"] .status-dot {
  background: var(--cinnabar);
}

.download-status[data-state="choose"] .status-dot {
  background: var(--gold);
}

.install-guide {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.045em;
}

.steps {
  display: grid;
  margin: 36px 0 0;
  padding: 0;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.steps li {
  min-height: 200px;
  padding: 22px 26px 28px;
  border-right: 1px solid var(--line);
}

.steps li:first-child {
  padding-left: 0;
}

.steps li:last-child {
  padding-right: 0;
  border-right: 0;
}

.step-number {
  color: var(--cinnabar);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.steps h3 {
  margin: 36px 0 0;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.steps p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.security-note,
.mobile-transfer {
  display: flex;
  margin-bottom: 34px;
  padding: 24px;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(199, 70, 59, 0.22);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.7);
}

.security-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: rgba(199, 70, 59, 0.11);
  color: var(--cinnabar-dark);
  font-size: 20px;
  font-weight: 850;
}

.security-note h2,
.mobile-transfer h2 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.015em;
}

.security-note p,
.mobile-transfer p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.mobile-transfer {
  justify-content: space-between;
  border-color: rgba(40, 123, 91, 0.24);
}

.mobile-transfer-controls {
  display: grid;
  min-width: min(100%, 330px);
  gap: 8px;
}

.mobile-transfer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.mobile-transfer-actions button {
  min-height: 44px;
  padding: 0 16px;
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 780;
}

.mobile-transfer-actions .share-link {
  background: var(--jade);
  color: #fff;
}

.mobile-transfer-actions .copy-link {
  border-color: rgba(40, 123, 91, 0.28);
  background: rgba(40, 123, 91, 0.08);
  color: var(--jade);
}

.mobile-transfer-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.transfer-manual {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.transfer-manual[hidden] {
  display: none;
}

.transfer-manual input {
  width: 100%;
  min-height: 44px;
  padding: 0 11px;
  border: 1px solid rgba(40, 123, 91, 0.3);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 11px;
}

.transfer-status {
  min-height: 17px;
  margin: 0 !important;
  color: var(--jade) !important;
  font-size: 11px !important;
  font-weight: 700;
}

.transfer-status[data-state="error"] {
  color: var(--cinnabar-dark) !important;
}

.transfer-copy-helper {
  position: fixed;
  top: -1000px;
  left: -1000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

body.quick-guide-open {
  overflow: hidden;
}

.quick-guide-dialog {
  width: min(640px, calc(100% - 32px));
  max-width: none;
  max-height: min(780px, calc(100dvh - 32px));
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(71, 56, 39, 0.24);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: 0 32px 90px rgba(29, 20, 12, 0.34);
  color: var(--ink);
  animation: quickGuideIn 180ms ease-out;
}

.quick-guide-dialog::backdrop {
  background: rgba(25, 20, 15, 0.58);
  backdrop-filter: blur(5px);
}

.quick-guide-shell {
  position: relative;
}

.quick-guide-dismiss {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(37, 24, 18, 0.2);
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.quick-guide-header {
  padding: 27px 70px 25px 28px;
  background:
    radial-gradient(circle at 12% 0%, rgba(217, 155, 23, 0.24), transparent 34%),
    linear-gradient(145deg, #a9362f, #ce4e42);
  color: #fff;
}

.quick-guide-topline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quick-guide-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quick-guide-platform {
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 10px;
  font-weight: 800;
}

.quick-guide-header h2 {
  margin: 13px 0 0;
  font-size: clamp(27px, 5vw, 38px);
  letter-spacing: -0.045em;
  line-height: 1.05;
  text-wrap: balance;
}

.quick-guide-header > p {
  max-width: 500px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.55;
}

.quick-guide-progress {
  position: relative;
  height: 5px;
  margin-top: 20px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.quick-guide-progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 38%;
  border-radius: inherit;
  background: #fff4c8;
  box-shadow: 0 0 18px rgba(255, 244, 200, 0.55);
  animation: quickGuideProgress 1.35s ease-in-out infinite;
}

.quick-guide-steps {
  display: grid;
  margin: 0;
  padding: 18px 28px 8px;
  gap: 0;
  list-style: none;
}

.quick-guide-steps li {
  display: grid;
  padding: 16px 0;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 13px;
  border-bottom: 1px solid var(--line);
}

.quick-guide-steps li:last-child {
  border-bottom: 0;
}

.quick-guide-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: rgba(199, 70, 59, 0.1);
  color: var(--cinnabar-dark);
  font: 800 10px/1 ui-monospace, "SFMono-Regular", Consolas, monospace;
}

.quick-guide-security-step .quick-guide-number {
  background: rgba(217, 155, 23, 0.14);
  color: #8a5c00;
  font-family: inherit;
  font-size: 16px;
}

.quick-guide-steps h3 {
  margin: 1px 0 0;
  font-size: 15px;
  letter-spacing: -0.015em;
}

.quick-guide-steps p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.quick-step-visual {
  min-height: 92px;
  margin-top: 12px;
  padding: 11px;
  align-items: center;
  border: 1px solid rgba(71, 56, 39, 0.14);
  border-radius: 14px;
  background: #f4efe6;
}

[data-quick-guide][data-platform="macos"] .quick-platform-windows,
[data-quick-guide][data-platform="macos"] .quick-platform-android,
[data-quick-guide][data-platform="windows"] .quick-platform-macos,
[data-quick-guide][data-platform="windows"] .quick-platform-android,
[data-quick-guide][data-platform="android"] .quick-platform-macos,
[data-quick-guide][data-platform="android"] .quick-platform-windows {
  display: none;
}

.quick-step-shot {
  margin: 12px 0 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(71, 56, 39, 0.14);
  border-radius: 14px;
  background: #f4efe6;
}

.quick-step-shot + .quick-step-shot {
  margin-top: 8px;
}

.quick-step-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.quick-install-visual,
.quick-windows-install-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr);
  gap: 8px;
}

.quick-app-tile,
.quick-folder-tile,
.quick-exe-tile,
.quick-install-action {
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: 5px;
}

.quick-app-tile img,
.quick-os-app-row img {
  display: block;
  width: 39px;
  height: 39px;
  border-radius: 9px;
  object-fit: cover;
}

.quick-app-tile b,
.quick-folder-tile b,
.quick-exe-tile b {
  overflow: hidden;
  max-width: 100%;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-folder-tile span {
  display: grid;
  width: 48px;
  height: 39px;
  place-items: center;
  border-radius: 7px 7px 10px 10px;
  background: #68a8e3;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 19px;
  font-weight: 800;
}

.quick-visual-arrow {
  color: var(--cinnabar);
  font-size: 24px;
  font-weight: 850;
  text-align: center;
}

.quick-smartscreen-visual {
  display: block;
  border-color: #196493;
  background: #0e5c91;
  color: #fff;
}

.quick-smartscreen-visual > p {
  margin: 13px 0 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 760;
}

.quick-os-titlebar {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  font-size: 9px;
}

.quick-os-titlebar b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-shield {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px 7px 10px 10px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 10px;
  font-weight: 850;
}

.quick-os-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-size: 9px;
}

.quick-os-actions span {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.quick-os-actions strong {
  padding: 7px 9px;
  border-radius: 6px;
  background: #fff;
  color: #0e5c91;
}

.quick-mac-security-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 7px;
}

.quick-os-card {
  min-width: 0;
  min-height: 88px;
  padding: 9px;
  border: 1px solid rgba(71, 56, 39, 0.15);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(71, 56, 39, 0.07);
}

.quick-window-dots {
  color: #d1bfae;
  font-size: 6px;
  letter-spacing: -0.06em;
}

.quick-settings-icon {
  color: var(--muted);
  font-size: 13px;
}

.quick-os-app-row,
.quick-settings-row {
  display: flex;
  min-width: 0;
  margin-top: 12px;
  align-items: center;
  gap: 7px;
}

.quick-os-app-row span {
  display: grid;
  min-width: 0;
  flex: 1;
}

.quick-os-app-row small {
  color: var(--muted);
  font-size: 7px;
}

.quick-os-app-row b,
.quick-settings-row span {
  overflow: hidden;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-os-app-row strong,
.quick-settings-row strong {
  padding: 5px 6px;
  flex: 0 0 auto;
  border-radius: 5px;
  background: var(--cinnabar);
  color: #fff;
  font-size: 7px;
  white-space: nowrap;
}

.quick-settings-row {
  display: grid;
  justify-items: stretch;
  gap: 7px;
}

.quick-settings-row strong {
  padding: 6px 7px;
  text-align: center;
}

.quick-visual-or {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  text-align: center;
}

.quick-exe-tile span {
  display: grid;
  width: 39px;
  height: 48px;
  place-items: center;
  border-radius: 5px 12px 5px 5px;
  background: #e9f3fb;
  box-shadow: inset 0 0 0 1px rgba(14, 92, 145, 0.18);
  color: #0e5c91;
  font-size: 9px;
  font-weight: 850;
}

.quick-install-action span,
.quick-install-action strong {
  display: block;
  width: 100%;
  padding: 7px;
  border-radius: 6px;
  font-size: 8px;
  text-align: center;
}

.quick-install-action span {
  background: #0e5c91;
  color: #fff;
  font-weight: 800;
}

.quick-install-action strong {
  border: 1px solid rgba(14, 92, 145, 0.22);
  background: #fff;
  color: #0e5c91;
}

.quick-guide-footer {
  display: flex;
  padding: 16px 28px 24px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.quick-guide-footer p {
  max-width: 380px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.quick-guide-footer button {
  min-width: 116px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

footer {
  display: flex;
  width: min(1180px, calc(100% - 40px));
  min-height: 96px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(217, 155, 23, 0.72);
  outline-offset: 3px;
}

@keyframes guideArrow {
  0%,
  100% {
    transform: translateX(-3px);
  }
  50% {
    transform: translateX(4px);
  }
}

@keyframes quickGuideIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes quickGuideProgress {
  from {
    transform: translateX(-110%);
  }
  to {
    transform: translateX(365%);
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: 0;
    padding: 54px 0;
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero h1 {
    max-width: 720px;
  }

  .download-card {
    width: min(100%, 560px);
  }
}

@media (max-width: 650px) {
  .site-header,
  main,
  footer {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    min-height: 74px;
  }

  .brand small {
    display: none;
  }

  .language-switch button {
    min-width: 34px;
  }

  .hero {
    padding: 40px 0 46px;
  }

  .hero h1 {
    font-size: clamp(38px, 13vw, 56px);
  }

  .hero-lead {
    font-size: 15px;
  }

  .feature-list {
    display: grid;
  }

  .download-card {
    border-radius: 22px;
  }

  .installer-stage {
    min-height: 188px;
    padding: 24px 16px;
  }

  .installer-window {
    min-height: 140px;
    padding-right: 13px;
    padding-left: 13px;
  }

  .install-guide {
    padding: 56px 0;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .steps li,
  .steps li:first-child,
  .steps li:last-child {
    min-height: 0;
    padding: 22px 0 24px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .steps li:last-child {
    border-bottom: 0;
  }

  .steps h3 {
    margin-top: 18px;
  }

  .security-note,
  .mobile-transfer {
    align-items: flex-start;
  }

  .mobile-transfer {
    flex-direction: column;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }

  .mobile-transfer-controls,
  .mobile-transfer-actions {
    width: 100%;
  }

  .mobile-transfer-actions button {
    min-width: 0;
    flex: 1;
  }

  .quick-guide-dialog {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 22px;
  }

  .quick-guide-header {
    padding: 24px 58px 22px 20px;
  }

  .quick-guide-header h2 {
    font-size: 29px;
  }

  .quick-guide-steps {
    padding: 12px 20px 4px;
  }

  .quick-guide-steps li {
    padding: 14px 0;
  }

  .quick-guide-footer {
    padding: 13px 20px max(20px, env(safe-area-inset-bottom));
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .quick-guide-footer button {
    width: 100%;
  }

  footer {
    min-height: 84px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
  }
}

@media (max-width: 380px) {
  .mobile-transfer-actions {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .drag-arrow {
    animation: none;
  }

  .download-button {
    transition: none;
  }

  .quick-guide-dialog,
  .quick-guide-progress span {
    animation: none;
  }
}

/*
  The script-free download list.

  Rendered by the server so that a search or AI crawler — which runs none of
  the JavaScript above — still reads which versions exist and where they are.
  It earns its place for people too: it is where you find the APK from a
  laptop, or copy a direct link to send someone.
*/
.all-downloads {
  margin-bottom: 34px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.7);
}

.all-downloads h2 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.all-downloads > p {
  margin: 6px 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.all-downloads-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 10px;
  list-style: none;
}

.all-downloads-list li > a,
.all-downloads-list li.is-unavailable {
  display: flex;
  padding: 14px 16px;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: inherit;
  text-decoration: none;
}

.all-downloads-list li > a:hover,
.all-downloads-list li > a:focus-visible {
  border-color: rgba(199, 70, 59, 0.45);
}

.all-downloads-list b {
  font-size: 15px;
}

.all-downloads-list span {
  color: var(--muted);
  font-size: 13px;
}

/* Nothing to click, so it must not look clickable. */
.all-downloads-list li.is-unavailable {
  opacity: 0.55;
}

/* ─── Yuklab olish: qurilma tanlash ─────────────────────────────────────────
   The page used to lead with a sales pitch and hide the platform choice in a
   corner. It now opens with the choice, because that is the only question a
   visitor to a download page actually has. Everything explaining the choice
   moved below the card, where it answers a question already asked.
   Rules are appended so they win over the earlier layout on equal specificity.
*/
.hero {
  display: block;
  max-width: 720px;
  margin: 0 auto 34px;
  padding: 8px 0 0;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(30px, 6vw, 46px);
  letter-spacing: -0.02em;
}

.hero .hero-lead {
  margin: 10px 0 26px;
  color: var(--muted);
  font-size: 16px;
}

.platform-picker {
  display: flex;
  margin: 0 0 24px;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.platform-picker button {
  display: grid;
  width: 104px;
  padding: 16px 10px 13px;
  gap: 9px;
  border: 1.5px solid transparent;
  border-radius: 18px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  justify-items: center;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.platform-picker button svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Windows is four filled panes; stroking them reads as empty boxes. */
.platform-picker button[data-platform="windows"] svg {
  fill: currentColor;
  stroke: none;
}

.platform-picker button span {
  font-size: 13px;
  font-weight: 600;
}

.platform-picker button:hover {
  color: var(--ink);
}

.platform-picker button[aria-pressed="true"] {
  border-color: var(--line);
  background: rgba(255, 253, 248, 0.9);
  color: var(--ink);
}

.download-card {
  max-width: 470px;
  margin: 0 auto;
  padding: 30px 26px 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.72);
  text-align: center;
}

.download-card h2 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.01em;
}

.release-version {
  margin: 16px 0 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.release-version:empty {
  display: none;
}

.release-published {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.release-published:empty {
  display: none;
}

.download-card .download-button {
  display: inline-flex;
  margin: 22px 0 0;
  padding: 14px 30px;
  align-items: center;
  gap: 9px;
  border-radius: 999px;
  background: var(--cinnabar);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.download-card .download-button[aria-disabled="true"] {
  background: var(--paper-deep);
  color: var(--muted);
  pointer-events: none;
}

.download-card .download-status {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.referral-guide {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(40, 123, 91, 0.3);
  border-radius: 16px;
  background: rgba(40, 123, 91, 0.07);
  text-align: left;
}
.referral-guide[hidden], .referral-guide a[hidden] { display: none; }
.referral-guide strong { display: block; font-size: 15px; }
.referral-guide p { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.referral-guide a { display: inline-block; margin-top: 13px; color: var(--jade); font-weight: 700; }

/* Opening Telegram is not a download; the arrow would promise a file. */
.download-card .download-button[data-action="open"] .download-button-icon {
  display: none;
}

/* Four across does not fit a phone; three then one looks like a mistake. */
@media (max-width: 430px) {
  .platform-picker {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .platform-picker button {
    width: auto;
  }
}
