:root {
	color-scheme: dark;
	--ink: #f8fbff;
	--muted: #b8c5d8;
	--night: #070b14;
	--panel: rgb(9 17 30 / 82%);
	--line: rgb(255 255 255 / 16%);
	--cyan: #47e2ff;
	--lime: #b9ff4f;
	--coral: #ff6d6d;
	--gold: #ffd166;
	--pink: #ff5bc8;
	--violet: #8c7bff;
	--shadow: 0 24px 70px rgb(0 0 0 / 42%);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	background: var(--night);
	color: var(--ink);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	min-width: 320px;
	margin: 0;
	overflow-x: hidden;
	background:
		radial-gradient(circle at 8% 6%, rgb(71 226 255 / 24%), transparent 18rem),
		radial-gradient(circle at 88% 12%, rgb(255 91 200 / 20%), transparent 20rem),
		radial-gradient(circle at 54% 100%, rgb(185 255 79 / 12%), transparent 24rem),
		linear-gradient(135deg, #070b14 0%, #101525 48%, #0b1d24 100%);
}

a { color: inherit; text-decoration: none; }

.shell {
	width: min(1120px, calc(100% - 2rem));
	margin: 0 auto;
}

.nav-wrap {
	position: sticky;
	top: 0;
	z-index: 20;
	border-bottom: 1px solid rgb(255 255 255 / 10%);
	background: rgb(7 11 20 / 80%);
	backdrop-filter: blur(18px);
}

.nav {
	min-height: 3.8rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: .72rem;
	min-width: 0;
	font-weight: 900;
}

.brand-mark {
	width: 2.25rem;
	height: 2.25rem;
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	border: 1px solid rgb(255 255 255 / 22%);
	border-radius: 8px;
	background: conic-gradient(from 210deg, var(--cyan), var(--lime), var(--gold), var(--coral), var(--pink), var(--cyan));
	color: #061014;
	box-shadow: 0 0 30px rgb(71 226 255 / 28%);
}

.brand-text {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nav-links {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: .35rem;
	color: var(--muted);
	font-size: .95rem;
	font-weight: 800;
}

.nav-toggle {
	display: none;
	min-height: 2.35rem;
	align-items: center;
	justify-content: center;
	border: 1px solid rgb(255 255 255 / 18%);
	border-radius: 8px;
	padding: 0 .75rem;
	background: rgb(255 255 255 / 8%);
	color: var(--ink);
	font: inherit;
	font-weight: 900;
	cursor: pointer;
}

.nav-toggle span {
	width: 1rem;
	height: .72rem;
	display: inline-grid;
	gap: .22rem;
	margin-right: .45rem;
}

.nav-toggle span::before,
.nav-toggle span::after,
.nav-toggle i {
	content: "";
	display: block;
	height: .12rem;
	border-radius: 999px;
	background: currentColor;
}

.nav-links a,
.button {
	min-height: 2.35rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	padding: 0 .85rem;
}

.nav-links a:hover { color: var(--ink); }

.button {
	border: 1px solid rgb(255 255 255 / 18%);
	background: rgb(255 255 255 / 8%);
	color: var(--ink);
	font-weight: 900;
	box-shadow: 0 12px 30px rgb(0 0 0 / 26%);
}

.button.primary {
	border-color: transparent;
	background: linear-gradient(135deg, var(--cyan), var(--lime));
	color: #061014;
}

.hero {
	padding: 4.5rem 0 2.5rem;
}

.hero-panel {
	position: relative;
	overflow: hidden;
	border: 1px solid rgb(255 255 255 / 15%);
	border-radius: 8px;
	padding: clamp(1.2rem, 4vw, 3rem);
	background:
		linear-gradient(135deg, rgb(255 255 255 / 13%), rgb(255 255 255 / 5%)),
		rgb(8 18 31 / 76%);
	box-shadow: var(--shadow);
}

.hero-panel::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgb(71 226 255 / 20%), transparent 32%),
		linear-gradient(315deg, rgb(255 209 102 / 17%), transparent 44%);
	pointer-events: none;
}

.hero-content {
	position: relative;
	max-width: 48rem;
}

.kicker {
	width: fit-content;
	max-width: 100%;
	display: inline-flex;
	margin-bottom: .85rem;
	border: 1px solid rgb(71 226 255 / 38%);
	border-radius: 8px;
	padding: .45rem .7rem;
	background: rgb(71 226 255 / 12%);
	color: #dffbff;
	font-size: .8rem;
	font-weight: 900;
	text-transform: uppercase;
}

h1,
h2,
h3,
p { overflow-wrap: anywhere; }

h1 {
	max-width: 11ch;
	margin: 0;
	font-size: clamp(3rem, 10vw, 7.2rem);
	line-height: .9;
	letter-spacing: 0;
}

/* Article detail pages have long sentence titles; keep them readable
   instead of the oversized landing-hero scale. */
main:has(.post-body) .hero h1 {
	max-width: 24ch;
	font-size: clamp(1.9rem, 4.5vw, 3.1rem);
	line-height: 1.08;
}

/* Tighten the vertical rhythm on article detail pages: trim the large
   gap below the nav and the double padding between hero and post body. */
main:has(.post-body) .hero {
	padding: 1.8rem 0 1rem;
}

main:has(.post-body) > section:not(.hero) {
	padding-top: 0;
}

.hero-copy {
	max-width: 47rem;
	margin: 1.2rem 0 0;
	color: var(--muted);
	font-size: clamp(1rem, 2vw, 1.28rem);
	line-height: 1.6;
}

.hero-cta {
	max-width: 42rem;
	margin-top: 1.35rem;
	padding-top: 1.15rem;
	border-top: 1px solid rgb(255 255 255 / 14%);
}

.hero-cta h2 {
	margin: 0;
	font-size: clamp(1.35rem, 3vw, 2rem);
	line-height: 1.1;
}

.hero-cta p {
	margin: .6rem 0 0;
	color: var(--muted);
	line-height: 1.6;
}

.post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: .45rem .8rem;
	margin-top: 1rem;
	color: #d9eaff;
	font-size: .94rem;
	font-weight: 800;
	line-height: 1.45;
}

.post-meta span {
	border: 1px solid rgb(255 255 255 / 14%);
	border-radius: 8px;
	padding: .45rem .62rem;
	background: rgb(255 255 255 / 7%);
}

.hero-actions,
.post-actions {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	margin-top: 1.4rem;
}

.feature-strip {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: .85rem;
	margin-top: 1.1rem;
}

.feature {
	border: 1px solid rgb(255 255 255 / 13%);
	border-radius: 8px;
	padding: 1rem;
	background: rgb(255 255 255 / 7%);
}

.feature strong {
	display: block;
	margin-bottom: .35rem;
	color: var(--gold);
	font-size: .82rem;
	text-transform: uppercase;
}

.feature span {
	color: var(--muted);
	line-height: 1.45;
}

main section { padding: 2.6rem 0; }

.section-heading {
	display: grid;
	grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
	gap: 1rem;
	align-items: end;
	margin-bottom: 1rem;
}

.section-heading h2 {
	margin: 0;
	font-size: clamp(2rem, 5vw, 4rem);
	line-height: .98;
}

.section-heading p {
	margin: 0;
	color: var(--muted);
	line-height: 1.6;
}

.card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.entry-card {
	min-height: 21rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 1.2rem;
	border: 1px solid rgb(255 255 255 / 15%);
	border-radius: 8px;
	padding: 1.15rem;
	background:
		linear-gradient(145deg, rgb(255 255 255 / 12%), rgb(255 255 255 / 5%)),
		var(--panel);
	box-shadow: 0 18px 46px rgb(0 0 0 / 28%);
}

.entry-card:nth-child(1) { border-color: rgb(71 226 255 / 36%); }
.entry-card:nth-child(2) { border-color: rgb(255 91 200 / 34%); }
.entry-card:nth-child(3) { border-color: rgb(185 255 79 / 32%); }

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: .45rem;
	margin-bottom: .55rem;
	color: var(--night);
	font-size: .78rem;
	font-weight: 900;
	text-transform: uppercase;
}

.entry-meta span {
	border-radius: 8px;
	padding: .32rem .48rem;
	background: linear-gradient(135deg, var(--gold), var(--pink));
}

.entry-card h3 {
	margin: 0;
	font-size: 1.55rem;
	line-height: 1.05;
}

.entry-card p {
	margin: .75rem 0 0;
	color: var(--muted);
	line-height: 1.55;
}

.post-wrap {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 17rem;
	gap: 1.25rem;
	align-items: start;
}

.post-body {
	min-width: 0;
	border: 1px solid rgb(255 255 255 / 14%);
	border-radius: 8px;
	padding: clamp(1.1rem, 3vw, 2.2rem);
	background: rgb(8 18 31 / 74%);
	box-shadow: var(--shadow);
}

.post-body h2 {
	margin: 2rem 0 .7rem;
	font-size: clamp(1.55rem, 3vw, 2.3rem);
	line-height: 1.08;
}

.post-body h2:first-child { margin-top: 0; }

.post-body p,
.post-body li {
	color: #d7e3f4;
	line-height: 1.72;
}

.post-body ul {
	margin: .4rem 0 0;
	padding-left: 1.2rem;
}

.post-figure {
	margin: 1.6rem 0;
}

.post-figure img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid rgb(255 255 255 / 14%);
	border-radius: 8px;
}

.post-figure figcaption {
	margin-top: .5rem;
	color: var(--muted);
	font-size: .9rem;
	line-height: 1.5;
}

.article-share {
	padding: 0 0 .4rem;
}

.article-share .share-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: .7rem;
}

.article-share h3 {
	margin: 0;
	font-size: .95rem;
	font-weight: 900;
}

.article-share .share-sub {
	margin: 0;
	color: var(--muted);
	font-size: .8rem;
}

.share-row {
	display: flex;
	flex-wrap: wrap;
	gap: .45rem;
}

.share-btn {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	min-height: 1.95rem;
	padding: 0 .6rem;
	border: 1px solid rgb(255 255 255 / 18%);
	border-radius: 7px;
	background: rgb(255 255 255 / 8%);
	color: var(--ink);
	font: inherit;
	font-weight: 800;
	font-size: .8rem;
	cursor: pointer;
	transition: transform .12s ease, filter .12s ease, background .12s ease;
}

.share-btn:hover {
	transform: translateY(-1px);
	filter: brightness(1.08);
}

.share-btn:focus-visible {
	outline: 2px solid var(--cyan);
	outline-offset: 2px;
}

.share-btn svg {
	width: .95rem;
	height: .95rem;
	flex: 0 0 auto;
}

.share-btn.facebook { background: #1877f2; border-color: transparent; color: #fff; }
.share-btn.x { background: #000; border-color: rgb(255 255 255 / 28%); color: #fff; }
.share-btn.linkedin { background: #0a66c2; border-color: transparent; color: #fff; }
.share-btn.instagram {
	border-color: transparent;
	background: linear-gradient(120deg, #feda75, #fa7e1e 28%, #d62976 58%, #962fbf 78%, #4f5bd5);
	color: #fff;
}
.share-btn.copy { background: linear-gradient(135deg, var(--cyan), var(--lime)); border-color: transparent; color: #061014; }

.share-toast {
	position: fixed;
	left: 50%;
	bottom: 1.4rem;
	transform: translate(-50%, 1.5rem);
	z-index: 50;
	max-width: min(92vw, 30rem);
	padding: .8rem 1.1rem;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: rgb(9 17 30 / 96%);
	color: var(--ink);
	font-weight: 700;
	font-size: .9rem;
	box-shadow: var(--shadow);
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s ease, transform .2s ease;
}

.share-toast.show {
	opacity: 1;
	transform: translate(-50%, 0);
}

@media (max-width: 640px) {
	.article-share .share-head { flex-direction: column; gap: .15rem; }
	.share-btn { font-size: .78rem; }
}

.side-panel {
	position: sticky;
	top: 5rem;
	border: 1px solid rgb(255 255 255 / 14%);
	border-radius: 8px;
	padding: 1rem;
	background: rgb(255 255 255 / 7%);
}

.side-panel strong {
	display: block;
	margin-bottom: .55rem;
	color: var(--gold);
}

.side-panel a {
	display: block;
	border-top: 1px solid rgb(255 255 255 / 10%);
	padding: .65rem 0;
	color: var(--muted);
	font-weight: 800;
}

.side-panel a:hover { color: var(--ink); }

footer {
	padding: 1.5rem 0 2rem;
	color: var(--muted);
	font-size: .9rem;
}

.footer-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: .75rem;
	border-top: 1px solid rgb(255 255 255 / 12%);
	padding-top: 1.2rem;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: .55rem 1rem;
	align-items: center;
}

.footer-links a {
	color: inherit;
	font-weight: 850;
	text-decoration: none;
}

.footer-links a:hover {
	text-decoration: underline;
	text-underline-offset: .18rem;
}

@media (max-width: 860px) {
	.section-heading,
	.post-wrap { grid-template-columns: 1fr; }
	.card-grid,
	.feature-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.side-panel { position: static; }
}

@media (max-width: 620px) {
	.shell { width: min(100% - 1.25rem, 1120px); }
	.nav { min-height: 3.6rem; align-items: center; flex-direction: row; justify-content: space-between; gap: .55rem; padding: .55rem 0; flex-wrap: wrap; }
	.brand-text[data-mobile-text] { max-width: none; font-size: 0; }
	.brand-text[data-mobile-text]::after { content: attr(data-mobile-text); font-size: 1rem; }
	.nav-toggle { display: inline-flex; }
	.nav-links { width: 100%; max-height: 0; overflow: hidden; opacity: 0; pointer-events: none; justify-content: flex-start; flex-wrap: wrap; gap: .35rem; padding: 0; transition: max-height .24s ease, opacity .18s ease, padding .18s ease; }
	.nav.open .nav-links { max-height: 14rem; opacity: 1; pointer-events: auto; padding-top: .35rem; }
	.nav-links a { flex: 1 1 calc(50% - .35rem); min-height: 2.35rem; border: 1px solid rgb(255 255 255 / 12%); background: rgb(255 255 255 / 6%); font-size: .86rem; }
	.hero { padding-top: 2rem; }
	.hero-actions,
	.post-actions { display: grid; }
	.button { width: 100%; }
	.footer-links { width: 100%; gap: .45rem .7rem; }
	.footer-links a { flex: 1 1 calc(50% - .7rem); }
	.card-grid,
	.feature-strip { grid-template-columns: 1fr; }
	.entry-card { min-height: auto; }
}
