:root {
  color-scheme: light;
  --green-900: #073f2b;
  --green-800: #0c5638;
  --green-700: #12673f;
  --green-100: #eef5ef;
  --gold: #cda84f;
  --gold-soft: #f3e4bc;
  --ink: #17211b;
  --muted: #67736b;
  --paper: #ffffff;
  --surface: #ffffff;
  --surface-muted: #f5f8f4;
  --card: #ffffff;
  --white: #ffffff;
  --line: rgba(23, 33, 27, 0.12);
  --shadow: 0 24px 70px rgba(8, 41, 28, 0.16);
  --header-bg: rgba(255, 255, 255, 0.92);
  --page-max: 1240px;
  --wide-max: 1480px;
  --page-pad: clamp(20px, 6vw, 88px);
  --hero-overlay:
    linear-gradient(90deg, rgba(4, 28, 18, 0.84) 0%, rgba(4, 28, 18, 0.6) 42%, rgba(4, 28, 18, 0.12) 100%),
    linear-gradient(0deg, rgba(4, 28, 18, 0.58) 0%, rgba(4, 28, 18, 0.02) 42%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --green-900: #082f23;
    --green-800: #0f5c3e;
    --green-700: #26a064;
    --green-100: #11251c;
    --gold: #d7b65b;
    --gold-soft: #3c331e;
    --ink: #edf4ef;
    --muted: #a9b8ae;
    --paper: #080d0a;
    --surface: #0b130f;
    --surface-muted: #111c16;
    --card: #101b15;
    --white: #ffffff;
    --line: rgba(237, 244, 239, 0.13);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
    --header-bg: rgba(10, 18, 14, 0.88);
    --hero-overlay:
      linear-gradient(90deg, rgba(3, 14, 10, 0.88) 0%, rgba(3, 14, 10, 0.64) 42%, rgba(3, 14, 10, 0.22) 100%),
      linear-gradient(0deg, rgba(3, 14, 10, 0.7) 0%, rgba(3, 14, 10, 0.06) 42%);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --green-900: #082f23;
  --green-800: #0f5c3e;
  --green-700: #26a064;
  --green-100: #11251c;
  --gold: #d7b65b;
  --gold-soft: #3c331e;
  --ink: #edf4ef;
  --muted: #a9b8ae;
  --paper: #080d0a;
  --surface: #0b130f;
  --surface-muted: #111c16;
  --card: #101b15;
  --white: #ffffff;
  --line: rgba(237, 244, 239, 0.13);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --header-bg: rgba(10, 18, 14, 0.88);
  --hero-overlay:
    linear-gradient(90deg, rgba(3, 14, 10, 0.88) 0%, rgba(3, 14, 10, 0.64) 42%, rgba(3, 14, 10, 0.22) 100%),
    linear-gradient(0deg, rgba(3, 14, 10, 0.7) 0%, rgba(3, 14, 10, 0.06) 42%);
}

:root[data-theme="light"] {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--page-pad);
  color: var(--ink);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 34px rgba(8, 41, 28, 0.07);
  backdrop-filter: blur(18px);
  transition: background 180ms ease, box-shadow 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  padding-block: 10px;
  color: var(--ink);
  background: var(--header-bg);
  box-shadow: var(--shadow);
}

.brand img {
  width: clamp(134px, 14vw, 198px);
}

.logo-dark {
  display: none;
}

:root[data-theme="dark"] .logo-light {
  display: none;
}

:root[data-theme="dark"] .logo-dark {
  display: block;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.1vw, 32px);
  font-size: 14px;
  font-weight: 600;
}

.desktop-nav a {
  opacity: 0.9;
}

.desktop-nav a:hover {
  color: var(--gold);
}

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

button {
  font: inherit;
}

.theme-toggle,
.language-toggle,
.menu-toggle {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.theme-toggle {
  position: relative;
  overflow: hidden;
  border-color: var(--gold);
  color: var(--green-900);
  background: var(--gold);
}

.theme-icon {
  position: absolute;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: opacity 180ms ease, transform 180ms ease;
}

.theme-icon-moon {
  opacity: 0;
  transform: translateY(18px) rotate(-35deg);
}

:root[data-theme="dark"] .theme-toggle {
  color: #07110d;
  background: #e3c76b;
}

:root[data-theme="dark"] .theme-icon-sun {
  opacity: 0;
  transform: translateY(-18px) rotate(35deg);
}

:root[data-theme="dark"] .theme-icon-moon {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

.language-toggle {
  font-size: 13px;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  align-content: center;
  justify-items: center;
  gap: 4px;
}

.menu-toggle span {
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 18;
  pointer-events: none;
  background: rgba(0, 0, 0, 0);
  transition: background 220ms ease;
}

.nav-backdrop.is-open {
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.44);
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 21;
  display: flex;
  width: min(86vw, 360px);
  height: 100svh;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: translateX(104%);
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 700;
}

.mobile-nav-close {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.mobile-nav-links {
  display: grid;
  gap: 4px;
  padding-top: 24px;
}

.mobile-nav-links a {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 20px;
  font-weight: 800;
}

.hero {
  position: relative;
  width: 100%;
  min-height: clamp(560px, 76svh, 820px);
  margin-top: 84px;
  overflow: hidden;
  color: var(--white);
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.24);
  content: "";
}

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

.hero-media {
  object-fit: cover;
  object-position: center right;
}

.hero-overlay {
  background: var(--hero-overlay);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(680px, calc(100% - 40px));
  padding: clamp(122px, 15vh, 180px) 0 clamp(86px, 10vh, 122px);
  margin-left: max(var(--page-pad), calc((100vw - var(--wide-max)) / 2 + var(--page-pad)));
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--green-800);
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 900;
  letter-spacing: 0;
}

.section-kicker::after {
  display: block;
  width: 42px;
  height: 2px;
  background: var(--gold);
  content: "";
}

.hero h1 {
  max-width: 640px;
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.06;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(16px, 1.45vw, 20px);
}

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

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
}

.btn.primary {
  color: var(--green-900);
  background: var(--gold);
}

.btn.primary:hover {
  background: #dcb95f;
}

.btn.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.62);
}

.btn.dark {
  color: var(--green-900);
}

.intro-band,
.section,
.innovation,
.capability-band,
.contact-section {
  padding: clamp(64px, 7vw, 104px) var(--page-pad);
}

.intro-band > .section-grid,
.section > .section-heading,
.section > .solution-grid,
.section > .product-list,
.section > .global-layout,
.section > .insight-grid,
.capability-band {
  max-width: var(--page-max);
  margin-right: auto;
  margin-left: auto;
}

.capability-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(34px, 6vw, 92px);
  align-items: start;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.capability-intro h2 {
  max-width: 520px;
}

.capability-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.capability-list article {
  display: grid;
  grid-template-columns: 68px minmax(150px, 0.45fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 42px);
  align-items: center;
  min-height: 96px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.capability-list article:last-child {
  border-bottom: 1px solid var(--line);
}

.capability-list span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.capability-list h3 {
  font-size: 22px;
}

.capability-list p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.58;
}

.section-grid,
.global-layout,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

h2 {
  max-width: 820px;
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(28px, 2.85vw, 38px);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.28;
}

.rich-text p,
.innovation-copy p,
.contact-section p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 18px;
}

.section-heading {
  display: grid;
  gap: 0;
  margin-bottom: clamp(34px, 5vw, 62px);
}

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

.solution-card {
  min-height: 280px;
  padding: 30px;
  background: var(--card);
}

.solution-card:hover {
  background: var(--green-900);
  color: var(--white);
}

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

.card-index {
  display: block;
  margin-bottom: 74px;
  color: var(--gold);
  font-weight: 800;
}

.solution-card p,
.product-list p {
  margin: 14px 0 0;
  color: var(--muted);
}

.muted {
  background: var(--surface-muted);
}

.product-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.product-list article,
.insight-grid article {
  min-height: 170px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

.product-label {
  display: block;
  margin-bottom: 42px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.innovation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: clamp(34px, 6vw, 92px);
  align-items: center;
  color: var(--white);
  background: var(--green-900);
}

.innovation-copy p {
  max-width: 720px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.72);
}

.innovation .section-kicker,
.quality-panel .section-kicker,
.contact-section .section-kicker {
  color: var(--gold);
}

.metric-panel {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
}

.metric-panel div {
  padding: 30px;
  background: rgba(255, 255, 255, 0.08);
}

.metric-panel strong {
  display: block;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
}

.metric-panel span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.76);
}

.quality-section {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(32px, 5vw, 78px);
  align-items: stretch;
  padding: clamp(64px, 7vw, 104px) var(--page-pad);
  background: var(--surface);
}

.quality-panel {
  display: flex;
  min-height: 470px;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(34px, 5vw, 64px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(7, 63, 43, 0.95), rgba(7, 63, 43, 0.72)),
    url("../images/hero-soil-crop.webp") center / cover;
}

.quality-panel p:not(.section-kicker) {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.quality-steps {
  display: grid;
  border-top: 1px solid var(--line);
}

.quality-steps div {
  display: grid;
  min-height: 150px;
  align-content: center;
  gap: 8px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.quality-steps span {
  color: var(--gold);
  font-weight: 900;
}

.quality-steps strong {
  font-size: 23px;
}

.quality-steps p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.region-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.global-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.region-grid span {
  min-height: 92px;
  padding: 28px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: var(--card);
  font-weight: 800;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.insight-grid p {
  margin: 0 0 40px;
  color: var(--gold);
  font-weight: 800;
}

.contact-section {
  color: var(--white);
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
}

.contact-section p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.74);
}

.contact-section .btn {
  justify-self: end;
  align-self: center;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px var(--page-pad);
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.site-footer img {
  width: 160px;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

  .menu-toggle {
    display: grid;
  }

  .section-grid,
  .global-layout,
  .capability-band,
  .contact-section,
  .innovation,
  .quality-section {
    grid-template-columns: 1fr;
  }

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

  .capability-list article {
    grid-template-columns: 52px minmax(120px, 0.45fr) minmax(0, 1fr);
  }

  .contact-section .btn {
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding-inline: 16px;
  }

  .brand img {
    width: 124px;
  }

  .header-actions {
    gap: 7px;
  }

  .theme-toggle,
  .language-toggle,
  .menu-toggle {
    width: 42px;
    height: 42px;
  }

  .hero {
    width: 100%;
    min-height: 78svh;
    margin-top: 84px;
  }

  .hero-content {
    width: calc(100% - 32px);
    padding-top: 98px;
    padding-bottom: 72px;
    margin-left: 16px;
  }

  .hero h1 {
    font-size: clamp(38px, 11vw, 52px);
  }

  .solution-grid,
  .product-list,
  .insight-grid,
  .region-grid {
    grid-template-columns: 1fr;
  }

  .capability-list article,
  .capability-list article:nth-child(2n),
  .capability-list article:last-child {
    min-height: auto;
    grid-template-columns: 44px 1fr;
    gap: 8px 16px;
    padding: 18px 0;
  }

  .capability-list p {
    grid-column: 2;
    max-width: none;
  }

  .quality-panel {
    min-height: 380px;
  }

  .solution-card {
    min-height: 220px;
  }

  .card-index {
    margin-bottom: 42px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
