:root {
  --bg: #f3eee6;
  --surface: #fff8ef;
  --surface-strong: #ffffff;
  --ink: #18362d;
  --text: #263831;
  --muted: #667269;
  --line: rgba(47, 65, 54, 0.13);
  --sage: #778b75;
  --sage-deep: #163a2f;
  --sage-soft: #d6e0d0;
  --blue: #b4cad0;
  --blue-deep: #4d6d78;
  --clay: #d2a28f;
  --clay-soft: #efd4c7;
  --lavender: #c6bdd4;
  --oat: #e6d7c4;
  --cream: #fbf3e8;
  --shadow: 0 18px 52px rgba(50, 61, 54, 0.12);
  --container: min(1100px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

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

::selection {
  background: rgba(127, 146, 125, 0.25);
  color: var(--sage-deep);
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.95) 0%, rgba(243, 238, 230, 1) 620px),
    linear-gradient(110deg, rgba(211, 162, 143, 0.16) 0 26%, transparent 26% 100%),
    linear-gradient(250deg, transparent 0 67%, rgba(180, 202, 208, 0.22) 67% 100%),
    var(--bg);
  color: var(--text);
  font-family: 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#top {
  scroll-margin-top: 72px;
}

/* ── Keep Chinese copy readable without forcing mobile overflow ── */
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
  word-break: normal;
  overflow-wrap: anywhere;
}

p {
  word-break: normal;
  overflow-wrap: anywhere;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
  padding: 0 max(24px, calc((100vw - 1100px) / 2));
  background: rgba(255, 248, 239, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: height 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  height: 60px;
  box-shadow: 0 2px 16px rgba(55, 66, 58, 0.06);
}

.brand,
.main-nav,
.header-cta {
  display: flex;
  align-items: center;
}

.brand {
  gap: 8px;
  color: var(--sage-deep);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: none;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(22, 58, 47, 0.18);
  border-radius: 8px;
  background: linear-gradient(145deg, var(--sage-deep), #315848);
  color: #fffaf3;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(22, 58, 47, 0.15);
}

.main-nav {
  gap: 8px;
  margin-left: auto;
  color: rgba(38, 56, 49, 0.68);
  font-size: 14px;
  font-weight: 500;
}

.main-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
  background: rgba(127, 146, 125, 0.1);
  color: var(--sage-deep);
}

.header-cta {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(22, 58, 47, 0.15);
  border-radius: 8px;
  background: var(--sage-deep);
  color: #fffaf3;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 7px 18px rgba(22, 58, 47, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(22, 58, 47, 0.18);
}

.menu-button {
  display: none;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--sage-deep);
  border-radius: 1px;
}

.menu-button span + span {
  margin-top: 4px;
}

/* ── Hero Section ── */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.96), rgba(243, 238, 230, 0.98)),
    var(--cream);
}

.hero::before {
  content: "";
  position: absolute;
  top: 64px;
  left: 50%;
  width: min(900px, 92vw);
  height: 520px;
  background: radial-gradient(
    ellipse at 50% 36%,
    rgba(119, 139, 117, 0.18) 0%,
    rgba(198, 189, 212, 0.09) 42%,
    transparent 72%
  );
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -8vw 0 auto;
  width: 34vw;
  height: 19%;
  min-width: 340px;
  background: linear-gradient(135deg, rgba(180, 202, 208, 0.34), rgba(180, 202, 208, 0.08));
  border-radius: 80% 0 0 0 / 95% 0 0 0;
  pointer-events: none;
  z-index: 0;
}

.hero-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 68px 24px 66px;
  min-height: auto;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--sage-deep);
  font-size: clamp(42px, 5.1vw, 68px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
  white-space: nowrap;
}

.hero-subtitle {
  max-width: 560px;
  margin: 22px auto 0;
  color: rgba(38, 56, 49, 0.86);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 500;
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

.primary-button,
.secondary-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 30px;
  border: 1px solid rgba(22, 58, 47, 0.15);
  border-radius: 9px;
  background: linear-gradient(135deg, #10392c, #285c49);
  color: #fffaf3;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(22, 58, 47, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

/* Subtle shimmer sweep on buttons */
.primary-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.12) 50%,
    transparent 70%
  );
  transition: left 0.5s ease;
}

.primary-button:hover::after {
  left: 120%;
}

.primary-button svg,
.secondary-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(22, 58, 47, 0.22);
}

.hero-note {
  max-width: 500px;
  margin: 20px auto 0;
  color: rgba(38, 56, 49, 0.63);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
  text-align: center;
}

.hero-visual {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin: 46px auto 0;
  border: 1px solid rgba(44, 62, 52, 0.08);
  border-radius: 14px;
  box-shadow:
    0 2px 4px rgba(44, 62, 52, 0.02),
    0 10px 28px rgba(44, 62, 52, 0.05),
    0 28px 72px rgba(44, 62, 52, 0.08);
  overflow: hidden;
  background: #fcfcfa;
}

.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
}

/* ── Intro Band ── */
.intro-band {
  padding: 68px max(24px, calc((100vw - 1100px) / 2));
  background:
    linear-gradient(180deg, rgba(243, 238, 230, 0.96), rgba(255, 248, 239, 0.96)),
    var(--surface);
}

.intro-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(34px, 5vw, 58px);
  align-items: center;
  padding: clamp(40px, 5vw, 58px);
  border: 1px solid rgba(68, 76, 68, 0.09);
  border-radius: 14px;
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.90), rgba(244, 239, 231, 0.66)),
    linear-gradient(260deg, rgba(201, 189, 212, 0.18), transparent 48%),
    var(--surface);
  box-shadow: 0 18px 44px rgba(74, 71, 63, 0.08);
  overflow: hidden;
}

.intro-card::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 34%;
  height: 6px;
  background: linear-gradient(90deg, var(--sage), var(--clay), var(--blue));
  content: "";
}

/* ── Shared visual frame for product images ── */
.visual-frame {
  border-radius: 10px;
  border: 1px solid rgba(44, 62, 52, 0.08);
  box-shadow:
    0 2px 4px rgba(44, 62, 52, 0.02),
    0 8px 20px rgba(44, 62, 52, 0.04),
    0 18px 42px rgba(44, 62, 52, 0.06);
  overflow: hidden;
  background: #fcfcfa;
}

.visual-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.intro-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-visual .visual-frame {
  width: 100%;
}

.section-kicker,
.section-heading span,
.attitude-copy span {
  margin: 0;
  color: #607661;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.intro-copy h2 {
  max-width: 720px;
  margin: 14px 0 0;
  color: #20362f;
  font-size: clamp(28px, 2.8vw, 38px);
  font-weight: 750;
  line-height: 1.28;
  letter-spacing: 0;
}

.intro-copy > p:not(.section-kicker) {
  max-width: 680px;
  margin: 18px 0 0;
  color: #526158;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.feature-row span {
  min-height: 46px;
  padding: 12px 12px;
  border: 1px solid rgba(22, 58, 47, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #2d463c;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: background 0.2s ease;
}

.feature-row span:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* ── Services ── */
.services {
  width: var(--container);
  margin: 0 auto;
  padding: 82px 0 96px;
}

.section-heading {
  display: grid;
  gap: 12px;
  max-width: 680px;
  margin: 0 auto 46px;
  text-align: center;
}

.section-heading h2,
.attitude h2 {
  margin: 0;
  color: #20362f;
  font-size: clamp(29px, 3vw, 42px);
  font-weight: 760;
  line-height: 1.18;
  letter-spacing: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: service;
}

.service-card {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  padding: 34px 30px 32px;
  border: 1px solid rgba(44, 62, 52, 0.08);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(62, 72, 64, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  counter-increment: service;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(62, 72, 64, 0.10);
}

.service-card::before {
  position: absolute;
  top: 24px;
  right: 26px;
  color: rgba(22, 58, 47, 0.12);
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  content: counter(service, decimal-leading-zero);
}

.service-card::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 92px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.30));
  content: "";
  pointer-events: none;
}

.service-brand {
  background: linear-gradient(160deg, #d9e4d4 0%, #edf3e8 100%);
}

.service-local {
  background: linear-gradient(160deg, #efd4c7 0%, #faece4 100%);
}

.service-global {
  background: linear-gradient(160deg, #d3e5ec 0%, #eef6f7 100%);
}

.service-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  margin-bottom: 28px;
  border: 1px solid rgba(34, 52, 45, 0.10);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 8px 20px rgba(75, 84, 76, 0.06);
}

.service-icon svg {
  width: 35px;
  height: 35px;
  fill: none;
  stroke: #31443d;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3,
.service-card p,
.service-card ul {
  position: relative;
  z-index: 1;
}

.service-card h3 {
  min-height: auto;
  margin: 0;
  display: grid;
  gap: 8px;
  color: #24352f;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}

.service-title-main {
  color: #183a30;
  font-size: clamp(34px, 3.4vw, 44px);
  font-weight: 800;
  line-height: 0.95;
}

.service-card p {
  min-height: 78px;
  margin: 18px 0 18px;
  color: #41534a;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
}

.service-card ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  color: #53645b;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.65;
  list-style: none;
}

.service-card li {
  position: relative;
  padding-left: 21px;
}

.service-card li::before {
  position: absolute;
  top: 0.45em;
  left: 0;
  display: grid;
  width: 13px;
  height: 13px;
  place-items: center;
  border-radius: 50%;
  background: rgba(22, 58, 47, 0.11);
  color: var(--sage-deep);
  font-size: 8px;
  line-height: 1;
  content: "✓";
}

/* ── Attitude ── */
.attitude {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr);
  gap: 60px;
  align-items: center;
  padding: 86px max(24px, calc((100vw - 1100px) / 2));
  border-top: 1px solid rgba(44, 62, 52, 0.08);
  background:
    linear-gradient(120deg, rgba(198, 189, 212, 0.30), rgba(255, 248, 239, 0.80) 50%, rgba(211, 162, 143, 0.22)),
    var(--surface);
}

.attitude-copy {
  display: grid;
  gap: 16px;
}

.attitude p {
  max-width: 600px;
  margin: 0;
  color: #4a5b52;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.8;
}

.secondary-button {
  width: max-content;
  min-height: 48px;
  margin-top: 8px;
  padding: 0 24px;
  font-size: 15px;
}

.attitude-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 800px;
}

.attitude-visual .visual-frame {
  width: 100%;
  transform: rotateY(-4deg) rotateX(2deg);
  transition: transform 0.4s ease;
}

.attitude-visual:hover .visual-frame {
  transform: rotateY(0deg) rotateX(0deg);
}

/* ── Footer ── */
.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px;
  align-items: center;
  min-height: 72px;
  padding: 0 max(24px, calc((100vw - 1100px) / 2));
  border-top: 1px solid var(--line);
  background: #fff8ef;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.site-footer strong {
  color: var(--sage-deep);
  font-size: 18px;
  font-weight: 700;
}

/* ── Scroll Animations ── */
.fade-in-up {
  opacity: 1;
  transform: translateY(16px);
  transition: transform 0.6s ease;
}

.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .fade-in-up {
    transform: none;
  }
}

/* ── Responsive: Tablet ── */
@media (max-width: 980px) {
  :root {
    --container: min(100vw - 32px, 760px);
  }

  .hero,
  .intro-band,
  .services,
  .attitude,
  .site-footer {
    max-width: 100%;
    overflow-x: hidden;
  }

  #top {
    scroll-margin-top: 64px;
  }

  .site-header {
    height: 64px;
    padding: 0 16px;
  }

  .site-header.is-scrolled {
    height: 56px;
  }

  .brand {
    font-size: 18px;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .main-nav {
    position: fixed;
    top: 64px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 250, 243, 0.97);
    box-shadow: var(--shadow);
  }

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

  .main-nav a {
    padding: 14px 12px;
    border-radius: 8px;
  }

  .main-nav a:hover {
    background: rgba(127, 146, 125, 0.12);
  }

  .header-cta {
    margin-left: auto;
  }

  .menu-button {
    display: grid;
  }

  .hero-shell {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 56px 20px 48px;
    min-height: auto;
  }

  .hero::before {
    top: 36px;
    width: 90vw;
    height: 420px;
    min-width: 0;
    opacity: 1;
  }

  .hero::after {
    inset: auto -18vw 0 auto;
    width: 54vw;
    height: 16%;
    min-width: 0;
    opacity: 0.72;
  }

  .hero-copy {
    justify-items: center;
    max-width: 700px;
  }

  .hero h1 {
    font-size: clamp(36px, 8vw, 52px);
    white-space: normal;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-note {
    max-width: 440px;
    font-size: 14px;
    text-align: center;
  }

  .hero-visual {
    max-width: 760px;
    justify-self: center;
    margin: 36px 0 0;
    border-radius: 12px;
  }

  .intro-band {
    padding: 56px 16px;
  }

  .intro-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 24px;
    overflow: visible;
  }

  .intro-visual {
    display: none;
  }

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

  .services {
    padding: 72px 0 80px;
  }

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

  .service-card {
    min-height: auto;
    overflow: visible;
  }

  .service-card h3,
  .service-card p {
    min-height: auto;
  }

  .attitude {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 72px 24px;
  }

  .attitude-visual .visual-frame {
    transform: none;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 24px;
    min-height: auto;
  }
}

/* ── Responsive: Phone ── */
@media (max-width: 560px) {
  :root {
    --container: calc(100vw - 32px);
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  li,
  span {
    max-width: 100%;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .header-cta {
    display: none;
  }

  .hero-shell {
    padding: 48px 16px 40px;
  }

  .hero h1 {
    font-size: 38px;
    line-height: 1.14;
    white-space: normal;
  }

  .hero-subtitle {
    max-width: 300px;
    font-size: 16px;
    line-height: 1.72;
  }

  .hero-note {
    max-width: 300px;
    font-size: 13px;
    line-height: 1.72;
  }

  .primary-button {
    width: 100%;
    max-width: 220px;
  }

  .hero-visual {
    border-radius: 10px;
    margin: 28px 0 0;
  }

  .intro-card {
    padding: 28px 18px;
    border-radius: 12px;
  }

  .section-kicker,
  .section-heading span,
  .attitude-copy span {
    font-size: 12px;
    line-height: 1.6;
    letter-spacing: 0;
  }

  .intro-copy h2,
  .section-heading h2,
  .attitude h2 {
    font-size: 26px;
    line-height: 1.34;
  }

  .intro-copy > p:not(.section-kicker),
  .attitude p,
  .service-card p,
  .service-card ul {
    font-size: 15px;
    line-height: 1.72;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 24px;
  }

  .feature-row span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 44px;
    padding: 10px 12px;
    white-space: normal;
    text-align: center;
  }

  .services {
    padding: 58px 0 66px;
  }

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

  .service-card {
    padding: 26px 18px;
    border-radius: 12px;
  }

  .service-card::after {
    display: none;
  }

  .service-card h3 {
    font-size: 16px;
  }

  .service-title-main {
    font-size: 32px;
    line-height: 1.05;
  }

  .service-card li {
    padding-left: 18px;
  }

  .attitude {
    padding: 58px 18px;
  }

  .site-footer {
    padding: 22px 18px;
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 34px;
  }

  .intro-copy h2,
  .section-heading h2,
  .attitude h2 {
    font-size: 24px;
  }
}
