@charset "utf-8";

:root {
	--app-blue: #0056b3;
	--app-navy: #062f5f;
	--app-cyan: #36b9e6;
	--app-ink: #14233b;
	--app-muted: #68788e;
	--app-surface: #f3f7fb;
	--app-line: #dce7f2;
}

/* Homepage download entry */
.app-entry {
	padding: 0 15px 90px;
	background: #f8f9fa;
}

.app-entry-card {
	position: relative;
	display: flex;
	min-height: 310px;
	align-items: center;
	justify-content: space-between;
	overflow: hidden;
	padding: 58px 70px;
	border-radius: 24px;
	background:
		radial-gradient(circle at 82% 20%, rgba(74, 202, 246, 0.3), transparent 31%),
		linear-gradient(125deg, #062f5f 0%, #0056b3 58%, #0b78cf 100%);
	box-shadow: 0 24px 55px rgba(3, 48, 98, 0.18);
	color: #fff;
}

.app-entry-card:hover,
.app-entry-card:focus {
	color: #fff;
	transform: translateY(-3px);
	box-shadow: 0 30px 65px rgba(3, 48, 98, 0.24);
	outline: none;
}

.app-entry-card,
.app-entry-card:hover {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-entry-copy {
	position: relative;
	z-index: 2;
	max-width: 650px;
}

.app-entry-kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 18px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.app-entry-kicker::before {
	width: 28px;
	height: 2px;
	background: currentColor;
	content: "";
}

.app-entry-copy h2 {
	margin: 0 0 18px;
	color: #fff;
	font-family: "Avenir Next", "PingFang SC", "Microsoft Yahei", sans-serif;
	font-size: 36px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.01em;
}

.app-entry-copy p {
	margin: 0 0 30px;
	color: rgba(255, 255, 255, 0.78);
	font-size: 17px;
}

.app-entry-button {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 12px 20px;
	border: 1px solid rgba(255, 255, 255, 0.32);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	font-size: 15px;
	font-weight: 600;
	backdrop-filter: blur(8px);
}

.app-entry-visual {
	position: relative;
	flex: 0 0 260px;
	height: 210px;
	margin-left: 40px;
}

.app-entry-icon {
	position: absolute;
	top: 30px;
	left: 55px;
	z-index: 2;
	width: 150px;
	height: 150px;
	padding: 22px;
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: 36px;
	background: #fff;
	box-shadow: 0 25px 50px rgba(1, 30, 67, 0.32);
	transform: rotate(-6deg);
}

.app-entry-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.app-entry-orbit {
	position: absolute;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 50%;
}

.app-entry-orbit-one {
	inset: 0;
}

.app-entry-orbit-two {
	inset: 24px;
	border-style: dashed;
}

/* App download page */
.app-download-page {
	background: #edf5fc;
	color: var(--app-ink);
}

.app-download-page main {
	overflow: hidden;
}

.download-hero {
	position: relative;
	min-height: 790px;
	margin-top: 80px;
	padding: 64px 15px 70px;
	background:
		radial-gradient(circle at 15% 35%, rgba(54, 185, 230, 0.2), transparent 30%),
		radial-gradient(circle at 86% 22%, rgba(0, 86, 179, 0.13), transparent 28%),
		linear-gradient(135deg, #f8fbff 0%, #edf6fd 52%, #e6f1fb 100%);
}

.download-hero::after {
	position: absolute;
	right: -130px;
	bottom: -200px;
	width: 500px;
	height: 500px;
	border: 1px solid rgba(0, 86, 179, 0.1);
	border-radius: 50%;
	content: "";
}

.download-hero-layout {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(390px, 0.88fr);
	align-items: center;
	gap: 58px;
}

.download-hero-layout::before,
.download-hero-layout::after {
	display: none;
	content: none;
}

.app-showcase {
	min-width: 0;
}

.screenshot-stack {
	position: relative;
	width: 100%;
	max-width: 590px;
	height: 640px;
	margin: 0 auto;
}

.app-screen {
	position: absolute;
	top: 50%;
	width: auto;
	max-width: none;
	filter: drop-shadow(0 24px 24px rgba(16, 45, 79, 0.22));
	transform-origin: center center;
}

.app-screen-main {
	left: 50%;
	z-index: 3;
	height: 590px;
	transform: translate(-50%, -50%);
}

.app-screen-left,
.app-screen-right {
	z-index: 1;
	height: 490px;
	top: 320px;
}

.app-screen-left {
	left: 7px;
	transform: translateY(-50%) rotate(-8deg);
}

.app-screen-right {
	right: 7px;
	transform: translateY(-50%) rotate(8deg);
}

.download-hero-copy {
	max-width: 510px;
}

.app-identity {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 24px;
}

.app-identity > img {
	width: 66px;
	height: 66px;
	padding: 8px;
	border: 1px solid rgba(0, 86, 179, 0.12);
	border-radius: 17px;
	background: #fff;
	box-shadow: 0 12px 28px rgba(0, 65, 135, 0.12);
	object-fit: contain;
}

.app-identity span {
	display: flex;
	flex-direction: column;
}

.app-identity small {
	color: var(--app-blue);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.16em;
}

.app-identity strong {
	margin-top: 3px;
	color: var(--app-ink);
	font-size: 20px;
	font-weight: 700;
}

.download-hero h1 {
	margin: 0 0 20px;
	color: var(--app-navy);
	font-family: "Avenir Next", "PingFang SC", "Microsoft Yahei", sans-serif;
	font-size: 48px;
	font-weight: 750;
	line-height: 1.18;
	letter-spacing: -0.02em;
}

.download-hero-copy > p:not(.download-safe-note) {
	margin: 0 0 28px;
	color: var(--app-muted);
	font-size: 17px;
	line-height: 1.8;
}

.download-actions {
	display: grid;
	gap: 12px;
}

.download-action {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr) 26px;
	align-items: center;
	min-height: 76px;
	padding: 12px 17px;
	border: 1px solid transparent;
	border-radius: 17px;
	box-shadow: 0 12px 28px rgba(18, 54, 93, 0.1);
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.download-action:hover,
.download-action:focus {
	text-decoration: none;
	transform: translateY(-2px);
	box-shadow: 0 17px 34px rgba(18, 54, 93, 0.16);
	outline: none;
}

.download-action > svg {
	width: 29px;
	height: 29px;
	fill: currentColor;
}

.download-action > .download-platform-icon {
	width: 32px;
	height: 32px;
	object-fit: contain;
}

.download-action-ios > .download-platform-icon,
.download-action-android > .download-platform-icon {
	filter: brightness(0) invert(1);
}

.download-action > span {
	display: flex;
	flex-direction: column;
}

.download-action small {
	margin-bottom: 2px;
	color: inherit;
	font-size: 11px;
	line-height: 1.3;
	opacity: 0.68;
}

.download-action strong {
	color: inherit;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
}

.download-action > b {
	font-size: 22px;
	font-weight: 400;
	transition: transform 0.22s ease;
}

.download-action:hover > b,
.download-action:focus > b {
	transform: translateX(3px);
}

.download-action-ios {
	background: #101821;
	color: #fff;
}

.download-action-ios:hover,
.download-action-ios:focus {
	color: #fff;
}

.download-action-android {
	background: linear-gradient(135deg, #0056b3, #0b7ed1);
	color: #fff;
}

.download-action-android:hover,
.download-action-android:focus {
	color: #fff;
}

.download-action-web {
	border-color: #d5e3f1;
	background: rgba(255, 255, 255, 0.88);
	color: var(--app-navy);
}

.download-action-web:hover,
.download-action-web:focus {
	color: var(--app-blue);
}

.download-safe-note {
	margin: 17px 2px 0;
	color: #7c8da1;
	font-size: 12px;
	line-height: 1.6;
}

.app-download-page #footer {
	margin-top: 0;
}

@media (max-width: 991px) {
	.app-entry-card {
		padding: 48px;
	}

	.app-entry-copy h2 {
		font-size: 30px;
	}

	.app-entry-visual {
		flex-basis: 210px;
	}

	.app-entry-icon {
		left: 35px;
	}

	.download-hero-layout {
		grid-template-columns: minmax(0, 1fr) minmax(350px, 0.9fr);
		gap: 25px;
	}

	.screenshot-stack {
		height: 560px;
	}

	.app-screen-main {
		height: 520px;
	}

	.app-screen-left,
	.app-screen-right {
		top: 280px;
		height: 410px;
	}

	.download-hero h1 {
		font-size: 40px;
	}
}

@media (max-width: 767px) {
	.app-entry {
		padding: 0 15px 55px;
	}

	.app-entry-card {
		min-height: auto;
		padding: 38px 28px;
		border-radius: 20px;
	}

	.app-entry-copy h2 {
		font-size: 25px;
	}

	.app-entry-copy p {
		font-size: 15px;
	}

	.app-entry-visual {
		display: none;
	}

	.download-hero {
		min-height: 0;
		margin-top: 55px;
		padding: 42px 20px 55px;
	}

	.download-hero-layout {
		display: flex;
		flex-direction: column;
		gap: 35px;
	}

	.download-hero-copy {
		order: 1;
		width: 100%;
		max-width: 520px;
	}

	.app-showcase {
		order: 2;
		width: 100%;
	}

	.app-identity {
		margin-bottom: 20px;
	}

	.app-identity > img {
		width: 58px;
		height: 58px;
		border-radius: 15px;
	}

	.download-hero h1 {
		margin-bottom: 16px;
		font-size: 34px;
	}

	.download-hero-copy > p:not(.download-safe-note) {
		margin-bottom: 23px;
		font-size: 15px;
	}

	.download-action {
		min-height: 70px;
		border-radius: 15px;
	}

	.screenshot-stack {
		height: 500px;
		max-width: 430px;
	}

	.app-screen-main {
		height: 470px;
	}

	.app-screen-left,
	.app-screen-right {
		top: 250px;
		height: 350px;
	}

	.app-screen-left {
		left: 0;
	}

	.app-screen-right {
		right: 0;
	}
}

@media (max-width: 420px) {
	.download-hero {
		padding-right: 15px;
		padding-left: 15px;
	}

	.download-hero h1 {
		font-size: 30px;
	}

	.download-action {
		grid-template-columns: 42px minmax(0, 1fr) 20px;
		padding-right: 13px;
		padding-left: 14px;
	}

	.screenshot-stack {
		height: 440px;
	}

	.app-screen-main {
		height: 420px;
	}

	.app-screen-left,
	.app-screen-right {
		top: 220px;
		height: 295px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.app-entry-card,
	.download-action {
		transition: none;
	}
}
