:root {
  color-scheme: light;
  --page: #f6f8f7;
  --ink: #17232b;
  --muted: #65727a;
  --line: rgba(18, 32, 51, 0.12);
  --brand: #007ebd;
  --brand-bright: #00b8a9;
  --accent: #0f766e;
  --header-h: 72px;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --shift-x: 0px;
  --shift-y: 0px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0) 38%),
    var(--page);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 20;
  transform: translateY(-120%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px 12px;
  color: var(--ink);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  min-height: var(--header-h);
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(246, 248, 247, 0.8);
  border-bottom: 1px solid rgba(18, 32, 51, 0.06);
  backdrop-filter: blur(18px);
}

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

.brand {
  gap: 10px;
  font-size: 17px;
  font-weight: 650;
}

.brand img {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  box-shadow: 0 10px 26px rgba(18, 32, 51, 0.12);
}

.site-nav {
  gap: clamp(14px, 3vw, 28px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 560;
}

.site-nav a {
  position: relative;
  padding-block: 8px;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  grid-template-columns:
    minmax(clamp(18px, 5vw, 80px), 1fr)
    minmax(0, 500px)
    minmax(260px, 600px)
    minmax(clamp(18px, 5vw, 80px), 1fr);
  align-items: center;
  overflow: hidden;
  padding-block: calc(var(--header-h) + 56px) 64px;
}

.hero::before {
  position: absolute;
  inset: calc(var(--header-h) + 12px) clamp(18px, 5vw, 80px) 34px;
  border: 1px solid rgba(18, 32, 51, 0.08);
  border-width: 1px 0;
  content: "";
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  grid-column: 2;
  max-width: 500px;
  animation: rise-in 720ms cubic-bezier(0.2, 0.78, 0.24, 1) both;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 700;
}

h1 {
  max-width: 13em;
  margin: 0;
  font-size: clamp(30px, 3.8vw, 52px);
  font-weight: 720;
  line-height: 1.14;
  letter-spacing: 0;
}

.download {
  width: fit-content;
  max-width: 100%;
  gap: 14px;
  margin-top: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(18, 32, 51, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  padding: 9px 16px 9px 9px;
  box-shadow: 0 18px 60px rgba(18, 32, 51, 0.08);
  backdrop-filter: blur(18px);
  transform: translateZ(0);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.download:hover,
.download:focus-within {
  border-color: rgba(0, 126, 189, 0.35);
  box-shadow: 0 24px 72px rgba(18, 32, 51, 0.12);
  transform: translateY(-2px);
}

.download-qr {
  display: block;
  width: clamp(92px, 9vw, 116px);
  height: clamp(92px, 9vw, 116px);
  border: 1px solid rgba(18, 32, 51, 0.12);
  border-radius: 8px;
  background: #fff;
}

.download-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.download-copy span {
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 680;
  white-space: nowrap;
}

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

.hero-visual {
  position: relative;
  z-index: 1;
  grid-column: 3;
  display: grid;
  min-height: min(54vw, 540px);
  place-items: center;
  perspective: 1200px;
}

.app-icon {
  width: clamp(210px, 30vw, 380px);
  height: auto;
  border-radius: 25%;
  box-shadow:
    0 38px 100px rgba(18, 32, 51, 0.17),
    0 10px 32px rgba(0, 126, 189, 0.14);
  transform:
    translate3d(var(--shift-x), var(--shift-y), 0)
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  animation:
    icon-in 860ms cubic-bezier(0.2, 0.78, 0.24, 1) 120ms both,
    breathe 5600ms ease-in-out 1100ms infinite;
  will-change: transform;
}

.icon-shadow {
  position: absolute;
  width: min(34vw, 380px);
  height: min(8vw, 86px);
  margin-top: min(30vw, 320px);
  background: radial-gradient(
    ellipse at center,
    rgba(18, 32, 51, 0.18),
    rgba(18, 32, 51, 0) 68%
  );
  filter: blur(12px);
  transform: rotate(-4deg);
}

.site-footer {
  display: flex;
  min-height: 72px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  padding: 22px clamp(18px, 4vw, 56px);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--brand);
}

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

@keyframes icon-in {
  from {
    opacity: 0;
    transform: translate3d(28px, 32px, 0) scale(0.94) rotateX(7deg) rotateY(-9deg);
  }
  to {
    opacity: 1;
    transform:
      translate3d(var(--shift-x), var(--shift-y), 0)
      rotateX(var(--tilt-x))
      rotateY(var(--tilt-y));
  }
}

@keyframes breathe {
  0%,
  100% {
    filter: saturate(1);
  }
  50% {
    filter: saturate(1.08);
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 66px;
  }

  .site-header {
    padding-inline: 18px;
  }

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

  .hero {
    grid-template-columns: minmax(18px, 1fr) minmax(0, 640px) minmax(18px, 1fr);
    gap: 36px;
    align-content: center;
    padding-block: calc(var(--header-h) + 42px) 36px;
  }

  .hero-copy,
  .hero-visual {
    grid-column: 2;
  }

  .hero-copy {
    text-align: center;
  }

  h1 {
    max-width: min(100%, 360px);
    margin-inline: auto;
    overflow-wrap: anywhere;
    word-break: break-all;
    font-size: clamp(25px, 6.2vw, 31px);
    line-height: 1.16;
  }

  .download {
    margin-inline: auto;
  }

  .hero-visual {
    min-height: auto;
    order: -1;
  }

  .app-icon {
    width: clamp(170px, 45vw, 236px);
  }

  .icon-shadow {
    width: 62vw;
    height: 64px;
    margin-top: 182px;
  }

}

@media (max-width: 520px) {
  .brand span {
    display: none;
  }

  .hero {
    gap: 24px;
  }

  .download {
    width: 100%;
    max-width: min(100%, 342px);
    justify-content: center;
    padding-right: 12px;
  }

  .site-nav {
    gap: 10px;
    font-size: 12px;
  }

  .hero-copy {
    width: 100%;
    min-width: 0;
  }

  .download-copy span {
    white-space: normal;
  }
}

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