:root {
  --accent: #4a6fea;
  --accent-deep: #3452c7;
  --accent-soft: rgba(74, 111, 234, 0.1);
  --bg: #f5f6fa;
  --card: #ffffff;
  --text: #14161c;
  --muted: #646b7a;
  --border: #e3e6ee;
  --radius: 20px;
  --max: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #6f8ff2;
    --accent-soft: rgba(111, 143, 242, 0.14);
    --bg: #0e0f13;
    --card: #17191f;
    --text: #f2f3f7;
    --muted: #9aa1b0;
    --border: #262933;
  }
}

* { 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", "Inter", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; gap: 18px; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }

/* Hero */
.hero { text-align: center; padding: 56px 0 40px; }
.hero .app-icon {
  width: 120px; height: 120px; border-radius: 27px;
  box-shadow: 0 12px 32px rgba(52, 82, 199, 0.25);
}
.hero h1 { font-size: clamp(34px, 7vw, 48px); line-height: 1.1; letter-spacing: -0.02em; margin: 28px 0 12px; }
.hero p { color: var(--muted); font-size: 19px; max-width: 520px; margin: 0 auto 32px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--text); color: var(--bg);
  padding: 14px 24px; border-radius: 14px;
  font-weight: 600; font-size: 16px;
}
.btn:hover { text-decoration: none; opacity: 0.88; }
.btn svg { width: 20px; height: 20px; fill: currentColor; }

/* Features */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 24px 0 48px; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.feature .ic {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 18px; margin-bottom: 12px;
}
.feature h3 { margin: 0 0 4px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .nav { gap: 14px; }
}

/* Document pages */
.doc { padding: 32px 0 56px; }
.doc h1 { font-size: clamp(30px, 6vw, 40px); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 6px; }
.doc .updated { color: var(--muted); font-size: 15px; margin: 0 0 32px; }
.doc h2 { font-size: 20px; margin: 36px 0 8px; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin: 20px 0; }
.card p { margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer nav { display: flex; gap: 18px; }
.site-footer a { color: var(--muted); }

/* Blog */
.latest { padding: 0 0 48px; }
.latest h2 { font-size: 22px; margin: 0 0 12px; }
.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.doc .post-list { padding-left: 0; }
.post-list li { margin: 0; }
.post-list a { display: block; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; color: var(--text); }
.post-list a:hover { text-decoration: none; border-color: var(--accent); }
.post-list h3 { margin: 0 0 4px; font-size: 18px; line-height: 1.35; }
.post-list p { margin: 0 0 8px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.post-list time { color: var(--muted); font-size: 13px; }

.crumbs { margin: 0 0 16px; font-size: 15px; }
.post article h2 { font-size: 24px; margin: 40px 0 10px; letter-spacing: -0.01em; }
.post article h3 { font-size: 19px; margin: 28px 0 6px; }
.post article img { max-width: 100%; height: auto; border-radius: 14px; }
.post article blockquote { margin: 20px 0; padding: 4px 20px; border-left: 3px solid var(--accent); color: var(--muted); }
.post article code { background: var(--accent-soft); padding: 2px 6px; border-radius: 6px; font-size: 0.9em; }
.post article a { text-decoration: underline; text-underline-offset: 2px; }

.cta { display: flex; gap: 16px; align-items: flex-start; margin-top: 48px; }
.cta img { width: 56px; height: 56px; border-radius: 13px; flex-shrink: 0; }
.cta p { margin: 0 0 14px; }
@media (max-width: 560px) { .cta { flex-direction: column; } }
