:root {
  color-scheme: light;
  --ink: #13202b;
  --muted: #63717c;
  --line: rgba(33, 82, 90, 0.16);
  --paper: #ffffff;
  --wash: #eef8f5;
  --teal: #008b84;
  --teal-dark: #05615f;
  --gold: #f0b429;
  --blue: #2d6cdf;
  --violet: #6f5bd7;
  --shadow: 0 28px 80px rgba(19, 32, 43, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(0, 139, 132, 0.12), transparent 34%),
    linear-gradient(315deg, rgba(240, 180, 41, 0.16), transparent 30%),
    #f6faf8;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(33, 82, 90, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 82, 90, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 78%);
}

a {
  color: inherit;
}

.page {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 32px;
}

.download-room {
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 8px 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 16px;
}

.app-icon {
  width: 68px;
  height: 68px;
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(0, 139, 132, 0.22);
  flex: 0 0 auto;
}

.eyebrow,
.panel-label {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 800;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: 0;
}

.platform-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.platform-pills span {
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: #25404b;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 800;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  align-items: stretch;
  padding-top: 26px;
}

.showcase {
  min-height: 480px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(250px, 1fr);
  gap: 22px;
  align-items: center;
}

.tagline {
  margin: 0;
  max-width: 430px;
  color: #304651;
  font-size: 28px;
  line-height: 1.45;
  font-weight: 800;
}

.phone-scene {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
}

.phone {
  width: min(230px, 78vw);
  aspect-ratio: 0.56;
  padding: 14px;
  border-radius: 34px;
  background: #17242f;
  box-shadow: 0 26px 56px rgba(19, 32, 43, 0.25);
}

.phone-speaker {
  width: 68px;
  height: 6px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.screen {
  height: calc(100% - 18px);
  padding: 22px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(0, 139, 132, 0.1), transparent 40%),
    #f9fffc;
  overflow: hidden;
}

.screen-title {
  color: var(--teal-dark);
  font-size: 17px;
  line-height: 1.3;
  font-weight: 900;
}

.screen-qr-card {
  margin-top: 22px;
  padding: 12px;
  border: 1px solid rgba(33, 82, 90, 0.14);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: inset 0 0 0 7px rgba(240, 180, 41, 0.1);
}

.screen-qr-card img {
  width: 100%;
  aspect-ratio: 1;
  display: block;
}

.screen-qr-card span {
  display: block;
  margin-top: 10px;
  color: var(--teal-dark);
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 900;
}

.action-panel {
  min-height: 480px;
  display: grid;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(0, 139, 132, 0.07), transparent 42%),
    var(--paper);
}

.mobile-panel,
.desktop-panel {
  width: 100%;
}

.mobile-panel h2,
.desktop-panel h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: 0;
}

.panel-copy {
  margin: 14px 0 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.qr-frame {
  width: min(100%, 280px);
  aspect-ratio: 1;
  margin: 20px auto;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: inset 0 0 0 8px rgba(240, 180, 41, 0.12);
}

.qr-frame img {
  width: 100%;
  height: 100%;
  display: block;
}

.primary-button,
.copy-button,
.manual-links a,
.desktop-links a {
  min-height: 52px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  font-weight: 900;
  line-height: 1.3;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button {
  width: 100%;
  padding: 16px 18px;
  color: #ffffff;
  background: linear-gradient(180deg, #00a59b, var(--teal));
  box-shadow: 0 16px 32px rgba(0, 139, 132, 0.26);
  border: 0;
  font-size: 18px;
}

.copy-button {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(0, 139, 132, 0.24);
  background: rgba(0, 139, 132, 0.08);
  color: var(--teal-dark);
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
}

.primary-button:hover,
.copy-button:hover,
.manual-links a:hover,
.desktop-links a:hover {
  transform: translateY(-1px);
}

.manual-links,
.desktop-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.manual-links a,
.desktop-links a {
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: #25404b;
  font-size: 15px;
}

.browser-tip {
  margin-top: 18px;
  padding: 13px 15px;
  border: 1px solid rgba(240, 180, 41, 0.45);
  background: rgba(240, 180, 41, 0.13);
  border-radius: 8px;
  color: #735112;
  font-size: 14px;
  line-height: 1.6;
}

.noscript {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 5;
  padding: 14px 16px;
  color: #735112;
  background: #fff8e6;
  border: 1px solid rgba(240, 180, 41, 0.42);
  border-radius: 8px;
  text-align: center;
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .page {
    align-items: start;
    padding: 18px;
  }

  .content-grid,
  .showcase {
    grid-template-columns: 1fr;
  }

  .showcase {
    min-height: 0;
  }

  .tagline {
    max-width: none;
  }

  .phone-scene {
    min-height: 390px;
  }

  .action-panel {
    min-height: 0;
  }
}

@media (max-width: 600px) {
  .page {
    padding: 12px;
  }

  .download-room {
    padding: 16px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 0 0 18px;
  }

  .brand {
    gap: 12px;
  }

  .app-icon {
    width: 56px;
    height: 56px;
  }

  h1 {
    font-size: 27px;
  }

  .platform-pills {
    justify-content: flex-start;
  }

  .content-grid {
    gap: 18px;
    padding-top: 18px;
  }

  .tagline {
    font-size: 22px;
  }

  .phone-scene {
    min-height: 340px;
  }

  .phone {
    width: 210px;
  }

  .action-panel {
    padding: 18px;
  }

  .mobile-panel h2,
  .desktop-panel h2 {
    font-size: 24px;
  }
}
