:root {
  color-scheme: dark;
  --navy-950: #070b17;
  --navy-900: #0c1224;
  --navy-800: #131b33;
  --navy-700: #1d2948;
  --ink: #f8f3e8;
  --ink-soft: #d9deea;
  --muted: #9da7bd;
  --gold: #d8aa5b;
  --gold-bright: #f1d494;
  --parchment: #f3ecdf;
  --parchment-deep: #e6dac7;
  --dark-ink: #17191f;
  --hairline: rgb(255 255 255 / 12%);
  --content-width: 1240px;
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 76% 12%, rgb(53 70 119 / 35%), transparent 34rem),
    radial-gradient(circle at 8% 30%, rgb(164 113 50 / 18%), transparent 28rem), var(--navy-950);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--dark-ink);
  background: var(--gold-bright);
  border-radius: 10px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 40px), var(--content-width));
  margin: 0 auto;
  padding: 22px 0;
  border-bottom: 1px solid var(--hairline);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 720;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 11px;
  box-shadow: 0 8px 24px rgb(0 0 0 / 30%);
}

.language-switcher {
  display: flex;
  gap: 3px;
  padding: 4px;
  background: rgb(255 255 255 / 7%);
  border: 1px solid var(--hairline);
  border-radius: 999px;
}

.language-switcher button {
  min-height: 44px;
  padding: 0 13px;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 999px;
}

.language-switcher button[aria-pressed="true"] {
  color: var(--navy-950);
  background: var(--ink);
  box-shadow: 0 3px 12px rgb(0 0 0 / 22%);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(500px, 1.18fr);
  gap: clamp(30px, 4vw, 70px);
  align-items: center;
  width: min(calc(100% - 40px), var(--content-width));
  min-height: 820px;
  margin: 0 auto;
  padding: 76px 0 96px;
}

.hero-copy {
  position: relative;
  z-index: 5;
  max-width: 590px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--gold-bright);
  font-size: 0.75rem;
  font-weight: 780;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-transform: uppercase;
}

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

.app-icon {
  width: 104px;
  height: 104px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 25px;
  box-shadow:
    0 24px 50px rgb(0 0 0 / 36%),
    0 0 0 8px rgb(255 255 255 / 3%);
}

.app-name {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 680;
  letter-spacing: -0.02em;
}

.hero h1 {
  max-width: 12ch;
  margin: 0;
  color: var(--ink);
  font-size: clamp(3.2rem, 5.6vw, 5.8rem);
  font-weight: 790;
  letter-spacing: -0.065em;
  line-height: 0.98;
  text-wrap: balance;
}

body[data-language="zh-Hans"] .hero h1 {
  max-width: 9ch;
  font-size: clamp(3.05rem, 5.25vw, 5.35rem);
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.hero-subtitle {
  max-width: 34rem;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.8vw, 1.25rem);
  line-height: 1.65;
}

.download-block {
  margin-top: 24px;
}

.app-store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px;
  background: rgb(255 255 255 / 2%);
  border-radius: 16px;
}

.app-store-link:hover {
  background: rgb(255 255 255 / 7%);
}

.app-store-link img {
  display: block;
  width: auto;
  height: 50px;
}

.availability {
  margin: 2px 13px 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.screenshots {
  position: relative;
  min-width: 0;
  height: 720px;
  overflow: clip;
  isolation: isolate;
}

.screenshots::before {
  position: absolute;
  inset: 15% 6% 14%;
  z-index: -1;
  content: "";
  background: rgb(231 181 93 / 13%);
  border: 1px solid rgb(241 212 148 / 13%);
  border-radius: 50%;
  filter: blur(2px);
}

.phone-shot {
  --shot-lift: 0px;
  --shot-rotation: 0deg;
  --shot-scale: 1;

  position: absolute;
  width: 39%;
  margin: 0;
  padding: 8px;
  overflow: hidden;
  background: #07080c;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: clamp(24px, 3vw, 42px);
  box-shadow:
    0 40px 90px rgb(0 0 0 / 48%),
    0 10px 28px rgb(0 0 0 / 32%);
  filter: brightness(1) saturate(1);
  transform: translate3d(0, var(--shot-lift), 0) rotate(var(--shot-rotation))
    scale(var(--shot-scale));
  transition:
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 220ms ease;
  will-change: transform;
}

.phone-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: clamp(19px, 2.5vw, 35px);
}

.phone-shot figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 10px 12px;
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 650;
  text-align: center;
  background: rgb(7 11 23 / 86%);
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.phone-shot-primary {
  z-index: 3;
  top: 28px;
  left: 31%;
}

.phone-shot-secondary {
  --shot-rotation: -3.5deg;

  z-index: 2;
  top: 126px;
  left: 7%;
  width: 34%;
  filter: brightness(0.95) saturate(0.98);
  transform-origin: bottom right;
}

.phone-shot-tertiary {
  --shot-rotation: 3.5deg;

  z-index: 1;
  top: 112px;
  right: 7%;
  width: 34%;
  filter: brightness(0.92) saturate(0.96);
  transform-origin: bottom left;
}

.screenshots[data-interacting="true"] .phone-shot {
  filter: brightness(0.86) saturate(0.92);
}

.screenshots .phone-shot[data-active="true"] {
  --shot-lift: -10px;
  --shot-scale: 1.055;

  z-index: 5;
  filter: brightness(1) saturate(1);
}

.features {
  color: var(--dark-ink);
  background: linear-gradient(rgb(255 255 255 / 32%), rgb(255 255 255 / 0%)), var(--parchment);
  border-top: 1px solid rgb(255 255 255 / 20%);
  border-bottom: 1px solid rgb(0 0 0 / 10%);
}

.features > * {
  width: min(calc(100% - 40px), var(--content-width));
  margin-right: auto;
  margin-left: auto;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 32px;
  align-items: start;
  padding: 108px 0 68px;
}

.section-heading .eyebrow {
  color: #815d27;
}

.section-heading h2 {
  max-width: 18ch;
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(2.35rem, 5vw, 4.5rem);
  font-weight: 560;
  letter-spacing: -0.045em;
  line-height: 1.06;
  text-wrap: balance;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding-bottom: 112px;
  border-top: 1px solid rgb(23 25 31 / 19%);
}

.feature-card {
  min-height: 280px;
  padding: 30px clamp(24px, 3.5vw, 46px) 34px 0;
}

.feature-card + .feature-card {
  padding-left: clamp(24px, 3.5vw, 46px);
  border-left: 1px solid rgb(23 25 31 / 19%);
}

.feature-number {
  color: #9a7944;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
}

.feature-card h3 {
  margin: 70px 0 14px;
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  letter-spacing: -0.035em;
}

.feature-card p {
  max-width: 28rem;
  margin: 0;
  color: #5e5b58;
  font-size: 0.96rem;
  line-height: 1.75;
}

.closing-cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 30px;
  align-items: center;
  width: min(calc(100% - 40px), var(--content-width));
  margin: 0 auto;
  padding: 92px 0;
}

.closing-cta > img {
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 23px;
  box-shadow: 0 18px 40px rgb(0 0 0 / 34%);
}

.closing-cta .eyebrow {
  margin-bottom: 10px;
}

.closing-cta h2 {
  max-width: 24ch;
  margin: 0;
  font-size: clamp(1.8rem, 3.4vw, 3.4rem);
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.text-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  color: var(--navy-950);
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
  background: var(--gold-bright);
  border-radius: 999px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.1fr 1.7fr auto;
  gap: 30px;
  width: min(calc(100% - 40px), var(--content-width));
  margin: 0 auto;
  padding: 38px 0 44px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.6;
  border-top: 1px solid var(--hairline);
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.footer-links a {
  color: var(--ink-soft);
  text-underline-offset: 4px;
}

.legal {
  max-width: 39rem;
}

.site-footer .icp-registration {
  grid-column: 1 / -1;
  justify-self: center;
  font-size: 0.68rem;
  opacity: 0.58;
}

.icp-registration a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 3px;
}

.icp-registration a:hover {
  color: var(--ink-soft);
  text-decoration: underline;
}

@media (max-width: 1020px) {
  .hero {
    grid-template-columns: minmax(0, 0.85fr) minmax(430px, 1.15fr);
  }

  .screenshots {
    height: 650px;
  }

  .phone-shot {
    width: 42%;
  }

  .phone-shot-secondary,
  .phone-shot-tertiary {
    width: 36%;
  }
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 58px;
    min-height: 0;
    padding-top: 62px;
  }

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

  .hero h1,
  body[data-language="zh-Hans"] .hero h1 {
    max-width: 12ch;
  }

  .screenshots {
    width: min(100%, 680px);
    height: 760px;
    margin: 0 auto;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .section-heading h2 {
    max-width: 16ch;
  }

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

  .feature-card {
    min-height: 0;
    padding: 28px 0 42px;
  }

  .feature-card + .feature-card {
    padding-left: 0;
    border-top: 1px solid rgb(23 25 31 / 19%);
    border-left: 0;
  }

  .feature-card h3 {
    margin-top: 36px;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer .legal {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 560px) {
  .site-header,
  .hero,
  .features > *,
  .closing-cta,
  .site-footer {
    width: min(calc(100% - 32px), var(--content-width));
  }

  .site-header {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .brand span {
    display: none;
  }

  .brand img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .language-switcher button {
    min-height: 44px;
    padding: 0 10px;
    font-size: 0.72rem;
  }

  .hero {
    gap: 42px;
    padding: 48px 0 66px;
  }

  .app-lockup {
    gap: 16px;
    margin-bottom: 26px;
  }

  .app-icon {
    width: 82px;
    height: 82px;
    border-radius: 20px;
  }

  .hero h1,
  body[data-language="zh-Hans"] .hero h1 {
    max-width: 11ch;
    font-size: clamp(2.75rem, 13.6vw, 4rem);
  }

  body[data-language="en"] .hero h1 {
    max-width: 9ch;
    font-size: clamp(2.85rem, 14vw, 4.15rem);
  }

  .hero-subtitle {
    margin-top: 22px;
  }

  .app-store-link {
    padding: 13px;
  }

  .app-store-link img {
    height: 48px;
  }

  .screenshots {
    display: flex;
    gap: 16px;
    height: auto;
    padding: 24px 12px 28px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .screenshots::-webkit-scrollbar {
    display: none;
  }

  .screenshots::before {
    display: none;
  }

  .phone-shot,
  .phone-shot-primary,
  .phone-shot-secondary,
  .phone-shot-tertiary {
    --shot-rotation: 0deg;

    position: relative;
    top: auto;
    right: auto;
    left: auto;
    flex: 0 0 calc(100% - 20px);
    width: calc(100% - 20px);
    opacity: 1;
    filter: brightness(1) saturate(1);
    transform: translate3d(0, var(--shot-lift), 0) rotate(var(--shot-rotation))
      scale(var(--shot-scale));
    transform-origin: center;
    scroll-snap-align: start;
  }

  .screenshots .phone-shot[data-active="true"] {
    --shot-lift: -4px;
    --shot-scale: 1.035;
  }

  .phone-shot figcaption {
    right: 10px;
    bottom: 10px;
    left: 10px;
    padding: 8px;
    font-size: 0.62rem;
  }

  .section-heading {
    padding: 78px 0 50px;
  }

  .section-heading h2 {
    font-size: clamp(2.45rem, 11.5vw, 3.35rem);
  }

  .feature-grid {
    padding-bottom: 76px;
  }

  .closing-cta {
    grid-template-columns: auto 1fr;
    gap: 18px;
    padding: 70px 0;
  }

  .closing-cta > img {
    width: 70px;
    height: 70px;
    border-radius: 18px;
  }

  .closing-cta .text-cta {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 10px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .site-footer .legal {
    grid-column: auto;
    grid-row: auto;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (min-width: 821px) and (max-height: 840px) {
  .hero {
    align-items: start;
    min-height: 0;
    padding-top: 40px;
    padding-bottom: 64px;
  }

  .screenshots {
    height: 620px;
  }

  .phone-shot {
    width: 35%;
  }

  .phone-shot-primary {
    top: 28px;
    left: 32.5%;
  }

  .phone-shot-secondary,
  .phone-shot-tertiary {
    top: 70px;
    width: 30%;
  }

  .phone-shot-secondary {
    left: 8%;
  }

  .phone-shot-tertiary {
    right: 8%;
  }
}

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

  .phone-shot {
    transition: filter 160ms ease;
    will-change: auto;
  }

  .screenshots .phone-shot[data-active="true"] {
    --shot-lift: 0px;
    --shot-scale: 1;
  }
}
