:root {
  color-scheme: light;
  --ink: #15345c;
  --muted: #596a80;
  --purple: #7350d4;
  --paper: #fffaf8;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--purple); outline-offset: 5px; }
h1, h2, h3, p, figure { margin: 0; }
.container { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: absolute; left: 20px; top: -100px; z-index: 10; padding: 12px 20px; background: white; border-radius: 12px; }
.skip-link:focus { top: 12px; }

.hero-background {
  background: url("assets/moon-cloud.webp") center top / 100% auto no-repeat,
    linear-gradient(180deg, #fffaf8 0%, #faf5ff 44%, #fffaf8 75%);
}
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 600; letter-spacing: .02em; }
.brand img, .footer-brand img { border-radius: 23%; }
.language-switch { display: inline-flex; align-items: center; gap: 2px; padding: 4px; border: 1px solid #ded5e7; border-radius: 999px; background: #ffffffb8; font-size: 14px; }
.language-switch a { display: grid; place-items: center; min-width: 54px; min-height: 44px; padding: 8px 14px; border-radius: 999px; }
.language-switch a[aria-current="page"] { background: var(--ink); color: white; }
.language-switch a:not([aria-current]):hover { background: #eee5fa; }

.hero { display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; gap: 56px; padding-block: 34px 86px; }
.hero-copy { padding-block: 30px; }
.eyebrow { margin-bottom: 28px; color: var(--purple); font-size: 14px; font-weight: 600; letter-spacing: .12em; }
h1 { font-size: clamp(40px, 4.2vw, 56px); font-weight: 600; line-height: 1.3; letter-spacing: -.035em; }
h1 span { display: block; }
.intro { margin-top: 28px; font-size: 20px; line-height: 1.8; }
.intro span { display: block; }
.hero-detail { max-width: 460px; margin-top: 12px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.download-actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; margin-top: 36px; }
.download-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 60px; padding: 14px 20px; border: 1px solid transparent; border-radius: 999px; font-size: 16px; font-weight: 500; line-height: 1.4; }
.download-button.primary { color: white; background: var(--purple); box-shadow: 0 7px 24px #7350d426; }
.download-button.primary:hover { background: #6342bd; }
.download-button.secondary { background: #ffffffc9; border-color: #cec0de; }
.download-button.secondary:hover { background: white; border-color: var(--purple); }
.platform-label { padding-right: 12px; border-right: 1px solid #ffffff5c; font-size: 14px; font-weight: 600; }
.button-arrow { font-size: 20px; font-weight: 400; }
.hero-visual { display: flex; align-items: center; justify-content: center; padding-block: 12px; }
.phone-frame { width: min(100%, 290px); padding: 8px; border: 2px solid #c2b8c6; border-radius: 48px; background: #222026; box-shadow: 0 28px 50px -20px #5845794d; transform: rotate(3deg); }
.phone-frame img { width: 100%; border-radius: 37px; }

.features { padding-block: 68px 80px; background: #fffaf8ed; border-top: 1px solid #e9e1eb; }
.section-heading { margin-bottom: 40px; text-align: center; }
h2 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; line-height: 1.4; letter-spacing: -.025em; }
.section-heading p { margin-top: 16px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 28px; }
.feature-grid figure { min-width: 0; }
.feature-grid img { width: 100%; border: 1px solid #ebe1ec; border-radius: 24px; }
.feature-grid figcaption { padding: 22px 4px 0; }
h3 { font-size: 20px; font-weight: 600; line-height: 1.5; }
.feature-grid p { margin-top: 8px; color: var(--muted); font-size: 16px; line-height: 1.8; }

.site-footer { padding-block: 36px 28px; border-top: 1px solid #e8e0e8; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; color: var(--muted); font-size: 14px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-links a:hover { color: var(--purple); text-decoration: underline; text-underline-offset: 4px; }
.health-note { max-width: 820px; margin-top: 24px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.copyright { margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.8; }

:lang(en) .eyebrow { letter-spacing: .025em; }
:lang(en) h1 { font-size: clamp(40px, 4.5vw, 60px); line-height: 1.15; }
:lang(en) .intro { font-size: 18px; }
:lang(en) .download-actions { gap: 10px; }
:lang(en) .download-button { gap: 9px; padding-inline: 18px; font-size: 14px; }
:lang(en) .platform-label { padding-right: 9px; }

@media (max-width: 1000px) {
  .container { width: calc(100% - 64px); }
  .hero { gap: 36px; grid-template-columns: 1.2fr 1fr; }
  .phone-frame { width: min(100%, 260px); }
  .download-actions { flex-direction: column; align-items: flex-start; }
  .download-button { min-width: 240px; }
  .feature-grid { gap: 20px; }
}

@media (max-width: 700px) {
  .container { width: calc(100% - 40px); }
  .hero-background { background-size: auto 1040px, auto; }
  .site-header { padding-block: 20px; }
  .brand { gap: 9px; font-size: 21px; }
  .brand img { width: 38px; height: 38px; }
  .language-switch { padding: 2px; }
  .language-switch a { min-width: 44px; padding-inline: 10px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 44px; padding-block: 24px 60px; }
  .hero-copy { padding: 0; }
  .eyebrow { margin-bottom: 20px; font-size: 13px; letter-spacing: .08em; }
  h1 { font-size: clamp(32px, 8.2vw, 48px); line-height: 1.35; }
  .intro { margin-top: 24px; font-size: 18px; }
  .hero-detail { margin-top: 10px; }
  .download-actions { align-items: stretch; margin-top: 28px; }
  .download-button { width: 100%; min-width: 0; min-height: 58px; }
  .phone-frame { width: min(76%, 270px); transform: rotate(2deg); }
  .features { padding-block: 48px 56px; }
  .section-heading { margin-bottom: 32px; text-align: left; }
  h2 { font-size: 27px; }
  .section-heading p { margin-top: 12px; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .feature-grid figure { width: min(100%, 360px); margin-inline: auto; }
  .feature-grid figcaption { padding-top: 18px; }
  .footer-top { align-items: flex-start; flex-direction: column; gap: 16px; }
  .footer-links { gap: 4px 20px; }
  .site-footer { padding-block: 28px; }
  .health-note { margin-top: 16px; }
  :lang(en) h1 { font-size: clamp(38px, 10vw, 52px); }
  :lang(en) .eyebrow { font-size: 14px; }
  :lang(en) .download-button { font-size: 16px; }
}

@media (prefers-reduced-motion: no-preference) {
  .download-button { transition: background-color .15s, border-color .15s; }
}
