:root {
  color-scheme: light;
  --ink: #17212b;
  --muted: #5f6b7a;
  --line: #dfe5ec;
  --panel: #ffffff;
  --bg: #eef3f8;
  --green: #137a5f;
  --green-dark: #0c604a;
  --gold: #d99b35;
  --blue: #315f9d;
  --shadow: 0 24px 70px rgba(31, 48, 70, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 16%, rgba(217, 155, 53, 0.18), transparent 26rem),
    linear-gradient(135deg, #f7fafc 0%, var(--bg) 48%, #e7eef4 100%);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  gap: 44px;
  align-items: center;
  min-height: calc(100vh - 180px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.summary {
  max-width: 620px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.8;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
}

.download-button,
.copy-button {
  min-height: 52px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.download-button {
  color: #ffffff;
  background: var(--green);
  box-shadow: 0 14px 28px rgba(19, 122, 95, 0.28);
}

.download-button:hover,
.download-button:focus-visible {
  background: var(--green-dark);
}

.copy-button {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  border-color: var(--line);
}

.download-button.is-disabled {
  background: #8995a3;
  box-shadow: none;
  cursor: not-allowed;
}

.button-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.2);
  font-size: 1rem;
}

.apk-status {
  min-height: 24px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.apk-status.is-ready {
  color: var(--green);
}

.apk-status.is-missing {
  color: #a15f11;
}

.app-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 680px;
  margin: 0;
}

.app-meta div {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.app-meta dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.app-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.phone-visual {
  display: grid;
  place-items: center;
}

.phone-frame {
  width: min(320px, 78vw);
  aspect-ratio: 9 / 18;
  border-radius: 34px;
  padding: 13px;
  background: #1d2733;
  box-shadow: var(--shadow);
}

.phone-top {
  width: 74px;
  height: 7px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: #536170;
}

.screen {
  height: calc(100% - 19px);
  border-radius: 25px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 20px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(49, 95, 157, 0.18), transparent 42%),
    #f8fbfe;
}

.app-icon {
  width: 104px;
  height: 104px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--green), var(--blue));
  color: white;
  box-shadow: 0 18px 32px rgba(49, 95, 157, 0.26);
}

.app-icon span {
  font-size: 3.3rem;
  font-weight: 900;
}

.screen-title {
  font-size: 1.8rem;
  font-weight: 900;
}

.progress-line {
  width: 62%;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green) 68%, #d7e1eb 68%);
}

.install-pill {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(217, 155, 53, 0.18);
  color: #8a5a12;
  font-size: 0.86rem;
  font-weight: 900;
}

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

.install-notes article {
  min-width: 0;
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.step {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--blue);
  font-weight: 900;
}

.install-notes h2 {
  margin-bottom: 8px;
  font-size: 1.12rem;
}

.install-notes p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: calc(100% - 40px);
  padding: 12px 16px;
  border-radius: 8px;
  color: #ffffff;
  background: #17212b;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 24px, 560px);
    padding: 26px 0;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: auto;
  }

  h1 {
    font-size: clamp(2.5rem, 16vw, 4.3rem);
  }

  .summary {
    font-size: 1rem;
  }

  .download-button,
  .copy-button {
    width: 100%;
  }

  .app-meta,
  .install-notes {
    grid-template-columns: 1fr;
  }

  .phone-frame {
    width: min(250px, 72vw);
  }
}
