html { scroll-padding-bottom: max(76px, calc(62px + env(safe-area-inset-bottom))); }
.home #overview, .home #downloads, .home .home-section { scroll-margin-top: 18px; }
.hero-heading { margin-bottom: 16px; }
.hero-heading p {
  max-width: 92ch;
  margin-top: 9px;
  color: var(--muted);
  font-size: clamp(14px, 1.22vw, 17px);
}
.hero-heading::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 12px;
  border-radius: 3px;
  background: linear-gradient(90deg, #76dfff, #a78bfa 54%, transparent);
}
.download-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  border: 1px solid var(--glass-line);
  border-radius: 22px;
  background: var(--glass-background), #0b1535;
  box-shadow: var(--glass-shadow);
}
.download-title { flex: none; display: flex; align-items: center; gap: 10px; }
.download-title img { width: 35px; height: 35px; }
.download-title h2 { font-size: clamp(17px, 1.45vw, 22px); }
.download-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; width: min(100%, 412px); }
.installer {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 53px;
  padding: 7px 11px;
  border: 1px solid rgba(138, 223, 255, .39);
  border-radius: 13px;
  color: var(--text);
  background: var(--active-background);
  text-decoration: none;
}
.installer:hover {
  border-color: var(--accent);
  color: #fff;
  background: var(--active-background), #1a2a4e;
  box-shadow: var(--active-shadow);
}
.download-copy { display: grid; min-width: 0; gap: 3px; }
.download-copy strong { font-size: 14px; line-height: 1.14; }
.download-copy small { color: var(--muted); font-size: 11px; line-height: 1.2; }
.download-arrow { margin-left: auto; color: var(--accent); font-size: 17px; line-height: 1; }
.platform-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: #a2dcff;
  background: rgba(97, 161, 242, .15);
}
.platform-icon.violet { color: #c9b6ff; background: rgba(165, 118, 255, .13); }
.installer .platform-icon { width: 31px; height: 31px; border-radius: 8px; }
.os-command { font: 600 22px/1 -apple-system, BlinkMacSystemFont, "Segoe UI Symbol", sans-serif; }
.os-windows {
  --pane: 7px;
  display: block;
  width: calc(var(--pane) * 2 + 2px);
  height: calc(var(--pane) * 2 + 2px);
  background: linear-gradient(currentColor 0 0) top left / var(--pane) var(--pane),
              linear-gradient(currentColor 0 0) top right / var(--pane) var(--pane),
              linear-gradient(currentColor 0 0) bottom left / var(--pane) var(--pane),
              linear-gradient(currentColor 0 0) bottom right / var(--pane) var(--pane);
  background-repeat: no-repeat;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 15px;
}
.overview-side { display: grid; grid-template-rows: auto 1fr; gap: 14px; }
.capture-demo, .quick-start, .storage-note { padding: clamp(16px, 2.1vw, 29px); }
.capture-demo { display: flex; flex-direction: column; justify-content: center; }
.capture-demo figcaption { margin-bottom: 15px; }
.capture-demo figcaption strong { display: block; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.25; }
.capture-demo figcaption p, .quick-start > p, .storage-note p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
}
.quick-start h2, .storage-note h2 { font-size: clamp(19px, 1.6vw, 23px); }
.sample-image { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #080e27; }
.sample-image > img { width: 100%; height: auto; }
.shortcuts { margin-block: 13px 16px; }
.shortcuts > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-block: 8px;
  border-bottom: 1px solid var(--line);
}
.shortcuts dt { color: var(--muted); font-size: 14px; }
.shortcuts dd { display: flex; align-items: center; gap: 4px; }
kbd {
  display: inline-block;
  min-width: 25px;
  padding: 3px 6px;
  border: 1px solid rgba(162, 190, 240, .32);
  border-bottom-width: 2px;
  border-radius: 6px;
  color: var(--text);
  background: #111c3b;
  font: 500 12px/1.2 var(--mono);
  text-align: center;
}
.quick-start .secondary { min-height: 40px; }
.quick-start .secondary span { color: var(--accent); }

.home-section { margin-top: clamp(30px, 4.2vw, 56px); }
.home-section > h2 { margin-bottom: 15px; }
.platform-cards, .share-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.platform-card, .share-method { padding: clamp(18px, 2.3vw, 30px); }
.platform-card { display: flex; flex-direction: column; }
.platform-head, .method-title { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.platform-head p, .method-title div > span { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }
.setup-steps {
  margin: 5px 0 16px;
  padding-left: 23px;
  color: var(--muted);
  font-size: 14px;
}
.setup-steps li { padding-left: 3px; }
.setup-steps li + li { margin-top: 9px; }
.setup-steps li::marker { color: var(--accent); font-weight: 700; }
.setup-steps a { overflow-wrap: anywhere; }

.setup-help { margin-top: auto; border-top: 1px solid var(--line); }
.setup-help summary, .cloud-storage summary {
  position: relative;
  display: block;
  padding: 12px 24px 0 0;
  list-style: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}
.setup-help summary::-webkit-details-marker, .cloud-storage summary::-webkit-details-marker { display: none; }
.setup-help summary::after, .cloud-storage summary::after {
  content: "+";
  position: absolute;
  right: 0;
  color: var(--accent);
  font: 500 17px/1.2 var(--mono);
}
.setup-help[open] > summary::after, .cloud-storage[open] > summary::after { content: "−"; }
.setup-help p, .cloud-storage p { max-width: 78ch; margin-top: 8px; color: var(--muted); font-size: 14px; }

.workflow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin: 0;
  padding: 0 clamp(18px, 2.3vw, 28px) 0 clamp(34px, 3.7vw, 48px);
}
.workflow li {
  padding: clamp(15px, 2vw, 23px) 0 clamp(15px, 2vw, 23px) 4px;
  border-bottom: 1px solid var(--line);
}
.workflow li:nth-last-child(-n+2) { border-bottom: 0; }
.workflow li::marker { color: var(--accent); font-weight: 700; }
.workflow h3 { font-size: 17px; }
.workflow p, .share-method > p { margin-top: 7px; color: var(--muted); font-size: 14px; }
.method-icon {
  position: relative;
  flex: 0 0 38px;
  height: 38px;
  border-radius: 11px;
  color: var(--accent);
  background: rgba(97, 161, 242, .15);
}
.link-icon::before, .link-icon::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 7px;
  border: 1.5px solid currentColor;
  border-radius: 8px;
  transform: rotate(-42deg);
}
.link-icon::before { top: 10px; left: 17px; }
.link-icon::after { top: 18px; left: 8px; }
.cloud-icon { color: #75e0cb; background: rgba(77, 199, 185, .13); }
.cloud-icon i {
  position: absolute;
  left: 6px;
  bottom: 10px;
  width: 26px;
  height: 11px;
  border: 1.5px solid currentColor;
  border-radius: 10px;
}
.cloud-icon i::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 5px;
  width: 11px;
  height: 11px;
  transform: rotate(36deg);
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  background: #172a42;
}
.share-method .method-foot { margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--line); }
.method-foot strong { color: var(--text); }
.share-method code { color: var(--text); font-family: var(--mono); overflow-wrap: anywhere; }
.cloud-storage { margin-top: 14px; padding: 12px 17px; }
.cloud-storage summary { padding-top: 0; }
.account-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(25px, 4vw, 47px);
  padding: clamp(18px, 2.5vw, 34px);
}
.account-panel > div > p { max-width: 75ch; margin-top: 8px; color: var(--muted); font-size: 14px; }
.account-panel .primary { flex: none; white-space: nowrap; }
.account-help { margin-top: 13px; }

.section-dock {
  position: fixed;
  z-index: 4;
  bottom: max(14px, env(safe-area-inset-bottom));
  left: 50%;
  display: grid;
  grid-template-columns: .9fr 1.05fr 1.15fr .8fr;
  width: min(500px, calc(100% - 24px));
  padding: 5px;
  transform: translateX(-50%);
  border: 1px solid var(--glass-line);
  border-radius: 24px;
  background: var(--glass-background), rgba(13, 24, 59, .93);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(16px) saturate(125%);
}
.section-dock a {
  display: grid;
  place-items: center;
  min-height: 41px;
  padding: 3px 4px;
  border: 1px solid transparent;
  border-radius: 18px;
  color: var(--muted);
  font-size: clamp(11px, 2.85vw, 13px);
  font-weight: 700;
  text-decoration: none;
}
.section-dock a:hover { color: #fff; background: rgba(100, 140, 210, .12); }
.section-dock a[aria-current="location"] {
  border-color: var(--accent);
  color: #fff;
  background: var(--active-background);
  box-shadow: var(--active-shadow);
}
.section-dock + .foot { padding-bottom: max(68px, calc(54px + env(safe-area-inset-bottom))); }

@media (max-width: 840px) {
  .overview-grid { grid-template-columns: minmax(0, 1fr); }
  .overview-side { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
}
@media (max-width: 620px) {
  .download-bar { display: block; padding: 11px; border-radius: 18px; }
  .download-title { margin-bottom: 10px; }
  .download-title img { width: 29px; height: 29px; }
  .download-arrow { display: none; }
  .download-options { width: 100%; gap: 7px; }
  .installer { gap: 7px; padding: 6px 8px; }
  .platform-cards, .share-methods, .workflow, .overview-side { grid-template-columns: minmax(0, 1fr); }
  .workflow li:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .account-panel { flex-direction: column; align-items: flex-start; gap: 14px; }
}
@media (max-width: 365px) {
  .download-options { grid-template-columns: minmax(0, 1fr); }
}
