/* Automora Template Hero (Figma: "Hero — Lioweb"). 8px spacing system. */
.am-th {
	--s: 1;
	--am-th-bg: var(--am-bg, #120707);
	position: relative; isolation: isolate; overflow: hidden;
	padding: 170px 16px 0;
	background:
		radial-gradient(60% 45% at 50% 100%, rgba(253, 67, 11, .32), transparent 70%),
		radial-gradient(40% 35% at 0% 0%, rgba(244, 69, 6, .16), transparent 70%),
		var(--am-th-bg);
	color: var(--am-text, #F9F9F9);
	text-align: center;
}
.am-th::before { /* subtle vertical grid */
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background-image: linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
	background-size: 240px 100%; background-position: center top;
	-webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.am-th__inner { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; max-width: 880px; margin: 0 auto; }

/* Badge */
.am-th .am-th__badge { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 6px 16px 6px 6px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 40px; background: rgba(255, 255, 255, .07); font: 500 14px/1.3 var(--am-font-body, Inter, sans-serif); color: var(--am-text, #F9F9F9); text-decoration: none; transition: border-color .25s, background .25s; }
.am-th a.am-th__badge:hover { border-color: rgba(253, 67, 11, .6); background: rgba(253, 67, 11, .1); }
.am-th__tag { padding: 4px 10px; border-radius: 40px; background: var(--am-primary, #FD430B); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--am-ink, #121212); }

/* Title: two solid colours, no gradient */
.am-th .am-th__title { margin: 24px 0 0; font-family: var(--am-font-heading, Archivo, sans-serif); font-size: clamp(40px, 5.3vw, 76px); font-weight: 500; line-height: 1.04; letter-spacing: -.04em; color: var(--am-heading, #FFFAFA); text-wrap: balance; }
.am-th__l1, .am-th__l2 { display: block; }
.am-th__l2 { color: var(--am-primary, #FD430B); }
.am-th .am-th__text { max-width: 620px; margin: 24px 0 0; font: 400 18px/1.5 var(--am-font-body, Inter, sans-serif); color: #BDB6B6; }

/* Buttons */
.am-th__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }
.am-th .am-th__btn { display: inline-flex; align-items: center; gap: 14px; min-height: 56px; border-radius: 40px; font: 600 16px/1 var(--am-font-body, Inter, sans-serif); text-decoration: none; transition: transform .3s var(--am-ease, ease), background .25s, border-color .25s, box-shadow .3s; }
.am-th .am-th__btn--primary { padding: 6px 6px 6px 26px; background: var(--am-primary, #FD430B); color: var(--am-ink, #121212); box-shadow: 0 12px 32px rgba(244, 42, 6, .4); }
.am-th .am-th__btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(244, 42, 6, .5); color: var(--am-ink, #121212); }
.am-th__btn-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--am-ink, #121212); color: #FFFAFA; transition: transform .3s var(--am-ease, ease); }
.am-th .am-th__btn--primary:hover .am-th__btn-ic { transform: rotate(45deg); }
.am-th .am-th__btn--ghost { padding: 0 26px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .04); color: #FFFAFA; }
.am-th .am-th__btn--ghost:hover { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .08); color: #FFFAFA; }
.am-th .am-th__btn:focus-visible, .am-th .am-th__badge:focus-visible, .am-th .am-th__card-in:focus-visible { outline: 2px solid #FF6B3D; outline-offset: 3px; }

/* Platform logos */
.am-th .am-th__platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 32px 0 0; padding: 0; list-style: none; }
.am-th__platform { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 6px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 40px; background: rgba(255, 255, 255, .05); font: 500 14px/1 var(--am-font-body, Inter, sans-serif); color: var(--am-text, #F9F9F9); }
.am-th__logo { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; }

/* Card fan */
.am-th__stage { position: relative; z-index: 1; height: calc(330px * var(--s)); margin-top: 72px; }
.am-th__stage::after { /* fade into the page */
	content: ""; position: absolute; left: -16px; right: -16px; bottom: 0; z-index: 4; height: calc(200px * var(--s)); pointer-events: none;
	background: linear-gradient(180deg, transparent, var(--am-th-bg));
}
.am-th .am-th__fan { position: relative; height: 100%; margin: 0; padding: 0; list-style: none; }
.am-th__card {
	position: absolute; top: 0; left: 50%; z-index: calc(10 - var(--a));
	width: calc(250px * var(--s)); aspect-ratio: 750 / 995;
	transform: translateX(calc(-50% + var(--k) * 190px * var(--s))) translateY(calc((var(--a) * var(--a) * 14px + var(--a) * 10px) * var(--s))) rotate(calc(var(--k) * 7deg));
}
.am-th .am-th__card-in { display: block; width: 100%; height: 100%; overflow: hidden; border: 1px solid rgba(255, 255, 255, .16); border-radius: calc(20px * var(--s)); background: #221818; box-shadow: 0 30px 60px rgba(0, 0, 0, .6); transition: transform .45s var(--am-ease, cubic-bezier(.2, .7, .2, 1)), border-color .3s; }
.am-th .am-th__card-in img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.am-th a.am-th__card-in:hover { transform: translateY(-14px); border-color: rgba(253, 67, 11, .7); }

/* Floating chips */
.am-th__chip { position: absolute; top: 10px; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px; background: rgba(27, 17, 17, .92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 18px 40px rgba(0, 0, 0, .5); text-align: left; }
.am-th__chip--left { left: max(0px, calc(50% - 624px)); }
.am-th__chip--right { right: max(0px, calc(50% - 624px)); }
.am-th__chip-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #2A1A14; font: 600 15px/1 var(--am-font-heading, Archivo, sans-serif); color: #FF6B3D; }
.am-th__chip--right .am-th__chip-ic { background: var(--am-primary, #FD430B); color: var(--am-ink, #121212); }
.am-th__chip-txt { display: flex; flex-direction: column; gap: 2px; font: 400 13px/1.35 var(--am-font-body, Inter, sans-serif); color: #BDB6B6; }
.am-th__chip-txt strong { font-size: 14px; font-weight: 600; color: #FFFAFA; }

/* Entrance */
@media (prefers-reduced-motion: no-preference) {
	.am-th__card { animation: am-th-rise .9s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(.15s + var(--a) * .08s); }
	.am-th__chip { animation: am-th-fade .6s ease .7s both; }
	@keyframes am-th-rise { from { opacity: 0; translate: 0 80px; } to { opacity: 1; translate: 0 0; } }
	@keyframes am-th-fade { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
}

/* Responsive */
@media (max-width: 1199px) { .am-th { --s: .85; padding-top: 150px; } }
@media (max-width: 991px) {
	.am-th { --s: .72; }
	.am-th__chip { display: none; }
}
@media (max-width: 767px) {
	.am-th { --s: .56; padding-top: 128px; }
	.am-th .am-th__text { font-size: 16px; }
	.am-th__actions { margin-top: 32px; width: 100%; }
	.am-th .am-th__btn { justify-content: center; }
	.am-th .am-th__btn--primary { flex: 1 1 100%; justify-content: space-between; }
	.am-th .am-th__btn--ghost { flex: 1 1 100%; }
	.am-th .am-th__platforms { margin-top: 24px; gap: 8px; }
	.am-th__card[style*="--a:3"] { display: none; }
	.am-th__stage { margin-top: 56px; }
}
@media (max-width: 420px) { .am-th { --s: .5; } }
