:root {
  --bg: #f7f8fb;
  --text: #18202d;
  --muted: #5e6d7c;
  --line: #d8e0ea;
  --surface: #ffffff;
  --navy: #172033;
  --blue: #1b6fb8;
  --green: #2c7a5b;
  --gold: #d99027;
  --danger: #b84a4a;
  --shadow: 0 18px 55px rgba(24, 32, 45, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.app-header {
  background: var(--navy);
  color: #fff;
  padding: 42px 0 34px;
}

.header-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 34px;
  align-items: center;
}

.eyebrow {
  display: block;
  margin-bottom: 10px;
  color: #9ed3bb;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.lead {
  max-width: 640px;
  margin-bottom: 0;
  color: #c8d6e8;
  font-size: 1.08rem;
}

.status-panel {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.product-visual {
  width: 150px;
  max-width: 100%;
  border-radius: 6px;
  background: #fff;
}

.status-label,
.detail-item span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-panel .status-label {
  color: #9fb3c8;
}

#versionText {
  display: block;
  margin: 4px 0;
  font-size: 1.45rem;
}

#releaseText {
  color: #c8d6e8;
  font-size: 0.92rem;
}

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

.download-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 260px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.primary-card {
  border-top: 5px solid var(--blue);
}

.download-card p {
  color: var(--muted);
}

.card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #e9f2fb;
  color: var(--blue);
  font-size: 1.55rem;
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}

.button-primary {
  background: var(--blue);
  color: #fff;
}

.button-secondary {
  border: 1px solid var(--line);
  background: #f9fbfd;
}

.button[aria-disabled="true"] {
  pointer-events: none;
  color: #7e8b98;
  background: #edf1f5;
}

.details-band {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.detail-item {
  min-width: 0;
  padding: 18px;
  background: var(--surface);
}

.detail-item strong,
.copy-value,
.text-link {
  display: block;
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.copy-value {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.copy-value:disabled {
  color: var(--muted);
  cursor: default;
}

.text-link {
  color: var(--blue);
  font-weight: 700;
}

.notes-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: 32px;
  margin: 34px 0;
}

.release-notes,
.steps {
  color: var(--muted);
}

.steps {
  margin: 0;
  padding-left: 22px;
}

.steps li + li {
  margin-top: 8px;
}

.message {
  min-height: 24px;
  color: var(--danger);
  font-weight: 700;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  color: var(--muted);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 900px) {
  .header-grid,
  .download-grid,
  .details-band,
  .notes-layout {
    grid-template-columns: 1fr;
  }

  .download-grid {
    margin-top: 20px;
  }

  .download-card {
    min-height: 220px;
  }
}

@media (max-width: 560px) {
  .app-header {
    padding-top: 30px;
  }

  .status-panel {
    grid-template-columns: 1fr;
  }

  .product-visual {
    width: 100%;
  }

  .footer-row {
    flex-direction: column;
  }
}
