.download-page {
    --download-ink: #19151f;
    --download-muted: #6d6874;
    --download-line: #e8e4eb;
    --download-purple: #6544e9;
    --download-plum: #2d1737;
    background: #f7f6f8;
}

.download-page svg {
    width: 1.25em;
    height: 1.25em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.download-container {
    width: min(1280px, calc(100% - 72px));
    margin-inline: auto;
}

.download-hero {
    position: relative;
    overflow: hidden;
    padding: 88px 0 96px;
    color: #fff;
    background:
        radial-gradient(circle at 12% 22%, rgba(101, 68, 233, .44), transparent 28%),
        radial-gradient(circle at 88% 78%, rgba(75, 199, 207, .16), transparent 26%),
        linear-gradient(124deg, #211027 0%, #321b3c 56%, #17121d 100%);
}

.download-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .09;
    background-image: linear-gradient(rgba(255,255,255,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to left, #000, transparent 84%);
}

.download-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
    align-items: center;
    gap: 90px;
}

.download-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #d9cdf0;
    font-size: 13px;
    font-weight: 700;
}

.download-eyebrow i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #73d7cd;
    box-shadow: 0 0 0 6px rgba(115, 215, 205, .12);
}

.download-hero h1 {
    max-width: 760px;
    margin: 0;
    font-family: Samim-Bold, Samim, Tahoma, sans-serif;
    font-size: clamp(48px, 6vw, 82px);
    line-height: 1.18;
    letter-spacing: -2px;
}

.download-hero h1 span { color: #9e86ff; }

.download-hero-copy > p {
    max-width: 680px;
    margin: 26px 0 0;
    color: #ccc3d0;
    font-size: 17px;
    line-height: 2.05;
}

.download-hero-actions {
    margin-top: 34px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.download-primary-action {
    min-height: 54px;
    padding: 13px 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 10px;
    background: #fff;
    color: #2d1737 !important;
    text-decoration: none;
    font-family: Samim-Bold, Samim, sans-serif;
    font-size: 14px;
    box-shadow: 0 14px 34px rgba(0,0,0,.18);
    transition: transform .2s ease, box-shadow .2s ease;
}

.download-primary-action:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(0,0,0,.24); }
.download-primary-action svg { width: 18px; height: 18px; }

.download-verified {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #bdb3c2;
    font-size: 12px;
}

.download-verified svg { color: #73d7cd; }

.download-hero-console {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 18px;
    background: rgba(18, 13, 22, .7);
    box-shadow: 0 34px 80px rgba(0,0,0,.34);
    backdrop-filter: blur(18px);
}

.download-hero-console::after {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    left: -90px;
    bottom: -110px;
    border-radius: 50%;
    background: rgba(101, 68, 233, .34);
    filter: blur(24px);
}

.download-console-head {
    min-height: 50px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,.1);
    color: #867d8b;
    font-family: monospace;
    font-size: 10px;
    letter-spacing: 1.2px;
}

.download-console-head > span { display: flex; gap: 6px; }
.download-console-head i { width: 7px; height: 7px; border-radius: 50%; background: #544c59; }
.download-console-head i:first-child { background: #73d7cd; }
.download-console-head i:nth-child(2) { background: #f0b969; }

.download-console-body { position: relative; z-index: 1; padding: 28px; }

.download-console-status {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,.09);
}

.download-pulse { width: 10px; height: 10px; border-radius: 50%; background: #71d5a8; box-shadow: 0 0 0 6px rgba(113,213,168,.12); }
.download-console-status small, .download-console-status strong { display: block; }
.download-console-status small { color: #837988; font-size: 10px; }
.download-console-status strong { margin-top: 3px; color: #f2edf4; font-size: 13px; }
.download-console-status em { padding: 5px 8px; border: 1px solid rgba(113,213,168,.22); border-radius: 6px; color: #71d5a8; font: normal 9px monospace; letter-spacing: 1px; }

.download-console-items { display: grid; gap: 10px; padding: 22px 0; }
.download-console-items span { min-height: 44px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; border: 1px solid rgba(255,255,255,.09); border-radius: 8px; background: rgba(255,255,255,.035); color: #d8d0db; font-family: monospace; font-size: 12px; }
.download-console-items i { width: 54%; height: 5px; border-radius: 99px; background: linear-gradient(90deg, #7658ee 72%, rgba(255,255,255,.08) 72%); }
.download-console-items span:nth-child(2) i { background: linear-gradient(90deg, #4bc7cf 88%, rgba(255,255,255,.08) 88%); }
.download-console-items span:nth-child(3) i { background: linear-gradient(90deg, #cf8bea 62%, rgba(255,255,255,.08) 62%); }

.download-console-foot { display: flex; align-items: center; gap: 12px; color: #9e86ff; }
.download-console-foot svg { width: 25px; height: 25px; }
.download-console-foot span, .download-console-foot strong, .download-console-foot small { display: block; }
.download-console-foot strong { color: #eee9f0; font-size: 12px; }
.download-console-foot small { margin-top: 2px; color: #7d7382; font: 9px monospace; direction: ltr; text-align: right; }

.download-catalog { padding: 105px 0 116px; }

.download-section-head {
    margin-bottom: 42px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
}

.download-section-head span { color: var(--download-purple); font-size: 12px; font-weight: 800; }
.download-section-head h2 { margin: 8px 0 0; color: var(--download-ink); font-family: Samim-Bold, Samim, sans-serif; font-size: clamp(28px, 3vw, 42px); line-height: 1.45; }
.download-section-head p { max-width: 430px; margin: 0; color: var(--download-muted); font-size: 13px; line-height: 1.9; }

.download-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.download-card {
    --card-accent: #6544e9;
    --card-soft: #f0ecff;
    position: relative;
    min-width: 0;
    padding: 25px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--download-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(35,24,43,.045);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.download-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--card-accent) 35%, #e8e4eb); box-shadow: 0 20px 46px rgba(35,24,43,.09); }
.download-card::before { content: ""; position: absolute; inset: 0 22px auto; height: 3px; border-radius: 0 0 8px 8px; background: var(--card-accent); }

.theme-dotnet { --card-accent: #6848d8; --card-soft: #eeeaff; }
.theme-dotnet-modern { --card-accent: #512bd4; --card-soft: #eee9ff; }
.theme-vfp { --card-accent: #d0912e; --card-soft: #fff4df; }
.theme-anydesk { --card-accent: #ef443b; --card-soft: #fff0ef; }
.theme-sql { --card-accent: #1473e6; --card-soft: #eaf4ff; }
.theme-ssms { --card-accent: #7552b6; --card-soft: #f2edfb; }
.theme-crystal { --card-accent: #159b91; --card-soft: #e6f8f5; }
.theme-fonts { --card-accent: #b34c78; --card-soft: #fcebf2; }
.theme-reports { --card-accent: #3977a8; --card-soft: #eaf4fb; }
.theme-codings { --card-accent: #68833f; --card-soft: #f0f6e7; }
.theme-amisa { --card-accent: #7a294d; --card-soft: #f8eaf1; }
.theme-dorsan { --card-accent: #e56a24; --card-soft: #fff1e8; }

.download-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.download-product-mark { min-width: 54px; height: 54px; padding-inline: 10px; display: grid; place-items: center; border-radius: 11px; background: var(--card-soft); color: var(--card-accent); font: 800 13px/1 Arial, sans-serif; letter-spacing: -.4px; }
.download-source-badge { display: inline-flex; align-items: center; gap: 7px; color: #89838e; font-size: 10px; }
.download-source-badge i { width: 6px; height: 6px; border-radius: 50%; background: #4eb987; box-shadow: 0 0 0 4px rgba(78,185,135,.1); }
.is-legacy .download-source-badge i { background: #d0912e; box-shadow: 0 0 0 4px rgba(208,145,46,.1); }

.download-card-copy { flex: 1; padding-top: 24px; }
.download-category { color: var(--card-accent); font-size: 10px; font-weight: 800; }
.download-card h3 { margin: 7px 0 0; color: var(--download-ink); font-family: Samim-Bold, Samim, Tahoma, sans-serif; font-size: 20px; line-height: 1.55; }
.download-card-copy p { margin: 12px 0 0; color: var(--download-muted); font-size: 12px; line-height: 1.9; }

.download-meta { margin: 24px 0 0; padding: 15px 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #efedf1; border-bottom: 1px solid #efedf1; }
.download-meta div + div { padding-right: 16px; border-right: 1px solid #efedf1; }
.download-meta dt { color: #99939e; font-size: 9px; }
.download-meta dd { margin: 4px 0 0; overflow: hidden; color: #45404a; font-size: 11px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }

.download-legacy-note { margin-top: 14px; display: flex; align-items: center; gap: 8px; color: #956314; font-size: 10px; line-height: 1.7; }
.download-legacy-note svg { flex: 0 0 auto; width: 16px; height: 16px; }

.download-button { min-height: 46px; margin-top: 18px; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid color-mix(in srgb, var(--card-accent) 22%, #e8e4eb); border-radius: 9px; background: var(--card-soft); color: var(--card-accent) !important; text-decoration: none; font-size: 11px; font-weight: 800; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.download-button:hover { border-color: var(--card-accent); background: var(--card-accent); color: #fff !important; }
.download-button svg { width: 18px; height: 18px; }

.download-help { margin-top: 38px; padding: 22px 26px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; border: 1px solid #ded9e3; border-radius: 13px; background: #efecf2; }
.download-help-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: #fff; color: var(--download-purple); }
.download-help-icon svg { width: 22px; height: 22px; }
.download-help strong { color: #2d2831; font-size: 13px; }
.download-help p { margin: 4px 0 0; color: #77717c; font-size: 11px; line-height: 1.8; }
.download-help > a { padding: 10px 15px; border-radius: 8px; background: #27222b; color: #fff !important; text-decoration: none; font-size: 10px; font-weight: 800; }

.download-page .amisa-footer { background: #fff; }

@media (max-width: 1050px) {
    .download-hero-grid { grid-template-columns: 1fr 360px; gap: 48px; }
    .download-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
    .download-container { width: min(100% - 36px, 640px); }
    .download-hero { padding: 66px 0 72px; }
    .download-hero-grid { grid-template-columns: 1fr; gap: 44px; }
    .download-hero h1 { font-size: clamp(42px, 12vw, 62px); }
    .download-hero-copy > p { font-size: 15px; }
    .download-hero-console { max-width: 520px; width: 100%; }
    .download-catalog { padding: 76px 0 82px; }
    .download-section-head { align-items: start; flex-direction: column; gap: 14px; }
}

@media (max-width: 560px) {
    .download-container { width: calc(100% - 28px); }
    .download-hero { padding-top: 52px; }
    .download-hero h1 { letter-spacing: -1px; }
    .download-hero-actions { align-items: stretch; flex-direction: column; gap: 16px; }
    .download-primary-action { width: 100%; }
    .download-console-body { padding: 22px; }
    .download-grid { grid-template-columns: 1fr; }
    .download-card { padding: 22px; }
    .download-help { grid-template-columns: auto 1fr; padding: 20px; }
    .download-help > a { grid-column: 1 / -1; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    .download-card, .download-primary-action, .download-button { transition: none; }
}
