/* ============================================================
   Xing De Jiu — Scandinavian Clean Design System
   Guangzhou Xing De Jiu Network Technology Co., Ltd.
   ============================================================ */

/* --- RESET -------------------------------------------------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1A1A1A;
  background-color: #FAFAFA;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul, ol {
  list-style: none;
}

address {
  font-style: normal;
}

/* --- CONTAINER --------------------------------------------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- TYPOGRAPHY -------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: #1A1A1A;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); }

p {
  color: #666666;
}

/* --- HEADER ------------------------------------------------ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #FFFFFF;
  border-bottom: 1px solid #F0F0F0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: #1A1A1A;
}

.header__logo-icon {
  flex-shrink: 0;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #666666;
  transition: color 0.2s;
}

.header__nav-link:hover {
  color: #1A1A1A;
}

.header__menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.header__menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #1A1A1A;
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile nav active state */
.header__menu-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.header__menu-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- BUTTONS ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  text-align: center;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background-color: #93C5FD;
  color: #1A1A1A;
  border-color: #93C5FD;
}

.btn--primary:hover {
  background-color: #7BB5F0;
  border-color: #7BB5F0;
}

.btn--secondary {
  background-color: transparent;
  color: #666666;
  border-color: #E0E0E0;
}

.btn--secondary:hover {
  border-color: #1A1A1A;
  color: #1A1A1A;
}

.btn--light {
  background-color: #FFFFFF;
  color: #1A1A1A;
  border-color: #FFFFFF;
}

.btn--light:hover {
  background-color: #F0F0F0;
  border-color: #F0F0F0;
}

.btn--outline-light {
  background-color: transparent;
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.btn--outline-light:hover {
  background-color: #FFFFFF;
  color: #1A1A1A;
}

/* --- SECTION HEADINGS ------------------------------------- */
.section-heading {
  text-align: center;
  margin-bottom: 56px;
}

.section-heading--left {
  text-align: left;
  margin-bottom: 32px;
}

.section-heading__title {
  margin-bottom: 12px;
}

.section-heading__subtitle {
  font-size: 1.125rem;
  color: #999999;
  max-width: 600px;
  margin: 0 auto;
}

.section-heading--left .section-heading__subtitle {
  margin: 0;
}

/* --- HERO -------------------------------------------------- */
.hero {
  padding: 120px 0 100px;
  background-color: #FFFFFF;
  text-align: center;
}

.hero__inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero__heading {
  font-weight: 800;
  margin-bottom: 24px;
  color: #1A1A1A;
}

.hero__highlight {
  position: relative;
  display: inline-block;
}

.hero__highlight::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 10px;
  background-color: #93C5FD;
  opacity: 0.5;
  border-radius: 4px;
  z-index: -1;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: #666666;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- SERVICES --------------------------------------------- */
.services {
  padding: 100px 0;
  background-color: #FAFAFA;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s, transform 0.3s;
}

.service-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.service-card__bar {
  height: 4px;
}

.service-card--blue .service-card__bar { background-color: #93C5FD; }
.service-card--pink .service-card__bar { background-color: #F9A8D4; }
.service-card--sage .service-card__bar { background-color: #A7C9B0; }

.service-card__body {
  padding: 28px 28px 32px;
}

.service-card__icon {
  margin-bottom: 16px;
}

.service-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #1A1A1A;
}

.service-card__desc {
  font-size: 0.9375rem;
  color: #666666;
  line-height: 1.7;
}

/* --- ABOUT ------------------------------------------------ */
.about {
  padding: 100px 0;
  background-color: #FFFFFF;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about__text {
  font-size: 1rem;
  color: #666666;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about__text:last-of-type {
  margin-bottom: 0;
}

.about__quote {
  background-color: #FDF2F7;
  border-left: 4px solid #F9A8D4;
  border-radius: 0 12px 12px 0;
  padding: 36px 32px;
}

.about__quote blockquote p {
  font-size: 1.125rem;
  font-weight: 500;
  color: #1A1A1A;
  line-height: 1.7;
  margin-bottom: 16px;
}

.about__quote blockquote footer {
  font-size: 0.9375rem;
  color: #999999;
  font-style: normal;
}

/* --- STATS ------------------------------------------------ */
.stats {
  padding: 80px 0;
  background-color: #FAFAFA;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat__number {
  font-size: 3rem;
  font-weight: 800;
  color: #1A1A1A;
  line-height: 1;
  display: inline;
}

.stat__plus,
.stat__percent {
  font-size: 2rem;
  font-weight: 700;
  color: #93C5FD;
  line-height: 1;
}

.stat__percent {
  color: #A7C9B0;
}

.stat__label {
  font-size: 0.9375rem;
  color: #666666;
  margin: 8px 0 12px;
}

.stat__dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.stat__dot--blue { background-color: #93C5FD; }
.stat__dot--pink { background-color: #F9A8D4; }
.stat__dot--sage { background-color: #A7C9B0; }

/* --- PROCESS ---------------------------------------------- */
.process {
  padding: 100px 0;
  background-color: #FFFFFF;
}

.process__steps {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.process-step {
  flex: 1;
  min-width: 180px;
  max-width: 200px;
  text-align: center;
}

.process-step__circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1rem;
  font-weight: 700;
  color: #1A1A1A;
}

.process-step__circle--blue { background-color: #93C5FD; }
.process-step__circle--pink { background-color: #F9A8D4; }
.process-step__circle--sage { background-color: #A7C9B0; }

.process-step__title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1A1A1A;
}

.process-step__desc {
  font-size: 0.875rem;
  color: #666666;
  line-height: 1.6;
}

/* --- TAGS ------------------------------------------------- */
.tags {
  padding: 100px 0;
  background-color: #FAFAFA;
}

.tags__cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.tag {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1A1A1A;
  transition: transform 0.2s;
}

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

.tag--blue { background-color: #DBEAFE; }
.tag--pink { background-color: #FCE7F3; }
.tag--sage { background-color: #E6F0E9; }

/* --- CTA -------------------------------------------------- */
.cta {
  padding: 100px 0;
  background-color: #93C5FD;
}

.cta__inner {
  text-align: center;
}

.cta__heading {
  color: #1A1A1A;
  margin-bottom: 12px;
}

.cta__subtitle {
  font-size: 1.125rem;
  color: #2D2D2D;
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- FOOTER ----------------------------------------------- */
.footer {
  background-color: #2D2D2D;
  color: #FFFFFF;
  padding-top: 64px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  padding-bottom: 48px;
}

.footer__logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  display: inline-block;
  margin-bottom: 16px;
}

.footer__tagline {
  font-size: 0.875rem;
  color: #999999;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer__address {
  font-size: 0.875rem;
  color: #999999;
  line-height: 1.7;
}

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

.footer__col-title {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col a {
  font-size: 0.9375rem;
  color: #999999;
  transition: color 0.2s;
}

.footer__col a:hover {
  color: #FFFFFF;
}

.footer__bottom {
  border-top: 1px solid #404040;
  padding: 24px 0;
}

.footer__bottom p {
  font-size: 0.8125rem;
  color: #999999;
}

/* --- LEGAL PAGES ------------------------------------------ */
.legal {
  padding: 80px 0;
  background-color: #FFFFFF;
}

.legal__inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  align-items: start;
}

.legal__sidebar {
  position: sticky;
  top: 96px;
}

.legal__toc {
  padding: 24px;
  background-color: #FAFAFA;
  border-radius: 12px;
}

.legal__toc-title {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #999999;
  margin-bottom: 16px;
}

.legal__toc ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal__toc a {
  font-size: 0.875rem;
  color: #666666;
  transition: color 0.2s;
  line-height: 1.5;
}

.legal__toc a:hover {
  color: #1A1A1A;
}

.legal__body {
  max-width: 720px;
}

.legal__body h1 {
  margin-bottom: 8px;
}

.legal__update {
  font-size: 0.875rem;
  color: #999999;
  margin-bottom: 48px;
}

.legal__body section {
  margin-bottom: 40px;
}

.legal__body h2 {
  font-size: 1.375rem;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #F0F0F0;
}

.legal__body h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 10px;
  margin-top: 20px;
  color: #1A1A1A;
}

.legal__body p {
  margin-bottom: 14px;
  color: #666666;
  line-height: 1.8;
}

.legal__body ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal__body ul li {
  color: #666666;
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: 6px;
}

.legal__body strong {
  color: #1A1A1A;
}

.legal__contact {
  margin-top: 16px;
}

.legal__contact p {
  margin-bottom: 4px;
}

.legal__contact a {
  color: #93C5FD;
}

.legal__contact a:hover {
  text-decoration: underline;
}

/* --- RESPONSIVE ------------------------------------------- */
@media (max-width: 968px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .legal__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .legal__sidebar {
    position: static;
  }

  .legal__toc {
    padding: 20px;
  }
}

@media (max-width: 640px) {
  .header__menu-btn {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background-color: #FFFFFF;
    border-bottom: 1px solid #F0F0F0;
    padding: 24px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
    z-index: 999;
  }

  .header__nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .header__nav-list {
    flex-direction: column;
    gap: 20px;
  }

  .header__nav-link {
    font-size: 1.0625rem;
  }

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

  .stats__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .stat__number {
    font-size: 2.25rem;
  }

  .process__steps {
    flex-direction: column;
    align-items: center;
  }

  .process-step {
    max-width: 280px;
  }

  .footer__links {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .hero {
    padding: 80px 0 64px;
  }

  .section-heading {
    margin-bottom: 40px;
  }

  .services,
  .about,
  .process,
  .tags,
  .cta {
    padding: 64px 0;
  }
}

@media (max-width: 400px) {
  .footer__links {
    grid-template-columns: 1fr;
  }

  .hero__actions,
  .cta__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn,
  .cta__actions .btn {
    width: 100%;
  }
}
