:root {
  --cream: #fffdf8;
  --cream-deep: #fff3df;
  --paper: #ffffff;
  --sage: #eef8ec;
  --mint: #8fd9a8;
  --leaf: #3e7f52;
  --leaf-dark: #1d5f2e;
  --sun: #ffd86b;
  --coral: #ffb58a;
  --sky: #b7ddf2;
  --lavender: #cdb7e9;
  --ink: #2e2e2e;
  --muted: #6f766f;
  --line: rgba(62, 127, 82, 0.18);
  --shadow: 0 22px 60px rgba(76, 102, 69, 0.16);
  --max: 1160px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Trebuchet MS", "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 1000;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 16px;
  clip: auto;
  color: var(--paper);
  background: var(--leaf-dark);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  padding: 14px 20px;
  transition: background 180ms ease, box-shadow 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled {
  padding-top: 10px;
  padding-bottom: 10px;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: 0 10px 30px rgba(69, 91, 60, 0.08);
  backdrop-filter: blur(14px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  gap: 28px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  width: 142px;
  min-width: 142px;
}

.brand-link img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 12px rgba(52, 95, 46, 0.16));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--leaf-dark);
  font-size: 15px;
  font-weight: 700;
}

.nav-links a {
  padding: 8px 0;
}

.nav-links a:not(.nav-cta):hover {
  color: #2f934c;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 800;
  white-space: nowrap;
}

.nav-cta {
  padding: 0 16px;
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(95, 117, 77, 0.12);
}

.nav-cta img,
.button img {
  width: 19px;
  height: 19px;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--leaf-dark);
}

.hero-section {
  position: relative;
  min-height: 86svh;
  overflow: hidden;
  padding: 112px 24px 58px;
  background: var(--cream);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.18), rgba(255, 253, 248, 0.92) 92%),
    url("./assets/images/home-hero-meadow.png") center bottom / cover no-repeat;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(62, 127, 82, 0.045) 0,
      rgba(62, 127, 82, 0.045) 1px,
      transparent 1px,
      transparent 48px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255, 216, 107, 0.08) 0,
      rgba(255, 216, 107, 0.08) 1px,
      transparent 1px,
      transparent 48px
    );
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 470px);
  align-items: center;
  max-width: var(--max);
  min-height: calc(86svh - 170px);
  margin: 0 auto;
  gap: 44px;
}

.eyebrow,
.section-kicker,
.panel-label {
  margin: 0 0 14px;
  color: var(--leaf);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  color: var(--leaf-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 88px;
  line-height: 0.95;
  font-weight: 800;
}

.hero-subtitle {
  margin: 16px 0 0;
  color: var(--leaf);
  font-size: 30px;
  font-weight: 900;
}

.hero-text {
  max-width: 560px;
  margin: 20px 0 0;
  color: #485348;
  font-size: 18px;
}

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

.button {
  min-width: 148px;
  padding: 0 20px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button.primary {
  color: var(--paper);
  background: var(--leaf-dark);
  border-color: var(--leaf-dark);
  box-shadow: 0 18px 34px rgba(32, 97, 50, 0.22);
}

.button.secondary {
  color: var(--leaf-dark);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 14px 30px rgba(95, 117, 77, 0.1);
}

.hero-product {
  position: relative;
  justify-self: center;
  width: min(100%, 460px);
  min-height: 510px;
}

.phone-frame {
  width: 322px;
  height: 574px;
  margin-left: auto;
  overflow: hidden;
  border: 10px solid #20251f;
  border-radius: 34px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 8% 6%;
}

.hero-mascot {
  position: absolute;
  left: 0;
  bottom: 26px;
  width: 220px;
  filter: drop-shadow(0 24px 35px rgba(61, 106, 46, 0.25));
  animation: floaty 4.6s ease-in-out infinite;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.proof-band {
  position: relative;
  z-index: 2;
  padding: 0 24px 42px;
  margin-top: -26px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--max);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 20px 45px rgba(72, 97, 58, 0.1);
  backdrop-filter: blur(12px);
}

.proof-grid div {
  padding: 24px;
  border-right: 1px solid var(--line);
}

.proof-grid div:last-child {
  border-right: 0;
}

.proof-grid strong {
  display: block;
  color: var(--leaf-dark);
  font-size: 26px;
  line-height: 1.1;
}

.proof-grid span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 90px 24px;
}

.section-heading {
  display: grid;
  max-width: var(--max);
  margin: 0 auto 38px;
  gap: 18px;
}

.section-heading.two-column {
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  align-items: end;
}

.section-kicker {
  max-width: var(--max);
  margin-right: auto;
  margin-left: auto;
}

.section h2,
.download-section h2 {
  margin: 0;
  color: var(--leaf-dark);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 42px;
  line-height: 1.18;
}

.section-heading p,
.companion-copy p,
.garden-panel p,
.download-content p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.why-section {
  background:
    linear-gradient(90deg, rgba(183, 221, 242, 0.16), transparent 38%),
    var(--cream);
}

.reason-grid,
.loop-grid,
.trust-grid {
  display: grid;
  max-width: var(--max);
  margin: 0 auto;
  gap: 18px;
}

.reason-grid {
  grid-template-columns: repeat(3, 1fr);
}

.reason-card,
.loop-step,
.trust-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 40px rgba(87, 111, 72, 0.08);
}

.reason-card {
  padding: 24px;
}

.reason-card img,
.trust-item img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.reason-card h3,
.loop-step h3,
.trust-item h3,
.feature-list h3,
.garden-panel h3 {
  margin: 16px 0 8px;
  color: var(--leaf-dark);
  font-size: 22px;
  line-height: 1.25;
}

.reason-card p,
.loop-step p,
.trust-item p,
.feature-list p {
  margin: 0;
  color: var(--muted);
}

.product-section {
  background:
    linear-gradient(180deg, rgba(255, 243, 223, 0.78), rgba(255, 253, 248, 0.96)),
    var(--cream-deep);
}

.showcase {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 290px;
  max-width: var(--max);
  margin: 0 auto;
  gap: 22px;
  align-items: stretch;
}

.screen-tabs {
  display: grid;
  align-content: start;
  gap: 10px;
}

.screen-tab {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--leaf-dark);
  background: rgba(255, 255, 255, 0.68);
  text-align: left;
  font-weight: 900;
  cursor: pointer;
}

.screen-tab.is-active {
  color: var(--paper);
  background: var(--leaf);
  box-shadow: 0 14px 30px rgba(32, 97, 50, 0.18);
}

.screen-stage {
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.screen-stage img {
  width: 100%;
  height: 100%;
  max-height: 680px;
  object-fit: cover;
  object-position: top center;
}

.feature-list {
  align-self: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 40px rgba(87, 111, 72, 0.08);
}

.feature-list h3 {
  margin-top: 0;
}

.mechanism-section {
  background:
    linear-gradient(90deg, rgba(205, 183, 233, 0.16), transparent 42%),
    var(--cream);
}

.loop-grid {
  grid-template-columns: repeat(4, 1fr);
}

.loop-step {
  padding: 22px;
}

.loop-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--leaf-dark);
  background: var(--sun);
  font-weight: 900;
}

.garden-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.8fr);
  align-items: center;
  max-width: var(--max);
  margin: 32px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7fff0;
  box-shadow: var(--shadow);
}

.garden-panel img {
  width: 100%;
  height: 410px;
  object-fit: cover;
}

.garden-panel div {
  padding: 38px;
}

.garden-panel h3 {
  margin-top: 0;
  font-size: 30px;
}

.companion-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1fr);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  gap: 34px;
}

.companion-copy .section-kicker {
  margin-left: 0;
}

.companion-copy h2 {
  margin: 0 0 18px;
}

.plant-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.plant-row img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(238, 248, 236, 0.78)),
    var(--sage);
  padding: 18px;
  box-shadow: 0 18px 40px rgba(87, 111, 72, 0.08);
}

.privacy-section {
  background:
    linear-gradient(180deg, rgba(238, 248, 236, 0.7), rgba(255, 253, 248, 1)),
    var(--sage);
}

.trust-grid {
  grid-template-columns: repeat(3, 1fr);
}

.trust-item {
  padding: 24px;
}

.download-section {
  position: relative;
  overflow: hidden;
  padding: 82px 24px;
  background: var(--leaf-dark);
}

.download-bg {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background: url("./assets/images/home-hero-meadow.png") center bottom / cover no-repeat;
}

.download-content {
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  gap: 28px;
  color: var(--paper);
}

.download-content > img {
  width: 120px;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.18));
}

.download-content h2,
.download-content .section-kicker {
  color: var(--paper);
}

.download-content p {
  max-width: 610px;
  color: rgba(255, 255, 255, 0.82);
}

.download-content .button.primary {
  color: var(--leaf-dark);
  background: var(--sun);
  border-color: var(--sun);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 38px 24px;
  color: var(--muted);
}

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

.site-footer p {
  margin: 8px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--leaf-dark);
  font-weight: 800;
}

@media (max-width: 980px) {
  .hero-inner,
  .section-heading.two-column,
  .showcase,
  .garden-panel,
  .companion-section,
  .download-content {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
  }

  .hero-copy h1 {
    font-size: 64px;
  }

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

  .hero-product {
    min-height: 420px;
  }

  .phone-frame {
    width: 280px;
    height: 500px;
    margin: 0 auto;
  }

  .hero-mascot {
    left: calc(50% - 210px);
    width: 170px;
  }

  .proof-grid,
  .reason-grid,
  .loop-grid,
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-grid div:nth-child(2) {
    border-right: 0;
  }

  .proof-grid div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .screen-tabs {
    grid-template-columns: repeat(4, 1fr);
  }

  .screen-tab {
    text-align: center;
  }

  .screen-stage {
    min-height: 420px;
  }

  .download-content .button {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 10px 14px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    right: 14px;
    left: 14px;
    display: none;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 253, 248, 0.96);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: grid;
    gap: 8px;
  }

  .nav-cta {
    justify-content: flex-start;
  }

  .hero-section {
    min-height: 88svh;
    padding: 92px 18px 38px;
  }

  .hero-copy h1 {
    font-size: 54px;
  }

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

  .hero-text,
  .section-heading p,
  .companion-copy p,
  .garden-panel p,
  .download-content p {
    font-size: 16px;
  }

  .hero-product {
    min-height: 360px;
  }

  .phone-frame {
    width: 220px;
    height: 392px;
    border-width: 8px;
    border-radius: 28px;
  }

  .hero-mascot {
    left: calc(50% - 164px);
    bottom: 14px;
    width: 132px;
  }

  .proof-band {
    margin-top: 0;
    padding: 0 18px 28px;
  }

  .section {
    padding: 64px 18px;
  }

  .section h2,
  .download-section h2 {
    font-size: 32px;
  }

  .proof-grid,
  .reason-grid,
  .loop-grid,
  .trust-grid,
  .plant-row {
    grid-template-columns: 1fr;
  }

  .proof-grid div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-grid div:last-child {
    border-bottom: 0;
  }

  .screen-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .screen-stage {
    min-height: 360px;
  }

  .garden-panel img {
    height: 300px;
  }

  .garden-panel div,
  .feature-list,
  .reason-card,
  .loop-step,
  .trust-item {
    padding: 20px;
  }

  .download-content {
    text-align: left;
  }

  .download-content > img {
    width: 92px;
  }

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

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