:root {
  --ink: #243028;
  --ink-soft: #5f6f64;
  --meadow: #3d9a5f;
  --meadow-deep: #2f7f4c;
  --sky: #4ea0d4;
  --sky-deep: #3586ba;
  --harvest: #e6b23c;
  --harvest-deep: #c99628;
  --field: #f3faf5;
  --soil: #e6f1ea;
  --line: rgba(36, 48, 40, 0.11);
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(47, 127, 76, 0.12);
  --font-display: "ZCOOL QingKe HuangYou", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --nav-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 10% -12%, rgba(61, 154, 95, 0.16), transparent 55%),
    radial-gradient(700px 360px at 95% 0%, rgba(78, 160, 212, 0.14), transparent 50%),
    linear-gradient(180deg, #f7fcf8 0%, var(--field) 45%, #eaf5ee 100%);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; }

.container {
  width: min(1120px, calc(100% - 2.4rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: var(--white);
  border-radius: 12px;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  color: rgba(255,255,255,0.95);
  transition: 0.35s var(--ease);
}
.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(243, 250, 245, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}
.brand-seed {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 4px 4px 10px 10px;
  background: linear-gradient(180deg, var(--harvest), var(--meadow));
}

.nav-links {
  display: flex;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a { font-size: 0.94rem; opacity: 0.92; }
.nav-links a:hover { opacity: 1; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 12px;
  color: inherit;
}
.site-header.is-scrolled .nav-toggle {
  border-color: var(--line);
  background: rgba(255,255,255,0.8);
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 17px;
  height: 1.5px;
  background: currentColor;
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

/* Split hero: text + media side by side over full-bleed bg */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  padding: calc(var(--nav-h) + 2.5rem) 0 3.5rem;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: farmDrift 18s var(--ease) infinite alternate;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(28, 48, 36, 0.82) 0%, rgba(28, 48, 36, 0.55) 42%, rgba(28, 48, 36, 0.35) 100%),
    linear-gradient(180deg, rgba(28, 48, 36, 0.25), rgba(28, 48, 36, 0.55));
}
.hero-grid {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2.4rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  align-items: center;
}
.soft-tag {
  display: inline-flex;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.26);
  font-size: 0.84rem;
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.8s var(--ease) 0.08s forwards;
}
.hero-brand {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 7vw, 4.6rem);
  line-height: 1.05;
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.8s var(--ease) 0.2s forwards;
}
.hero-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  font-weight: 600;
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.8s var(--ease) 0.34s forwards;
}
.hero-desc {
  margin: 0 0 1.35rem;
  max-width: 34em;
  color: rgba(255,255,255,0.9);
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.8s var(--ease) 0.46s forwards;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.8s var(--ease) 0.58s forwards;
}
.hero-float {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) 0.4s forwards;
}
.hero-float img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 24px 50px rgba(0,0,0,0.28);
  border: 3px solid rgba(255,255,255,0.35);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  font-size: 0.94rem;
  transition: 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--harvest); color: #2f2608; }
.btn-primary:hover { background: #efc052; }
.btn-fast { background: var(--meadow); color: #fff; }
.btn-fast:hover { background: var(--meadow-deep); }
.btn-ghost {
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-outline {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}
.btn-outline:hover {
  border-color: var(--meadow);
  color: var(--meadow-deep);
}

.section { padding: clamp(3.4rem, 6.5vw, 5.4rem) 0; }

.section-head {
  max-width: 40rem;
  margin-bottom: 1.7rem;
}
.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--meadow-deep);
}
.section-head h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.4vw, 2.55rem);
}
.section-head p { margin: 0; color: var(--ink-soft); }

/* Merge pipeline - horizontal steps */
.merge-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}
.merge-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.3rem 1.15rem;
  box-shadow: var(--shadow);
}
.merge-card::after {
  content: "›";
  position: absolute;
  right: -0.55rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--meadow);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  z-index: 1;
}
.merge-card:last-child::after { display: none; }
.merge-card .step {
  display: inline-flex;
  margin-bottom: 0.55rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--soil);
  color: var(--meadow-deep);
  font-size: 0.78rem;
}
.merge-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}
.merge-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.soil-band {
  background: linear-gradient(180deg, rgba(230, 241, 234, 0.9), rgba(243, 250, 245, 0.95));
}

/* Patchwork mosaic - different from previous layouts */
.patchwork {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: 220px 220px;
  gap: 0.85rem;
}
.patch {
  overflow: hidden;
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.patch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.patch-tall {
  grid-row: 1 / span 2;
  min-height: 100%;
}
.patch-copy {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.3rem 1.2rem;
  box-shadow: var(--shadow);
  display: grid;
  align-content: center;
}
.patch-copy h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
}
.patch-copy p {
  margin: 0;
  color: var(--ink-soft);
}

.town-band {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  min-height: 380px;
  display: grid;
  align-items: end;
  color: #fff;
  box-shadow: var(--shadow);
}
.town-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.town-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,48,36,0.12), rgba(28,48,36,0.78));
}
.town-copy {
  position: relative;
  z-index: 1;
  padding: clamp(1.3rem, 4vw, 2.4rem);
  max-width: 38rem;
}
.town-copy h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.3rem);
}
.town-copy p {
  margin: 0;
  color: rgba(255,255,255,0.92);
}

.download-panel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  min-height: 290px;
  display: grid;
  align-items: center;
  color: #fff;
  box-shadow: var(--shadow);
}
.download-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.download-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(28,48,36,0.86), rgba(28,48,36,0.38));
}
.download-copy {
  position: relative;
  z-index: 1;
  padding: clamp(1.4rem, 4vw, 2.6rem);
  max-width: 34rem;
}
.download-copy h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.download-copy p {
  margin: 0 0 1.15rem;
  color: rgba(255,255,255,0.92);
}
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.site-footer {
  padding: 2rem 0 2.4rem;
  border-top: 1px solid var(--line);
  background: rgba(243, 250, 245, 0.95);
}
.footer-inner {
  display: grid;
  gap: 1rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.seo-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.65rem;
}
.seo-keywords a {
  font-size: 0.8rem;
  color: var(--ink-soft);
  opacity: 0.82;
}
.seo-keywords a:hover {
  color: var(--meadow-deep);
  opacity: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: 0.75s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}
@keyframes farmDrift {
  from { transform: scale(1.04); }
  to { transform: scale(1.1) translate(-1%, -0.5%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img,
  .soft-tag,
  .hero-brand,
  .hero-title,
  .hero-desc,
  .hero-actions,
  .hero-float,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .merge-rail,
  .patchwork {
    grid-template-columns: 1fr;
  }
  .patchwork {
    grid-template-rows: none;
  }
  .patch-tall { grid-row: auto; min-height: 260px; }
  .patch { min-height: 220px; }
  .merge-card::after { display: none; }
}

@media (max-width: 760px) {
  :root { --nav-h: 60px; }
  .nav-toggle { display: grid; }
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 1rem auto;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(243,250,245,0.98);
    color: var(--ink);
    box-shadow: var(--shadow);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    padding: 0.8rem;
    border-radius: 12px;
  }
  .nav-links a:hover { background: var(--soil); }
}

@media (max-width: 480px) {
  .container,
  .hero-grid { width: min(1120px, calc(100% - 1.3rem)); }
  .hero-actions,
  .download-actions { width: 100%; }
  .btn { width: 100%; }
}
