:root {
  --bg: #f3f5f9; --surface: #fff; --surface-2: #eef1f6; --border: #e3e7ee; --text: #1d2330; --muted: #5d6677;
  --accent: #f26b21; --accent-hover: #e25d14; --accent-soft: #fdeee5; --accent-text: #c4500f;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 24px rgba(16, 24, 40, .06);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0e1117; --surface: #161a22; --surface-2: #1b2029; --border: #272d38; --text: #e7eaf0; --muted: #98a2b3;
          --accent-soft: #2d1d14; --accent-text: #ff9b62; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 24px rgba(0,0,0,.25); }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: -apple-system, "Segoe UI", Inter, Roboto, Arial, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: var(--accent-text); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
header.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
header.top .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }
.brand img { width: 30px; height: 30px; }
nav.links { display: flex; gap: 18px; margin-left: auto; }
nav.links a { color: var(--muted); text-decoration: none; font-weight: 500; }
nav.links a:hover { color: var(--text); }
.lang { display: flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 3px; }
.lang a { padding: 3px 9px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; }
.lang a.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 12px; font-weight: 600; text-decoration: none; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; font: inherit; font-weight: 600; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.hero { padding: 84px 0 64px; text-align: center; }
.pill { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-weight: 600; font-size: 14px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.1; margin: 0 auto 18px; max-width: 900px; letter-spacing: -.02em; }
.hero p { font-size: 19px; color: var(--muted); max-width: 720px; margin: 0 auto 30px; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
section.block { padding: 56px 0; }
h2 { font-size: clamp(26px, 3.5vw, 36px); text-align: center; margin: 0 0 10px; letter-spacing: -.01em; }
.lead { text-align: center; color: var(--muted); max-width: 680px; margin: 0 auto 36px; font-size: 17px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin: 10px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.ico { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; font-size: 20px; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 18px; }
.steps .card { position: relative; padding-top: 56px; }
.steps .card:before { counter-increment: s; content: counter(s); position: absolute; top: 20px; left: 24px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.stack { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.stack span { padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: 14px; color: var(--muted); }
.beta { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .beta { grid-template-columns: 1fr; } nav.links { display: none; } }
.beta ul { padding-left: 20px; color: var(--muted); }
form.apply { display: grid; gap: 12px; }
form.apply label { display: grid; gap: 5px; font-size: 14px; font-weight: 600; }
form.apply input, form.apply textarea, form.apply select { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); color: var(--text); font: inherit; font-weight: 400; }
form.apply textarea { min-height: 110px; resize: vertical; }
form.apply .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { form.apply .row { grid-template-columns: 1fr; } }
.form-msg { margin: 0; font-weight: 600; color: var(--accent-text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; margin-bottom: 10px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { margin: 10px 0 0; color: var(--muted); }
footer { padding: 36px 0; color: var(--muted); font-size: 14px; border-top: 1px solid var(--border); margin-top: 40px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
@media (max-width: 520px) {
  header.top .wrap { gap: 10px; }
  header.top .btn { padding: 8px 12px; font-size: 14px; }
  .brand { font-size: 16px; }
  .brand span.full { display: none; }
}
@media (max-width: 400px) { header.top .btn-primary { display: none; } }

/* Docs */
.docs { display: grid; grid-template-columns: 230px 1fr; gap: 32px; padding: 36px 20px 20px; }
.docs-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 84px; align-self: start; }
.docs-nav a { padding: 8px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 500; }
.docs-nav a.on, .docs-nav a:hover { background: var(--surface); color: var(--text); }
.docs-body { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 30px 34px; box-shadow: var(--shadow); min-width: 0; }
.docs-body h1 { margin: 0 0 14px; font-size: 30px; }
.docs-body h2 { text-align: left; font-size: 20px; margin: 28px 0 10px; }
.docs-body li { margin-bottom: 6px; }
.docs-body pre { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
.docs-body code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
.docs-body .note { background: var(--accent-soft); border-radius: 12px; padding: 14px 16px; }
.doc-card { text-decoration: none; color: var(--text); }
.doc-card:hover { border-color: var(--accent); }
.card pre { background: var(--surface-2); border-radius: 12px; padding: 14px 16px; white-space: pre-wrap; word-break: break-all; margin: 0; }
@media (max-width: 860px) { .docs { grid-template-columns: 1fr; } .docs-nav { position: static; flex-direction: row; flex-wrap: wrap; } .docs-body { padding: 22px 18px; } }
