:root {
  --bg: #e7f0ff;
  --bg-soft: #f1f6ff;
  --surface: #ffffff;
  --surface-2: #e8f1ff;
  --line: #9dbcf3;
  --line-strong: #4f7fe0;
  --text: #081a42;
  --text-soft: #21498d;
  --accent: #124bd9;
  --accent-soft: #2c6dff;
  --bg-glow: rgba(44, 109, 255, 0.34);
  --grid-line: rgba(38, 89, 224, 0.09);
  --overlay-bg: #e1edff;
  --intro-text: #124bd9;
  --lang-color: #124bd9;
  --stroke-color: #0d43c8;
  --bi-en: #2f5fae;
  --en-copy: #355fa2;
  --hero-tag: #294e92;
  --stat-grad-a: #ffffff;
  --stat-grad-b: #eaf2ff;
  --section-sub-color: #1a54d5;
  --capability-grad-a: #ffffff;
  --capability-grad-b: #edf4ff;
  --card-1-a: #f8fbff;
  --card-1-b: #eaf2ff;
  --card-2-a: #f5faff;
  --card-2-b: #e7f0ff;
  --card-3-a: #f8fbff;
  --card-3-b: #e9f2ff;
  --card-4-a: #f4f9ff;
  --card-4-b: #e6efff;
  --delivery-step: #1a54d5;
  --delivery-note: #2d5696;
  --industry-bg: #edf4ff;
  --cta-color: #1147c8;
  --en-stroke: #124bd9;
  --ghost-color: #274f92;
  --ghost-border: #5f86d3;
  --copyright-color: #365b9b;
  --header-shadow: rgba(8, 26, 66, 0.14);
}

body.theme-dark {
  --bg: #0a0b10;
  --bg-soft: #11131b;
  --surface: #141722;
  --surface-2: #191d2b;
  --line: #2a3042;
  --line-strong: #39435f;
  --text: #f3f5ff;
  --text-soft: #9ca8c9;
  --accent: #5d87ff;
  --accent-soft: #7dd9ff;
  --bg-glow: rgba(93, 135, 255, 0.22);
  --grid-line: rgba(255, 255, 255, 0.03);
  --overlay-bg: #07080d;
  --intro-text: #d5e6ff;
  --lang-color: #9ec7ff;
  --stroke-color: #dceaff;
  --bi-en: #a8c1ea;
  --en-copy: #9db0d4;
  --hero-tag: #b7c9eb;
  --stat-grad-a: #1b2434;
  --stat-grad-b: #161d2a;
  --section-sub-color: #8eb8ff;
  --capability-grad-a: #1b2333;
  --capability-grad-b: #161d2a;
  --card-1-a: #202a3d;
  --card-1-b: #182131;
  --card-2-a: #233047;
  --card-2-b: #1a2537;
  --card-3-a: #1f2b40;
  --card-3-b: #182233;
  --card-4-a: #243149;
  --card-4-b: #1b273a;
  --delivery-step: #9cc8ff;
  --delivery-note: #b6c8e6;
  --industry-bg: #1b2434;
  --cta-color: #e8f1ff;
  --en-stroke: #9ec8ff;
  --ghost-color: #a9c3ea;
  --ghost-border: #3f567c;
  --copyright-color: #7f95bb;
  --header-shadow: rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", sans-serif;
  background: radial-gradient(circle at 88% -5%, var(--bg-glow), transparent 42%), var(--bg);
  color: var(--text);
  line-height: 1.65;
  scroll-snap-type: y proximity;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.2;
}

#intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--overlay-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

#intro-overlay.hide {
  opacity: 0;
  visibility: hidden;
}

#intro-line {
  width: min(62vw, 560px);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-soft), transparent);
  transform-origin: center;
  animation: introPulse 1s ease-in-out infinite;
}

#intro-text {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 28px);
  letter-spacing: 1.2px;
  color: var(--intro-text);
  animation: introTextFade 1.2s ease-in-out infinite;
}

@keyframes introTextFade {
  0% {
    opacity: 0.35;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.35;
  }
}

@keyframes introPulse {
  0% {
    transform: scaleX(0.35);
    opacity: 0.4;
  }

  50% {
    transform: scaleX(1);
    opacity: 1;
  }

  100% {
    transform: scaleX(0.35);
    opacity: 0.4;
  }
}

header,
main {
  position: relative;
  z-index: 2;
}

header {
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  background: transparent;
  border-bottom: 0;
  transition: none;
}

header.is-scrolled {
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
}

.logo {
  display: flex;
  align-items: center;
  height: 28px;
  text-shadow: 0 2px 10px var(--header-shadow);
}

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

.nav-links {
  display: flex;
  gap: 34px;
}

.nav-links a {
  color: var(--text-soft);
  text-decoration: none;
  letter-spacing: 0.2px;
  font-size: 15px;
  font-weight: 600;
  text-shadow: 0 2px 10px var(--header-shadow);
}

.lang-switch {
  color: var(--lang-color);
  text-decoration: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  text-shadow: 0 2px 10px var(--header-shadow);
}

.theme-toggle {
  color: var(--lang-color);
  text-decoration: none;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-shadow: 0 2px 10px var(--header-shadow);
}

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

main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 102px 30px 100px;
}

.snap-screen {
  min-height: calc(100vh - 108px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px 0;
}

.snap-screen + .snap-screen {
  margin-top: 24px;
}

.capability + #services.snap-screen {
  margin-top: 24px;
}

.hero {
  min-height: calc(100vh - 108px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}

.hero-content {
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  padding-right: 0;
}

.hero-content h1 {
  margin: 0;
  font-family: "Noto Sans SC", sans-serif;
  font-size: clamp(54px, 10vw, 116px);
  line-height: 1.02;
  letter-spacing: -0.8px;
}

.stroke {
  color: var(--stroke-color);
  -webkit-text-stroke: 0;
  font-weight: 900;
}

.hero-content p {
  margin: 24px 0 0;
  color: var(--text-soft);
  font-size: clamp(16px, 1.8vw, 20px);
  letter-spacing: 0.1px;
}

.bi-line .en {
  display: block;
  margin-top: 6px;
  font-family: "Outfit", sans-serif;
  font-size: 14px;
  color: var(--bi-en);
  letter-spacing: 0.2px;
}

.bi-block .en,
.en-copy {
  display: block;
  margin-top: 8px;
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  line-height: 1.55;
  color: var(--en-copy);
}

.hero-tags {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 11px;
  color: var(--hero-tag);
  letter-spacing: 0.3px;
}

.intro-copy {
  max-width: 960px;
}

.intro-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.intro-copy p {
  margin: 0;
  font-size: clamp(21px, 2.8vw, 34px);
  line-height: 1.42;
  letter-spacing: -0.6px;
}

.stats {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.stat-item {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--stat-grad-a), var(--stat-grad-b));
  padding: 24px;
}

.num {
  font-family: "Outfit", sans-serif;
  font-size: clamp(42px, 5.2vw, 64px);
  line-height: 1;
}

.label {
  margin-top: 9px;
  color: var(--text-soft);
  letter-spacing: 0.3px;
  font-size: 13px;
}

#services,
.capability,
.delivery,
.industries {
  margin-top: 0;
}

.section-title {
  margin: 0;
  font-family: "Noto Sans SC", sans-serif;
  font-size: clamp(38px, 5.6vw, 72px);
  line-height: 1.15;
  letter-spacing: -0.6px;
}

.section-sub {
  margin: 10px 0 0;
  font-family: "Outfit", sans-serif;
  color: var(--section-sub-color);
  font-size: 14px;
  letter-spacing: 0.5px;
}

.bento-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.bento-card,
.capability-grid article,
.delivery-grid article,
.industry-grid article {
  border: 1px solid var(--line);
  background: var(--surface);
}

.capability-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.capability-grid article {
  padding: 24px;
  background: linear-gradient(150deg, var(--capability-grad-a), var(--capability-grad-b));
}

.capability-grid h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.6px;
}

.capability-grid p {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 15px;
}

.bento-card {
  min-height: 260px;
  padding: 26px;
}

.bento-card h3 {
  margin: 0;
  font-family: "Noto Sans SC", sans-serif;
  font-size: clamp(22px, 2.3vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.8px;
}

.bento-card p {
  margin: 16px 0 0;
  color: var(--text-soft);
  font-size: 15px;
}

.card-1 {
  background: linear-gradient(140deg, var(--card-1-a), var(--card-1-b));
}

.card-2 {
  background: linear-gradient(140deg, var(--card-2-a), var(--card-2-b));
}

.card-3 {
  background: linear-gradient(140deg, var(--card-3-a), var(--card-3-b));
}

.card-4 {
  background: linear-gradient(140deg, var(--card-4-a), var(--card-4-b));
}

.delivery-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.delivery-grid article {
  padding: 22px;
  background: var(--surface-2);
}

.delivery-grid span {
  font-family: "Outfit", sans-serif;
  color: var(--delivery-step);
  font-size: 13px;
  letter-spacing: 1px;
}

.delivery-grid h3 {
  margin: 10px 0 6px;
  font-size: 18px;
  line-height: 1.25;
}

.delivery-grid p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
}

.delivery-note {
  margin-top: 16px;
  border: 1px dashed var(--line-strong);
  padding: 14px 16px;
  color: var(--delivery-note);
  font-size: 13px;
}

.delivery-note p {
  margin: 0;
}

.industry-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.industry-grid article {
  padding: 24px;
  background: var(--industry-bg);
}

.industry-grid h3 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.5px;
}

.industry-grid p {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 15px;
}

footer {
  margin-top: 0;
  border-top: 1px solid var(--line-strong);
  padding-top: 50px;
  padding-bottom: 30px;
}

.cta-text {
  font-family: "Noto Sans SC", sans-serif;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 1.1;
  letter-spacing: -0.8px;
}

.cta-copy {
  margin: 20px 0 0;
  max-width: 680px;
  color: var(--text-soft);
  font-size: 17px;
}

.cta-button {
  margin-top: 22px;
  display: inline-block;
  color: var(--cta-color);
  text-decoration: none;
  border: 1px solid var(--line-strong);
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.4px;
  font-weight: 700;
}

.en-page {
  font-family: "Outfit", sans-serif;
}

.en-page .logo,
.en-page .section-title,
.en-page .cta-text,
.en-page .hero-content h1 {
  font-family: "Outfit", sans-serif;
}

.en-page .stroke {
  color: transparent;
  -webkit-text-stroke: 1px var(--en-stroke);
}

.en-page .nav-links a,
.en-page .label,
.en-page .cta-button {
  text-transform: uppercase;
}

.zh-home .nav-links a,
.zh-home .section-sub,
.zh-home .bi-line .en,
.zh-home .en-copy,
.zh-home .label,
.zh-home .hero-tags span,
.zh-home .cta-copy,
.zh-home .cta-button {
  text-transform: uppercase;
}

.cta-actions {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-actions .cta-button {
  margin-top: 0;
}

.cta-button-ghost {
  color: var(--ghost-color);
  border-color: var(--ghost-border);
  background: transparent;
}

.copyright {
  margin-top: 94px;
  color: var(--copyright-color);
  font-size: 11px;
  letter-spacing: 1.4px;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

@media (max-width: 1080px) {
  .stats,
  .capability-grid,
  .bento-grid,
  .delivery-grid,
  .industry-grid {
    grid-template-columns: 1fr;
  }

  .snap-screen {
    min-height: calc(100vh - 92px);
    padding: 28px 0;
  }

  .snap-screen + .snap-screen {
    margin-top: 18px;
  }

  .capability + #services.snap-screen {
    margin-top: 18px;
  }

  .section-title {
    line-height: 0.94;
  }
}

@media (max-width: 760px) {
  header {
    width: calc(100% - 28px);
    padding: calc(16px + env(safe-area-inset-top)) 0 12px;
    transition: opacity 0.28s ease, transform 0.28s ease;
  }

  body.mobile-header-hidden header {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -120%);
  }

  .nav-links {
    display: none;
  }

  .logo img {
    height: 100%;
  }

  .logo {
    height: 24px;
  }

  .lang-switch {
    font-size: 11px;
    padding: 6px 10px;
  }

  main {
    padding: calc(118px + env(safe-area-inset-top)) 16px 72px;
  }

  .snap-screen {
    min-height: calc(100vh - 108px - env(safe-area-inset-top));
    padding: 30px 0;
    scroll-margin-top: calc(118px + env(safe-area-inset-top));
  }

  #stats,
  #services,
  #delivery,
  #industries,
  #contact {
    scroll-margin-top: calc(118px + env(safe-area-inset-top));
  }

  .hero-content {
    margin-left: 0;
    padding-right: 0;
  }

  .intro-screen {
    gap: 16px;
  }

  .snap-screen + .snap-screen {
    margin-top: 14px;
  }

  .capability + #services.snap-screen {
    margin-top: 14px;
  }

  .copyright {
    margin-top: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
