:root {
  color-scheme: light;
  --bg-top: #eff6ff;
  --bg-bottom: #f7fbff;
  --card: rgba(255, 255, 255, 0.92);
  --card-line: rgba(111, 141, 190, 0.16);
  --text: #1d2740;
  --muted: #4a5b78;
  --pink: #ff5eaa;
  --violet: #7f74ff;
  --blue: #4fb7ff;
  --shadow: 0 30px 72px rgba(55, 72, 108, 0.14);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Nunito", "Segoe UI Variable Display", sans-serif;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 94, 170, 0.18), transparent 20%),
    radial-gradient(circle at 82% 20%, rgba(79, 183, 255, 0.18), transparent 22%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  color: var(--text);
}

.page-shell {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 28px;
}

.download-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 30px;
  padding: 48px;
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.94));
  border: 1px solid var(--card-line);
  box-shadow: var(--shadow);
}

.ambient {
  position: absolute;
  inset: auto;
  width: 240px;
  height: 240px;
  filter: blur(34px);
  opacity: 0.48;
  pointer-events: none;
}

.ambient-pink {
  top: -80px;
  left: -80px;
  background: radial-gradient(circle, rgba(255, 94, 170, 0.72), transparent 70%);
}

.ambient-blue {
  right: -90px;
  bottom: -90px;
  background: radial-gradient(circle, rgba(79, 183, 255, 0.6), transparent 70%);
}

.hero,
.testing-banner,
.download-panel,
.benefit-strip {
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.brand-badge {
  width: min(100%, 160px);
  height: auto;
}

.eyebrow {
  margin: 0;
  color: #697ea6;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.lede {
  margin: 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.status-pill {
  margin: 0;
  padding: 14px 20px;
  border-radius: 999px;
  background: rgba(255, 220, 129, 0.24);
  border: 1px solid rgba(255, 191, 67, 0.24);
  color: #7a5700;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.4;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}

.hero-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  border-radius: 999px;
  color: #33415f;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--card-line);
  font-size: 0.92rem;
  font-weight: 900;
  text-decoration: none;
}

.hero-links a:hover,
.hero-links a:focus-visible {
  color: #1d2740;
  background: rgba(127, 116, 255, 0.1);
  outline: none;
}

.testing-banner {
  display: grid;
  gap: 8px;
  padding: 22px 26px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(29, 39, 64, 0.98), rgba(79, 91, 120, 0.96));
  color: #fff;
  box-shadow: 0 18px 38px rgba(29, 39, 64, 0.18);
}

.testing-banner strong {
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1.05;
}

.testing-banner span {
  max-width: 62rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.04rem;
  line-height: 1.55;
}

.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 400px);
  gap: 24px;
  align-items: stretch;
}

.download-copy,
.qr-panel,
.benefit-item {
  border-radius: 28px;
  background: var(--card);
  border: 1px solid rgba(111, 141, 190, 0.14);
  box-shadow: 0 16px 30px rgba(55, 72, 108, 0.08);
}

.download-copy {
  display: grid;
  gap: 16px;
  align-content: center;
  padding: 28px;
}

.panel-badge {
  margin: 0;
  color: #697ea6;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.download-copy h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.02;
}

.panel-copy,
.support-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 16px 30px rgba(127, 116, 255, 0.24);
}

.primary-button:hover {
  filter: brightness(1.03);
}

.qr-panel {
  display: grid;
  gap: 14px;
  padding: 24px;
  justify-items: center;
  align-content: center;
}

.qr-shell {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 320px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(248, 250, 255, 1), rgba(242, 247, 255, 0.98));
  border: 1px solid rgba(111, 141, 190, 0.12);
}

.qr-image {
  width: min(100%, 290px);
  height: auto;
  border-radius: 18px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 18px 36px rgba(55, 72, 108, 0.14);
}

.qr-placeholder,
.version-label {
  color: var(--muted);
  text-align: center;
}

.qr-placeholder {
  max-width: 18ch;
  line-height: 1.6;
  font-weight: 700;
}

.version-label {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.benefit-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.benefit-item {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
}

.benefit-item strong {
  font-size: 1rem;
}

.benefit-item span {
  color: var(--muted);
  line-height: 1.55;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .page-shell {
    padding: 18px;
  }

  .download-card {
    padding: 28px 20px;
    border-radius: 28px;
  }

  .download-panel,
  .benefit-strip {
    grid-template-columns: 1fr;
  }

  .download-copy,
  .qr-panel {
    padding: 22px;
  }

  .qr-shell {
    min-height: 280px;
  }

  .primary-button {
    width: 100%;
  }
}
