:root {
  --brand: #6f9f4a;
  --brand-pressed: #5e8a3e;
  --brand-soft: #edf6e8;
  --page: #faf9f6;
  --paper: #f5f2ec;
  --card: #ffffff;
  --track: #e8e4dc;
  --divider: #edead4;
  --text: #1c1c1e;
  --text-secondary: #48453e;
  --text-tertiary: #86837d;
  --text-soft: #9c9890;
  --shadow-soft: 0 20px 56px rgba(28, 28, 30, 0.1);
  --shadow-phone: 0 24px 64px rgba(28, 28, 30, 0.18);
  --max: 1280px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: calc(var(--header-height) + 18px);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 9%, rgba(111, 159, 74, 0.08), transparent 24rem),
    linear-gradient(180deg, #fffdf9 0%, var(--page) 42%, #ffffff 100%);
  color: var(--text);
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 50;
  width: 0;
  height: 3px;
  background: var(--brand);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  min-height: var(--header-height);
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 14px clamp(22px, 4.5vw, 72px);
  background: rgba(250, 249, 246, 0.86);
  border-bottom: 1px solid rgba(232, 228, 220, 0.76);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  width: fit-content;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(111, 159, 74, 0.22);
}

.brand-text strong,
.brand-text small {
  display: block;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 19px;
  font-weight: 820;
}

.brand-text small {
  margin-top: 3px;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 2.8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 650;
}

.nav-links a {
  position: relative;
  padding: 10px 2px;
}

.nav-links a::after {
  position: absolute;
  right: 4px;
  bottom: 3px;
  left: 4px;
  height: 2px;
  background: var(--brand);
  border-radius: 999px;
  content: "";
  opacity: 0;
  transform: scaleX(0.45);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active {
  color: var(--brand-pressed);
  outline: none;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-line {
  justify-self: end;
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  background: var(--card);
  border: 1px solid var(--track);
  border-radius: 14px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--text-secondary);
  border-radius: 999px;
}

.hero {
  display: grid;
  width: min(100%, 1500px);
  min-height: 0;
  grid-template-columns: minmax(340px, 0.86fr) minmax(640px, 1.24fr);
  align-items: center;
  gap: clamp(36px, 5vw, 74px);
  margin: 0 auto;
  padding: clamp(44px, 7vw, 86px) clamp(24px, 5vw, 80px) clamp(40px, 5vw, 68px);
}

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

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(72px, 9vw, 132px);
  font-weight: 860;
  line-height: 0.96;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(36px, 4.8vw, 64px);
  font-weight: 800;
  line-height: 1.12;
}

h3 {
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 780;
  line-height: 1.3;
}

.hero-slogan {
  margin-bottom: 18px;
  color: var(--brand-pressed);
  font-size: clamp(22px, 2.1vw, 32px);
  font-weight: 680;
  line-height: 1.35;
}

.hero-lead {
  max-width: 570px;
  margin-bottom: 54px;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.9;
}

.principle-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(82px, 1fr));
  gap: 20px;
  max-width: 620px;
  margin: 0;
}

.principle-list div {
  min-width: 0;
}

.principle-list dt {
  display: flex;
  min-height: 34px;
  align-items: center;
  color: var(--text);
  font-size: 16px;
  font-weight: 760;
}

.principle-list dt::before {
  width: 8px;
  height: 8px;
  margin-right: 9px;
  background: var(--brand);
  border-radius: 999px;
  content: "";
}

.principle-list dd {
  margin: 4px 0 0 17px;
  color: var(--text-tertiary);
  font-size: 14px;
}

.hero-gallery {
  position: relative;
  min-height: 560px;
}

.phone {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: #11100f;
  border: 8px solid #171614;
  border-radius: 42px;
  box-shadow: var(--shadow-phone);
}

.phone::before {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 2;
  width: 78px;
  height: 19px;
  background: #0c0c0c;
  border-radius: 999px;
  content: "";
  transform: translateX(-50%);
}

.phone img {
  width: 100%;
  height: 100%;
  background: var(--page);
  object-fit: cover;
}

.phone-home {
  position: absolute;
  z-index: 4;
  top: 22px;
  left: 37%;
  width: min(23vw, 270px);
  transform: translateX(-50%);
}

.phone-timeline {
  position: absolute;
  z-index: 2;
  top: 94px;
  left: 4%;
  width: min(18vw, 220px);
  transform: rotate(-2deg);
}

.phone-user {
  position: absolute;
  z-index: 3;
  top: 112px;
  right: 16%;
  width: min(15vw, 178px);
  transform: rotate(2deg);
}

.phone-onboarding {
  position: absolute;
  z-index: 1;
  top: 150px;
  right: 0;
  width: min(15vw, 170px);
  transform: rotate(5deg);
}

.section-pad {
  padding: clamp(78px, 9vw, 132px) clamp(22px, 4.5vw, 72px);
}

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

.eyebrow {
  margin-bottom: 12px;
  color: var(--brand-pressed);
  font-size: 13px;
  font-weight: 780;
}

.centered {
  display: grid;
  justify-items: center;
  text-align: center;
}

.centered h2 {
  max-width: 760px;
}

.page-overview {
  padding-top: clamp(38px, 4vw, 56px);
  background: #ffffff;
  border-block: 1px solid var(--divider);
}

.screen-tabs {
  display: grid;
  width: min(100%, 720px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 16px auto 34px;
  padding: 4px;
  background: rgba(245, 242, 236, 0.76);
  border: 1px solid var(--track);
  border-radius: 12px;
}

.screen-tab {
  min-height: 40px;
  color: var(--text-secondary);
  background: transparent;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 680;
}

.screen-tab:hover,
.screen-tab:focus-visible {
  color: var(--brand-pressed);
  outline: none;
}

.screen-tab.is-active {
  color: var(--brand-pressed);
  background: var(--card);
  box-shadow: inset 0 -2px 0 var(--brand);
}

.screen-stage {
  display: grid;
  width: min(100%, 920px);
  grid-template-columns: minmax(300px, 430px) minmax(280px, 1fr);
  align-items: center;
  gap: clamp(38px, 7vw, 92px);
  margin: 0 auto;
}

.screen-phone {
  width: min(100%, 390px);
  justify-self: end;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.screen-phone.is-switching {
  opacity: 0.38;
  transform: translateY(8px);
}

.screen-copy {
  max-width: 390px;
}

.screen-copy p {
  color: var(--text-secondary);
  font-size: 17px;
}

.screen-points {
  display: grid;
  gap: 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.screen-points li {
  position: relative;
  padding-left: 28px;
  color: var(--text-secondary);
  font-weight: 620;
}

.screen-points li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--brand-soft);
  border: 3px solid var(--brand);
  border-radius: 999px;
  content: "";
}

.idea-section {
  background: var(--page);
}

.idea-layout,
.design-layout,
.privacy-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(44px, 7vw, 96px);
  align-items: start;
}

.idea-copy p,
.design-copy p,
.privacy-copy p {
  max-width: 650px;
  color: var(--text-secondary);
  font-size: 17px;
}

.idea-steps {
  display: grid;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--track);
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(28, 28, 30, 0.06);
}

.idea-steps article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  column-gap: 18px;
  padding: 26px 28px;
  border-bottom: 1px solid var(--divider);
}

.idea-steps article:last-child {
  border-bottom: 0;
}

.idea-steps span {
  color: var(--brand-pressed);
  font-size: 13px;
  font-weight: 820;
}

.idea-steps h3 {
  margin-bottom: 6px;
}

.idea-steps p {
  grid-column: 2;
  margin: 0;
  color: var(--text-secondary);
}

.design-section {
  background: #ffffff;
  border-block: 1px solid var(--divider);
}

.design-layout {
  align-items: center;
}

.design-visual {
  display: grid;
  min-height: 430px;
  place-items: center;
  background:
    linear-gradient(140deg, rgba(237, 246, 232, 0.82), rgba(255, 255, 255, 0.92)),
    var(--card);
  border: 1px solid var(--track);
  border-radius: 32px;
  box-shadow: 0 18px 44px rgba(28, 28, 30, 0.07);
}

.design-visual img {
  width: min(68%, 340px);
}

.design-rules {
  display: grid;
  gap: 18px;
  margin: 34px 0 0;
}

.design-rules div {
  padding-top: 18px;
  border-top: 1px solid var(--divider);
}

.design-rules dt {
  color: var(--text);
  font-weight: 760;
}

.design-rules dd {
  margin: 6px 0 0;
  color: var(--text-tertiary);
}

.privacy-section {
  background: var(--page);
}

.privacy-layout {
  align-items: start;
  padding: clamp(30px, 4vw, 48px);
  background: var(--card);
  border: 1px solid var(--track);
  border-radius: 28px;
  box-shadow: 0 16px 38px rgba(28, 28, 30, 0.06);
}

.privacy-copy {
  display: grid;
  gap: 18px;
}

.privacy-copy p {
  margin: 0;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.legal-links a,
.legal-back-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: var(--brand-pressed);
  background: var(--brand-soft);
  border: 1px solid rgba(111, 159, 74, 0.22);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 760;
}

.legal-links a:hover,
.legal-links a:focus-visible,
.legal-back-link:hover,
.legal-back-link:focus-visible {
  color: #ffffff;
  background: var(--brand-pressed);
  outline: none;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px clamp(22px, 4.5vw, 72px);
  color: #c5c0b8;
  background: #1c1b18;
}

.site-footer strong,
.site-footer a {
  color: #f4f0e8;
}

.site-footer p {
  margin: 4px 0 0;
}

.site-footer .icp-link {
  display: inline-block;
  margin-top: 6px;
  color: #c5c0b8;
  font-size: 13px;
  font-weight: 620;
}

.site-footer .icp-link:hover,
.site-footer .icp-link:focus-visible {
  color: #f4f0e8;
  outline: none;
}

.site-footer .copyright {
  margin-top: 4px;
  color: #9f9a92;
  font-size: 12px;
  line-height: 1.5;
}

.site-footer a {
  font-weight: 720;
}

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

.legal-main {
  padding: clamp(40px, 6vw, 72px) clamp(20px, 4.5vw, 72px) clamp(80px, 8vw, 120px);
}

.legal-hero,
.legal-document {
  width: min(100%, 920px);
  margin: 0 auto;
}

.legal-hero {
  display: grid;
  gap: 18px;
  padding: clamp(42px, 7vw, 82px) 0 34px;
}

.legal-hero h1 {
  margin-bottom: 0;
  font-size: clamp(48px, 7vw, 92px);
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0;
  color: var(--text-tertiary);
  font-size: 14px;
}

.legal-note {
  max-width: 760px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 17px;
}

.legal-document {
  display: grid;
  gap: 22px;
  padding: clamp(26px, 4vw, 42px);
  background: var(--card);
  border: 1px solid var(--track);
  border-radius: 28px;
  box-shadow: 0 16px 38px rgba(28, 28, 30, 0.06);
}

.legal-section {
  padding-top: 22px;
  border-top: 1px solid var(--divider);
}

.legal-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.legal-section h2 {
  margin-bottom: 12px;
  font-size: clamp(24px, 3vw, 34px);
}

.legal-section h3 {
  margin: 18px 0 8px;
  font-size: 19px;
}

.legal-section p,
.legal-section li {
  color: var(--text-secondary);
  font-size: 16px;
}

.legal-section a:not(.legal-back-link) {
  color: var(--brand-pressed);
  font-weight: 720;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-section p {
  margin-bottom: 10px;
}

.legal-section ul,
.legal-section ol {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding-left: 1.2em;
}

.legal-callout {
  padding: 18px 20px;
  background: var(--brand-soft);
  border: 1px solid rgba(111, 159, 74, 0.2);
  border-radius: 18px;
}

.legal-callout strong {
  color: var(--brand-pressed);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 420ms ease,
    transform 420ms ease;
}

.hero .reveal,
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: minmax(160px, 1fr) auto auto;
  }

  .header-line {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-gallery {
    min-height: 600px;
  }

  .phone-home {
    left: 48%;
    width: min(36vw, 300px);
  }

  .phone-timeline {
    left: 9%;
    width: min(28vw, 240px);
  }

  .phone-user {
    right: 11%;
    width: min(23vw, 200px);
  }

  .phone-onboarding {
    right: 0;
    width: min(23vw, 196px);
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    padding-inline: 18px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 18px;
    display: none;
    width: min(260px, calc(100vw - 36px));
    padding: 10px;
    background: var(--card);
    border: 1px solid var(--track);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
  }

  .nav-links.is-open {
    display: grid;
    gap: 4px;
  }

  .nav-links a {
    padding: 12px 14px;
  }

  .nav-links a::after {
    right: auto;
    bottom: 10px;
    left: 0;
    width: 3px;
    height: 22px;
    transform: scaleY(0.5);
  }

  .hero {
    padding-inline: 20px;
  }

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

  .hero-gallery {
    min-height: 560px;
  }

  .phone-home {
    left: 44%;
    width: min(58vw, 310px);
  }

  .phone-timeline {
    top: 78px;
    left: 0;
    width: min(44vw, 240px);
  }

  .phone-user {
    top: 108px;
    right: 0;
    width: min(42vw, 232px);
  }

  .phone-onboarding {
    display: none;
  }

  .screen-stage,
  .idea-layout,
  .design-layout,
  .privacy-layout {
    grid-template-columns: 1fr;
  }

  .screen-phone {
    justify-self: center;
    width: min(100%, 330px);
  }

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

  .design-visual {
    min-height: 300px;
  }
}

@media (max-width: 620px) {
  body {
    background: var(--page);
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-text strong {
    font-size: 18px;
  }

  .brand-text small {
    font-size: 9px;
  }

  .hero {
    padding-top: 34px;
    padding-bottom: 30px;
  }

  h1 {
    font-size: 58px;
  }

  h2 {
    font-size: 34px;
  }

  h3 {
    font-size: 22px;
  }

  .hero-lead {
    margin-bottom: 28px;
    font-size: 15px;
    line-height: 1.72;
  }

  .principle-list {
    gap: 14px 16px;
  }

  .hero-gallery {
    display: flex;
    min-height: 262px;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
  }

  .phone {
    border-width: 6px;
    border-radius: 34px;
  }

  .phone::before {
    width: 58px;
    height: 15px;
  }

  .phone-home {
    position: static;
    width: 122px;
    flex: 0 0 auto;
    transform: none;
  }

  .phone-timeline,
  .phone-user {
    position: static;
    display: block;
    width: 106px;
    flex: 0 0 auto;
    transform: none;
  }

  .section-pad {
    padding: 72px 18px;
  }

  .screen-tabs {
    width: 100%;
    overflow-x: auto;
  }

  .screen-tab {
    min-width: 78px;
  }

  .idea-steps article {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .idea-steps p {
    grid-column: auto;
  }

  .privacy-layout {
    padding: 24px;
  }

  .site-footer {
    display: grid;
  }

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

  .legal-main {
    padding-inline: 18px;
  }

  .legal-document {
    padding: 22px;
    border-radius: 22px;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
