:root {
  --bg: #fffaf3;
  --hero-top: #fff2e1;
  --hero-bottom: #fcd7aa;
  --text: #1f1830;
  --muted: #6b6475;
  --accent: #e38c29;
  --card: #ffffff;
  --line: rgba(31, 24, 48, 0.08);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1714;
    --hero-top: #1a1714;
    --hero-bottom: #33261a;
    --text: #f6efe4;
    --muted: #b0a79b;
    --card: #24201c;
    --line: rgba(255, 255, 255, 0.08);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans", "Helvetica Neue", sans-serif;
}

a { color: var(--accent); }

.nav {
  max-width: 880px;
  margin: 0 auto;
  padding: 20px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 19px;
}

.brand img { width: 32px; height: 32px; border-radius: 8px; }

.nav-links { display: flex; gap: 18px; font-size: 15px; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--text); }

.hero {
  background: linear-gradient(var(--hero-top), var(--hero-bottom));
  padding: 56px 20px 0;
  text-align: center;
  overflow: hidden;
}

.hero h1 {
  font: 800 clamp(40px, 8vw, 64px)/1.05 ui-rounded, -apple-system, "SF Pro Rounded", sans-serif;
  margin: 40px 0 0;
  letter-spacing: -0.02em;
}

.hero p {
  color: var(--muted);
  font-size: 19px;
  max-width: 560px;
  margin: 16px auto 0;
}

.fan {
  position: relative;
  height: 230px;
  margin: 40px auto 0;
  max-width: 720px;
}

.fan img {
  position: absolute;
  left: 50%;
  bottom: -40px;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.25));
}

.fan .m0 { width: 260px; transform: translateX(-50%); z-index: 3; }
.fan .m1 { width: 200px; transform: translateX(-125%) rotate(-9deg); bottom: -56px; z-index: 2; }
.fan .m2 { width: 200px; transform: translateX(25%) rotate(9deg); bottom: -56px; z-index: 2; }
.fan .m3 { width: 160px; transform: translateX(-210%) rotate(-16deg); bottom: -70px; z-index: 1; }
.fan .m4 { width: 160px; transform: translateX(110%) rotate(16deg); bottom: -70px; z-index: 1; }

@media (max-width: 560px) {
  .fan { height: 170px; }
  .fan .m0 { width: 180px; }
  .fan .m1, .fan .m2 { width: 140px; }
  .fan .m3, .fan .m4 { display: none; }
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}

.feature h3 { margin: 0 0 4px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

.doc h1 {
  font: 800 40px/1.1 ui-rounded, -apple-system, "SF Pro Rounded", sans-serif;
  margin: 8px 0 6px;
}

.doc .updated { color: var(--muted); font-size: 15px; margin: 0 0 32px; }
.doc h2 { font-size: 21px; margin: 36px 0 8px; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }

.callout {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
  margin: 24px 0;
}

.callout p { margin: 0; }

details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  margin: 10px 0;
}

summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--muted); }

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  padding: 24px 20px 40px;
}

footer a { color: var(--muted); margin: 0 8px; }
