:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #657085;
  --line: rgba(46, 74, 117, 0.12);
  --panel: rgba(255, 255, 255, 0.82);
  --blue: #2563eb;
  --cyan: #07b6d5;
  --green: #16a34a;
  --orange: #f59e0b;
  --shadow: 0 18px 48px rgba(22, 38, 68, 0.14);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(7, 182, 213, 0.2), transparent 28%),
    radial-gradient(circle at 92% 12%, rgba(245, 158, 11, 0.18), transparent 26%),
    linear-gradient(160deg, #f7fbff 0%, #f0f7f3 47%, #fff7ed 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  min-height: 100vh;
  min-height: 100svh;
  padding: max(18px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
}

.download-screen {
  width: calc(100vw - 32px);
  max-width: 360px;
  margin: 0 auto;
}

.wechat-tip {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  left: 16px;
  right: 16px;
  z-index: 20;
  display: none;
  max-width: 430px;
  margin: 0 auto;
  padding: 11px 14px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 8px;
  background: rgba(255, 251, 235, 0.96);
  color: #874d00;
  font-size: 13px;
  line-height: 1.45;
  box-shadow: 0 10px 24px rgba(120, 72, 0, 0.12);
}

.wechat-tip.is-visible {
  display: block;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 470px;
  padding: 24px 22px 22px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72)),
    url("/assets/phone-preview.svg") right 8px bottom 108px / 210px auto no-repeat;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -46px -88px -46px;
  height: 185px;
  background: linear-gradient(95deg, rgba(37, 99, 235, 0.9), rgba(7, 182, 213, 0.84) 54%, rgba(22, 163, 74, 0.82));
  transform: rotate(-5deg);
}

.brand-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22);
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
}

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

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 260px);
  margin: 24px 0 0;
  color: #36445d;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.device-card {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 36px rgba(16, 31, 58, 0.16);
  backdrop-filter: blur(20px);
}

.device-status {
  display: flex;
  align-items: center;
  min-height: 20px;
  gap: 8px;
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
}

.primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  gap: 9px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2563eb, #07b6d5);
  color: white;
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 14px 25px rgba(37, 99, 235, 0.28);
}

.button-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 16px;
  line-height: 1;
}

.install-note {
  min-height: 20px;
  margin: 11px 2px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.platform-panel,
.feature-strip,
.desktop-panel {
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(22, 38, 68, 0.1);
  backdrop-filter: blur(18px);
}

.platform-panel {
  padding: 15px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.panel-header strong {
  color: #1f2b43;
}

.platform-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.platform-option {
  display: flex;
  align-items: center;
  min-height: 70px;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.platform-option.is-active {
  border-color: rgba(37, 99, 235, 0.35);
  background: rgba(239, 246, 255, 0.94);
}

.platform-mark {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
}

.platform-mark::before {
  color: white;
  font-size: 20px;
  font-weight: 900;
}

.apple-mark {
  background: linear-gradient(135deg, #172033, #3b465b);
}

.apple-mark::before {
  content: "i";
}

.android-mark {
  background: linear-gradient(135deg, #16a34a, #07b6d5);
}

.android-mark::before {
  content: "A";
}

.platform-option strong,
.platform-option small {
  display: block;
}

.platform-option strong {
  margin-bottom: 4px;
  font-size: 15px;
}

.platform-option small {
  color: var(--muted);
  font-size: 12px;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}

.feature-strip div {
  min-width: 0;
  padding: 14px 8px;
  text-align: center;
}

.feature-strip div + div {
  border-left: 1px solid var(--line);
}

.feature-strip strong,
.feature-strip span {
  display: block;
}

.feature-strip strong {
  margin-bottom: 5px;
  font-size: 13px;
}

.feature-strip span {
  color: var(--muted);
  font-size: 11px;
}

.desktop-panel {
  display: none;
  align-items: center;
  gap: 14px;
  padding: 15px;
}

.desktop-panel strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.desktop-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.qr-box {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: repeat(2, 1fr);
  width: 58px;
  height: 58px;
  gap: 7px;
  padding: 7px;
  border-radius: 8px;
  background: white;
  box-shadow: inset 0 0 0 1px var(--line);
}

.qr-box span {
  border-radius: 3px;
  background: #172033;
}

body.is-desktop .desktop-panel {
  display: flex;
}

@media (max-width: 360px) {
  .page-shell {
    padding-right: 12px;
    padding-left: 12px;
  }

  .hero {
    min-height: 452px;
    padding: 20px 18px 18px;
    background-size: 188px auto;
    background-position: right 0 bottom 112px;
  }

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

  h1 {
    font-size: 30px;
  }

  .hero-copy {
    width: 225px;
    font-size: 16px;
  }
}

@media (min-width: 720px) {
  .page-shell {
    display: grid;
    place-items: center;
    padding-top: 30px;
    padding-bottom: 30px;
  }
}
