:root {
  --bg: #fbfbfd;
  --surface: #ffffff;
  --text: #15161c;
  --muted: #5b5f6e;
  --line: #e5e6ee;
  --accent: #5b3df5;
  --grad: linear-gradient(120deg, #e03bd6 0%, #5b3df5 50%, #19c6f0 100%);
  --radius: 14px;
  --max: 1040px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0d12;
    --surface: #14151c;
    --text: #eceef5;
    --muted: #a0a4b4;
    --line: #262836;
    --accent: #8f7dff;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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 {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  z-index: 10;
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; }
nav.site a { color: var(--muted); margin-left: 22px; font-size: 15px; }
nav.site a:hover { color: var(--text); text-decoration: none; }

.hero { padding: 88px 0 64px; text-align: center; }
.hero img { width: 112px; height: 112px; }
.hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.1; margin: 20px 0 16px; letter-spacing: -0.02em; }
.hero h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 640px; margin: 0 auto; }
.badge {
  display: inline-block; margin-top: 28px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 14px;
}
.cta { display: inline-block; margin-top: 18px; padding: 12px 22px; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 600; }
.cta:hover { text-decoration: none; opacity: 0.92; }

section { padding: 56px 0; }
section h2 { font-size: 28px; margin: 0 0 8px; letter-spacing: -0.01em; }
section p.sub { color: var(--muted); margin: 0 0 32px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.agents { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.agents span { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }

.doc { max-width: 760px; padding: 56px 20px 72px; margin: 0 auto; }
.doc h1 { font-size: 34px; margin: 0 0 6px; }
.doc .updated { color: var(--muted); margin: 0 0 32px; font-size: 14px; }
.doc h2 { font-size: 20px; margin: 32px 0 8px; }
.doc dl { display: grid; grid-template-columns: 180px 1fr; gap: 10px 20px; margin: 0; }
.doc dt { color: var(--muted); }
.doc dd { margin: 0; }

footer.site { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer.site a { color: var(--muted); margin-right: 18px; }

@media (max-width: 560px) {
  nav.site a { margin-left: 14px; font-size: 14px; }
  .hero { padding: 56px 0 40px; }
  .doc dl { grid-template-columns: 1fr; gap: 2px; }
  .doc dd { margin-bottom: 10px; }
}

.center { text-align: center; }
