/*
 * ACX Core frontend templates.
 */

:root {
	--acx-green: #65c829;
	--acx-green-bright: #8ceb3f;
	--acx-bg: #070a08;
	--acx-surface: #111611;
	--acx-surface-2: #1a211a;
	--acx-text: #f5f8f2;
	--acx-text-muted: #aeb8aa;
	--acx-border: rgba(101, 200, 41, 0.18);
	--acx-border-strong: rgba(101, 200, 41, 0.42);
	--acx-glow: 0 0 28px rgba(101, 200, 41, 0.28);
}

.acx-product-template .site-main {
	background:
		radial-gradient(circle at 50% 0%, rgba(101, 200, 41, 0.12), transparent 38rem),
		linear-gradient(180deg, #070a08 0%, #050705 100%);
}

.acx-wrap {
	width: min(1280px, calc(100% - 40px));
	margin-inline: auto;
}

.acx-section {
	padding: clamp(44px, 6vw, 84px) 0;
}

.acx-panel,
.acx-card {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--acx-border);
	border-radius: 24px;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 46%),
		var(--acx-surface);
	box-shadow: 0 20px 70px rgba(0, 0, 0, 0.32);
}

.acx-panel::after,
.acx-card::after {
	position: absolute;
	inset: auto 18px 0;
	height: 1px;
	content: '';
	background: linear-gradient(90deg, transparent, rgba(140, 235, 63, 0.68), transparent);
	opacity: 0.55;
	pointer-events: none;
}

.acx-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0.8rem 1.15rem;
	border-radius: 999px;
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
	transition:
		transform 180ms ease,
		box-shadow 180ms ease,
		border-color 180ms ease,
		background-color 180ms ease,
		color 180ms ease;
}

.acx-btn-primary {
	color: #061006;
	background: var(--acx-green);
	border: 1px solid var(--acx-green);
	box-shadow: 0 10px 34px rgba(101, 200, 41, 0.18);
}

.acx-btn-primary:hover {
	color: #061006;
	background: var(--acx-green-bright);
	border-color: var(--acx-green-bright);
	box-shadow: var(--acx-glow);
	transform: translateY(-1px);
}

.acx-btn-secondary {
	color: var(--acx-text);
	background: rgba(101, 200, 41, 0.04);
	border: 1px solid rgba(101, 200, 41, 0.36);
}

.acx-btn-secondary:hover {
	color: var(--acx-green-bright);
	border-color: var(--acx-green);
	box-shadow: 0 0 22px rgba(101, 200, 41, 0.16);
	transform: translateY(-1px);
}

.acx-product-hero,
.acx-archive-hero {
	position: relative;
	padding: clamp(72px, 8vw, 126px) 0;
	border-bottom: 1px solid rgba(101, 200, 41, 0.12);
	background:
		radial-gradient(circle at 80% 24%, rgba(101, 200, 41, 0.18), transparent 32rem),
		linear-gradient(135deg, rgba(101, 200, 41, 0.04), transparent 42%);
}

.acx-product-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
	gap: clamp(36px, 5vw, 72px);
	align-items: center;
}

.acx-product-hero__signal {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	margin-bottom: 18px;
	color: var(--acx-green);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.acx-signal-dot {
	width: 9px;
	height: 9px;
	border-radius: 999px;
	background: var(--acx-green);
	box-shadow: 0 0 16px rgba(101, 200, 41, 0.82);
}

.acx-product-hero__model {
	margin: 18px 0 8px;
	color: var(--acx-green);
	font-weight: 900;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.acx-product-hero__title,
.acx-archive-hero h1 {
	max-width: 860px;
	margin: 0;
	color: var(--acx-text);
	font-size: clamp(42px, 6vw, 82px);
	line-height: 0.96;
	letter-spacing: -0.055em;
}

.acx-product-hero__subtitle,
.acx-archive-hero__description {
	max-width: 720px;
	margin: 22px 0 0;
	color: var(--acx-text-muted);
	font-size: clamp(17px, 2vw, 22px);
	line-height: 1.55;
}

.acx-product-hero__tax,
.acx-product-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 26px;
}

.acx-product-hero__tax a,
.acx-product-filter a {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 0.35rem 0.72rem;
	color: var(--acx-green);
	text-decoration: none;
	border: 1px solid rgba(101, 200, 41, 0.24);
	border-radius: 999px;
	background: rgba(101, 200, 41, 0.07);
}

.acx-product-hero__image {
	display: grid;
	min-height: 440px;
	place-items: center;
	padding: clamp(28px, 4vw, 52px);
}

.acx-product-hero__image img {
	width: min(100%, 620px);
	height: auto;
	object-fit: contain;
	filter: drop-shadow(0 28px 38px rgba(0, 0, 0, 0.4));
}

.acx-product-hero__placeholder {
	display: grid;
	width: min(420px, 80%);
	aspect-ratio: 1;
	place-items: center;
	color: rgba(101, 200, 41, 0.26);
	font-size: clamp(72px, 12vw, 148px);
	font-weight: 1000;
	letter-spacing: -0.08em;
	border: 1px solid rgba(101, 200, 41, 0.18);
	border-radius: 999px;
	background: radial-gradient(circle, rgba(101, 200, 41, 0.1), transparent 65%);
}

.acx-product-metrics__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(14px, 2vw, 22px);
}

.acx-metric {
	padding: 22px;
}

.acx-metric span {
	display: block;
	margin-bottom: 8px;
	color: var(--acx-text-muted);
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
}

.acx-metric strong {
	display: block;
	color: var(--acx-text);
	font-size: clamp(20px, 2vw, 28px);
	line-height: 1.1;
}

.acx-product-content-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
	gap: clamp(24px, 4vw, 48px);
	align-items: start;
}

.acx-product-main,
.acx-product-side__panel {
	padding: clamp(24px, 4vw, 42px);
}

.acx-product-main h2,
.acx-product-main h3,
.acx-product-side__panel h2 {
	margin-top: 0;
	color: var(--acx-text);
	letter-spacing: -0.03em;
}

.acx-product-main p,
.acx-product-main li {
	color: var(--acx-text-muted);
}

.acx-product-lead {
	color: var(--acx-text) !important;
	font-size: clamp(18px, 2vw, 22px);
	line-height: 1.58;
}

.acx-feature-list {
	display: grid;
	gap: 10px;
	padding: 0;
	list-style: none;
}

.acx-feature-list li {
	position: relative;
	padding-left: 28px;
}

.acx-feature-list li::before {
	position: absolute;
	top: 0.7em;
	left: 0;
	width: 10px;
	height: 10px;
	content: '';
	border-radius: 999px;
	background: var(--acx-green);
	box-shadow: 0 0 12px rgba(101, 200, 41, 0.68);
	transform: translateY(-50%);
}

.acx-product-side {
	display: grid;
	gap: 22px;
}

.acx-product-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(18px, 2vw, 28px);
}

.acx-product-card {
	min-height: 100%;
	transition:
		transform 180ms ease,
		border-color 180ms ease,
		box-shadow 180ms ease;
}

.acx-product-card:hover {
	border-color: var(--acx-border-strong);
	box-shadow: 0 22px 76px rgba(0, 0, 0, 0.36), var(--acx-glow);
	transform: translateY(-3px);
}

.acx-product-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.acx-product-card__image {
	display: grid;
	min-height: 220px;
	place-items: center;
	padding: 24px;
	background:
		radial-gradient(circle at 50% 50%, rgba(101, 200, 41, 0.12), transparent 58%),
		rgba(255, 255, 255, 0.025);
}

.acx-product-card__image img {
	width: 100%;
	height: auto;
	object-fit: contain;
	transition: transform 180ms ease;
}

.acx-product-card:hover .acx-product-card__image img {
	transform: translateY(-4px) scale(1.02);
}

.acx-product-card__placeholder {
	display: grid;
	width: 132px;
	aspect-ratio: 1;
	place-items: center;
	color: rgba(101, 200, 41, 0.26);
	font-size: 34px;
	font-weight: 1000;
	border: 1px solid rgba(101, 200, 41, 0.18);
	border-radius: 999px;
}

.acx-product-card__content {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	padding: 22px;
}

.acx-product-card__badge,
.acx-product-card__model {
	display: inline-flex;
	width: fit-content;
	align-items: center;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.acx-product-card__badge {
	padding: 5px 9px;
	color: var(--acx-green);
	background: rgba(101, 200, 41, 0.1);
	border: 1px solid rgba(101, 200, 41, 0.24);
}

.acx-product-card__model {
	color: var(--acx-green);
}

.acx-product-card__title {
	margin: 0;
	color: var(--acx-text);
	font-size: clamp(20px, 2vw, 26px);
	line-height: 1.1;
}

.acx-product-card__subtitle {
	margin: 0;
	color: var(--acx-text-muted);
}

.acx-product-card__cta {
	margin-top: auto;
	color: var(--acx-green);
	font-weight: 800;
}

.acx-spec-table {
	width: 100%;
	overflow: hidden;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid rgba(101, 200, 41, 0.18);
	border-radius: 16px;
	background: rgba(17, 22, 17, 0.72);
}

.acx-spec-table th,
.acx-spec-table td {
	padding: 14px 16px;
	border-bottom: 1px solid rgba(101, 200, 41, 0.12);
	text-align: left;
	vertical-align: top;
}

.acx-spec-table tr:last-child th,
.acx-spec-table tr:last-child td {
	border-bottom: 0;
}

.acx-spec-table th {
	width: 38%;
	color: var(--acx-text);
	font-weight: 800;
	background: rgba(101, 200, 41, 0.06);
}

.acx-spec-table td {
	color: var(--acx-text-muted);
}

.acx-downloads {
	display: grid;
	gap: 14px;
}

.acx-downloads__button {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px;
	color: var(--acx-green);
	text-decoration: none;
	border: 1px solid rgba(101, 200, 41, 0.26);
	border-radius: 16px;
	background: rgba(101, 200, 41, 0.07);
	transition:
		transform 180ms ease,
		border-color 180ms ease,
		box-shadow 180ms ease;
}

.acx-downloads__button:hover {
	color: var(--acx-green-bright);
	border-color: rgba(101, 200, 41, 0.52);
	box-shadow: 0 0 26px rgba(101, 200, 41, 0.18);
	transform: translateY(-2px);
}

.acx-downloads__button span {
	color: var(--acx-text-muted);
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.acx-product-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 28px;
}

.acx-empty {
	padding: 18px;
	border: 1px dashed rgba(101, 200, 41, 0.28);
	border-radius: 16px;
	color: var(--acx-text-muted);
	background: rgba(101, 200, 41, 0.04);
}

.acx-pagination {
	margin-top: 42px;
}

.acx-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.acx-pagination a,
.acx-pagination span {
	display: inline-flex;
	min-width: 38px;
	min-height: 38px;
	align-items: center;
	justify-content: center;
	padding: 0.4rem 0.75rem;
	color: var(--acx-text);
	border: 1px solid rgba(101, 200, 41, 0.22);
	border-radius: 999px;
	text-decoration: none;
}

.acx-pagination .current {
	color: #061006;
	background: var(--acx-green);
	border-color: var(--acx-green);
}

@media (max-width: 999px) {
	.acx-product-hero__grid,
	.acx-product-content-grid {
		grid-template-columns: 1fr;
	}

	.acx-product-metrics__grid,
	.acx-product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.acx-product-hero__image {
		min-height: 320px;
	}
}

@media (max-width: 689px) {
	.acx-wrap {
		width: min(100% - 28px, 1280px);
	}

	.acx-product-metrics__grid,
	.acx-product-grid {
		grid-template-columns: 1fr;
	}

	.acx-product-hero__actions {
		align-items: stretch;
		flex-direction: column;
	}

	.acx-btn {
		width: 100%;
	}

	.acx-spec-table th,
	.acx-spec-table td {
		display: block;
		width: 100%;
	}

	.acx-spec-table th {
		padding-bottom: 6px;
	}

	.acx-spec-table td {
		padding-top: 6px;
	}
}
