:root {
  --bg: #f6f4ee;
  --bg-alt: #efebe1;
  --card: #fffdf8;
  --ink: #16181d;
  --muted: #5b606b;
  --line: #e0dbcf;
  --green: #177a4b;
  --green-dark: #0f5b37;
  --green-soft: #e3f2e8;
  --coral: #c14a2e;
  --coral-soft: #f8e5df;
  --navy: #1b2430;
  --cream: #f6f1e5;
  --radius: 20px;
  --shadow: 0 24px 60px -32px rgba(27, 36, 48, 0.35);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--green);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--green-dark);
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.sr-only {
  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 {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 16px;
  color: #fff;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 244, 238, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(224, 219, 207, 0.7);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  border-radius: 9px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.94rem;
  font-weight: 600;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav .nav-cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
}

.site-nav .nav-cta:hover {
  background: var(--green-dark);
  color: #fff;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 72px 0 56px;
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(23, 122, 75, 0.1), transparent 60%),
    radial-gradient(700px 380px at 100% 8%, rgba(193, 74, 46, 0.08), transparent 55%);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(22, 24, 29, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 65%);
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 60px;
}

.eyebrow {
  margin: 0;
  color: var(--coral);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--ink);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h1 {
  margin: 16px 0 22px;
  font-size: clamp(3rem, 6vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

h1 em {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 500;
  color: var(--green);
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.09em;
}

.lede {
  max-width: 35ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.5vw, 1.27rem);
  line-height: 1.55;
}

/* ---------- Install CTA ---------- */

.install-block {
  margin-top: 34px;
}

.btn-install {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 1.02rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 26px -14px rgba(23, 122, 75, 0.8);
  transition:
    background 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.btn-install:hover {
  background: var(--green-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px -16px rgba(23, 122, 75, 0.85);
}

.btn-install svg {
  width: 19px;
  height: 19px;
  flex: none;
}

.install-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.5;
}

/* 绿点用伪元素而非 flex item：文本换行时行内圆点跟着首行走，不会被垂直居中带到第二行 */
.install-note::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(23, 122, 75, 0.18);
  vertical-align: 0.08em;
}

.hero-secondary {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.hero-secondary a {
  font-weight: 600;
}

/* ---------- Forms ---------- */

.signup-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 32px;
}

.signup-form input[name="email"] {
  min-width: 0;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.signup-form input[name="email"]::placeholder {
  color: #9a9da4;
}

.signup-form input[name="email"]:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(23, 122, 75, 0.14);
}

.signup-form button {
  padding: 14px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.15s ease,
    transform 0.15s ease,
    opacity 0.15s ease;
}

.signup-form button:hover:not(:disabled) {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.signup-form button:disabled {
  opacity: 0.65;
  cursor: progress;
}

.hp {
  display: none !important;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 1.5em;
  margin: 2px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-status[data-state="success"] {
  color: var(--green);
}

.form-status[data-state="error"] {
  color: var(--coral);
}

.form-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.form-note a {
  color: inherit;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

/* ---------- Product shot ---------- */

.hero-visual {
  position: relative;
}

.product-shot {
  margin: 0;
  transform: rotate(-1.1deg);
}

.product-shot img {
  width: 100%;
  border: 1px solid rgba(27, 36, 48, 0.14);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.product-shot figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

/* ---------- Vendor strip ---------- */

.vendor-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 26px;
  margin-top: 64px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.vendor-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vendor-strip ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 700;
}

/* ---------- Sections ---------- */

.section {
  padding: 96px 0;
}

.section-alt {
  border-block: 1px solid var(--line);
  background: var(--bg-alt);
}

.section-head {
  max-width: 640px;
}

.section-head h2 {
  margin: 12px 0 16px;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.06;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.step h3,
.feature h3 {
  margin: 18px 0 8px;
  font-size: 1.16rem;
  line-height: 1.25;
}

.step p,
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.why-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 56px;
  align-items: start;
}

.why-head {
  position: sticky;
  top: 104px;
}

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

.feature {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
}

.feature-icon svg {
  width: 19px;
  height: 19px;
}

/* ---------- CTA ---------- */

.cta-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 56px;
  padding: 56px;
  border-radius: 30px;
  background:
    radial-gradient(560px 280px at 95% 0%, rgba(61, 220, 151, 0.17), transparent 60%),
    var(--navy);
  color: var(--cream);
  overflow: hidden;
}

.cta-panel .eyebrow {
  color: #8fe3b8;
}

.cta-panel h2 {
  margin: 12px 0 14px;
  color: var(--cream);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1;
}

.cta-copy p {
  max-width: 40ch;
  margin: 0;
  color: rgba(246, 241, 229, 0.72);
}

/* 深色面板内的安装按钮：奶油底 + 深色字，和面板形成足够对比 */
.btn-install-light {
  margin-top: 28px;
  background: var(--cream);
  color: var(--navy);
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.75);
}

.btn-install-light:hover {
  background: #fff;
  color: var(--navy);
}

.signup-form-dark {
  align-self: center;
  margin-top: 0;
}

.signup-form-dark input[name="email"] {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: var(--cream);
}

.signup-form-dark input[name="email"]::placeholder {
  color: rgba(246, 241, 229, 0.5);
}

.signup-form-dark input[name="email"]:focus {
  border-color: #8fe3b8;
  box-shadow: 0 0 0 4px rgba(143, 227, 184, 0.16);
}

.signup-form-dark button {
  background: var(--cream);
  color: var(--navy);
}

.signup-form-dark button:hover:not(:disabled) {
  background: #fff;
  color: var(--navy);
}

.signup-form-dark .form-status[data-state="success"] {
  color: #8fe3b8;
}

.signup-form-dark .form-status[data-state="error"] {
  color: #ffb3a1;
}

.digest-side {
  align-self: center;
}

.digest-side h3 {
  margin: 0 0 6px;
  color: var(--cream);
  font-size: 1.14rem;
  letter-spacing: -0.01em;
}

.digest-sub {
  max-width: 34ch;
  margin: 0 0 16px;
  color: rgba(246, 241, 229, 0.66);
  font-size: 0.92rem;
  line-height: 1.5;
}

.digest-side .form-note {
  color: rgba(246, 241, 229, 0.6);
}

.digest-side .form-note a {
  color: inherit;
}

.cta-panel noscript {
  grid-column: 1 / -1;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner nav {
  display: flex;
  gap: 20px;
}

.footer-inner nav a {
  color: var(--muted);
  text-decoration: none;
}

.footer-inner nav a:hover {
  color: var(--ink);
}

/* ---------- Motion ---------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    animation: rise 0.55s ease both;
  }

  .hero-copy > *:nth-child(2) {
    animation-delay: 0.05s;
  }

  .hero-copy > *:nth-child(3) {
    animation-delay: 0.1s;
  }

  .hero-copy > *:nth-child(4) {
    animation-delay: 0.15s;
  }

  .hero-visual {
    animation: rise 0.7s ease 0.12s both;
  }
}

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

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero {
    padding-top: 56px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-visual {
    max-width: 720px;
  }

  .steps {
    grid-template-columns: 1fr;
    max-width: 640px;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .why-head {
    position: static;
    max-width: 640px;
  }

  .cta-panel {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 44px;
  }

  .signup-form-dark {
    max-width: 620px;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: min(1120px, calc(100% - 32px));
  }

  .site-nav a:not(.nav-cta) {
    display: none;
  }

  .hero {
    padding: 44px 0 40px;
  }

  h1 {
    font-size: clamp(2.7rem, 12vw, 3.6rem);
  }

  .signup-form {
    grid-template-columns: 1fr;
  }

  .signup-form button {
    width: 100%;
  }

  .btn-install {
    width: 100%;
    justify-content: center;
    padding: 15px 20px;
  }

  .section {
    padding: 72px 0;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    padding: 32px 24px;
    border-radius: 24px;
  }

  .vendor-strip {
    margin-top: 44px;
  }

  .footer-inner {
    align-items: flex-start;
  }
}
