:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --ink: #101827;
  --muted: #667085;
  --line: #e5eaf2;
  --blue: #1377ee;
  --blue-strong: #0b63ce;
  --cyan: #1ab7c8;
  --green: #23b26d;
  --amber: #f59e2f;
  --rose: #ef667d;
  --shadow: 0 24px 70px rgba(16, 24, 39, 0.12);
  --glass: rgba(255, 255, 255, 0.72);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(115deg, rgba(19, 119, 238, 0.08), transparent 34%),
    linear-gradient(245deg, rgba(26, 183, 200, 0.07), transparent 30%),
    repeating-linear-gradient(
      90deg,
      rgba(19, 119, 238, 0.028) 0,
      rgba(19, 119, 238, 0.028) 1px,
      transparent 1px,
      transparent 48px
    ),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 42%, #ffffff 100%);
  background-attachment: fixed;
  background-size: 120% 120%, 120% 120%, 48px 48px, auto;
  background-position: 0 0, 100% 0, 0 0, 0 0;
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  animation: page-breathe 18s ease-in-out infinite alternate;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  content: "";
  background:
    linear-gradient(120deg, transparent 12%, rgba(255, 255, 255, 0.8) 18%, transparent 24%),
    linear-gradient(120deg, transparent 56%, rgba(19, 119, 238, 0.1) 58%, transparent 63%);
  opacity: 0.72;
  transform: translateX(-8%);
  animation: ambient-lines 14s ease-in-out infinite alternate;
  pointer-events: none;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 72px;
  margin: 0;
  padding: 0 max(20px, calc((100% - 1180px) / 2));
  background: rgba(255, 255, 255, 0.74);
  border-bottom: 1px solid rgba(229, 234, 242, 0.72);
  box-shadow: 0 12px 34px rgba(16, 24, 39, 0.04);
  backdrop-filter: blur(22px) saturate(145%);
  animation: slide-down 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand,
.site-nav,
.trust-row,
.hero-actions,
.download-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 24px rgba(19, 119, 238, 0.22);
  transition:
    transform 240ms ease,
    box-shadow 240ms ease;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand:hover .brand-mark {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 16px 30px rgba(19, 119, 238, 0.28);
}

.site-nav {
  gap: 8px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #475467;
  font-size: 15px;
  font-weight: 650;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.site-nav a:hover {
  background: rgba(238, 246, 255, 0.92);
  color: var(--blue);
  transform: translateY(-1px);
}

.section-band {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.82fr);
  align-items: center;
  gap: clamp(32px, 5vw, 84px);
  min-height: min(640px, calc(100svh - 128px));
  padding: clamp(34px, 5vw, 56px) 0 28px;
}

.hero::before {
  position: absolute;
  top: 8%;
  right: 27%;
  width: min(420px, 38vw);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(19, 119, 238, 0.34), transparent);
  transform: rotate(-16deg);
  animation: line-glide 7s ease-in-out infinite;
}

.hero::after {
  position: absolute;
  right: 16%;
  bottom: 6%;
  width: min(520px, 42vw);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(26, 183, 200, 0.4), transparent);
  transform: rotate(12deg);
  animation: line-glide 8s ease-in-out infinite reverse;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 660px;
}

.hero-copy > * {
  animation: rise-in 760ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-copy > :nth-child(2) {
  animation-delay: 90ms;
}

.hero-copy > :nth-child(3) {
  animation-delay: 160ms;
}

.hero-copy > :nth-child(4) {
  animation-delay: 230ms;
}

.hero-copy > :nth-child(5) {
  animation-delay: 300ms;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

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

h1 {
  max-width: 650px;
  margin-bottom: 24px;
  background: linear-gradient(115deg, #101827 0%, #101827 46%, #0b63ce 72%, #1ab7c8 100%);
  background-clip: text;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: 0;
  -webkit-text-fill-color: transparent;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.25;
}

.hero-lead,
.download-panel p,
.feature-card p {
  color: var(--muted);
  line-height: 1.8;
}

.hero-lead {
  max-width: 590px;
  margin-bottom: 34px;
  font-size: 18px;
}

.hero-actions,
.download-actions {
  flex-wrap: wrap;
  gap: 14px;
}

.download-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
  min-height: 62px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 16px;
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.download-button::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.28) 45%, transparent 70%);
  opacity: 0;
  transform: translateX(-120%);
  pointer-events: none;
}

.download-button:hover {
  transform: translateY(-2px);
}

.download-button.primary::after {
  animation: button-shine 4.8s ease-in-out infinite;
}

.download-button strong,
.download-button small {
  display: block;
}

.download-button strong {
  font-size: 16px;
  line-height: 1.25;
}

.download-button small {
  margin-top: 3px;
  font-size: 12px;
  opacity: 0.76;
}

.download-button.primary {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 42%),
    linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  box-shadow: 0 18px 34px rgba(19, 119, 238, 0.24);
}

.download-button.primary.is-downloading {
  box-shadow: 0 12px 24px rgba(19, 119, 238, 0.18);
}

.download-button.secondary {
  background: var(--surface);
  border-color: var(--line);
  color: #98a2b3;
  box-shadow: 0 16px 32px rgba(16, 24, 39, 0.06);
  cursor: not-allowed;
}

.download-button.secondary:hover {
  transform: none;
}

.download-button.mini-program {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(35, 178, 109, 0.22);
  color: #14532d;
  box-shadow: 0 16px 32px rgba(35, 178, 109, 0.08);
  cursor: default;
}

.download-button.mini-program:hover {
  transform: translateY(-2px);
}

.mini-program .button-icon {
  background: rgba(35, 178, 109, 0.13);
  color: #16a34a;
}

.button-icon {
  display: grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 850;
}

.secondary .button-icon {
  background: #f2f4f7;
  color: #98a2b3;
}

.trust-row {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.trust-row span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  color: #475467;
  font-size: 13px;
  font-weight: 700;
}

.phone-showcase {
  position: relative;
  display: grid;
  justify-items: center;
  min-height: 560px;
  animation: phone-float 6.4s ease-in-out infinite;
}

.phone-frame {
  position: relative;
  width: min(318px, 82vw);
  aspect-ratio: 1170 / 2532;
  overflow: hidden;
  border: 11px solid #111827;
  border-radius: 42px;
  background: #111827;
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(255, 255, 255, 0.7);
  transform: perspective(1100px) rotateY(-5deg) rotateX(2deg);
  transition:
    transform 420ms ease,
    box-shadow 420ms ease;
}

.phone-frame::before {
  content: none;
}

.phone-frame::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  border-radius: 31px;
  background: linear-gradient(120deg, transparent 18%, rgba(255, 255, 255, 0.34) 34%, transparent 50%);
  opacity: 0;
  transform: translateX(-125%);
  pointer-events: none;
  animation: screen-sweep 5.8s ease-in-out infinite 900ms;
}

.phone-showcase:hover .phone-frame {
  transform: perspective(1100px) rotateY(-2deg) rotateX(1deg) translateY(-6px);
  box-shadow: 0 34px 90px rgba(16, 24, 39, 0.16);
}

.phone-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 31px;
}

.floating-card {
  position: absolute;
  display: grid;
  gap: 4px;
  width: 170px;
  padding: 16px 18px;
  border: 1px solid rgba(229, 234, 242, 0.82);
  border-left: 3px solid rgba(19, 119, 238, 0.72);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 22px 44px rgba(16, 24, 39, 0.1);
  backdrop-filter: blur(18px) saturate(145%);
  animation: card-drift 5.6s ease-in-out infinite;
}

.floating-card strong {
  font-size: 17px;
}

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

.card-top {
  top: 86px;
  left: 0;
}

.card-bottom {
  right: 0;
  bottom: 110px;
  animation-delay: -2.1s;
}

.features {
  padding: 86px 0 86px;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 34px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 236px;
  padding: 52px 28px 28px;
  border: 1px solid rgba(229, 234, 242, 0.84);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 34px rgba(16, 24, 39, 0.045);
  backdrop-filter: blur(16px);
  transition:
    transform 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease;
}

.feature-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(135deg, rgba(19, 119, 238, 0.08), transparent 42%);
  opacity: 0;
  transition: opacity 260ms ease;
  pointer-events: none;
}

.feature-card:hover {
  border-color: rgba(19, 119, 238, 0.22);
  box-shadow: 0 26px 64px rgba(16, 24, 39, 0.09);
  transform: translateY(-7px);
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-card h3,
.feature-card p {
  position: relative;
  z-index: 1;
}

.feature-icon {
  position: absolute;
  top: 0;
  left: -44px;
  display: block;
  width: 112px;
  height: 112px;
  border-radius: 0 999px 999px 0;
  opacity: 0.32;
  pointer-events: none;
  transition:
    opacity 260ms ease,
    transform 260ms ease;
}

.feature-card:hover .feature-icon {
  opacity: 0.46;
  transform: translateX(8px) scale(1.04);
}

.feature-icon.blue {
  background: linear-gradient(135deg, #cfe5ff, var(--blue));
}

.feature-icon.green {
  background: linear-gradient(135deg, #d8f6e7, var(--green));
}

.feature-icon.amber {
  background: linear-gradient(135deg, #ffe9c7, var(--amber));
}

.feature-icon.rose {
  background: linear-gradient(135deg, #ffe0e7, var(--rose));
}

.download-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  margin-bottom: 72px;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid rgba(201, 223, 248, 0.92);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(239, 248, 255, 0.9)),
    linear-gradient(115deg, transparent 0%, rgba(26, 183, 200, 0.12) 42%, transparent 68%),
    #fff;
  box-shadow:
    0 26px 70px rgba(19, 119, 238, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.download-panel::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--blue), var(--green), var(--amber), var(--blue));
  background-size: 220% 100%;
  animation: accent-run 5.5s linear infinite;
}

.download-panel > * {
  position: relative;
  z-index: 1;
}

.download-panel h2 {
  margin-bottom: 12px;
}

.download-panel p {
  max-width: 620px;
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 82px;
  margin: 0;
  padding: 0 max(20px, calc((100% - 1180px) / 2));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(22px) saturate(145%);
  color: #667085;
  font-size: 14px;
}

.reveal-ready {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-ready.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes page-breathe {
  from {
    background-position: 0 0, 100% 0, 0 0, 0 0;
  }
  to {
    background-position: 7% 4%, 92% 8%, 44px 18px, 0 0;
  }
}

@keyframes ambient-lines {
  from {
    opacity: 0.55;
    transform: translateX(-8%);
  }
  to {
    opacity: 0.82;
    transform: translateX(6%);
  }
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes line-glide {
  0%,
  100% {
    opacity: 0.28;
    transform: translateX(-16px) rotate(-16deg);
  }
  50% {
    opacity: 0.72;
    transform: translateX(18px) rotate(-16deg);
  }
}

@keyframes button-shine {
  0%,
  42% {
    opacity: 0;
    transform: translateX(-120%);
  }
  52% {
    opacity: 1;
  }
  68%,
  100% {
    opacity: 0;
    transform: translateX(120%);
  }
}

@keyframes phone-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes screen-sweep {
  0%,
  46% {
    opacity: 0;
    transform: translateX(-125%);
  }
  56% {
    opacity: 0.9;
  }
  72%,
  100% {
    opacity: 0;
    transform: translateX(125%);
  }
}

@keyframes card-drift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes mobile-phone-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-1deg);
  }
  35% {
    transform: translate3d(-2px, -3px, 0) rotate(-0.4deg);
  }
  70% {
    transform: translate3d(2px, -1px, 0) rotate(-1.6deg);
  }
}

@keyframes mobile-card-left {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  45% {
    transform: translate3d(4px, -12px, 0);
  }
  72% {
    transform: translate3d(-3px, -5px, 0);
  }
}

@keyframes mobile-card-right {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  38% {
    transform: translate3d(-5px, 10px, 0);
  }
  76% {
    transform: translate3d(4px, 2px, 0);
  }
}

@keyframes accent-run {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 220% 50%;
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 34px;
  }

  .hero-copy {
    max-width: none;
  }

  .phone-showcase {
    min-height: 520px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .download-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .section-band {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    min-height: 64px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .site-nav {
    display: none;
  }

  h1 {
    font-size: clamp(36px, 11vw, 48px);
    line-height: 1.08;
  }

  .hero-lead {
    font-size: 16px;
  }

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

  .phone-showcase {
    position: relative;
    right: auto;
    bottom: auto;
    z-index: 1;
    width: 100%;
    min-height: 0;
    padding: 8px 0 2px;
    opacity: 1;
    pointer-events: auto;
    animation: none;
  }

  .phone-frame {
    width: min(268px, 72vw);
    border-width: 9px;
    border-radius: 36px;
    animation: mobile-phone-drift 5.8s ease-in-out infinite;
  }

  .phone-frame img {
    border-radius: 27px;
  }

  .floating-card {
    display: grid;
    width: 132px;
    padding: 11px 12px;
    border-radius: 14px;
    pointer-events: none;
    animation: mobile-card-left 4.9s ease-in-out infinite;
  }

  .floating-card strong {
    font-size: 14px;
  }

  .floating-card span {
    font-size: 11px;
  }

  .card-top {
    top: 52px;
    left: 0;
  }

  .card-bottom {
    right: 0;
    bottom: 74px;
    animation-name: mobile-card-right;
    animation-duration: 6.2s;
    animation-delay: -1.8s;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
  }

  .features {
    padding: 52px 0 58px;
  }

  .download-panel {
    margin-bottom: 42px;
    border-radius: 22px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 18px 14px 28px;
  }
}

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

  .reveal-ready {
    opacity: 1;
    transform: none;
  }
}
