:root {
  --ink: #182027;
  --muted: #5f6975;
  --line: #e5ebef;
  --panel: #ffffff;
  --soft: #f4f9f8;
  --aqua: #15a6a7;
  --aqua-dark: #0a646b;
  --coral: #ff6e61;
  --gold: #f4b63b;
  --shadow: 0 18px 45px rgba(10, 35, 45, .14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.62;
  overflow-x: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 70px;
  padding: 12px clamp(16px, 4vw, 54px);
  display: flex;
  align-items: center;
  gap: 22px;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(229, 235, 239, .92);
  backdrop-filter: blur(18px);
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 18px;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(21, 166, 167, .24);
}

.nav-links {
  margin-left: auto;
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.nav-download,
.primary-btn,
.mini-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: var(--coral);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(255, 110, 97, .24);
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, .12);
}

.hero {
  position: relative;
  min-height: 674px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 32, 41, .9) 0%, rgba(7, 60, 66, .72) 44%, rgba(7, 60, 66, .18) 100%),
    linear-gradient(180deg, rgba(255,255,255,0) 82%, #fff 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 674px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 74px 24px 92px;
  display: grid;
  grid-template-columns: minmax(0, 760px);
  gap: 42px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
  color: #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: #91efe0;
  font-weight: 900;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: 0;
}

.lead {
  max-width: 660px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .88);
  font-size: 18px;
  word-break: break-all;
}

.hero-actions,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 30px;
}

.meta-row {
  margin-top: 26px;
}

.meta-row span {
  min-width: 0;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .13);
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
}

.meta-row strong {
  display: inline-block;
  margin-left: 4px;
  color: #fff;
}

.phone-card {
  display: none;
}

.phone-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 22px;
}

.download-strip {
  position: relative;
  z-index: 2;
  width: min(1080px, calc(100% - 32px));
  margin: -48px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.download-strip > * {
  min-width: 0;
  padding: 20px;
  background: #fff;
}

.download-strip > .mini-download {
  min-width: 136px;
  background: var(--coral);
  color: #fff;
  align-self: stretch;
}

.label {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.download-strip strong {
  display: block;
  margin-top: 4px;
}

.section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 84px 24px;
}

.section-head {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-head p:not(.eyebrow),
.reviews-copy p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--muted);
}

.ranking {
  padding-top: 92px;
}

.ranking-grid {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 14px;
}

.rank-card {
  min-height: 116px;
  padding: 20px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(10, 35, 45, .06);
}

.rank-main {
  grid-row: span 2;
  min-height: 246px;
  align-content: end;
  color: #fff;
  background: linear-gradient(135deg, var(--aqua-dark), var(--aqua) 58%, #57c8b6);
  border-color: transparent;
}

.rank-num {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(21, 166, 167, .12);
  color: var(--aqua-dark);
  font-weight: 900;
}

.rank-main .rank-num {
  background: rgba(255, 255, 255, .18);
  color: #fff;
}

.rank-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.rank-main p {
  color: rgba(255, 255, 255, .82);
}

.rank-card strong {
  color: var(--coral);
}

.rank-main strong {
  color: #fff;
}

.features {
  background: var(--soft);
  max-width: none;
}

.features > * {
  max-width: 1112px;
  margin-left: auto;
  margin-right: auto;
}

.feature-grid,
.review-grid,
.screens-grid {
  display: grid;
  gap: 18px;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-grid article,
.review-grid article {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(10, 35, 45, .05);
}

.feature-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(21, 166, 167, .12);
  color: var(--aqua-dark);
  font-weight: 900;
}

.feature-grid p,
.review-grid p {
  margin: 10px 0 0;
  color: var(--muted);
}

.screenshots {
  padding-bottom: 92px;
}

.screens-grid {
  grid-template-columns: repeat(3, 1fr);
}

.shot {
  min-width: 0;
  padding: 12px;
  border: 0;
  border-radius: 8px;
  background: #101820;
  box-shadow: var(--shadow);
  cursor: zoom-in;
}

.shot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 6px;
}

.reviews {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 34px;
  background: #0d2830;
  color: #fff;
}

.reviews > * {
  max-width: 1112px;
}

.reviews-copy {
  justify-self: end;
  width: min(100%, 360px);
  padding-left: 24px;
}

.reviews-copy h2 {
  color: #fff;
}

.reviews-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, .72);
}

.review-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-right: 24px;
}

.review-grid article {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .14);
  box-shadow: none;
}

.stars {
  color: var(--gold);
  font-weight: 900;
}

blockquote {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, .92);
}

.review-grid span {
  display: block;
  color: rgba(255, 255, 255, .64);
  font-size: 13px;
}

.install {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.install p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
}

.lightbox[hidden],
[data-hidden="true"] {
  display: none !important;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  padding: 34px;
  display: grid;
  place-items: center;
  background: rgba(6, 18, 24, .78);
}

.lightbox img {
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .36);
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 28px;
  cursor: pointer;
}

.demo-panel {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 55;
  width: 170px;
  padding: 12px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow);
}

.demo-panel strong {
  font-size: 13px;
}

.demo-panel button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.demo-panel button[aria-pressed="true"] {
  color: #fff;
  border-color: var(--aqua);
  background: var(--aqua);
}

@media (max-width: 900px) {
  .topbar {
    gap: 12px;
  }

  .nav-links {
    display: none;
  }

  .nav-download {
    margin-left: auto;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 58px;
    width: 100%;
    max-width: 100%;
  }

  .hero-copy,
  .lead {
    width: 100%;
    max-width: 100%;
  }

  h1 {
    font-size: 40px;
  }

  .phone-card {
    width: min(100%, 278px);
  }

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

  .ranking-grid,
  .feature-grid,
  .screens-grid,
  .review-grid,
  .reviews,
  .install {
    grid-template-columns: 1fr;
  }

  .rank-main {
    min-height: 160px;
  }

  .reviews-copy {
    justify-self: stretch;
    width: auto;
    padding-right: 24px;
  }

  .review-grid {
    padding: 0 24px 24px;
  }

  .install .primary-btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .topbar {
    min-height: 64px;
    padding: 10px 14px;
  }

  .brand {
    font-size: 16px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .nav-download {
    min-height: 40px;
    padding: 0 14px;
  }

  h1 {
    font-size: 34px;
    max-width: calc(100vw - 36px);
  }

  h2 {
    font-size: 28px;
  }

  .section {
    padding: 64px 18px;
  }

  .hero-inner {
    padding: 46px 18px 82px;
  }

  .hero-copy,
  .lead {
    width: calc(100vw - 36px);
    max-width: calc(100vw - 36px);
  }

  .lead {
    width: min(300px, calc(100vw - 36px));
    max-width: min(300px, calc(100vw - 36px));
  }

  .hero-actions a,
  .secondary-btn,
  .primary-btn {
    width: 100%;
  }

  .download-strip {
    width: calc(100% - 24px);
  }

  .rank-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .rank-card strong {
    grid-column: 2;
  }

  .demo-panel {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .demo-panel button {
    font-size: 12px;
  }

  .demo-panel strong {
    grid-column: 1 / -1;
  }

  .meta-row span {
    width: 100%;
  }
}
