:root {
  --brand-blue: #3f6ea4;
  --brand-blue-dark: #2f5785;
  --brand-blue-deep: #24456c;
  --white: #ffffff;
  --panel-strong: #ffffff;
  --text: #14304d;
  --muted: #55718c;
  --line: rgba(20, 48, 77, 0.14);
  --shadow: 0 24px 60px rgba(18, 41, 67, 0.2);
  --radius-lg: 24px;
  --radius-md: 16px;
  --font-display: "Arial Black", "Avenir Next Condensed", "Helvetica Neue", sans-serif;
  --font-body: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  background:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(160deg, var(--brand-blue), var(--brand-blue-deep));
  background-size:
    28px 28px,
    28px 28px,
    auto;
}

img {
  display: block;
  max-width: 100%;
}

button,
select,
input {
  font: inherit;
}

.page-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 3rem 0;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: fixed;
  width: 24rem;
  height: 24rem;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0.16;
  filter: blur(16px);
}

.page-shell::before {
  top: -7rem;
  right: -8rem;
  background: #a7c4ea;
}

.page-shell::after {
  bottom: -8rem;
  left: -8rem;
  background: #ffffff;
}

.layout {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.download-card {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(320px, 1fr);
  min-height: 560px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 40px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: fade-up 0.8s ease 0.08s both;
}

.media-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)),
    linear-gradient(160deg, var(--brand-blue), var(--brand-blue-dark));
  border-right: 8px solid rgba(255, 255, 255, 0.08);
}

.media-panel img {
  position: relative;
  z-index: 1;
  width: min(100%, 330px);
  max-height: 410px;
  object-fit: contain;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(241, 246, 251, 0.94));
  border: 8px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  padding: 1rem;
  box-shadow: 0 18px 34px rgba(7, 23, 40, 0.2);
}

.content-panel {
  display: grid;
  align-content: start;
  gap: 1.25rem;
  padding: 2rem;
  background:
    linear-gradient(180deg, rgba(63, 110, 164, 0.04), rgba(63, 110, 164, 0)),
    var(--panel-strong);
}

.content-brand {
  display: flex;
  align-items: center;
}

.content-brand__logo {
  width: min(100%, 180px);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(20, 48, 77, 0.08);
}

.field {
  display: grid;
  gap: 0.65rem;
}

.field label,
.field-label,
.summary-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

select,
.field input {
  width: 100%;
  min-height: 3.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #f5f8fc;
  color: var(--text);
  padding: 0.92rem 1rem;
}

select:focus,
.field input:focus,
.language-button:focus,
.file-download:focus {
  outline: 3px solid rgba(63, 110, 164, 0.2);
  outline-offset: 2px;
}

.language-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.language-button {
  min-width: 8rem;
  min-height: 3rem;
  border: 1px solid rgba(63, 110, 164, 0.18);
  border-radius: 999px;
  background: #f5f8fc;
  color: var(--text);
  padding: 0.8rem 1rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.language-button:hover {
  transform: translateY(-1px);
  border-color: var(--brand-blue);
}

.language-button.is-active {
  border-color: var(--brand-blue);
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  color: var(--white);
}

.summary {
  position: relative;
  padding: 1.4rem;
  border: 1px solid rgba(63, 110, 164, 0.12);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #f7faff, #ffffff);
}

.summary::before {
  content: "";
  position: absolute;
  top: 1.3rem;
  left: 1.3rem;
  width: 46px;
  height: 4px;
  border-radius: 999px;
  background: var(--brand-blue);
}

.summary-label {
  display: block;
  padding-top: 0.85rem;
}

.summary h2 {
  margin: 0.45rem 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2vw, 2.35rem);
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.summary p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.download-url-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.5rem;
  align-items: center;
  gap: 0.75rem;
  margin-top: -0.75rem;
}

.download-url {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.copy-url-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(63, 110, 164, 0.18);
  border-radius: 999px;
  background: #f5f8fc;
  color: var(--brand-blue-dark);
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.copy-url-button:hover {
  transform: translateY(-1px);
  border-color: var(--brand-blue);
  background: #ffffff;
}

.copy-url-button:focus {
  outline: 3px solid rgba(63, 110, 164, 0.2);
  outline-offset: 2px;
}

.copy-url-button svg {
  width: 1.1rem;
  height: 1.1rem;
}

.copy-url-status {
  min-height: 1.1rem;
  margin: -0.85rem 0 0;
  color: var(--brand-blue-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.qr-panel {
  display: grid;
  grid-template-columns: 11rem auto;
  align-items: center;
  justify-content: start;
  gap: 1rem;
}

.qr-code {
  width: 11rem;
  height: 11rem;
  border: 1px solid rgba(63, 110, 164, 0.14);
  border-radius: 12px;
  background: #ffffff;
  padding: 0.55rem;
}

.qr-download-actions {
  display: grid;
  gap: 0.65rem;
}

.qr-download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  border: 1px solid rgba(63, 110, 164, 0.18);
  border-radius: 999px;
  background: #f5f8fc;
  color: var(--brand-blue-dark);
  padding: 0.65rem 1rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.qr-download-button:hover {
  transform: translateY(-1px);
  border-color: var(--brand-blue);
  background: #ffffff;
}

.qr-download-button:focus {
  outline: 3px solid rgba(63, 110, 164, 0.2);
  outline-offset: 2px;
}

.qr-status {
  grid-column: 1 / -1;
  min-height: 1.1rem;
  margin: 0;
  color: var(--brand-blue-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.product-downloads {
  display: grid;
  gap: 1rem;
}

.product-section {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid rgba(63, 110, 164, 0.14);
  border-radius: var(--radius-md);
  background: #f7faff;
}

.product-section__image {
  width: 5.5rem;
  aspect-ratio: 1;
  object-fit: contain;
  border: 1px solid rgba(63, 110, 164, 0.12);
  border-radius: 12px;
  background: #ffffff;
  padding: 0.45rem;
}

.product-section__body {
  display: grid;
  gap: 0.7rem;
  min-width: 0;
}

.product-section h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.05;
  text-transform: uppercase;
}

.product-section__label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.file-list {
  display: grid;
  gap: 0.65rem;
}

.file-row {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem;
  border: 1px solid rgba(63, 110, 164, 0.12);
  border-radius: 12px;
  background: #ffffff;
}

.file-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  min-height: 2.5rem;
  border-radius: 10px;
  background: rgba(63, 110, 164, 0.1);
  color: var(--brand-blue-dark);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.file-details {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.file-title {
  color: var(--text);
  font-weight: 900;
}

.file-meta,
.empty-files {
  color: var(--muted);
  font-size: 0.82rem;
}

.empty-files {
  margin: 0;
}

.file-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  color: var(--white);
  padding: 0.55rem 0.9rem;
  font-weight: 900;
  text-decoration: none;
}

noscript {
  display: block;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto 3rem;
  color: var(--white);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .download-card {
    grid-template-columns: 1fr;
  }

  .media-panel {
    min-height: 300px;
    border-right: 0;
    border-bottom: 8px solid rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 560px) {
  .layout {
    width: min(100% - 1rem, 1180px);
  }

  .content-panel,
  .media-panel {
    padding: 1.25rem;
  }

  .language-button {
    min-width: calc(50% - 0.4rem);
  }

  .product-section,
  .file-row {
    grid-template-columns: 1fr;
  }

  .product-section__image {
    width: 100%;
    max-height: 9rem;
  }

  .file-download {
    width: 100%;
  }

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

  .qr-download-actions {
    display: flex;
    flex-wrap: wrap;
  }
}
