:root {
  --page: rgb(245, 245, 247);
  --ink: rgb(29, 29, 31);
  --muted: rgb(110, 110, 115);
  --hairline: rgba(0, 0, 0, 0.16);
  --surface: rgb(255, 255, 255);
  --surface-solid: rgb(255, 255, 255);
  --accent: rgb(52, 199, 89);
  --blue: rgb(52, 199, 89);
  --nav-bg: rgba(250, 250, 252, 0.8);
  --footer-text: rgba(0, 0, 0, 0.56);
  --footer-link: rgba(0, 0, 0, 0.56);
  --footer-pipe: rgba(0, 0, 0, 0.48);
  --footer-item-gap: 30px;
  --radius-large: 34px;
  --radius-medium: 24px;
  --max: 1380px;
  --copy-column: 680px;
  --center-copy: 1080px;
  --phone-column: 390px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 106.25%;
  quotes: "“" "”";
}

html:lang(zh-CN) {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html:lang(en) {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.4705882353;
  font-weight: 400;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

body:lang(zh-CN) {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0;
}

body:lang(en) {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

a {
  color: var(--blue);
  letter-spacing: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 max(22px, env(safe-area-inset-left));
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(0, 0, 0, 0.8);
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.brand:lang(zh-CN) {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0;
}

.brand-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.16);
}

.language-link {
  color: rgba(0, 0, 0, 0.72);
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
}

.text-link:hover {
  color: var(--blue);
}

.section-pad {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 110px 28px;
}

.hero {
  min-height: min(calc(100svh - 52px), 1055px);
  display: grid;
  grid-template-columns: minmax(540px, 1fr) minmax(320px, 468px);
  gap: clamp(48px, 7vw, 128px);
  align-items: center;
  padding-top: 70px;
  padding-bottom: 56px;
}

.hero-copy {
  max-width: 680px;
  min-width: 0;
}

.app-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.app-lockup img {
  width: 72px;
  height: 72px;
  border-radius: 17px;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

.app-lockup .eyebrow {
  margin-bottom: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0;
}

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

h1,
h2,
h3 {
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 600;
}

h1:lang(zh-CN),
h2:lang(zh-CN),
h3:lang(zh-CN) {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

h1:lang(en),
h2:lang(en),
h3:lang(en) {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(52px, 7vw, 96px);
  line-height: 1.04167;
  letter-spacing: -0.015em;
  text-wrap: normal;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(38px, 5.4vw, 72px);
  line-height: 1.05556;
  letter-spacing: -0.012em;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(25px, 2.8vw, 36px);
  line-height: 1.08349;
  letter-spacing: -0.003em;
}

h1:lang(zh-CN),
h2:lang(zh-CN),
h3:lang(zh-CN) {
  letter-spacing: 0;
}

.hero-title-en {
  max-width: 680px;
  font-size: clamp(52px, 6.2vw, 88px);
  white-space: normal;
}

.hero-title-en span {
  display: block;
}

.hero-subtitle,
.copy-block p,
.center-copy p,
.immersive-copy p,
.pro-card p {
  color: var(--muted);
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.381;
  font-weight: 400;
}

.hero-subtitle {
  max-width: var(--copy-column);
}

.cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 34px;
  justify-content: center;
}

.store-badge {
  display: inline-flex;
  min-height: 40px;
}

.store-badge img {
  width: 168px;
  height: auto;
}

.text-link {
  color: var(--blue);
  font-size: 20px;
  font-weight: 600;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-self: center;
}

.hero-visual img {
  width: min(100%, 468px);
}

.float-slow {
  animation: floatSlow 7s ease-in-out infinite;
}

.feature-band {
  background: var(--surface);
  padding: 112px 28px;
}

.feature-intro {
  width: min(var(--center-copy), 100%);
  margin: 0 auto 58px;
  text-align: center;
}

.center-copy {
  width: min(var(--center-copy), 100%);
  margin: 0 auto 58px;
  text-align: center;
}

.center-copy p {
  max-width: var(--center-copy);
  margin-left: auto;
  margin-right: auto;
}

.feature-grid {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-grid article,
.rule-card,
.pro-card {
  border-radius: var(--radius-large);
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.feature-grid article {
  padding: 34px;
  min-height: 290px;
}

.feature-number {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
}

.feature-grid p,
.rule-card p,
.check-list {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.4705882353;
  font-weight: 400;
}

.split-showcase,
.settings-section {
  width: min(100%, var(--max));
  display: grid;
  grid-template-columns: minmax(0, var(--copy-column)) minmax(300px, var(--phone-column));
  justify-content: space-between;
  gap: clamp(72px, 8vw, 140px);
  align-items: center;
}

.settings-section {
  grid-template-columns: minmax(300px, var(--phone-column)) minmax(0, var(--copy-column));
}

.copy-block {
  max-width: var(--copy-column);
  min-width: 0;
}

.copy-block p {
  max-width: var(--copy-column);
}

.phone-stage {
  display: flex;
  justify-content: center;
}

.split-showcase .phone-stage,
.settings-section .copy-block {
  justify-self: end;
}

.split-showcase .copy-block,
.settings-section .phone-stage {
  justify-self: start;
}

.phone-stage.single img {
  width: min(100%, 390px);
}

.rules-section {
  width: min(100%, var(--max));
}

.rule-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.rule-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(210px, 0.74fr);
  gap: 22px;
  align-items: center;
  padding: 36px;
  background: var(--surface);
  overflow: hidden;
}

.rule-card img {
  justify-self: center;
  width: min(100%, 270px);
}

.immersive {
  width: min(calc(100% - 56px), var(--max));
  margin-top: 20px;
  margin-bottom: 20px;
  border-radius: 44px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.16)),
    url("./assets/landscape-web.jpg") center center / cover no-repeat;
  color: white;
  min-height: 760px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 68px;
  overflow: hidden;
  background-position-y: var(--parallax-y, 50%);
}

.immersive .eyebrow,
.immersive-copy p {
  color: rgb(245, 245, 247);
}

.immersive h2,
.pro-card h2 {
  color: rgb(245, 245, 247);
}

.immersive-copy {
  width: min(620px, 100%);
}

.display-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.display-points span,
.pro-benefits span {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  color: white;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 15px;
  font-weight: 600;
  backdrop-filter: blur(16px);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin: 14px 0;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.64em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.pro-section {
  padding: 116px 28px;
  background: var(--surface);
}

.pro-card {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: clamp(38px, 6vw, 78px);
  text-align: center;
  background: rgb(0, 0, 0);
  color: rgb(245, 245, 247);
}

.pro-icon {
  width: 82px;
  height: 82px;
  margin: 0 auto 24px;
  border-radius: 20px;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.32),
    inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.pro-card .eyebrow,
.pro-card p {
  color: rgb(245, 245, 247);
}

.pro-benefits {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0;
}

.pro-badge {
  justify-content: center;
}

.site-footer {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 17px 22px 21px;
  color: var(--footer-text);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.3333733333;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.footer-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: var(--footer-item-gap);
  row-gap: 6px;
}

.footer-primary {
  display: contents;
}

.site-footer:lang(zh-CN) {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0;
}

.copyright {
  margin: 0;
  order: 1;
}

.footer-records {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: var(--footer-item-gap);
  row-gap: 6px;
  order: 2;
}

.footer-records a,
.footer-links a {
  color: var(--footer-link);
  font: inherit;
  letter-spacing: inherit;
  white-space: nowrap;
}

.footer-police {
  display: inline-flex;
  align-items: center;
}

.footer-police img {
  width: 14px;
  height: 14px;
  margin-right: 4px;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  order: 3;
}

.footer-links a {
  border-right: 0;
  margin-right: 0;
  padding-right: 0;
}

.footer-links a:last-child {
  border-right: 0;
  margin-right: 0;
  padding-right: 0;
}

.footer-records a:hover,
.footer-links a:hover {
  text-decoration: underline;
}

.replace-note {
  margin-bottom: 0;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #424245;
}

.reveal,
.reveal-child {
  opacity: 1;
  transform: none;
}

.motion-ready .reveal,
.motion-ready .reveal-child {
  opacity: 0;
  transform: translateY(46px) scale(0.985);
  transition:
    opacity 900ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.motion-ready .is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.feature-grid article:nth-child(2),
.rule-cards .rule-card:nth-child(2) {
  --reveal-delay: 120ms;
}

.feature-grid article:nth-child(3) {
  --reveal-delay: 240ms;
}

@keyframes floatSlow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-18px);
  }
}

@media (min-width: 981px) {
  .hero h1 {
    white-space: nowrap;
  }
}

@media (max-width: 980px) {
  .section-pad {
    padding: 78px 22px;
  }

  .hero,
  .split-showcase,
  .settings-section,
  .rule-cards,
  .rule-card {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 28px;
    padding-top: 54px;
    text-align: center;
  }

  .hero-copy,
  .copy-block {
    max-width: none;
  }

  .hero-copy {
    width: 100%;
    justify-self: center;
  }

  .app-lockup {
    width: 100%;
    justify-content: center;
  }

  .split-showcase .copy-block,
  .settings-section .copy-block {
    justify-self: stretch;
  }

  .split-showcase .phone-stage,
  .settings-section .phone-stage {
    justify-self: center;
  }

  .settings-section .phone-stage {
    order: 2;
  }

  .settings-section .copy-block {
    order: 1;
  }

  .cta-row {
    justify-content: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-visual {
    align-self: center;
  }

  .hero-visual img {
    width: min(78vw, 360px);
  }

  .feature-band {
    padding: 78px 22px;
  }

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

  .feature-grid article {
    min-height: auto;
  }

  .phone-stage.single img,
  .rule-card img {
    width: min(78vw, 350px);
  }

  .rule-card {
    padding: 28px;
    text-align: center;
  }

  .immersive {
    width: calc(100% - 44px);
    min-height: 620px;
    border-radius: 32px;
    padding: 36px 24px;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.7)),
      url("./assets/landscape-web.jpg") center center / cover no-repeat;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 0 18px;
  }

  .app-lockup img {
    width: 64px;
    height: 64px;
    border-radius: 15px;
  }

  h1 {
    font-size: 52px;
  }

  h2 {
    font-size: 40px;
  }

  .hero-subtitle,
  .copy-block p,
  .center-copy p,
  .immersive-copy p,
  .pro-card p {
    font-size: 20px;
  }

  .store-badge img {
    width: 152px;
  }

  .hero-visual img,
  .phone-stage.single img,
  .rule-card img {
    width: min(86vw, 330px);
  }

  .immersive {
    width: calc(100% - 28px);
    min-height: 540px;
    padding: 30px 20px;
  }

  .pro-section {
    padding: 76px 14px;
  }

  .pro-card {
    padding-left: 14px;
    padding-right: 14px;
  }

  .pro-benefits {
    flex-wrap: nowrap;
    gap: clamp(5px, 1.8vw, 8px);
  }

  .pro-benefits span {
    min-height: 34px;
    padding: 0 clamp(7px, 2.2vw, 10px);
    font-size: clamp(10.5px, 3.15vw, 13px);
  }

  .site-footer {
    padding: 17px 16px 19px;
  }
}

@media (orientation: portrait) and (max-width: 980px) {
  .footer-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 5px;
  }

  .footer-primary {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    column-gap: var(--footer-item-gap);
    order: 1;
  }

  .footer-records {
    align-self: flex-start;
    order: 2;
    max-width: 100%;
    flex-wrap: wrap;
    column-gap: var(--footer-item-gap);
    row-gap: 5px;
  }
}

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

  .float-slow {
    animation: none;
  }

  .reveal,
  .reveal-child {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
