/*
Theme Name: Robot Training Glove
Theme URI: https://robottrainingglove.com/
Author: RobotTrainingGlove.com
Author URI: https://robottrainingglove.com/
Description: A B2B WordPress theme for robot training gloves, teleoperation data gloves, sensor kits, flexible electronics, wireless receivers, glove shells, development kits, and robot integration resources.
Version: 2.0.0
Requires at least: 5.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: robot-training-glove
Tags: robotics, manufacturing, b2b, custom-logo, custom-menu, blog, responsive
*/

:root {
	--xg-primary: #07131f;
	--xg-primary-soft: #0d2133;
	--xg-azure: #2f7df6;
	--xg-azure-dark: #195fc8;
	--xg-azure-soft: #dce9ff;
	--xg-gold: #19d3ae;
	--xg-ink: #1b1c1d;
	--xg-muted: #44474c;
	--xg-subtle: #74777d;
	--xg-line: #e9ecef;
	--xg-line-strong: #c4c6cd;
	--xg-surface: #f5f8fb;
	--xg-surface-muted: #f3f4f6;
	--xg-white: #ffffff;
	--xg-success: #0f7a4b;
	--xg-font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--xg-heading-font: "Sora", var(--xg-font);
	--xg-radius: 8px;
	--xg-container: 1280px;
	--xg-shadow: 0 18px 45px rgba(4, 22, 39, .12);
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: 88px;
}

body {
	margin: 0;
	font-family: var(--xg-font);
	color: var(--xg-ink);
	background: var(--xg-surface);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: var(--xg-azure);
	text-decoration: none;
}

a:hover {
	color: var(--xg-azure-dark);
}

h1,
h2,
h3,
h4,
p {
	margin-top: 0;
}

h1,
h2,
h3,
h4 {
	color: var(--xg-primary);
	font-family: var(--xg-heading-font);
	line-height: 1.12;
	font-weight: 700;
	letter-spacing: 0;
}

h1 {
	max-width: 860px;
	font-size: clamp(2.05rem, 4vw, 3.65rem);
}

h2 {
	font-size: clamp(1.75rem, 2.75vw, 2.75rem);
}

h3 {
	font-size: clamp(1.25rem, 2vw, 1.65rem);
}

p {
	color: var(--xg-muted);
}

.xg-container {
	max-width: var(--xg-container);
	margin: 0 auto;
	padding: 0 clamp(16px, 5vw, 64px);
}

.xg-section {
	padding: clamp(64px, 8vw, 110px) 0;
}

.xg-section-sm {
	padding: clamp(44px, 6vw, 72px) 0;
}

.xg-section-muted {
	background: var(--xg-surface-muted);
	border-block: 1px solid var(--xg-line);
}

.xg-eyebrow {
	display: inline-block;
	margin-bottom: 14px;
	color: var(--xg-azure);
	font-size: .78rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0;
}

.xg-lead {
	max-width: 720px;
	font-size: clamp(1rem, 1.4vw, 1.16rem);
	color: var(--xg-muted);
}

.xg-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 44px;
	padding: 12px 22px;
	border: 1px solid transparent;
	border-radius: var(--xg-radius);
	font-weight: 800;
	font-size: .9rem;
	line-height: 1;
	cursor: pointer;
	transition: .18s ease;
}

.xg-button-primary {
	background: var(--xg-azure);
	color: #fff;
}

.xg-button-primary:hover {
	background: var(--xg-azure-dark);
	color: #fff;
	transform: translateY(-1px);
}

.xg-button-dark {
	background: var(--xg-primary);
	color: #fff;
}

.xg-button-dark:hover {
	background: var(--xg-azure);
	color: #fff;
}

.xg-button-ghost {
	background: rgba(255, 255, 255, .08);
	border-color: rgba(255, 255, 255, .22);
	color: #fff;
}

.xg-button-ghost:hover {
	background: rgba(255, 255, 255, .16);
	color: #fff;
}

.xg-site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(251, 249, 250, .94);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--xg-line);
}

.xg-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 80px;
	gap: 24px;
}

.xg-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--xg-primary);
	font-weight: 800;
	font-size: 1.25rem;
}

.xg-brand-wrap .custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.xg-brand-wrap .custom-logo {
	max-height: 54px;
	width: auto;
}

.xg-brand-mark {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: var(--xg-radius);
	background: var(--xg-primary);
	color: #fff;
	font-size: .78rem;
}

.xg-nav {
	display: flex;
	align-items: center;
	gap: 30px;
}

.xg-nav ul {
	display: flex;
	align-items: center;
	gap: 28px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.xg-nav a {
	color: var(--xg-muted);
	font-size: .88rem;
	font-weight: 700;
}

.xg-nav a:hover {
	color: var(--xg-azure);
}

.xg-nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	border: 1px solid var(--xg-line-strong);
	background: #fff;
	border-radius: var(--xg-radius);
	font-weight: 800;
}

.xg-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: min(760px, calc(100vh - 80px));
	background: var(--xg-primary);
	background-image: linear-gradient(90deg, rgba(11, 17, 32, .92), rgba(11, 17, 32, .74) 48%, rgba(11, 17, 32, .2)), var(--xg-hero-bg);
	background-position: center;
	background-size: cover;
	color: #fff;
	overflow: hidden;
}

.xg-hero::after {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 1px;
	background: rgba(255, 255, 255, .18);
	content: "";
}

.xg-hero-content {
	position: relative;
	z-index: 1;
	padding: clamp(92px, 12vw, 150px) clamp(16px, 5vw, 64px);
}

.xg-hero-content .xg-eyebrow {
	color: var(--xg-gold);
}

.xg-hero-content .xg-lead {
	max-width: 690px;
}

.xg-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, .92fr);
	align-items: center;
	gap: clamp(44px, 7vw, 92px);
	min-height: 720px;
	padding: clamp(70px, 9vw, 112px) 0;
}

.xg-hero h1,
.xg-hero p {
	color: #fff;
}

.xg-hero p {
	color: #b7c8de;
}

.xg-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 32px;
}

.xg-hero .xg-button-primary {
	background: var(--xg-gold);
	color: var(--xg-primary);
}

.xg-hero .xg-button-primary:hover {
	background: #ffc14a;
	color: var(--xg-primary);
}

.xg-hero-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 150px));
	gap: 16px;
	margin-top: 42px;
}

.xg-hero-stats div {
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, .28);
}

.xg-hero-stats strong,
.xg-hero-stats span {
	display: block;
	color: #fff;
}

.xg-hero-stats strong {
	font-family: var(--xg-heading-font);
	font-size: 1.4rem;
}

.xg-hero-stats span {
	color: #cbd6e7;
	font-size: .84rem;
	font-weight: 700;
}

.xg-hero-media {
	position: relative;
}

.xg-hero-media img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: var(--xg-radius);
	box-shadow: 0 32px 80px rgba(0, 0, 0, .35);
}

.xg-live-card {
	position: absolute;
	left: -28px;
	bottom: -28px;
	max-width: 290px;
	padding: 18px;
	border: 1px solid rgba(233, 236, 239, .65);
	border-radius: var(--xg-radius);
	background: rgba(255, 255, 255, .88);
	box-shadow: var(--xg-shadow);
}

.xg-live-card b {
	display: block;
	color: var(--xg-primary);
	font-size: .82rem;
	margin-bottom: 4px;
}

.xg-live-card p {
	color: var(--xg-muted);
	font-size: .78rem;
	margin: 0;
}

.xg-section-head {
	max-width: 760px;
	margin-bottom: 38px;
}

.xg-section-head.center {
	margin-inline: auto;
	text-align: center;
}

.xg-product-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 24px;
}

.xg-product-card {
	display: block;
	background: #fff;
	border: 1px solid var(--xg-line);
	border-radius: var(--xg-radius);
	overflow: hidden;
	color: var(--xg-ink);
	transition: .2s ease;
}

.xg-product-card:hover {
	border-color: var(--xg-azure);
	transform: translateY(-3px);
	box-shadow: var(--xg-shadow);
	color: var(--xg-ink);
}

.xg-product-card img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	background: #e9eef4;
}

.xg-product-card div {
	padding: 16px;
}

.xg-product-card span {
	display: block;
	margin-bottom: 10px;
	color: var(--xg-azure);
	font-size: .72rem;
	font-weight: 800;
	text-transform: uppercase;
}

.xg-product-card h3 {
	margin-bottom: 8px;
	font-size: 1rem;
}

.xg-product-card p {
	margin: 0;
	font-size: .86rem;
}

.xg-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(36px, 7vw, 90px);
	align-items: center;
}

.xg-proof-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	margin-top: 28px;
}

.xg-proof {
	border: 1px solid var(--xg-line);
	border-radius: var(--xg-radius);
	background: #fff;
	padding: 20px;
}

.xg-proof strong {
	display: block;
	color: var(--xg-primary);
	margin-bottom: 6px;
}

.xg-media-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.xg-media-grid img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--xg-radius);
	border: 1px solid var(--xg-line);
}

.xg-process {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	position: relative;
}

.xg-step {
	background: #fff;
	border: 1px solid var(--xg-line);
	border-radius: var(--xg-radius);
	padding: 26px;
	text-align: center;
}

.xg-step-icon {
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	margin: 0 auto 18px;
	border: 1px solid var(--xg-azure);
	border-radius: var(--xg-radius);
	color: var(--xg-primary);
	font-weight: 800;
}

.xg-cert-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
	padding-top: 34px;
	margin-top: 34px;
	border-top: 1px solid var(--xg-line);
}

.xg-cert {
	padding: 9px 14px;
	border: 1px solid var(--xg-line);
	border-radius: var(--xg-radius);
	background: #fff;
	color: var(--xg-muted);
	font-size: .82rem;
	font-weight: 700;
}

.xg-page-hero {
	padding: clamp(64px, 8vw, 108px) 0;
	background: linear-gradient(180deg, #fff 0%, var(--xg-surface-muted) 100%);
	border-bottom: 1px solid var(--xg-line);
}

.xg-page-hero-inner {
	position: relative;
	z-index: 1;
	max-width: 760px;
}

.xg-page-hero-image {
	position: relative;
	background-image: linear-gradient(90deg, rgba(11, 17, 32, .88), rgba(11, 17, 32, .66), rgba(11, 17, 32, .16)), var(--xg-page-hero-bg);
	background-position: center;
	background-size: cover;
	color: #fff;
}

.xg-page-hero-image h1,
.xg-page-hero-image p {
	color: #fff;
}

.xg-page-hero-image .xg-eyebrow {
	color: var(--xg-gold);
}

.xg-breadcrumb {
	background: #fff;
	border-bottom: 1px solid var(--xg-line);
}

.xg-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 13px 0;
	color: var(--xg-subtle);
	font-size: .86rem;
}

.xg-breadcrumb li:not(:last-child)::after {
	content: "/";
	margin-left: 8px;
	color: var(--xg-line-strong);
}

.xg-bento {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 24px;
}

.xg-bento-card {
	background: #fff;
	border: 1px solid var(--xg-line);
	border-radius: var(--xg-radius);
	padding: 28px;
}

.xg-bento-card.dark {
	background: var(--xg-primary);
	color: #fff;
}

.xg-bento-card.dark h3,
.xg-bento-card.dark p {
	color: #fff;
}

.xg-span-8 {
	grid-column: span 8;
}

.xg-span-4 {
	grid-column: span 4;
}

.xg-span-6 {
	grid-column: span 6;
}

.xg-contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(320px, .9fr);
	gap: 30px;
	align-items: start;
}

.xg-form-panel,
.xg-sidebar-panel {
	background: #fff;
	border: 1px solid var(--xg-line);
	border-radius: var(--xg-radius);
	padding: clamp(24px, 4vw, 46px);
}

.xg-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

.xg-field {
	display: grid;
	gap: 8px;
}

.xg-field.full {
	grid-column: 1 / -1;
}

.xg-field label {
	color: var(--xg-ink);
	font-weight: 800;
	font-size: .9rem;
}

.xg-field input,
.xg-field select,
.xg-field textarea {
	width: 100%;
	padding: 13px 14px;
	border: 1px solid var(--xg-line-strong);
	border-radius: 0;
	background: var(--xg-surface-muted);
	color: var(--xg-ink);
	font: inherit;
}

.xg-field input:focus,
.xg-field select:focus,
.xg-field textarea:focus {
	outline: 2px solid rgba(0, 86, 179, .18);
	border-color: var(--xg-azure);
	background: #fff;
}

.xg-hidden {
	position: absolute;
	left: -9999px;
}

.xg-alert {
	padding: 12px 14px;
	border-radius: var(--xg-radius);
	margin-bottom: 22px;
	font-weight: 700;
}

.xg-alert.ok {
	background: #e7f7ef;
	color: var(--xg-success);
}

.xg-alert.err {
	background: #fff0f0;
	color: #9f1d1d;
}

.xg-featured-post {
	display: grid;
	grid-template-columns: 1.15fr .85fr;
	gap: 0;
	background: #fff;
	border: 1px solid var(--xg-line);
	border-radius: var(--xg-radius);
	overflow: hidden;
	margin-bottom: 44px;
}

.xg-featured-post img,
.xg-post-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: #e7edf4;
}

.xg-featured-body {
	padding: clamp(28px, 5vw, 56px);
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.xg-chip {
	display: inline-flex;
	align-self: flex-start;
	padding: 7px 10px;
	border-radius: var(--xg-radius);
	background: var(--xg-primary);
	color: #fff;
	font-size: .72rem;
	font-weight: 800;
	text-transform: uppercase;
}

.xg-filter-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 18px;
	padding-bottom: 28px;
	margin-bottom: 34px;
	border-bottom: 1px solid var(--xg-line);
}

.xg-filter-group {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.xg-filter-button {
	padding: 10px 16px;
	border: 1px solid var(--xg-line);
	border-radius: var(--xg-radius);
	background: var(--xg-surface-muted);
	color: var(--xg-muted);
	font-weight: 800;
}

.xg-filter-button.is-active {
	background: var(--xg-primary);
	color: #fff;
}

.xg-post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.xg-post-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--xg-line);
	border-radius: var(--xg-radius);
	overflow: hidden;
	color: var(--xg-ink);
	transition: .2s ease;
}

.xg-post-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--xg-shadow);
	color: var(--xg-ink);
}

.xg-post-card .xg-post-image {
	height: 230px;
	background: linear-gradient(135deg, #dfeeff, #f8f9fa);
}

.xg-post-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 24px;
}

.xg-post-meta {
	color: var(--xg-subtle);
	font-size: .82rem;
	font-weight: 700;
}

.xg-post-card h3 {
	margin: 12px 0;
}

.xg-post-card p {
	margin-bottom: 22px;
}

.xg-post-card .xg-read {
	margin-top: auto;
	font-weight: 800;
}

.xg-pagination {
	margin-top: 42px;
	text-align: center;
}

.xg-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	margin: 4px;
	padding: 9px 13px;
	border: 1px solid var(--xg-line);
	border-radius: var(--xg-radius);
	background: #fff;
	color: var(--xg-muted);
	font-weight: 800;
}

.xg-pagination .current {
	background: var(--xg-primary);
	color: #fff;
}

.xg-article-layout {
	display: grid;
	grid-template-columns: minmax(0, 820px) minmax(260px, 320px);
	gap: clamp(32px, 6vw, 80px);
	align-items: start;
}

.xg-prose {
	background: #fff;
	border: 1px solid var(--xg-line);
	border-radius: var(--xg-radius);
	padding: clamp(26px, 4vw, 54px);
}

.xg-prose > img:first-child {
	margin-top: 0;
}

.xg-prose p,
.xg-prose li {
	color: var(--xg-muted);
}

.xg-prose img {
	border-radius: var(--xg-radius);
	margin: 24px 0;
}

.xg-prose ul,
.xg-prose ol {
	padding-left: 1.3rem;
}

.xg-article-aside {
	position: sticky;
	top: 104px;
	display: grid;
	gap: 18px;
}

.xg-cta {
	background: var(--xg-primary);
	color: #fff;
	text-align: center;
	border-radius: var(--xg-radius);
	padding: clamp(34px, 5vw, 64px);
}

.xg-cta h2,
.xg-cta p {
	color: #fff;
}

.xg-feature-image img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border: 1px solid var(--xg-line);
	border-radius: var(--xg-radius);
	box-shadow: var(--xg-shadow);
}

.xg-configurator-page .gbc-app {
	margin-inline: auto;
}

.xg-configurator-extra {
	margin-top: 36px;
}

.xg-footer {
	background: #fff;
	border-top: 1px solid var(--xg-line);
}

.xg-footer-main {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr;
	gap: 44px;
	padding: 64px 0;
}

.xg-footer h3,
.xg-footer h4 {
	margin-bottom: 16px;
	font-size: 1rem;
}

.xg-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.xg-footer a,
.xg-footer p {
	color: var(--xg-muted);
}

.xg-footer-bottom {
	border-top: 1px solid var(--xg-line);
	padding: 24px 0;
	text-align: center;
	color: var(--xg-subtle);
	font-size: .86rem;
}

@media (max-width: 1100px) {
	.xg-product-grid,
	.xg-post-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.xg-hero-grid,
	.xg-split,
	.xg-contact-grid,
	.xg-article-layout {
		grid-template-columns: 1fr;
	}

	.xg-hero-grid {
		min-height: 0;
	}

	.xg-hero {
		min-height: 620px;
	}

	.xg-article-aside {
		position: static;
	}
}

@media (max-width: 780px) {
	.xg-nav-toggle {
		display: block;
	}

	.xg-nav {
		position: absolute;
		left: 0;
		right: 0;
		top: 80px;
		display: none;
		flex-direction: column;
		align-items: stretch;
		padding: 18px clamp(16px, 5vw, 64px) 24px;
		background: #fff;
		border-bottom: 1px solid var(--xg-line);
	}

	.xg-nav.is-open {
		display: flex;
	}

	.xg-nav ul {
		display: grid;
		gap: 14px;
	}

	.xg-header-cta {
		display: none;
	}

	.xg-product-grid,
	.xg-post-grid,
	.xg-proof-grid,
	.xg-process,
	.xg-form-grid,
	.xg-footer-main {
		grid-template-columns: 1fr;
	}

	.xg-featured-post {
		grid-template-columns: 1fr;
	}

	.xg-bento {
		grid-template-columns: 1fr;
	}

	.xg-span-8,
	.xg-span-6,
	.xg-span-4 {
		grid-column: auto;
	}

	.xg-live-card {
		position: static;
		margin-top: 16px;
	}

	.xg-hero {
		min-height: 600px;
		background-image: linear-gradient(90deg, rgba(11, 17, 32, .94), rgba(11, 17, 32, .7)), var(--xg-hero-bg);
	}

	.xg-hero-stats {
		grid-template-columns: 1fr;
		max-width: 320px;
	}

	.xg-page-hero-image {
		background-image: linear-gradient(90deg, rgba(11, 17, 32, .94), rgba(11, 17, 32, .72)), var(--xg-page-hero-bg);
	}
}

/* ============================================================
 * v1.2.0 additions: gift module, feature card, 1+4 layout,
 * section-head row, news chip variant, empty-state note,
 * dark ghost button.
 * ============================================================ */

.xg-section-head-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	max-width: none;
	margin-bottom: 38px;
}
.xg-section-head-row > div { max-width: 760px; }
.xg-section-link {
	display: inline-flex;
	align-items: center;
	color: var(--xg-azure);
	font-weight: 800;
	font-size: .88rem;
	white-space: nowrap;
	padding-bottom: 4px;
	border-bottom: 1px solid transparent;
	transition: border-color .15s;
}
.xg-section-link:hover { border-bottom-color: var(--xg-azure); }

/* ---------- Gift programs module ---------- */
.xg-gift-section { padding-block: clamp(64px, 8vw, 110px); }
.xg-gift-card {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
	gap: 0;
	align-items: stretch;
	background: linear-gradient(135deg, #0b1120 0%, #1a2543 65%, #2a3866 100%);
	border-radius: calc(var(--xg-radius) * 2);
	overflow: hidden;
	color: #fff;
	box-shadow: var(--xg-shadow);
	position: relative;
}
.xg-gift-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 12% 18%, rgba(249, 168, 37, .22), transparent 38%),
		radial-gradient(circle at 92% 88%, rgba(31, 111, 235, .25), transparent 42%);
	pointer-events: none;
}
.xg-gift-media {
	position: relative;
	min-height: 380px;
	overflow: hidden;
}
.xg-gift-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}
.xg-gift-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(105deg, transparent 55%, rgba(11, 17, 32, .55) 100%);
}
.xg-gift-body {
	position: relative;
	padding: clamp(36px, 5vw, 64px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 16px;
}
.xg-gift-body .xg-eyebrow { color: var(--xg-gold); }
.xg-gift-body h2,
.xg-gift-body p { color: #fff; }
.xg-gift-body .xg-lead { color: #cdd6e4; max-width: none; }
.xg-gift-list {
	list-style: none;
	margin: 4px 0 8px;
	padding: 0;
	display: grid;
	gap: 10px;
}
.xg-gift-list li {
	position: relative;
	padding-left: 26px;
	color: #e1e6f0;
	font-size: .95rem;
	line-height: 1.5;
}
.xg-gift-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .55em;
	width: 14px;
	height: 2px;
	background: var(--xg-gold);
}
.xg-gift-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 8px;
}
.xg-button-ghost-dark {
	background: rgba(255, 255, 255, .06);
	border-color: rgba(255, 255, 255, .28);
	color: #fff;
}
.xg-button-ghost-dark:hover {
	background: rgba(255, 255, 255, .12);
	color: #fff;
}

/* ---------- Feature card (row 1 of insights/news) ---------- */
.xg-feature-card {
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: 0;
	background: #fff;
	border: 1px solid var(--xg-line);
	border-radius: var(--xg-radius);
	overflow: hidden;
	margin-bottom: 28px;
	color: var(--xg-ink);
	transition: .2s ease;
}
.xg-feature-card:hover {
	border-color: var(--xg-azure);
	transform: translateY(-2px);
	box-shadow: var(--xg-shadow);
	color: var(--xg-ink);
}
.xg-feature-card-image {
	position: relative;
	min-height: 320px;
	background: linear-gradient(135deg, #dfeeff, #f8f9fa);
	overflow: hidden;
}
.xg-feature-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.xg-feature-card-body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 12px;
	padding: clamp(28px, 4vw, 52px);
}
.xg-feature-card-body .xg-post-meta { order: 3; }
.xg-feature-card-body .xg-read { order: 4; margin-top: 8px; color: var(--xg-azure); }

.xg-chip-accent {
	background: var(--xg-gold);
	color: var(--xg-primary);
}

/* ---------- 1 + 4 layout ---------- */
.xg-post-grid-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}
.xg-post-grid-4 .xg-post-card .xg-post-image {
	height: 180px;
}
.xg-post-grid-4 .xg-post-card h3 {
	font-size: .98rem;
	line-height: 1.3;
}
.xg-post-grid-4 .xg-post-card p {
	font-size: .82rem;
	margin-bottom: 14px;
}

.xg-empty-note {
	padding: 32px;
	border: 1px dashed var(--xg-line-strong);
	border-radius: var(--xg-radius);
	text-align: center;
	color: var(--xg-subtle);
	background: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.xg-gift-card { grid-template-columns: 1fr; }
	.xg-gift-media { min-height: 280px; }
	.xg-feature-card { grid-template-columns: 1fr; }
	.xg-feature-card-image { min-height: 240px; }
	.xg-post-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 780px) {
	.xg-post-grid-4 { grid-template-columns: 1fr; }
	.xg-section-head-row { align-items: flex-start; }
}

/* ==========================================================
 * Robot Training Glove additions
 * ========================================================== */

.xg-site-header {
	background: rgba(255, 255, 255, .96);
}

.xg-header-inner {
	gap: 18px;
}

.xg-brand-mark {
	background: linear-gradient(135deg, var(--xg-azure), var(--xg-gold));
	color: #061522;
}

.xg-brand span:last-child {
	white-space: nowrap;
}

.xg-nav {
	min-width: 0;
}

.xg-nav ul.xg-menu {
	gap: 18px;
}

.xg-nav .xg-menu > li {
	position: relative;
}

.xg-nav .xg-menu > li > a {
	display: flex;
	align-items: center;
	min-height: 80px;
	white-space: nowrap;
}

.xg-nav .menu-item-has-children > a::after {
	content: "";
	width: 6px;
	height: 6px;
	margin-left: 7px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
}

.xg-nav .sub-menu {
	position: absolute;
	top: calc(100% - 1px);
	left: -18px;
	display: grid;
	min-width: 270px;
	max-height: 68vh;
	overflow-y: auto;
	gap: 0;
	padding: 10px;
	border: 1px solid var(--xg-line);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 24px 60px rgba(5, 24, 39, .16);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: .18s ease;
}

.xg-nav .xg-menu > li:first-child + li .sub-menu {
	grid-template-columns: repeat(2, minmax(220px, 1fr));
	min-width: 520px;
}

.xg-nav .sub-menu li {
	width: 100%;
}

.xg-nav .sub-menu a {
	display: block;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: .82rem;
	line-height: 1.35;
}

.xg-nav .sub-menu a:hover {
	background: var(--xg-surface);
}

.xg-nav .menu-item-has-children:hover > .sub-menu,
.xg-nav .menu-item-has-children:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.rtg-hero {
	min-height: 710px;
	background-position: center;
}

.rtg-hero .xg-hero-content {
	max-width: 780px;
}

.rtg-hero .xg-lead {
	max-width: 720px;
}

.rtg-hero .xg-hero-stats {
	max-width: 760px;
}

.rtg-category-grid,
.rtg-overview-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
}

.rtg-category-card,
.rtg-overview-card {
	position: relative;
	display: flex;
	min-height: 250px;
	flex-direction: column;
	padding: 26px;
	border: 1px solid var(--xg-line);
	border-radius: 14px;
	background: #fff;
	color: var(--xg-ink);
	overflow: hidden;
	transition: .2s ease;
}

.rtg-category-card::before,
.rtg-overview-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 5px;
	height: 100%;
	background: linear-gradient(180deg, var(--xg-azure), var(--xg-gold));
}

.rtg-category-card:hover,
.rtg-overview-card:hover {
	border-color: rgba(47, 125, 246, .55);
	box-shadow: var(--xg-shadow);
	transform: translateY(-4px);
	color: var(--xg-ink);
}

.rtg-category-number,
.rtg-card-index {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	margin-bottom: 24px;
	border-radius: 10px;
	background: var(--xg-azure-soft);
	color: var(--xg-azure-dark);
	font-weight: 800;
	font-size: .78rem;
}

.rtg-category-card h3,
.rtg-overview-card h3 {
	margin-bottom: 10px;
	font-size: 1.12rem;
}

.rtg-category-card p,
.rtg-overview-card p {
	flex: 1;
	font-size: .88rem;
}

.rtg-category-card strong,
.rtg-overview-card strong {
	color: var(--xg-azure-dark);
	font-size: .82rem;
}

.rtg-system-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin-top: 30px;
}

.rtg-system-card {
	padding: 24px;
	border: 1px solid var(--xg-line);
	border-radius: 12px;
	background: #fff;
}

.rtg-system-card span {
	display: block;
	margin-bottom: 10px;
	color: var(--xg-azure);
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.rtg-system-card h3 {
	font-size: 1.08rem;
}

.rtg-system-card p {
	margin-bottom: 0;
	font-size: .88rem;
}

.rtg-schematic-panel {
	position: relative;
	min-height: 520px;
	border-radius: 20px;
	background-image: linear-gradient(135deg, rgba(7, 19, 31, .02), rgba(47, 125, 246, .12)), url("assets/images/robot-training-glove-hero.png");
	background-size: cover;
	background-position: 65% center;
	box-shadow: var(--xg-shadow);
	overflow: hidden;
}

.rtg-schematic-panel::after {
	content: "Sensor Layer  •  Controller Layer  •  Wireless Layer  •  SDK Layer";
	position: absolute;
	left: 24px;
	right: 24px;
	bottom: 24px;
	padding: 16px 18px;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 10px;
	background: rgba(5, 18, 29, .78);
	backdrop-filter: blur(10px);
	color: #dceafb;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .04em;
}

.rtg-feature-kit {
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	gap: 0;
	border-radius: 18px;
	background: var(--xg-primary);
	overflow: hidden;
	box-shadow: var(--xg-shadow);
}

.rtg-feature-kit-body {
	padding: clamp(34px, 6vw, 72px);
}

.rtg-feature-kit h2,
.rtg-feature-kit h3 {
	color: #fff;
}

.rtg-feature-kit p,
.rtg-feature-kit li {
	color: #b7c9d9;
}

.rtg-feature-kit-media {
	min-height: 480px;
	background: url("assets/images/robot-training-glove-hero.png") center / cover no-repeat;
}

.rtg-feature-kit-list {
	display: grid;
	gap: 10px;
	padding-left: 20px;
}

.rtg-product-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.rtg-product-card {
	display: flex;
	min-height: 300px;
	flex-direction: column;
	padding: 26px;
	border: 1px solid var(--xg-line);
	border-radius: 14px;
	background: #fff;
	color: var(--xg-ink);
	transition: .2s ease;
}

.rtg-product-card:hover {
	border-color: var(--xg-azure);
	box-shadow: var(--xg-shadow);
	transform: translateY(-3px);
	color: var(--xg-ink);
}

.rtg-product-visual {
	display: grid;
	place-items: center;
	min-height: 112px;
	margin: -26px -26px 24px;
	background:
		linear-gradient(135deg, rgba(47, 125, 246, .16), rgba(25, 211, 174, .10)),
		repeating-linear-gradient(90deg, transparent 0 31px, rgba(7, 19, 31, .04) 31px 32px),
		repeating-linear-gradient(0deg, transparent 0 31px, rgba(7, 19, 31, .04) 31px 32px);
	color: var(--xg-primary);
	font-family: var(--xg-heading-font);
	font-size: 2rem;
	font-weight: 800;
}

.rtg-product-card .xg-chip {
	align-self: flex-start;
}

.rtg-product-card h2,
.rtg-product-card h3 {
	font-size: 1.15rem;
}

.rtg-product-card p {
	flex: 1;
	font-size: .9rem;
}

.rtg-product-card .rtg-card-link {
	color: var(--xg-azure-dark);
	font-size: .84rem;
	font-weight: 800;
}

.rtg-archive-intro {
	max-width: 820px;
}

.rtg-term-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 26px 0 38px;
}

.rtg-term-nav a {
	padding: 9px 13px;
	border: 1px solid var(--xg-line);
	border-radius: 999px;
	background: #fff;
	color: var(--xg-muted);
	font-size: .78rem;
	font-weight: 700;
}

.rtg-term-nav a:hover,
.rtg-term-nav a.is-active {
	border-color: var(--xg-azure);
	background: var(--xg-azure-soft);
	color: var(--xg-azure-dark);
}

.rtg-product-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: clamp(32px, 6vw, 76px);
	align-items: start;
}

.rtg-product-summary {
	position: sticky;
	top: 110px;
}

.rtg-spec-list {
	display: grid;
	gap: 0;
	margin: 0 0 24px;
	border: 1px solid var(--xg-line);
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
}

.rtg-spec-row {
	display: grid;
	grid-template-columns: 135px 1fr;
	gap: 16px;
	padding: 14px 16px;
	border-bottom: 1px solid var(--xg-line);
}

.rtg-spec-row:last-child {
	border-bottom: 0;
}

.rtg-spec-row dt {
	color: var(--xg-subtle);
	font-size: .76rem;
	font-weight: 800;
	text-transform: uppercase;
}

.rtg-spec-row dd {
	margin: 0;
	color: var(--xg-ink);
	font-size: .88rem;
}

.rtg-note {
	padding: 18px;
	border-left: 4px solid var(--xg-gold);
	border-radius: 8px;
	background: rgba(25, 211, 174, .08);
	color: var(--xg-muted);
	font-size: .88rem;
}

.rtg-empty-state {
	padding: 42px;
	border: 1px dashed var(--xg-line-strong);
	border-radius: 14px;
	background: #fff;
	text-align: center;
}

@media (max-width: 1180px) {
	.xg-nav ul.xg-menu {
		gap: 12px;
	}

	.xg-nav a {
		font-size: .8rem;
	}

	.xg-header-cta {
		padding-inline: 14px;
		font-size: .78rem;
	}

	.rtg-category-grid,
	.rtg-overview-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.rtg-category-grid,
	.rtg-overview-grid,
	.rtg-product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.rtg-feature-kit,
	.rtg-product-layout {
		grid-template-columns: 1fr;
	}

	.rtg-product-summary {
		position: static;
	}
}

@media (max-width: 780px) {
	.xg-nav .xg-menu > li > a {
		min-height: 0;
	}

	.xg-nav .menu-item-has-children > a::after {
		display: none;
	}

	.xg-nav .sub-menu,
	.xg-nav .xg-menu > li:first-child + li .sub-menu {
		position: static;
		display: grid;
		grid-template-columns: 1fr;
		min-width: 0;
		max-height: none;
		margin: 8px 0 0 12px;
		padding: 4px 0 4px 12px;
		border: 0;
		border-left: 2px solid var(--xg-line);
		border-radius: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.rtg-category-grid,
	.rtg-overview-grid,
	.rtg-system-grid,
	.rtg-product-grid {
		grid-template-columns: 1fr;
	}

	.rtg-category-card,
	.rtg-overview-card {
		min-height: 0;
	}

	.rtg-hero {
		min-height: 650px;
		background-position: 64% center;
	}

	.rtg-feature-kit-media {
		min-height: 320px;
	}

	.rtg-spec-row {
		grid-template-columns: 1fr;
		gap: 4px;
	}
}
