/*
 * True Trajectory hero + intro on /ballistics-calculator/.
 * Rendered by includes/features/ballistics-landing.php.
 * Filename keeps "ballistics-calculator" so ballistics-rucss.php excludes it
 * from Perfmatters Remove Unused CSS.
 */

/* ---------- Hero ---------- */
.tt-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: clamp(220px, 30vw, 420px);
	padding: 28px 5%;
	background: #0e0f11;
	overflow: hidden;
	isolation: isolate;
}

.tt-hero__bg {
	position: absolute;
	left: 0;
	top: -16%;
	z-index: -1;
	width: 100%;
	max-width: none;
	height: 132%;
	object-fit: cover;
	object-position: center 60%;
	will-change: transform;
	transform: translate3d(0, 0, 0);
}

.tt-hero__logo {
	display: block;
	width: min(640px, 62%);
	height: auto;
	filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.55));
}

@media (prefers-reduced-motion: reduce) {
	.tt-hero__bg {
		top: 0;
		height: 100%;
		will-change: auto;
		transform: none !important;
	}
}

@media (max-width: 900px) {
	.tt-hero__logo {
		width: min(560px, 78%);
	}
}

@media (max-width: 640px) {
	.tt-hero {
		min-height: 200px;
		padding: 24px 6%;
	}

	.tt-hero__logo {
		width: 100%;
		max-width: 440px;
	}
}

/* ---------- Intro / features ---------- */
.tt-intro {
	background: #17191c;
	border-top: 1px solid #2e3237;
	color: #f2f2f0;
	font-family: Barlow, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.tt-intro__in {
	display: flex;
	flex-direction: column;
	gap: 48px;
	max-width: 1440px;
	margin: 0 auto;
	padding: 80px 120px;
}

.tt-intro__top {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 64px;
	align-items: center;
}

.tt-intro h2 {
	margin: 0;
	font: 800 72px/0.95 'Barlow Condensed', Impact, 'Arial Narrow', sans-serif;
	color: #fff;
	text-transform: none;
	letter-spacing: normal;
}

.tt-intro p {
	margin: 0;
	font-size: 21px;
	line-height: 1.55;
	color: #c9cccf;
}

.tt-feats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tt-feat {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	margin: 0;
	padding: 28px;
	border: 1px solid #2e3237;
	border-radius: 14px;
	background: #1f2226;
	color: #7fb04f;
}

.tt-feat svg {
	flex: none;
}

.tt-feat span {
	font: 700 24px/1.1 'Barlow Condensed', Impact, 'Arial Narrow', sans-serif;
	color: #fff;
	text-transform: uppercase;
}

@media (max-width: 1100px) {
	.tt-intro__in {
		padding: 64px 40px;
	}

	.tt-intro h2 {
		font-size: 56px;
	}

	.tt-feats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.tt-intro__top {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}

@media (max-width: 640px) {
	.tt-intro__in {
		gap: 32px;
		padding: 44px 20px;
	}

	.tt-intro h2 {
		font-size: 44px;
	}

	.tt-intro p {
		font-size: 17px;
	}

	.tt-feats {
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}

	.tt-feat {
		gap: 12px;
		padding: 18px;
	}

	.tt-feat svg {
		width: 40px;
		height: 40px;
	}

	.tt-feat span {
		font-size: 19px;
	}
}

@media (max-width: 360px) {
	.tt-feats {
		grid-template-columns: 1fr;
	}
}
