:root {
  --ink: #0b1233;
  --muted: #5d6279;
  --purple: #6f58ee;
  --purple-dark: #5640d6;
  --purple-soft: #eeebff;
  --lavender: #f6f4ff;
  --blue-soft: #edf5ff;
  --orange: #ffb56f;
  --orange-soft: #fff3e7;
  --surface: #ffffff;
  --line: #e7e7f1;
  --shadow: 0 28px 70px rgba(46, 36, 122, 0.15);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--surface);
  font-family: "Avenir Next Rounded", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--purple);
  text-underline-offset: 0.2em;
}

a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
  border-radius: 10px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(231, 231, 241, 0.88);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  width: min(1240px, calc(100% - 48px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.brand__icon,
.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 13px;
  box-shadow: 0 8px 22px rgba(94, 73, 216, 0.18);
}

.brand-mark {
  display: grid;
  place-items: center;
  color: var(--surface);
  background: var(--purple);
  font-size: 17px;
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 680;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--purple);
}

.promo-hero {
  background: var(--lavender);
}

.promo-hero__inner,
.promo-rail,
.learning-loop,
.local-privacy__inner,
.download-section__inner,
.section,
.page-intro__inner,
.policy,
.site-footer__inner {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.promo-hero__inner {
  min-height: 690px;
  padding: 64px 0 34px;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(540px, 1.14fr);
  align-items: center;
  gap: 22px;
}

.promo-hero__copy {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--purple);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.promo-hero h1 {
  margin-bottom: 24px;
  font-size: clamp(58px, 6.25vw, 88px);
  font-weight: 850;
}

.promo-hero h1 span {
  display: block;
  color: var(--purple);
}

.promo-hero__lead {
  max-width: 560px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(19px, 1.7vw, 23px);
  letter-spacing: -0.015em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.store-action,
.text-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.store-action {
  min-height: 62px;
  padding: 9px 22px 9px 12px;
  gap: 12px;
  color: var(--surface);
  background: var(--purple);
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(83, 63, 211, 0.24);
  font-weight: 760;
}

.store-action img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.store-action span {
  display: grid;
  line-height: 1.16;
}

.store-action small {
  margin-bottom: 2px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.text-action {
  min-height: 48px;
  gap: 9px;
  color: var(--ink);
  font-weight: 760;
}

.text-action span {
  color: var(--purple);
  font-size: 22px;
}

.store-action:hover,
.text-action:hover {
  transform: translateY(-2px);
}

.store-action:hover {
  background: var(--purple-dark);
  box-shadow: 0 18px 34px rgba(83, 63, 211, 0.28);
}

.mini-brand {
  margin-top: 48px;
  display: flex;
  align-items: center;
  gap: 13px;
}

.mini-brand img {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  box-shadow: 0 10px 24px rgba(94, 73, 216, 0.16);
}

.mini-brand p {
  margin-bottom: 0;
  display: grid;
  line-height: 1.4;
}

.mini-brand strong {
  font-size: 17px;
}

.mini-brand span {
  color: var(--muted);
  font-size: 14px;
}

.product-stage {
  position: relative;
  min-height: 610px;
}

.phone-shot {
  position: absolute;
  filter: drop-shadow(0 26px 32px rgba(25, 19, 72, 0.18));
}

.phone-shot--home {
  z-index: 3;
  width: 332px;
  right: 232px;
  top: 8px;
  transform: rotate(-1deg);
}

.phone-shot--study {
  z-index: 2;
  width: 252px;
  right: 20px;
  top: 132px;
  transform: rotate(2deg);
}

.word-tile {
  position: absolute;
  z-index: 5;
  width: 104px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--surface);
  border: 6px solid #b4a7ff;
  border-radius: 24px;
  box-shadow: 0 18px 34px rgba(42, 31, 117, 0.16);
}

.word-tile img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.word-tile--apple {
  top: 78px;
  right: 0;
  transform: rotate(8deg);
}

.word-tile--dog {
  left: 12px;
  bottom: 44px;
  transform: rotate(-9deg);
}

.word-tile--car {
  right: 5px;
  bottom: 22px;
  transform: rotate(7deg);
}

.promo-rail {
  margin-bottom: 34px;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 18px 44px rgba(46, 36, 122, 0.08);
}

.promo-rail article {
  min-height: 112px;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: auto 1fr 82px;
  align-items: center;
  gap: 14px;
  background: var(--surface);
}

.promo-rail article:first-child {
  border-radius: 16px 0 0 16px;
}

.promo-rail article:last-child {
  border-radius: 0 16px 16px 0;
}

.promo-rail span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--surface);
  background: var(--purple);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 820;
}

.promo-rail h2,
.promo-rail p {
  margin-bottom: 0;
}

.promo-rail h2 {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.promo-rail p {
  color: var(--muted);
  font-size: 13px;
}

.promo-rail img {
  width: 76px;
  height: 76px;
  justify-self: end;
  object-fit: contain;
}

.promo-rail article:nth-child(2) img {
  object-position: center 10%;
  border-radius: 12px;
}

.learning-loop {
  padding: 96px 0 126px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 58px;
}

.section-heading--center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading h2,
.local-privacy h2,
.download-section h2,
.support-copy h2,
.policy h2 {
  margin-bottom: 16px;
  font-size: clamp(36px, 4.4vw, 58px);
}

.section-heading p:last-child,
.local-privacy__copy > p,
.download-section__inner > div > p:last-child,
.support-copy > p,
.policy__lead {
  color: var(--muted);
  font-size: 18px;
}

.learning-steps {
  display: grid;
  gap: 28px;
}

.learning-step {
  min-height: 390px;
  padding: 48px 58px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 72px;
  background: var(--lavender);
  border-radius: 40px;
}

.learning-step--reverse .learning-step__visual {
  order: 2;
}

.learning-step__visual {
  min-height: 290px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--surface);
  border-radius: 30px;
}

.learning-step__visual--apple img {
  width: 260px;
}

.learning-step__visual--screen {
  align-items: start;
  background: var(--blue-soft);
}

.learning-step__visual--screen img {
  width: 245px;
  margin-top: 20px;
  filter: drop-shadow(0 20px 24px rgba(25, 19, 72, 0.14));
}

.learning-step__visual--trophy {
  background: var(--orange-soft);
}

.learning-step__visual--trophy img {
  width: 300px;
}

.learning-step__copy {
  max-width: 470px;
}

.learning-step__number {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--purple);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.learning-step h3 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4vw, 52px);
}

.learning-step p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.local-privacy {
  padding: 0 24px 120px;
}

.local-privacy__inner {
  min-height: 500px;
  padding: 72px 88px;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: 80px;
  background: var(--ink);
  border-radius: 44px;
}

.local-privacy__art {
  min-height: 320px;
  display: grid;
  place-items: center;
  background: #18224b;
  border-radius: 32px;
}

.local-privacy__art img {
  width: 280px;
}

.local-privacy__copy {
  max-width: 620px;
  color: var(--surface);
}

.local-privacy__copy .eyebrow {
  color: #a99aff;
}

.local-privacy__copy > p {
  color: #c5c9dc;
}

.local-privacy__copy .text-action {
  color: var(--surface);
}

.download-section {
  padding: 0 24px 120px;
}

.download-section__inner {
  padding: 68px 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  background: var(--orange-soft);
  border-radius: 40px;
}

.download-section__inner > div:first-child {
  max-width: 700px;
}

.download-status {
  min-width: 240px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid rgba(11, 18, 51, 0.08);
  border-radius: 20px;
}

.download-status img {
  width: 54px;
  height: 54px;
  border-radius: 16px;
}

.download-status p {
  margin-bottom: 0;
  display: grid;
  line-height: 1.4;
}

.download-status strong {
  font-size: 17px;
}

.download-status span {
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 104px 0;
}

.section--tinted {
  padding-right: 48px;
  padding-left: 48px;
  background: var(--blue-soft);
  border-radius: 38px;
}

.page-intro {
  background: var(--lavender);
}

.page-intro__inner {
  padding: 88px 0 82px;
}

.page-intro h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(42px, 6vw, 70px);
}

.page-intro p:last-child {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 19px;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 88px;
}

.support-copy h2 {
  position: sticky;
  top: 112px;
}

.steps,
.detail-list,
.faq-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps {
  counter-reset: support-step;
}

.steps li {
  position: relative;
  padding: 0 0 34px 64px;
  counter-increment: support-step;
}

.steps li::before {
  content: counter(support-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--purple);
  background: var(--purple-soft);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
}

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 46px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}

.steps h3,
.detail-list h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.steps p,
.detail-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.detail-list li,
.faq-list li {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.detail-list li:last-child,
.faq-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.detail-list__label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--purple);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 64px;
}

.contact-box {
  padding: 56px;
  background: var(--orange-soft);
  border-radius: 30px;
  text-align: center;
}

.contact-box h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 40px);
}

.contact-box p {
  max-width: 620px;
  margin: 0 auto 26px;
  color: var(--muted);
}

.contact-box__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 26px;
}

.contact-box__links a {
  font-weight: 720;
}

.policy {
  max-width: 760px;
  padding: 76px 0 112px;
}

.policy__meta {
  margin-bottom: 46px;
  color: var(--muted);
  font-size: 15px;
}

.policy section {
  margin-top: 52px;
  scroll-margin-top: 104px;
}

.policy h2 {
  font-size: clamp(25px, 3vw, 32px);
}

.policy p,
.policy li {
  color: #363b55;
}

.policy ul {
  padding-left: 1.3em;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.site-footer__links a {
  color: var(--muted);
}

@media (prefers-reduced-motion: no-preference) {
  .promo-hero__copy,
  .product-stage,
  .page-intro__inner {
    animation: enter 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .product-stage {
    animation-delay: 90ms;
  }

  @keyframes enter {
    from {
      opacity: 0;
      transform: translateY(14px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1060px) {
  .promo-hero__inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
  }

  .phone-shot--home {
    width: 320px;
    right: 190px;
  }

  .phone-shot--study {
    width: 245px;
  }

  .learning-step {
    gap: 48px;
  }
}

@media (max-width: 860px) {
  .site-header__inner,
  .promo-hero__inner,
  .promo-rail,
  .learning-loop,
  .local-privacy__inner,
  .download-section__inner,
  .section,
  .page-intro__inner,
  .policy,
  .site-footer__inner {
    width: min(100% - 36px, 720px);
  }

  .home-page .site-header__inner {
    padding: 10px 0 12px;
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .home-page .home-nav {
    width: 100%;
    flex: 0 0 100%;
    order: 3;
    display: grid;
    grid-template-columns: repeat(4, auto);
    justify-content: space-between;
    gap: 8px;
  }

  .home-page .home-nav a {
    display: block;
    font-size: 12px;
  }

  .promo-hero__inner {
    min-height: auto;
    padding: 70px 0 24px;
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .promo-hero__copy {
    max-width: 680px;
  }

  .promo-hero h1 {
    font-size: clamp(48px, 9vw, 72px);
  }

  .product-stage {
    width: min(100%, 650px);
    min-height: 650px;
    margin: 0 auto;
  }

  .phone-shot--home {
    width: 340px;
    right: 230px;
  }

  .phone-shot--study {
    width: 255px;
    right: 18px;
  }

  .learning-step,
  .learning-step--reverse {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .learning-step--reverse .learning-step__visual {
    order: 0;
  }

  .learning-step__copy {
    max-width: 600px;
  }

  .local-privacy__inner {
    padding: 56px;
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .local-privacy__art {
    min-height: 280px;
  }

  .download-section__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .section--tinted {
    padding-right: 32px;
    padding-left: 32px;
  }

  .support-layout,
  .faq-list {
    grid-template-columns: 1fr;
  }

  .support-layout {
    gap: 42px;
  }

  .support-copy h2 {
    position: static;
  }

  .promo-rail {
    display: none;
  }
}

@media (max-width: 560px) {
  .site-header__inner {
    min-height: 68px;
  }

  .brand {
    font-size: 18px;
  }

  .brand__icon,
  .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .site-nav {
    gap: 14px;
  }

  .site-nav a {
    font-size: 13px;
  }

  .site-nav a:first-child {
    display: none;
  }

  .home-page .home-nav a:first-child {
    display: block;
  }

  .promo-hero__inner,
  .promo-rail,
  .learning-loop,
  .local-privacy__inner,
  .download-section__inner,
  .section,
  .page-intro__inner,
  .policy,
  .site-footer__inner {
    width: min(100% - 28px, 500px);
  }

  .promo-hero__inner {
    padding-top: 54px;
  }

  .promo-hero h1 {
    max-width: 350px;
    font-size: clamp(45px, 13vw, 62px);
  }

  .promo-hero__lead {
    font-size: 18px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .mini-brand {
    margin-top: 36px;
  }

  .product-stage {
    min-height: 470px;
  }

  .phone-shot--home {
    width: 235px;
    right: 120px;
    top: 12px;
  }

  .phone-shot--study {
    width: 176px;
    right: 0;
    top: 104px;
  }

  .word-tile {
    width: 68px;
    border-width: 4px;
    border-radius: 16px;
  }

  .word-tile--apple {
    top: 44px;
  }

  .word-tile--dog {
    left: 0;
    bottom: 64px;
  }

  .word-tile--car {
    bottom: 38px;
  }

  .learning-loop {
    padding: 84px 0 92px;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .section-heading h2,
  .local-privacy h2,
  .download-section h2 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .learning-step {
    min-height: auto;
    padding: 24px;
    border-radius: 30px;
  }

  .learning-step__visual {
    min-height: 230px;
    border-radius: 24px;
  }

  .learning-step__visual--apple img {
    width: 190px;
  }

  .learning-step__visual--screen img {
    width: 190px;
  }

  .learning-step__visual--trophy img {
    width: 220px;
  }

  .learning-step h3 {
    font-size: 36px;
  }

  .local-privacy,
  .download-section {
    padding: 0 0 80px;
  }

  .local-privacy__inner,
  .download-section__inner {
    padding: 34px 26px;
    border-radius: 30px;
  }

  .local-privacy__art {
    min-height: 220px;
  }

  .local-privacy__art img {
    width: 200px;
  }

  .download-status {
    min-width: 0;
    width: 100%;
  }

  .section {
    padding: 76px 0;
  }

  .section--tinted {
    padding-right: 22px;
    padding-left: 22px;
    border-radius: 28px;
  }

  .page-intro__inner {
    padding: 60px 0;
  }

  .page-intro h1 {
    font-size: clamp(40px, 11vw, 54px);
  }

  .contact-box {
    padding: 44px 24px;
  }

  .policy {
    padding: 58px 0 84px;
  }

  .site-footer__inner {
    padding: 30px 0;
    align-items: flex-start;
    flex-direction: column;
  }
}
