:root {
  color-scheme: dark;
  --gold: #e6bd5c;
  --gold-soft: #f6dfa2;
  --ink: #08090c;
  --panel: rgba(15, 16, 20, 0.94);
  --line: rgba(230, 189, 92, 0.28);
  --muted: #a7a39a;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--ink);
}

body {
  min-height: 100vh;
  margin: 0;
  color: #f7f4ed;
  font-family: Inter, system-ui, sans-serif;
  background:
    linear-gradient(90deg, rgba(5, 6, 8, 0.94), rgba(5, 6, 8, 0.7)),
    url("/images/login-command-centre.png") center / cover fixed;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 50% 18%, rgba(230, 189, 92, 0.13), transparent 34rem),
    linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.5));
}

.download-shell {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100% - 32px, 860px);
  min-height: 100vh;
  margin: auto;
  padding: 36px 0;
  place-content: center;
}

.download-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  margin: 0 auto 20px;
  color: inherit;
  text-decoration: none;
}

.download-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.download-brand-copy {
  display: grid;
  gap: 1px;
  text-transform: uppercase;
}

.download-brand-name {
  color: #f7f4ed;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.34em;
  white-space: nowrap;
}

.download-brand-name > span {
  color: var(--gold);
}

.download-brand-subtitle {
  color: #8d8a7e;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.28em;
}

.download-card {
  overflow: hidden;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(20, 20, 23, 0.97), rgba(8, 9, 12, 0.98));
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.55);
}

.download-kicker {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
}

h1,
h2 {
  margin: 12px 0;
  font-family: "Playfair Display", Georgia, serif;
}

h1 {
  font-size: clamp(38px, 7vw, 64px);
  line-height: 1;
}

h2 {
  font-size: 26px;
}

.download-lead {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.release-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin-top: 18px;
  padding: 9px 12px;
  border: 1px solid rgba(230, 189, 92, 0.18);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  background: rgba(230, 189, 92, 0.045);
}

.release-status strong {
  color: var(--gold-soft);
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.platform-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.025);
  transition: 180ms ease;
}

.platform-card:hover,
.platform-card:focus-visible {
  border-color: var(--gold);
  outline: none;
  background: rgba(230, 189, 92, 0.08);
  transform: translateY(-2px);
}

.platform-icon {
  display: grid;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #17130a;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold-soft), #c8952c);
  place-items: center;
}

.platform-icon.apple {
  font-size: 19px;
}

.platform-icon img {
  display: block;
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.platform-icon.apple img {
  width: 24px;
  height: 24px;
}

.platform-copy {
  display: grid;
  align-content: center;
  gap: 6px;
}

.platform-copy strong {
  font-size: 17px;
}

.platform-copy small {
  color: var(--muted);
  line-height: 1.4;
}

.platform-action {
  grid-column: 1 / -1;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.platform-card.downloading {
  border-color: var(--gold);
}

.ios-guide {
  margin-top: 20px;
  padding: 24px;
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  background: rgba(230, 189, 92, 0.07);
}

.ios-guide ol {
  display: grid;
  gap: 10px;
  padding-left: 22px;
  color: #d5d1c7;
  line-height: 1.55;
}

.ios-guide button {
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  color: #17130a;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, var(--gold-soft), #c8952c);
}

.download-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 12px;
}

.download-footer a {
  margin-left: auto;
  color: var(--gold-soft);
}

.download-note {
  max-width: 660px;
  margin: 18px auto 0;
  color: #77746d;
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

.download-legal {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.download-legal details {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #aaa69d;
  background: rgba(255, 255, 255, 0.018);
}

.download-legal summary {
  padding: 12px 14px;
  color: #d8d3c9;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.download-legal p {
  margin: 0;
  padding: 0 14px 12px;
  font-size: 10px;
  line-height: 1.65;
}

@media (max-width: 640px) {
  .download-shell {
    width: min(100% - 20px, 860px);
    padding: 22px 0;
  }

  .download-card {
    border-radius: 18px;
  }

  .platform-grid {
    grid-template-columns: 1fr;
  }

  .download-footer {
    display: grid;
  }

  .download-footer a {
    margin: 6px 0 0;
  }
}
