/* =========================================================================
   Download page (ru/download/, tm/download/): like Steam's about page.
   Who we are, players online right now and one big download button,
   the launcher on a monitor with the phone app next to it. Below it the
   presentation of the app: tours, features, esports, subscription and FAQ
   come from home.css (body has both gg-home and gg-download).
   Tokens and shared components come from theme.css.
   ========================================================================= */

.gg-download main {
	overflow-x: clip;
}

.dl-section h2 {
	margin-bottom: 0;
}

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

.dl-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: calc(100vh - var(--gg-header-h));
	padding: var(--gg-space-8) 0 var(--gg-space-6) !important;
}

/* blue light behind the monitor, Steam's about_monitor_video_gradient */
.dl-hero::before {
	content: "";
	position: absolute;
	top: 50%;
	right: -10%;
	z-index: -1;
	width: 70%;
	aspect-ratio: 1;
	transform: translateY(-55%);
	background: radial-gradient(farthest-side, rgba(0, 111, 255, 0.2), transparent);
	pointer-events: none;
}

.dl-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	align-items: center;
	gap: var(--gg-space-8);
}

.dl-hero__copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.dl-hero__logo {
	display: block;
	width: 210px;
	height: auto;
	margin-bottom: var(--gg-space-5);
}

.dl-hero__title {
	margin: 0;
	font-size: clamp(28px, 3.2vw, 40px);
	line-height: 1.15;
}

.dl-hero__lead {
	max-width: 480px;
	margin: var(--gg-space-4) 0 0;
	color: var(--gg-text-2);
	font-size: 17px;
	line-height: 1.6;
}

/* live numbers: caption with a dot over a big number */
.dl-stats {
	display: flex;
	flex-wrap: wrap;
	gap: var(--gg-space-4) var(--gg-space-7);
	margin: var(--gg-space-6) 0;
}

.dl-stat {
	margin: 0;
}

.dl-stat[hidden] {
	display: none;
}

.dl-stat dt {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--gg-text-3);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.dl-stat dd {
	margin: 4px 0 0;
	color: var(--gg-text-1);
	font-family: var(--gg-font-display);
	font-size: 30px;
	font-weight: 600;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

.dl-stat__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--gg-accent);
}

.dl-hero__button {
	min-width: 260px;
	justify-content: center;
}

.dl-hero__note {
	margin: var(--gg-space-3) 0 0;
	color: var(--gg-text-3);
	font-size: var(--gg-fs-small);
}

.dl-hero__also {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: var(--gg-space-5) 0 0;
	color: var(--gg-text-3);
	font-size: var(--gg-fs-small);
}

.dl-hero__also a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--gg-text-2);
}

.dl-hero__also a:hover {
	color: var(--gg-accent);
}

/* ---------- Monitor and phone ---------- */

.dl-hero__visual {
	position: relative;
	padding-bottom: var(--gg-space-5);
}

.dl-monitor {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 92%;
}

.dl-monitor__screen {
	width: 100%;
	padding: 10px;
	border: 1px solid var(--gg-line-strong);
	border-radius: 14px;
	background: linear-gradient(160deg, #2a333f, #12171d 60%);
	box-shadow: var(--gg-shadow-3), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.dl-monitor__screen img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px;
}

.dl-monitor__neck {
	width: 18%;
	height: 34px;
	background: linear-gradient(180deg, #1a222c, #252f3c);
	clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
}

.dl-monitor__base {
	width: 34%;
	height: 10px;
	border-radius: 6px 6px 3px 3px;
	background: linear-gradient(180deg, #2c3746, #1a222c);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.dl-phone {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 24%;
	min-width: 120px;
	padding: 6px;
	border: 1px solid var(--gg-line-strong);
	border-radius: 26px;
	background: linear-gradient(160deg, #2a333f, #12171d 60%);
	box-shadow: var(--gg-shadow-3), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.dl-phone__screen {
	overflow: hidden;
	border-radius: 20px;
	aspect-ratio: 540 / 1137;
	background: #1e252e;
}

.dl-phone__screen img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* "learn more" under the hero */
.dl-more {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	margin: var(--gg-space-6) auto 0;
	color: var(--gg-text-3);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.dl-more:hover {
	color: var(--gg-accent);
}

/* ---------- Sections ---------- */

.dl-section {
	position: relative;
	padding: var(--gg-space-9) 0 0 !important;
}

.dl-head {
	max-width: 720px;
	margin-bottom: var(--gg-space-6);
}

/* install steps with the requirements on the side */
.dl-install {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(240px, 1fr);
	gap: var(--gg-space-4);
	align-items: stretch;
}

.dl-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--gg-space-4);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}

.dl-step,
.dl-need {
	padding: var(--gg-space-5);
	border: 1px solid var(--gg-line);
	border-radius: var(--gg-radius-l);
	background:
		linear-gradient(160deg, rgba(43, 83, 118, 0.3), rgba(30, 44, 62, 0.55) 45%, rgba(24, 34, 48, 0.8)),
		#182230;
}

.dl-step {
	counter-increment: step;
}

.dl-step::before {
	content: counter(step);
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	margin-bottom: var(--gg-space-4);
	border-radius: var(--gg-radius-m);
	background: var(--gg-accent-soft);
	color: var(--gg-accent);
	font-family: var(--gg-font-display);
	font-weight: 700;
}

.dl-step h3,
.dl-need h3 {
	margin: 0;
	font-size: 17px;
}

.dl-step p {
	margin: var(--gg-space-2) 0 0;
	color: var(--gg-text-3);
	font-size: 14px;
	line-height: 1.55;
}

.dl-need ul {
	display: flex;
	flex-direction: column;
	gap: var(--gg-space-3);
	margin: var(--gg-space-4) 0 0;
	padding: 0;
	list-style: none;
}

.dl-need li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	color: var(--gg-text-2);
	font-size: 14px;
}

.dl-need svg {
	flex: 0 0 auto;
	margin-top: 2px;
	color: var(--gg-accent);
}

/* final call to action */
.dl-final {
	padding-bottom: var(--gg-space-9) !important;
}

.dl-final__box {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--gg-space-6);
	padding: var(--gg-space-7);
	border: 1px solid rgba(91, 200, 244, 0.3);
	border-radius: var(--gg-radius-xl);
	background:
		radial-gradient(60% 120% at 100% 50%, rgba(57, 154, 237, 0.2), transparent 70%),
		linear-gradient(160deg, rgba(43, 83, 118, 0.3), rgba(24, 34, 48, 0.8)),
		#182230;
}

.dl-final__box h2 {
	font-size: 26px;
}

.dl-final__box p {
	margin: var(--gg-space-2) 0 0;
	color: var(--gg-text-2);
}

/* ---------- Narrow screens ---------- */

@media (max-width: 1100px) {
	.dl-install {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 900px) {
	.dl-hero {
		min-height: 0;
	}

	.dl-hero__inner {
		grid-template-columns: 1fr;
		gap: var(--gg-space-7);
	}

	.dl-hero::before {
		top: 70%;
		right: -30%;
		width: 120%;
	}

	.dl-steps {
		grid-template-columns: 1fr;
	}

	.dl-final__box {
		flex-direction: column;
		align-items: flex-start;
		padding: var(--gg-space-6);
	}
}

@media (max-width: 600px) {
	.dl-hero {
		padding-top: var(--gg-space-6) !important;
	}

	.dl-hero__logo {
		width: 160px;
	}

	.dl-stats {
		gap: var(--gg-space-4) var(--gg-space-5);
	}

	.dl-stat dd {
		font-size: 24px;
	}

	.dl-hero__button {
		width: 100%;
	}

	.dl-section {
		padding-top: var(--gg-space-8) !important;
	}
}
