:root {
	--bg: #f5f5f7;
	--surface: #ffffff;
	--text: #1d1d1f;
	--text-secondary: #6e6e73;
	--text-tertiary: #86868b;
	--border: rgba(0, 0, 0, 0.08);
	--row-hover: rgba(0, 0, 0, 0.03);
	--header-bg: rgba(245, 245, 247, 0.72);
	--switch-track: rgba(0, 0, 0, 0.05);
	--brand: #0071e3;
	--btn-bg: #1d1d1f;
	--btn-text: #ffffff;
	--btn-hover: #333336;
	--focus-ring: rgba(0, 113, 227, 0.45);
	--prose-rule: rgba(0, 0, 0, 0.08);
	--prose-callout: rgba(0, 0, 0, 0.04);
	--shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
	--shadow-icon: 0 8px 24px rgba(0, 0, 0, 0.12);
	--header-h: 56px;
	--page-w: 1080px;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #000000;
		--surface: #1c1c1e;
		--text: #f5f5f7;
		--text-secondary: #a1a1a6;
		--text-tertiary: #86868b;
		--border: rgba(255, 255, 255, 0.12);
		--row-hover: rgba(255, 255, 255, 0.04);
		--header-bg: rgba(0, 0, 0, 0.72);
		--switch-track: rgba(255, 255, 255, 0.08);
		--brand: #0a84ff;
		--btn-bg: #f5f5f7;
		--btn-text: #000000;
		--btn-hover: #ffffff;
		--focus-ring: rgba(10, 132, 255, 0.55);
		--prose-rule: rgba(255, 255, 255, 0.12);
		--prose-callout: rgba(255, 255, 255, 0.06);
		--shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
		--shadow-icon: 0 8px 28px rgba(0, 0, 0, 0.5);
	}
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.5;
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

img { max-width: 100%; display: block; }

.wrap {
	width: min(var(--page-w), calc(100% - 48px));
	margin-inline: auto;
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--header-bg);
	backdrop-filter: saturate(180%) blur(20px);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	border-bottom: 1px solid var(--border);
}

.site-header .inner {
	width: min(var(--page-w), calc(100% - 48px));
	margin: 0 auto;
	height: var(--header-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

@font-face {
	font-family: "Barlow Condensed";
	src: url("/static/fonts/barlow-condensed-semibold.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

.brand {
	font-family: "Barlow Condensed", "Avenir Next Condensed", "Segoe UI Narrow", sans-serif;
	font-size: 21px;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1;
}

.lang-switch {
	display: inline-flex;
	background: var(--switch-track);
	border-radius: 980px;
	padding: 3px;
	gap: 2px;
}

.lang-switch button,
.lang-switch a {
	appearance: none;
	border: none;
	background: transparent;
	color: var(--text-secondary);
	font-size: 13px;
	font-weight: 500;
	padding: 6px 12px;
	border-radius: 980px;
	cursor: pointer;
	font-family: inherit;
	line-height: 1.2;
	transition: color 0.2s ease, background 0.2s ease;
}

.lang-switch button:hover,
.lang-switch a:hover { color: var(--text); }

.lang-switch button.active,
.lang-switch a.active {
	background: var(--surface);
	color: var(--text);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

@media (prefers-color-scheme: dark) {
	.lang-switch button.active,
	.lang-switch a.active { background: #48484a; }
}

/* Catalog */
.catalog {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	padding: 56px 0 96px;
}

.app-row {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 18px;
	padding: 24px;
	border-radius: 22px;
	background: var(--surface);
	border: 1px solid var(--border);
	box-shadow: var(--shadow-card);
	color: inherit;
	min-height: 136px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) {
	.app-row:hover {
		transform: translateY(-2px);
		box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
	}
	.app-row--soon:hover {
		transform: none;
		box-shadow: none;
	}
}

.app-icon {
	width: 88px;
	height: 88px;
	border-radius: 22.37%;
	overflow: hidden;
	box-shadow: var(--shadow-icon);
	border: 1px solid var(--border);
	background: var(--surface);
	flex-shrink: 0;
}

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

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

.app-name {
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -0.015em;
}

.app-tagline {
	font-size: 15px;
	color: var(--text-secondary);
	margin-top: 4px;
	line-height: 1.4;
}

.app-row .chevron {
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--text-tertiary);
	border-bottom: 2px solid var(--text-tertiary);
	transform: rotate(-45deg);
	margin-right: 6px;
	opacity: 0.7;
}

.app-row--soon {
	cursor: default;
	background: color-mix(in srgb, var(--surface) 55%, transparent);
	border-style: dashed;
	box-shadow: none;
	color: var(--text-secondary);
}

.app-icon--soon {
	display: grid;
	place-items: center;
	background: transparent;
	box-shadow: none;
	border: 1.5px dashed color-mix(in srgb, var(--text-tertiary) 45%, transparent);
}

.app-icon--soon::before {
	content: "";
	width: 22px;
	height: 22px;
	background:
		linear-gradient(var(--text-tertiary), var(--text-tertiary)) center / 14px 2px no-repeat,
		linear-gradient(var(--text-tertiary), var(--text-tertiary)) center / 2px 14px no-repeat;
	opacity: 0.55;
}

/* Product */
.product {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 48px;
	align-items: center;
	padding: 72px 0 96px;
}

.product-icon {
	width: 160px;
	height: 160px;
	border-radius: 22.37%;
	overflow: hidden;
	border: 1px solid var(--border);
	box-shadow:
		0 16px 40px color-mix(in srgb, var(--product-accent, #0071e3) 28%, transparent),
		var(--shadow-icon);
	background: var(--surface);
}

.product-icon img { width: 100%; height: 100%; object-fit: cover; }

.product-copy { min-width: 0; }

.product h1 {
	font-size: clamp(32px, 4vw, 44px);
	font-weight: 600;
	letter-spacing: -0.022em;
	line-height: 1.1;
}

.product-aka {
	margin-top: 6px;
	font-size: 16px;
	color: var(--text-secondary);
}

.product-aka[hidden] { display: none; }

.product-tagline {
	margin-top: 10px;
	font-size: 20px;
	color: var(--text-secondary);
}

.product-desc {
	margin-top: 16px;
	max-width: 38em;
	font-size: 16px;
	color: var(--text-secondary);
	line-height: 1.6;
}

.product-actions {
	margin-top: 28px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 240px;
	padding: 13px 22px;
	border-radius: 980px;
	font-size: 15px;
	font-weight: 600;
	background: var(--btn-bg);
	color: var(--btn-text);
	transition: background 0.2s ease, transform 0.1s ease;
}

.btn::before {
	content: "";
	width: 14px;
	height: 17px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath fill='black' d='M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath fill='black' d='M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.btn:hover { background: var(--btn-hover); }
.btn:active { transform: scale(0.98); }

.btn-soon {
	background: var(--switch-track);
	color: var(--text-tertiary);
	cursor: default;
}

.btn-soon::before { display: none; }

.btn-soon:hover { background: var(--switch-track); }
.btn-soon:active { transform: none; }

.text-link {
	font-size: 14px;
	color: var(--text-secondary);
}

.text-link:hover { color: var(--brand); }

.product-media {
	grid-column: 1 / -1;
	margin-top: 8px;
	display: grid;
	gap: 16px;
}

.product-media img {
	width: 100%;
	border-radius: 16px;
	border: 1px solid var(--border);
}

.product-media[hidden] { display: none; }

.back-link {
	display: inline-block;
	margin-top: 28px;
	font-size: 14px;
	color: var(--text-secondary);
}

.back-link:hover { color: var(--text); }

/* Footer */
.site-footer {
	border-top: 1px solid var(--border);
	padding: 28px 0 40px;
	color: var(--text-secondary);
	font-size: 13px;
}

.site-footer .wrap { text-align: center; }
.site-footer p { margin: 4px 0; }
.site-footer a { color: var(--text-secondary); }
.site-footer a:hover { color: var(--brand); }

/* Privacy / prose */
.prose-wrap { padding: 48px 0 80px; }

.crumb {
	font-size: 13px;
	color: var(--text-tertiary);
	margin-bottom: 28px;
}

.crumb a { color: var(--text-secondary); }
.crumb a:hover { color: var(--brand); }

.prose {
	color: var(--text-secondary);
	font-size: 16px;
	line-height: 1.7;
}

.prose h1 {
	color: var(--text);
	font-size: clamp(28px, 4vw, 36px);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.15;
	margin-bottom: 8px;
}

.prose .last-updated {
	color: var(--text-tertiary);
	font-size: 13px;
	margin-bottom: 36px;
}

.prose h2 {
	color: var(--text);
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -0.015em;
	margin: 36px 0 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--prose-rule);
}

.prose h3 {
	color: var(--text);
	font-size: 16px;
	font-weight: 600;
	margin: 24px 0 8px;
}

.prose p { margin-bottom: 14px; }

.prose ul,
.prose ol { margin: 0 0 16px 1.2em; }

.prose li { margin-bottom: 6px; }

.prose strong { color: var(--text); font-weight: 600; }

.prose a { color: var(--brand); }
.prose a:hover { text-decoration: underline; }

.prose hr {
	border: none;
	border-top: 1px solid var(--prose-rule);
	margin: 36px 0;
}

.prose .contact-info {
	background: var(--prose-callout);
	padding: 20px 22px;
	border-radius: 14px;
	margin: 24px 0;
}

.prose .contact-info h2 {
	margin-top: 0;
	border: none;
	padding: 0;
}

/* noscript */
.noscript-fallback {
	padding: 24px 0 48px;
	color: var(--text-secondary);
}

.noscript-fallback h2 { color: var(--text); margin-bottom: 12px; }
.noscript-fallback ul { list-style: none; }
.noscript-fallback li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.noscript-fallback a { color: var(--brand); }

/* Focus */
.lang-switch button:focus-visible,
.lang-switch a:focus-visible,
.btn:focus-visible,
.text-link:focus-visible,
.back-link:focus-visible,
.app-row:focus-visible,
.brand:focus-visible,
.site-footer a:focus-visible,
.crumb a:focus-visible {
	outline: 2px solid var(--focus-ring);
	outline-offset: 3px;
}

/* Mobile: keep the tighter single-column list */
@media (max-width: 900px) {
	.wrap,
	.site-header .inner { width: min(var(--page-w), calc(100% - 32px)); }

	.catalog {
		grid-template-columns: 1fr;
		gap: 12px;
		padding: 28px 0 64px;
	}

	.app-row {
		min-height: 0;
		padding: 16px;
		gap: 14px;
		border-radius: 18px;
	}

	.app-icon { width: 56px; height: 56px; }
	.app-name { font-size: 17px; }
	.app-tagline { font-size: 14px; }

	.product {
		display: flex;
		flex-direction: column;
		text-align: center;
		gap: 0;
		padding: 40px 0 72px;
	}

	.product-icon {
		width: 96px;
		height: 96px;
		margin: 0 auto 22px;
	}

	.product-tagline { font-size: 18px; }
	.product-actions {
		justify-content: center;
		flex-direction: column;
	}

	.prose-wrap { padding: 32px 0 64px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
	.app-row:hover { transform: none; }
	.btn:active { transform: none; }
}
