.at-homepage-products {
	position: relative;
	z-index: 8;
	margin-top: -160px;
	padding-block: var(--at-marketing-section-padding);
	border-radius: var(--at-marketing-section-radius) var(--at-marketing-section-radius) 0 0;
	background: var(--at-marketing-surface);
	scroll-margin-top: 24px;
}

.at-homepage-products__heading {
	margin-bottom: 56px;
}

.at-homepage-products__title {
	margin: 0;
	color: var(--at-marketing-ink-strong);
	font-size: 48px;
	font-weight: 500;
	letter-spacing: -.02em;
	line-height: 1.15;
}

.at-homepage-products__title > span:first-child,
.at-homepage-products__title-line {
	display: block;
}

.at-homepage-products__rotation {
	display: inline-grid;
	vertical-align: top;
}

.at-homepage-products__assistant {
	display: inline-flex;
	grid-area: 1 / 1;
	align-items: center;
	gap: 14px;
	opacity: 0;
	white-space: nowrap;
}

.at-homepage-products__assistant:first-child {
	opacity: 1;
}

.at-homepage-products__assistant-logo {
	display: grid;
	flex: 0 0 46px;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 10px;
	background: var(--at-marketing-surface);
	box-shadow: var(--at-marketing-shadow-card), 0 0 0 1px var(--at-marketing-divider);
}

.at-homepage-products__assistant-logo img {
	display: block;
	width: 26px;
	height: 26px;
}

.at-homepage-products__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 64px 24px;
}

.at-homepage-product {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.at-homepage-product__image {
	overflow: hidden;
	aspect-ratio: 588 / 455;
	border-radius: var(--at-marketing-radius-lg);
	background: #f5f5f5;
}

.at-homepage-product__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.24s var(--at-marketing-ease-out);
}

.at-homepage-product:hover .at-homepage-product__image img,
.at-homepage-product:focus-within .at-homepage-product__image img {
	transform: translateY(-4px) scale(1.01);
}

.at-homepage-product__title {
	margin: 24px 0 8px;
	color: var(--at-marketing-ink-strong);
	font-size: 24px;
	font-weight: 600;
	line-height: 1.3;
}

.at-homepage-product__description {
	max-width: 540px;
	margin: 0 0 24px;
	color: var(--at-marketing-ink-secondary);
	font-size: 16px;
	line-height: 1.6;
}

.at-homepage-product__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: auto;
}

.at-homepage-product__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 10px 24px;
	border: 1px solid transparent;
	border-radius: var(--at-marketing-radius-sm);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	transition: background 150ms ease, border-color 150ms ease;
}

.at-homepage-product__button--primary {
	border-color: var(--at-marketing-brand);
	background: var(--at-marketing-brand);
	color: var(--at-marketing-on-brand);
}

.at-homepage-product__button--primary:hover {
	border-color: var(--at-marketing-brand-hover);
	background: var(--at-marketing-brand-hover);
	color: var(--at-marketing-on-brand);
	text-decoration: none;
}

.at-homepage-product__button--secondary {
	border-color: var(--at-marketing-border-control);
	background: var(--at-marketing-surface);
	color: var(--at-marketing-ink-strong);
}

.at-homepage-product__button--secondary:hover {
	background: var(--at-marketing-surface-light);
	color: var(--at-marketing-ink-strong);
	text-decoration: none;
}

@media (min-width: 768px) and (max-width: 1023px) {
	.at-homepage-products {
		margin-top: -32px;
	}
}

@media (max-width: 767px) {
	.at-homepage-products {
		margin-top: -32px;
	}

	.at-homepage-products__heading {
		margin-bottom: 32px;
	}

	.at-homepage-products__title {
		font-size: 30px;
	}

	.at-homepage-products__assistant {
		gap: 10px;
	}

	.at-homepage-products__assistant-logo {
		flex-basis: 34px;
		width: 34px;
		height: 34px;
		border-radius: 8px;
	}

	.at-homepage-products__assistant-logo img {
		width: 20px;
		height: 20px;
	}

	.at-homepage-products__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 48px;
	}

	.at-homepage-product__title {
		margin-top: 20px;
		font-size: 20px;
	}

	.at-homepage-product__description {
		margin-bottom: 20px;
	}

	.at-homepage-product__actions > a {
		min-height: 44px;
		padding: 0 18px;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.at-homepage-products__assistant {
		animation: at-homepage-rotate-assistant 9.6s var(--at-marketing-ease-out) infinite;
		will-change: transform, opacity, filter;
	}

	.at-homepage-products__assistant:nth-child(2) {
		animation-delay: 2.4s;
	}

	.at-homepage-products__assistant:nth-child(3) {
		animation-delay: 4.8s;
	}

	.at-homepage-products__assistant:nth-child(4) {
		animation-delay: 7.2s;
	}

	@keyframes at-homepage-rotate-assistant {
		0% {
			opacity: 0;
			transform: translateY(.4em);
			filter: blur(6px);
		}

		5%, 20% {
			opacity: 1;
			transform: none;
			filter: blur(0);
		}

		25%, 100% {
			opacity: 0;
			transform: translateY(-.4em);
			filter: blur(6px);
		}
	}
}

@media (prefers-reduced-motion: reduce) {
	.at-homepage-product__image img,
	.at-homepage-product__button {
		transition: none;
	}

	.at-homepage-product:hover .at-homepage-product__image img,
	.at-homepage-product:focus-within .at-homepage-product__image img {
		transform: none;
	}
}
