:root {
  --bg: #f5efe3;
  --paper: #fffaf0;
  --ink: #1f2222;
  --muted: #6f6b63;
  --line: rgba(31, 34, 34, 0.12);
  --accent: #d6673f;
  --accent-deep: #ad4d2c;
  --accent-soft: rgba(214, 103, 63, 0.14);
  --green: #8da084;
  --shadow: 0 24px 60px rgba(84, 63, 31, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shell: min(1180px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(214, 103, 63, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(141, 160, 132, 0.18), transparent 24%),
    linear-gradient(180deg, #f7f0e5 0%, #f1e9db 100%);
  font-family: "Outfit", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(31, 34, 34, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 34, 34, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.4;
}

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

.site-shell {
  width: var(--shell);
  margin: 0 auto;
  padding: 20px 0 36px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.76);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 35px rgba(71, 50, 22, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #e4ae4c);
  color: #fff9f1;
  font-family: "Noto Serif SC", serif;
  font-size: 20px;
  font-weight: 700;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

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

.brand-text small {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topnav {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.topnav a:hover,
.topnav a:focus-visible,
.top-cta:hover,
.top-cta:focus-visible {
  color: var(--ink);
}

.top-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.top-cta {
  min-width: 124px;
  padding: 12px 18px;
  background: #f3e6ce;
  font-size: 14px;
  font-weight: 600;
}

.button {
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 600;
}

.button:hover,
.button:focus-visible,
.top-cta:hover,
.top-cta:focus-visible {
  transform: translateY(-1px);
}

.button.primary {
  color: #fff9f3;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  box-shadow: 0 16px 32px rgba(173, 77, 44, 0.22);
}

.button.ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.button.wide {
  min-width: 220px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 28px;
  padding: 72px 0 40px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.download-panel h2 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 1.02;
}

.hero-summary {
  max-width: 640px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

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

.hero-facts {
  display: flex;
  gap: 16px;
  padding: 0;
  margin: 34px 0 0;
  list-style: none;
  flex-wrap: wrap;
}

.hero-facts li,
.hero-card,
.hero-note,
.feature-card,
.module-card,
.workflow-step,
.roadmap-card,
.download-panel {
  border: 1px solid rgba(255, 255, 255, 0.56);
  background: rgba(255, 250, 240, 0.82);
  box-shadow: var(--shadow);
}

.hero-facts li {
  min-width: 138px;
  padding: 18px 18px 16px;
  border-radius: var(--radius-md);
}

.hero-facts strong {
  display: block;
  margin-bottom: 6px;
  font-size: 28px;
}

.hero-facts span {
  color: var(--muted);
  font-size: 13px;
}

.hero-panel {
  display: grid;
  gap: 18px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: var(--radius-xl);
}

.hero-card::after {
  position: absolute;
  inset: auto -12% -38% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(141, 160, 132, 0.24) 0%, transparent 70%);
  content: "";
}

.hero-card p,
.hero-note span,
.step-tag,
.module-card span,
.feature-index {
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-card h2 {
  position: relative;
  z-index: 1;
  max-width: 10ch;
  margin: 14px 0 0;
  font-family: "Noto Serif SC", serif;
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1.15;
}

.hero-card-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.hero-card-grid article {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
}

.hero-card-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.hero-card-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 16px;
}

.hero-note {
  padding: 22px 24px;
  border-radius: 24px;
}

.hero-note p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section {
  padding: 44px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading.narrow h2 {
  max-width: 14ch;
}

.section-heading h2,
.download-panel h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.12;
}

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

.feature-card,
.roadmap-card {
  padding: 26px;
  border-radius: 26px;
}

.feature-card h3,
.workflow-step h3,
.roadmap-card h3,
.module-card h3 {
  margin: 16px 0 0;
  font-family: "Noto Serif SC", serif;
  font-size: 24px;
  line-height: 1.3;
}

.feature-card p,
.workflow-step p,
.module-card p,
.roadmap-card li,
.download-panel p,
.footer p {
  color: var(--muted);
  line-height: 1.8;
}

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

.module-card {
  min-height: 240px;
  padding: 24px;
  border-radius: 26px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.module-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.module-card:nth-child(1),
.module-card:nth-child(4) {
  grid-column: span 3;
}

.module-card:nth-child(2),
.module-card:nth-child(3),
.module-card:nth-child(5) {
  grid-column: span 2;
}

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

.workflow-step {
  padding: 24px;
  border-radius: 26px;
}

.roadmap-card ul {
  padding-left: 18px;
  margin: 18px 0 0;
}

.roadmap-card.done {
  background: linear-gradient(180deg, rgba(141, 160, 132, 0.14), rgba(255, 250, 240, 0.88));
}

.roadmap-card.doing {
  background: linear-gradient(180deg, rgba(214, 103, 63, 0.1), rgba(255, 250, 240, 0.88));
}

.roadmap-card.plan {
  background: linear-gradient(180deg, rgba(226, 189, 116, 0.12), rgba(255, 250, 240, 0.88));
}

.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 28px;
  padding: 30px;
  border-radius: 32px;
}

.download-actions {
  display: grid;
  align-content: center;
  gap: 14px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 4px 8px;
}

.footer strong {
  font-family: "Noto Serif SC", serif;
  font-size: 18px;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

@media (max-width: 1080px) {
  .hero,
  .download-panel,
  .workflow-board,
  .product-grid,
  .roadmap-grid {
    grid-template-columns: 1fr;
  }

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

  .module-card:nth-child(1),
  .module-card:nth-child(2),
  .module-card:nth-child(3),
  .module-card:nth-child(4),
  .module-card:nth-child(5) {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100vw - 24px, 100%);
    padding-top: 12px;
  }

  .topbar {
    top: 10px;
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 28px;
  }

  .topnav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px 18px;
  }

  .hero {
    padding-top: 44px;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2.3rem, 12vw, 4rem);
  }

  .hero-summary {
    font-size: 16px;
  }

  .hero-card-grid,
  .modules-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .download-actions,
  .button.wide {
    width: 100%;
  }

  .footer {
    flex-direction: column;
  }

  .footer-meta {
    text-align: left;
  }
}
