:root {
    --bg: #0b1220;
    --bg-2: #10192b;
    --panel: rgba(16, 25, 43, 0.88);
    --line: rgba(140, 169, 214, 0.22);
    --line-strong: rgba(140, 169, 214, 0.35);
    --text: #eef5ff;
    --text-soft: #abc0de;
    --text-dim: #7f95b3;
    --brand: #0078d4;
    --brand-2: #2a8be2;
    --ok: #2ea86b;
    --warn: #e08a2d;
    --danger: #d95b5b;
    --shadow: 0 24px 60px rgba(2, 8, 20, 0.42);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    color: var(--text);
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(0, 120, 212, 0.18), transparent 30%),
        radial-gradient(circle at top right, rgba(24, 100, 193, 0.15), transparent 28%),
        linear-gradient(180deg, #08101c 0%, #0b1220 55%, #0f1627 100%);
}

.page-shell {
    width: min(1240px, calc(100vw - 48px));
    margin: 0 auto;
    padding: 24px 0 48px;
}

.topbar,
.hero,
.download-card,
.info-card,
.delivery-card {
    border: 1px solid var(--line);
    background: var(--panel);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

.topbar {
    border-radius: 20px;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.brand-kicker,
.eyebrow {
    margin: 0 0 10px;
    color: #84b9f1;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.brand-block h1,
.hero h2,
.section-head h3,
.info-card h3,
.timeline-item h4 {
    margin: 0;
}

.brand-block h1 {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.04;
}

.brand-subtitle {
    margin: 8px 0 0;
    color: var(--text-soft);
    font-size: 14px;
}

.topnav {
    display: flex;
    gap: 18px;
    padding-top: 6px;
    flex-wrap: wrap;
}

.topnav a {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 14px;
}

.topnav a:hover {
    color: var(--text);
}

main {
    display: grid;
    gap: 22px;
    margin-top: 22px;
}

.hero {
    border-radius: 28px;
    padding: 40px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 28px;
}

.hero h2 {
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.08;
    max-width: 12ch;
}

.hero-text {
    margin: 18px 0 0;
    max-width: 640px;
    color: var(--text-soft);
    font-size: 16px;
    line-height: 1.8;
}

.hero-actions,
.download-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.btn {
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    padding: 12px 18px;
    color: var(--text);
    text-decoration: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(180deg, var(--brand-2), var(--brand));
    border-color: rgba(78, 160, 230, 0.68);
}

.btn-secondary {
    background: rgba(22, 34, 56, 0.72);
}

.hero-panel {
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-window {
    width: min(100%, 460px);
    border-radius: 18px;
    border: 1px solid rgba(126, 160, 206, 0.26);
    background: linear-gradient(180deg, rgba(10, 17, 28, 0.94), rgba(12, 21, 36, 0.96));
    overflow: hidden;
}

.panel-header {
    display: flex;
    gap: 8px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(126, 160, 206, 0.18);
}

.panel-header span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(153, 176, 210, 0.45);
}

.panel-content {
    padding: 18px 18px 8px;
}

.panel-line {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(126, 160, 206, 0.1);
}

.panel-line strong {
    font-size: 14px;
}

.panel-line span {
    color: var(--text-soft);
    font-size: 13px;
    text-align: right;
}

.download-card,
.delivery-card {
    border-radius: 24px;
    padding: 28px;
}

.section-head p {
    margin: 10px 0 0;
    color: var(--text-soft);
    line-height: 1.7;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.download-grid label {
    display: grid;
    gap: 10px;
    color: var(--text-soft);
    font-size: 13px;
}

select,
input,
textarea {
    width: 100%;
    border: 1px solid rgba(117, 148, 191, 0.24);
    border-radius: 12px;
    padding: 12px 14px;
    color: var(--text);
    background: rgba(7, 12, 20, 0.75);
    font: inherit;
}

.download-actions {
    align-items: end;
    margin-top: 0;
}

.download-status {
    margin-top: 20px;
    border-top: 1px solid rgba(117, 148, 191, 0.14);
    padding-top: 18px;
}

.download-status p {
    margin: 0;
}

#downloadStatusTitle {
    font-size: 18px;
    font-weight: 700;
}

#downloadStatusText {
    margin-top: 8px;
    color: var(--text-soft);
    line-height: 1.7;
}

.download-meta {
    margin: 14px 0 0;
    padding-left: 18px;
    color: var(--text-dim);
    line-height: 1.8;
}

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

.info-card {
    border-radius: 22px;
    padding: 24px;
}

.info-card p:last-child {
    margin: 14px 0 0;
    color: var(--text-soft);
    line-height: 1.8;
}

.timeline {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.timeline-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    border-radius: 14px;
    background: rgba(0, 120, 212, 0.16);
    color: #8fc7ff;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.timeline-item p {
    margin: 10px 0 0;
    color: var(--text-soft);
    line-height: 1.8;
}

.status-ok #downloadStatusTitle {
    color: var(--ok);
}

.status-warn #downloadStatusTitle {
    color: var(--warn);
}

.status-error #downloadStatusTitle {
    color: var(--danger);
}

@media (max-width: 980px) {
    .hero,
    .info-grid,
    .download-grid {
        grid-template-columns: 1fr;
    }

    .topbar {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .page-shell {
        width: min(100vw - 24px, 1240px);
        padding-top: 12px;
    }

    .hero,
    .download-card,
    .delivery-card,
    .info-card,
    .topbar {
        padding: 20px;
        border-radius: 18px;
    }

    .hero h2 {
        max-width: none;
    }
}
