:root {
	--bg: #121212;
	--bg-elev: #1a1a1a;
	--bg-hover: #262626;
	--border: #2a2a2a;
	--text: #ececec;
	--body: #c9c9cf;
	--muted: #9a9a9a;
	--accent: #8b8bff;
	--accent-2: #5eead4;
	--grad: linear-gradient(135deg, #6d5dfc 0%, #8b8bff 45%, #5eead4 100%);
	--radius: 14px;
	--font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
	margin: 0; background: var(--bg); color: var(--text);
	font-family: var(--font); font-size: 17px; line-height: 1.7;
	-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #a8a8ff; }

/* Header / footer */
.site-header {
	display: flex; align-items: center; justify-content: space-between;
	max-width: 760px; margin: 0 auto; padding: 18px 20px;
}
.brand { color: var(--text); text-decoration: none; font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }
.cta-small {
	color: #0f0f1a; text-decoration: none; font-size: 14px; font-weight: 600;
	padding: 8px 16px; border-radius: 999px; background: var(--grad);
}
.cta-small:hover { color: #0f0f1a; filter: brightness(1.08); }
.site-footer {
	max-width: 760px; margin: 0 auto; padding: 24px 20px 48px;
	border-top: 1px solid var(--border); font-size: 14px; color: var(--muted);
}
.site-footer p { margin: 0; color: var(--muted); }

/* Article */
.guide { max-width: 760px; margin: 0 auto; padding: 8px 20px 64px; }
.breadcrumb { font-size: 14px; color: var(--muted); margin: 8px 0 20px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span[aria-hidden] { margin: 0 6px; }
h1 { font-size: 40px; line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 10px; }
h2 { font-size: 26px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 800; margin: 48px 0 14px; scroll-margin-top: 24px; }
h3 { font-size: 19px; font-weight: 600; margin: 26px 0 6px; }
p, li { color: var(--body); }
p { margin: 0 0 16px; }
.lead { font-size: 19px; color: var(--text); }
.meta { font-size: 14px; color: var(--muted); margin: 0 0 20px; }
ul, ol { padding-left: 24px; margin: 0 0 16px; }
li { margin: 6px 0; }
li::marker { color: var(--accent); font-weight: 600; }
strong { color: var(--text); }
code, kbd {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.9em; background: var(--bg-elev); border: 1px solid var(--border);
	border-radius: 6px; padding: 1px 6px; color: var(--text);
}

/* Images */
figure { margin: 28px 0; }
figure img {
	display: block; width: 100%; height: auto; border-radius: var(--radius);
	background: var(--bg-elev); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}
figure.hero { margin: 24px 0 32px; }

/* Boxes: key takeaways and table of contents */
.box-title {
	font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
	color: var(--accent-2); margin: 0 0 10px;
}
.takeaways {
	position: relative; margin: 0 0 24px; padding: 20px 22px 14px;
	background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
}
.takeaways::before {
	content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px;
	border-radius: 4px; background: var(--grad);
}
.takeaways ul { margin: 0; padding-left: 20px; }
.takeaways li { color: var(--text); margin: 6px 0; }
.toc { margin: 0 0 8px; padding: 16px 22px 8px; border: 1px dashed var(--border); border-radius: var(--radius); }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 24px; }
.toc li { margin: 4px 0; break-inside: avoid; font-size: 15px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* CTA */
.cta {
	display: flex; align-items: center; justify-content: space-between; gap: 20px;
	margin: 36px 0; padding: 24px 26px; border-radius: var(--radius);
	background: var(--grad); color: #0f0f1a;
	box-shadow: 0 16px 48px rgba(109, 93, 252, 0.35);
}
.cta p { margin: 0; color: #1a1a2e; }
.cta .cta-title { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 4px; color: #0f0f1a; }
.cta .button {
	flex: 0 0 auto; display: inline-block; padding: 13px 20px; border-radius: 10px;
	background: #0f0f1a; color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cta .button:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35); color: #fff; }
.cta-end { background: linear-gradient(135deg, #5eead4 0%, #8b8bff 100%); }

/* FAQ, related */
.faq h3 { margin-top: 24px; }
.related { list-style: none; padding: 0; }
.related li {
	margin: 10px 0; padding: 14px 16px; background: var(--bg-elev);
	border: 1px solid var(--border); border-radius: 10px;
}
.related li a { font-weight: 600; text-decoration: none; display: block; }
.related li span { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }

@media (max-width: 640px) {
	html, body { font-size: 16px; }
	h1 { font-size: 30px; }
	h2 { font-size: 22px; }
	.lead { font-size: 17px; }
	.toc ol { columns: 1; }
	.cta { flex-direction: column; align-items: flex-start; padding: 20px; }
	.cta .button { width: 100%; text-align: center; }
	.site-header { padding: 14px 16px; }
	.guide { padding: 4px 16px 48px; }
}
