:root {
  color-scheme: light;
  --blue: #0758a6;
  --blue-deep: #073b72;
  --blue-soft: #eaf4ff;
  --red: #c90e4f;
  --ink: #172433;
  --muted: #627083;
  --line: #dce5ef;
  --paper: #ffffff;
  --soft: #f4f8fc;
  --shadow: 0 28px 80px rgba(15, 60, 106, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--soft);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
  background: var(--paper);
}

img {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 12px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(220, 229, 239, 0.88);
  backdrop-filter: blur(18px);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.site-brand img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border: 1px solid #e7edf4;
  border-radius: 13px;
  box-shadow: 0 8px 22px rgba(9, 70, 129, 0.14);
}

.site-brand span {
  display: grid;
  line-height: 1.18;
}

.site-brand strong {
  font-size: 17px;
}

.site-brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

nav a {
  padding: 9px 13px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
}

nav a:hover {
  color: var(--blue-deep);
  background: var(--blue-soft);
}

nav .nav-download {
  color: #ffffff;
  background: var(--blue);
}

nav .nav-download:hover {
  color: #ffffff;
  background: var(--blue-deep);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  align-items: center;
  gap: clamp(44px, 8vw, 110px);
  min-height: 720px;
  padding: clamp(58px, 8vw, 110px) max(18px, calc((100vw - 1180px) / 2));
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 14%, rgba(8, 97, 181, 0.18), transparent 30%),
    radial-gradient(circle at 8% 82%, rgba(201, 14, 79, 0.08), transparent 27%),
    linear-gradient(135deg, #ffffff 0%, #f3f8fd 56%, #e7f2fb 100%);
}

.hero::before,
.hero::after {
  position: absolute;
  border: 1px solid rgba(7, 88, 166, 0.09);
  border-radius: 50%;
  content: "";
}

.hero::before {
  top: -260px;
  right: -160px;
  width: 620px;
  height: 620px;
}

.hero::after {
  right: 100px;
  bottom: -390px;
  width: 720px;
  height: 720px;
}

.hero-content,
.hero-preview {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.eyebrow::before {
  width: 28px;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--blue));
  border-radius: 999px;
  content: "";
}

.app-heading {
  display: flex;
  align-items: center;
  gap: 24px;
}

.app-heading img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border: 1px solid #e0e9f2;
  border-radius: 26px;
  box-shadow: 0 18px 44px rgba(7, 74, 140, 0.18);
}

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

h1 {
  margin-bottom: 8px;
  font-size: clamp(52px, 7vw, 86px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.app-subtitle {
  margin: 0;
  color: var(--blue-deep);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 700;
}

.hero-description {
  max-width: 720px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 19px);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 62px;
  padding: 11px 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #0870c9, var(--blue-deep));
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(7, 71, 136, 0.24);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.download-button:hover {
  color: #ffffff;
  box-shadow: 0 20px 44px rgba(7, 71, 136, 0.3);
  transform: translateY(-2px);
}

.download-button span:last-child {
  display: grid;
  line-height: 1.18;
}

.download-button small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
}

.download-button strong {
  margin-top: 4px;
  font-size: 16px;
}

.android-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
}

.download-meta {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.wechat-tip {
  max-width: 590px;
  margin: 18px 0 0;
  padding: 12px 15px;
  color: #765213;
  font-size: 13px;
  background: #fff5d9;
  border: 1px solid #f0d898;
  border-radius: 10px;
}

.hero-preview {
  justify-self: center;
}

.phone-shell {
  position: relative;
  width: min(320px, 72vw);
  aspect-ratio: 9 / 17.6;
  padding: 12px;
  overflow: hidden;
  background: #111b27;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 38px;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.phone-shell::before {
  position: absolute;
  top: 20px;
  left: 50%;
  z-index: 2;
  width: 72px;
  height: 19px;
  background: #111b27;
  border-radius: 999px;
  content: "";
  transform: translateX(-50%);
}

.phone-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 27px;
}

.preview-note {
  position: absolute;
  right: -48px;
  bottom: 46px;
  display: grid;
  max-width: 250px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(220, 229, 239, 0.92);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(15, 60, 106, 0.14);
}

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

.preview-note strong {
  margin-top: 4px;
  font-size: 14px;
}

.trust-strip {
  position: relative;
  z-index: 4;
  width: min(1120px, calc(100% - 36px));
  margin: -34px auto 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(22, 66, 108, 0.11);
}

.trust-strip dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 2fr;
  margin: 0;
}

.trust-strip div {
  min-width: 0;
  padding: 20px 24px;
  border-left: 1px solid var(--line);
}

.trust-strip div:first-child {
  border-left: 0;
}

dt,
dd {
  margin: 0;
}

.trust-strip dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.trust-strip dd {
  margin-top: 5px;
  font-size: 14px;
  font-weight: 800;
}

.content-section,
.screens-section {
  padding: clamp(76px, 9vw, 118px) max(18px, calc((100vw - 1180px) / 2));
}

.section-heading {
  max-width: 760px;
}

.section-heading h2,
.download-panel h2 {
  margin-bottom: 14px;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.section-heading > p:last-child {
  color: var(--muted);
  font-size: 17px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 44px;
}

.feature-grid article {
  position: relative;
  min-height: 230px;
  padding: 28px;
  overflow: hidden;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.feature-grid article::after {
  position: absolute;
  right: -24px;
  bottom: -34px;
  width: 110px;
  height: 110px;
  background: rgba(7, 88, 166, 0.05);
  border-radius: 50%;
  content: "";
}

.feature-index {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.feature-grid h3 {
  margin: 42px 0 10px;
  font-size: 21px;
}

.feature-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.screens-section {
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(6, 46, 86, 0.98), rgba(7, 88, 166, 0.96)),
    var(--blue-deep);
}

.section-heading-light .eyebrow {
  color: #9dd0ff;
}

.section-heading-light > p:last-child {
  color: rgba(255, 255, 255, 0.68);
}

.screens-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.6vw, 28px);
  margin-top: 48px;
}

.screens-grid figure {
  margin: 0;
}

.screen-frame {
  aspect-ratio: 9 / 17;
  padding: 8px;
  overflow: hidden;
  background: #152536;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  box-shadow: 0 22px 50px rgba(1, 20, 40, 0.3);
}

.screen-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 17px;
}

.screens-grid figcaption {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  text-align: center;
}

.download-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
  width: min(1120px, calc(100% - 36px));
  margin: clamp(70px, 9vw, 110px) auto;
  padding: clamp(26px, 4vw, 44px);
  background: linear-gradient(120deg, #f6faff, #eaf4ff);
  border: 1px solid #cfe2f4;
  border-radius: 22px;
}

.download-panel > img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border: 1px solid #dbe6f0;
  border-radius: 20px;
}

.download-panel h2 {
  margin-bottom: 6px;
  font-size: clamp(28px, 4vw, 42px);
}

.download-panel p:last-child {
  margin: 0;
  color: var(--muted);
}

.download-button-compact {
  min-height: 52px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.site-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 34px max(18px, calc((100vw - 1180px) / 2));
  color: #657383;
  font-size: 13px;
  background: #f4f7fa;
  border-top: 1px solid var(--line);
}

.site-footer strong {
  color: var(--ink);
  font-size: 17px;
}

.site-footer p {
  margin: 6px 0 0;
}

.filing-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 20px;
}

.site-footer a:hover {
  color: var(--blue-deep);
}

.police-filing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.police-filing img {
  width: 20px;
  height: 20px;
}

@media (max-width: 940px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 70px;
  }

  .hero-content {
    max-width: 760px;
  }

  .hero-preview {
    margin-top: 16px;
  }

  .trust-strip dl {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-strip div:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .trust-strip div:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .feature-grid,
  .screens-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-panel {
    grid-template-columns: auto 1fr;
  }

  .download-panel .download-button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 66px;
    padding-block: 10px;
  }

  .site-brand img {
    width: 42px;
    height: 42px;
  }

  .site-brand small,
  nav a:not(.nav-download) {
    display: none;
  }

  nav .nav-download {
    padding: 8px 12px;
    font-size: 13px;
  }

  .hero {
    min-height: auto;
    gap: 48px;
    padding-top: 48px;
    padding-bottom: 82px;
  }

  .app-heading {
    align-items: flex-start;
    gap: 16px;
  }

  .app-heading img {
    width: 76px;
    height: 76px;
    border-radius: 19px;
  }

  h1 {
    font-size: 48px;
  }

  .app-subtitle {
    font-size: 15px;
  }

  .hero-description {
    margin-top: 22px;
    font-size: 15px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .download-button {
    width: 100%;
  }

  .phone-shell {
    width: min(300px, 78vw);
  }

  .preview-note {
    right: -18px;
    bottom: 30px;
    max-width: 210px;
  }

  .trust-strip {
    margin-top: -28px;
  }

  .trust-strip dl {
    grid-template-columns: 1fr;
  }

  .trust-strip div,
  .trust-strip div:nth-child(2),
  .trust-strip div:nth-child(4) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .trust-strip div:first-child {
    border-top: 0;
  }

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

  .feature-grid article {
    min-height: 196px;
  }

  .feature-grid h3 {
    margin-top: 30px;
  }

  .screens-grid {
    display: flex;
    gap: 18px;
    margin-right: -18px;
    padding-right: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .screens-grid figure {
    flex: 0 0 76vw;
    scroll-snap-align: start;
  }

  .download-panel {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .download-panel > img {
    margin: 0 auto;
  }

  .download-panel .eyebrow {
    justify-content: center;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .filing-links {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .download-button {
    transition: none;
  }
}
