/* Ace Hero Kit: animation states, gradient text and hover effects for "ahk-" classes. */

/* Hide animated elements until GSAP takes over (html.ahk-js is set in <head>). */
html.ahk-js .ahk-header,
html.ahk-js .ahk-tagline,
html.ahk-js .ahk-headline,
html.ahk-js .ahk-lead,
html.ahk-js .ahk-cta,
html.ahk-js .ahk-star,
html.ahk-js .ahk-card {
	visibility: hidden;
}

/* Gradient words in the headline. */
.ahk-headline span:not(.ahk-w):not(.ahk-wi),
.ahk-grad-split .ahk-wi {
	background-image: linear-gradient(180deg, #ff8ed0 0%, #fe21a4 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}

.ahk-headline .ahk-grad-split {
	background: none;
	-webkit-text-fill-color: currentColor;
	color: inherit;
}

/* Word wrappers created by the split-text reveal. */
.ahk-w {
	display: inline-block;
	overflow: hidden;
	vertical-align: top;
	padding-bottom: 0.1em;
	margin-bottom: -0.1em;
}

.ahk-wi {
	display: inline-block;
	will-change: transform;
}

/* Buttons: lift, glow and a light sweep on hover. "translate" composes with GSAP transforms. */
.ahk-cta {
	position: relative;
	overflow: hidden;
	transition: translate 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.35s ease;
}

.ahk-cta::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
	transform: translateX(-120%);
	transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
	pointer-events: none;
}

.ahk-cta:hover,
.ahk-cta:focus-visible {
	translate: 0 -3px;
	filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.18)) saturate(1.06);
}

.ahk-cta:hover::after,
.ahk-cta:focus-visible::after {
	transform: translateX(120%);
}

.ahk-cta:active {
	translate: 0 -1px;
}

/* Mockup card: deeper shadow and slight lift on hover. */
.ahk-card {
	transition: translate 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.6s ease;
	will-change: transform;
}

.ahk-card:hover {
	translate: 0 -6px;
	box-shadow: 0 40px 80px -30px rgba(254, 33, 164, 0.35), 0 18px 40px -20px rgba(16, 24, 40, 0.25);
}

/* Header after scrolling: stronger glass effect. */
.ahk-header {
	transition: box-shadow 0.4s ease, background-color 0.4s ease, backdrop-filter 0.4s ease;
}

.ahk-header.ahk-scrolled {
	background-color: rgba(255, 255, 255, 0.85);
	box-shadow: 0 10px 30px -12px rgba(16, 24, 40, 0.18);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}

@media (prefers-reduced-motion: reduce) {
	.ahk-cta,
	.ahk-cta::after,
	.ahk-card,
	.ahk-header {
		transition: none;
	}

	.ahk-cta:hover,
	.ahk-card:hover {
		translate: none;
	}
}
