:root {
  --bg: #f7fbf7;
  --white: #ffffff;
  --ink: #121a14;
  --text: #3d4a40;
  --muted: #6a776d;
  --faint: #91a296;
  --green: #12a23a;
  --green-deep: #087429;
  --green-soft: #e8f8eb;
  --mint: #c9f2d1;
  --leaf: #69c980;
  --line: rgba(21, 91, 42, 0.12);
  --shadow: 0 22px 70px rgba(29, 91, 48, 0.12);
  --shadow-card: 0 18px 48px rgba(35, 77, 49, 0.1);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui,
    -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

.section-shell {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 50;
  display: flex;
  width: min(1240px, calc(100% - 36px));
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 11px 14px 11px 16px;
  border: 1px solid rgba(18, 162, 58, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 44px rgba(28, 91, 46, 0.1);
  transform: translateX(-50%);
  backdrop-filter: blur(20px);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 48px rgba(28, 91, 46, 0.14);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(18, 162, 58, 0.18);
  border-radius: var(--radius);
  background: #fff;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-copy strong {
  display: block;
  color: var(--ink);
  font-size: 17px;
  font-weight: 950;
  letter-spacing: 0;
}

.brand-copy small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
}

.main-nav a {
  position: relative;
  padding: 9px 0;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--green);
  content: "";
  opacity: 0;
  transform: scaleX(0.42);
  transition: 180ms ease;
}

.main-nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-weight: 900;
  letter-spacing: 0;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.header-cta {
  min-height: 44px;
  padding: 0 22px;
  background: linear-gradient(135deg, var(--green), #0f8f34);
  color: #fff;
  font-size: 15px;
  box-shadow: 0 12px 28px rgba(18, 162, 58, 0.24);
}

.button {
  min-height: 56px;
  padding: 0 28px;
  font-size: 16px;
}

.button:hover,
.header-cta:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--green), #0d8b32);
  color: #fff;
  box-shadow: 0 18px 38px rgba(18, 162, 58, 0.24);
}

.button-secondary {
  border: 1px solid rgba(21, 91, 42, 0.22);
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
}

.button:focus-visible,
.header-cta:focus-visible,
.main-nav a:focus-visible,
.menu-button:focus-visible,
.contact-email:focus-visible {
  outline: 3px solid rgba(18, 162, 58, 0.32);
  outline-offset: 3px;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(18, 162, 58, 0.18);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.menu-button span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--green-deep);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 134px 0 44px;
  background:
    radial-gradient(circle at 78% 18%, rgba(105, 201, 128, 0.24), transparent 28rem),
    radial-gradient(circle at 20% 82%, rgba(201, 242, 209, 0.72), transparent 23rem),
    linear-gradient(180deg, #fbfffb 0%, #f6fbf7 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 162, 58, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(18, 162, 58, 0.045) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 78%, transparent 100%);
  content: "";
}

.hero-bg::after {
  position: absolute;
  right: -140px;
  top: 118px;
  width: 620px;
  height: 620px;
  border: 1px dashed rgba(18, 162, 58, 0.28);
  border-radius: 50%;
  content: "";
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(560px, 1.1fr);
  gap: 56px;
  align-items: center;
  min-height: 650px;
}

.hero-copy h1 {
  margin: 0;
  color: var(--ink);
  font-size: 64px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.08;
  text-wrap: balance;
}

.hero-copy h1 span {
  color: var(--green);
}

.hero-subtitle {
  margin: 18px 0 0;
  color: var(--ink);
  font-size: 30px;
  font-weight: 650;
  line-height: 1.28;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 24px;
}

.hero-points span {
  position: relative;
  color: #3f5c49;
  font-size: 15px;
  font-weight: 850;
  padding-left: 22px;
}

.hero-points span::before {
  position: absolute;
  left: 0;
  top: 4px;
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  content: "✓";
  font-size: 10px;
  line-height: 1;
}

.hero-lede {
  max-width: 620px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.trust-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 750;
}

.trust-row strong {
  color: var(--green);
}

.avatar-stack {
  display: flex;
}

.avatar-stack i {
  width: 34px;
  height: 34px;
  margin-left: -8px;
  border: 3px solid #fff;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.72), transparent 0.5rem),
    linear-gradient(135deg, #eac28d, #9f7c56);
}

.avatar-stack i:first-child {
  margin-left: 0;
}

.avatar-stack i:nth-child(2) {
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.72), transparent 0.5rem),
    linear-gradient(135deg, #8f6a4b, #5b3d2a);
}

.avatar-stack i:nth-child(3) {
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.72), transparent 0.5rem),
    linear-gradient(135deg, #e79a39, #cf7028);
}

.avatar-stack i:nth-child(4) {
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.72), transparent 0.5rem),
    linear-gradient(135deg, #d7e8dc, #93b99c);
}

.hero-visual {
  position: relative;
  min-height: 600px;
}

.orbit {
  position: absolute;
  border: 1px dashed rgba(18, 162, 58, 0.22);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-a {
  right: -28px;
  top: 116px;
  width: 520px;
  height: 320px;
  transform: rotate(-12deg);
}

.orbit-b {
  right: 80px;
  top: 200px;
  width: 360px;
  height: 220px;
  transform: rotate(28deg);
}

.pet-profile-card,
.analysis-card,
.formula-card,
.ingredient-card {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
}

.pet-profile-card {
  top: 92px;
  left: 0;
  width: 250px;
  padding: 22px;
  transform: rotate(-3deg);
}

.pet-photo {
  float: left;
  width: 74px;
  height: 74px;
  margin-right: 14px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--green-soft);
}

.pet-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pet-name strong {
  display: block;
  color: var(--ink);
  font-size: 24px;
  font-weight: 950;
}

.pet-name span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.status-chip {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin-top: 10px;
  border-radius: var(--radius);
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 900;
  padding: 0 10px;
}

.pet-profile-card dl {
  clear: both;
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
}

.pet-profile-card dl div {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.pet-profile-card dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.pet-profile-card dd {
  margin: 5px 0 0;
  color: var(--green);
  font-size: 15px;
  font-weight: 950;
}

.analysis-card {
  top: 58px;
  right: 18px;
  width: 520px;
  padding: 22px;
  transform: rotate(3deg);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.card-head strong,
.formula-card strong,
.ingredient-card strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 950;
}

.card-head span {
  border-radius: var(--radius);
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 900;
  padding: 8px 10px;
}

.nutrition-chart {
  margin-top: 18px;
}

.nutrition-chart svg {
  display: block;
  width: 100%;
  height: 180px;
}

.grid-line {
  fill: none;
  stroke: rgba(21, 91, 42, 0.08);
  stroke-width: 1;
}

.chart-fill {
  fill: rgba(18, 162, 58, 0.12);
}

.chart-line {
  fill: none;
  stroke: var(--green);
  stroke-linecap: round;
  stroke-width: 5;
}

.nutrition-chart circle {
  fill: #fff;
  stroke: var(--green);
  stroke-width: 4;
}

.chart-labels {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.formula-card {
  right: 40px;
  top: 320px;
  width: 560px;
  padding: 22px;
}

.formula-metrics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.formula-metrics span {
  color: var(--faint);
  font-size: 12px;
  font-weight: 800;
}

.formula-metrics b {
  display: block;
  color: var(--green);
  font-size: 21px;
  font-weight: 950;
}

.ingredient-card {
  right: 4px;
  bottom: 28px;
  width: 610px;
  padding: 20px;
}

.ingredient-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.ingredient-chips span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border-radius: var(--radius);
  background: #f4f8f4;
  color: #46584b;
  font-size: 14px;
  font-weight: 850;
  padding: 0 14px;
}

.core-section,
.ingredients-section,
.service-section,
.about-section,
.contact-section {
  padding: 96px 0;
}

.core-section {
  background: #fff;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading h2,
.section-copy h2,
.about-card h2,
.contact-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: 42px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.18;
  text-wrap: balance;
}

.section-heading h2 em {
  color: var(--green);
  font-style: normal;
}

.section-heading p,
.section-copy p,
.about-text p,
.contact-panel p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.section-label {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.feature-card,
.step-card,
.about-card,
.contact-panel,
.ingredient-board {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.feature-card {
  min-height: 246px;
  padding: 28px;
}

.feature-icon {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-soft), #f6fff7);
  color: var(--green);
  font-size: 18px;
  font-weight: 950;
}

.feature-card h3,
.step-card h3 {
  margin: 24px 0 12px;
  color: var(--ink);
  font-size: 23px;
  font-weight: 950;
}

.feature-card p,
.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.feature-card a {
  display: inline-flex;
  margin-top: 20px;
  color: var(--green);
  font-size: 14px;
  font-weight: 950;
}

.ingredients-section {
  background:
    radial-gradient(circle at 16% 26%, rgba(201, 242, 209, 0.76), transparent 22rem),
    #f7fbf7;
}

.ingredients-grid,
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 54px;
  align-items: center;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  color: #405548;
  font-size: 15px;
  font-weight: 850;
  padding-left: 28px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 2px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  content: "✓";
  font-size: 11px;
}

.ingredient-board {
  overflow: hidden;
}

.board-row {
  display: grid;
  grid-template-columns: 0.8fr 1.25fr 1fr;
  gap: 18px;
  align-items: center;
  min-height: 78px;
  padding: 18px 22px;
  border-top: 1px solid var(--line);
}

.board-row:first-child {
  border-top: 0;
}

.board-row strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.board-row span,
.board-row i {
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
}

.board-head {
  min-height: 52px;
  background: var(--green-deep);
}

.board-head span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.service-section {
  background: #fff;
}

.service-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.step-card {
  min-height: 230px;
  padding: 24px;
}

.step-card span {
  color: var(--green);
  font-size: 15px;
  font-weight: 950;
}

.about-section {
  background:
    linear-gradient(135deg, rgba(18, 162, 58, 0.08), transparent 46%),
    var(--green-soft);
}

.about-card {
  padding: 34px;
}

.about-card span {
  color: var(--green);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-card h2 {
  margin-top: 16px;
}

.about-text p {
  color: #405548;
  font-size: 18px;
}

.contact-section {
  background: #f7fbf7;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
  padding: 38px;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.contact-email {
  color: var(--green-deep);
  font-size: 16px;
  font-weight: 900;
}

.site-footer {
  padding: 34px 0 42px;
  background: #fff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 14px;
  margin: 0;
  font-size: 13px;
  font-weight: 750;
}

.footer-legal a {
  color: var(--green-deep);
}

.footer-legal a:hover {
  text-decoration: underline;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual {
    min-height: 540px;
  }

  .analysis-card {
    right: 0;
  }

  .formula-card,
  .ingredient-card {
    right: 0;
  }

  .feature-grid,
  .service-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .section-shell {
    width: min(100% - 32px, var(--max));
  }

  .site-header {
    min-height: 64px;
    width: calc(100% - 28px);
    padding: 9px 10px;
  }

  .brand-copy small,
  .header-cta {
    display: none;
  }

  .menu-button {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 88px;
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    min-height: 48px;
    padding: 14px 12px;
  }

  .main-nav a::after {
    display: none;
  }

  .hero {
    padding: 116px 0 58px;
  }

  .hero-copy h1 {
    font-size: 50px;
  }

  .hero-subtitle {
    font-size: 24px;
  }

  .hero-visual {
    min-height: 620px;
  }

  .analysis-card,
  .formula-card,
  .ingredient-card,
  .pet-profile-card {
    position: relative;
    inset: auto;
    width: 100%;
    transform: none;
  }

  .hero-visual {
    display: grid;
    gap: 16px;
  }

  .orbit {
    display: none;
  }

  .ingredients-grid,
  .about-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    align-items: flex-start;
  }

  .section-heading h2,
  .section-copy h2,
  .about-card h2,
  .contact-panel h2 {
    font-size: 34px;
  }

  .core-section,
  .ingredients-section,
  .service-section,
  .about-section,
  .contact-section {
    padding: 74px 0;
  }
}

@media (max-width: 580px) {
  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-copy strong {
    font-size: 16px;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

  .hero {
    padding: 104px 0 28px;
  }

  .hero-subtitle {
    font-size: 21px;
  }

  .hero-lede {
    font-size: 16px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .trust-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-visual {
    display: none;
  }

  .chart-labels,
  .formula-metrics,
  .board-row,
  .feature-grid,
  .service-steps,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .chart-labels {
    text-align: left;
  }

  .section-heading {
    text-align: left;
  }

  .feature-card,
  .contact-panel,
  .about-card {
    padding: 24px;
  }
}
