:root {
  --accent: #637dff;
  --accent-strong: #3a63f0;
  --accent-deep: #2f52d9;
  --ink: #25262b;
  --ink-soft: #54565f;
  --muted: #9292a6;
  --muted-light: #6f7388;
  --paper: #ffffff;
  --paper-soft: #f6f7fb;
  --line: rgba(37, 38, 43, 0.08);
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-card: 0 18px 48px -24px rgba(37, 38, 43, 0.28);
  --font-sans: Avenir, "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  --font-display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Avenir, "Helvetica Neue", Arial, sans-serif;
  --max: 1160px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

.skip-link {
  position: absolute; left: 16px; top: -48px;
  z-index: 100; padding: 10px 16px;
  border-radius: 8px; background: var(--ink); color: #fff;
  font-size: 14px; transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(1.6) blur(14px);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -28px rgba(37, 38, 43, 0.4);
}
.site-header__inner {
  max-width: var(--max);
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand__logo { width: 142px; height: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: 18px;
}
.nav__link {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 0;
  position: relative;
  transition: color 0.2s ease;
}
.nav__link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.22s ease;
}
.nav__link:hover { color: var(--accent-deep); }
.nav__link:hover::after { transform: scaleX(1); }

.site-header__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav__link--ghost { font-size: 15px; color: var(--ink-soft); }

.btn-login {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 20px;
  border-radius: 18px;
  border: 1px solid rgba(37, 38, 43, 0.16);
  font-size: 14px; font-weight: 500;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.btn-login:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
  background: rgba(99, 125, 255, 0.06);
}

/* Hero */
.hero {
  position: relative;
  padding-top: 116px;
  overflow: hidden;
}
.hero__inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  min-height: 430px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 571px) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.hero__copy { position: relative; z-index: 2; padding-top: 12px; }
.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(44px, 4.6vw, 66px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.hero__tagline {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: clamp(32px, 3.4vw, 50px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.hero__subtitle {
  margin: 30px 0 0;
  max-width: 560px;
  font-size: 20px;
  line-height: 1.7;
  color: var(--muted);
}
.hero__actions {
  margin-top: 44px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hero__platforms {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: #6f7388;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 62px;
  padding: 0 42px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #4a67ea 0%, var(--accent-strong) 100%);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  box-shadow: 0 18px 42px -14px rgba(58, 99, 240, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  animation: cta-glow 3.2s ease-in-out infinite;
}
.cta-primary__icon { width: 22px; height: 22px; flex: 0 0 auto; }
.cta-primary:hover {
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 24px 54px -14px rgba(58, 99, 240, 0.82), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}
.cta-primary:active { transform: translateY(0) scale(0.99); }
.cta-primary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

@keyframes cta-glow {
  0%, 100% { box-shadow: 0 18px 42px -16px rgba(58, 99, 240, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.28); }
  50% { box-shadow: 0 22px 56px -10px rgba(58, 99, 240, 0.86), inset 0 1px 0 rgba(255, 255, 255, 0.34); }
}

/* Hero visual */
.hero__visual {
  position: relative;
  min-height: 430px;
  align-self: stretch;
}
.hero__glow {
  position: absolute;
  right: -60px; top: -30px;
  width: 620px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at 55% 45%, rgba(99, 125, 255, 0.22), rgba(99, 125, 255, 0) 66%);
  filter: blur(8px);
}
.hero__preview {
  position: absolute;
  right: 24px;
  top: 74px;
  z-index: 2;
  width: 430px;
  height: auto;
  border-radius: 18px;
  filter: drop-shadow(0 30px 60px rgba(37, 38, 43, 0.18));
  animation: drift 9s ease-in-out infinite;
}
.float {
  position: absolute;
  z-index: 3;
  border-radius: 14px;
  filter: drop-shadow(0 18px 36px rgba(37, 38, 43, 0.16));
  animation: drift 8s ease-in-out infinite;
}
.float--album { left: 0; top: 18px; width: 161px; animation-delay: -1.2s; }
.float--doc { right: 0; top: 8px; width: 202px; animation-delay: -2.4s; }
.float--music { left: 10px; bottom: 16px; width: 202px; animation-delay: -3.6s; }
.float--phone { right: 0; top: 206px; width: 165px; animation-delay: -0.8s; }
.float--phone2 { left: 84px; top: 96px; width: 300px; z-index: 1; animation-delay: -2s; }

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -12px, 0); }
}

.hero__ocean {
  position: relative;
  height: 170px;
  margin-top: 10px;
  pointer-events: none;
}
.hero__ocean svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Backup section */
.backup {
  padding: 100px 0 80px;
}
.backup__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 473px) minmax(0, 666px);
  gap: 48px;
  align-items: center;
}
.backup__mark { width: 55px; height: auto; margin-bottom: 18px; }
.backup__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 3.8vw, 54px);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.backup__desc {
  margin: 26px 0 0;
  max-width: 473px;
  font-size: 20px;
  line-height: 1.6;
  color: var(--muted);
}
.feature-list {
  margin: 46px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 30px;
}
.feature {
  display: flex;
  gap: 26px;
  align-items: flex-start;
}
.feature__icon {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  color: var(--accent);
}
.feature__icon svg { width: 38px; height: 38px; }
.feature__body { display: grid; gap: 6px; }
.feature__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}
.feature__text {
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.backup__carousel { position: relative; }
.carousel__viewport {
  overflow: hidden;
  border-radius: 20px;
  background: var(--paper-soft);
  box-shadow: var(--shadow-card);
}
.carousel__track {
  display: flex;
  width: 200%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.carousel__slide {
  width: 50%;
  height: auto;
  flex: 0 0 50%;
}
.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}
.carousel__dot {
  width: 8px; height: 8px;
  padding: 0; border: 0;
  border-radius: 999px;
  background: rgba(37, 38, 43, 0.16);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}
.carousel__dot.is-active { width: 26px; background: var(--accent); }

/* Story */
.story { margin: 0; }
.story__image { width: 100%; height: auto; }

/* Apps */
.apps { padding: 92px 0 72px; background: var(--paper-soft); overflow: hidden; }
.apps__inner {
  max-width: var(--max);
  margin: 0 auto 44px;
  padding: 0 24px;
}
.apps__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.apps__desc {
  margin: 14px 0 0;
  max-width: 620px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
}
.marquee { display: grid; gap: 18px; }
.marquee__row { overflow: hidden; }
.marquee__track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: marquee 44s linear infinite;
}
.marquee__row--reverse .marquee__track { animation-direction: reverse; }
.marquee__track img {
  width: 300px; height: 144px;
  border-radius: 16px;
  flex: 0 0 auto;
  opacity: 0.94;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Footer */
.footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 64px 0 36px;
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 44px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.footer__brand img { width: 142px; height: auto; }
.footer__tagline { margin: 16px 0 0; font-size: 14px; color: var(--muted-light); }
.footer__heading {
  margin: 6px 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.footer__col { display: grid; align-content: start; gap: 10px; }
.footer__col a {
  font-size: 14px;
  color: var(--muted-light);
  transition: color 0.2s ease;
}
.footer__col a:hover { color: var(--accent-deep); }
.footer__bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 24px 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}
.footer__contact,
.footer__copyright {
  margin: 0;
  font-size: 12px;
  color: var(--muted-light);
}

/* Responsive */
@media (max-width: 1100px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr) 420px; gap: 24px; }
  .hero__preview { right: 30px; width: 360px; }
  .float--doc { right: 0; width: 168px; }
  .float--music { width: 168px; }
  .float--phone { right: 0; width: 140px; }
  .float--phone2 { left: 90px; width: 250px; }
  .float--album { left: 0; width: 140px; }
  .backup__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .site-header__actions .nav__link--ghost { display: none; }
  .hero { padding-top: 104px; }
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
    min-height: 0;
    gap: 24px;
  }
  .hero__copy { padding-top: 0; }
  .hero__subtitle { margin: 20px auto 0; max-width: 520px; font-size: 17px; }
  .hero__tagline { font-size: clamp(28px, 6vw, 40px); }
  .hero__actions { margin-top: 30px; justify-content: center; }
  .hero__platforms { width: 100%; }
  .hero__visual { min-height: 360px; }
  .hero__preview { right: 50%; transform: translateX(50%); top: 40px; width: 330px; }
  .hero__glow { right: 50%; transform: translateX(50%); width: 480px; height: 400px; }
  .float--album { left: 2%; top: 0; width: 120px; }
  .float--doc { right: 0; top: 8px; width: 150px; }
  .float--music { left: 6%; bottom: 0; width: 150px; }
  .float--phone { right: 2%; top: 210px; width: 120px; }
  .float--phone2 { left: 50%; transform: translateX(-50%); top: 150px; width: 230px; }
  @keyframes drift {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -8px, 0); }
  }
  .hero__ocean { height: 110px; }
  .backup { padding: 64px 0 48px; }
  .backup__inner { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .backup__title { font-size: clamp(30px, 7vw, 40px); }
  .backup__desc { font-size: 17px; }
  .feature__title { font-size: 20px; }
  .feature__text { font-size: 16px; }
  .apps { padding: 64px 0 48px; }
  .apps__title { font-size: 30px; }
  .apps__desc { font-size: 16px; }
  .marquee__track img { width: 230px; height: 110px; }
  .footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .site-header__inner { height: 64px; padding: 0 18px; gap: 12px; }
  .brand__logo { width: 118px; }
  .cta-primary { width: 100%; min-height: 54px; padding: 0 24px; font-size: 17px; }
  .hero__actions { gap: 14px; }
  .hero__visual { min-height: 300px; }
  .hero__preview { width: 270px; top: 22px; }
  .float--album { width: 92px; }
  .float--doc { width: 112px; }
  .float--music { width: 112px; }
  .float--phone { width: 90px; top: 170px; }
  .float--phone2 { width: 170px; top: 120px; }
  .feature { gap: 16px; }
  .feature__icon { width: 34px; height: 34px; }
  .feature__icon svg { width: 30px; height: 30px; }
  .apps__inner { margin-bottom: 28px; }
  .marquee__track img { width: 190px; height: 92px; }
  .marquee__track { gap: 12px; }
  .footer { padding-top: 48px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta-primary,
  .float,
  .hero__preview,
  .marquee__track {
    animation: none !important;
    transition: none !important;
  }
}
