@font-face {
  font-family: Alexandria;
  src: url("/assets/fonts/Alexandria-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: Geist;
  src: url("/assets/fonts/Geist-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("/assets/fonts/Inter-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --paper: #000000;
  --white: #ffffff;
  --ink: #f7f7fa;
  --muted: #bcbcc5;
  --surface: #111113;
  --raised: #1c1c1e;
  --line: #ffffff29;
  --accent: #daf53b;
  --site-header-height: 5.1rem;
  --anchor-top: calc(var(--site-header-height) + 1rem);
  --heading: Alexandria, Geist, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  --sans: Geist, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
img { display: block; width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-family: var(--heading); font-weight: 500; letter-spacing: -.055em; }
:lang(zh-Hans) h1, :lang(zh-Hant) h1, :lang(zh-Hans) h2, :lang(zh-Hant) h2 { letter-spacing: -.045em; line-height: 1.14; }

.shell { width: min(100% - 5.5rem, 80rem); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#main { scroll-margin-top: var(--anchor-top); }
.skip-link { position: fixed; z-index: 10; top: 1rem; left: 1rem; background: var(--white); color: var(--paper); padding: .65rem 1rem; clip-path: inset(50%); }
.skip-link:focus-visible { clip-path: none; }
.site-header { position: sticky; z-index: 5; top: 0; background: #000e; backdrop-filter: blur(12px); }
.header-inner { display: flex; min-height: var(--site-header-height); align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark { display: block; width: clamp(5.5rem, 9vw, 7.25rem); flex-shrink: 0; }
.wordmark img { width: 100%; height: auto; }
.header-nav { display: flex; align-items: center; gap: clamp(.8rem, 2.25vw, 2.35rem); font-size: .94rem; }
.header-nav > a:not(.button) { text-decoration: none; }
.header-nav > a:not(.button):hover { text-decoration: underline; text-underline-offset: .23rem; }
.languages { position: relative; }
.languages summary { display: flex; align-items: center; gap: .48rem; min-height: 2.7rem; cursor: pointer; list-style: none; white-space: nowrap; }
.languages summary::-webkit-details-marker { display: none; }
.languages summary::after { content: ""; display: block; width: .37rem; height: .37rem; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg) translateY(-2px); }
.languages > div { position: absolute; z-index: 2; right: 0; top: 100%; display: grid; min-width: 9.1rem; padding: .28rem; background: var(--surface); border: 1px solid var(--line); border-radius: .65rem; box-shadow: 0 .6rem 1.9rem #0008; }
.languages a { text-decoration: none; padding: .52rem .7rem; border-radius: .42rem; white-space: nowrap; }
.languages a:hover, .languages a[aria-current] { background: var(--raised); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: .66rem; width: fit-content; min-height: 3rem; padding: .62rem 1.15rem; border: 1px solid transparent; border-radius: 2rem; font-family: Inter, var(--sans); font-size: .95rem; font-weight: 600; line-height: 1.3; text-align: center; text-decoration: none; transition: background-color .18s ease, border-color .18s ease; }
.button-outline { border-color: #ffffff55; color: var(--ink); }
.button-outline:hover { background: var(--raised); border-color: #ffffff99; }
.button-primary { background: var(--white); color: #141417; }
.button-primary:hover { background: #ededf1; }
.is-past-store-link .header-download { background: var(--white); border-color: var(--white); color: #141417; }
.store-button { min-height: 3.35rem; padding-inline: 1.3rem; }
.quick-download { display: none; }
.play-mark { width: .92rem; height: 1.04rem; flex: 0 0 auto; background: conic-gradient(from 225deg at 44% 51%, #58d6ae 0deg 94deg, #7acafb 94deg 173deg, #ffcf73 173deg 258deg, #f88b85 258deg 306deg, #58d6ae 306deg); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.text-link { width: fit-content; display: inline-block; font-size: .94rem; font-weight: 640; color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: .27em; }

.brand-hero {
  padding-top: clamp(1.35rem, 2.55vw, 2.8rem);
  background: var(--paper);
  text-align: center;
}

.brand-copy h1 {
  font-size: clamp(2.5rem, 5.625vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -.065em;
  text-wrap: balance;
}

.brand-copy p {
  margin: clamp(.65rem, 1.4vw, 1.05rem) auto 0;
  max-width: 58ch;
  font-size: clamp(1.02rem, 1.6vw, 1.36rem);
  line-height: 1.5;
  color: var(--muted);
}

.brand-copy .download-actions {
  flex-direction: column;
  justify-content: center;
  gap: .55rem;
  margin-top: clamp(.9rem, 2.1vw, 1.5rem);
}

.brand-film {
  --phone-width: clamp(12.5rem, 24.7vw, 22rem);
  --photo-width: clamp(8.6rem, 18.25vw, 16.5rem);
  --portrait-inset: calc(50% + var(--phone-width) / 2 - clamp(1.25rem, 2.2vw, 1.9rem));
  position: relative;
  width: min(100%, 62rem);
  margin: clamp(1.55rem, 4vw, 3.75rem) auto 0;
  background: radial-gradient(ellipse at 50% 49%, #19191d 0%, #101013 38%, transparent 70%);
}

.hero-explore {
  display: none;
  align-items: center;
  gap: .6rem;
  min-height: 2.75rem;
  padding-inline: .75rem;
  color: var(--muted);
  font-size: .94rem;
  text-decoration: none;
}
.hero-explore:hover { color: var(--ink); }
.hero-explore::after {
  content: "";
  width: .45rem;
  height: .45rem;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: translateY(-.13rem) rotate(45deg);
}

.brand-photo {
  position: absolute;
  width: var(--photo-width);
  aspect-ratio: 3 / 4;
  border-radius: 1.15rem;
  overflow: hidden;
  background: var(--surface);
}

.brand-photo:first-child {
  right: var(--portrait-inset);
  top: clamp(4.65rem, 7.3vw, 5.9rem);
}

.brand-photo:last-child {
  left: var(--portrait-inset);
  top: clamp(2.5rem, 4.2vw, 3.4rem);
}

.brand-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.brand-photo figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 1.65rem .85rem .6rem;
  background: linear-gradient(transparent, #000b);
  text-align: left;
  font-size: .95rem;
}

.brand-photo:last-child figcaption { text-align: right; }

.app-preview {
  position: relative;
  z-index: 1;
  width: var(--phone-width);
  margin-inline: auto;
  border: 1px solid #ffffff54;
  border-radius: clamp(.9rem, 3vw, 2.5rem);
  background: #000;
  overflow: hidden;
  box-shadow: 0 1.2rem 3rem #0008;
}

.app-preview img { width: 100%; height: auto; }

.app-preview-gallery {
  container-type: inline-size;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5%;
  padding: 2.5% 5% 8%;
  text-align: left;
}

.app-preview-gallery span {
  grid-column: 1 / -1;
  font-size: 7cqw;
  font-family: var(--heading);
}

.app-preview-gallery img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 9%;
}
.app-preview-gallery img:last-child { object-position: 50% 20%; }

.hero { padding-block: 1.25rem clamp(3rem, 6.5vw, 7rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; column-gap: clamp(1.7rem, 6.4vw, 7.25rem); }
.hero-copy { padding-block: 1rem; }
.hero h1 { max-width: 12ch; font-size: clamp(3.45rem, 7vw, 7.05rem); line-height: .94; text-wrap: balance; }
.hero:lang(vi) h1 { font-size: clamp(3.15rem, 6.1vw, 6.2rem); line-height: 1; }
.hero:lang(zh-Hans) h1, .hero:lang(zh-Hant) h1 { font-size: clamp(2.8rem, 5.65vw, 5.55rem); }
.hero-copy > p { max-width: 29rem; margin-top: 1.45rem; color: var(--muted); font-size: clamp(1.04rem, 1.44vw, 1.27rem); line-height: 1.62; }
.download-actions { display: flex; gap: .95rem 1.25rem; align-items: center; flex-wrap: wrap; margin-top: clamp(1.35rem, 3vw, 2.1rem); }
.availability { font-size: .9rem; color: var(--muted); }
.hero-visual { margin: 0; overflow: hidden; border-radius: .9rem; background: var(--surface); aspect-ratio: .88; }
.hero-visual img { height: 100%; object-fit: cover; object-position: 50% 46%; }

.features { padding-block: clamp(1.5rem, 3.5vw, 3.25rem) clamp(3.7rem, 8vw, 7rem); scroll-margin-top: var(--anchor-top); }
.closing h2, .comparison h2 { font-size: clamp(2.55rem, 5vw, 4.8rem); line-height: 1; }
.features h2 { margin-bottom: clamp(1.15rem, 2.2vw, 2rem); font-size: clamp(2rem, 4vw, 3.75rem); line-height: 1.08; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.6rem, 3vw, 2.5rem) clamp(1rem, 2.4vw, 2.2rem); }
.feature { display: grid; grid-template-rows: auto 1fr; scroll-margin-top: var(--anchor-top); }
.feature-image { position: relative; display: block; overflow: hidden; aspect-ratio: 1.5; border-radius: .75rem; background: var(--raised); }
.feature-image > img:first-child { height: 100%; object-fit: cover; object-position: 50% 10%; transition: transform .3s ease; }
.feature-image:hover > img:first-child { transform: scale(1.04); }
.feature-evidence { position: relative; }
.feature-image-pair {
  display: grid;
  grid-template: minmax(0, 1fr) / repeat(2, minmax(0, 1fr));
  column-gap: .18rem;
  background: var(--paper);
  color: var(--white);
}
.feature-panel { position: relative; min-width: 0; min-height: 0; }
.feature-panel img { height: 100%; object-fit: cover; object-position: 50% 8%; }
#recast .feature-image-pair { aspect-ratio: 1.72; }
#recast .feature-panel { overflow: hidden; }
#recast .feature-panel img { object-position: 50% 3%; transform: scale(1.23); transform-origin: 50% 8%; }
.feature-panel-label {
  position: absolute;
  inset: auto auto .55rem .55rem;
  padding: .3rem .55rem;
  border-radius: .32rem;
  background: #121214e8;
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.25;
}
.feature-input {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: .7rem;
  color: var(--muted);
  font-size: .9rem;
}
.feature-input img {
  width: clamp(3.5rem, 5vw, 4rem);
  aspect-ratio: 1;
  border: 1px solid #ffffff72;
  border-radius: 50%;
  object-fit: cover;
}
.feature-copy { display: flex; flex-direction: column; align-items: start; padding-top: 1.05rem; }
.feature-copy .text-link { margin-top: auto; }
.feature h3 { font-size: clamp(1.35rem, 2.08vw, 1.8rem); font-weight: 620; letter-spacing: -.045em; }
.feature p { margin-block: .5rem .75rem; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.comparison { padding-block: .5rem 4rem; }
.comparison h2 { margin-bottom: 1.5rem; }
.comparison-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.7rem, 2vw, 1.6rem); max-width: 49rem; }
.comparison-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 64rem; }
.comparison-grid figure { margin: 0; }
.comparison-grid img { aspect-ratio: .85; height: auto; object-fit: cover; border-radius: .75rem; }
.comparison-grid figcaption { color: var(--muted); line-height: 1.5; margin-top: .55rem; }
.comparison-note { color: var(--muted); line-height: 1.5; margin-top: .9rem; }
.closing { background: var(--surface); border-top: 1px solid var(--line); }
.closing-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding-block: clamp(2.5rem, 6vw, 5rem); }
.closing p { color: var(--muted); line-height: 1.55; margin-top: .7rem; }
.site-footer {
  border-top: 1px solid var(--line);
  background: #080809;
  font-size: .95rem;
}

.site-footer-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "brand utility" "rule rule" "copyright legal";
  align-items: center;
  gap: .7rem 2rem;
  padding-block: 1.45rem 1rem;
}

.site-footer-inner::before {
  content: "";
  grid-area: rule;
  border-top: 1px solid var(--line);
}

.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: .23em; }

.site-footer-brand, .site-footer-utility {
  display: flex;
  align-items: center;
  gap: .15rem clamp(1rem, 2.3vw, 1.8rem);
}

.site-footer-brand { grid-area: brand; }
.site-footer-utility { grid-area: utility; justify-content: end; }
.site-footer-utility .languages > div { top: auto; bottom: calc(100% + .35rem); }

.footer-instagram, .site-footer-utility > a, .site-footer-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.footer-instagram { gap: .58rem; }
.footer-instagram-mark {
  position: relative;
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
  border: 1.5px solid currentColor;
  border-radius: .3rem;
}

.footer-instagram-mark::before, .footer-instagram-mark::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.footer-instagram-mark::before {
  inset: .19rem;
  border: 1px solid currentColor;
}

.footer-instagram-mark::after {
  top: .12rem;
  right: .12rem;
  width: .12rem;
  height: .12rem;
  background: currentColor;
}

.site-footer-legal { grid-area: legal; color: var(--muted); font-size: .875rem; }
.site-footer-legal ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 0 clamp(.75rem, 1.75vw, 1.5rem);
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-footer-copyright { grid-area: copyright; color: var(--muted); font-size: .815rem; }

.download-page {
  display: grid;
  justify-items: center;
  min-height: 52vh;
  padding-block: clamp(3rem, 8vw, 6.5rem);
  text-align: center;
  align-content: center;
}
.download-icon { width: 4.5rem; height: 4.5rem; border-radius: 1.05rem; }
.download-page h1 { margin-top: 1.25rem; font-size: clamp(2.4rem, 5.2vw, 4.5rem); line-height: 1.08; }
.download-page .download-actions { flex-direction: column; gap: .6rem; margin-top: 1.4rem; }
.download-explore { display: inline-flex; margin-top: .8rem; }
.download-explore::after { transform: rotate(-45deg); }

.not-found { min-height: 50vh; padding-block: 3.5rem; }
.not-found h1 { font-size: 3.3rem; margin-bottom: 1.2rem; }

@media (max-width: 58rem) {
  .shell { width: min(100% - 3rem, 80rem); }
  .hero-grid { column-gap: 2rem; }
  .hero h1 { font-size: clamp(3rem, 7.5vw, 5rem); }
}

@media (max-width: 43rem) {
  .shell { width: calc(100% - 2rem); }
  :root { --site-header-height: 4.15rem; --anchor-top: 1rem; }
  .site-header { position: static; background: none; backdrop-filter: none; }
  .header-nav { gap: .75rem; }
  .header-nav .nav-support, .header-nav .nav-explore { display: none; }
  .brand-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: calc(100svh - var(--site-header-height));
    padding-block: 1.3rem 1.5rem;
  }
  .brand-copy h1 { font-size: clamp(2.14rem, 9.75vw, 4.2rem); }
  .brand-copy p { max-width: 31rem; }
  .brand-copy .download-actions {
    margin-bottom: 0;
  }
  .brand-copy .store-button {
    width: min(15rem, 100%);
    min-height: 3.25rem;
  }
  .brand-copy .availability { font-size: .8125rem; }
  .hero-explore { display: inline-flex; }
  .brand-hero .hero-explore { margin-top: auto; }
  .quick-download:not([hidden]) {
    position: fixed;
    z-index: 4;
    inset: auto 0 0;
    display: flex;
    justify-content: center;
    padding: .5rem 1rem max(.5rem, env(safe-area-inset-bottom));
    background: #101012ed;
    border-top: 1px solid var(--line);
    backdrop-filter: blur(12px);
  }
  body:has(main :focus-visible) .quick-download { visibility: hidden; }
  .quick-download .store-button { width: min(15rem, 100%); min-height: 3rem; }
  .brand-film {
    --phone-width: clamp(11rem, 52vw, 13.25rem);
    --photo-width: min(7rem, calc((100% - var(--phone-width)) / 2 + .6rem));
    --portrait-inset: calc(50% + var(--phone-width) / 2 - .95rem);
    width: calc(100% - 1rem);
    margin: 2.35rem auto .75rem;
  }
  .brand-photo { height: clamp(9.5rem, 51vw, 13rem); aspect-ratio: auto; border-radius: .78rem; }
  .brand-photo:first-child { top: 5.5rem; }
  .brand-photo:last-child { top: 3.15rem; }
  .brand-photo img { object-position: 47% 25%; }
  .brand-photo figcaption {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .header-download { min-height: 2.75rem; padding-inline: .7rem; font-size: .87rem; white-space: nowrap; }
  .hero { padding-block: .55rem 2.9rem; }
  .hero-grid { grid-template-columns: 1fr; row-gap: 1.1rem; }
  .hero-copy { padding: .85rem 0 0; }
  .hero h1 { max-width: 14ch; font-size: clamp(3.2rem, 11.1vw, 4.8rem); }
  .hero-copy > p { margin-top: .95rem; }
  .download-actions { margin-top: 1.15rem; margin-bottom: .15rem; }
  .hero-visual { aspect-ratio: 1.06; border-radius: .7rem; }
  .hero-visual img { object-position: 50% 25%; }
  .feature-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .feature-image { aspect-ratio: 1.16; }
  .feature-image-pair { aspect-ratio: 1.4; }
  .feature-image > img:first-child { object-position: 50% 33%; }
  .feature-copy { padding-top: .8rem; }
  .feature p { margin-block: .32rem .55rem; }
  .closing-inner { display: grid; }

  .site-footer-inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "brand" "utility" "rule" "legal" "copyright";
    gap: .45rem;
    padding-block: 1.35rem 1.4rem;
  }

  .site-footer-brand, .site-footer-utility { justify-content: space-between; }
  .site-footer-legal ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: start;
    column-gap: 1rem;
  }
  .site-footer-copyright { padding-top: .45rem; }
}
@media (max-width: 23rem) {
  .header-download { padding-inline: .55rem; }
  .header-nav { gap: .55rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
