:root {
	--bg: #07090c;
	--ink: #e8eadf;
	--muted: #9aa392;
	--line: rgba(232, 234, 223, 0.12);
	--accent: #c8f542;
	--ok: #7dffb3;
	--card: #10141a;
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: Outfit, system-ui, sans-serif;
}

.noise {
	pointer-events: none;
	position: fixed;
	inset: 0;
	opacity: 0.035;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	z-index: 0;
}

body > * {
	position: relative;
	z-index: 1;
}

a {
	color: var(--accent);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

.top {
	position: relative;
	z-index: 50;
	display: grid;
	grid-template-columns: 1fr minmax(180px, 2fr) auto;
	align-items: center;
	gap: 1.5rem;
	padding: 1.1rem 4vw;
	border-bottom: 1px solid var(--line);
	background: var(--bg);
}

.header-blurb {
	margin: 0;
	color: var(--muted);
	font-size: 0.78rem;
	line-height: 1.45;
	max-width: 28rem;
}

.top-right {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	justify-self: end;
}

.cta {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--ink);
	color: var(--ink);
	padding: 0.55rem 0.9rem;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

.cta:hover {
	background: var(--ink);
	color: var(--bg);
	text-decoration: none;
}

nav {
	display: flex;
	gap: 1.4rem;
	font-size: 0.82rem;
}

nav a {
	color: var(--muted);
}

.lang-menu {
	position: relative;
}

.lang-toggle {
	appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	border: 1px solid var(--line);
	background: transparent;
	color: var(--ink);
	font-family: "IBM Plex Mono", "Noto Sans SC", monospace;
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	padding: 0.5rem 0.7rem;
	cursor: pointer;
}

.lang-caret {
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid var(--muted);
}

.lang-menu.is-open .lang-caret {
	transform: rotate(180deg);
}

.lang-panel {
	position: absolute;
	right: 0;
	top: calc(100% + 6px);
	z-index: 40;
	margin: 0;
	padding: 0.3rem;
	list-style: none;
	min-width: 10.5rem;
	background: #10141a;
	border: 1px solid var(--line);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.lang-panel button {
	appearance: none;
	width: 100%;
	border: 0;
	background: transparent;
	color: var(--muted);
	font-family: "IBM Plex Mono", "Noto Sans SC", monospace;
	font-size: 0.75rem;
	text-align: left;
	padding: 0.55rem 0.65rem;
	cursor: pointer;
}

.lang-panel button:hover,
.lang-panel button[aria-selected="true"] {
	background: rgba(200, 245, 66, 0.12);
	color: var(--accent);
}

html[lang="zh-CN"] body,
html[lang="zh-CN"] h2,
html[lang="zh-CN"] h3 {
	font-family: "Noto Sans SC", Outfit, sans-serif;
}

html[lang="zh-CN"] .hero-title {
	font-family: "Noto Sans SC", Outfit, sans-serif;
	letter-spacing: -0.02em;
}

html[lang="zh-CN"] .statement {
	font-family: "Noto Serif SC", "Instrument Serif", serif;
}

.hero {
	padding: 0 0 0;
}

.hero-title {
	font-family: Outfit, "Noto Sans SC", sans-serif;
	font-weight: 800;
	font-size: clamp(3.2rem, 16vw, 13.5rem);
	line-height: 0.82;
	letter-spacing: -0.05em;
	text-transform: uppercase;
	margin: 0.4rem 3vw 0;
	color: #f4f6ee;
}

.hero-art {
	position: relative;
	margin: 0.4rem 1.2vw 0;
	height: min(78vh, 860px);
	overflow: hidden;
	background: #0a1a33;
}

.hero-art img,
.bleed img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-art img {
	height: 125%;
	object-position: center 78%;
	transform: translateY(-6%);
}

.hud {
	position: absolute;
	z-index: 2;
	font-family: "IBM Plex Mono", monospace;
	font-size: 0.72rem;
	line-height: 1.55;
	color: #0b1220;
	background: rgba(244, 246, 238, 0.88);
	padding: 0.7rem 0.85rem;
	max-width: 16rem;
}

.hud p {
	margin: 0;
}

.hud-left {
	left: 4%;
	bottom: 12%;
}

.hud-right {
	right: 4%;
	top: 14%;
}

.hud .ok,
.hud .prompt {
	color: #1a6b3c;
}

.bleed {
	margin: 0;
	height: min(62vh, 720px);
	overflow: hidden;
	background: #061018;
}

.block {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: 2rem;
	padding: 3.2rem 6vw;
	border-top: 1px solid var(--line);
}

.block-index {
	font-family: "IBM Plex Mono", monospace;
	font-size: 0.78rem;
	color: var(--accent);
	letter-spacing: 0.06em;
}

.statement {
	font-family: "Instrument Serif", Georgia, serif;
	font-size: clamp(1.4rem, 2.4vw, 2rem);
	line-height: 1.35;
	max-width: 42rem;
}

h2,
h3 {
	font-family: Outfit, sans-serif;
	font-weight: 600;
}

.threat-log {
	list-style: none;
	padding: 0;
	margin: 1.5rem 0 0.4rem;
	border: 1px solid var(--line);
}

.threat-log li {
	display: grid;
	grid-template-columns: 110px 1fr auto;
	gap: 1rem;
	padding: 0.9rem 1rem;
	border-bottom: 1px solid var(--line);
	font-size: 0.92rem;
}

.threat-log li:last-child {
	border-bottom: 0;
}

.threat-log span {
	font-family: "IBM Plex Mono", monospace;
	font-size: 0.68rem;
	color: var(--accent);
	letter-spacing: 0.08em;
}

.threat-log em {
	color: var(--ok);
	font-style: normal;
	font-size: 0.85rem;
}

.hint {
	color: var(--muted);
	font-size: 0.8rem;
}

.steps {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem 1.6rem;
	padding: 0;
	list-style: none;
	font-family: "IBM Plex Mono", monospace;
	color: var(--muted);
}

.cards,
.caps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
}

.cards article,
.caps article {
	background: var(--card);
	border: 1px solid var(--line);
	padding: 1.2rem;
}

.cards ul {
	padding-left: 1.1rem;
	color: var(--muted);
	line-height: 1.55;
}

.mails {
	list-style: none;
	padding: 0;
	font-family: "IBM Plex Mono", monospace;
	font-size: 0.95rem;
	line-height: 2;
}

footer {
	padding: 2rem 6vw 3rem;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.85rem;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

@media (max-width: 840px) {
	.block,
	.cards,
	.caps,
	.threat-log li,
	.top {
		grid-template-columns: 1fr;
	}

	.header-blurb {
		display: none;
	}

	.hero-art,
	.bleed {
		height: 52vh;
		margin-left: 0;
		margin-right: 0;
	}

	.hud-right {
		display: none;
	}
}
