:root {
  color-scheme: light;
  --ink: #13201c;
  --muted: #5a6a64;
  --soft: #eef4f1;
  --line: #dce6e2;
  --panel: #ffffff;
  --accent: #0f8f7a;
  --accent-strong: #0a6558;
  --gold: #d69432;
  --coral: #d65f4c;
  --shadow: 0 24px 70px rgba(13, 36, 31, 0.14);
  --motion: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: #fbfdfc;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  color: #ffffff;
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.site-header[data-elevated="true"] {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 36px rgba(15, 47, 39, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand:hover .brand-mark {
  transform: translateY(-2px) scale(1.03);
}

.brand-mark {
  display: block;
  width: 62px;
  height: 62px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  object-fit: contain;
  padding: 2px;
  transition: transform 420ms var(--motion);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: currentColor;
  font-size: 12px;
  opacity: 0.72;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  font-size: 15px;
}

.nav-links a {
  position: relative;
  opacity: 0.82;
  transition: opacity 180ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--motion);
}

.nav-links a:hover {
  opacity: 1;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  width: 104px;
  height: 38px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: currentColor;
  cursor: pointer;
}

.site-header[data-elevated="true"] .lang-toggle {
  border-color: var(--line);
  background: var(--soft);
}

.lang-toggle span {
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  opacity: 0.62;
}

[data-current-lang="zh"] [data-lang-option="zh"],
[data-current-lang="en"] [data-lang-option="en"],
[data-current-lang="it"] [data-lang-option="it"] {
  background: #ffffff;
  color: var(--accent-strong);
  opacity: 1;
  box-shadow: 0 8px 22px rgba(13, 36, 31, 0.12);
}

.header-cta,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 750;
  white-space: nowrap;
  transition:
    transform 260ms var(--motion),
    box-shadow 260ms var(--motion),
    border-color 260ms ease,
    background 260ms ease;
}

.header-cta,
.primary-button {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 143, 122, 0.28);
}

.header-cta:hover,
.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(15, 143, 122, 0.34);
}

.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.54);
  color: #ffffff;
}

.secondary-button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  overflow: hidden;
  color: #ffffff;
}

.hero-image,
.hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  transform: translate3d(0, calc(var(--scroll-y, 0) * 0.05px), 0) scale(1.04);
  animation: slowDrift 18s ease-in-out infinite alternate;
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(5, 18, 17, 0.88), rgba(5, 18, 17, 0.58) 44%, rgba(5, 18, 17, 0.12)),
    linear-gradient(0deg, rgba(5, 18, 17, 0.66), transparent 44%);
}

.hero-content {
  position: relative;
  z-index: 1;
  align-self: center;
  width: min(820px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 96px);
  padding-top: 78px;
  animation: heroRise 900ms var(--motion) 120ms both;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(42px, 5.4vw, 64px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2.2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 620px;
  margin: 48px 0 0;
}

.hero-metrics div {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  transition:
    transform 280ms var(--motion),
    background 280ms ease,
    border-color 280ms ease;
}

.hero-metrics div:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.16);
}

.hero-metrics dt {
  font-size: 22px;
  font-weight: 850;
}

.hero-metrics dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.intro,
.services,
.process,
.cases,
.contact {
  padding: clamp(70px, 9vw, 116px) clamp(18px, 5vw, 72px);
}

.intro {
  display: grid;
  justify-items: center;
  text-align: center;
  background: #ffffff;
}

.intro h2,
.section-head h2,
.contact h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: 0;
}

.intro p,
.section-head p,
.contact-copy p {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  max-width: 1160px;
  margin: 0 auto 34px;
}

.section-head p {
  max-width: 460px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1160px;
  margin: 0 auto;
}

.service-card {
  min-height: 270px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 34px rgba(13, 36, 31, 0.06);
  transition:
    transform 320ms var(--motion),
    box-shadow 320ms var(--motion),
    border-color 320ms ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(15, 143, 122, 0.28);
  box-shadow: 0 24px 54px rgba(13, 36, 31, 0.12);
}

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--accent-strong);
  font-weight: 850;
}

.service-card h3,
.timeline h3,
.solution-list h3 {
  margin: 28px 0 10px;
  font-size: 21px;
  line-height: 1.25;
}

.service-card p,
.timeline p,
.solution-list p {
  margin: 0;
  color: var(--muted);
}

.process {
  background: var(--soft);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.timeline li {
  min-height: 230px;
  padding: 28px;
  background: #ffffff;
  transition:
    transform 320ms var(--motion),
    box-shadow 320ms var(--motion);
}

.timeline li:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(13, 36, 31, 0.1);
}

.timeline span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: #ffffff;
  font-weight: 800;
}

.cases {
  background: #ffffff;
}

.solution-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1160px;
  margin: 0 auto;
}

.solution-list article {
  position: relative;
  min-height: 210px;
  padding: 30px;
  border-radius: 8px;
  color: #ffffff;
  overflow: hidden;
  transition:
    transform 320ms var(--motion),
    box-shadow 320ms var(--motion);
}

.solution-list article::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 25%, rgba(255, 255, 255, 0.18), transparent 70%);
  transform: translateX(-120%);
  transition: transform 760ms var(--motion);
}

.solution-list article:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 46px rgba(13, 36, 31, 0.16);
}

.solution-list article:hover::after {
  transform: translateX(120%);
}

.solution-list article:nth-child(1) {
  background: linear-gradient(135deg, #0a6558, #15342d);
}

.solution-list article:nth-child(2) {
  background: linear-gradient(135deg, #bd7230, #6f4b21);
}

.solution-list article:nth-child(3) {
  background: linear-gradient(135deg, #326f88, #183947);
}

.solution-list p {
  color: rgba(255, 255, 255, 0.78);
}

.contact {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.85fr);
  gap: clamp(28px, 7vw, 82px);
  align-items: center;
  min-height: 660px;
  overflow: hidden;
  color: #ffffff;
  background: #061c1d;
}

.contact::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(6, 28, 29, 0.96), rgba(6, 28, 29, 0.82) 38%, rgba(6, 28, 29, 0.25) 72%, rgba(6, 28, 29, 0.1)),
    linear-gradient(0deg, rgba(6, 28, 29, 0.76), transparent 45%);
  pointer-events: none;
}

.contact-copy {
  position: relative;
  z-index: 2;
  max-width: 650px;
  justify-self: end;
}

.contact h2 {
  color: #ffffff;
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.contact-points span {
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #d9fff5;
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.contact-details {
  display: grid;
  grid-template-columns: minmax(180px, 0.75fr) minmax(300px, 1.15fr) minmax(150px, 0.55fr);
  gap: 12px;
  margin-top: 22px;
}

.contact-details a,
.contact-details div {
  display: grid;
  gap: 4px;
  min-height: 118px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
  transition:
    transform 300ms var(--motion),
    background 300ms ease,
    border-color 300ms ease;
}

.contact-details a:hover,
.contact-details div:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.18);
}

.contact-details span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 750;
}

.contact-details strong {
  color: #ffffff;
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.25;
  white-space: nowrap;
}

.wechat-card {
  align-content: center;
}

.wechat-card img {
  width: 86px;
  height: 86px;
  border-radius: 8px;
  background: #ffffff;
  object-fit: cover;
  padding: 5px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.secondary-contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  padding: 0 18px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 750;
  white-space: nowrap;
  transition:
    transform 260ms var(--motion),
    background 260ms ease,
    border-color 260ms ease;
}

.secondary-contact-button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.18);
}

.contact-visual {
  position: absolute;
  inset: 0 0 0 32%;
  z-index: 0;
  min-height: 100%;
}

.contact-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 660px;
  object-fit: cover;
  object-position: center;
  animation: contactDrift 20s ease-in-out infinite alternate;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms var(--motion),
    transform 700ms var(--motion);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slowDrift {
  from {
    transform: translate3d(0, calc(var(--scroll-y, 0) * 0.05px), 0) scale(1.04);
  }
  to {
    transform: translate3d(-18px, calc(var(--scroll-y, 0) * 0.05px - 8px), 0) scale(1.07);
  }
}

@keyframes contactDrift {
  from {
    transform: scale(1.04) translateX(0);
  }
  to {
    transform: scale(1.08) translateX(-18px);
  }
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #ffffff;
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--accent-strong);
  font-weight: 750;
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .service-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .solution-list,
  .contact {
    grid-template-columns: 1fr;
  }

  .contact-details {
    grid-template-columns: 1fr;
  }

  .contact-copy {
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 66px;
    padding: 12px 16px;
  }

  .brand small,
  .header-cta {
    display: none;
  }

  .hero {
    min-height: 820px;
  }

  .hero-scrim {
    background:
      linear-gradient(90deg, rgba(5, 18, 17, 0.9), rgba(5, 18, 17, 0.5)),
      linear-gradient(0deg, rgba(5, 18, 17, 0.78), transparent 50%);
  }

  .hero-content {
    width: calc(100% - 32px);
    margin: 0 16px;
    align-self: end;
    padding: 0 0 44px;
  }

  .hero h1 {
    max-width: calc(100vw - 32px);
    font-size: 32px;
    line-height: 1.1;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .hero-metrics,
  .service-grid,
  .timeline,
  .solution-list {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    margin-top: 32px;
  }

  .section-head {
    display: block;
  }

  .service-card,
  .timeline li,
  .solution-list article {
    min-height: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}
