/* ETROM — HUD militar escuro. Tokens, layout, componentes, animações. */

@font-face {
	font-family: "Bebas Neue";
	src: url("../fonts/bebas-neue-latin-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

:root {
	--bg-0: #0a0a0a;
	--bg-1: #111111;
	--bg-panel: #131313;
	--red: #c1121f;
	--red-bright: #e5383b;
	--text: #e8e8e8;
	--text-muted: #9a9a9a;
	/* Contraste hero: entre --text-muted (#9a9a9a) e --text (#e8e8e8) */
	--text-hero: #c8c8c8;
	--green: #3ecf6e;
	--yellow: #e0a800;
	--gray-status: #8d8d8d;
	--line: rgba(229, 56, 59, 0.45);
	--font-display: "Arial Narrow", "Liberation Sans Narrow", "Helvetica Neue", Arial, sans-serif;
	--font-brand: "Bebas Neue", var(--font-display);
	--corner: 12px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	height: 100%;
	/* scroll suave para âncoras; overflow controlado abaixo */
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	background-color: var(--bg-0);
	background-image: url('../img/fundo-bg.webp');
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	background-attachment: fixed;
	color: var(--text);
	font-family: var(--font-display);
	font-size: 16px;
	line-height: 1.5;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

.icon {
	width: 1em;
	height: 1em;
	flex: none;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	padding: 0.75rem 1.25rem;
	background: var(--red);
	color: #fff;
	text-transform: uppercase;
}

.skip-link:focus {
	left: 0;
}

.site-header,
.site-main,
.site-footer {
	flex: none;
	position: relative;
	z-index: 1;
}

.site-main {
	flex: 1;
	display: flex;
	flex-direction: column;
}

/*
 * Travamento de scroll do HUD: só a front page (body.home) em viewport
 * largo cabe inteira na tela. Posts e demais templates rolam sempre,
 * e em mobile tudo flui com scroll normal.
 */
@media (min-width: 961px) {
	body.home {
		height: 100dvh;
		overflow: hidden;   /* impede scroll na front page em desktop */
	}

	body.home .site-main {
		min-height: 0;      /* essencial para cadeia flex não vazar */
		overflow: hidden;
	}

	body.home .hero {
		min-height: 0;
		overflow: hidden;
	}

	body.home .hero-column {
		overflow: hidden;
	}

	body.home .hero-emblem {
		min-height: 0;
	}

	/* Mitigação 100dvh: CTA estudo compacto + gaps menores na coluna esquerda */
	body.home .hero-column-left {
		gap: 0.85rem;
		padding-top: 1rem;
	}

	body.home .btn-history,
	body.home .btn-study {
		max-width: 13rem;
	}

	body.home .btn-study {
		padding: 0.4rem 0.75rem;
		font-size: 0.62rem;
	}
}

/* ---------- Header ---------- */

.site-header {
	flex: none;
	border-bottom: 1px solid rgba(229, 56, 59, 0.3);
	background: linear-gradient(180deg, rgba(6, 5, 5, 0.96), rgba(10, 8, 8, 0.88));
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.site-header-inner {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	max-width: 1440px;
	margin: 0 auto;
	padding: 0.5rem 1.5rem;
}

.site-brand {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	flex: none;
}

.site-brand-mark {
	width: 58px;
	height: 48px;
	object-fit: contain;
}

.site-brand-text {
	display: flex;
	flex-direction: column;
	line-height: 1;
}

.site-brand-name {
	font-size: 1.55rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	color: #fff;
}

.site-brand-tagline {
	font-size: 0.68rem;
	letter-spacing: 0.5em;
	color: var(--red-bright);
	margin-top: 0.25rem;
}

.site-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex: 1;
	gap: 1.5rem;
}

.site-nav-list {
	display: flex;
	align-items: center;
	gap: 1.9rem;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.site-nav-list a {
	display: inline-block;
	padding: 0.4rem 0;
	white-space: nowrap;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--text);
	transition: color 0.25s ease, text-shadow 0.25s ease;
}

.site-nav-list a:hover,
.site-nav-list a:focus-visible {
	color: var(--red-bright);
	text-shadow: 0 0 12px rgba(229, 56, 59, 0.6);
}

.site-nav-list .current-menu-item a {
	color: var(--red-bright);
}

.menu-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	margin-left: auto;
	padding: 0.6rem;
	background: transparent;
	border: 1px solid var(--line);
	cursor: pointer;
}

.menu-toggle-bar {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--text);
}

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.65rem 1.4rem;
	border: 1px solid var(--red);
	background: linear-gradient(180deg, rgba(193, 18, 31, 0.22), rgba(193, 18, 31, 0.08));
	color: #fff;
	font-family: inherit;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
	transition: box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover,
.btn:focus-visible {
	box-shadow: 0 0 18px rgba(229, 56, 59, 0.5);
	color: #fff;
}

.btn-caret {
	font-size: 1.1em;
	line-height: 1;
}

/*
 * Família HUD secundária (outline): access / restricted / history / study.
 * Sem fill sólido nem pulse — hierarquia abaixo de .btn-operation.
 */
.btn-access,
.btn-restricted,
.btn-history,
.btn-study {
	position: relative;
	isolation: isolate;
	border-color: rgba(229, 56, 59, 0.72);
	background: linear-gradient(180deg, rgba(193, 18, 31, 0.14), rgba(10, 10, 10, 0.62));
	letter-spacing: 0.16em;
	box-shadow:
		inset 0 0 0 1px rgba(255, 210, 180, 0.07),
		0 0 0 1px rgba(0, 0, 0, 0.35);
	transition:
		box-shadow 0.25s ease,
		background 0.25s ease,
		color 0.25s ease,
		border-color 0.25s ease;
}

.btn-access:hover,
.btn-access:focus-visible,
.btn-restricted:hover,
.btn-restricted:focus-visible,
.btn-history:hover,
.btn-history:focus-visible,
.btn-study:hover,
.btn-study:focus-visible {
	color: #fff;
	border-color: var(--red-bright);
	background: linear-gradient(180deg, rgba(193, 18, 31, 0.32), rgba(193, 18, 31, 0.12));
	box-shadow:
		0 0 14px rgba(229, 56, 59, 0.38),
		inset 0 0 0 1px rgba(255, 210, 180, 0.14);
}

.btn-access:focus-visible,
.btn-restricted:focus-visible,
.btn-history:focus-visible,
.btn-study:focus-visible {
	outline: 2px solid var(--red-bright);
	outline-offset: 2px;
}

.btn-restricted {
	flex: none;
}

.btn-access {
	padding: 0.45rem 1.6rem;
	font-size: 0.72rem;
}

/*
 * Largura idêntica: rem compartilhado (não ch — font-size diferente
 * entre history/study faria boxes divergirem). width 100% + max-width
 * na coluna flex garante a mesma largura computada.
 */
.btn-history,
.btn-study {
	align-self: flex-start;
	width: 100%;
	max-width: 15rem;
}

/*
 * CTA estudo: outline secundário compacto (duas linhas) para caber no
 * orçamento 100dvh da home desktop sem competir com .btn-operation.
 */
.btn-study {
	flex-direction: column;
	align-items: flex-start;
	gap: 0.15rem;
	padding: 0.5rem 0.85rem;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1.25;
	white-space: normal;
	text-align: left;
	border-color: rgba(229, 56, 59, 0.55);
	background: linear-gradient(180deg, rgba(193, 18, 31, 0.1), rgba(10, 10, 10, 0.5));
}

.btn-study .btn-label {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
}

.btn-study-line {
	display: block;
}

.btn-operation {
	position: relative;
	isolation: isolate;
	z-index: 0;
	gap: 0.65rem;
	min-height: 48px;
	padding: 0.95rem clamp(1.4rem, 4vw, 3.4rem);
	white-space: nowrap;
	font-size: clamp(0.95rem, 1.8vw, 1.15rem);
	font-weight: 800;
	letter-spacing: 0.16em;
	color: #fff;
	border-color: var(--red-bright);
	border-width: 1px;
	/* CTA primário: preenchimento vermelho ETROM — hierarquia acima de .btn-access / .btn-restricted */
	background: linear-gradient(180deg, rgba(229, 56, 59, 0.92) 0%, rgba(193, 18, 31, 0.88) 45%, rgba(120, 8, 12, 0.95) 100%);
	box-shadow:
		0 0 18px rgba(229, 56, 59, 0.4),
		0 2px 0 rgba(0, 0, 0, 0.35),
		inset 0 1px 0 rgba(255, 210, 180, 0.22);
	transition:
		transform 0.2s ease,
		box-shadow 0.25s ease,
		background 0.25s ease,
		border-color 0.25s ease,
		color 0.25s ease;
	animation: pulse-glow 2.6s ease-in-out infinite;
}

/* Moldura HUD interna + cantos de mira */
.btn-operation::before {
	content: "";
	position: absolute;
	inset: 3px;
	z-index: 0;
	border: 1px solid rgba(255, 210, 180, 0.18);
	pointer-events: none;
	box-shadow:
		inset 8px 0 0 -7px rgba(255, 210, 180, 0.55),
		inset -8px 0 0 -7px rgba(255, 210, 180, 0.55),
		inset 0 8px 0 -7px rgba(255, 210, 180, 0.55),
		inset 0 -8px 0 -7px rgba(255, 210, 180, 0.55);
}

.btn-operation .icon,
.btn-operation .btn-label {
	position: relative;
	z-index: 1;
}

.btn-operation .icon {
	width: 1.2em;
	height: 1.2em;
}

.btn-operation .btn-label {
	line-height: 1;
}

.btn-operation:hover,
.btn-operation:focus-visible {
	color: #fff;
	border-color: var(--red-bright);
	transform: translateY(-2px);
	background: linear-gradient(180deg, rgba(229, 56, 59, 1) 0%, var(--red) 45%, rgba(140, 10, 16, 0.98) 100%);
	box-shadow:
		0 0 28px rgba(229, 56, 59, 0.65),
		0 6px 16px rgba(0, 0, 0, 0.45),
		inset 0 1px 0 rgba(255, 230, 210, 0.3);
	animation-play-state: paused;
}

.btn-operation:hover::before,
.btn-operation:focus-visible::before {
	border-color: rgba(255, 210, 180, 0.35);
}

.btn-operation:focus-visible {
	outline: 2px solid var(--red-bright);
	outline-offset: 3px;
}

.btn-operation:active {
	transform: translateY(0);
	background: linear-gradient(180deg, var(--red), rgba(90, 5, 8, 0.98));
	box-shadow:
		0 0 12px rgba(229, 56, 59, 0.4),
		inset 0 2px 8px rgba(0, 0, 0, 0.4);
	animation-play-state: paused;
}

/* ---------- HUD panels (cantos cortados + borda metálica) ---------- */

.hud-panel {
	position: relative;
	padding: 1.1rem 1.2rem;
	/*
	 * Borda metálica: gradiente multi-ponto simulando reflexo em metal
	 * polido — highlight quente → vermelho fundo → cobre → highlight → escuro
	 */
	background: linear-gradient(
		130deg,
		rgba(255, 210, 170, 0.98) 0%,
		rgba(229, 56,  59,  1.00) 7%,
		rgba(155, 12,  18,  0.92) 22%,
		rgba(90,   5,   8,  0.75) 42%,
		rgba(175, 38,  28,  0.92) 62%,
		rgba(240, 160, 110, 0.98) 76%,
		rgba(205, 45,  45,  1.00) 90%,
		rgba(110,  8,  10,  0.90) 100%
	);
	clip-path: polygon(
		var(--corner) 0,
		calc(100% - var(--corner)) 0,
		100% var(--corner),
		100% calc(100% - var(--corner)),
		calc(100% - var(--corner)) 100%,
		var(--corner) 100%,
		0 calc(100% - var(--corner)),
		0 var(--corner)
	);
	/* Glow pulsante via filter (funciona com clip-path) */
	filter: drop-shadow(0 0 6px rgba(229, 56, 59, 0.45)) drop-shadow(0 0 18px rgba(180, 10, 10, 0.2));
	animation: panel-glow 3.2s ease-in-out infinite;
	transition: filter 0.3s ease;
}

.hud-panel:hover {
	filter: drop-shadow(0 0 12px rgba(229, 56, 59, 0.75)) drop-shadow(0 0 32px rgba(200, 20, 20, 0.4));
	animation-play-state: paused;
}

/* Fundo escuro interior */
.hud-panel::before {
	content: "";
	position: absolute;
	inset: 1.5px;
	z-index: 0;
	background: linear-gradient(180deg, rgba(14, 12, 12, 0.98), rgba(9, 8, 8, 0.98));
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	clip-path: polygon(
		11px 0,
		calc(100% - 11px) 0,
		100% 11px,
		100% calc(100% - 11px),
		calc(100% - 11px) 100%,
		11px 100%,
		0 calc(100% - 11px),
		0 11px
	);
}

/* Varredura de luz (shimmer) percorre a borda */
.hud-panel::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	border-radius: inherit;
	background: linear-gradient(
		108deg,
		transparent 30%,
		rgba(255, 210, 170, 0.10) 45%,
		rgba(255, 255, 255, 0.05) 50%,
		rgba(255, 210, 170, 0.10) 55%,
		transparent 70%
	);
	background-size: 250% 100%;
	animation: metal-shimmer 4.5s ease-in-out infinite;
}

/* Scan-in: efeito CRT ao aparecer */
.hud-panel.scan-in::after {
	animation: scan-reveal 0.6s ease-out forwards, metal-shimmer 4.5s ease-in-out 0.6s infinite;
}

.hud-panel > * {
	position: relative;
	z-index: 3;   /* acima do shimmer (z-index 2) */
}

.panel-heading {
	margin: 0 0 0.8rem;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--red-bright);
}

.panel-heading-arrow::after {
	content: "›";
	float: right;
	color: var(--red-bright);
}

/* ---------- Hero ---------- */

.hero {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.hero-inner {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
	max-width: 1440px;
	width: 100%;
	margin: 0 auto;
	padding: 0.75rem 1.5rem 0;
}

.hero-grid {
	flex: 1;
	min-height: 0;
	display: grid;
	/* Proporções da referência: laterais estreitas, centro dominante */
	grid-template-columns: minmax(180px, 0.85fr) minmax(380px, 2.3fr) minmax(200px, 0.85fr);
	gap: 1rem;
	align-items: center;
}

.hero-column {
	display: flex;
	flex-direction: column;
	gap: 1.2rem;
	min-width: 0;
	min-height: 0;
}

.hero-column-left {
	padding-top: 1.5rem;
	align-self: start;
}

.hero-title {
	margin: 0;
	font-family: var(--font-brand);
	font-size: clamp(1.9rem, 3vw, 2.85rem);
	font-weight: 400;
	line-height: 1.02;
	letter-spacing: 0.05em;
	color: #fff;
	text-transform: uppercase;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.hero-title-brand {
	display: block;
	font-family: var(--font-brand);
	font-weight: 400;
	font-size: clamp(3.6rem, 7vw, 5.8rem);
	line-height: 0.88;
	letter-spacing: 0.06em;
	color: var(--red-bright);
	text-shadow:
		0 0 36px rgba(193, 18, 31, 0.7),
		0 2px 0 rgba(0, 0, 0, 0.45);
}

.hero-text {
	margin: 0;
	max-width: 28ch;
	font-size: 1rem;
	font-weight: 900;
	line-height: 1.65;
	letter-spacing: 0.02em;
	color: var(--text-hero);
}

.hero-column-center {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	align-self: stretch;
	overflow: visible;   /* permite que translateX não seja clipado pela coluna */
	margin-bottom: 5%;
}

.hero-column-right {
	align-self: start;
	padding-top: 0.5rem;
}

/* ---------- Emblema ---------- */

.hero-emblem {
	flex: 1;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	overflow: visible;
}

.hero-emblem img {
	display: block;
	max-width: 100%;
	/* max-height limitado pela altura do flex pai; nunca ultrapassa o viewport */
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	margin: 0 auto;
	transform: translateX(13%);
	filter: drop-shadow(0 0 40px rgba(193, 18, 31, 0.5)) drop-shadow(0 0 80px rgba(120, 8, 14, 0.3));
}

/* Faixa cobre o texto garrafado da IA e exibe o texto correto */
.hero-emblem-band {
	position: absolute;
	left: 7%;
	right: 7%;
	top: 76%;
	height: 6%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(180deg, rgba(4, 3, 3, 0.97), rgba(8, 7, 7, 0.97));
	border-top: 1px solid rgba(229, 56, 59, 0.4);
	border-bottom: 1px solid rgba(229, 56, 59, 0.4);
	color: #d0ccc6;
	font-size: clamp(0.52rem, 0.95vw, 0.76rem);
	font-weight: 700;
	letter-spacing: 0.13em;
	text-align: center;
	white-space: nowrap;
}

/* ---------- Status operacional ---------- */

.status-panel {
	max-width: 320px;
}

.status-system {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 0.75rem;
	padding-bottom: 0.65rem;
	border-bottom: 1px solid rgba(229, 56, 59, 0.2);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: var(--green);
}

.status-heartbeat {
	margin-left: auto;
	font-size: 1.2em;
}

.status-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--green);
	animation: status-pulse 1.8s ease-in-out infinite;
}

.status-list {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	margin: 0;
}

.status-row {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	font-size: 0.74rem;
	letter-spacing: 0.08em;
}

.status-label {
	color: var(--text-muted);
}

.status-value {
	margin: 0;
	font-weight: 700;
	color: #fff;
}

.status-value.is-alert {
	color: var(--red-bright);
	animation: status-blink 2.2s ease-in-out infinite;
}

/* ---------- Últimas missões ---------- */

.missions-list {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mission-item {
	display: flex;
	gap: 0.7rem;
	padding: 0.5rem;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(229, 56, 59, 0.15);
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.mission-item:hover {
	border-color: rgba(229, 56, 59, 0.5);
	box-shadow: 0 0 12px rgba(229, 56, 59, 0.25);
}

.mission-thumb {
	width: 74px;
	height: 51px;
	object-fit: cover;
	border: 1px solid rgba(255, 255, 255, 0.12);
}

.mission-title {
	margin: 0;
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: #fff;
}

.mission-title a {
	color: inherit;
	text-decoration: none;
}

.mission-title a:hover,
.mission-title a:focus-visible {
	color: var(--red);
	text-decoration: underline;
}

.mission-status {
	margin: 0.15rem 0 0;
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0.1em;
}

.mission-status.is-done {
	color: var(--green);
}

.mission-status.is-ongoing {
	color: var(--yellow);
	animation: status-blink 2.2s ease-in-out infinite;
}

.mission-status.is-waiting {
	color: var(--gray-status);
}

.mission-datetime {
	margin: 0.15rem 0 0;
	font-size: 0.66rem;
	color: var(--text-muted);
}

.missions-more {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-top: 0.85rem;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: var(--red-bright);
	text-transform: uppercase;
	transition: color 0.2s ease;
}

.missions-more:hover,
.missions-more:focus-visible {
	color: #fff;
}

.mission-item-empty {
	padding: 0.75rem;
	background: transparent;
	border-style: dashed;
}

/* ---------- Citação ---------- */

.quote-panel {
	margin: 0;
}

.quote-text {
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.7;
	color: var(--text);
}

.quote-text::before {
	content: "\201C";
	display: block;
	font-size: 2rem;
	line-height: 0.6;
	color: var(--red-bright);
}

.quote-author {
	margin-top: 0.8rem;
	text-align: right;
	font-size: 0.74rem;
	letter-spacing: 0.14em;
	color: var(--red-bright);
}

/* ---------- Atalhos ---------- */

.shortcuts-wrap {
	flex: none;   /* não cresce, não comprime — ocupa apenas o espaço dos cards */
}

.shortcuts {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0.6rem 1.5rem 0.7rem;
}

.shortcuts-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 0.75rem;
}

.shortcut-card {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 0.65rem 0.9rem;
	scroll-margin-top: 5rem;
	transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.shortcut-card:hover {
	box-shadow: 0 0 22px rgba(229, 56, 59, 0.4);
}

/* Layout ícone-esquerda / conteúdo-direita, conforme referência */
.shortcut-card-inner {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
}

.shortcut-icon {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(229, 56, 59, 0.4);
	border-radius: 4px;
	background: rgba(193, 18, 31, 0.1);
	color: #c8c4be;
	font-size: 1.25rem;
}

.shortcut-content {
	flex: 1;
	min-width: 0;
}

.shortcut-title {
	margin: 0 0 0.3rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--red-bright);
}

.shortcut-description {
	margin: 0;
	font-size: 0.68rem;
	line-height: 1.45;
	color: var(--text-muted);
}

/* ---------- Rodapé ---------- */

.site-footer {
	border-top: 1px solid rgba(229, 56, 59, 0.3);
	background: linear-gradient(180deg, rgba(6, 5, 5, 0.9), rgba(4, 3, 3, 0.97));
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.site-footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	max-width: 1440px;
	margin: 0 auto;
	padding: 0.55rem 1.5rem;
}

.footer-legal {
	margin: 0;
	font-size: 0.68rem;
	letter-spacing: 0.1em;
	color: var(--text-muted);
}

.footer-legal-brand {
	color: var(--red-bright);
	font-weight: 700;
}

.footer-motto {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	color: var(--text);
}

.footer-motto .icon {
	color: var(--text-muted);
	font-size: 1.1rem;
}

.footer-actions {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.footer-social {
	display: flex;
	gap: 0.7rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	min-height: 34px;
	padding: 0.35rem 0.85rem 0.35rem 0.65rem;
	border: 1px solid var(--red);
	background: linear-gradient(180deg, rgba(193, 18, 31, 0.45), rgba(193, 18, 31, 0.16));
	box-shadow:
		0 0 12px rgba(229, 56, 59, 0.28),
		inset 0 1px 0 rgba(255, 210, 180, 0.14);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	transition:
		box-shadow 0.25s ease,
		background 0.25s ease,
		border-color 0.25s ease,
		transform 0.2s ease;
}

.footer-social-link .icon {
	font-size: 1.15rem;
}

.footer-social-label {
	line-height: 1;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
	border-color: var(--red-bright);
	background: linear-gradient(180deg, rgba(229, 56, 59, 0.62), rgba(193, 18, 31, 0.28));
	box-shadow:
		0 0 18px rgba(229, 56, 59, 0.55),
		inset 0 1px 0 rgba(255, 210, 180, 0.22);
	transform: translateY(-1px);
}

.footer-social-link:focus-visible {
	outline: 2px solid var(--red-bright);
	outline-offset: 2px;
}

.back-to-top {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 1px solid var(--red);
	background: linear-gradient(180deg, rgba(193, 18, 31, 0.35), rgba(193, 18, 31, 0.12));
	color: #fff;
	font-size: 1.2rem;
	transition: box-shadow 0.25s ease;
}

.back-to-top:hover,
.back-to-top:focus-visible {
	box-shadow: 0 0 14px rgba(229, 56, 59, 0.55);
}

/* ---------- Conteúdo fora da landing ---------- */

.site-main-blog {
	max-width: 1440px;
	width: 100%;
	margin: 0 auto;
	padding: 2.5rem 1.5rem;
}

/* Página Operações — cards maiores no desktop */
.site-main-blog.site-main-operations {
	padding: 3rem 2rem 4rem;
}

.site-main-operations .operations-panel {
	padding: 2rem 2.25rem 2.5rem;
}

.site-main-operations .content-panel-title {
	margin: 0 0 0.35rem;
	font-size: clamp(1.75rem, 2.4vw, 2.35rem);
	letter-spacing: 0.1em;
}

.operations-intro {
	margin: 0 0 1.75rem;
	max-width: 42rem;
	color: var(--text-muted);
	font-size: 1.05rem;
	line-height: 1.55;
	letter-spacing: 0.04em;
}

.operations-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.1rem;
}

.operations-list .mission-item {
	gap: 1.15rem;
	padding: 1.1rem 1.25rem;
}

.operations-list .mission-thumb {
	width: 140px;
	height: 96px;
	flex: none;
}

.operations-list .mission-title {
	font-size: 1.15rem;
	letter-spacing: 0.1em;
}

.operations-list .mission-status {
	margin-top: 0.35rem;
	font-size: 0.9rem;
}

.operations-list .mission-datetime {
	margin-top: 0.3rem;
	font-size: 0.88rem;
}

@media (min-width: 961px) {
	.operations-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.15rem 1.25rem;
	}
}

@media (max-width: 640px) {
	.site-main-blog.site-main-operations {
		padding: 2rem 1rem 2.5rem;
	}

	.site-main-operations .operations-panel {
		padding: 1.25rem 1rem 1.5rem;
	}

	.operations-list .mission-thumb {
		width: 96px;
		height: 66px;
	}

	.operations-list .mission-title {
		font-size: 0.95rem;
	}

	.operations-list .mission-status,
	.operations-list .mission-datetime {
		font-size: 0.74rem;
	}
}

.content-wrap {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	width: 100%;
}

.content-panel {
	width: 100%;
}

.content-panel-title {
	margin: 0 0 0.5rem;
	font-size: 1.3rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.content-panel-title a:hover {
	color: var(--red-bright);
}

.content-panel-body {
	color: var(--text);
}

.content-panel-body a {
	color: var(--red-bright);
	text-decoration: underline;
}

/* ---------- Brasas decorativas ---------- */

/* ---------- Partículas: camada de fogo ---------- */

.embers {
	position: fixed;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
}

/* Brasas — pontos redondos que sobem */
.ember {
	position: absolute;
	bottom: -10px;
	left: var(--ember-left, 50%);
	width:  var(--ember-size, 4px);
	height: var(--ember-size, 4px);
	border-radius: 50%;
	background: radial-gradient(circle, #ff9060 0%, #e53838 55%, transparent 100%);
	box-shadow: 0 0 4px 1px rgba(255, 100, 40, 0.7);
	opacity: 0;
	animation: ember-rise var(--ember-duration, 9s) linear var(--ember-delay, 0s) infinite;
}

/* Faíscas — traços finos e rápidos */
.ember-spark {
	position: absolute;
	bottom: -10px;
	left: var(--ember-left, 50%);
	width:  var(--ember-size, 2px);
	height: var(--spark-h, 12px);   /* streak vertical */
	border-radius: 50%;
	background: linear-gradient(to top, rgba(255, 200, 80, 0.95), rgba(255, 80, 30, 0.6), transparent);
	box-shadow: 0 0 3px 1px rgba(255, 160, 40, 0.6);
	opacity: 0;
	transform-origin: bottom center;
	animation: spark-rise var(--ember-duration, 5s) ease-out var(--ember-delay, 0s) infinite;
}

/* Wisps de chama — formas maiores, suaves e translúcidas */
.ember-flame {
	position: absolute;
	bottom: -20px;
	left: var(--ember-left, 50%);
	width:  var(--ember-size, 14px);
	height: calc(var(--ember-size, 14px) * 2.5);
	border-radius: 50% 50% 30% 30%;
	background: radial-gradient(ellipse at 50% 70%,
		rgba(255, 80, 20, 0.55) 0%,
		rgba(200, 30, 10, 0.3) 45%,
		transparent 80%
	);
	filter: blur(4px);
	opacity: 0;
	animation: flame-drift var(--ember-duration, 12s) ease-in-out var(--ember-delay, 0s) infinite;
}

/* ---------- Reveal (só quando o JS habilita) ---------- */

html.etrom-reveal .reveal {
	opacity: 0;
	transform: translateY(22px);
	transition:
		opacity  0.65s ease var(--reveal-delay, 0s),
		transform 0.65s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0s);
}

html.etrom-reveal .reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* Glitch no cabeçalho do painel */
.panel-heading.glitch {
	animation: heading-glitch 0.4s steps(1) forwards;
}

/* Varredura de linha ao aparecer (scanline reveal) */
@keyframes scan-reveal {
	0%   { background-position: 150% 0; opacity: 1; }
	100% { background-position: -50% 0; opacity: 1; }
}

/* ---------- Animações ---------- */

@keyframes pulse-glow {
	0%,
	100% {
		box-shadow: 0 0 10px rgba(229, 56, 59, 0.35), inset 0 0 8px rgba(229, 56, 59, 0.12);
	}

	50% {
		box-shadow: 0 0 26px rgba(229, 56, 59, 0.7), inset 0 0 14px rgba(229, 56, 59, 0.28);
	}
}

@keyframes status-pulse {
	0%,
	100% {
		box-shadow: 0 0 0 0 rgba(62, 207, 110, 0.55);
	}

	60% {
		box-shadow: 0 0 0 7px rgba(62, 207, 110, 0);
	}
}

@keyframes status-blink {
	0%,
	100% {
		opacity: 1;
	}

	50% {
		opacity: 0.45;
	}
}

/* ---- Partículas ---- */

@keyframes ember-rise {
	0% {
		transform: translate(0, 0) scale(1);
		opacity: 0;
	}
	6% {
		opacity: var(--ember-opacity, 0.7);
	}
	80% {
		opacity: var(--ember-opacity, 0.7);
	}
	100% {
		transform: translate(var(--ember-drift, 20px), -105vh) scale(0.4);
		opacity: 0;
	}
}

@keyframes spark-rise {
	0% {
		transform: translate(0, 0) scaleY(1) rotate(0deg);
		opacity: 0;
	}
	5% {
		opacity: var(--ember-opacity, 0.9);
	}
	50% {
		transform: translate(calc(var(--ember-drift, 0px) * 0.5), -50vh) scaleY(0.7) rotate(calc(var(--ember-drift, 0px) * 0.1deg));
		opacity: var(--ember-opacity, 0.9);
	}
	100% {
		transform: translate(var(--ember-drift, 20px), -100vh) scaleY(0.2) rotate(calc(var(--ember-drift, 0px) * 0.2deg));
		opacity: 0;
	}
}

@keyframes flame-drift {
	0% {
		transform: translate(0, 0) scaleX(1);
		opacity: 0;
	}
	10% {
		opacity: var(--ember-opacity, 0.18);
	}
	40% {
		transform: translate(calc(var(--ember-drift, 0px) * 0.3), -35vh) scaleX(1.15);
	}
	70% {
		transform: translate(calc(var(--ember-drift, 0px) * 0.7), -65vh) scaleX(0.85);
		opacity: var(--ember-opacity, 0.18);
	}
	100% {
		transform: translate(var(--ember-drift, 20px), -100vh) scaleX(0.5);
		opacity: 0;
	}
}

/* ---- Glow pulsante nos painéis ---- */

@keyframes panel-glow {
	0%, 100% {
		filter: drop-shadow(0 0 5px rgba(229, 56, 59, 0.4)) drop-shadow(0 0 14px rgba(180, 10, 10, 0.18));
	}
	50% {
		filter: drop-shadow(0 0 11px rgba(229, 56, 59, 0.65)) drop-shadow(0 0 28px rgba(200, 15, 15, 0.35));
	}
}

/* ---- Varredura metálica (shimmer) ---- */

@keyframes metal-shimmer {
	0%   { background-position: 180% 0; }
	100% { background-position: -80% 0; }
}

/* ---- Glitch no cabeçalho ---- */

@keyframes heading-glitch {
	0%   { clip-path: inset(0 0 85% 0); transform: translateX(-3px); color: #ff4444; }
	15%  { clip-path: inset(15% 0 70% 0); transform: translateX(3px);  }
	30%  { clip-path: inset(30% 0 55% 0); transform: translateX(-2px); color: var(--red-bright); }
	45%  { clip-path: inset(45% 0 40% 0); transform: translateX(2px);  }
	60%  { clip-path: inset(60% 0 25% 0); transform: translateX(-1px); }
	75%  { clip-path: inset(75% 0 10% 0); transform: translateX(1px);  }
	100% { clip-path: none; transform: none; color: var(--red-bright); }
}

/* ---------- Responsivo ---------- */

@media (max-width: 1200px) {
	.shortcuts-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.shortcut-card-inner {
		flex-direction: column;
		align-items: flex-start;
		text-align: left;
	}

	.shortcut-content {
		text-align: left;
		width: 100%;
	}

	.site-nav-list {
		gap: 1.1rem;
	}

	.site-nav-list a {
		font-size: 0.74rem;
		letter-spacing: 0.08em;
	}

	.site-header-inner {
		gap: 1rem;
	}

	.site-nav {
		gap: 1rem;
	}

	.btn-restricted {
		padding: 0.55rem 0.9rem;
		font-size: 0.72rem;
	}
}

@media (max-width: 960px) {
	.menu-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		min-width: 44px;
		min-height: 44px;
	}

	.site-header-inner {
		flex-wrap: wrap;
	}

	.site-nav {
		flex-basis: 100%;
		order: 3;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 0.5rem 0 1rem;
		border-top: 1px solid rgba(229, 56, 59, 0.2);
	}

	html.etrom-js .site-nav {
		display: none;
	}

	html.etrom-js .site-nav.is-open {
		display: flex;
	}

	.site-nav-list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		margin: 0 0 1rem;
	}

	.site-nav-list a {
		display: flex;
		align-items: center;
		min-height: 44px;
		padding: 0.35rem 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	}

	.hero-inner {
		padding: 1rem 1rem 0;
	}

	.hero-grid {
		grid-template-columns: 1fr;
		align-items: start;
		justify-items: stretch;
		gap: 1rem;
	}

	/*
	 * Mobile: colunas viram contents para reordenar filhos.
	 * Ordem: título → emblema → restante (texto, CTAs, status, operação, missões, quote).
	 */
	.hero-column-left,
	.hero-column-center,
	.hero-column-right {
		display: contents;
	}

	.hero-title {
		order: 1;
		font-size: clamp(2.15rem, 8.5vw, 2.85rem);
		max-width: none;
		width: 100%;
		text-align: left;
		justify-self: stretch;
	}

	.hero-title-brand {
		font-size: clamp(4.25rem, 18vw, 5.75rem);
		margin: 0.08em 0;
	}

	.hero-emblem {
		order: 2;
		flex: none;
		width: 100%;
	}

	.hero-text {
		order: 3;
		max-width: none;
		width: 100%;
		text-align: left;
		justify-self: stretch;
	}

	.hero-grid .btn-history,
	.hero-grid .btn-study {
		align-self: unset;
		justify-self: stretch;
		width: 100%;
		max-width: none;
	}

	.hero-grid .btn-history {
		order: 4;
	}

	.hero-grid .btn-study {
		order: 5;
	}

	.hero-grid .status-panel {
		order: 6;
		max-width: none;
		width: 100%;
	}

	.hero-grid .btn-operation {
		order: 7;
		justify-self: stretch;
		width: 100%;
		max-width: none;
	}

	.hero-grid .missions-panel {
		order: 8;
		width: 100%;
	}

	.hero-grid .quote-panel {
		order: 9;
		width: 100%;
	}

	.hero-emblem img {
		max-height: 70vw;
	}

	.hero-emblem-band {
		font-size: clamp(0.46rem, 2.2vw, 0.65rem);
		left: 5%;
		right: 5%;
	}

	/* Touch targets ≥ 44px */
	.btn-access,
	.btn-restricted,
	.btn-history,
	.btn-study,
	.btn-operation {
		min-height: 44px;
	}

	/* Sem loop de box-shadow em mobile — glow estático basta */
	.btn-operation {
		animation: none;
		box-shadow:
			0 0 14px rgba(229, 56, 59, 0.35),
			0 2px 0 rgba(0, 0, 0, 0.3),
			inset 0 1px 0 rgba(255, 210, 180, 0.18);
	}

	.btn-operation:hover,
	.btn-operation:focus-visible {
		transform: none;
	}

	.footer-social-link {
		min-height: 44px;
		padding: 0.45rem 1rem 0.45rem 0.75rem;
		font-size: 0.82rem;
	}

	.footer-social-link .icon {
		font-size: 1.25rem;
	}

	.back-to-top {
		width: 44px;
		height: 44px;
	}

	/* Tipografia legível em telas pequenas */
	.hero-text {
		font-size: 1rem;
	}

	.status-row {
		font-size: 0.78rem;
	}

	.mission-status,
	.mission-datetime {
		font-size: 0.78rem;
	}

	.shortcut-description,
	.footer-legal {
		font-size: 0.78rem;
	}

	/* Custo de GPU reduzido: sem glow pulsante nem wisps com blur */
	.hud-panel {
		animation: none;
	}

	.ember-flame {
		display: none;
	}
}

/* iOS não suporta background-attachment: fixed com background-size: cover */
@supports (-webkit-touch-callout: none) {
	body {
		background-attachment: scroll;
	}
}

@media (max-width: 640px) {
	.shortcuts-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.hero-emblem-band {
		white-space: normal;
	}

	.site-footer-inner {
		flex-direction: column;
		text-align: center;
	}
}

/* ---------- Redução de movimento ---------- */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.embers {
		display: none;
	}

	html.etrom-reveal .reveal {
		opacity: 1;
		transform: none;
	}
}
