.download-hero {
  position: relative;
  overflow: hidden;
  padding: 6.5rem 0 6rem;
  text-align: center;
  background:
    radial-gradient(circle at 14% 15%, rgba(14, 165, 233, 0.2), transparent 29%),
    radial-gradient(circle at 86% 28%, rgba(16, 185, 129, 0.18), transparent 30%),
    linear-gradient(180deg, #f8fafc 0%, #f2f9fb 100%);
}

.download-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.22;
  background-image: radial-gradient(#0ea5e9 0.7px, transparent 0.7px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.download-hero .container { position: relative; }
.download-hero h1 { margin: 1rem auto 0.8rem; font-size: clamp(2.8rem, 7vw, 5rem); line-height: 1.05; letter-spacing: -0.055em; }
.download-hero > .container > p { max-width: 640px; margin: 0 auto; color: var(--text-secondary); font-size: 1.08rem; }

.hero-label, .release-tag, .eyebrow {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.38rem 0.8rem;
  color: var(--primary); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; border: 1px solid rgba(14, 165, 233, 0.25); border-radius: 999px; background: rgba(255, 255, 255, 0.7);
}

.primary-download-card {
  display: flex; flex-direction: column; align-items: center; max-width: 620px; margin: 2.8rem auto 0;
  padding: 2.4rem; border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 2rem;
  background: rgba(255, 255, 255, 0.86); box-shadow: 0 30px 80px rgba(15, 23, 42, 0.13); backdrop-filter: blur(18px);
}

.download-product-icon { display: grid; width: 64px; height: 64px; place-items: center; margin-bottom: 1.2rem; border-radius: 18px; background: white; box-shadow: 0 12px 30px rgba(14, 165, 233, 0.18); }
.download-product-icon img { width: 48px; height: 48px; border-radius: 12px; }
.system-pill { display: inline-flex; align-items: center; gap: 0.45rem; color: #087c68; font-size: 0.78rem; font-weight: 700; }
.download-state h2 { margin-top: 0.35rem; font-size: 1.8rem; letter-spacing: -0.03em; }
.download-state p { color: var(--text-secondary); font-size: 0.86rem; }

.main-download-button {
  display: inline-flex; align-items: center; justify-content: center; width: min(100%, 360px); margin-top: 1.4rem; padding: 1rem 1.5rem;
  gap: 0.65rem; color: white; font-weight: 750; text-decoration: none; border-radius: 1rem;
  background: linear-gradient(135deg, #0ea5e9, #10b981); box-shadow: 0 13px 28px rgba(14, 165, 233, 0.25); transition: transform .2s ease, box-shadow .2s ease;
}
.main-download-button:hover { transform: translateY(-2px); box-shadow: 0 17px 35px rgba(14, 165, 233, 0.32); }
.main-download-button.is-disabled { pointer-events: none; opacity: .65; }
.alternate-downloads { display: flex; flex-direction: column; align-items: center; margin-top: 1rem; gap: .55rem; color: var(--text-secondary); font-size: .78rem; }
.alternate-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }
.alternate-downloads a { color: var(--primary); font-weight: 700; text-decoration: none; }
.alternate-downloads .install-guide-hint { display: inline-flex; align-items: center; gap: .35rem; color: var(--text-secondary); font-weight: 600; }
.alternate-downloads .install-guide-hint:hover { color: var(--primary); }

.install-section { padding: 6rem 0; background: #fff; }
.section-heading { max-width: 720px; margin: 0 auto 2rem; text-align: center; }
.section-heading h2 { margin: .8rem 0; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; letter-spacing: -.04em; }
.section-heading p, .guide-intro p, .step-card p { color: var(--text-secondary); }
.guide-tabs { display: flex; width: fit-content; margin: 0 auto 2rem; padding: .35rem; gap: .25rem; border: 1px solid var(--border-color); border-radius: 999px; background: var(--muted); }
.guide-tab { padding: .7rem 1.3rem; border: 0; border-radius: 999px; background: transparent; color: var(--text-secondary); font: inherit; font-weight: 700; cursor: pointer; }
.guide-tab.active { background: white; color: var(--text-primary); box-shadow: 0 4px 14px rgba(15, 23, 42, .1); }
.guide-panel { display: none; max-width: 1160px; margin: 0 auto; }
.guide-panel.active { display: block; }
.guide-intro { display: flex; align-items: center; max-width: 720px; margin: 0 auto 2rem; gap: 1rem; }
.guide-intro h3 { font-size: 1.15rem; }
.guide-os-icon { display: grid; width: 48px; height: 48px; place-items: center; color: white; border-radius: 14px; background: #0f172a; font-size: 1.4rem; }
.steps-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.steps-grid.mac-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step-card { position: relative; padding: .65rem .65rem 1.5rem; border: 1px solid #e7edf3; border-radius: 1.4rem; background: #fbfdfe; overflow: hidden; }
.step-number { position: absolute; z-index: 2; top: 1.1rem; left: 1.1rem; padding: .28rem .55rem; color: white; font-size: .72rem; font-weight: 800; border-radius: .5rem; background: #0f172a; box-shadow: 0 5px 15px rgba(15, 23, 42, .2); }
.step-card h4, .step-card p { margin-left: .8rem; margin-right: .8rem; }
.step-card h4 { margin-top: 1.15rem; margin-bottom: .35rem; font-size: 1.05rem; }
.step-card p { font-size: .87rem; line-height: 1.65; }
.step-visual { position: relative; display: grid; min-height: 255px; place-items: center; padding: 1.3rem; border-radius: 1rem; overflow: hidden; }
.windows-visual { background: linear-gradient(145deg, #c9eafe, #f1f8fd 60%, #d8eefc); }
.mac-visual { background: linear-gradient(145deg, #e6eaf0, #f8fafc 60%, #e6e9ed); }

.win-window, .property-window, .settings-window, .security-window { width: 100%; color: #172033; border: 1px solid rgba(100, 116, 139, .24); border-radius: .6rem; background: rgba(255,255,255,.95); box-shadow: 0 18px 35px rgba(30, 64, 90, .18); }
.win-window { max-width: 360px; padding: 1.25rem; }
.win-title { display: flex; align-items: center; gap: .6rem; font-size: .94rem; font-weight: 750; }
.win-title i { color: #2694cf; font-size: 1.4rem; }
.win-window p { margin: .75rem 0; color: #526274; font-size: .68rem; line-height: 1.45; }
.win-window button { padding: 0; color: #0879ba; border: 0; background: transparent; font-size: .68rem; font-weight: 700; }
.win-actions { display: flex; justify-content: flex-end; margin-top: 1rem; gap: .5rem; }
.win-actions span, .property-actions span { padding: .38rem .75rem; color: white; font-size: .63rem; border-radius: .2rem; background: #0786d1; }
.win-actions .muted-action, .property-actions span:last-child { color: #344154; background: #e7edf2; }

.property-window { max-width: 360px; padding-bottom: .7rem; }
.property-title { display: flex; justify-content: space-between; padding: .55rem .7rem; font-size: .65rem; border-bottom: 1px solid #e2e8f0; }
.property-tabs { display: flex; gap: 1rem; padding: .45rem .8rem; font-size: .58rem; border-bottom: 1px solid #e2e8f0; }
.property-tabs b { color: #0879ba; }
.property-file { display: flex; align-items: center; padding: .8rem; gap: .7rem; }
.property-file i { color: #188fcf; font-size: 1.6rem; }
.property-file div, .unlock-row > span:last-child { display: flex; flex-direction: column; }
.property-file b, .unlock-row b { font-size: .65rem; }
.property-file small, .unlock-row small { color: #657489; font-size: .52rem; }
.unlock-row { display: flex; align-items: center; margin: 0 .8rem; padding: .6rem; gap: .55rem; border: 1px solid #c9d8e5; border-radius: .3rem; background: #eff8fd; }
.checkbox { display: grid; width: 14px; height: 14px; flex: 0 0 auto; place-items: center; color: white; border-radius: 2px; background: #0786d1; font-size: .55rem; }
.property-actions { display: flex; justify-content: flex-end; margin: .7rem .8rem 0; gap: .4rem; }

.mac-desktop { position: relative; width: 100%; height: 210px; border: 1px solid rgba(100, 116, 139, .2); border-radius: .65rem; background: linear-gradient(145deg, #72b9e9, #d7b3e4 55%, #ef9b89); box-shadow: 0 18px 35px rgba(30, 41, 59, .16); overflow: hidden; }
.mac-bar { display: flex; align-items: center; height: 23px; padding: 0 .55rem; gap: .6rem; background: rgba(255,255,255,.68); font-size: .5rem; backdrop-filter: blur(12px); }
.apple-menu { display: flex; flex-direction: column; position: absolute; top: 25px; left: 4px; width: 115px; padding: .45rem; gap: .32rem; border: 1px solid rgba(255,255,255,.6); border-radius: .42rem; background: rgba(255,255,255,.88); box-shadow: 0 10px 22px rgba(30,41,59,.18); font-size: .5rem; }
.apple-menu span:first-of-type { margin: 0 -.25rem; padding: .2rem .25rem; color: white; border-radius: .25rem; background: #1677e8; }
.apple-menu hr { border: 0; border-top: 1px solid #dbe2e8; }
.cursor { position: absolute; top: 56px; left: 94px; color: #111827; font-size: 1.1rem; text-shadow: 0 1px 0 white; }

.settings-window { display: grid; grid-template-columns: 43% 57%; max-width: 370px; min-height: 205px; overflow: hidden; }
.settings-sidebar { display: flex; flex-direction: column; padding: 2.2rem .55rem .7rem; gap: .3rem; background: rgba(230,234,239,.92); font-size: .51rem; }
.settings-sidebar span { padding: .3rem .42rem; border-radius: .3rem; }
.settings-sidebar .selected { color: white; background: #2778d3; }
.settings-content { padding: 2rem .65rem .65rem; background: #fff; font-size: .56rem; }
.settings-content > b { font-size: .76rem; }
.setting-row { display: flex; justify-content: space-between; margin-top: .55rem; padding-bottom: .45rem; border-bottom: 1px solid #edf0f3; color: #475569; }
.accent-row { color: #172033; font-weight: 700; }

.security-window { max-width: 370px; padding: 1.2rem; }
.security-heading { display: flex; align-items: center; gap: .45rem; font-size: .78rem; }
.mac-lock { display: grid; width: 20px; height: 20px; place-items: center; color: #68778a; border: 1px solid #cbd5e1; border-radius: 50%; background: #f8fafc; font-size: .55rem; }
.security-window p { margin: .8rem 0; padding: .65rem; color: #5b6878; border-radius: .45rem; background: #f1f3f5; font-size: .56rem; line-height: 1.5; }
.security-window button { float: right; padding: .35rem .6rem; color: white; border: 0; border-radius: .35rem; background: #1677e8; font-size: .55rem; font-weight: 700; }
.allow-row { display: flex; flex-direction: column; clear: both; padding-top: 1rem; gap: .25rem; font-size: .52rem; }
.allow-row b { color: #3d4a5a; }

.release-section { padding: 5rem 0; background: #f8fafc; }
.release-toolbar { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 2rem; gap: 2rem; }
.release-toolbar h2 { font-size: 2rem; letter-spacing: -.025em; }
.release-toolbar p, .release-date, .release-description, .asset-meta { color: var(--text-secondary); }
.release-search { display: flex; align-items: center; min-width: 320px; padding: .7rem 1rem; gap: .6rem; border: 1px solid var(--border-color); border-radius: 999px; background: var(--card-bg); color: var(--text-secondary); }
.release-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text-primary); font: inherit; }
.release-list { display: grid; gap: 1.25rem; }
.release-card { padding: 1.75rem; border: 1px solid var(--border-color); border-radius: 1.25rem; background: var(--card-bg); }
.release-header { display: flex; justify-content: space-between; margin-bottom: 1.25rem; gap: 1rem; }
.release-title { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.release-title h3 { font-size: 1.35rem; }
.release-notes { margin: 1rem 0 0 1.25rem; color: var(--text-secondary); }
.release-notes li + li { margin-top: .35rem; }
.asset-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); margin-top: 1.25rem; gap: .75rem; }
.asset-button { display: inline-flex; align-items: center; padding: .7rem 1rem; color: var(--text-primary); text-decoration: none; border: 1px solid var(--border-color); border-radius: .75rem; background: var(--muted); transition: border-color .2s ease, transform .2s ease; }
.asset-button:hover { border-color: var(--primary); transform: translateY(-1px); }
.download-asset { justify-content: flex-start; min-width: 0; min-height: 3.75rem; padding: .75rem 1rem; gap: .75rem; text-align: left; white-space: normal; }
.asset-copy { display: block; flex: 1; min-width: 0; line-height: 1.25; }
.asset-label { display: block; overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.asset-meta { display: block; margin-top: .25rem; font-size: .75rem; font-weight: 500; }
.release-status { display: flex; justify-content: center; align-items: center; min-height: 180px; gap: .7rem; color: var(--text-secondary); text-align: center; }
.release-status[hidden] { display: none; }

@media (max-width: 900px) {
  .steps-grid.mac-steps { grid-template-columns: 1fr; }
  .steps-grid.mac-steps .step-card { display: grid; grid-template-columns: minmax(260px, 42%) 1fr; column-gap: 1rem; align-items: center; }
  .steps-grid.mac-steps .step-card .step-visual { grid-row: span 2; }
}

@media (max-width: 768px) {
  .download-hero { padding: 4.5rem 0 4rem; }
  .primary-download-card { padding: 1.6rem 1rem; border-radius: 1.5rem; }
  .install-section, .release-section { padding: 3.5rem 0; }
  .steps-grid, .steps-grid.mac-steps { grid-template-columns: 1fr; }
  .steps-grid.mac-steps .step-card { display: block; }
  .guide-intro { align-items: flex-start; }
  .release-toolbar, .release-header { align-items: stretch; flex-direction: column; }
  .release-search { min-width: 0; }
  .asset-list { grid-template-columns: 1fr; }
  .download-asset { width: 100%; }
}
