@property --at-homepage-motion-tint {
	syntax: "<color>";
	inherits: true;
	initial-value: #42553f;
}

.at-homepage-hero__assistant-static,
.at-homepage-hero__conversations,
.at-homepage-hero__conversation {
	position: absolute;
	inset: 0;
}

.at-homepage-hero__conversations {
	visibility: hidden;
}

.at-homepage-hero__conversation {
	opacity: 0;
	background: #faf9f5;
}

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

.at-homepage-hero__conversation:nth-child(2),
.at-homepage-hero__conversation:nth-child(3) {
	background: var(--at-marketing-surface);
	color: var(--at-marketing-ink-strong);
}

.at-homepage-hero__conversation:nth-child(4),
.at-homepage-hero__conversation:nth-child(5) {
	background: #202125;
	color: var(--at-marketing-on-inverse);
}

.at-homepage-hero__messages {
	position: absolute;
	inset: 48px 14px 94px;
	overflow: hidden;
	font-size: 15px;
	line-height: 1.5;
}

.at-homepage-hero__message {
	margin: 0 0 8px;
	opacity: 0;
	color: inherit;
	font: inherit;
}

.at-homepage-hero__message--user {
	margin-inline-start: 12%;
	padding: 9px 14px;
	border-radius: 16px;
	background: rgba(125, 119, 80, .09);
}

.at-homepage-hero__message--status {
	position: absolute;
}

.at-homepage-hero__message--status,
.at-homepage-hero__message--tool {
	font-size: 12px;
}

.at-homepage-hero__message--tool {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 14px;
}

.at-homepage-hero__message--tool::before {
	flex: 0 0 8px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #d97757;
	content: '';
}

.at-homepage-hero__message--tool code {
	padding: 0 4px;
	border-radius: 4px;
	background: rgba(127, 127, 127, .08);
	color: inherit;
	font-size: .9em;
}


.at-homepage-hero__conversation .at-homepage-hero__composer {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 31px;
	align-items: end;
}

.at-homepage-hero__placeholder,
.at-homepage-hero__typed {
	grid-area: 1 / 1;
	align-self: start;
}

.at-homepage-hero__typed {
	color: var(--at-marketing-ink-strong);
	opacity: 0;
	font-size: 13px;
}

.at-homepage-hero__typed-line {
	display: block;
}

.at-homepage-hero__conversation .at-homepage-hero__send {
	grid-area: 1 / 2;
}

@media (prefers-reduced-motion: no-preference) {
	.at-homepage-hero .at-homepage-hero__conversations {
		visibility: visible;
	}

	.at-homepage-hero .at-homepage-hero__conversation {
		animation: at-homepage-hero-conversation 25s ease infinite;
		animation-delay: var(--at-homepage-preview-delay);
	}

	.at-homepage-hero .at-homepage-hero__placeholder {
		animation: at-homepage-hero-placeholder 25s ease infinite both;
		animation-delay: var(--at-homepage-preview-delay);
	}

	.at-homepage-hero .at-homepage-hero__typed {
		animation: at-homepage-hero-typed 25s ease infinite both;
		animation-delay: var(--at-homepage-preview-delay);
	}

	.at-homepage-hero .at-homepage-hero__typed-line {
		animation: at-homepage-hero-line-one 25s linear infinite both;
		animation-delay: var(--at-homepage-preview-delay);
	}

	.at-homepage-hero .at-homepage-hero__typed-line:nth-child(2) {
		animation-name: at-homepage-hero-line-two;
	}

	.at-homepage-hero .at-homepage-hero__send {
		animation: at-homepage-hero-send 25s ease infinite both;
		animation-delay: var(--at-homepage-preview-delay);
	}

	.at-homepage-hero .at-homepage-hero__message {
		animation: at-homepage-hero-message 25s var(--at-marketing-ease-out) infinite both;
		animation-delay: var(--at-homepage-preview-delay);
	}

	.at-homepage-hero .at-homepage-hero__message--status {
		animation-name: at-homepage-hero-status;
	}

	.at-homepage-hero .at-homepage-hero__message--tool {
		animation-name: at-homepage-hero-tool;
	}

	.at-homepage-hero .at-homepage-hero__message--result {
		animation-name: at-homepage-hero-result;
	}

	body:has(.at-homepage-hero) {
		animation: at-homepage-hero-tint 25s cubic-bezier(.45, 0, .55, 1) infinite;
	}

	.at-marketing.at-homepage-hero {
		--at-homepage-hero-tint: var(--at-homepage-motion-tint);
	}

	body:has(.at-homepage-hero) .at-navigation:not(:has(details[open])):not(.is-mobile-open) {
		--at-navigation-background: var(--at-homepage-motion-tint);
	}

	.at-homepage-hero .at-homepage-hero__card {
		animation: at-homepage-hero-fan 25s var(--at-marketing-ease-in-out) infinite;
		backface-visibility: hidden;
		will-change: transform, opacity;
	}

	.at-homepage-hero .at-homepage-hero__card--1 {
		animation-delay: -20s;
	}

	.at-homepage-hero .at-homepage-hero__card--2 {
		animation-delay: -15s;
	}

	.at-homepage-hero .at-homepage-hero__card--3 {
		animation-delay: -10s;
	}

	.at-homepage-hero .at-homepage-hero__card--4 {
		animation-delay: -5s;
	}

	.at-homepage-hero .at-homepage-hero__card--5 {
		animation-delay: 0s;
	}

	@keyframes at-homepage-hero-conversation {
		0% { opacity: 0; animation-timing-function: var(--at-marketing-ease-out); }
		3%, 18% { opacity: 1; animation-timing-function: ease; }
		21.5%, 100% { opacity: 0; }
	}

	@keyframes at-homepage-hero-placeholder {
		0%, 1.8% { opacity: 1; }
		2%, 11% { opacity: 0; }
		11.4%, 100% { opacity: 1; }
	}

	@keyframes at-homepage-hero-typed {
		0%, 1.8% { opacity: 0; }
		2%, 10.8% { opacity: 1; }
		11%, 100% { opacity: 0; }
	}

	@keyframes at-homepage-hero-line-one {
		0%, 2% { clip-path: inset(0 100% 0 0); }
		6.5%, 100% { clip-path: inset(0); }
	}

	@keyframes at-homepage-hero-line-two {
		0%, 6.5% { clip-path: inset(0 100% 0 0); }
		10.5%, 100% { clip-path: inset(0); }
	}

	@keyframes at-homepage-hero-send {
		0%, 10.5%, 11.2%, 100% { transform: none; }
		10.8% { transform: scale(.82); }
	}

	@keyframes at-homepage-hero-message {
		0%, 11% { opacity: 0; transform: translateY(16px); }
		12.2%, 21.5% { opacity: 1; transform: none; }
		22%, 100% { opacity: 0; transform: translateY(16px); }
	}

	@keyframes at-homepage-hero-status {
		0%, 12.2% { opacity: 0; animation-timing-function: var(--at-marketing-ease-out); }
		12.6%, 13.8% { opacity: 1; animation-timing-function: ease; }
		14.1%, 100% { opacity: 0; }
	}

	@keyframes at-homepage-hero-tool {
		0%, 14% { opacity: 0; transform: translateY(4px); }
		14.6%, 21.5% { opacity: 1; transform: none; }
		22%, 100% { opacity: 0; transform: translateY(4px); }
	}

	@keyframes at-homepage-hero-result {
		0%, 15.2% { opacity: 0; transform: translateY(4px); }
		15.9%, 21.5% { opacity: 1; transform: none; }
		22%, 100% { opacity: 0; transform: translateY(4px); }
	}

	@keyframes at-homepage-hero-tint {
		0%, 16% { --at-homepage-motion-tint: #42553f; }
		20%, 36% { --at-homepage-motion-tint: #2f4f5e; }
		40%, 56% { --at-homepage-motion-tint: #5c6e64; }
		60%, 76% { --at-homepage-motion-tint: #8a4b2a; }
		80%, 96% { --at-homepage-motion-tint: #343a46; }
		100% { --at-homepage-motion-tint: #42553f; }
	}

	@keyframes at-homepage-hero-fan {
		0%, 15%, 100% { transform: translate(0, 0) scale(1); z-index: 5; opacity: 1; }
		20%, 35% { transform: translate(-290px, 40px) scale(.8); z-index: 4; opacity: 1; }
		40%, 55% { transform: translate(-520px, 76px) scale(.66); z-index: 3; opacity: 1; }
		58% { transform: translate(-580px, 76px) scale(.66); z-index: 1; opacity: 0; }
		59% { transform: translate(580px, 76px) scale(.66); z-index: 1; opacity: 0; }
		62%, 76% { transform: translate(520px, 76px) scale(.66); z-index: 3; opacity: 1; }
		80%, 95% { transform: translate(290px, 40px) scale(.8); z-index: 4; opacity: 1; }
	}
}

@media (max-width: 1023px) and (prefers-reduced-motion: no-preference) {
	.at-homepage-hero .at-homepage-hero__card {
		display: block;
		animation-name: at-homepage-hero-fan-mobile;
	}

	@keyframes at-homepage-hero-fan-mobile {
		0%, 15%, 100% { transform: translateX(-50%) scale(1); z-index: 5; opacity: 1; }
		20%, 35% { transform: translate(-100%, 24px) scale(.8); z-index: 4; opacity: 1; }
		40%, 58% { transform: translate(-150%, 48px) scale(.66); z-index: 3; opacity: 0; }
		59%, 76% { transform: translate(50%, 48px) scale(.66); z-index: 3; opacity: 0; }
		80%, 95% { transform: translate(0, 24px) scale(.8); z-index: 4; opacity: 1; }
	}
}

@media (prefers-reduced-motion: reduce) {
	.at-homepage-hero__conversations {
		visibility: visible;
	}

	.at-homepage-hero__conversation:first-child,
	.at-homepage-hero__conversation:first-child .at-homepage-hero__message:not(.at-homepage-hero__message--status) {
		opacity: 1;
	}

	.at-homepage-hero__assistant-static {
		visibility: hidden;
	}
}

@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
	.at-homepage-hero .at-homepage-hero__card {
		animation-name: at-homepage-hero-fan-small;
	}

	@keyframes at-homepage-hero-fan-small {
		0%, 15%, 100% { transform: none; z-index: 5; opacity: 1; }
		20%, 35% { transform: translate(-240px, 40px) scale(.8); z-index: 4; opacity: 1; }
		40%, 55% { transform: translate(-420px, 76px) scale(.66); z-index: 3; opacity: 0; }
		58% { transform: translate(-480px, 76px) scale(.66); z-index: 1; opacity: 0; }
		59% { transform: translate(480px, 76px) scale(.66); z-index: 1; opacity: 0; }
		62%, 76% { transform: translate(420px, 76px) scale(.66); z-index: 3; opacity: 0; }
		80%, 95% { transform: translate(240px, 40px) scale(.8); z-index: 4; opacity: 1; }
	}
}
