/* Loco Pay 官网：以 1920 设计稿为基准，用弹性布局适配不同浏览器宽度 */

:root {
  --blue: #1b69fd;
  --ink: #1a191e;
  --title: #212326;
  --muted: #797979;
  --body: rgba(0, 0, 0, 0.6);
  --footer: #263238;
  --header-h: 96px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Poppins, "PingFang SC", "Noto Sans SC", sans-serif;
}

img {
  max-width: none;
}

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

button,
.lang-toggle {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.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;
}

/* 顶栏：宽屏三列，窄屏收成菜单 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
  padding: 12px clamp(16px, 5.4vw, 103px);
  background: #fff;
}

.logo {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: clamp(8px, 1vw, 14px);
}

.logo-mark img {
  display: block;
  width: clamp(36px, 3.4vw, 57.5px);
  height: auto;
}

.logo-word {
  display: flex;
  align-items: flex-start;
  gap: clamp(6px, 0.6vw, 10px);
}

.logo-word img {
  display: block;
  height: clamp(14px, 1.35vw, 22px);
  width: auto;
}

.logo-word img:last-child {
  margin-top: 6px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1vw, 16px);
}

.nav a {
  padding: 8px 12px;
  border-radius: 6px;
  font-family: Inter, Poppins, sans-serif;
  font-weight: 700;
  font-size: clamp(16px, 1.45vw, 28px);
  line-height: 1.7;
  color: var(--ink);
}

.nav a.is-active {
  color: var(--blue);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--blue);
}

.lang {
  justify-self: end;
  position: relative;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  padding: 8px 8px 8px 12px;
  border-radius: 6px;
  font-family: Inter, Poppins, sans-serif;
  font-weight: 500;
  font-size: clamp(16px, 1.45vw, 28px);
  line-height: 1.7;
}

.lang-toggle img {
  width: clamp(24px, 2vw, 40px);
  height: auto;
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 140px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(26, 25, 30, 0.12);
}

.lang-menu[hidden] {
  display: none;
}

.lang-menu button {
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 600;
  color: var(--blue);
}

.nav-toggle {
  display: none;
  justify-self: end;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 8px;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
}

.nav-toggle span::before {
  top: -7px;
}

.nav-toggle span::after {
  top: 7px;
}

/* 首屏 */
.hero {
  position: relative;
  min-height: clamp(460px, 46vw, 820px);
  padding: clamp(28px, 5vw, 96px) clamp(16px, 6vw, 80px) clamp(36px, 6vw, 88px);
  text-align: center;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 1175px;
  margin: 0 auto;
}

.hero h1 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(36px, 6.25vw, 120px);
  line-height: 1.297;
  color: var(--title);
  text-transform: uppercase;
}

.hero-lead {
  max-width: 837px;
  margin: clamp(16px, 2vw, 28px) auto 0;
  font-weight: 400;
  font-size: clamp(16px, 1.5vw, 28px);
  line-height: 1.6;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 204px;
  margin-top: clamp(20px, 2.4vw, 40px);
  padding: 16px 38px;
  border-radius: 89px;
  background: var(--blue);
  color: #fff;
  font-family: Inter, Poppins, sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.297;
}

.btn:hover,
.btn:focus-visible {
  background: #0f57e4;
}

.deco {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  display: block;
  height: auto;
}

.deco-pattern {
  left: 2%;
  top: 22%;
  width: clamp(72px, 8.8vw, 169px);
  transform: rotate(180deg);
}

.deco-ufo {
  left: 10%;
  bottom: 6%;
  width: clamp(72px, 10.7vw, 206px);
}

.deco-spark {
  right: 24%;
  bottom: 10%;
  width: clamp(48px, 7vw, 133px);
}

.deco-bank {
  right: 7%;
  bottom: 0;
}

.deco-bitcoin {
  right: 6%;
  top: 0;
  /* width: clamp(72px, 9vw, 172px); */
  /* transform: rotate(30deg); */
}

/* 手机样机：按 1100×1020 舞台等比缩放 */
.showcase {
  position: relative;
  padding-bottom: clamp(8px, 2vw, 24px);
}

.showcase-gradient {
  position: absolute;
  left: 0;
  right: 0;
  top: 34%;
  height: 70%;
  background: linear-gradient(114.31deg, #a1fbff 15.683%, #ccd0ff 47.809%, #ffcce0 110.63%);
  z-index: 0;
}

.phones {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 24px));
  margin: 0 auto;
  aspect-ratio: 1100 / 1020;
  container-type: inline-size;
}

.phones {
  overflow: hidden;
}

.phones-stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 1100px;
  height: 1020px;
  transform-origin: top left;
}

.ly {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ly > img {
  display: block;
  flex: none;
  transform-origin: center;
}

.glow {
  position: relative;
  flex: none;
}

.glow img {
  position: absolute;
  display: block;
}

.screen-l {
  width: 300.915px;
  height: 654.862px;
}

.screen-r {
  width: 387.877px;
  height: 844.111px;
}

/* 图文分区 */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(20px, 3vw, 64px);
}

.feature--image-left {
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
}

.feature-copy {
  padding: clamp(28px, 4vw, 72px) clamp(16px, 2vw, 32px);
}

.feature--image-right .feature-copy {
  padding-left: clamp(20px, 7.8vw, 149px);
}

.feature--image-left .feature-copy {
  padding-right: clamp(20px, 7.8vw, 120px);
}

.feature h2,
.why h2,
.about h1,
.contact-block h2 {
  scroll-margin-top: 120px;
}

.feature h2 {
  margin: 0;
  max-width: 12em;
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 60px);
  line-height: 1.3;
  color: #000;
  text-transform: uppercase;
}

.feature--team h2 {
  font-size: clamp(28px, 3.6vw, 68px);
  max-width: 9em;
}

.feature p {
  max-width: 36em;
  margin: clamp(16px, 2vw, 40px) 0 0;
  font-weight: 400;
  font-size: clamp(16px, 1.35vw, 24px);
  line-height: 1.5;
  color: var(--body);
}

.feature-media {
  position: relative;
  min-height: clamp(240px, 38vw, 740px);
  background: #f3f4f6;
}

.feature-media img {
  display: block;
  width: 100%;
  height: clamp(240px, 38vw, 740px);
  object-fit: cover;
}

/* Why */
.why {
  padding: clamp(56px, 8vw, 140px) clamp(16px, 4vw, 40px) clamp(64px, 7vw, 120px);
}

.why-line {
  max-width: 1400px;
  margin: 0 auto clamp(28px, 5vw, 90px);
}

.why-line img {
  display: block;
  width: 100%;
  height: 1px;
}

.why h2 {
  margin: 0 auto clamp(36px, 6vw, 96px);
  max-width: 960px;
  text-align: center;
  font-weight: 700;
  font-size: clamp(36px, 5vw, 96px);
  line-height: 1.297;
  color: var(--title);
  text-transform: uppercase;
}

.why h2 span {
  color: var(--blue);
}

.why-grid {
  display: grid;
  grid-template-columns: 0.75fr 1fr 0.75fr;
  gap: clamp(12px, 3.1vw, 60px);
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.why-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(340px, 32vw, 604px);
  padding: clamp(22px, 2.6vw, 48px) clamp(18px, 2.2vw, 40px);
  border-radius: 20px;
  overflow: hidden;
  color: #fff;
  background: #16325c;
}

.why-card--center {
  min-height: clamp(420px, 42vw, 808px);
  border-radius: 21px;
}

.why-card .bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-card .shade {
  position: absolute;
  inset: 0;
}

.why-card--fast .shade {
  background: rgba(0, 9, 55, 0.2);
}

.why-card--center .shade {
  background: rgba(10, 124, 255, 0.15);
}

.why-card p,
.why-card h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.why-card p {
  font-weight: 500;
  font-size: clamp(15px, 1.25vw, 24px);
  line-height: 1.6;
  max-width: 16em;
}

.stat {
  display: block;
  font-weight: 500;
  font-size: clamp(28px, 2.4vw, 44px);
  line-height: 1.2;
}

.why-card h3 {
  font-weight: 700;
  font-size: clamp(26px, 2.6vw, 50px);
  line-height: 1.297;
  max-width: 8em;
}

.why-card--center p {
  font-weight: 400;
  font-size: clamp(18px, 2.1vw, 40px);
  line-height: 1.26;
  max-width: 12em;
}

.why-card--center h3 {
  font-size: clamp(36px, 4.2vw, 80px);
}

/* Company */
.about {
  padding: clamp(48px, 8vw, 150px) clamp(16px, 6vw, 80px) 0;
}

.about h1,
.contact-block h2 {
  margin: 0;
  text-align: center;
  font-weight: 700;
  font-size: clamp(40px, 6vw, 96px);
  line-height: 1.1;
  letter-spacing: 0.05em;
  color: var(--ink);
}

.about-lead,
.about-body {
  max-width: 1315px;
  margin: clamp(28px, 4vw, 48px) auto 0;
  font-weight: 500;
  font-size: clamp(16px, 1.4vw, 24px);
  line-height: 1.8;
  color: var(--ink);
}

.about-photo {
  max-width: 1000px;
  margin: clamp(36px, 5vw, 80px) auto 0;
  border-radius: 16px;
  overflow: hidden;
  background: #f8f8f8;
}

.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1000 / 600;
  object-fit: cover;
}

.about-body p {
  margin: 0 0 1.8em;
}

.about-body p:last-child {
  margin-bottom: 0;
}

.contact-block {
  padding: clamp(72px, 10vw, 158px) clamp(16px, 6vw, 80px) clamp(72px, 9vw, 140px);
}

.contact-block p {
  max-width: 1588px;
  margin: clamp(28px, 4vw, 44px) auto 0;
  text-align: center;
  font-size: clamp(18px, 2.2vw, 38px);
  line-height: 1.51;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.contact-block p span {
  font-weight: 400;
}

/* 页脚 */
.site-footer {
  position: relative;
  background: #263238;
  color: #fff;
  padding-bottom: clamp(36px, 5vw, 72px);
}

.footer-bg {
  display: block;
  width: min(1800px, calc(100% - clamp(32px, 7vw, 130px)));
  height: 1px;
  margin: 4px auto 0;
  background: rgba(224, 224, 224, 0.55);
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 1fr) minmax(180px, 0.7fr);
  gap: clamp(28px, 4vw, 72px);
  max-width: 1700px;
  margin: 0 auto;
  padding: clamp(56px, 10vw, 180px) clamp(20px, 8.5vw, 164px) clamp(28px, 4vw, 56px);
}

.footer-brand {
  align-self: end;
  padding-bottom: clamp(8px, 2vw, 28px);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.footer-logo .logo-mark img {
  width: 76px;
}

.footer-logo .logo-word img {
  height: 29px;
}

.footer-logo .logo-word img:last-child {
  margin-top: 8px;
}

.footer-brand p {
  margin: 14px 0 0;
  max-width: 430px;
  font-weight: 500;
  font-size: clamp(14px, 1.2vw, 22px);
  line-height: 1.6;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.8);
}

.footer-col h2 {
  margin: 0 0 clamp(16px, 2vw, 28px);
  font-weight: 700;
  font-size: clamp(28px, 2.4vw, 46px);
  line-height: 1.4;
}

.footer-col p,
.footer-col a {
  display: block;
  margin: 0 0 18px;
  font-weight: 500;
  font-size: clamp(16px, 1.25vw, 24px);
  line-height: 1.6;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.8);
}

.footer-col strong {
  display: block;
  font-weight: 600;
  color: #fff;
}

.footer-col a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .deco-spark {
    display: none;
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav,
  .lang {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .site-header.is-open {
    align-items: start;
  }

  .site-header.is-open .nav,
  .site-header.is-open .lang {
    display: flex;
    grid-column: 1 / -1;
  }

  .site-header.is-open .nav {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 8px;
  }

  .site-header.is-open .lang {
    justify-self: start;
    padding: 0 0 12px;
  }

  .lang-menu {
    left: 0;
    right: auto;
  }

  .deco-pattern,
  .deco-ufo,
  .deco-bank,
  .deco-bitcoin {
    opacity: 0.95;
  }

  .deco-ufo {
    left: 0;
    bottom: 0;
  }

  .deco-bank {
    right: 0;
  }

  .deco-bitcoin {
    right: 0;
    top: 8px;
  }
}

@media (max-width: 800px) {
  .feature,
  .feature--image-left {
    grid-template-columns: 1fr;
  }

  .feature--image-left .feature-media {
    order: -1;
  }

  .feature-copy,
  .feature--image-right .feature-copy,
  .feature--image-left .feature-copy {
    padding: 28px 20px 8px;
  }

  .feature--image-left .feature-copy {
    padding-bottom: 36px;
  }

  .why-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .why-card,
  .why-card--center {
    min-height: 420px;
  }

  .footer-brand {
    align-self: start;
    order: 3;
  }

  .footer-logo .logo-mark img {
    width: 56px;
  }

  .footer-logo .logo-word img {
    height: 22px;
  }
}

@media (max-width: 800px) {
  .deco {
    display: none;
  }

  .hero {
    min-height: 0;
    padding-top: 24px;
  }

  .btn {
    min-width: 0;
    width: min(100%, 240px);
  }
}
