:root {
  color-scheme: light;
  --ink: #2f3f36;
  --muted: #748078;
  --green: #526f60;
  --paper: #faf8f2;
  --line: #e4e7df;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans CJK SC", sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
:focus-visible { outline: 3px solid #7ca18b; outline-offset: 4px; }
.shell { max-width: 1240px; margin-inline: auto; padding-inline: 40px; }

.site-header { background: var(--paper); }
.nav { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 700; letter-spacing: .06em; white-space: nowrap; }
.brand img { border-radius: 12px; }
.nav-links { display: flex; align-items: center; gap: 36px; font-size: 14px; color: #526159; }
.nav-links a:hover, .text-link:hover { color: #284533; }
.nav-action { padding: 12px 20px; border: 1px solid #a9b9ae; border-radius: 30px; color: var(--green); font-weight: 600; white-space: nowrap; }

.hero { position: relative; overflow: hidden; min-height: 608px; background: #f0eee7; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #f0eee7 0%, rgba(240,238,231,.97) 35%, rgba(240,238,231,.45) 60%, transparent 82%); pointer-events: none; }
.hero-image { position: absolute; right: 0; top: 0; width: 65%; height: 100%; object-fit: cover; object-position: center; }
.hero-inner { position: relative; z-index: 1; min-height: 608px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hero-copy { max-width: 570px; padding-block: 28px 40px; }
.eyebrow, .kicker { color: #758f7c; font-size: 13px; font-weight: 700; letter-spacing: .18em; }
.hero h1, .section h2, .family h2, .start h2, .feature h3 { font-family: "Songti SC", "Noto Serif CJK SC", serif; font-weight: 600; }
.hero h1 { margin: 30px 0 22px; font-size: clamp(44px, 4.2vw, 64px); line-height: 1.22; letter-spacing: .015em; }
.hero-description { max-width: 480px; margin-bottom: 36px; color: #58675c; font-size: 18px; line-height: 1.85; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 14px 26px; border-radius: 40px; background: var(--green); color: #fff; font-size: 15px; font-weight: 600; }
.button:hover { background: #3c5c4a; }
.text-link { color: var(--green); font-size: 14px; font-weight: 600; }
.hero-note { margin: 22px 0 0; color: #829087; font-size: 12px; }
.hero-code { align-self: flex-end; display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 0 0 auto; margin: 0 0 35px auto; padding: 10px 10px 12px; border-radius: 16px; background: #fff; box-shadow: 0 18px 45px rgba(43, 55, 43, .18); color: var(--ink); font-size: 11px; font-weight: 600; }
.hero-code img { width: 140px; height: 140px; }

.section { padding-block: 104px; }
.intro { text-align: center; }
.kicker { margin-bottom: 0; }
.section h2, .family h2, .start h2 { margin: 16px 0; font-size: 42px; line-height: 1.3; }
.section-lede { max-width: 690px; margin-inline: auto; color: var(--muted); font-size: 17px; line-height: 1.85; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
.feature { overflow: hidden; border: 1px solid #eceee9; border-radius: 24px; background: #fff; text-align: left; box-shadow: 0 20px 50px rgba(71, 87, 69, .045); }
.feature > img { width: 100%; height: 220px; object-fit: cover; }
.feature-body { padding: 28px 30px 31px; }
.feature-number { margin-bottom: 0; color: #91a493; font-size: 12px; font-weight: 700; letter-spacing: .13em; }
.feature h3 { margin: 12px 0 10px; font-size: 25px; }
.feature-body > p:last-child { margin-bottom: 0; color: #78837a; font-size: 14px; line-height: 1.8; }

.family { background: #e9eee7; padding-block: 88px; }
.family-inner { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 70px; }
.family-inner > img { width: 100%; height: 410px; object-fit: cover; border-radius: 24px; }
.family-tag { display: inline-block; margin-bottom: 23px; padding: 9px 14px; border-radius: 30px; background: #fff9ed; color: #8a7652; font-size: 12px; letter-spacing: .08em; }
.family h2 { margin: 0 0 24px; }
.family-copy > p:not(.family-tag) { max-width: 440px; color: #687a6d; font-size: 17px; line-height: 1.9; }

.start { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 60px; padding-block: 105px 115px; }
.start h2 { margin-block: 20px; }
.start-copy > p:last-child { max-width: 500px; margin-bottom: 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.code-card { padding: 22px 26px 18px; border: 1px solid #e8ebe4; border-radius: 24px; background: #fff; box-shadow: 0 20px 60px rgba(71, 87, 69, .07); text-align: center; }
.code-card img { width: 220px; height: 220px; }
.code-card p { margin: 7px 0 0; color: #536b5b; font-size: 13px; font-weight: 600; }
.site-footer { border-top: 1px solid var(--line); padding-block: 30px; color: #91a096; font-size: 12px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }

@media (max-width: 880px) {
  .shell { padding-inline: 24px; }
  .nav { min-height: 72px; }
  .hero-image { width: 100%; opacity: .36; }
  .hero::after { background: linear-gradient(90deg, #f0eee7 0%, rgba(240,238,231,.85) 64%, rgba(240,238,231,.55) 100%); }
  .hero, .hero-inner { min-height: 570px; }
  .hero-code { display: none; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .family-inner { gap: 32px; }
}

@media (max-width: 560px) {
  .shell { padding-inline: 22px; }
  .nav { min-height: 68px; }
  .brand { font-size: 19px; }
  .brand img { width: 32px; height: 32px; }
  .nav-links > a:not(.nav-action) { display: none; }
  .nav-action { padding: 10px 14px; font-size: 12px; }
  .hero { min-height: 760px; }
  .hero-inner { min-height: 760px; align-items: flex-start; }
  .hero-image { top: auto; bottom: 0; width: 100%; height: 58%; object-position: center; opacity: .83; }
  .hero::after { background: linear-gradient(180deg, #f0eee7 0%, #f0eee7 44%, rgba(240,238,231,.73) 66%, rgba(240,238,231,.08) 100%); }
  .hero-copy { padding: 58px 0 0; }
  .eyebrow { font-size: 11px; }
  .hero h1 { margin: 19px 0 15px; font-size: 42px; line-height: 1.28; }
  .hero-description { margin-bottom: 23px; font-size: 15px; line-height: 1.7; }
  .hero-actions { gap: 15px; }
  .button { min-height: 43px; padding: 12px 18px; font-size: 13px; }
  .text-link { font-size: 13px; }
  .hero-note { margin-top: 15px; font-size: 11px; }
  .section { padding-block: 66px; }
  .section h2, .family h2, .start h2 { font-size: 31px; }
  .section-lede { font-size: 15px; }
  .features { display: block; margin-top: 35px; }
  .feature { margin-bottom: 16px; }
  .feature:last-child { margin-bottom: 0; }
  .feature > img { height: 220px; }
  .feature-body { padding: 22px; }
  .family { padding-block: 65px; }
  .family-inner { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 28px; }
  .family-inner > img { height: 265px; }
  .family-copy > p:not(.family-tag) { font-size: 15px; }
  .start { display: flex; flex-direction: column; align-items: center; gap: 27px; padding-block: 70px 78px; text-align: center; }
  .start h2 { margin-block: 15px; }
  .start-copy > p:last-child { font-size: 15px; }
  .code-card { width: min(100%, 300px); }
  .code-card img { width: 220px; height: 220px; margin-inline: auto; }
  .footer-inner { display: block; }
  .footer-inner span { display: block; margin-block: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
