* {
	box-sizing: border-box;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	margin: 0;
	padding: 0;
	line-height: 1.6;
}

.bg {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	background-size: 400% 400%;
	animation: gradientShift 8s ease infinite;
	min-height: 100vh;
	color: white;
	position: relative;
	overflow-x: hidden;
}

.bg::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
		radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
		radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
	pointer-events: none;
}

@keyframes gradientShift {
	0% {
		background-position: 0% 50%;
	}

	50% {
		background-position: 100% 50%;
	}

	100% {
		background-position: 0% 50%;
	}
}

main {
	max-width: 1200px;
	margin: 0 auto;
	padding: 4rem 2rem;
	text-align: center;
	position: relative;
	z-index: 1;
}

.hero-section {
	margin-bottom: 5rem;
	animation: fadeInUp 1s ease-out;
}

.hero-section p {
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

h1 {
	font-size: 4rem;
	margin-bottom: 0.5rem;
	font-weight: 300;
	background: linear-gradient(45deg, #fff, #f0f0f0);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	letter-spacing: -0.02em;
}

main>p {
	font-size: 1.4rem;
	margin-bottom: 3rem;
	opacity: 0.9;
	font-weight: 300;
	letter-spacing: 0.5px;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.apps-section {
	margin-top: 4rem;
	animation: fadeInUp 1s ease-out 0.3s both;
}

.apps-section h2 {
	font-size: 2.5rem;
	margin-bottom: 3rem;
	font-weight: 300;
	background: linear-gradient(45deg, #fff, #f0f0f0);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	letter-spacing: -0.01em;
}

.app-links {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
	max-width: 1000px;
	margin: 0 auto;
}

.app-link {
	background: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(20px);
	border-radius: 20px;
	padding: 2.5rem 2rem;
	text-decoration: none;
	color: white;
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	border: 1px solid rgba(255, 255, 255, 0.1);
	position: relative;
	overflow: hidden;
	animation: slideInUp 0.6s ease-out forwards;
	opacity: 0;
	transform: translateY(20px);
	display: flex;
	align-items: center;
	gap: 0.75rem;

	/* vertical card: icon on top, text below */
	flex-direction: column;
	text-align: center;
}

.app-link:nth-child(1) {
	animation-delay: 0.1s;
}

.app-link:nth-child(2) {
	animation-delay: 0.2s;
}

.app-link:nth-child(3) {
	animation-delay: 0.3s;
}

.app-link:nth-child(4) {
	animation-delay: 0.4s;
}

.app-link::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
	transition: left 0.6s;
}

.app-link:hover::before {
	left: 100%;
}

.app-link:hover {
	transform: translateY(-8px) scale(1.02);
	background: rgba(255, 255, 255, 0.15);
	border-color: rgba(255, 255, 255, 0.3);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.app-link h3 {
	margin: 0 0 1rem 0;
	font-size: 1.8rem;
	font-weight: 500;
	background: linear-gradient(45deg, #fff, #e0e0e0);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.app-icon {
	width: 96px;
	height: 96px;
	border-radius: 20px;
	object-fit: cover;
	flex-shrink: 0;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.04);
}

.app-text {
	text-align: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.app-text h3 {
	margin: 0 0 0.25rem 0;
}

.app-text p {
	margin: 0;
}

.app-desc {
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.98rem;
	margin-top: 0.25rem;
	max-width: 38ch;
}

.app-link p {
	margin: 0;
	opacity: 0.8;
	font-size: 1.1rem;
	font-weight: 300;
	line-height: 1.5;
}

@keyframes slideInUp {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 768px) {
	main {
		padding: 2rem 1rem;
	}

	.hero-section {
		margin-bottom: 3rem;
	}

	h1 {
		font-size: 2.5rem;
	}

	main>p {
		font-size: 1.2rem;
	}

	.apps-section h2 {
		font-size: 2rem;
		margin-bottom: 2rem;
	}

	.app-link {
		padding: 2rem 1.5rem;
		align-items: center;
	}

	.app-icon {
		width: 72px;
		height: 72px;
		border-radius: 16px;
	}

	.app-link h3 {
		font-size: 1.5rem;
	}

	.app-link p {
		font-size: 1rem;
	}
}

@media (max-width: 480px) {
	h1 {
		font-size: 2rem;
	}

	main>p {
		font-size: 1.1rem;
	}

	.app-link {
		padding: 1.5rem;
		/* keep vertical layout on very small screens */
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.app-icon {
		width: 56px;
		height: 56px;
		border-radius: 12px;
	}

	.app-text {
		align-items: center;
		text-align: center;
	}
}

.site-footer {
	text-align: center;
	padding: 2rem 1rem;
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.95rem;
}

.site-footer a {
	color: rgba(255, 255, 255, 0.95);
	text-decoration: underline;
}