:root {
  --bg: #f4edd9;
  --paper: #fffdf6;
  --panel: #ffffff;
  --ink: #27384a;
  --muted: #607080;
  --faint: #8b98a5;
  --coral: #ff6b6b;
  --coral-soft: #ffe3de;
  --teal: #15a98b;
  --blue: #378add;
  --gold: #e1a100;
  --rule: rgba(39, 56, 74, 0.14);
  --shadow: 4px 4px 0 rgba(39, 56, 74, 0.13);
  --shadow-strong: 6px 6px 0 rgba(39, 56, 74, 0.9);
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.6;
  background: var(--bg);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.paper-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 107, 107, .12), transparent 22%),
    radial-gradient(circle at 88% 8%, rgba(21, 169, 139, .12), transparent 18%),
    radial-gradient(circle at 90% 78%, rgba(55, 138, 221, .1), transparent 20%),
    repeating-linear-gradient(45deg, rgba(39, 56, 74, .035) 0 1px, transparent 1px 16px);
  z-index: -1;
}

.brand-word {
  font-weight: 800;
  letter-spacing: 0;
}
.brand-word span { color: var(--coral); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
.btn:hover { transform: translate(-1px, -1px); }
.btn-lg { min-height: 50px; padding: 13px 22px; font-size: 16px; }
.btn-primary {
  color: #fff;
  background: var(--coral);
  box-shadow: 3px 3px 0 rgba(39, 56, 74, .22);
}
.btn-primary:hover { box-shadow: 5px 5px 0 rgba(39, 56, 74, .22); }
.btn-paper {
  color: var(--ink);
  background: var(--panel);
  border-color: var(--rule);
  box-shadow: 3px 3px 0 rgba(39, 56, 74, .12);
}
.btn-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, .46);
  border-color: var(--rule);
}

.nav {
  position: sticky;
  top: 14px;
  z-index: 50;
  width: min(1160px, calc(100% - 32px));
  margin: 14px auto 0;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 12px 10px 18px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: rgba(255, 253, 246, .88);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-size: 19px;
}
.brand img { transform: rotate(-4deg); }
.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, .72); }
.nav-cta { display: flex; gap: 8px; }
.nav-cta .btn { min-height: 38px; padding: 9px 14px; font-size: 14px; }

main {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}
.section { padding: 84px 0; }
.section-head {
  max-width: 720px;
  margin-bottom: 34px;
}
.kicker {
  display: inline-flex;
  margin: 0;
  padding: 4px 10px;
  border-radius: 7px;
  color: var(--coral);
  background: var(--coral-soft);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
}
.section-head h2,
.download-panel h2,
.feedback h2 {
  margin: 14px 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
  letter-spacing: 0;
}
.section-head p,
.download-panel p,
.feedback p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .92fr);
  gap: 52px;
  align-items: center;
  padding: 64px 0 28px;
}
.hero-copy { min-width: 0; }
.eyebrow {
  display: inline-flex;
  margin: 0;
  padding: 6px 12px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  color: var(--teal);
  background: rgba(255, 255, 255, .72);
  box-shadow: 3px 3px 0 rgba(39, 56, 74, .08);
  font-size: 14px;
  font-weight: 800;
}
.hero h1 {
  max-width: 620px;
  margin: 20px 0 18px;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.08;
  letter-spacing: 0;
}
.hero h1 span {
  display: inline-block;
  color: var(--coral);
}
.lede {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.hero-meta span {
  padding: 5px 10px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, .58);
  font-size: 13px;
  font-weight: 700;
}

.hero-preview {
  position: relative;
  min-width: 0;
}
.preview-shell {
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-strong);
  transform: rotate(-1.5deg);
}
.preview-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--rule);
  background: #fbf5e6;
}
.preview-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral);
}
.preview-bar span:nth-child(2) { background: var(--gold); }
.preview-bar span:nth-child(3) { background: var(--teal); }
.preview-bar strong {
  margin-left: 4px;
  color: var(--muted);
  font-size: 12px;
}
.preview-shell img { width: 100%; }
.preview-note {
  position: absolute;
  right: -6px;
  bottom: -18px;
  padding: 8px 12px;
  border-radius: 8px;
  color: #fff;
  background: var(--teal);
  box-shadow: 3px 3px 0 rgba(39, 56, 74, .2);
  font-size: 13px;
  font-weight: 800;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 26px;
}
.stats div,
.feature-card,
.tool-group,
.shot,
.deploy-card {
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.stats div {
  padding: 20px;
  text-align: center;
}
.stats b {
  display: block;
  color: var(--coral);
  font-size: 34px;
  line-height: 1;
}
.stats div:nth-child(2) b { color: var(--teal); }
.stats div:nth-child(3) b { color: var(--blue); }
.stats div:nth-child(4) b { color: var(--gold); }
.stats span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.feature-card {
  min-height: 230px;
  padding: 22px;
}
.feature-mark {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--coral);
  font-weight: 800;
  font-size: 13px;
}
.feature-card h3,
.tool-group h3,
.deploy-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.25;
}
.feature-card p,
.tool-group p,
.deploy-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
.shot {
  overflow: hidden;
  margin: 0;
}
.shot img {
  width: 100%;
  border-bottom: 1px solid var(--rule);
}
.shot figcaption {
  display: grid;
  gap: 4px;
  padding: 14px;
}
.shot b { font-size: 15px; }
.shot span {
  color: var(--muted);
  font-size: 13.5px;
}

.tool-grid,
.deploy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tool-group {
  padding: 22px;
  border-top: 4px solid var(--coral);
}
.tool-group:nth-child(2) { border-top-color: var(--teal); }
.tool-group:nth-child(3) { border-top-color: var(--blue); }
.tool-group ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tool-group li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px dashed var(--rule);
  font-size: 15px;
  font-weight: 800;
}
.tool-group li:last-child { border-bottom: 0; padding-bottom: 0; }
.tool-group em {
  flex: none;
  color: var(--faint);
  font-style: normal;
  font-size: 12.5px;
  font-weight: 600;
  text-align: right;
}
.tool-group p { margin-top: 14px; }

.download-panel {
  display: grid;
  grid-template-columns: .84fr 1.16fr;
  gap: 34px;
  align-items: center;
  padding: 36px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-strong);
}
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.download-card {
  display: grid;
  gap: 5px;
  min-height: 86px;
  padding: 16px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: #fbf5e6;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.download-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.download-card:hover {
  transform: translate(-1px, -1px);
  border-color: var(--coral);
  box-shadow: 3px 3px 0 rgba(39, 56, 74, .12);
}
.download-card.primary {
  color: #fff;
  background: var(--coral);
  border-color: var(--coral);
}
.download-card b { font-size: 16px; line-height: 1.25; }
.download-card span { color: var(--muted); font-size: 13px; }
.download-card.primary span { color: rgba(255, 255, 255, .82); }
.download-foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  padding-top: 2px;
}
.download-foot a {
  color: var(--coral);
  font-weight: 800;
}
.download-foot span {
  color: var(--faint);
  font-size: 13px;
}

.split {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 38px;
  align-items: start;
}
.split .section-head { margin-bottom: 0; }
.deploy-card {
  padding: 22px;
}
.deploy-card a {
  display: inline-flex;
  margin-top: 14px;
  color: var(--coral);
  font-weight: 800;
}

.feedback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 30px;
  border: 2px dashed var(--rule);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.feedback > div:first-child { max-width: 680px; }
.feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.footer {
  width: min(1160px, calc(100% - 32px));
  margin: 26px auto 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
  padding: 24px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: rgba(255, 253, 246, .86);
  box-shadow: var(--shadow);
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.foot-brand p {
  margin: 2px 0 0;
  color: var(--faint);
  font-size: 12px;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}
.foot-links a:hover { color: var(--coral); }
.foot-meta {
  width: 100%;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  color: var(--faint);
  font-size: 12px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .3, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal[data-d="1"] { transition-delay: .07s; }
.reveal[data-d="2"] { transition-delay: .14s; }
.reveal[data-d="3"] { transition-delay: .21s; }
.reveal[data-d="4"] { transition-delay: .28s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn,
  .download-card { transition: none; }
}

@media (max-width: 980px) {
  .hero,
  .download-panel,
  .split {
    grid-template-columns: 1fr;
  }
  .hero {
    gap: 34px;
    text-align: center;
  }
  .hero h1,
  .lede {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions,
  .hero-meta {
    justify-content: center;
  }
  .hero-preview {
    max-width: 680px;
    margin: 0 auto;
  }
  .feature-grid,
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .tool-grid,
  .deploy-grid {
    grid-template-columns: 1fr;
  }
  .feature-card { min-height: 0; }
}

@media (max-width: 740px) {
  .nav {
    width: min(100% - 20px, 560px);
    top: 10px;
    align-items: stretch;
    flex-wrap: wrap;
    padding: 10px;
  }
  .brand { flex: 1; }
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
    border-top: 1px solid var(--rule);
    padding-top: 8px;
  }
  .nav-links a { padding: 7px 8px; font-size: 13px; }
  .nav-cta .btn-ghost { display: none; }
  main,
  .footer {
    width: calc(100% - 20px);
  }
  .section { padding: 58px 0; }
  .hero { padding-top: 42px; }
  .hero h1 { font-size: 39px; }
  .lede,
  .section-head p,
  .download-panel p,
  .feedback p {
    font-size: 16px;
  }
  .preview-shell { transform: none; box-shadow: var(--shadow); }
  .preview-note {
    position: static;
    display: inline-flex;
    margin-top: 10px;
  }
  .gallery,
  .download-grid,
  .feature-grid,
  .stats {
    grid-template-columns: 1fr;
  }
  .download-panel,
  .feedback {
    padding: 22px;
  }
  .feedback {
    align-items: flex-start;
    flex-direction: column;
  }
  .feedback-actions,
  .hero-actions {
    width: 100%;
  }
  .feedback-actions .btn,
  .hero-actions .btn {
    flex: 1 1 180px;
  }
  .tool-group li {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
  .tool-group em { text-align: left; }
  .foot-links {
    width: 100%;
    margin-left: 0;
  }
}
