/* ==========================================================
   Racing Game Splash – Landing Page
   Breakpoint: mobile ≤ 767px
   ========================================================== */

main#primary {
  margin-top: 102px;
}
.rgs {
	--rgs-font: 'HarmonyOS Sans', 'HarmonyOS_Sans', Arial, sans-serif;
	--rgs-white: #ffffff;
	--rgs-dark: #1d0738;
	--rgs-btn-text: #12062a;
	font-family: var(--rgs-font);
	color: var(--rgs-white);
	overflow-x: hidden;
}

.rgs *,
.rgs *::before,
.rgs *::after {
	box-sizing: border-box;
}

.rgs-container {
	width: 100%;
	max-width: 1312px;
	margin: 0 auto;
	padding: 0 64px;
	position: relative;
	z-index: 1;
}

/* ---------- Typography ---------- */
.rgs .rgs-title {
	font-family: var(--rgs-font);
	font-weight: 700;
	color: var(--rgs-white);
	margin: 0 0 16px;
	letter-spacing: 0;
	text-transform: none;
}

/* Section 1, 2, 3 title */
.rgs .rgs-title--xl {
	font-size: 56px;
	line-height: 120%;
}

/* Section 3 card titles */
.rgs .rgs-title--lg {
	font-size: 44px;
	line-height: 120%;
}

/* Section 4 title */
.rgs .rgs-title--cta {
	font-size: 44px;
	line-height: 120%;
}

/* All content */
.rgs .rgs-text {
	font-family: var(--rgs-font);
	font-size: 18px;
	line-height: 150%;
	font-weight: 400;
	color: var(--rgs-white);
	margin: 0 0 32px;
}

.rgs .rgs-text:last-child {
	margin-bottom: 0;
}

/* ---------- Button (same on mobile) ---------- */
.rgs .rgs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 32px;
	min-height: 44px;
	font-family: var(--rgs-font);
	font-weight: 700;
	font-style: normal;
	font-size: 14px;
	line-height: 100%;
	letter-spacing: 0.04em;
	text-align: center;
	vertical-align: middle;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--rgs-btn-text);
	background: linear-gradient(266.04deg, #FFE9A0 -57.28%, #FFCB05 99.3%);
	border: 0;
	border-radius: 30px;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.rgs .rgs-btn:hover,
.rgs .rgs-btn:focus-visible {
	color: var(--rgs-btn-text);
	text-decoration: none;
	filter: brightness(1.05);
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(255, 203, 5, 0.35);
}

.rgs .rgs-btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

/* Shared background handling (desktop / mobile via CSS vars) */
.rgs-hero,
.rgs-gallery,
.rgs-card,
.rgs-cta {
	background-color: var(--rgs-dark);
	background-image: var(--rgs-bg-d, none);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

/* ==========================================================
   Section 1 – Hero
   ========================================================== */
.rgs-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(560px, 52vw, 820px);
	padding: 80px 0;
}

.rgs-hero > .rgs-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
}

.rgs-hero__content {
	flex: 0 1 560px;
	max-width: 560px;
}

.rgs-hero__media {
	flex: 0 1 553px;
	max-width: 553px;
	margin-right: -2%;
}
.rgs-hero__media{margin-top: 50px;}
.rgs .rgs-hero__product {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
}

/* ---------- Hero load animation (pure CSS, plays on page load) ----------
   1. Title  2. Content  3. Button  – appear one by one, top to bottom
   4. Product image fades in (opacity 0 → 1)
   Adjust timing with the variables below. */
.rgs-hero {
	--rgs-anim-step: 0.25s;   /* gap between title / content / button */
	--rgs-anim-dur: 0.7s;     /* duration of each text item */
	--rgs-product-delay: 1.1s;/* when the product starts fading in */
	--rgs-product-dur: 1s;
}
/*
@keyframes rgsHeroTextIn {
	from { opacity: 0; transform: translateY(30px); }
	to   { opacity: 1; transform: translateY(0); }
}
*/
@keyframes rgsHeroTextIn {
	from { opacity: 0; transform: translateY(-30px); }
	to   { opacity: 1; transform: translateY(0); }
}

@keyframes rgsHeroFadeIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.rgs-hero__content > * {
	opacity: 0;
	animation: rgsHeroTextIn var(--rgs-anim-dur) cubic-bezier(.22, .8, .24, 1) forwards;
	will-change: opacity, transform;
}

.rgs-hero__content > *:nth-child(1) { animation-delay: 0.2s; }
.rgs-hero__content > *:nth-child(2) { animation-delay: calc(0.2s + var(--rgs-anim-step)); }
.rgs-hero__content > *:nth-child(3) { animation-delay: calc(0.2s + var(--rgs-anim-step) * 2); }

.rgs-hero__media {
	opacity: 0;
	animation: rgsHeroFadeIn var(--rgs-product-dur) ease-out var(--rgs-product-delay) forwards;
}

/* keep the button hover lift working after the intro */
.rgs-hero__content > .rgs-btn:hover {
	transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
	.rgs-hero__content > *,
	.rgs-hero__media {
		opacity: 1;
		animation: none;
	}
}

#choose-your-ride {
	scroll-margin-top: 102px;
}

/* ==========================================================
   Section 2 – Gallery
   ========================================================== */
.rgs-gallery {
	padding: 88px 0 96px;
	padding: 76px 0;
	text-align: center;
}

.rgs-gallery__head {
	max-width: 900px;
	margin: 0 auto 48px;
}

.rgs-gallery__media {
	display: block;
	max-width: 1054px;
	margin: 0 auto;
}

.rgs .rgs-gallery__img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
}

/* ==========================================================
   Section 3 – Choose Your Ride
   ========================================================== */
.rgs-ride {
	padding: 100px 0 120px;
}

.rgs-ride__title {
	text-align: center;
	margin-bottom: 60px !important;
}

.rgs-ride__cards {
	display: flex;
	flex-direction: column;
	gap: 80px;
}

.rgs-card {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 600px;
	padding: 64px 7%;
	border-radius: 24px;
	overflow: hidden;
}

.rgs-card--right {
	justify-content: flex-end;
}

.rgs-card__content {
	max-width: 440px;
}

.rgs-card--right .rgs-card__content {
	max-width: 460px;
}

.rgs .rgs-card__eyebrow {
	font-family: var(--rgs-font);
	font-weight: 700;
	font-size: 18px;
	line-height: 120%;
	letter-spacing: 0.12em;
	letter-spacing: 10%;
	text-transform: uppercase;
	color: var(--rgs-white);
	margin: 0 0 12px;
}

/* ==========================================================
   Section 4 – CTA
   ========================================================== */
.rgs-cta {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(560px, 47vw, 760px);
	padding: 80px 0;
}

.rgs-cta__content {
	max-width: 520px;
}

/* ==========================================================
   Tablet
   ========================================================== */
@media (max-width: 1199px) {
	.rgs-container {
		padding: 0 40px;
	}

	.rgs-card {
		min-height: 520px;
		padding: 48px 5%;
	}

	.rgs-card__content,
	.rgs-card--right .rgs-card__content {
		max-width: 400px;
	}
}

@media (max-width: 991px) {
	main#primary{
         margin-top: 52px;
        }
	.rgs-hero{padding: 70px 0;}
	.rgs .rgs-title--xl,
	.rgs .rgs-title--cta{font-size: 40px;}
	.rgs .rgs-text{font-size:16px;line-height: 140%;}
	.rgs .rgs-card__eyebrow{font-size: 16px;}
	.rgs .rgs-title--lg{font-size: 36px;}
	.rgs-ride {padding: 80px 0 80px;}
	.rgs-gallery{padding: 70px 0;}
	.rgs-ride__cards{gap: 60px;}

}
@media (min-width: 768px) {
	.rgs-ctaim-mob{
         display:none;
        }

}
/* ==========================================================
   Mobile (≤ 767px)
   ========================================================== */
@media (max-width: 767px) {
	.rgs-container {
		padding: 0 24px;
	}

	.rgs-hero,
	.rgs-gallery,
	.rgs-card,
	.rgs-cta {
		background-image: var(--rgs-bg-m, var(--rgs-bg-d, none));
	}

	#choose-your-ride {
		scroll-margin-top: 52px;
	}

	.rgs .rgs-title--xl {
		font-size: 32px;
		line-height: 120%;
	}

	.rgs .rgs-title--lg {
		font-size: 28px;
		line-height: 120%;
	}

	.rgs .rgs-title--cta {
		font-size: 32px;
		line-height: 120%;
	}

	.rgs .rgs-text {
		font-size: 16px;
		line-height: 140%;
		margin-bottom: 24px;
	}

	/* Hero: text on top, product image below */
	.rgs-hero {
		display: block;
		min-height: 0;
		padding: 70px 0;
		text-align: center;
		background-position: center bottom;
	}

	.rgs-hero > .rgs-container {
		flex-direction: column;
		gap: 60px;
	}

	.rgs-hero__content {
		flex: none;
		max-width: 100%;
	}

	.rgs-hero__media {
		flex: none;
		width: 100%;
		max-width: 360px;
		margin: 0 auto;
	}

	/* Gallery */
	.rgs-gallery {
		padding: 56px 0;
	}

	.rgs-gallery__head {
		margin-bottom: 32px;
	}

	/* Choose Your Ride */
	.rgs-ride {
		padding: 56px 0;
	}

	.rgs-ride__title {
		margin-bottom: 32px !important;
	}

	.rgs-ride__cards {
		gap: 40px;
	}

	/* Product artwork sits at the top of the mobile image, text below it */
	.rgs-card,
	.rgs-card--right {
		display: block;
		min-height: 0;
		padding: 90% 20px 40px;
		text-align: center;
		border-radius: 20px;
		background-position: center top;
	}

	.rgs-card__content,
	.rgs-card--right .rgs-card__content {
		max-width: 100%;
	}

	.rgs .rgs-card__eyebrow {
		font-size: 12px;
		margin-bottom: 12px;
	}

	/* CTA: artwork on top, text below */
	.rgs-cta {
		display: block;
		min-height: 0;
		padding: 95% 0 56px;
		padding: 0;
		text-align: center;
		background-position: center top;
		background: #170029;
	}
	.rgs-ctaim-mob{width:100%;}
	.rgs-cta__content {
		max-width: 100%;
		padding: 40px 0 50px;
	}
}

