:root {
	--ink: #f2ede1;
	--muted: #aba99f;
	--gold: #d7ad5c;
	--gold-bright: #f2ce7e;
	--red: #a53729;
	--night: #0a0c0a;
	--panel: #131610;
	--line: rgba(215, 173, 92, 0.25);
	--serif: "Cinzel", Georgia, serif;
	--sans: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	background: var(--night);
}

body {
	margin: 0;
	color: var(--ink);
	background:
		radial-gradient(circle at 15% 30%, rgba(73, 83, 45, 0.12), transparent 35rem),
		var(--night);
	font-family: var(--sans);
	line-height: 1.6;
	overflow-x: hidden;
}

body::before {
	position: fixed;
	z-index: 10;
	inset: 0;
	border: 1px solid rgba(215, 173, 92, 0.11);
	content: "";
	pointer-events: none;
}

a { color: inherit; }

.shell {
	width: min(1180px, calc(100% - 48px));
	margin-inline: auto;
}

.site-header {
	position: absolute;
	z-index: 5;
	top: 0;
	right: 0;
	left: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	background: linear-gradient(to bottom, rgba(6, 7, 6, 0.83), transparent);
}

.nav {
	display: flex;
	min-height: 86px;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 13px;
	text-decoration: none;
}

.brand img {
	width: 50px;
	height: 50px;
	border: 1px solid rgba(242, 206, 126, 0.45);
	border-radius: 50%;
	box-shadow: 0 0 28px rgba(215, 173, 92, 0.15);
}

.brand span {
	font-family: var(--serif);
	font-size: 1.12rem;
	font-weight: 700;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 34px;
}

.nav-link {
	color: #d1d0ca;
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-decoration: none;
	text-transform: uppercase;
	transition: color 180ms ease;
}

.nav-link:hover { color: var(--gold-bright); }

.sound-toggle {
	display: inline-flex;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: rgba(19, 22, 16, 0.55);
	color: #d1d0ca;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: color 180ms ease, border-color 180ms ease;
}

.sound-toggle:hover {
	border-color: var(--gold-bright);
	color: var(--gold-bright);
}

.sound-toggle svg { width: 17px; height: 17px; }
.sound-toggle .icon-on { display: none; }
.sound-toggle.is-on { color: var(--gold); }
.sound-toggle.is-on .icon-on { display: block; }
.sound-toggle.is-on .icon-off { display: none; }

.hero {
	position: relative;
	display: grid;
	min-height: min(940px, 100svh);
	align-items: center;
	isolation: isolate;
	overflow: hidden;
}

.hero-bg,
.hero-overlay {
	position: absolute;
	z-index: -2;
	inset: 0;
}

.hero-bg {
	width: 122%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	object-position: left center;
	filter: saturate(0.72) contrast(1.06);
	transform: scale(1.015);
	animation: settle 10s ease-out both;
}

.hero-overlay {
	z-index: -1;
	background:
		linear-gradient(90deg, rgba(8, 9, 7, 0.97) 0%, rgba(8, 9, 7, 0.78) 39%, rgba(8, 9, 7, 0.17) 72%),
		linear-gradient(0deg, var(--night) 0%, transparent 30%),
		linear-gradient(180deg, rgba(5, 6, 5, 0.38), transparent 35%);
}

.hero-content {
	max-width: 720px;
	padding-top: 74px;
}

.eyebrow {
	display: flex;
	align-items: center;
	gap: 13px;
	margin: 0 0 22px;
	color: var(--gold-bright);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.eyebrow::before {
	width: 42px;
	height: 1px;
	background: var(--gold);
	content: "";
}

h1,
h2,
h3,
p { margin-top: 0; }

h1 {
	max-width: 680px;
	margin-bottom: 26px;
	font-family: var(--serif);
	font-size: clamp(3.75rem, 8.7vw, 7.8rem);
	font-weight: 700;
	letter-spacing: -0.045em;
	line-height: 0.86;
	text-shadow: 0 8px 35px rgba(0, 0, 0, 0.65);
	text-transform: uppercase;
}

h1 span {
	display: block;
	margin-top: 0.16em;
	color: var(--gold-bright);
	font-size: 0.39em;
	letter-spacing: 0.18em;
	line-height: 1.1;
}

.hero-copy {
	max-width: 580px;
	margin-bottom: 36px;
	color: #d0cfc7;
	font-size: clamp(1rem, 1.7vw, 1.15rem);
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.button {
	display: inline-flex;
	min-height: 54px;
	align-items: center;
	justify-content: center;
	gap: 11px;
	padding: 0 25px;
	border: 1px solid rgba(215, 173, 92, 0.4);
	color: var(--ink);
	font-size: 0.73rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-decoration: none;
	text-transform: uppercase;
	transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
	border-color: var(--gold-bright);
	transform: translateY(-2px);
}

.button-primary {
	border-color: var(--gold);
	color: #16130d;
	background: linear-gradient(135deg, var(--gold-bright), #b68231);
	box-shadow: 0 12px 38px rgba(197, 145, 57, 0.22);
}

.button-primary:hover { background: linear-gradient(135deg, #ffe5a3, #c6933c); }

.button svg { width: 17px; height: 17px; }

.hero-status {
	position: absolute;
	right: max(24px, calc((100vw - 1180px) / 2));
	bottom: 55px;
	display: flex;
	align-items: center;
	gap: 12px;
	color: #cbc8bd;
	font-size: 0.67rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-decoration: none;
	text-transform: uppercase;
}

.pulse {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #7fc35b;
	box-shadow: 0 0 0 6px rgba(127, 195, 91, 0.12), 0 0 18px #7fc35b;
}

.intro {
	position: relative;
	padding: 130px 0 110px;
}

.intro::after {
	position: absolute;
	top: 35px;
	left: 50%;
	width: 1px;
	height: 50px;
	background: linear-gradient(var(--gold), transparent);
	content: "";
}

.section-heading {
	display: grid;
	max-width: 880px;
	margin: 0 auto 62px;
	place-items: center;
	text-align: center;
}

.section-heading .eyebrow::before { display: none; }

h2 {
	margin-bottom: 22px;
	font-family: var(--serif);
	font-size: clamp(2.15rem, 5vw, 4.35rem);
	letter-spacing: -0.035em;
	line-height: 1.05;
	text-transform: uppercase;
}

.section-heading > p:last-child {
	max-width: 680px;
	color: var(--muted);
}

.pillars {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.pillar {
	padding: 38px 34px;
}

.pillar + .pillar { border-left: 1px solid var(--line); }

.pillar-number {
	display: block;
	margin-bottom: 28px;
	color: var(--gold);
	font-family: var(--serif);
	font-size: 0.73rem;
	letter-spacing: 0.16em;
}

h3 {
	margin-bottom: 10px;
	font-family: var(--serif);
	font-size: 1.18rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.pillar p {
	margin-bottom: 0;
	color: var(--muted);
	font-size: 0.9rem;
}

.pillar p + p { margin-top: 16px; }

.inline-link {
	color: var(--gold);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid rgba(198, 147, 60, 0.4);
	transition: color 180ms ease, border-color 180ms ease;
}

.inline-link:hover {
	color: var(--gold-bright);
	border-bottom-color: var(--gold-bright);
}

.gameplay { padding: 35px 0 145px; }

.gameplay-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.7fr);
	align-items: center;
	gap: 55px;
}

.video-frame {
	position: relative;
	border: 1px solid rgba(215, 173, 92, 0.35);
	background: #050605;
	box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
}

.video-frame::before,
.video-frame::after {
	position: absolute;
	z-index: 1;
	width: 45px;
	height: 45px;
	content: "";
	pointer-events: none;
}

.video-frame::before {
	top: -7px;
	left: -7px;
	border-top: 2px solid var(--gold-bright);
	border-left: 2px solid var(--gold-bright);
}

.video-frame::after {
	right: -7px;
	bottom: -7px;
	border-right: 2px solid var(--gold-bright);
	border-bottom: 2px solid var(--gold-bright);
}

video {
	display: block;
	width: 100%;
	height: auto;
}

.gameplay-copy .eyebrow { margin-bottom: 18px; }

.gameplay-copy h2 { font-size: clamp(2rem, 3.8vw, 3.4rem); }

.gameplay-copy > p {
	color: var(--muted);
	font-size: 0.95rem;
}

.note {
	margin-top: 28px;
	padding: 4px 0 4px 18px;
	border-left: 2px solid var(--red);
	color: #c8c5bb;
	font-size: 0.76rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.database {
	position: relative;
	display: grid;
	min-height: 640px;
	align-items: center;
	padding: 120px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.07);
	isolation: isolate;
	overflow: hidden;
}

.database-bg,
.database-overlay {
	position: absolute;
	z-index: -2;
	inset: 0;
}

.database-bg {
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	object-position: left top;
	filter: saturate(0.85) contrast(1.04) brightness(0.92);
	transform: scale(1.02);
	transform-origin: left center;
}

.database-overlay {
	z-index: -1;
	background:
		linear-gradient(270deg, rgba(8, 9, 7, 0.97) 0%, rgba(8, 9, 7, 0.85) 40%, rgba(8, 9, 7, 0.2) 74%),
		linear-gradient(0deg, var(--night) 0%, transparent 28%),
		linear-gradient(180deg, rgba(10, 12, 10, 0.72) 0%, transparent 6%);
}

.database-content {
	max-width: 620px;
	margin-left: auto;
	text-align: right;
}

.database-content .eyebrow {
	flex-direction: row-reverse;
	margin-bottom: 20px;
}

.database-content h2 {
	margin-bottom: 20px;
	font-size: clamp(2rem, 4.6vw, 3.8rem);
	text-shadow: 0 8px 35px rgba(0, 0, 0, 0.65);
}

.database-content h2 span {
	display: block;
	margin-top: 0.22em;
	color: var(--gold-bright);
	font-size: 0.36em;
	letter-spacing: 0.18em;
	line-height: 1.1;
}

.database-copy {
	margin-bottom: 26px;
	color: #d0cfc7;
	font-size: clamp(0.98rem, 1.55vw, 1.1rem);
}

.database-tags {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 10px;
	margin: 0 0 34px;
	padding: 0;
	list-style: none;
}

.database-tags li {
	padding: 6px 14px;
	border: 1px solid var(--line);
	background: rgba(10, 12, 10, 0.45);
	color: #cbc8bd;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.database .actions { justify-content: flex-end; }

.community {
	position: relative;
	padding: 115px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.07);
	background:
		linear-gradient(rgba(10, 12, 10, 0.85), rgba(10, 12, 10, 0.96)),
		url("../images/warbrawlbanner.webp") center / cover no-repeat;
}

.community-card {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 34px;
	padding: 40px;
	border: 1px solid var(--line);
	background: rgba(14, 16, 12, 0.88);
	backdrop-filter: blur(12px);
}

.community-icon {
	display: grid;
	width: 72px;
	height: 72px;
	place-items: center;
	border: 1px solid var(--line);
	color: var(--gold-bright);
}

.community-icon svg { width: 32px; height: 32px; }

.community-card h2 {
	margin-bottom: 7px;
	font-size: clamp(1.65rem, 3vw, 2.7rem);
}

.community-card p {
	margin: 0;
	color: var(--muted);
}

footer {
	padding: 38px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	color: #77796f;
	font-size: 0.72rem;
	letter-spacing: 0.07em;
}

.footer-links { display: flex; gap: 24px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--gold-bright); }

@keyframes settle {
	from { transform: scale(1.07); }
	to { transform: scale(1.015); }
}

@media (max-width: 900px) {
	.hero { min-height: 850px; }
	.hero-overlay {
		background:
			linear-gradient(90deg, rgba(8, 9, 7, 0.95), rgba(8, 9, 7, 0.4)),
			linear-gradient(0deg, var(--night), transparent 45%);
	}
	.pillars { grid-template-columns: 1fr; }
	.pillar + .pillar { border-top: 1px solid var(--line); border-left: 0; }
	.gameplay-grid { grid-template-columns: 1fr; }
	.gameplay-copy { max-width: 630px; }
	.database { min-height: 560px; padding: 100px 0; }
	.database-overlay {
		background:
			linear-gradient(270deg, rgba(8, 9, 7, 0.95) 30%, rgba(8, 9, 7, 0.45)),
			linear-gradient(0deg, var(--night), transparent 40%),
			linear-gradient(180deg, rgba(10, 12, 10, 0.8) 0%, transparent 11%);
	}
	.community-card { grid-template-columns: auto 1fr; }
	.community-card .button { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
	.shell { width: min(100% - 30px, 1180px); }
	.nav { min-height: 72px; }
	.brand img { width: 42px; height: 42px; }
	.brand span { font-size: 0.9rem; }
	.nav-links .nav-link:first-child { display: none; }
	.nav-links { gap: 14px; }
	.sound-toggle { width: 30px; height: 30px; }
	.hero { min-height: 790px; }
	.hero-content { padding-top: 45px; }
	h1 { font-size: clamp(2.9rem, 14.5vw, 4rem); }
	h1 span { font-size: 0.31em; }
	.hero-bg { object-position: 62% center; }
	.hero-overlay {
		background:
			linear-gradient(90deg, rgba(8, 9, 7, 0.92), rgba(8, 9, 7, 0.44)),
			linear-gradient(0deg, var(--night) 0%, rgba(8, 9, 7, 0.25) 58%);
	}
	.actions { display: grid; }
	.button { width: 100%; }
	.hero-status { right: 16px; bottom: 30px; left: 16px; justify-content: center; }
	.intro { padding: 105px 0 80px; }
	.pillar { padding: 30px 22px; }
	.gameplay { padding-bottom: 100px; }
	.gameplay-grid { gap: 35px; }
	.database { min-height: 480px; padding: 78px 0; }
	.database-bg { object-position: 22% top; transform: scale(1.15); }
	.database-overlay {
		background:
			linear-gradient(270deg, rgba(8, 9, 7, 0.92), rgba(8, 9, 7, 0.5)),
			linear-gradient(0deg, var(--night), rgba(8, 9, 7, 0.3) 55%),
			linear-gradient(180deg, rgba(10, 12, 10, 0.85) 0%, transparent 14%);
	}
	.database-content { text-align: left; }
	.database-content .eyebrow { flex-direction: row; }
	.database-tags { justify-content: flex-start; gap: 8px; }
	.database .actions { justify-content: stretch; }
	.database-tags li { padding: 5px 11px; font-size: 0.63rem; }
	.community { padding: 75px 0; }
	.community-card { grid-template-columns: 1fr; padding: 28px 22px; }
	.community-card .button { grid-column: auto; }
	.community-icon { width: 58px; height: 58px; }
	.footer-inner { align-items: flex-start; flex-direction: column; gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; }
}
