:root {
  --paper: #fffdf8;
  --ink: #17201a;
  --muted: #5e675f;
  --line: #e4dfd2;
  --soft: #f6f1e7;
  --green: #16724b;
  --blue: #2d5f88;
  --amber: #a86616;
  --rose: #9f3d58;
  --shadow: 0 18px 50px rgba(38, 42, 35, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
  padding: 12px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(228, 223, 210, .78);
  background: rgba(255, 253, 248, .92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 760;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}

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

.nav a {
  text-decoration: none;
}

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

.hero {
  min-height: calc(100vh - 66px);
  display: grid;
  grid-template-columns: minmax(0, 680px) minmax(320px, 460px);
  justify-content: center;
  align-items: center;
  gap: clamp(28px, 3vw, 52px);
  padding: clamp(42px, 7vw, 92px) clamp(20px, 6vw, 82px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

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

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

h1 {
  margin: 0;
  font-size: clamp(46px, 7vw, 88px);
  line-height: .98;
  font-weight: 790;
}

.lead {
  margin: 22px 0 0;
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.72;
}

.section-lead {
  max-width: 740px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.82;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 720;
}

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

.button.appstore:hover {
  border-color: #105f3d;
  background: #105f3d;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: clamp(430px, 48vw, 560px);
}

.hero-poster .screen-carousel {
  width: min(100%, clamp(252px, 28vw, 390px));
}

.section {
  padding: clamp(42px, 7vw, 82px) clamp(20px, 6vw, 82px);
  border-bottom: 1px solid var(--line);
}

.section-inner {
  max-width: 1060px;
  margin: 0 auto;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
}

h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

p,
li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.78;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.feature {
  min-height: 220px;
  padding: 24px;
  background: var(--paper);
}

.feature b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--green);
}

.concept-section {
  background: #f8f5ee;
}

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

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

.value-grid .principle {
  grid-column: span 3;
}

.value-grid .principle:nth-child(n + 3) {
  grid-column: span 2;
}

.principle {
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.principle span,
.module-kicker {
  display: inline-block;
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 820;
  letter-spacing: .08em;
}

.principle p {
  margin-bottom: 0;
}

.principle.future {
  background: #f1eadc;
}

.membership-flow {
  display: grid;
  gap: 16px;
  max-width: 860px;
}

.membership-flow .principle {
  min-height: 0;
}

.module-stack {
  display: grid;
  gap: 22px;
}

.module-block {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  gap: clamp(22px, 4vw, 42px);
  align-items: center;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 248, .78);
}

.module-block.reverse {
  grid-template-columns: minmax(300px, .92fr) minmax(0, 1.08fr);
}

.module-block.reverse .module-copy {
  grid-column: 2;
  grid-row: 1;
}

.module-block.reverse .module-media {
  grid-column: 1;
  grid-row: 1;
}

.module-copy h3 {
  margin-bottom: 14px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.22;
}

.module-copy p {
  margin-top: 0;
}

.module-list {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding-left: 1.2em;
}

.module-list li {
  line-height: 1.65;
}

.module-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.module-media.single {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}

.module-media img {
  width: 100%;
  max-width: 260px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  background: #fff;
}

.poster-media {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.poster-media .screen-carousel {
  width: min(100%, clamp(252px, 28vw, 390px));
}

.loop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.loop-grid article {
  min-height: 210px;
  padding: 24px;
  background: var(--paper);
}

.loop-grid span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--green);
  font-size: 13px;
  font-weight: 820;
  letter-spacing: .08em;
}

.loop-grid p {
  margin-bottom: 0;
}

.loop-section {
  background: #f1f7f1;
}

.loop-section .loop-grid article {
  background: rgba(255, 253, 248, .9);
}

.future-note {
  max-width: 740px;
  margin: 24px 0 0;
  color: var(--ink);
  font-weight: 650;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0 32px;
}

.detail-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 248, .76);
}

.detail-card h3,
.version-item h3 {
  margin-bottom: 8px;
}

.detail-card p,
.version-item p {
  margin: 0;
}

.version-list {
  display: grid;
  gap: 14px;
}

.version-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.version-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--soft);
  color: var(--green);
  font-size: 20px;
  font-weight: 820;
}

.download-section {
  background: var(--soft);
}

.download-layout {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(380px, 1.04fr);
  align-items: center;
  gap: clamp(28px, 6vw, 76px);
}

.download-copy {
  min-width: 0;
}

.download-copy .section-lead {
  margin-bottom: 0;
}

.download-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.app-store-preview {
  display: block;
  min-width: 0;
  text-decoration: none;
}

.app-store-preview img {
  display: block;
  width: 100%;
  border: 1px solid rgba(23, 32, 26, .11);
  border-radius: 12px;
  box-shadow: 0 22px 54px rgba(38, 42, 35, .16);
}

.app-store-preview:hover img {
  border-color: rgba(22, 114, 75, .45);
  transform: translateY(-3px);
}

.plain-page {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(34px, 7vw, 76px) 20px 88px;
}

.plain-page h1 {
  font-size: clamp(38px, 6vw, 62px);
}

.meta {
  color: var(--muted);
  font-size: 14px;
}

.info-list {
  display: grid;
  gap: 14px;
  margin: 26px 0;
  padding: 0;
  list-style: none;
}

.info-list li {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.footer {
  padding: 26px clamp(20px, 6vw, 82px);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 860px) {
  html,
  body,
  main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .section,
  .hero {
    width: 100%;
    max-width: 100vw;
    padding-right: 30px;
    padding-left: 30px;
    overflow: hidden;
  }

  .section-inner {
    width: 100%;
    max-width: 100%;
  }

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

  .nav {
    flex-wrap: wrap;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 38px;
  }

  .hero > * {
    min-width: 0;
    width: 100%;
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
  }

  .actions {
    max-width: 100%;
  }

  .hero-media {
    min-height: auto;
    margin-top: 12px;
  }

  .hero-poster .screen-carousel {
    width: min(100%, clamp(252px, 28vw, 390px));
  }

  h1 {
    font-size: clamp(36px, 10vw, 42px);
    line-height: 1.05;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  h2,
  h3,
  p,
  li {
    width: 100%;
    max-width: min(100%, 320px);
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  h2 {
    font-size: clamp(30px, 8vw, 40px);
    line-height: 1.16;
  }

  .eyebrow {
    font-size: 12px;
    line-height: 1.5;
    word-break: break-word;
  }

  .lead {
    max-width: min(100%, 320px);
    font-size: 17px;
    line-height: 1.74;
  }

  .feature-grid,
  .principle-grid,
  .value-grid,
  .loop-grid,
  .detail-grid,
  .download-layout,
  .module-block,
  .module-block.reverse {
    grid-template-columns: 1fr;
  }

  .module-block.reverse .module-copy,
  .module-block.reverse .module-media {
    grid-column: auto;
    grid-row: auto;
  }

  .module-media {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .module-media img {
    max-width: 310px;
  }

  .version-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}


/* 6.0 preview uses the same native screenshots at every viewport. */
.preview-section { background: #eef4ed; }
.preview-style-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; max-width: 780px; margin-inline: auto; }
.preview-style { min-width: 0; }
.preview-style h3 { margin: 0 0 8px; font-size: 22px; }
.preview-style p { min-height: 3.4em; margin: 0 0 20px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.preview-style a { display: block; border-radius: 24px; }
.preview-style a:focus-visible { outline: 3px solid var(--green); outline-offset: 5px; }
.preview-style img { display: block; width: 100%; height: auto; border-radius: 24px; box-shadow: var(--shadow); }
.preview-detail { margin: 32px 0 12px; max-width: 850px; line-height: 1.8; color: var(--ink); }
.preview-status { margin: 16px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.version-number small { display: block; font-size: 13px; }
@media (max-width: 860px) {
  .preview-style-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 20px; }
}
@media (max-width: 560px) {
  .preview-style-grid { gap: 28px 14px; }
  .preview-style h3 { font-size: 19px; }
  .preview-style p { min-height: 5.1em; font-size: 14px; margin-bottom: 14px; }
  .preview-style a, .preview-style img { border-radius: 14px; }
  .nav { gap: 12px; font-size: 13px; }
}
