:root {
	--bg: #14151a;
	--mid: #1c1e26;
	--card: #191b22;
	--border: #34384a;
	--accent: #4338ca;
	--accent-hi: #a5b4fc;
	--text: #eef0fa;
	--muted: #c3c6d8;
	--ok: #34d399;
	--bad: #f87171;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	background: radial-gradient(ellipse 1200px 700px at 50% -10%, var(--mid) 0%, var(--bg) 60%) no-repeat, var(--bg);
	color: var(--text);
	font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-size: 16px;
	line-height: 1.65;
	overflow-x: hidden;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

main { flex: 1 0 auto; }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; text-wrap: balance; }

a { color: var(--accent-hi); }
a:hover { color: #a5b4fc; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 6px; }

img, svg { max-width: 100%; }

.bn { white-space: nowrap; }
.bi { display: inline-block; width: 1.05em; height: 1.05em; border-radius: 0.24em; vertical-align: -0.17em; margin-right: 0.3em; }
h1 .bi, h2 .bi, h3 .bi { width: 1.12em; height: 1.12em; vertical-align: -0.2em; margin-right: 0.28em; }
.btn .bi { margin-right: 0.35em; }
.ill image { clip-path: inset(0 round 4px); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.skip {
	position: absolute; left: 12px; top: -60px; z-index: 50;
	background: #fff; color: #14151a; padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.nav {
	position: sticky; top: 0; z-index: 20;
	background: rgba(20, 21, 26, 0.94);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand img { width: 36px; height: 36px; border-radius: 9px; display: block; }
.brand .sense { color: var(--accent-hi); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent-hi); }
.nav-back { white-space: nowrap; }

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 24px; border-radius: 9px; font-weight: 600; font-size: 15px;
	text-decoration: none; border: 1px solid transparent; cursor: pointer;
	transition: background .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #3730a3; color: #fff; }
.btn-outline { border-color: var(--cb-accent-border, #9aa4e6); color: var(--text); background: rgba(255,255,255,0.02); }
.btn-outline:hover { border-color: var(--cb-accent-text, #b4bdf3); color: var(--text); }
.btn-sm { padding: 8px 16px; font-size: 14px; }

.eyebrow {
	display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
	color: #3730a3; font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
	background: rgba(219,221,241,0.92); border-radius: 999px; padding: 6px 16px; margin-bottom: 22px;
}

.hero { padding: 72px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(32px, 4.4vw, 52px); margin-bottom: 20px; }
.hero h1 .accent { color: var(--accent-hi); }
.hero .lede { color: var(--muted); font-size: 17.5px; max-width: 540px; margin-bottom: 30px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art {
	background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 18px;
	box-shadow: 0 40px 100px rgba(0,0,0,0.55), 0 0 120px rgba(99,102,241,0.25);
}
.hero-art figcaption { color: var(--muted); font-size: 13.5px; padding: 12px 6px 2px; }

.section { padding: 64px 0; }
.section.alt { background: linear-gradient(180deg, var(--mid) 0%, var(--bg) 100%); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head .kicker {
	display: inline-block; color: #3730a3; background: rgba(219,221,241,0.92);
	font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 14px; border-radius: 6px; margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(26px, 3.6vw, 36px); margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 16.5px; }

.definition { max-width: 820px; margin: 0 auto; text-align: center; font-size: 19px; color: var(--text); line-height: 1.7; }
.definition strong { color: var(--accent-hi); font-weight: 600; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
	background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 28px 26px;
	display: flex; flex-direction: column; min-width: 0;
}
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }
.card .more { margin-top: auto; padding-top: 16px; font-weight: 600; font-size: 14.5px; }
a.card { text-decoration: none; color: inherit; transition: border-color .2s ease, transform .2s ease; }
a.card:hover { border-color: var(--accent-hi); transform: translateY(-3px); }
.stage-tag { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-hi); background: rgba(67,56,202,0.16); border: 1px solid rgba(67,56,202,0.45); border-radius: 999px; padding: 4px 12px; margin-bottom: 14px; }

.ic { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(99,102,241,0.2); color: #a5b4fc; margin-bottom: 16px; flex: 0 0 auto; }
.ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; list-style: none; }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 26px 22px; }
.steps li::before {
	content: counter(step); display: flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent-hi); font-weight: 700; margin-bottom: 16px;
}
.steps h3 { font-size: 17px; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 14.5px; }

.board { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.board h2 { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 14px; }
.board p { color: var(--muted); margin-bottom: 14px; }
.legend { list-style: none; display: grid; gap: 10px; margin-top: 18px; }
.legend li { display: flex; align-items: center; gap: 12px; color: var(--text); font-size: 15px; }
.dot { width: 14px; height: 14px; border-radius: 50%; flex: 0 0 auto; }
.dot.ok { background: var(--ok); }
.dot.bad { background: var(--bad); }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 18px; }

.points { list-style: none; display: grid; gap: 14px; max-width: 760px; margin: 0 auto; }
.points li { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; color: var(--muted); }
.points li strong { color: var(--text); display: block; font-size: 16px; }
.points .tick { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: rgba(52,211,153,0.15); color: var(--ok); display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.points .tick svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.band {
	display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
	background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 30px 32px; margin-top: 28px;
}
.band h3 { font-size: 21px; margin-bottom: 6px; }
.band p { color: var(--muted); max-width: 640px; }

.soon-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.soon-item {
	display: flex; flex-direction: column; gap: 6px; background: transparent; border: 1px dashed var(--border); border-radius: 12px; padding: 20px 22px; cursor: not-allowed;
}
.soon-item h3 { font-size: 17px; color: var(--muted); }
.soon-item p { font-size: 14px; color: #9ea2b8; }
.badge { align-self: flex-start; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); background: rgba(255,255,255,0.08); border: 1px solid var(--border); border-radius: 999px; padding: 3px 11px; }

.page-head { padding: 56px 0 28px; }
.page-head h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 14px; }
.page-head p { color: var(--muted); font-size: 17px; max-width: 680px; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--border); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }

.kb-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding-bottom: 24px; }
.kb-list a.card { height: 100%; }
.kb-num { color: var(--accent-hi); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; margin-bottom: 8px; }

.article { max-width: 780px; margin: 0 auto; padding: 48px 24px 24px; }
.article h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 18px; }
.article .lede { color: var(--text); font-size: 18.5px; margin-bottom: 28px; }
.article h2 { font-size: 23px; margin: 36px 0 12px; }
.article p { color: var(--muted); margin-bottom: 16px; font-size: 16.5px; }
.article p strong, .article li strong { color: var(--text); }
.article ul, .article ol { color: var(--muted); margin: 0 0 18px 24px; font-size: 16.5px; }
.article li { margin-bottom: 8px; padding-left: 4px; }
.article figure { margin: 30px 0; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.article figure svg { display: block; width: 100%; height: auto; max-width: 520px; margin: 0 auto; }
.article figcaption { color: var(--muted); font-size: 14px; text-align: center; margin-top: 12px; }
.note { background: rgba(67,56,202,0.12); border-left: 3px solid var(--accent-hi); border-radius: 8px; padding: 14px 18px; margin: 24px 0; color: var(--text); font-size: 16px; }
.note p { color: var(--text); margin: 0; font-size: 16px; }

.pager { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: 780px; margin: 0 auto; padding: 24px 24px 64px; }
.pager a { flex: 1 1 260px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; text-decoration: none; color: var(--text); font-weight: 600; font-size: 15px; }
.pager a:hover { border-color: var(--accent-hi); }
.pager a span:not(.bn) { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.pager .next { text-align: right; }

.soon-page { padding-bottom: 72px; }
.soon-page .soon-grid { grid-template-columns: repeat(2, 1fr); }

footer { border-top: 1px solid var(--border); padding: 30px 0; margin-top: 40px; }
footer .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
footer .brand { font-size: 16px; }
footer .brand img { width: 30px; height: 30px; }
footer .fine { color: var(--muted); font-size: 14px; }
footer .fine a { color: var(--muted); }
footer .fine a:hover { color: var(--text); }

.ill text { font-family: inherit; fill: var(--text); font-size: 15px; font-weight: 600; }
.ill .sm { font-size: 13px; font-weight: 500; fill: var(--muted); }
.ill .bx { fill: var(--mid); stroke: var(--border); stroke-width: 1.5; }
.ill .bx-hi { fill: rgba(67,56,202,0.22); stroke: var(--accent-hi); stroke-width: 1.5; }
.ill .ln { stroke: #5a5f78; stroke-width: 2; fill: none; }
.ill .ln-hi { stroke: var(--accent-hi); stroke-width: 2; fill: none; }
.ill .dash { stroke-dasharray: 6 5; }
.ill .ok { fill: var(--ok); }
.ill .bad { fill: var(--bad); }
.ill .okt { fill: var(--ok); }
.ill .badt { fill: var(--bad); }
.ill .acc { fill: var(--accent-hi); }
.ill .mut { fill: #5a5f78; }
.ill .stroke-ok { stroke: var(--ok); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ill .stroke-bad { stroke: var(--bad); fill: none; stroke-width: 2.5; stroke-linecap: round; }
.ill .arrowhead { fill: #5a5f78; }
.ill .arrowhead-hi { fill: var(--accent-hi); }

@media (max-width: 860px) {
	.hero { padding: 48px 0 40px; }
	.hero-grid, .board { grid-template-columns: 1fr; gap: 32px; }
	.grid-3, .soon-grid { grid-template-columns: 1fr 1fr; }
	.steps { grid-template-columns: 1fr 1fr; }
	.section { padding: 48px 0; }
}

@media (max-width: 600px) {
	.wrap { padding: 0 16px; }
	.article { padding: 32px 16px 16px; }
	.pager { padding: 16px 16px 48px; }
	.nav .wrap { flex-wrap: wrap; row-gap: 6px; }
	.nav-links { order: 3; width: 100%; justify-content: flex-start; gap: 20px; }
	.nav-back { margin-left: auto; }
	.grid-2, .grid-3, .steps, .kb-list, .soon-grid, .soon-page .soon-grid { grid-template-columns: 1fr; }
	.band { padding: 24px 20px; }
	.definition { font-size: 17px; }
	.hero-art { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	a.card, .btn { transition: none; }
	a.card:hover { transform: none; }
}

.download { max-width: 760px; margin: 0 auto; text-align: center; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 40px 28px; box-shadow: 0 30px 80px rgba(0,0,0,0.45), 0 0 100px rgba(99,102,241,0.18); }
.download h2 { font-size: clamp(24px, 3.2vw, 32px); margin-bottom: 10px; }
.download p { color: var(--muted); }
.download .btn { margin: 22px 0 14px; padding: 15px 34px; font-size: 17px; }
.download .fine-line { color: var(--text); font-size: 15px; margin: 0; }
.btn-off, .btn-off:hover { background: transparent; border: 1px dashed var(--border); color: var(--muted); cursor: not-allowed; pointer-events: none; }

.ink-note { color: var(--muted); font-size: 15px; }
.doc-steps { list-style: none; counter-reset: ds; margin: 0 0 18px 0 !important; }
.doc-steps li { counter-increment: ds; position: relative; padding: 14px 18px 14px 64px; margin-bottom: 12px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; }
.doc-steps li::before { content: counter(ds); position: absolute; left: 16px; top: 14px; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent-hi); font-weight: 700; display: flex; align-items: center; justify-content: center; }

@media (max-width: 600px) {
	.brand { font-size: 16px; gap: 8px; }
	.brand img { width: 32px; height: 32px; }
	.download { padding: 30px 18px; }
	.download .btn { width: 100%; padding: 14px 18px; font-size: 16px; }
}

.pack-item, .pack-item:hover { border: 1px solid var(--accent-hi); background: var(--card); cursor: default; }
.pack-item h3 { color: var(--text); }
.pack-item p { color: var(--muted); }
.pack-grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 600px) { .pack-grid { grid-template-columns: 1fr; } }

@media (max-width: 1040px) {
	.nav .wrap { flex-wrap: wrap; row-gap: 6px; }
	.nav-links { order: 3; width: 100%; justify-content: flex-start; gap: 20px; flex-wrap: wrap; }
	.nav-links a { white-space: nowrap; }
	.nav-back { margin-left: auto; }
}

.dl-meta { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 22px auto 0; max-width: 620px; text-align: left; background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 12px; padding: 18px 22px; }
.dl-meta dt { color: var(--muted); font-size: 14px; }
.dl-meta dd { margin: 0; font-size: 15px; min-width: 0; }
.hash { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; overflow-wrap: anywhere; }
.alt-dl { margin-top: 18px; font-size: 14px; }
@media (max-width: 600px) {
	.dl-meta { grid-template-columns: 1fr; gap: 2px; }
	.dl-meta dd { margin-bottom: 10px; }
}
.skip, .skip:visited { color: #14151a !important; }
section[id], .download[id] { scroll-margin-top: 84px; }
@media (max-width: 1040px) { section[id], .download[id] { scroll-margin-top: 150px; } }
@media (max-width: 600px) { section[id], .download[id] { scroll-margin-top: 210px; } }
.prod-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: -16px 0 28px; }
.prod-tabs a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; padding: 9px 20px; border-radius: 999px; border: 1px solid var(--cb-accent-border, #9aa4e6); background: rgba(255,255,255,0.02); }
.prod-tabs a:hover { border-color: var(--accent-hi); background: rgba(67,56,202,0.16); }
.prod { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 30px 32px; margin-bottom: 24px; }
.prod-head { max-width: 760px; margin-bottom: 22px; }
.prod-head h3 { font-size: 24px; margin-bottom: 8px; }
.prod-head p { color: var(--muted); }
.prod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
.prod-block { min-width: 0; }
.prod-block h4 { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-hi); margin-bottom: 8px; }
.prod-block p { color: var(--muted); font-size: 15px; }
.prod-block p strong, .prod-steps strong { color: var(--text); }
.prod-steps { list-style: none; counter-reset: ps; display: grid; gap: 8px; }
.prod-steps li { counter-increment: ps; position: relative; padding-left: 36px; color: var(--muted); font-size: 15px; }
.prod-steps li::before { content: counter(ps); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent-hi); font-weight: 700; font-size: 12.5px; display: flex; align-items: center; justify-content: center; }
.prod-also { max-width: 760px; margin: 8px auto 0; text-align: center; color: var(--muted); }
.prod-also strong { color: var(--text); }
.prod[id] { scroll-margin-top: 84px; }
@media (max-width: 860px) { .prod-grid { grid-template-columns: 1fr; } }
@media (max-width: 1040px) { .prod[id] { scroll-margin-top: 150px; } }
@media (max-width: 600px) { .prod { padding: 22px 18px; } .prod-tabs { margin-top: -20px; } .prod[id] { scroll-margin-top: 210px; } }
.prod-head .stage-tag { display: inline-block; }
