/* ============================================================
   SILO Download — release matrix / installation workbench
   Extends the landing-page design tokens from landing-v3.css.
   ============================================================ */

.download-page {
  --download-blue: color-mix(in srgb, var(--pg) 82%, #65c8ff);
  --download-copper: color-mix(in srgb, var(--copper) 84%, #ffd48c);
  background:
    radial-gradient(circle at 8% 5%, color-mix(in srgb, var(--pg) 9%, transparent), transparent 29rem),
    radial-gradient(circle at 92% 22%, color-mix(in srgb, var(--copper) 7%, transparent), transparent 34rem),
    var(--bg);
}

.download-page .nav-link.active {
  color: var(--ink);
  background: var(--bg-elev);
}

.download-page .mobile-menu-link.active {
  color: var(--pg-strong);
  background: color-mix(in srgb, var(--pg) 8%, transparent);
}

.download-page code {
  font-family: var(--font-mono);
}

.download-page [hidden] {
  display: none !important;
}

#server,
#client,
.download-panel {
  scroll-margin-top: 102px;
}

/* Hero */
.download-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(108px, 12vw, 154px) 0 clamp(72px, 8vw, 112px);
  border-bottom: 1px solid var(--line);
}

.download-grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 31px 31px;
  mask-image: linear-gradient(to bottom, black 0%, rgba(0, 0, 0, 0.82) 58%, transparent 100%);
}

.download-grid-bg::before,
.download-grid-bg::after {
  content: "";
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.download-grid-bg::before {
  top: 40px;
  left: 50%;
  width: 720px;
  height: 720px;
  transform: translateX(-50%);
  box-shadow:
    0 0 0 80px color-mix(in srgb, var(--pg) 1.4%, transparent),
    0 0 0 160px color-mix(in srgb, var(--pg) 1%, transparent);
}

.download-grid-bg::after {
  top: 238px;
  left: 50%;
  width: 9px;
  height: 9px;
  border: 0;
  background: var(--copper);
  box-shadow:
    -340px 136px 0 -2px var(--pg),
    340px 92px 0 -2px var(--ok),
    -460px 330px 0 -3px var(--copper),
    468px 350px 0 -3px var(--pg);
}

.download-hero > .landing-container {
  position: relative;
  z-index: 1;
}

.download-hero-copy {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.download-eyebrow {
  max-width: 520px;
  margin: 0 auto 25px;
  text-align: left;
}

.download-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7.4vw, 6.6rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.055em;
  color: var(--ink);
  text-wrap: balance;
}

.download-hero h1 span {
  position: relative;
  display: inline-block;
  /* 比标题正文松一点：Chakra Petch 的 L / O 在负字距下会挤在一起 */
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background: var(--wordmark-gradient);
  -webkit-background-clip: text;
  background-clip: text;
}

@media (forced-colors: active) {
  .download-hero h1 span { color: CanvasText; -webkit-text-fill-color: CanvasText; }
}

.download-hero h1 span::after {
  content: "";
  position: absolute;
  /* 字距放宽后行盒右缘外扩 0.035em，这里补回去，保持圆点贴着 O */
  right: calc(-12px + 0.035em);
  bottom: 0.08em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 17px color-mix(in srgb, var(--ok) 72%, transparent);
}

.download-hero-copy > p:not(.section-eyebrow) {
  max-width: 760px;
  margin: 28px auto 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.82;
  text-wrap: balance;
}

.download-release-line {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 11px 15px;
  margin-top: 28px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-elev) 76%, transparent);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-family: var(--font-mono);
  font-size: 0.67rem;
  color: var(--ink-mute);
}

.release-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--silk);
  letter-spacing: 0.08em;
}

.release-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px color-mix(in srgb, var(--ok) 72%, transparent);
}

.download-release-line a {
  color: var(--pg-strong);
  font-weight: 600;
}

.download-release-line a span {
  display: inline-block;
  color: var(--copper);
  transition: transform 160ms ease;
}

.download-release-line a:hover span {
  transform: translate(2px, -2px);
}

/* Product chooser */
.product-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 1120px;
  margin: clamp(50px, 7vw, 78px) auto 0;
  text-align: left;
}

.product-choice-card {
  position: relative;
  display: flex;
  min-height: 340px;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(26px, 3.4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(140deg, color-mix(in srgb, var(--bg-elev) 96%, var(--pg)), var(--bg-elev));
  color: inherit !important;
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.product-choice-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pg), var(--copper));
  opacity: 0.8;
}

.product-choice-card::after {
  content: "";
  position: absolute;
  right: -64px;
  bottom: -86px;
  width: 230px;
  height: 230px;
  border: 1px solid color-mix(in srgb, var(--pg) 13%, transparent);
  border-radius: 50%;
  box-shadow:
    0 0 0 32px color-mix(in srgb, var(--pg) 2%, transparent),
    0 0 0 64px color-mix(in srgb, var(--pg) 1.5%, transparent);
  transition: transform 360ms ease;
}

.product-choice-card--client::before {
  background: linear-gradient(90deg, var(--copper), var(--ok));
}

.product-choice-card--client::after {
  border-color: color-mix(in srgb, var(--copper) 18%, transparent);
  box-shadow:
    0 0 0 32px color-mix(in srgb, var(--copper) 2%, transparent),
    0 0 0 64px color-mix(in srgb, var(--copper) 1.5%, transparent);
}

.product-choice-card:hover {
  transform: translateY(-5px);
  border-color: var(--card-hover-border);
  box-shadow: var(--shadow-md);
}

.product-choice-card:hover::after {
  transform: translate(-12px, -12px) scale(1.05);
}

.product-choice-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.product-choice-top p {
  margin: 0 0 15px;
  color: var(--copper);
}

.product-choice-top h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.product-choice-icon {
  display: inline-flex;
  width: 54px;
  height: 54px;
  flex: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--bg-elev-2);
  color: var(--pg-strong);
  font-size: 1.32rem;
  box-shadow: inset 0 0 0 5px color-mix(in srgb, var(--pg) 3%, transparent);
}

.product-choice-card--client .product-choice-icon {
  color: var(--copper);
  box-shadow: inset 0 0 0 5px color-mix(in srgb, var(--copper) 4%, transparent);
}

.product-choice-card > p {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 25px 0 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.75;
}

.product-platforms {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 9px 15px;
  margin-top: 26px;
}

.product-platforms span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.product-choice-card > strong {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 34px;
  color: var(--pg-strong);
  font-size: 0.86rem;
}

.product-choice-card--client > strong {
  color: var(--copper);
}

.product-choice-card > strong i {
  font-style: normal;
  transition: transform 160ms ease;
}

.product-choice-card:hover > strong i {
  transform: translate(3px, -3px);
}

/* Product sections */
.download-product-section {
  position: relative;
  padding: clamp(76px, 8vw, 116px) 0;
}

.download-product-section--client {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--pg) 2.5%, transparent), transparent 46%);
}

.download-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 48px;
  margin-bottom: clamp(34px, 5vw, 54px);
}

.download-section-head .section-eyebrow {
  max-width: 460px;
  margin-bottom: 20px;
}

.download-section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.download-section-head > div > p:last-child {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.78;
}

.download-section-head code {
  padding: 0.08em 0.36em;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-elev);
  color: var(--copper);
  font-size: 0.88em;
}

.version-card {
  position: relative;
  display: grid;
  min-width: 248px;
  gap: 4px;
  overflow: hidden;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-elev);
  color: inherit !important;
  box-shadow: var(--shadow-sm);
  transition: border-color 160ms ease, transform 160ms ease;
}

.version-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--pg), var(--copper));
}

.version-card--client::before {
  background: linear-gradient(90deg, var(--copper), var(--ok));
}

.version-card:hover {
  transform: translateY(-2px);
  border-color: var(--card-hover-border);
}

.version-card span {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  color: var(--ink-mute);
}

.version-card strong {
  font-family: var(--font-display);
  font-size: 1.32rem;
  color: var(--ink);
}

.version-card small {
  margin-top: 4px;
  color: var(--pg-strong);
  font-size: 0.72rem;
}

.version-card--client small {
  color: var(--copper);
}

/* Tabs */
.download-tabs {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  box-shadow: var(--shadow-md);
}

.download-tablist {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-elev-2) 84%, transparent);
  scrollbar-width: thin;
}

.download-tablist button {
  position: relative;
  display: inline-flex;
  min-height: 70px;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 clamp(16px, 2.4vw, 28px);
  border: 0;
  background: transparent;
  color: var(--ink-mute);
  font: 600 0.78rem/1 var(--font-body);
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}

.download-tablist button::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: -1px;
  left: 18px;
  height: 2px;
  transform: scaleX(0);
  background: var(--copper);
  transition: transform 180ms ease;
}

.download-tablist button:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--pg) 4%, transparent);
}

.download-tablist button[aria-selected="true"] {
  color: var(--ink);
}

.download-tablist button[aria-selected="true"]::after {
  transform: scaleX(1);
}

.download-tablist button[aria-selected="true"] i {
  color: var(--copper);
}

.download-tablist button:focus-visible {
  z-index: 1;
  outline: 2px solid var(--pg);
  outline-offset: -3px;
}

.download-tabpanels {
  min-height: 500px;
}

.download-panel {
  padding: clamp(26px, 4.5vw, 54px);
  animation: download-panel-in 260ms ease both;
}

@keyframes download-panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.method-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}

.method-kicker {
  display: block;
  margin-bottom: 9px;
  font-family: var(--font-mono);
  font-size: 0.61rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--copper);
}

.method-heading h3 {
  max-width: 820px;
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.45rem, 2.8vw, 2.25rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.method-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.method-tags span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elev-2);
  color: var(--ink-mute);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.05em;
}

.method-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.7fr);
  gap: clamp(26px, 4vw, 48px);
  align-items: stretch;
}

/* 没有右侧边栏的方式（Docker / Kubernetes）：正文铺满整幅 */
.method-grid--single { grid-template-columns: minmax(0, 1fr); }
.method-main > .security-note { margin-top: 22px; }

.method-main > p,
.method-lead,
.ansible-intro p {
  margin: 0 0 24px;
  color: var(--ink-soft);
  line-height: 1.78;
}

.method-main p code,
.ansible-intro code,
.aside-card code {
  padding: 0.08em 0.35em;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-elev-2);
  color: var(--copper);
  font-size: 0.86em;
}

.method-aside {
  display: grid;
  align-content: start;
  gap: 15px;
}

.aside-card {
  position: relative;
  overflow: hidden;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--bg-elev-2) 96%, var(--pg)), var(--bg-elev-2));
}

.aside-card::after {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -55px;
  width: 130px;
  height: 130px;
  border: 1px solid color-mix(in srgb, var(--pg) 14%, transparent);
  border-radius: 50%;
}

.aside-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--pg-strong);
}

.aside-card > p.silkscreen {
  margin: 0 0 8px;
  color: var(--copper);
}

.aside-card h4 {
  position: relative;
  z-index: 1;
  margin: 0 0 16px;
  font-family: var(--font-head);
  font-size: 1.1rem;
  line-height: 1.4;
  color: var(--ink);
}

.aside-card > p:not(.silkscreen) {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.65;
}

.aside-card > a {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-top: 18px;
  color: var(--pg-strong);
  font-size: 0.8rem;
  font-weight: 600;
}

.mini-command {
  position: relative;
  z-index: 1;
  padding: 12px 14px;
  border: 1px solid var(--terminal-line);
  border-radius: 7px;
  background: var(--terminal-bg);
  color: #ced8e6;
  font-size: 0.71rem;
  line-height: 1.7;
}

.security-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 16px 17px;
  border: 1px solid color-mix(in srgb, var(--copper) 27%, var(--line));
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--copper) 6%, transparent);
  color: var(--ink-soft);
  font-size: 0.75rem;
  line-height: 1.62;
}

.security-note i {
  margin-top: 0.27em;
  color: var(--copper);
}

.security-note--full {
  min-height: 100%;
  align-items: center;
  padding: 26px;
  font-size: 0.86rem;
}

.security-note--full i {
  font-size: 1.2rem;
}

/* Command blocks */
.download-code {
  overflow: hidden;
  border: 1px solid var(--terminal-line);
  border-radius: var(--radius-md);
  background: var(--terminal-bg);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.17);
}

.download-code-head {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px 0 16px;
  border-bottom: 1px solid var(--terminal-line);
  background: rgba(255, 255, 255, 0.025);
}

.download-code-head > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #8391a4;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
}

.download-code-head > span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 9px rgba(85, 201, 138, 0.45);
}

.download-code-head button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #8391a4;
  font: 500 0.65rem/1 var(--font-body);
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

.download-code-head button:hover {
  border-color: var(--terminal-line);
  background: rgba(255, 255, 255, 0.04);
  color: #dce5f0;
}

.download-code-head button.copied {
  color: var(--ok);
}

.download-code pre {
  overflow-x: auto;
  margin: 0;
  padding: clamp(19px, 3vw, 28px);
  color: #d7e1ed;
  font: 500 clamp(0.69rem, 1.4vw, 0.82rem)/1.82 var(--font-mono);
  tab-size: 2;
}

.download-code pre code {
  color: inherit;
  white-space: pre;
}

.download-code--compact {
  margin-top: 24px;
}

.download-code--compact pre {
  font-size: 0.7rem;
}

.method-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* Native packages */
.asset-family-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.asset-family {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-elev-2);
}

.asset-family-head {
  padding: 20px 20px 17px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--pg) 6%, transparent), transparent);
}

.asset-family-head span {
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 700;
  color: var(--ink);
}

.asset-family-head p {
  margin: 3px 0 0;
  color: var(--ink-mute);
  font-family: var(--font-mono);
  font-size: 0.57rem;
}

.asset-family > a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  color: inherit !important;
  transition: background 150ms ease;
}

.asset-family > a:last-child {
  border-bottom: 0;
}

.asset-family > a:hover {
  background: color-mix(in srgb, var(--pg) 6%, transparent);
}

.asset-family > a b {
  color: var(--ink);
  font: 600 0.76rem/1 var(--font-mono);
}

.asset-family > a small {
  color: var(--ink-mute);
  font-size: 0.66rem;
}

.asset-family > a i {
  color: var(--pg-strong);
  font-size: 0.76rem;
}

.package-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.package-footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
}

.package-footer a i {
  color: var(--copper);
}

/* Native binary cards */
.binary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.binary-platform {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-elev-2);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.binary-platform.detected-platform {
  border-color: color-mix(in srgb, var(--ok) 55%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 7%, transparent);
}

.binary-platform.detected-platform::before {
  content: "DETECTED";
  display: block;
  padding: 5px 16px;
  background: color-mix(in srgb, var(--ok) 10%, transparent);
  color: var(--ok);
  font: 600 0.49rem/1.2 var(--font-mono);
  letter-spacing: 0.12em;
}

.binary-platform > div {
  min-height: 142px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--pg) 8%, transparent), transparent 90px);
}

.platform-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  margin-bottom: 17px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--pg-strong);
}

.binary-platform h4 {
  display: inline;
  margin: 0 0 0 9px;
  font-family: var(--font-head);
  font-size: 1.08rem;
  color: var(--ink);
}

.binary-platform small {
  display: block;
  color: var(--ink-mute);
  font-size: 0.65rem;
}

.binary-platform > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font: 600 0.72rem/1 var(--font-mono);
}

.binary-platform > a:last-child {
  border-bottom: 0;
}

.binary-platform > a:hover {
  background: color-mix(in srgb, var(--pg) 6%, transparent);
  color: var(--pg-strong);
}

.binary-platform > a i {
  font-size: 0.72rem;
}

/* Ansible */
.ansible-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
  padding: 0 0 26px;
  border-bottom: 1px solid var(--line);
}

.ansible-intro p {
  max-width: 900px;
  margin: 0;
}

.ansible-intro > a {
  flex: none;
  color: var(--pg-strong);
  font-size: 0.8rem;
  font-weight: 600;
}

.ansible-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  counter-reset: flow;
}

.ansible-flow > article {
  position: relative;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-elev-2);
}

.ansible-flow > article:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 32px;
  right: -12px;
  z-index: 2;
  display: flex;
  width: 23px;
  height: 23px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg-elev);
  color: var(--copper);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.flow-num {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--copper);
  font: 600 0.59rem/1 var(--font-mono);
  letter-spacing: 0.12em;
}

.ansible-flow h4 {
  min-height: 2.8em;
  margin: 0 0 16px;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 0.95rem;
}

.ansible-flow .download-code {
  border-radius: 8px;
  box-shadow: none;
}

.ansible-flow .download-code-head {
  min-height: 38px;
}

.ansible-flow .download-code pre {
  min-height: 142px;
  padding: 16px;
  font-size: 0.6rem;
  line-height: 1.75;
}

.ansible-flow .download-code-head button b {
  display: none;
}

.ansible-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.ansible-links > a {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 13px;
  padding: 16px 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-elev-2);
  color: inherit !important;
  transition: border-color 160ms ease, transform 160ms ease;
}

.ansible-links > a:hover {
  transform: translateY(-2px);
  border-color: var(--card-hover-border);
}

.ansible-links > a > i {
  color: var(--pg-strong);
}

.ansible-links span {
  display: grid;
  gap: 2px;
}

.ansible-links b {
  color: var(--ink);
  font-size: 0.78rem;
}

.ansible-links small {
  color: var(--ink-mute);
  font: 0.56rem/1.4 var(--font-mono);
}

/* Source build plate */
.build-plate {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  padding: 25px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    var(--bg-elev-2);
  background-size: 22px 22px;
}

.build-plate > span {
  display: block;
  color: var(--ink-mute);
  font: 600 0.58rem/1 var(--font-mono);
  letter-spacing: 0.13em;
}

.build-plate > strong {
  display: block;
  margin: 25px 0 32px;
  font: 700 3rem/1 var(--font-display);
  color: var(--ink);
}

.build-plate > div {
  display: grid;
  grid-template-columns: 7px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.63rem;
}

.build-plate > div i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px color-mix(in srgb, var(--ok) 60%, transparent);
}

.build-plate > div b {
  color: var(--ink-soft);
}

.build-plate > div em {
  color: var(--copper);
  font-style: normal;
}

/* Client quick command */
.client-quick-command {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-elev-2);
}

.client-quick-command > span {
  color: var(--ink-mute);
  font: 600 0.55rem/1 var(--font-mono);
  letter-spacing: 0.1em;
}

.client-quick-command code {
  overflow-x: auto;
  color: var(--ink-soft);
  font-size: 0.69rem;
  white-space: nowrap;
}

.client-quick-command button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--bg-elev);
  color: var(--ink-mute);
  cursor: pointer;
}

.client-quick-command button:hover {
  color: var(--pg-strong);
  border-color: var(--line-strong);
}

.client-quick-command button.copied {
  color: var(--ok);
}

/* Topology */
.topology-section {
  position: relative;
  padding: clamp(76px, 8vw, 112px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 100%, color-mix(in srgb, var(--copper) 5%, transparent), transparent 42rem),
    var(--bg-soft);
}

.topology-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.topology-grid article {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  box-shadow: var(--shadow-sm);
}

.topology-grid article::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--ink-mute);
  opacity: 0.6;
}

.topology-grid .topology-featured::before {
  height: 3px;
  background: linear-gradient(90deg, var(--pg), var(--ok), var(--copper));
  opacity: 1;
}

.topology-featured {
  border-color: color-mix(in srgb, var(--pg) 36%, var(--line)) !important;
}

.topology-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
}

.topology-head span {
  font: 700 2.05rem/1 var(--font-display);
  color: var(--ink);
}

.topology-head small {
  color: var(--ink-mute);
  font: 600 0.6rem/1 var(--font-mono);
}

.topology-grid h3 {
  margin: 0 0 14px;
  color: var(--ink);
  font: 650 1.1rem/1.35 var(--font-head);
}

.topology-grid p {
  min-height: 6.2em;
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.68;
}

.topology-grid code {
  display: block;
  overflow-x: auto;
  padding: 11px 12px;
  border: 1px solid var(--terminal-line);
  border-radius: 7px;
  background: var(--terminal-bg);
  color: #bfcbd9;
  font-size: 0.63rem;
  white-space: nowrap;
}

.topology-grid article > b {
  display: inline-block;
  margin-top: 22px;
  color: var(--ink-mute);
  font: 600 0.55rem/1 var(--font-mono);
  letter-spacing: 0.12em;
}

.topology-featured > b {
  color: var(--ok) !important;
}

/* Support */
.download-support {
  padding: clamp(76px, 8vw, 112px) 0;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.support-grid > a {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  color: inherit !important;
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.support-grid > a:hover {
  transform: translateY(-4px);
  border-color: var(--card-hover-border);
  box-shadow: var(--shadow-md);
}

.support-grid > a > span {
  display: inline-flex;
  width: 45px;
  height: 45px;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--bg-elev-2);
  color: var(--pg-strong);
}

.support-grid > a:nth-child(2) > span {
  color: var(--copper);
}

.support-grid > a:nth-child(3) > span {
  color: var(--ok);
}

.support-grid h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font: 650 1.2rem/1.35 var(--font-head);
}

.support-grid p {
  margin: 0 0 24px;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.7;
}

.support-grid b {
  margin-top: auto;
  color: var(--pg-strong);
  font-size: 0.78rem;
}

/* Responsive */
@media (max-width: 1080px) {
  .download-page .nav-link {
    padding-right: 8px;
    padding-left: 8px;
  }

  .method-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.65fr);
  }

  .download-tablist button {
    padding-right: 18px;
    padding-left: 18px;
  }
}

@media (max-width: 900px) {
  .download-hero h1 {
    font-size: clamp(3rem, 11vw, 5.2rem);
  }

  .download-section-head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 24px;
  }

  .version-card {
    width: min(100%, 360px);
  }

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

  .method-aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .asset-family-grid,
  .binary-grid,
  .ansible-flow,
  .ansible-links,
  .topology-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .asset-family-grid,
  .binary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ansible-flow > article:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -12px;
    transform: translateX(50%) rotate(90deg);
  }

  .ansible-flow h4,
  .ansible-flow .download-code pre {
    min-height: 0;
  }

  .topology-grid p {
    min-height: 0;
  }
}

@media (max-width: 768px) {
  .download-hero {
    padding-top: 96px;
  }

  .product-choice-grid {
    grid-template-columns: 1fr;
  }

  .product-choice-card {
    min-height: 320px;
  }

  .download-grid-bg::before {
    width: 540px;
    height: 540px;
  }

  .method-heading,
  .ansible-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .method-tags {
    justify-content: flex-start;
  }

  .method-aside {
    grid-template-columns: 1fr;
  }

  .client-quick-command {
    grid-template-columns: 1fr auto;
  }

  .client-quick-command > span {
    grid-column: 1 / -1;
  }

  .client-quick-command code {
    min-width: 0;
  }
}

@media (max-width: 580px) {
  .download-hero h1 {
    font-size: clamp(2.65rem, 14vw, 4rem);
  }

  .download-hero h1 span::after {
    right: -5px;
    width: 5px;
    height: 5px;
  }

  .download-release-line {
    width: 100%;
    border-radius: var(--radius-md);
  }

  .product-choice-card {
    min-height: 0;
  }

  .product-choice-top h2 {
    font-size: 2rem;
  }

  .product-choice-icon {
    width: 46px;
    height: 46px;
  }

  .download-tabs {
    margin-right: -8px;
    margin-left: -8px;
    border-radius: var(--radius-md);
  }

  .download-tablist {
    padding: 0 6px;
  }

  .download-tablist button {
    min-height: 60px;
    padding: 0 13px;
    font-size: 0.7rem;
  }

  .download-tablist button::after {
    right: 10px;
    left: 10px;
  }

  .download-panel {
    padding: 22px 18px 26px;
  }

  .asset-family-grid,
  .binary-grid {
    grid-template-columns: 1fr;
  }

  .download-code-head button b {
    display: none;
  }

  .download-code pre {
    font-size: 0.62rem;
  }

  .method-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .package-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .client-quick-command {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .support-grid > a {
    min-height: 235px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .download-panel {
    animation: none;
  }

  .product-choice-card,
  .product-choice-card::after,
  .product-choice-card > strong i,
  .download-release-line a span {
    transition: none;
  }
}
