:root {
  --green: #3c6e27;
  --button-green: #1b6401;
  --footer: #303030;
  --content-width: 1600px;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: #000;
  background: #fff;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: #fff;
}

button, a { -webkit-tap-highlight-color: transparent; }

.hero {
  height: 832px;
  background: url("assets/images/background-pc.jpg") center / cover no-repeat;
  overflow: hidden;
}

.hero__inner {
  position: relative;
  width: min(calc(100% - 64px), var(--content-width));
  height: 100%;
  margin: 0 auto;
}

.hero__copy {
  position: absolute;
  z-index: 2;
  top: 107px;
  left: clamp(32px, calc(12.45vw + 52px), 268px);
  width: min(579px, 42vw);
}

.brand-logo {
  display: block;
  width: 301px;
  height: auto;
}

.hero__content { margin-top: 60px; }

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

h1 {
  font-family: "Arial Black", "PingFang SC", sans-serif;
  font-size: 72px;
  line-height: 1.11;
  letter-spacing: -2.2px;
  white-space: nowrap;
}

h1 span { color: var(--green); }

.benefits {
  display: grid;
  gap: 16px;
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
  font-size: 20px;
  font-weight: 500;
  line-height: 30px;
}

.benefits li {
  position: relative;
  padding-left: 42px;
}

.benefits li::before {
  position: absolute;
  top: 1px;
  left: 0;
  width: 28px;
  height: 28px;
  background: url("assets/icons/check.svg") center / contain no-repeat;
  content: "";
}

.download-actions {
  display: flex;
  gap: 20px;
  margin-top: 59px;
}

.store-button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 240px;
    height: 70px;
    gap: 12px;
    padding-left: 21px;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    transition: transform .18s ease, filter .18s ease;
}

.store-button:hover { transform: translateY(-2px); filter: brightness(1.06); }
.store-button:focus-visible { outline: 3px solid #65a34d; outline-offset: 3px; }
.store-button--apple { background: var(--button-green); }
.store-button--android { background: #000; }
.store-button img { width: 46px; height: 46px; }
.store-button span { display: flex; min-width: 115px; flex-direction: column; gap: 2px; }
.store-button small { color: rgba(255,255,255,.6); font-size: 14px; line-height: 20px; }
.store-button strong { font-size: 22px; line-height: 24px; white-space: nowrap; }

.language-switch {
  position: absolute;
  z-index: 4;
  top: 33px;
  right: clamp(120px, 10.5vw, 168px);
  display: flex;
  gap: 4px;
  padding: 6px;
  border-radius: 12px;
  background: #000;
}

.language-switch__button {
  width: 116px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: transparent;
  font: 600 16px/1 "PingFang SC", Arial, sans-serif;
  cursor: pointer;
}

.language-switch__button.is-active { color: #000; background: #fff; }

.hero__phone {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  width: min(792px, 54vw);
  animation: phone-pop-in 900ms cubic-bezier(.2, .85, .3, 1.15) 180ms both;
  transform-origin: 50% 100%;
  will-change: transform, opacity;
}

.hero__phone img { display: block; width: 100%; height: auto; }

@media (min-width: 901px) {
  .hero__copy {
    top: 152px;
    scale: .85;
    transform-origin: left top;
  }

  .hero__phone {
    right: 64px;
    bottom: 48px;
  }

  .hero__phone img {
    scale: .85;
    transform-origin: right bottom;
  }
}

@keyframes phone-pop-in {
  0% {
    opacity: 0;
    transform: translateY(90px) scale(.88);
  }
  65% {
    opacity: 1;
    transform: translateY(-8px) scale(1.015);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.features {
  display: flex;
  min-height: 401px;
  flex-direction: column;
  align-items: center;
  padding: 40px max(32px, calc((100vw - var(--content-width)) / 2)) 60px;
  background: #fff;
}

.section-title { display: flex; align-items: center; gap: 60px; }
.section-title span { width: 56px; height: 3px; background: var(--green); }
.section-title h2 { font: 900 38px/55px "Arial Black", "PingFang SC", sans-serif; }

.feature-grid {
  display: grid;
  width: 100%;
  max-width: 1273px;
  grid-template-columns: repeat(4, 1fr);
  gap: 100px;
  margin-top: 60px;
}

.feature-card { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.feature-card h3 { font-size: 22px; line-height: 32px; white-space: nowrap; }

.feature-icon {
  width: 130px;
  height: 130px;
  overflow: hidden;
  border-radius: 18px;
  background-image: url("assets/images/features-sprite.png");
  background-repeat: no-repeat;
  background-size: 670px 223.2px;
  background-position-y: -46.1px;
}

.feature-icon--realtime { background-position-x: -39.9px; }
.feature-icon--fixture { background-position-x: -193.5px; }
.feature-icon--analysis { background-position-x: -347px; }
.feature-icon--statistics { background-position-x: -503.6px; }

.site-footer {
  display: flex;
  min-height: 167px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px 20px;
  color: rgba(255,255,255,.5);
  background: var(--footer);
  text-align: center;
  font-size: 13px;
}

.site-footer.is-hidden,
.site-footer[hidden] {
  display: none !important;
}

.site-footer nav { display: flex; gap: 20px; margin-bottom: 10px; }
.site-footer a { color: #fff; font-size: 18px; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

@media (max-width: 1450px) and (min-width: 901px) {
  .hero__phone { right: 16px; width: 58vw; }
  .language-switch { right: 8vw; }
  .feature-grid { gap: 5vw; }
}

@media (max-width: 900px) {
  .hero {
    height: 823px;
    background-image: url("assets/images/background-h5.png");
    background-position: center top;
    background-size: 100% auto;
  }

  .hero__inner { width: min(100%, 393px); }

  .language-switch {
    top: 20px;
    right: 14px;
    gap: 4px;
    padding: 4px;
    border-radius: 10px;
  }

  .language-switch__button { width: 71px; height: 26px; border-radius: 6px; font-size: 11px; }

  .hero__copy {
    top: 82px;
    left: 0;
    width: 100%;
  }

  .brand-logo { width: 140px; margin: 0 auto; }
  .hero__content { margin-top: 24px; }

  h1 {
    font-size: 32px;
    line-height: 46px;
    letter-spacing: -.4px;
    text-align: center;
    white-space: normal;
  }

  .benefits {
    width: calc(100% - 40px);
    gap: 16px;
    margin: 24px auto 0;
    font-size: 14px;
    line-height: 18px;
  }

  .benefits li { min-height: 20px; padding-left: 28px; }
  .benefits li::before { top: 0; width: 20px; height: 20px; }

  .download-actions { gap: 12px; margin: 24px 16px 0; }
  .store-button { width: calc(50% - 6px); height: 55px; gap: 12px; padding-left: 14px; border-radius: 10px; }
  .store-button img { width: 26px; height: 26px; }
  .store-button span { min-width: 0; gap: 1px; }
  .store-button small { font-size: 12px; line-height: 17px; }
  .store-button strong { font-size: 16px; line-height: 20px; }

  .hero__phone {
    right: 0;
    bottom: 0;
    width: 100%;
  }

  .features { min-height: 346px; padding: 20px 20px 24px; }
  .section-title { gap: 24px; }
  .section-title span { width: 56px; height: 1px; }
  .section-title h2 { font-size: 20px; line-height: 29px; }

  .feature-grid {
    max-width: 320px;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 40px;
    row-gap: 40px;
    margin-top: 24px;
  }

  .feature-card { width: 140px; gap: 14px; }
  .feature-card h3 { font-size: 14px; line-height: 20px; }
  .feature-icon { width: 80px; height: 80px; border-radius: 12px; background-size: 412.3px 137.3px; background-position-y: -28.4px; }
  .feature-icon--realtime { background-position-x: -24.6px; }
  .feature-icon--fixture { background-position-x: -119.1px; }
  .feature-icon--analysis { background-position-x: -213.5px; }
  .feature-icon--statistics { background-position-x: -309.9px; }

  .site-footer { min-height: 168px; gap: 8px; padding: 24px; font-size: 12px; line-height: normal; }
  .site-footer nav { margin-bottom: 10px; }
  .site-footer a { font-size: 16px; }
}

@media (max-width: 360px) {
  .features { padding-left: 12px; padding-right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
