:root {
  color-scheme: light;
  --bg: #f4fbf8;
  --paper: #ffffff;
  --ink: #142023;
  --muted: #6f7b7a;
  --brand: #46968f;
  --brand-dark: #162326;
  --accent: #f4df91;
  --line: rgba(47, 91, 86, 0.13);
  --shadow: 0 24px 70px rgba(36, 76, 72, 0.16);
  --shadow-soft: 0 12px 34px rgba(28, 58, 54, 0.1);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(60, 114, 108, 0.1);
  background: rgba(244, 251, 248, 0.86);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1120px, calc(100% - 36px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--brand-dark);
  font-weight: 850;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.nav-links {
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.nav-links a:hover {
  color: var(--brand);
}

.hero {
  width: min(1120px, calc(100% - 36px));
  min-height: calc(100svh - 68px);
  margin: 0 auto;
  padding: 70px 0 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 500px);
  align-items: center;
  gap: 44px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #2f7770;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.hero h1,
.section h2 {
  margin: 0;
  color: var(--brand-dark);
  line-height: 1.12;
  letter-spacing: 0;
}

.hero h1 {
  font-size: clamp(48px, 8vw, 84px);
}

.hero-content p:not(.eyebrow) {
  max-width: 620px;
  margin: 20px 0 0;
  color: #445453;
  font-size: clamp(17px, 2.2vw, 21px);
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 850;
}

.button.primary {
  color: #fff;
  background: var(--brand-dark);
  box-shadow: 0 14px 28px rgba(20, 32, 35, 0.22);
}

.button.secondary {
  color: #1f6761;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(70, 150, 143, 0.2);
}

.hero-note {
  margin-top: 14px;
  color: #6b7c7a;
  font-size: 13px;
}

.phone-stack {
  position: relative;
  min-height: 600px;
}

.phone {
  position: absolute;
  overflow: hidden;
  background: #fff;
  border: 10px solid rgba(255, 255, 255, 0.96);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.phone-home {
  right: 58px;
  top: 0;
  z-index: 2;
  width: 310px;
}

.phone-entry {
  left: 6px;
  top: 116px;
  width: 250px;
  opacity: 0.96;
  transform: rotate(-5deg);
}

.phone-stats {
  right: 0;
  bottom: 0;
  width: 236px;
  opacity: 0.94;
  transform: rotate(5deg);
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 70px 0;
}

.section-title {
  margin-bottom: 28px;
}

.section h2 {
  max-width: 760px;
  font-size: clamp(30px, 4.8vw, 46px);
}

.section-lead {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.feature-grid,
.screen-grid {
  display: grid;
  gap: 16px;
}

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

.feature-card {
  min-height: 188px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-soft);
}

.feature-mark {
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--brand);
  border-radius: 8px;
  font-weight: 900;
}

.feature-card:nth-child(2) .feature-mark,
.feature-card:nth-child(4) .feature-mark {
  color: var(--brand-dark);
  background: var(--accent);
}

.feature-card h3,
.screen-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.feature-card p,
.screen-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.screen-section {
  padding-top: 36px;
}

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

.screen-card {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-soft);
}

.screen-card img {
  width: 100%;
  border-radius: 8px;
}

.screen-card h3 {
  margin: 12px 2px 4px;
}

.screen-card p {
  margin: 0 2px 4px;
  font-size: 13px;
}

.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: clamp(24px, 5vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(120deg, rgba(70, 150, 143, 0.14), rgba(244, 223, 145, 0.26)), rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.download-panel h2 {
  margin: 0;
}

.download-panel p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--muted);
}

.legal-page {
  width: min(900px, calc(100% - 36px));
  margin: 0 auto;
  padding: 54px 0 72px;
}

.legal-page h1 {
  margin: 0;
  color: var(--brand-dark);
  font-size: clamp(34px, 6vw, 54px);
  line-height: 1.15;
  letter-spacing: 0;
}

.legal-meta {
  margin: 12px 0 24px;
  color: var(--muted);
  font-size: 14px;
}

.legal-card {
  padding: clamp(22px, 5vw, 36px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.legal-card h2 {
  margin: 30px 0 10px;
  color: var(--brand-dark);
  font-size: 20px;
  line-height: 1.35;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p,
.legal-card li {
  color: #445453;
}

.legal-card p {
  margin: 0 0 12px;
}

.legal-card ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.legal-card a {
  color: #1f6761;
  font-weight: 800;
}

.site-footer {
  padding: 28px 0;
  color: rgba(255, 255, 255, 0.78);
  background: var(--brand-dark);
  font-size: 13px;
}

.footer-inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 22px;
}

.footer-inner strong,
.footer-inner span {
  display: block;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.site-footer a {
  color: #fff;
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 48px;
  }

  .phone-stack {
    min-height: 520px;
  }

  .phone-home {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .phone-entry {
    left: 4%;
  }

  .phone-stats {
    right: 4%;
  }

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

@media (max-width: 640px) {
  .nav-links {
    gap: 14px;
  }

  .nav-links a:nth-child(2),
  .nav-links a:nth-child(3) {
    display: none;
  }

  .hero,
  .section {
    width: min(100% - 28px, 1120px);
  }

  .hero {
    padding: 36px 0 34px;
  }

  .hero-actions,
  .download-panel {
    display: grid;
  }

  .phone-stack {
    min-height: 430px;
  }

  .phone {
    border-width: 7px;
  }

  .phone-home {
    width: min(66vw, 260px);
  }

  .phone-entry {
    width: min(47vw, 190px);
    top: 98px;
  }

  .phone-stats {
    width: min(43vw, 178px);
  }

  .feature-grid,
  .screen-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    display: grid;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
