:root {
  --bg: #0b0b0f;
  --surface: #14141b;
  --surface-2: #1c1c26;
  --text: #f5f5f7;
  --text-dim: #a1a1aa;
  --line: rgba(255,255,255,0.08);
  --accent: #7c6cf6;
  --accent-2: #5b5bd6;
  --green: #22c55e;
  --radius: 18px;
  --maxw: 1080px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Nav */
nav { position: sticky; top: 0; z-index: 30; background: rgba(11,11,15,0.7); backdrop-filter: blur(20px); border-bottom: 1px solid var(--line); }
nav .inner { max-width: var(--maxw); margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; }
.brand .mark { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.nav-links { display: flex; gap: 26px; font-size: 15px; color: var(--text-dim); }
.nav-links a:hover { color: var(--text); }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; padding: 11px 22px; border-radius: 980px; font-weight: 500; font-size: 15px; transition: transform .15s, opacity .15s; }
.btn:hover { opacity: .9; transform: translateY(-1px); }
.btn.ghost { background: var(--surface-2); }

/* Hero */
.hero { text-align: center; padding: 110px 0 90px; }
.hero .logo { width: 84px; height: 84px; border-radius: 24px; background: var(--accent); display: flex; align-items: center; justify-content: center; margin: 0 auto 28px; }
.hero h1 { font-size: 58px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.hero h1 .grad { background: linear-gradient(90deg, #7c6cf6, #b3a6ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 21px; color: var(--text-dim); max-width: 620px; margin: 22px auto 34px; }
.hero .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.stats-row { display: flex; gap: 40px; justify-content: center; margin-top: 60px; flex-wrap: wrap; }
.stat .n { font-size: 34px; font-weight: 600; letter-spacing: -0.02em; }
.stat .l { font-size: 14px; color: var(--text-dim); margin-top: 4px; }

/* Sections */
section { padding: 80px 0; }
.section-head { text-align: center; margin-bottom: 54px; }
.section-head h2 { font-size: 40px; font-weight: 600; letter-spacing: -0.02em; }
.section-head p { font-size: 18px; color: var(--text-dim); margin-top: 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-3px); border-color: rgba(124,108,246,0.4); }
.card .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; color: var(--accent); margin-bottom: 18px; }
.card h3 { font-size: 19px; font-weight: 500; margin-bottom: 8px; }
.card p { font-size: 15px; color: var(--text-dim); }

.cta-band { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 64px 24px; margin: 40px 0; }
.cta-band h2 { font-size: 36px; font-weight: 600; letter-spacing: -0.02em; }
.cta-band p { color: var(--text-dim); font-size: 18px; margin: 14px 0 28px; }

footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--text-dim); font-size: 14px; }
footer .inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
footer a:hover { color: var(--text); }

/* Doc pages */
.doc { padding: 60px 0 100px; max-width: 780px; }
.doc h1 { font-size: 40px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.doc .updated { color: var(--text-dim); font-size: 14px; margin-bottom: 40px; }
.doc h2 { font-size: 24px; font-weight: 500; margin: 38px 0 14px; }
.doc h3 { font-size: 18px; font-weight: 500; margin: 24px 0 10px; }
.doc p, .doc li { color: #d4d4d8; font-size: 16px; margin-bottom: 12px; }
.doc ul { padding-left: 22px; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--text-dim); font-weight: 500; }
.doc code { background: var(--surface-2); padding: 2px 7px; border-radius: 6px; font-size: 14px; font-family: ui-monospace, monospace; }
.doc .note { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 8px; padding: 14px 18px; margin: 18px 0; color: var(--text-dim); font-size: 15px; }

@media (max-width: 640px) {
  .hero h1 { font-size: 40px; }
  .nav-links { display: none; }
  .section-head h2 { font-size: 30px; }
}
