:root {
  --bg: #ffffff;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --text: #073044;
  --muted: #64788c;
  --line: rgba(119, 151, 166, 0.18);
  --teal: #28d3d1;
  --teal-dark: #18b8b6;
  --violet: #775566;
  --secondary: #5cbdd9;
  --role-pink: #ff77a9;
  --teal-soft: #c9f6f5;
  --secondary-soft: #dff5fb;
  --shadow: 0 24px 70px rgba(38, 84, 105, 0.12);
  --radius: 22px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  overflow-x: hidden;
  background:
    linear-gradient(135deg, rgba(201, 246, 245, 0.7), rgba(255, 255, 255, 0) 36%),
    linear-gradient(45deg, rgba(223, 245, 251, 0.68), rgba(255, 255, 255, 0) 42%),
    var(--bg);
}

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

.site-header,
main {
  width: min(1440px, calc(100% - 96px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  padding: 10px 0;
}

.site-header::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: -1;
  width: 100vw;
  border-bottom: 1px solid var(--line);
  content: "";
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  transform: translateX(-50%);
  -webkit-backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  font-size: 1.55rem;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(40, 211, 209, 0.24);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 52px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 760;
}

.site-nav a {
  position: relative;
  padding: 10px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 999px;
  content: "";
  opacity: 0;
  background: var(--teal);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--teal-dark);
  outline: none;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
  opacity: 1;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
}

.menu-button span {
  display: block;
  width: 24px;
  height: 3px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--text);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(560px, 0.95fr) minmax(520px, 1fr);
  gap: 32px;
  align-items: center;
  min-height: 520px;
  padding: 66px 0 42px;
}

.hero::before {
  position: absolute;
  right: -48px;
  bottom: -32px;
  left: -48px;
  z-index: -1;
  height: 270px;
  content: "";
  background: linear-gradient(180deg, rgba(231, 250, 248, 0), rgba(217, 250, 244, 0.72));
  clip-path: polygon(0 28%, 16% 18%, 31% 32%, 46% 16%, 64% 30%, 82% 18%, 100% 28%, 100% 100%, 0 100%);
}

.hero-copy {
  min-width: 0;
  padding-left: 64px;
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 28px;
  font-size: 3.95rem;
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: 0;
}

.mobile-title-break {
  display: none;
}

.hero p {
  max-width: 720px;
  margin: 0 0 36px;
  color: var(--muted);
  font-size: 1.45rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  min-height: 54px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 850;
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(180deg, #28d3d1, #18b8b6);
  box-shadow: 0 16px 28px rgba(40, 211, 209, 0.22);
}

.button-secondary {
  color: var(--teal-dark);
  border-color: rgba(40, 211, 209, 0.68);
  background: rgba(255, 255, 255, 0.82);
}

.hero-visual {
  position: relative;
  min-height: 410px;
}

.scene {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(760px, 100%);
  height: 390px;
  overflow: hidden;
  border-radius: 38px;
  background: url("./assets/homepage-background.jpg") center / cover no-repeat;
}

.feature-section {
  padding: 18px 64px 28px;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.feature-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  min-height: 112px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 22px 52px rgba(54, 97, 118, 0.08);
}

.feature-card h2,
.feature-card p,
.role-copy h3,
.role-copy p,
.download-section h2,
.download-section p {
  margin: 0;
}

.feature-card h2 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.feature-card p,
.role-copy p,
.download-section p {
  color: var(--muted);
  line-height: 1.7;
}

.feature-icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--teal);
  border-radius: 50%;
}

.feature-icon {
  width: 64px;
  height: 64px;
}

.feature-icon::before,
.feature-icon::after {
  position: absolute;
  content: "";
}

.feature-icon::before {
  width: 30px;
  height: 30px;
  background: currentColor;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.feature-icon::after {
  display: none;
}

.feature-icon-question {
  color: var(--teal);
  background: rgba(40, 211, 209, 0.14);
}

.feature-icon-question::before {
  mask-image: url("./assets/icons/message-circle-question.svg");
  -webkit-mask-image: url("./assets/icons/message-circle-question.svg");
}

.feature-icon-match {
  color: var(--role-pink);
  background: rgba(255, 119, 169, 0.1);
}

.feature-icon-match::before {
  mask-image: url("./assets/icons/users-round.svg");
  -webkit-mask-image: url("./assets/icons/users-round.svg");
}

.feature-icon-checkin {
  color: var(--secondary);
  background: rgba(92, 189, 217, 0.14);
}

.feature-icon-checkin::before {
  mask-image: url("./assets/icons/calendar-check.svg");
  -webkit-mask-image: url("./assets/icons/calendar-check.svg");
}

.role-section {
  padding: 18px 64px 28px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 18px;
}

.section-title h2 {
  margin: 0;
  font-size: 1.9rem;
}

.section-title span {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--teal);
  transform: rotate(45deg);
}

.role-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 auto;
}

.role-card {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 78px;
  gap: 14px;
  align-items: center;
  min-height: 118px;
  padding: 14px 12px 14px 16px;
  overflow: hidden;
  border: 1px solid rgba(158, 158, 158, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.06);
}

.role-card:hover {
  border-color: rgba(40, 211, 209, 0.34);
}

.role-mark {
  position: relative;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
}

.role-mark-primary {
  color: var(--teal);
  background: rgba(40, 211, 209, 0.08);
}

.role-mark-secondary {
  color: var(--role-pink);
  background: rgba(255, 119, 169, 0.1);
}

.role-mark-mixed {
  color: var(--secondary);
  background: rgba(92, 189, 217, 0.1);
}

.role-mark-mixed::before {
  content: none;
}

.role-mark:not(.role-mark-mixed) {
  font-size: 1.65rem;
}

.role-mark-mixed {
  font-size: 1.25rem;
}

.role-copy {
  min-width: 0;
}

.role-copy h3 {
  margin-bottom: 6px;
  color: #071a1a;
  font-size: 1.15rem;
  font-weight: 800;
}

.role-copy p {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
}

.role-card img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  justify-self: end;
}

.download-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: center;
  min-height: 112px;
  padding: 28px 36px 28px 170px;
  margin: 18px 0 48px;
  overflow: hidden;
  border-radius: 22px;
  background:
    linear-gradient(120deg, rgba(201, 246, 245, 0.86), rgba(255, 255, 255, 0.7) 54%, rgba(223, 245, 251, 0.76)),
    #ffffff;
  box-shadow: 0 24px 60px rgba(54, 97, 118, 0.1);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: min(1440px, calc(100% - 96px));
  margin: 0 auto;
  padding: 0 0 34px;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer p {
  margin: 0;
}

.filing-links,
.legal-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-contact-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  background: currentColor;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.footer-link-service {
  color: #07c160;
}

.footer-link-qq {
  color: #1677ff;
}

.filing-links a:hover,
.filing-links a:focus-visible,
.legal-links a:hover,
.legal-links a:focus-visible,
.footer-link:hover,
.footer-link:focus-visible {
  color: var(--teal-dark);
  outline: none;
}

.seo-section {
  padding: 0 64px 54px;
}

.seo-content {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 34px;
  align-items: start;
}

.seo-copy {
  padding-top: 4px;
}

.seo-copy p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
}

.seo-copy p:last-child {
  margin-bottom: 0;
}

.seo-faq {
  display: grid;
  gap: 14px;
  margin: 0;
}

.seo-faq div {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.seo-faq dt {
  margin-bottom: 6px;
  color: var(--text);
  font-weight: 850;
}

.seo-faq dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.download-section::before,
.download-section::after {
  position: absolute;
  bottom: -42px;
  width: 120px;
  height: 170px;
  border-radius: 80px 80px 0 0;
  content: "";
  opacity: 0.24;
  background: var(--teal);
}

.download-section::before {
  left: 34px;
  transform: rotate(26deg);
}

.download-section::after {
  right: 36px;
  background: var(--secondary);
  transform: rotate(-28deg);
}

.download-section h2 {
  margin-bottom: 8px;
  font-size: 1.9rem;
}

.download-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(7, 48, 68, 0.12);
  border-radius: 12px;
  color: var(--text);
  font-weight: 850;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 26px rgba(54, 97, 118, 0.08);
}

.download-link:hover,
.download-link:focus-visible {
  color: var(--teal-dark);
  border-color: rgba(40, 211, 209, 0.34);
  outline: none;
}

.download-link.is-disabled {
  color: #92a4b5;
  cursor: not-allowed;
  box-shadow: none;
}

.download-copy {
  display: grid;
  gap: 2px;
  line-height: 1.2;
}

.download-note {
  font-size: 0.78rem;
  font-weight: 700;
}

.download-icon {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  background: currentColor;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.icon-android {
  mask-image: url("./assets/icons/android.svg");
  -webkit-mask-image: url("./assets/icons/android.svg");
}

.icon-apple {
  mask-image: url("./assets/icons/apple.svg");
  -webkit-mask-image: url("./assets/icons/apple.svg");
}

.icon-harmony {
  mask-image: url("./assets/icons/harmony.svg");
  -webkit-mask-image: url("./assets/icons/harmony.svg");
}

.icon-web {
  mask-image: url("./assets/icons/web.svg");
  -webkit-mask-image: url("./assets/icons/web.svg");
}

.icon-wechat {
  mask-image: url("./assets/icons/wechat.svg");
  -webkit-mask-image: url("./assets/icons/wechat.svg");
}

.icon-mail {
  mask-image: url("./assets/icons/mail.svg");
  -webkit-mask-image: url("./assets/icons/mail.svg");
}

.icon-qq {
  mask-image: url("./assets/icons/qq.svg");
  -webkit-mask-image: url("./assets/icons/qq.svg");
}

@media (max-width: 1120px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 48px, 1440px);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: auto;
  }

  .hero-copy {
    padding-left: 0;
  }

  .hero h1 {
    max-width: 760px;
  }

  .hero-visual {
    min-height: 430px;
  }

  .feature-section,
  .role-section,
  .seo-section {
    padding-inline: 0;
  }
}

@media (max-width: 860px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 32px, 1440px);
  }

  .site-header {
    min-height: 72px;
  }

  .brand {
    font-size: 1.35rem;
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    min-height: 44px;
    padding: 12px;
  }

  .site-nav a::after {
    display: none;
  }

  .hero {
    padding: 44px 0 24px;
  }

  .hero h1 {
    font-size: 3.2rem;
  }

  .hero p {
    font-size: 1.15rem;
  }

  .feature-strip {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .role-options {
    grid-template-columns: 1fr;
    max-width: 720px;
  }

  .role-card {
    grid-template-columns: 56px minmax(0, 1fr) 92px;
  }

  .role-card img {
    width: 88px;
    height: 88px;
  }

  .download-section {
    grid-template-columns: 1fr;
    padding: 28px;
    text-align: center;
  }

  .seo-content {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .site-footer {
    flex-direction: column;
    gap: 8px;
    padding-bottom: 28px;
    text-align: center;
  }

  .download-actions {
    justify-self: center;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 24px, 1440px);
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .hero {
    display: grid;
    grid-template-areas:
      "visual"
      "subtitle"
      "actions";
    gap: 18px;
    padding-top: 24px;
  }

  .hero::before {
    right: 0;
    left: 0;
  }

  .hero h1 {
    grid-area: visual;
    align-self: start;
    justify-self: start;
    z-index: 2;
    max-width: 330px;
    margin: 16px 0 0 18px;
    color: var(--text);
    font-size: 2.6rem;
    line-height: 1.22;
    text-shadow: 0 8px 26px rgba(255, 255, 255, 0.72);
  }

  .mobile-title-break {
    display: block;
  }

  .hero p {
    grid-area: subtitle;
    max-width: 360px;
    margin: 0;
    font-size: 1.1rem;
  }

  .hero-actions {
    grid-area: actions;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-width: 360px;
  }

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

  .hero-actions .button {
    padding-inline: 12px;
  }

  .download-actions {
    width: 100%;
  }

  .download-link {
    width: 100%;
  }

  .hero-visual {
    grid-area: visual;
    position: relative;
    top: auto;
    right: auto;
    z-index: 0;
    width: 100%;
    min-height: 320px;
    margin-top: 0;
    overflow: hidden;
    opacity: 1;
    pointer-events: none;
  }

  .hero-copy {
    display: contents;
  }

  .scene {
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
  }

  .feature-strip {
    padding-top: 18px;
  }

  .feature-card {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 18px;
    min-height: 104px;
    padding: 20px;
  }

  .feature-icon {
    width: 56px;
    height: 56px;
  }

  .section-title {
    margin-top: 12px;
  }

  .section-title h2,
  .download-section h2 {
    font-size: 1.6rem;
  }

  .download-section {
    margin-bottom: 32px;
  }

  .seo-section {
    padding-bottom: 38px;
  }

  .seo-faq div {
    padding: 16px;
  }

  .filing-links,
  .legal-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-contact-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}
