:root {
  --page: #eff6f8;
  --page-soft: #eaf2f6;
  --paper: #ffffff;
  --ink: #14252d;
  --ink-muted: #526771;
  --primary: #0ea5e9;
  --primary-strong: #0369a1;
  --line: rgba(20, 37, 45, 0.16);
  --shadow: 0 28px 72px rgba(20, 37, 45, 0.18);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--page); scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, select { font: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  inset-inline-start: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 0.75rem;
  background: var(--primary-strong);
  color: #fff;
  font-weight: 800;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-shell { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.site-header { position: relative; z-index: 20; background: var(--page); }
.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5.25rem;
}
.site-header__actions, .site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a {
  color: var(--ink-muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease;
}
.site-nav a:hover { color: var(--primary-strong); }
.site-menu { display: none; }
.site-menu__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.site-menu__toggle::-webkit-details-marker { display: none; }
.site-menu__toggle::marker { content: ''; }
.site-menu__icon { display: block; }
.site-menu__icon--close, .site-menu[open] .site-menu__icon--open { display: none; }
.site-menu[open] .site-menu__icon--close { display: block; }
.site-menu__panel {
  position: absolute;
  top: calc(100% - .25rem);
  inset-inline: 0;
  display: grid;
  gap: .25rem;
  padding: .5rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--paper);
  box-shadow: 0 16px 40px rgba(20, 37, 45, .14);
  text-align: start;
}
.site-menu:not([open]) .site-menu__panel { display: none; }
.site-menu__panel a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .6rem .9rem;
  border-radius: .6rem;
  color: var(--ink);
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
}
.site-menu__panel a:hover { background: var(--page); color: var(--primary-strong); }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.brand__mark {
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.4rem;
  background: url("/assets/favicon-96x96.png") center / cover no-repeat;
}
.language-switcher {
  max-width: 10rem;
  padding-block: 0.52rem;
  padding-inline: 0.8rem 2.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='m4 7 6 6 6-6' stroke='%2314252d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 1rem;
  color: var(--ink);
  appearance: none;
  -webkit-appearance: none;
}

.hero-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #eff6f8;
}
.hero-section::before {
  position: absolute;
  z-index: -1;
  top: -32rem;
  inset-inline-end: -12rem;
  width: min(82vw, 78rem);
  aspect-ratio: 1;
  border-radius: 44% 56% 63% 37%;
  background: radial-gradient(circle at 42% 58%, rgba(197, 224, 246, 0.86), rgba(197, 224, 246, 0) 68%);
  content: "";
  transform: rotate(22deg);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 0.92fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6.5rem);
  min-height: 720px;
  padding-top: 2.8rem;
  padding-bottom: 4.5rem;
}
.hero-copy { position: relative; z-index: 2; padding: 2rem 0; }
.eyebrow {
  margin: 0 0 1rem;
  color: var(--primary-strong);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.hero-copy h1, .section-heading h2, .download-panel h2 {
  margin: 0;
  font-size: clamp(2.7rem, 5.6vw, 5.35rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
}
html:lang(ar) .brand,
html:lang(ar) .eyebrow,
html:lang(ar) .hero-copy h1,
html:lang(ar) .section-heading h2,
html:lang(ar) .download-panel h2,
html:lang(ar) .store-button__eyebrow,
html:lang(ar) .journey-card__step,
html:lang(ar) .journey-card h3 {
  letter-spacing: normal;
}
html:lang(ar) .eyebrow,
html:lang(ar) .store-button__eyebrow,
html:lang(ar) .journey-card__step {
  text-transform: none;
}
html:lang(zh-CN) .hero-copy h1,
html:lang(zh-TW) .hero-copy h1,
html:lang(ja) .hero-copy h1,
html:lang(ko) .hero-copy h1 {
  line-height: 1.16;
  letter-spacing: -0.035em;
}
.hero-subheadline {
  max-width: 36rem;
  margin: 1.5rem 0 0;
  color: var(--ink);
  font-size: clamp(1.12rem, 1.9vw, 1.38rem);
  line-height: 1.55;
}

.store-buttons, .cn-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
  margin-top: 1.8rem;
}
.store-button {
  display: inline-flex;
  flex: 0 1 14.4rem;
  align-items: center;
  justify-content: center;
  min-height: 3.8rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(20, 37, 45, 0.16);
  border-radius: 1rem;
  background: var(--paper);
  box-shadow: 0 8px 22px rgba(20, 37, 45, 0.07);
  color: var(--ink);
  text-align: start;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.store-button:hover {
  border-color: rgba(14, 165, 233, 0.48);
  box-shadow: 0 12px 28px rgba(20, 37, 45, 0.13);
  transform: translateY(-2px);
}
.hero-copy .store-button {
  border-color: #14252d;
  background: #14252d;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(20, 37, 45, 0.18);
}
.hero-copy .store-button:hover {
  border-color: var(--primary-strong);
  background: #203944;
}
.hero-copy .store-button__eyebrow { color: #c5d8e1; }
.store-button__icon { width: 2rem; margin-inline-end: 0.65rem; font-size: 1.45rem; line-height: 1; text-align: center; }
.store-button__logo {
  display: inline-block;
  width: 1.45rem;
  height: 1.45rem;
  vertical-align: middle;
  background-color: currentColor;
  -webkit-mask: url("/assets/pgyer.png") center / contain no-repeat;
  mask: url("/assets/pgyer.png") center / contain no-repeat;
}
.store-button__copy, .store-button__eyebrow, .store-button__name { display: block; }
.store-button__copy { line-height: 1.15; }
.store-button__eyebrow { color: var(--ink-muted); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; }
.store-button__name { margin-top: 0.16rem; font-size: 1.03rem; font-weight: 800; }
.store-button-soon { cursor: default; opacity: 0.56; }

.hero-visual {
  position: relative;
  display: grid;
  min-height: 660px;
  place-items: center;
  isolation: isolate;
}
.hero-visual__trail {
  position: absolute;
  z-index: -1;
  width: 92%;
  height: 68%;
  border: 2px dashed rgba(14, 165, 233, 0.26);
  border-radius: 51% 49% 38% 62%;
  transform: rotate(-28deg);
}
.hero-visual__sun {
  position: absolute;
  z-index: -1;
  top: 7%;
  inset-inline-end: 9%;
  width: 5.5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #f5c578;
  box-shadow: 0 0 0 1.2rem rgba(245, 197, 120, 0.14);
}
.hero-image {
  width: min(21rem, 76%);
  height: auto;
  border: 6px solid rgba(255, 255, 255, 0.96);
  border-radius: 2rem;
  background: var(--paper);
  box-shadow: var(--shadow), 0 10px 26px rgba(20, 37, 45, 0.1);
  transform: rotate(1.4deg);
}

.journey-section, .gallery-section, .trust-section { padding: clamp(4.5rem, 8vw, 7.5rem) 0; }
.journey-section { background: var(--page-soft); }
.section-heading { max-width: 52rem; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-heading h2, .download-panel h2 { font-size: clamp(2.25rem, 4.4vw, 4rem); line-height: 1.12; }
.section-heading--compact { margin-bottom: 2.5rem; }
.beginner-intro { max-width: 47rem; margin: 1.2rem 0 0; color: var(--ink-muted); font-size: 1.08rem; line-height: 1.75; }
.journey-grid { display: grid; gap: 1.25rem; }
.journey-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.48fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  min-height: 35rem;
  padding: clamp(1.5rem, 3vw, 2.35rem);
  border-radius: 2rem 2rem 2rem 0.7rem;
  background: #e0f7fe;
}
.journey-card--2 { grid-template-columns: minmax(230px, 0.48fr) minmax(0, 1fr); border-radius: 2rem 0.7rem 2rem 2rem; background: #f7e7cf; }
.journey-card--2 .journey-card__visual { order: -1; }
.journey-card--3 { border-radius: 0.7rem 2rem 2rem 2rem; background: #e3eef5; }
.journey-card--4 { grid-template-columns: minmax(230px, 0.48fr) minmax(0, 1fr); border-radius: 2rem 0.7rem 2rem 2rem; background: #eee6f3; }
.journey-card--4 .journey-card__visual { order: -1; }
.journey-card__copy { max-width: 38rem; padding: clamp(0.5rem, 3vw, 2rem); }
.journey-card__top { display: flex; align-items: center; justify-content: space-between; }
.journey-card__step { color: rgba(20, 37, 45, 0.68); font-size: 0.82rem; font-weight: 850; letter-spacing: 0.13em; }
.journey-card__spark {
  width: 1.25rem;
  height: 1.25rem;
  background: #e6a14f;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.journey-card--2 .journey-card__spark { background: #d78362; transform: rotate(15deg) scale(0.9); }
.journey-card--3 .journey-card__spark { background: var(--primary); transform: rotate(-12deg) scale(1.12); }
.journey-card--4 .journey-card__spark { background: #8c72a6; transform: rotate(14deg) scale(0.96); }
.journey-card h3 { margin: 2.3rem 0 0; font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.16; letter-spacing: -0.035em; }
.journey-card p { margin: 0.75rem 0 0; color: var(--ink-muted); font-size: 0.98rem; }
.journey-card__visual {
  justify-self: center;
  width: min(100%, 18rem);
  padding: 0.42rem;
  border-radius: 1.55rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 20px 48px rgba(20, 37, 45, 0.16);
}
.journey-card__image { width: 100%; height: auto; border-radius: 1.2rem; }

.gallery-section { background: var(--page); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: clamp(1rem, 3vw, 2.3rem); }
.gallery-card {
  margin: 0;
  padding: 0.55rem;
  overflow: hidden;
  border-radius: 1.55rem;
  background: #e5f0f6;
  box-shadow: 0 17px 40px rgba(20, 37, 45, 0.12);
}
.gallery-card--2 { margin-top: 2.5rem; background: #f3e8d8; transform: rotate(1deg); }
.gallery-card--3 { background: #e3eef5; transform: rotate(-1deg); }
.gallery-card__image { width: 100%; height: auto; border-radius: 1.1rem; }

.trust-section { background: #e5f0f6; }
.trust-section .section-heading { margin-bottom: 2rem; }
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.trust-card { min-height: 0; padding: 1.35rem 0.25rem 0; border-top: 1px solid rgba(20, 37, 45, 0.2); }
.trust-card__dot { display: block; width: 0.55rem; height: 0.55rem; margin-bottom: 1rem; border-radius: 50%; background: #e7a158; }
.trust-card:nth-child(2) .trust-card__dot { background: var(--primary); }
.trust-card:nth-child(3) .trust-card__dot { background: #db8461; }
.trust-card h3 { margin: 0; font-size: 1.2rem; line-height: 1.3; }
.trust-card p { max-width: 22rem; margin: 0.65rem 0 0; color: var(--ink-muted); font-size: 0.96rem; }

.download-section { padding: clamp(4.5rem, 8vw, 7rem) 0; background: #14252d; color: #ffffff; }
.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  align-items: center;
  gap: 3rem;
}
.download-panel .eyebrow { color: #b7e7fc; }
.download-panel__copy > p:last-child { max-width: 38rem; margin: 1.1rem 0 0; color: #c5d8e1; }
.store-buttons--footer { justify-content: flex-end; margin-top: 0; }
.store-buttons--footer .store-button { flex-basis: 100%; max-width: 18rem; }
.download-section .store-button { border-color: rgba(255, 255, 255, 0.16); background: #ffffff; color: var(--ink); }
.download-section .download-hint, .download-section .download-more, .download-section .alternate-download, .download-section .alternate-download a { color: #c5d8e1; }

.cn-downloads { align-items: center; }
.download-option[data-recommended="true"] { order: -1; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.18); }
.download-recommendation {
  display: none;
  margin-inline-end: 0.55rem;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: var(--primary-strong);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 850;
}
.download-option[data-recommended="true"] .download-recommendation { display: inline-flex; }
.download-option[hidden], .download-more[hidden] { display: none; }
.download-more, .alternate-download a { color: var(--primary-strong); font-weight: 750; text-decoration: underline; text-underline-offset: 0.2em; }
.download-more { order: 90; width: 100%; padding: 0.5rem; border: 0; background: transparent; cursor: pointer; text-align: start; }
.download-hint, .alternate-download { order: 100; width: 100%; margin: 0; color: var(--ink-muted); font-size: 0.88rem; }

.site-footer { padding: 3.5rem 0; background: var(--page); }
.site-footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.88rem;
}
.site-footer p { margin: 0.4rem 0; }
.site-footer__links { text-align: end; }
.site-footer__links a { text-underline-offset: 0.2em; }

a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.8fr); gap: 2rem; min-height: 660px; }
  .hero-visual { min-height: 570px; }
  .hero-image { width: min(19rem, 82%); }
  .journey-card { min-height: 31rem; }
  .journey-card__visual { width: min(100%, 16rem); }
  .download-panel { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .download-panel__copy > p:last-child { margin-inline: auto; }
  .store-buttons--footer { justify-content: center; }
  .site-nav { display: none; }
  .site-menu { display: block; }
  .site-header__actions { gap: .65rem; }
}

@media (max-width: 680px) {
  .site-shell { width: min(100% - 1.25rem, 1180px); }
  .site-header__inner { min-height: 4.5rem; gap: .75rem; }
  .language-switcher { max-width: 7rem; padding-inline: .65rem 1.9rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; min-height: 0; padding-top: 1.3rem; padding-bottom: 2.8rem; }
  .hero-copy { padding: 1.2rem 0 0; text-align: center; }
  .hero-copy h1 { font-size: clamp(2.5rem, 11vw, 4rem); }
  .hero-subheadline { margin-inline: auto; }
  .store-buttons, .cn-downloads { justify-content: center; }
  .store-button { flex-basis: min(100%, 21rem); }
  .hero-visual { min-height: 0; padding: 2.8rem 0 1.5rem; }
  .hero-image { width: min(21rem, 77vw); }
  .hero-visual__trail { width: 95%; height: 65%; }
  .hero-visual__sun { top: 4%; inset-inline-end: 4%; width: 4rem; }
  .journey-section, .gallery-section, .trust-section { padding-top: 4.25rem; padding-bottom: 4.25rem; }
  .section-heading--compact { margin-bottom: 1.7rem; }
  .beginner-intro { font-size: 1rem; }
  .journey-card { grid-template-columns: 1fr; min-height: 0; gap: 1.5rem; border-radius: 1.55rem 1.55rem 1.55rem 0.55rem; }
  .journey-card--2 { border-radius: 1.55rem 0.55rem 1.55rem 1.55rem; }
  .journey-card--3 { border-radius: 0.55rem 1.55rem 1.55rem 1.55rem; }
  .journey-card--4 { border-radius: 1.55rem 0.55rem 1.55rem 1.55rem; }
  .journey-card__copy { padding: 0.5rem; }
  .journey-card h3 { margin-top: 1.5rem; font-size: clamp(1.65rem, 7vw, 2.25rem); }
  .journey-card__visual { width: min(18rem, 76vw); }
  .journey-card--2 .journey-card__visual, .journey-card--4 .journey-card__visual { order: initial; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .gallery-card { padding: 0.35rem; border-radius: 1rem; }
  .gallery-card--2 { margin-top: 1.4rem; }
  .gallery-card--3 { grid-column: 1 / -1; width: min(54%, 13rem); justify-self: center; }
  .gallery-card__image { border-radius: 0.72rem; }
  .trust-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .trust-card { padding-top: 1rem; }
  .trust-card__dot { margin-bottom: 0.7rem; }
  .download-section { padding: 4.25rem 0; }
  .download-panel { gap: 1.5rem; }
  .store-buttons--footer .store-button { flex-basis: 100%; }
  .download-more { text-align: center; }
  .site-footer { padding: 2.8rem 0; }
  .site-footer__inner { flex-direction: column; gap: 1rem; }
  .site-footer__links { text-align: start; }
}

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