:root {
  color-scheme: light;
  --ink: #1d2522;
  --ink-soft: #55625d;
  --paper: #faf8f2;
  --paper-warm: #f1eadf;
  --line: #d8cfc1;
  --jade: #5b8174;
  --jade-dark: #294b42;
  --coral: #b56b52;
  --gold: #b68a45;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(43, 54, 49, 0.14);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  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,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 16px clamp(18px, 4vw, 48px);
  color: var(--ink);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(250, 248, 242, 0.92);
  border-bottom: 1px solid rgba(216, 207, 193, 0.8);
  box-shadow: 0 12px 28px rgba(43, 54, 49, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(29, 37, 34, 0.22);
  border-radius: 50%;
  color: var(--jade-dark);
  background: rgba(255, 255, 255, 0.55);
  font-family: Georgia, serif;
  font-weight: 700;
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 40px);
  font-size: 14px;
  color: rgba(29, 37, 34, 0.74);
}

.nav a {
  padding: 8px 0;
  border-bottom: 1px solid transparent;
}

.nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(29, 37, 34, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
}

.language-switch button {
  min-width: 48px;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: rgba(29, 37, 34, 0.7);
  background: transparent;
  cursor: pointer;
}

.language-switch button.is-active {
  color: var(--white);
  background: var(--jade-dark);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(29, 37, 34, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 116px clamp(20px, 6vw, 72px) 96px;
  border-bottom: 1px solid var(--line);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(250, 248, 242, 0.97) 0%, rgba(250, 248, 242, 0.86) 35%, rgba(250, 248, 242, 0.2) 72%),
    linear-gradient(180deg, rgba(250, 248, 242, 0.78) 0%, rgba(250, 248, 242, 0) 42%, rgba(250, 248, 242, 0.54) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(650px, 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(72px, 13vw, 170px);
  font-weight: 520;
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 610px;
  margin: 28px 0 0;
  color: #34413d;
  font-size: clamp(20px, 2.4vw, 32px);
  line-height: 1.25;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 750;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

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

.button-primary {
  color: var(--white);
  background: var(--jade-dark);
  box-shadow: 0 12px 28px rgba(41, 75, 66, 0.22);
}

.button-secondary {
  color: var(--jade-dark);
  border: 1px solid rgba(41, 75, 66, 0.24);
  background: rgba(255, 255, 255, 0.66);
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(var(--max), calc(100% - 40px));
  margin: -42px auto 0;
  position: relative;
  z-index: 4;
  overflow: hidden;
  border: 1px solid rgba(216, 207, 193, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.signal {
  min-height: 128px;
  padding: 26px;
  border-right: 1px solid var(--line);
}

.signal:last-child {
  border-right: 0;
}

.signal strong {
  display: block;
  margin-bottom: 8px;
  color: var(--jade-dark);
  font-size: 22px;
}

.signal span {
  display: block;
  color: var(--ink-soft);
  font-size: 14px;
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(76px, 10vw, 128px) 0;
}

.section.muted {
  width: 100%;
  max-width: none;
  padding-inline: max(20px, calc((100vw - var(--max)) / 2));
  background: var(--paper-warm);
}

.intro {
  padding-top: clamp(90px, 12vw, 150px);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: start;
}

.intro h2,
.section-heading h2,
.platform-copy h2,
.cta h2 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5.3vw, 68px);
  font-weight: 520;
  line-height: 1;
  letter-spacing: 0;
}

.intro p,
.section-heading p,
.platform-copy p,
.cta p {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.8vw, 20px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.72fr);
  gap: clamp(26px, 5vw, 76px);
  align-items: end;
  margin-bottom: 38px;
}

.section-heading.compact {
  display: block;
  max-width: 820px;
}

.cards {
  display: grid;
  gap: 16px;
}

.cards.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  min-height: 300px;
  padding: 28px;
  border: 1px solid rgba(216, 207, 193, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.card-number {
  display: block;
  margin-bottom: 46px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.card h3,
.timeline h3,
.case-grid h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.18;
  letter-spacing: 0;
}

.card p,
.timeline p,
.case-grid p,
.feature span {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 42px;
  border-top: 1px solid var(--line);
}

.timeline article {
  position: relative;
  min-height: 248px;
  padding: 36px 24px 0 0;
  border-right: 1px solid var(--line);
}

.timeline article:last-child {
  border-right: 0;
}

.timeline article::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
}

.timeline span {
  display: block;
  margin-bottom: 58px;
  color: var(--jade-dark);
  font-weight: 820;
}

.platform {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.72fr);
  gap: clamp(32px, 6vw, 92px);
  align-items: start;
}

.platform-copy p {
  margin-top: 24px;
}

.feature-list {
  display: grid;
  gap: 12px;
}

.feature {
  display: grid;
  gap: 8px;
  padding: 22px;
  border: 1px solid rgba(216, 207, 193, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
}

.feature strong {
  color: var(--jade-dark);
  font-size: 17px;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.case-grid article {
  min-height: 210px;
  padding: 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.28);
}

.cta {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto clamp(26px, 4vw, 54px);
  padding: clamp(46px, 8vw, 84px);
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(41, 75, 66, 0.96), rgba(91, 129, 116, 0.92)),
    var(--jade-dark);
  overflow: hidden;
}

.cta h2,
.cta p {
  color: var(--white);
}

.cta .eyebrow {
  color: #f1c79c;
}

.cta p {
  max-width: 760px;
  margin-top: 22px;
  opacity: 0.84;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 34px;
}

.contact-row .button-primary {
  color: var(--jade-dark);
  background: var(--white);
  box-shadow: none;
}

.contact-row span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 38px;
  color: var(--ink-soft);
  font-size: 14px;
}

.footer span:first-child {
  color: var(--ink);
  font-weight: 800;
}

@media (max-width: 1080px) {
  .cards.four,
  .timeline,
  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline article:nth-child(2) {
    border-right: 0;
  }

  .card {
    min-height: 240px;
  }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: auto auto 1fr;
    gap: 12px;
    padding: 12px 16px;
  }

  .brand {
    font-size: 17px;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    order: 3;
    justify-self: end;
  }

  .language-switch {
    order: 2;
    justify-self: end;
  }

  .language-switch button {
    min-width: 42px;
    padding: 0 9px;
  }

  .nav {
    position: fixed;
    top: 67px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 12px;
    border: 1px solid rgba(216, 207, 193, 0.9);
    border-radius: 8px;
    background: rgba(250, 248, 242, 0.97);
    box-shadow: var(--shadow);
  }

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

  .nav a {
    padding: 13px 10px;
  }

  .hero {
    min-height: 90svh;
    align-items: flex-start;
    padding: 104px 20px 58px;
  }

  .hero-image {
    object-position: 66% center;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(250, 248, 242, 0.98) 0%, rgba(250, 248, 242, 0.84) 44%, rgba(250, 248, 242, 0.2) 100%),
      linear-gradient(90deg, rgba(250, 248, 242, 0.96), rgba(250, 248, 242, 0.22));
  }

  .hero-content {
    width: min(100%, 560px);
  }

  .hero h1 {
    font-size: clamp(66px, 22vw, 120px);
  }

  .hero-copy {
    font-size: 22px;
  }

  .signal-strip {
    grid-template-columns: 1fr;
    margin-top: 0;
    width: 100%;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .signal {
    min-height: 0;
    padding: 22px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .intro-grid,
  .section-heading,
  .platform {
    grid-template-columns: 1fr;
  }

  .section,
  .section.muted,
  .cta,
  .footer {
    width: 100%;
  }

  .section,
  .section.muted {
    padding: 72px 20px;
  }

  .intro {
    padding-top: 82px;
  }

  .cards.four,
  .timeline,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .timeline article,
  .timeline article:nth-child(2) {
    min-height: 0;
    padding: 30px 0 28px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .timeline span {
    margin-bottom: 18px;
  }

  .case-grid {
    border-right: 1px solid var(--line);
  }

  .case-grid article {
    min-height: 0;
  }

  .cta {
    margin-bottom: 0;
    padding: 58px 20px;
    border-radius: 0;
  }

  .contact-row .button {
    width: 100%;
  }

  .footer {
    flex-direction: column;
    padding: 26px 20px 34px;
  }
}

@media (max-width: 430px) {
  .site-header {
    gap: 8px;
  }

  .brand span:last-child {
    display: none;
  }

  .hero {
    min-height: 88svh;
  }

  .hero-actions .button {
    width: 100%;
  }

  .intro h2,
  .section-heading h2,
  .platform-copy h2,
  .cta h2 {
    font-size: 34px;
  }
}

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