:root {
  color-scheme: light;
  --coral: #fa5b61;
  --coral-dark: #df444b;
  --ink: #1e2226;
  --muted: #686d72;
  --paper: #fff8f5;
  --white: #ffffff;
  --line: rgba(30, 34, 38, 0.11);
  --shell: min(1160px, calc(100% - 48px));
  --ease: cubic-bezier(.2, .75, .25, 1);
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 45%, rgba(250, 91, 97, .10), transparent 32%),
    var(--paper);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.shell { width: var(--shell); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 99;
  top: 12px;
  left: 12px;
  padding: 9px 14px;
  color: var(--white);
  background: var(--ink);
  border-radius: 9px;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 780;
  letter-spacing: .04em;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: auto;
  aspect-ratio: 569 / 574;
  object-fit: contain;
  border-radius: 11px;
}

.company-name {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-align: right;
}

.hero { min-height: calc(100svh - 83px); display: grid; align-items: center; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr);
  gap: clamp(56px, 9vw, 124px);
  align-items: center;
  padding-block: clamp(64px, 10vh, 112px);
}

.hero-copy { position: relative; z-index: 1; }

.eyebrow {
  margin: 0 0 22px;
  color: var(--coral-dark);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .12em;
}

h1 {
  margin: 0;
  font-size: clamp(54px, 7vw, 94px);
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: -.07em;
  text-wrap: balance;
}

h1 span { color: var(--coral); }

.hero-intro {
  max-width: 680px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.55vw, 20px);
  line-height: 1.9;
  text-wrap: pretty;
}

.download-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.download-button {
  min-width: 220px;
  min-height: 68px;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 11px 15px;
  border: 1px solid transparent;
  border-radius: 17px;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s ease;
}

.download-button svg { width: 27px; fill: currentColor; justify-self: center; }
.download-button small { display: block; margin-bottom: 3px; font-size: 11px; font-weight: 500; opacity: .66; }
.download-button b { font-size: 17px; font-weight: 500; }

.download-button.primary {
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 14px 30px rgba(30, 34, 38, .13);
}

.download-button.secondary { color: var(--ink); background: rgba(255, 255, 255, .70); border-color: var(--line); }

.android-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  justify-self: center;
  color: var(--white);
  background: var(--coral);
  border-radius: 9px;
}

.android-mark svg { width: 22px; fill: currentColor; }

.download-button:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(30, 34, 38, .14); }

.download-button:focus-visible,
.brand:focus-visible,
.footer-links a:focus-visible {
  outline: 3px solid rgba(250, 91, 97, .32);
  outline-offset: 4px;
}

.logo-display { position: relative; display: grid; place-items: center; }

.logo-display::before {
  content: "";
  position: absolute;
  width: min(470px, 42vw);
  aspect-ratio: 1;
  background: var(--coral);
  border-radius: 44% 56% 58% 42% / 49% 43% 57% 51%;
  opacity: .09;
}

.logo-frame {
  position: relative;
  width: min(390px, 34vw);
  aspect-ratio: 569 / 574;
  padding: 14px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(30, 34, 38, .08);
  border-radius: 38px;
  box-shadow: 0 28px 70px rgba(91, 49, 44, .13);
}

.logo-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 569 / 574;
  object-fit: contain;
  border-radius: 27px;
}

.site-footer { padding-block: 26px; color: rgba(255, 255, 255, .60); background: var(--ink); }

.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px 32px; }
.footer-inner p { margin: 0; font-size: 11px; }
.footer-links { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px 20px; font-size: 11px; }
.footer-links a { text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, .22); }
.footer-links a:hover { color: var(--white); }

@media (max-width: 900px) {
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 52px; padding-block: 68px 76px; }
  .logo-display { grid-row: 1; }
  .logo-display::before { width: min(420px, 76vw); }
  .logo-frame { width: min(330px, 66vw); }
  .hero-copy { text-align: center; }
  .hero-intro { margin-inline: auto; }
  .download-actions { justify-content: center; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 560px) {
  :root { --shell: min(100% - 32px, 1160px); }
  .header-inner { min-height: 70px; }
  .header-inner { gap: 12px; }
  .brand { flex: 0 0 auto; font-size: 16px; }
  .brand img { width: 38px; }
  .company-name { max-width: 168px; font-size: 10px; line-height: 1.45; letter-spacing: .02em; }
  .hero-grid { gap: 38px; padding-block: 44px 56px; }
  .logo-frame { width: min(270px, 72vw); padding: 10px; border-radius: 30px; }
  .logo-frame img { border-radius: 21px; }
  .eyebrow { margin-bottom: 17px; font-size: 12px; }
  h1 { font-size: clamp(45px, 13.8vw, 64px); line-height: 1.04; }
  .hero-intro { margin-top: 23px; font-size: 16px; line-height: 1.8; }
  .download-actions { display: grid; grid-template-columns: 1fr; margin-top: 30px; }
  .download-button { width: 100%; min-width: 0; }
  .site-footer { padding-block: 24px; }
  .footer-links { gap: 9px 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

.error-page {
  min-height: calc(100svh - 83px);
  display: grid;
  place-items: center;
  padding-block: 64px;
  text-align: center;
}

.error-code {
  margin: 0;
  color: var(--coral);
  font-size: clamp(76px, 15vw, 164px);
  font-weight: 850;
  line-height: .85;
  letter-spacing: -.08em;
}

.error-page h1 {
  margin-top: 26px;
  font-size: clamp(36px, 5vw, 64px);
}

.error-copy {
  max-width: 520px;
  margin: 20px auto 30px;
  color: var(--muted);
  font-size: 17px;
}

.home-link {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  color: var(--white);
  background: var(--ink);
  border-radius: 14px;
  font-weight: 750;
  text-decoration: none;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}

.home-link:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(30, 34, 38, .15); }
.home-link:focus-visible { outline: 3px solid rgba(250, 91, 97, .32); outline-offset: 4px; }
