:root {
  --ink: #18211d;
  --muted: #59675f;
  --line: #dce6df;
  --surface: #ffffff;
  --soft: #f2f7f1;
  --green: #217a52;
  --green-dark: #135138;
  --mint: #cfeee0;
  --coral: #ed7355;
  --amber: #f5b84b;
  --blue: #4a7bb7;
  --shadow: 0 24px 70px rgba(24, 33, 29, 0.14);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #fbfcfa;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(242, 247, 241, 0.92), rgba(251, 252, 250, 0.96) 38%),
    #fbfcfa;
}

body,
button,
input {
  font: inherit;
}

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

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

.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;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid transparent;
  background: rgba(251, 252, 250, 0.78);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  border-bottom-color: rgba(220, 230, 223, 0.8);
  background: rgba(251, 252, 250, 0.94);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 156px;
  font-weight: 800;
}

.brand img,
.site-footer img {
  border-radius: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--muted);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
}

.site-nav a:hover {
  color: var(--ink);
  background: rgba(33, 122, 82, 0.08);
}

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

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

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}

.menu-button span:not(.sr-only) {
  width: 18px;
  height: 2px;
  background: currentColor;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  min-height: 76vh;
  padding: 88px clamp(20px, 5vw, 64px) 18px;
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(52px, 7.2vw, 96px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 620px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  color: #fff;
  background: var(--green);
}

.button.primary:hover {
  background: var(--green-dark);
}

.button.secondary {
  border-color: var(--line);
  background: var(--surface);
}

.button.secondary:hover {
  border-color: #b9c9bf;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 150px));
  gap: 12px;
  margin: 0;
}

.hero-stats div {
  min-height: 58px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.hero-stats dt {
  font-size: 24px;
  font-weight: 900;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-shell {
  width: auto;
  max-width: min(100%, 390px);
  height: min(540px, calc(100vh - 268px));
  min-height: 430px;
  aspect-ratio: 0.54;
  padding: 12px;
  border: 1px solid rgba(24, 33, 29, 0.16);
  border-radius: 42px;
  background: #161d19;
  box-shadow: var(--shadow);
}

.phone-screenshot {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  background: #fff7e8;
  object-fit: contain;
}

.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  padding: 0 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.app-screen {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: calc(100% - 34px);
  padding: 14px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, #f7fbf6 0%, #eef6ec 100%);
  overflow: hidden;
}

.today-card,
.scan-card,
.suggestion-card,
.metric-board,
.principles article {
  border: 1px solid rgba(220, 230, 223, 0.95);
  border-radius: 8px;
  background: var(--surface);
}

.today-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
}

.today-card img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
}

.today-card p,
.scan-card p,
.suggestion-card p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
}

.today-card strong {
  font-size: 23px;
}

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

.macro-row div {
  min-height: 64px;
  padding: 12px;
  border-radius: 8px;
  color: #fff;
}

.macro-row div:nth-child(1) {
  background: var(--green);
}

.macro-row div:nth-child(2) {
  background: var(--coral);
}

.macro-row div:nth-child(3) {
  background: var(--blue);
}

.macro-row span {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  opacity: 0.82;
}

.macro-row strong {
  font-size: 20px;
}

.scan-card,
.suggestion-card {
  position: relative;
  padding: 14px;
}

.scan-line {
  display: block;
  width: 100%;
  height: 56px;
  margin-bottom: 12px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 0 12%, rgba(255, 255, 255, 0.58) 12% 16%, transparent 16% 100%),
    linear-gradient(135deg, #dff0e7, #f7d4c8 52%, #d8e5f5);
  background-size: 220% 100%, 100% 100%;
  animation: scanMove 5s ease-in-out infinite;
}

.scan-card strong,
.suggestion-card strong {
  display: block;
  line-height: 1.45;
}

.bottom-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: auto;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.bottom-tabs span:first-child {
  color: var(--green);
  font-weight: 800;
}

.section {
  padding: clamp(68px, 9vw, 116px) clamp(20px, 5vw, 64px);
}

.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(280px, 1.08fr);
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
}

.split p:last-child,
.setup-grid p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.intro-band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 920px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.screens-section {
  background: #fbfcfa;
}

.screens-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.screen-card {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 36px rgba(24, 33, 29, 0.08);
}

.screen-card img {
  width: 100%;
  height: clamp(320px, 32vw, 480px);
  aspect-ratio: 9 / 18.8;
  border-radius: 6px;
  background: #fff7e8;
  object-fit: cover;
  object-position: top;
}

.screen-card figcaption {
  padding: 12px 4px 2px;
  font-weight: 900;
  text-align: center;
}

.feature-panel {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.feature-tabs {
  display: grid;
  align-content: stretch;
  border-right: 1px solid var(--line);
  background: #f8faf7;
}

.feature-tab {
  min-height: 68px;
  padding: 0 22px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  text-align: left;
  font-weight: 800;
  cursor: pointer;
}

.feature-tab:last-child {
  border-bottom: 0;
}

.feature-tab.is-active {
  color: var(--green-dark);
  background: var(--mint);
}

.feature-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 36px;
  align-items: center;
  min-height: 420px;
  padding: clamp(26px, 5vw, 56px);
}

.feature-kicker {
  margin-bottom: 12px;
  color: var(--coral);
  font-weight: 900;
}

.feature-content p:not(.feature-kicker) {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.metric-board {
  display: grid;
  gap: 26px;
  min-height: 260px;
  padding: 28px;
  align-content: center;
}

.ring {
  display: grid;
  place-items: center;
  width: 168px;
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 53%, transparent 54%),
    conic-gradient(var(--green) 0 72%, #dfe8e2 72% 100%);
}

.ring span {
  font-size: 32px;
  font-weight: 900;
}

.bars {
  display: grid;
  gap: 12px;
}

.bars span {
  height: 14px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--coral) 0 var(--bar), #e7eee9 var(--bar) 100%);
}

.soft-band {
  background: #f7f4ec;
}

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

.principles article {
  min-height: 250px;
  padding: 26px;
}

.principles span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

.principles p,
.timeline p,
.faq-list p {
  color: var(--muted);
  line-height: 1.65;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.timeline div {
  min-height: 250px;
  padding: 30px;
  border-right: 1px solid var(--line);
}

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

.timeline span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 48px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green-dark);
  font-weight: 900;
}

.setup-band {
  background: var(--ink);
  color: #fff;
}

.setup-band .eyebrow {
  color: var(--amber);
}

.setup-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 0.92fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
}

.setup-grid p {
  color: rgba(255, 255, 255, 0.72);
}

.setup-box {
  display: grid;
  gap: 10px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.setup-box span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 800;
}

.setup-box code {
  display: block;
  overflow-wrap: anywhere;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(300px, 1.3fr);
  gap: clamp(28px, 6vw, 80px);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.faq-list summary {
  min-height: 64px;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 900;
}

.faq-list p {
  margin: 0;
  padding: 0 24px 22px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface);
}

.site-footer div {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
}

.site-footer p {
  margin: 0;
}

@keyframes scanMove {
  0%,
  100% {
    background-position: 0% 0, 0 0;
  }
  50% {
    background-position: 100% 0, 0 0;
  }
}

@media (max-width: 980px) {
  .hero,
  .split,
  .setup-grid,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 112px;
  }

  .hero-copy {
    max-width: none;
  }

  .phone-shell {
    width: min(100%, 360px);
    height: auto;
    min-height: 0;
  }

  .hero-visual {
    display: none;
  }

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

  .feature-tabs {
    grid-template-columns: repeat(5, minmax(92px, 1fr));
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature-tab {
    min-height: 58px;
    text-align: center;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .feature-tab:last-child {
    border-right: 0;
  }

  .metric-board {
    min-height: 220px;
  }

  .screens-grid {
    grid-template-columns: repeat(5, minmax(170px, 1fr));
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
  }

  .screen-card {
    scroll-snap-align: start;
  }

  .principles,
  .timeline {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 760px) {
  .site-header {
    min-height: 68px;
    padding: 12px 16px;
  }

  .menu-button {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 18px 42px rgba(24, 33, 29, 0.16);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    justify-content: center;
  }

  h1 {
    font-size: clamp(48px, 15vw, 72px);
  }

  h2 {
    font-size: clamp(28px, 8vw, 38px);
  }

  .hero {
    padding: 102px 16px 44px;
  }

  .section {
    padding: 62px 16px;
  }

  .phone-shell {
    border-radius: 34px;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-stats div {
    padding: 12px;
  }

  .hero-stats dt {
    font-size: 24px;
  }

  .hero-stats dd {
    font-size: 12px;
    line-height: 1.35;
  }

  .app-screen {
    border-radius: 24px;
    padding: 14px;
  }

  .macro-row {
    grid-template-columns: 1fr;
  }

  .feature-tabs {
    grid-template-columns: repeat(5, 100px);
  }

  .feature-content {
    min-height: auto;
    padding: 24px;
  }

  .ring {
    width: 142px;
  }

  .principles article,
  .timeline div {
    min-height: auto;
  }

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

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
