/**
 * Computex Page Layouts v2.1 — premium cards, icons, hover.
 * Content inject only — does not style theme header/nav/cart.
 */

body.cxpl-page .cxpl-main {
	--cx-navy: #0b1f3a;
	--cx-ink: #101828;
	--cx-muted: #5b6b7c;
	--cx-paper: #f4f6f8;
	--cx-line: rgba(16, 24, 40, 0.08);
	--cx-cyan: #2bb8ff;
	--cx-max: 72rem;
	--cx-radius: 16px;
	--cx-shadow: 0 4px 6px rgba(7, 17, 31, 0.02), 0 18px 40px rgba(7, 17, 31, 0.07);
	--cx-shadow-lg: 0 12px 32px rgba(7, 17, 31, 0.12);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--cx-ink);
	font-size: 1.0625rem;
	line-height: 1.7;
	background: #fff;
	width: 100%;
	max-width: none;
	margin: 0;
	-webkit-font-smoothing: antialiased;
}
body.cxpl-page .cxpl-main * { box-sizing: border-box; }

body.cxpl-page .entry-content,
body.cxpl-page .wp-block-post-content {
	max-width: none !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.cxpl-wrap { width: min(100% - 2.5rem, var(--cx-max)); margin-inline: auto; }
.cxpl-narrow { width: min(100% - 2.5rem, 42rem); margin-inline: auto; }

/* —— Hero —— */
.cxpl-hero {
	position: relative;
	min-height: clamp(16rem, 42vh, 24rem);
	display: flex;
	align-items: flex-end;
	color: #fff;
	overflow: hidden;
	width: 100%;
}
.cxpl-hero--solid { min-height: clamp(14rem, 34vh, 18rem); }
.cxpl-hero__media { position: absolute; inset: 0; }
.cxpl-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cxpl-hero__scrim {
	position: absolute; inset: 0;
	background: linear-gradient(105deg, rgba(11,31,58,.94) 0%, rgba(11,31,58,.72) 48%, rgba(11,31,58,.4) 100%);
}
.cxpl-hero--solid .cxpl-hero__scrim {
	background:
		radial-gradient(ellipse 55% 70% at 12% 30%, rgba(43, 184, 255, 0.18), transparent 65%),
		linear-gradient(145deg, #0b1f3a 0%, #123056 55%, #0a1830 100%);
}
.cxpl-hero__inner {
	position: relative; z-index: 1;
	width: min(100% - 2.5rem, var(--cx-max));
	margin-inline: auto;
	padding: clamp(2.75rem, 7vw, 4.25rem) 0 clamp(2rem, 5vw, 2.75rem);
	max-width: 38rem;
}
.cxpl-eyebrow {
	margin: 0 0 0.75rem;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--cx-cyan);
}
.cxpl-title {
	margin: 0 0 0.75rem;
	font-size: clamp(2.15rem, 5vw, 3.35rem);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.025em;
	color: #fff;
}
.cxpl-lead { margin: 0; color: rgba(255,255,255,.78); font-size: 1.1rem; line-height: 1.55; }

/* —— Sections —— */
.cxpl-section { padding: clamp(2.5rem, 5.5vw, 4rem) 0; }
.cxpl-section--muted { background: var(--cx-paper); }
.cxpl-label {
	margin: 0 0 0.6rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--cx-muted);
}
.cxpl-section h2 {
	margin: 0 0 1rem;
	font-size: clamp(1.6rem, 2.8vw, 2.15rem);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--cx-navy);
}
.cxpl-section p { margin: 0 0 1rem; color: var(--cx-muted); }
.cxpl-note {
	padding: 1rem 1.2rem;
	border-radius: 12px;
	background: rgba(43,184,255,.08);
	border: 1px solid rgba(43,184,255,.22);
	color: var(--cx-ink);
	margin-bottom: 1.5rem;
}

/* —— Stats —— */
.cxpl-stats {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
}
@media (min-width: 800px) {
	.cxpl-stats { grid-template-columns: repeat(4, 1fr); gap: 1.15rem; }
}
.cxpl-stat {
	text-align: center;
	padding: 1.35rem 0.85rem;
	background: #fff;
	border-radius: var(--cx-radius);
	border: 1px solid var(--cx-line);
	box-shadow: var(--cx-shadow);
	transition: transform .2s ease, box-shadow .2s ease;
}
.cxpl-stat:hover {
	transform: translateY(-3px);
	box-shadow: var(--cx-shadow-lg);
}
.cxpl-stat strong {
	display: block;
	font-size: clamp(1.7rem, 3vw, 2.2rem);
	font-weight: 700;
	color: var(--cx-navy);
	line-height: 1.1;
}
.cxpl-stat span { font-size: .88rem; color: var(--cx-muted); }

/* —— Cards + icons + hover —— */
.cxpl-grid { display: grid; gap: 1.2rem; }
.cxpl-grid--2, .cxpl-grid--3 { grid-template-columns: 1fr; }
@media (min-width: 700px) {
	.cxpl-grid--2 { grid-template-columns: 1fr 1fr; }
	.cxpl-grid--3 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
	.cxpl-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.cxpl-card {
	background: #fff;
	border: 1px solid var(--cx-line);
	border-radius: var(--cx-radius);
	padding: 1.45rem 1.4rem 1.5rem;
	box-shadow: var(--cx-shadow);
	transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
	height: 100%;
}
.cxpl-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--cx-shadow-lg);
	border-color: rgba(43, 184, 255, 0.28);
}

/* Icon tile */
.cxpl-card__icon {
	display: grid;
	place-items: center;
	width: 2.85rem;
	height: 2.85rem;
	margin: 0 0 1rem;
	border-radius: 12px;
	background: linear-gradient(145deg, rgba(7, 17, 31, 0.05), rgba(43, 184, 255, 0.12));
	border: 1px solid var(--cx-line);
	color: var(--cx-navy);
	transition: background .22s ease, color .22s ease, border-color .22s ease, transform .22s ease;
}
.cxpl-card__icon .cxpl-icon-svg {
	width: 1.35rem;
	height: 1.35rem;
	display: block;
}
.cxpl-card:hover .cxpl-card__icon {
	background: linear-gradient(145deg, rgba(7, 17, 31, 0.92), #13253d);
	color: var(--cx-cyan);
	border-color: transparent;
	transform: scale(1.04);
}

.cxpl-card__num {
	display: block;
	margin-bottom: 0.45rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--cx-cyan);
}
.cxpl-card h3 {
	margin: 0 0 0.5rem;
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--cx-navy);
	line-height: 1.3;
}
.cxpl-card p {
	margin: 0;
	font-size: 0.97rem;
	color: var(--cx-muted);
	line-height: 1.6;
}

.cxpl-card--navy {
	background: linear-gradient(145deg, #0b1f3a 0%, #123056 100%);
	border: 0;
	color: #fff;
	box-shadow: var(--cx-shadow-lg);
}
.cxpl-card--navy:hover {
	border-color: transparent;
	transform: translateY(-4px);
}
.cxpl-card--navy h2,
.cxpl-card--navy h3,
.cxpl-card--navy .cxpl-label { color: #fff; }
.cxpl-card--navy p { color: rgba(255,255,255,.75); }
.cxpl-card--navy .cxpl-label { color: var(--cx-cyan); }

.cxpl-steps { margin: 0; padding-left: 1.2rem; color: var(--cx-muted); }
.cxpl-steps li { margin-bottom: .65rem; }
.cxpl-contact-list { list-style: none; margin: 0; padding: 0; }
.cxpl-contact-list li { margin-bottom: 1.15rem; color: var(--cx-muted); }
.cxpl-contact-list a { color: var(--cx-navy); font-weight: 600; text-decoration: none; }
.cxpl-contact-list a:hover { color: #123056; text-decoration: underline; }

/* —— CTA —— */
.cxpl-cta {
	position: relative;
	background:
		radial-gradient(ellipse 55% 70% at 12% 30%, rgba(43, 184, 255, 0.16), transparent 65%),
		linear-gradient(145deg, #0b1f3a 0%, #123056 55%, #0a1830 100%);
	color: #fff;
	padding: clamp(2.85rem, 6vw, 4.25rem) 0;
	text-align: center;
	width: 100%;
	overflow: hidden;
}
.cxpl-cta__inner { position: relative; z-index: 1; max-width: 34rem; margin-inline: auto; }
.cxpl-cta h2 {
	margin: 0 0 .7rem;
	font-size: clamp(1.75rem, 3.2vw, 2.4rem);
	font-weight: 600;
	color: #fff;
	letter-spacing: -0.02em;
}
.cxpl-cta p { margin: 0 0 1.35rem; color: rgba(255,255,255,.72); }
.cxpl-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	justify-content: center;
}
.cxpl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: .9rem 1.55rem;
	border-radius: 999px;
	background: #fff;
	color: var(--cx-navy) !important;
	font-weight: 600;
	font-size: .95rem;
	text-decoration: none !important;
	border: 1px solid #fff;
	box-shadow: 0 10px 28px rgba(0,0,0,.2);
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.cxpl-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 34px rgba(0,0,0,.28);
	background: #f0f7ff !important;
}
.cxpl-btn--ghost {
	background: transparent;
	color: #fff !important;
	border-color: rgba(255,255,255,.35);
	box-shadow: none;
}
.cxpl-btn--ghost:hover {
	background: rgba(255,255,255,.1) !important;
	color: #fff !important;
	border-color: rgba(255,255,255,.55);
	box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
	.cxpl-card,
	.cxpl-card__icon,
	.cxpl-stat,
	.cxpl-btn { transition: none !important; }
	.cxpl-card:hover,
	.cxpl-stat:hover,
	.cxpl-btn:hover { transform: none; }
}
