:root {
  color-scheme: light;
  --ink: #11131a;
  --muted: #656a76;
  --line: #dfe2e8;
  --paper: #ffffff;
  --soft: #f5f6f8;
  --night: #080d1b;
  --night-soft: #131a2c;
  --purple: #7c2cff;
  --purple-dark: #5c16d8;
  --blue: #2d7ff9;
  --green: #12b981;
  --red: #f04b5f;
  --content-width: 1180px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family:
    "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  line-height: 1.7;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

button:focus-visible,
a:focus-visible {
  outline: 3px solid #43a3ff;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 16px;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-150%);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  color: var(--paper);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  transition:
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-menu-open {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.97);
  border-color: var(--line);
  box-shadow: 0 8px 30px rgba(16, 20, 32, 0.08);
}

.site-header__inner {
  width: min(calc(100% - 48px), var(--content-width));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 42px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  line-height: 1;
}

.brand__logo {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(92, 22, 216, 0.28);
}

.brand__name {
  font-size: 21px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 600;
}

.site-nav a {
  position: relative;
  padding: 10px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 160ms ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-download {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 17px;
  color: var(--paper);
  background: var(--purple);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

.header-download:hover {
  background: var(--purple-dark);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 10px;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.site-header.is-menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.is-menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  height: min(860px, 88svh);
  min-height: 650px;
  overflow: hidden;
  color: var(--paper);
  background-color: #050a18;
  background-image: url("assets/images/hero-musabay.jpg");
  background-repeat: no-repeat;
  background-position: center 43%;
  background-size: cover;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 19, 0.68);
  box-shadow:
    inset 0 -170px 130px rgba(3, 7, 19, 0.5),
    inset 580px 0 260px rgba(3, 7, 19, 0.55);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 48px), var(--content-width));
  margin: 0 auto;
  padding-top: 176px;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 19px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 700;
}

.hero__eyebrow span {
  width: 9px;
  height: 9px;
  background: #36d49f;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(54, 212, 159, 0.14);
}

.hero h1 {
  margin: 0;
  font-size: 76px;
  line-height: 1.04;
  letter-spacing: 0;
}

.hero__lead {
  margin: 18px 0 8px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
}

.hero__summary {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 17px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 21px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: var(--paper);
  background: var(--purple);
}

.button--primary:hover {
  background: var(--purple-dark);
}

.button--ghost {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.button--ghost:hover {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.14);
}

.button__icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 15px;
  line-height: 1;
}

.button__arrow {
  font-size: 19px;
}

.hero__tags {
  display: flex;
  gap: 0;
  margin: 35px 0 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.68);
  list-style: none;
  font-size: 14px;
}

.hero__tags li {
  display: flex;
  align-items: center;
}

.hero__tags li + li::before {
  width: 1px;
  height: 13px;
  margin: 0 17px;
  background: rgba(255, 255, 255, 0.32);
  content: "";
}

.hero__scroll {
  position: absolute;
  right: max(24px, calc((100% - var(--content-width)) / 2));
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 64px;
  background: rgba(255, 255, 255, 0.55);
}

.section {
  padding: 112px 0;
}

.section__inner {
  width: min(calc(100% - 48px), var(--content-width));
  margin: 0 auto;
}

.section-heading {
  display: grid;
  max-width: 950px;
  grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1.1fr);
  column-gap: 90px;
  align-items: end;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--purple-dark);
  font-size: 13px;
  font-weight: 800;
}

.section-heading .section-kicker {
  grid-column: 1 / -1;
}

.section h2 {
  margin: 0;
  font-size: 40px;
  line-height: 1.3;
  letter-spacing: 0;
}

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

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 82px;
}

.feature {
  position: relative;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
}

.feature__number {
  position: absolute;
  top: -15px;
  right: 0;
  padding-left: 12px;
  color: #9ba0aa;
  background: var(--paper);
  font-size: 13px;
  font-weight: 700;
}

.feature__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--paper);
  border-radius: 50%;
  font-size: 20px;
  font-weight: 700;
}

.feature__icon--green {
  background: var(--green);
}

.feature__icon--blue {
  background: var(--blue);
}

.feature__icon--red {
  background: var(--red);
}

.feature h3 {
  margin: 23px 0 9px;
  font-size: 22px;
  line-height: 1.4;
}

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

.experience {
  overflow: hidden;
  color: var(--paper);
  background: var(--night);
}

.experience__inner {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 76px;
  align-items: center;
}

.experience__copy {
  position: relative;
  z-index: 2;
}

.section-kicker--light {
  color: #8cbcff;
}

.experience__copy h2 {
  font-size: 38px;
}

.experience__copy > p:not(.section-kicker) {
  margin: 23px 0 0;
  color: #aeb7ca;
  font-size: 15px;
}

.experience__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.experience__labels span {
  padding: 6px 11px;
  color: #cbd3e3;
  border: 1px solid #303a52;
  border-radius: 4px;
  font-size: 12px;
}

.screenshots {
  display: grid;
  height: 680px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: center;
  perspective: 1100px;
}

.app-shot {
  min-width: 0;
  margin: 0;
}

.app-shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 1082 / 2299;
  object-fit: cover;
  border: 5px solid #1e2639;
  border-radius: 8px;
  box-shadow: 0 35px 75px rgba(0, 0, 0, 0.42);
}

.app-shot figcaption {
  margin-top: 10px;
  color: #8f9bb1;
  font-size: 12px;
  text-align: center;
}

.app-shot--home {
  transform: translateY(-28px) rotateY(5deg);
}

.app-shot--detail {
  transform: translateY(30px);
}

.app-shot--audio {
  transform: translateY(-6px) rotateY(-5deg);
}

.content-band {
  background: var(--soft);
}

.content-band__inner {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 86px;
}

.content-band__title h2 {
  max-width: 360px;
  font-size: 38px;
}

.content-lines {
  border-top: 1px solid #cfd3db;
}

.content-line {
  display: grid;
  grid-template-columns: 44px 180px 1fr;
  gap: 22px;
  align-items: baseline;
  padding: 25px 0;
  border-bottom: 1px solid #cfd3db;
}

.content-line__index {
  color: var(--purple-dark);
  font-size: 13px;
  font-weight: 800;
}

.content-line h3,
.content-line p {
  margin: 0;
}

.content-line h3 {
  font-size: 19px;
}

.content-line p {
  color: var(--muted);
  font-size: 14px;
}

.download {
  position: relative;
  overflow: hidden;
  padding: 86px 0;
  background: #eee8ff;
}

.download__art {
  position: absolute;
  top: -160px;
  right: -120px;
  width: 520px;
  height: 760px;
  opacity: 0.13;
  background-image: url("assets/images/hero-musabay.jpg");
  background-position: center;
  background-size: cover;
  transform: rotate(10deg);
}

.download__inner {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 32px;
  align-items: center;
}

.download__logo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 24px 50px rgba(92, 22, 216, 0.24);
}

.download__copy h2 {
  font-size: 34px;
}

.download__copy p:last-child {
  margin: 10px 0 0;
  color: #626071;
  font-size: 14px;
}

.button--dark {
  color: var(--paper);
  background: var(--night);
}

.button--dark:hover {
  background: #1b2234;
}

.site-footer {
  padding: 35px 0;
  color: #9ca6b9;
  background: var(--night);
}

.site-footer__inner {
  width: min(calc(100% - 48px), var(--content-width));
  margin: 0 auto;
  font-size: 12px;
}

.site-footer__main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 34px;
  align-items: center;
}

.brand--footer {
  color: var(--paper);
}

.brand--footer .brand__logo {
  width: 40px;
  height: 40px;
}

.site-footer p {
  margin: 0;
}

.site-footer__tagline {
  color: #bdc5d4;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-links a:hover {
  color: var(--paper);
  text-decoration: underline;
}

.site-footer__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-records {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}

.footer-records__title {
  color: var(--paper);
  font-weight: 700;
}

.footer-records a,
.public-security-record {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-records a:hover {
  color: var(--paper);
  text-decoration: underline;
}

.public-security-record img {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 500ms ease,
    transform 500ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-header__inner,
  .section__inner,
  .hero__content,
  .site-footer__inner {
    width: min(calc(100% - 40px), var(--content-width));
  }

  .site-header__inner {
    gap: 22px;
  }

  .site-nav {
    gap: 22px;
  }

  .hero__backdrop {
    box-shadow:
      inset 0 -170px 130px rgba(3, 7, 19, 0.52),
      inset 430px 0 220px rgba(3, 7, 19, 0.48);
  }

  .section-heading {
    column-gap: 50px;
  }

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

  .experience__copy {
    max-width: 700px;
  }

  .screenshots {
    max-width: 760px;
    height: auto;
    margin: 0 auto;
  }

  .content-band__inner {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .content-band__title h2 {
    max-width: 620px;
  }

  .download__inner {
    grid-template-columns: 100px 1fr;
  }

  .download__logo {
    width: 100px;
    height: 100px;
  }

  .download .button {
    grid-column: 2;
    justify-self: start;
  }

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

  .site-footer__tagline {
    display: none;
  }

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

@media (max-width: 820px) {
  :root {
    --header-height: 68px;
  }

  .site-header__inner,
  .section__inner,
  .hero__content,
  .site-footer__inner {
    width: calc(100% - 32px);
  }

  .brand__logo {
    width: 40px;
    height: 40px;
  }

  .brand__name {
    font-size: 19px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 auto;
    display: grid;
    gap: 0;
    padding: 18px 16px 24px;
    color: var(--ink);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(16, 20, 32, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      opacity 160ms ease,
      transform 160ms ease;
  }

  .site-header.is-menu-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 13px 8px;
    border-bottom: 1px solid #eceef2;
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .site-nav a::after {
    display: none;
  }

  .header-download {
    display: none;
  }

  .hero {
    height: 88svh;
    min-height: 620px;
    background-position: center 43%;
  }

  .hero__backdrop {
    background: rgba(3, 7, 19, 0.62);
    box-shadow: inset 0 -190px 150px rgba(3, 7, 19, 0.62);
  }

  .hero__content {
    padding-top: 130px;
  }

  .hero__eyebrow {
    margin-bottom: 15px;
    font-size: 13px;
  }

  .hero h1 {
    font-size: 52px;
  }

  .hero__lead {
    margin-top: 14px;
    font-size: 22px;
  }

  .hero__summary {
    max-width: 520px;
    font-size: 15px;
    line-height: 1.8;
  }

  .hero__actions {
    margin-top: 24px;
  }

  .button {
    min-height: 48px;
    padding: 10px 17px;
    font-size: 14px;
  }

  .hero__tags {
    margin-top: 27px;
    font-size: 12px;
  }

  .hero__tags li + li::before {
    margin: 0 11px;
  }

  .hero__scroll {
    display: none;
  }

  .section {
    padding: 78px 0;
  }

  .section-heading {
    display: block;
  }

  .section h2,
  .experience__copy h2,
  .content-band__title h2,
  .download__copy h2 {
    font-size: 30px;
  }

  .section-heading > p:last-child {
    margin-top: 18px;
    font-size: 15px;
  }

  .feature-list {
    grid-template-columns: 1fr;
    gap: 46px;
    margin-top: 58px;
  }

  .feature {
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: 18px;
  }

  .feature__icon {
    grid-row: 1 / span 2;
  }

  .feature h3 {
    margin: 0 0 5px;
    font-size: 20px;
  }

  .feature p {
    grid-column: 2;
  }

  .experience__inner {
    gap: 42px;
  }

  .screenshots {
    width: calc(100vw - 16px);
    margin-left: -8px;
    padding: 0 16px 14px;
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

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

  .app-shot {
    flex: 0 0 66vw;
    max-width: 285px;
    scroll-snap-align: center;
    transform: none;
  }

  .content-band__inner {
    gap: 38px;
  }

  .content-line {
    grid-template-columns: 30px 1fr;
    gap: 8px 12px;
    padding: 20px 0;
  }

  .content-line p {
    grid-column: 2;
  }

  .download {
    padding: 70px 0;
  }

  .download__art {
    right: -250px;
    opacity: 0.08;
  }

  .download__inner {
    grid-template-columns: 74px 1fr;
    gap: 20px;
  }

  .download__logo {
    width: 74px;
    height: 74px;
  }

  .download .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .site-footer__main {
    grid-template-columns: 1fr;
    gap: 18px;
  }

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

@media (max-width: 430px) {
  .hero {
    min-height: 650px;
  }

  .hero__content {
    padding-top: 118px;
  }

  .hero h1 {
    font-size: 47px;
  }

  .hero__actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero__tags {
    justify-content: center;
  }

  .section h2,
  .experience__copy h2,
  .content-band__title h2,
  .download__copy h2 {
    font-size: 27px;
  }

  .download__copy h2 {
    font-size: 24px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
