:root {
  --accent: #0066cc;
  --ink: #f5f5f7;
  --muted: #a1a1a6;
  --bg: #000;
  --panel: #1d1d1f;
  --hair: rgba(255,255,255,.12);
  --max: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

nav {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(180%) blur(20px);
  background: rgba(0,0,0,.72);
  border-bottom: 1px solid var(--hair);
}
nav .wrap { height: 52px; display: flex; align-items: center; gap: 22px; }
nav .brand { font-weight: 700; letter-spacing: -.02em; font-size: 18px; }
nav .brand span { color: var(--accent); }
nav a { color: var(--ink); font-size: 14px; opacity: .86; }
nav a:hover { opacity: 1; text-decoration: none; }
nav .spacer { flex: 1; }

.hero { padding: 120px 0 96px; text-align: center; }
.hero h1 {
  font-size: clamp(44px, 8vw, 92px);
  line-height: 1.02;
  letter-spacing: -.045em;
  margin: 0 0 22px;
  font-weight: 700;
}
.hero p {
  font-size: clamp(19px, 2.4vw, 24px);
  color: var(--muted);
  margin: 0 auto 40px;
  max-width: 660px;
}
.cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #fff;
  padding: 16px 30px; border-radius: 999px;
  font-size: 18px; font-weight: 600;
  transition: transform .15s ease, filter .15s ease;
}
.cta:hover { text-decoration: none; transform: translateY(-1px); filter: brightness(1.08); }
.cta.secondary {
  background: transparent; color: var(--ink);
  border: 1px solid var(--hair);
}
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

section.feature { padding: 96px 0; border-top: 1px solid var(--hair); }
section.feature:nth-child(even) { background: #0a0a0a; }
.kicker { color: var(--accent); font-size: 15px; font-weight: 600; letter-spacing: .01em; }
.feature h2 {
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.06;
  letter-spacing: -.04em;
  margin: 10px 0 18px;
  font-weight: 700;
}
.feature p {
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 21px);
  max-width: 720px;
  margin: 0 0 28px;
}
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile {
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: 18px;
  padding: 26px 22px;
}
.tile h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -.01em; }
.tile p { margin: 0; font-size: 15px; color: var(--muted); }

.download {
  padding: 90px 0; text-align: center;
  border-top: 1px solid var(--hair);
  background: #0a0a0a;
}
.download h2 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -.03em; margin: 0 0 14px; }
.download p { color: var(--muted); margin: 0 auto 30px; max-width: 560px; }
.download .meta { margin-top: 18px; font-size: 13px; color: #6e6e73; }

footer {
  border-top: 1px solid var(--hair);
  padding: 34px 0 46px;
  color: #6e6e73;
  font-size: 13px;
}
footer .wrap { display: flex; gap: 18px; flex-wrap: wrap; }
footer .spacer { flex: 1; }

/* wiki */
.wiki { padding: 56px 0 90px; }
.wiki h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -.04em; margin: 0 0 12px; }
.wiki .lede { color: var(--muted); margin: 0 0 34px; }
.wiki .layout { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.wiki aside { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 8px; }
.wiki aside a { color: var(--muted); font-size: 14px; }
.wiki aside a:hover { color: var(--ink); text-decoration: none; }
.wiki article h2 { font-size: 26px; letter-spacing: -.02em; margin: 42px 0 12px; }
.wiki article h3 { font-size: 17px; margin: 26px 0 8px; }
.wiki article p, .wiki article li { color: #c7c7cc; font-size: 16px; }
.wiki article li { margin: 6px 0; }
.wiki code {
  background: #2c2c2e; padding: 2px 6px; border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px;
}
.note { border-left: 2px solid var(--accent); padding: 2px 0 2px 14px; color: var(--muted); }

@media (max-width: 820px) {
  .tiles { grid-template-columns: 1fr; }
  .wiki .layout { grid-template-columns: 1fr; }
  .wiki aside { position: static; flex-direction: row; flex-wrap: wrap; gap: 14px; }
  .hero { padding: 80px 0 64px; }
}
