/* ==========================================================================
   MAIN COMPONENT STYLES
   TagX Theme
   ========================================================================== */

/* ==========================================================================
   LENIS SMOOTH SCROLL (Native Mode)
   ========================================================================== */

html.lenis,
html.lenis body {
	height: auto;
}

.lenis.lenis-smooth {
	scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
	overscroll-behavior: contain;
}

.lenis.lenis-stopped {
	overflow: hidden;
}

.lenis.lenis-smooth iframe {
	pointer-events: none;
}

/* ==========================================================================
   UTILITY: GRADIENT BORDER
   ========================================================================== */

.gradient-border {
	position: relative;
	background: linear-gradient(
		180deg,
		var(--color-card) 0%,
		var(--color-card-100) 100%
	);
	border: none;
	border-radius: 20px;
	overflow: hidden;
	isolation: isolate;
}

.gradient-border::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1px;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, #000000 100%),
		linear-gradient(
			270deg,
			rgba(255, 255, 255, 0.05) 0%,
			rgba(255, 255, 255, 0.3) 50%,
			rgba(255, 255, 255, 0.05) 100%
		);
	-webkit-mask:
		linear-gradient(#fff 0 0) content-box,
		linear-gradient(#fff 0 0);
	mask:
		linear-gradient(#fff 0 0) content-box,
		linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
	transform: translate3d(0, 0, 0);
	z-index: 1;
}

.gradient-border::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1px;
	background: linear-gradient(
		270deg,
		rgba(255, 255, 255, 0.1) 0%,
		rgba(255, 255, 255, 0.6) 50%,
		rgba(255, 255, 255, 0.1) 100%
	);
	-webkit-mask:
		linear-gradient(#fff 0 0) content-box,
		linear-gradient(#fff 0 0);
	mask:
		linear-gradient(#fff 0 0) content-box,
		linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
	transform: translate3d(0, 0, 0);
	z-index: 2;
	opacity: 0;
	transition: opacity var(--transition-base);
}

@media (hover: hover) {
	.gradient-border:hover::after {
		opacity: 1;
	}
}

[data-theme="light"] .gradient-border::before {
	background:
		linear-gradient(180deg, rgba(121, 198, 192, 0.12) 0%, #ffffff 100%),
		linear-gradient(
			270deg,
			rgba(121, 198, 192, 0.08) 0%,
			rgba(121, 198, 192, 0.4) 50%,
			rgba(121, 198, 192, 0.08) 100%
		);
}

[data-theme="light"] .gradient-border::after {
	background: linear-gradient(
		270deg,
		rgba(121, 198, 192, 0.2) 0%,
		rgba(121, 198, 192, 0.8) 50%,
		rgba(121, 198, 192, 0.2) 100%
	);
}

@media (hover: hover) {
	[data-theme="light"] .gradient-border:hover::before {
		background:
			linear-gradient(180deg, rgba(121, 198, 192, 0.15) 0%, #ffffff 100%),
			linear-gradient(
				270deg,
				rgba(121, 198, 192, 0.1) 0%,
				var(--color-secondary) 50%,
				rgba(121, 198, 192, 0.1) 100%
			);
	}
}

/* ==========================================================================
   PILL TAB NAV — shared tab navigation utility
   Used by: Industries tabs, Knowledge FAQ tabs
   ========================================================================== */

/* Scrollable horizontal container */
.pill-tab-nav {
	display: flex;
	gap: var(--space-xs);
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.pill-tab-nav::-webkit-scrollbar {
	display: none;
}

/* Tab button base — requires .gradient-border on same element */
.pill-tab {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	border: none;
	cursor: pointer;
	font-family: var(--font-heading);
	font-weight: var(--font-weight-semibold);
	line-height: var(--line-height-tight);
	letter-spacing: -0.02em;
	color: var(--color-fg);
	transition:
		background-color var(--transition-base),
		color var(--transition-base);
}

/* Active state — solid teal, hide gradient-border pseudo-elements */
.pill-tab--active {
	background: var(--color-secondary);
	color: var(--color-black);
}

.pill-tab--active::before,
.pill-tab--active::after {
	display: none;
}

[data-theme="light"] .pill-tab--active {
	color: var(--color-white);
}

.pill-tab:focus-visible {
	outline: 2px solid var(--color-secondary);
	outline-offset: 2px;
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */

.header {
	position: sticky;
	top: 0;
	z-index: var(--z-header);
	padding: 16px;
	background-color: var(--color-bg);
	border-bottom: 1px solid var(--color-fg);
	visibility: hidden;
	will-change: transform;
}

[data-theme="light"] .header {
	background-color: var(--color-bg);
	border-bottom-color: var(--color-fg);
}

.header.is-menu-open {
	position: fixed;
	left: 0;
	right: 0;
	border-bottom-color: transparent;
}

.header__container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: var(--container-max);
	margin: 0 auto;
}

.header__logo {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.header__logo-svg {
	width: 140px;
	height: auto;
	color: var(--color-logo);
}

.header__logo .custom-logo {
	max-height: 32px;
	width: auto;
}

.header__nav {
	display: none;
}

.header__actions {
	display: flex;
	align-items: center;
	gap: 16px;
}

.header__cta {
	display: none;
}

.header__icons {
	display: none;
	align-items: center;
	gap: 12px;
}

.header__icon-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	background: transparent;
	border: none;
	cursor: pointer;
	color: var(--color-fg);
	transition: color var(--transition-fast);
}

.header__icon-btn svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.lang-selector {
	display: none;
}

.theme-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	background: transparent;
	border: none;
	cursor: pointer;
	color: var(--color-fg);
	transition: color var(--transition-fast);
}

.theme-toggle__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
}

.theme-toggle__icon svg {
	width: 24px;
	height: 24px;
	stroke: currentColor;
}

.theme-toggle__icon--light {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.lang-switcher {
	position: relative;
}

.lang-switcher svg {
	stroke: currentColor;
	fill: none;
}

.lang-switcher__dropdown {
	position: absolute;
	top: calc(100% + var(--space-xs));
	right: 0;
	min-width: 120px;
	width: max-content;
	padding: var(--space-xs);
	background-color: var(--color-card-100);
	border: 1px solid var(--color-card-border);
	border-radius: var(--radius-md);
	list-style: none;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition:
		opacity var(--transition-fast),
		visibility var(--transition-fast),
		transform var(--transition-fast);
	z-index: var(--z-dropdown);
}

.lang-switcher:has([aria-expanded="true"]) .lang-switcher__dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.lang-switcher__item {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: var(--space-xs);
	padding: var(--space-xs) var(--space-sm);
	font-size: var(--font-size-body-sm);
	color: var(--color-fg);
	border-radius: var(--radius-sm);
	cursor: pointer;
	white-space: nowrap;
	text-decoration: none;
	transition:
		background-color var(--transition-fast),
		color var(--transition-fast);
}

.lang-switcher__flag {
	display: inline-block;
	flex-shrink: 0;
	border-radius: 2px;
	object-fit: cover;
}

.lang-switcher__item--active {
	color: var(--color-primary);
	font-weight: var(--font-weight-medium);
}

.lang-switcher__item:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: -2px;
}

/* Mobile: dropdown opens upward */
.lang-switcher--mobile .lang-switcher__dropdown {
	top: auto;
	bottom: calc(100% + var(--space-xs));
	transform: translateY(8px);
}

.lang-switcher--mobile:has([aria-expanded="true"]) .lang-switcher__dropdown {
	transform: translateY(0);
}

.mobile-menu-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	background: transparent;
	border: none;
	cursor: pointer;
	color: var(--color-fg);
}

.hamburger-icon {
	width: 24px;
	height: 24px;
}

.hamburger-rect {
	transition: fill var(--transition-fast);
}

.mobile-nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: calc(var(--z-header) - 1);
	background-color: var(--color-bg);
	padding: 112px var(--container-padding) var(--container-padding);
	display: flex;
	flex-direction: column;
	visibility: hidden;
	opacity: 0;
}

.mobile-nav__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1;
}

.mobile-nav__links {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 22px;
}

.mobile-nav__link {
	font-family: var(--font-body);
	font-size: var(--font-size-h3);
	font-weight: var(--font-weight-regular);
	line-height: var(--line-height-tight);
	letter-spacing: -0.48px;
	color: var(--color-fg);
	text-decoration: none;
	text-align: center;
	min-height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mobile-nav__link--active {
	color: var(--color-primary);
	font-weight: var(--font-weight-medium);
}

.mobile-nav__content .button,
.mobile-nav__icons .header__icon-btn,
.mobile-nav__link {
	will-change: transform, opacity;
}

.mobile-nav__icons {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: var(--space-lg);
}

.mobile-nav__content .btn {
	margin-top: auto;
	margin-bottom: var(--space-sm);
}

/* --- Header: Hover States --- */
@media (hover: hover) {
	.header__nav-link:hover,
	.mobile-nav__link:hover {
		color: var(--color-primary);
	}

	.header__icon-btn:hover {
		color: var(--color-primary);
	}

	.theme-toggle:hover {
		color: var(--color-primary);
	}

	.lang-switcher__item:hover {
		background-color: rgba(255, 255, 255, 0.05);
	}

	[data-theme="light"] .lang-switcher__item:hover {
		background-color: rgba(0, 0, 0, 0.05);
	}

	.mobile-menu-toggle:hover .hamburger-rect {
		fill: var(--color-primary);
	}
}

/* --- Header: Desktop (min-width: 1024px) --- */
@media (min-width: 1024px) {
	.header__nav {
		display: flex;
		align-items: center;
		gap: 40px;
		margin-left: auto;
		margin-right: 24px;
	}

	.header__nav-link {
		font-family: var(--font-body);
		font-size: var(--font-size-b1);
		font-weight: var(--font-weight-regular);
		line-height: var(--line-height-tight);
		letter-spacing: -0.32px;
		color: var(--color-fg);
		text-decoration: none;
		transition: color var(--transition-fast);
		white-space: nowrap;
		padding-block: 4px;
		position: relative;
	}

	.header__nav-link--active {
		color: var(--color-primary);
	}

	.header__nav-link--active::after {
		content: "";
		position: absolute;
		bottom: -2px;
		left: 0;
		right: 0;
		height: 2px;
		background-color: var(--color-primary);
		border-radius: 1px;
	}

	.header__cta {
		display: inline-flex;
	}

	.header__icons {
		display: flex;
	}

	.mobile-menu-toggle {
		display: none;
	}

	.mobile-nav {
		display: none !important;
	}
}

/* --- Header: Tablet (max-width: 1024px) --- */
@media (max-width: 1024px) {
	.header__logo-svg {
		width: 100px;
		height: auto;
	}
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
	position: relative;
	height: calc(100svh - 81px);
	display: flex;
	align-items: flex-end;
	padding-top: var(--space-lg);
	padding-bottom: var(--space-lg);
	overflow: hidden;
}

.hero__visual {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 100%;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	contain: layout paint;
}

.hero__video {
	flex: 0 1 1280px;
	margin: 0 36px;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

.hero__placeholder {
	position: absolute;
	inset: 0;
	background: var(--color-card-100);
	opacity: 0.3;
}

.hero__container {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-md);
	width: 100%;
	padding-top: var(--space-xl);
	padding-bottom: var(--space-md);
	margin-bottom: calc(-1 * var(--space-lg));
	background: linear-gradient(to bottom, transparent 0%, var(--color-bg) 20%);
}

.hero__content {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
}

.hero__title {
	font-family: var(--font-heading);
	font-size: var(--font-size-h2);
	font-weight: var(--font-weight-bold);
	font-style: normal;
	line-height: var(--line-height-tight);
	letter-spacing: -1px;
	color: var(--color-fg);
	margin: 0;
}

.highlight {
	color: var(--color-secondary);
}

.hero__title-highlight {
	color: var(--color-secondary);
}

.hero__description {
	font-family: var(--font-body);
	font-size: var(--font-size-b1);
	font-weight: var(--font-weight-regular);
	line-height: var(--line-height-normal);
	letter-spacing: -0.32px;
	color: var(--color-fg);
	max-width: 569px;
	margin: 0;
}

.hero__actions-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	gap: var(--space-md);
}

.hero__cta {
	flex-shrink: 0;
}

.hero__logos {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex: 1;
	max-width: 544px;
	overflow: hidden;
}

.hero__logos-marquee {
	position: relative;
	width: 100%;
	height: 26px;
	overflow: hidden;
	mask-image: linear-gradient(
		to right,
		transparent 0%,
		black 12%,
		black 88%,
		transparent 100%
	);
	-webkit-mask-image: linear-gradient(
		to right,
		transparent 0%,
		black 12%,
		black 88%,
		transparent 100%
	);
}

.hero__logos-track {
	display: flex;
	align-items: center;
	gap: var(--space-lg);
	width: max-content;
}

.hero__logos-icon {
	height: 20px;
	width: auto;
	flex-shrink: 0;
	filter: grayscale(1) brightness(0) invert(1);
	opacity: 0.7;
}

[data-theme="light"] .hero__logos-icon {
	filter: grayscale(1) brightness(0);
}

.hero__badge {
	display: inline-block;
	padding: var(--space-xs) var(--space-sm);
	font-size: var(--font-size-label);
	font-weight: var(--font-weight-medium);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--color-secondary);
	background-color: rgba(121, 198, 192, 0.1);
	border-radius: var(--radius-full);
	margin-bottom: var(--space-xs);
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
}

/* --- Hero: Tablet (max-width: 1024px) --- */
@media (max-width: 1024px) {
	.hero {
		height: calc(100svh - 67px);
	}

	.hero__logos {
		justify-content: flex-end;
		width: 100%;
		max-width: 400px;
	}
}

/* --- Hero: Mobile (max-width: 768px) --- */
@media (max-width: 768px) {
	.hero {
		padding-top: var(--space-lg);
		padding-bottom: var(--space-lg);
	}

	.hero__container {
		padding-bottom: var(--space-sm);
	}

	.hero__actions-row {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--space-lg);
	}

	.hero__visual {
		overflow: visible;
		justify-content: center;
	}

	.hero__video {
		flex: 1 1 100%;
		margin: 0;
		height: auto;
		object-fit: cover;
		object-position: top center;
		transform: scale(2);
		transform-origin: center 40%;
	}

	.hero__title {
		font-size: var(--font-size-h2);
		letter-spacing: -0.5px;
	}

	.hero__logos {
		margin-left: calc(-1 * var(--container-padding));
		margin-right: calc(-1 * var(--container-padding));
		width: calc(100% + 2 * var(--container-padding));
		max-width: none;
		justify-content: center;
	}

	.hero__logos-marquee {
		height: 22px;
	}

	.hero__logos-icon {
		height: 16px;
	}
}

/* ==========================================================================
   FEATURES SCROLL SECTION
   ========================================================================== */

.features-scroll {
	position: relative;
	height: 300vh;
	margin-top: var(--space-2xl);
}

.features-scroll__header {
	position: absolute;
	top: 40px;
	left: 0;
	width: 100%;
	z-index: 10;
	padding-top: var(--space-2xl);
	text-align: center;
	pointer-events: none;
}

.features-scroll__heading {
	font-family: var(--font-heading);
	font-size: var(--font-size-h3);
	font-weight: var(--font-weight-semibold);
	line-height: var(--line-height-tight);
	letter-spacing: -0.02em;
	color: var(--color-fg);
	margin: 0;
	max-width: 1248px;
	margin-inline: auto;
	padding-inline: var(--space-sm);
}

.features-scroll__heading span {
	color: var(--color-secondary);
}

.features-scroll__container {
	position: sticky;
	top: 0;
	height: 100dvh;
	overflow: hidden;
	padding-inline: 0;
}

.features-scroll__slides {
	position: relative;
	height: 100%;
	width: 100%;
	max-width: 1280px;
	margin-inline: auto;
	padding-inline: var(--space-md);
}

.features-scroll__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
}

.features-scroll__slide[data-slide="1"] {
	opacity: 1;
	visibility: visible;
}

.features-scroll__visual {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 533px;
	height: 495px;
	z-index: 1;
	background: transparent;
	overflow: hidden;
}

.features-scroll__video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: transparent;
	clip-path: inset(2px); /* Crop edges to prevent anti-aliasing artifacts */
}

.features-scroll__content {
	display: contents;
}

.features-scroll__titles {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 20px;
	z-index: 2;
	pointer-events: none;
	padding-inline: var(--space-sm);
	box-sizing: border-box;
}

.features-scroll__title {
	font-family: var(--font-heading);
	font-size: var(--font-size-h1);
	font-weight: var(--font-weight-semibold);
	line-height: var(--line-height-tight);
	letter-spacing: -0.02em;
	color: var(--color-fg);
	margin: 0;
	width: 100%;
	white-space: nowrap;
}

.features-scroll__title--left {
	text-align: left;
}

.features-scroll__title--right {
	text-align: right;
}

.features-scroll__cta {
	position: absolute;
	bottom: 40px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 20;
}

.features-scroll__description {
	position: absolute;
	bottom: var(--space-lg);
	left: var(--space-sm);
	max-width: 340px;
	font-family: var(--font-body);
	font-size: var(--font-size-body);
	font-weight: var(--font-weight-regular);
	line-height: 1.4;
	letter-spacing: -0.02em;
	color: var(--color-fg);
	z-index: 3;
}

/* ==========================================================================
   FEATURES SCROLL - RESPONSIVE
   ========================================================================== */

@media (min-width: 1024px) and (max-width: 1279px) {
	.features-scroll__visual {
		width: 450px;
		height: 420px;
	}

	.features-scroll__description {
		max-width: 300px;
	}
}

@media (min-width: 768px) and (max-width: 1023px) {
	.features-scroll__heading {
		font-size: var(--font-size-h3);
		letter-spacing: -0.48px;
		padding-inline: var(--space-sm);
		text-align: center;
	}

	.features-scroll__content {
		position: absolute;
		bottom: 120px;
		left: 0;
		right: 0;
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 20px;
		z-index: 2;
		pointer-events: none;
	}

	.features-scroll__titles {
		position: static;
		inset: auto;
		display: flex;
		flex-direction: column;
		gap: 4px;
		text-align: center;
		pointer-events: auto;
		padding: 0;
	}

	.features-scroll__title {
		font-size: var(--font-size-h1);
		letter-spacing: -1.2px;
		width: 100%;
		margin: 0;
	}

	.features-scroll__title--left,
	.features-scroll__title--right {
		text-align: center;
	}

	.features-scroll__description {
		position: static;
		inset: auto;
		transform: none;
		width: 100%;
		max-width: 400px;
		text-align: center;
		font-size: var(--font-size-body);
		letter-spacing: -0.32px;
		line-height: 1.2;
		margin: 0;
		bottom: auto;
		pointer-events: auto;
	}

	.features-scroll__visual {
		width: 400px;
		height: 400px;
		top: 43%;
		left: 50%;
		transform: translate(-50%, -50%);
	}

	.features-scroll__cta {
		bottom: var(--space-lg);
		display: flex;
		justify-content: center;
		width: 100%;
	}

	.features-scroll__cta .btn {
		white-space: nowrap;
		height: 44px;
		padding: 0 var(--space-lg);
		border-radius: 22px;
	}
}

@media (max-width: 767px) {
	.features-scroll {
		min-height: 250vh;
		height: auto;
		overflow: hidden;
	}

	.features-scroll__header {
		padding-top: 60px;
		position: absolute;
		top: 40px;
		left: 0;
		right: 0;
		z-index: 10;
		pointer-events: none;
	}

	.features-scroll__heading {
		font-size: var(--font-size-h3);
		letter-spacing: -0.02em;
		padding-inline: var(--space-sm);
		text-align: center;
	}

	.features-scroll__slides {
		padding-inline: var(--space-sm);
	}

	.features-scroll__content {
		position: absolute;
		bottom: 110px;
		left: 0;
		right: 0;
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 20px;
		z-index: 2;
		pointer-events: none;
	}

	.features-scroll__titles {
		position: static;
		inset: auto;
		display: flex;
		flex-direction: column;
		gap: 4px;
		text-align: center;
		margin: 0;
		pointer-events: auto;
		overflow: hidden;
		max-width: 100%;
		width: 100%;
	}

	.features-scroll__title {
		font-size: var(--font-size-h1);
		letter-spacing: -0.02em;
		line-height: var(--line-height-tight);
		width: 100%;
		max-width: 100%;
		margin: 0;
	}

	.features-scroll__title--left,
	.features-scroll__title--right {
		text-align: center;
	}

	.features-scroll__description {
		position: static;
		inset: auto;
		transform: none;
		width: 100%;
		text-align: center;
		font-size: 16px;
		line-height: 1.4;
		letter-spacing: -0.01em;
		margin: 0;
		bottom: auto;
		pointer-events: auto;
		color: var(--color-fg);
		padding: 0px;
	}

	.features-scroll__visual {
		width: 319px;
		height: 319px;
		top: 43%;
		left: 50%;
		transform: translate(-50%, -50%);
	}

	.features-scroll__cta {
		bottom: var(--space-lg);
		width: 100%;
		display: flex;
		justify-content: center;
	}

	.features-scroll__cta .btn {
		height: 44px;
		padding: 0 var(--space-lg);
		border-radius: 22px;
		white-space: nowrap;
	}
}

@media (min-width: 1024px) and (max-height: 700px) {
	.features-scroll__header {
		padding-top: var(--space-lg);
	}

	.features-scroll__visual {
		width: min(400px, 50vh);
		height: min(370px, 45vh);
	}

	.features-scroll__title {
		font-size: var(--font-size-h1);
	}

	.features-scroll__titles {
		gap: 4px;
	}

	.features-scroll__description {
		bottom: var(--space-md);
	}

	.features-scroll__cta {
		bottom: var(--space-sm);
	}
}

@media (min-width: 1024px) and (max-height: 599px) {
	.features-scroll__header {
		padding-top: var(--space-md);
	}

	.features-scroll__visual {
		width: min(320px, 45vh);
		height: min(300px, 40vh);
	}

	.features-scroll__title {
		font-size: var(--font-size-h1);
	}

	.features-scroll__description {
		bottom: var(--space-sm);
	}

	.features-scroll__cta .btn {
		padding: var(--space-xs) var(--space-md);
	}
}

@media (max-width: 767px) and (max-height: 700px) {
	.features-scroll {
		min-height: 220vh;
		height: auto;
	}

	.features-scroll__visual {
		width: 260px;
		height: 260px;
	}

	.features-scroll__title {
		font-size: 36px;
	}

	.features-scroll__description {
		bottom: 90px;
		width: 100%;
	}
}

@media (max-width: 896px) and (max-height: 500px) and (orientation: landscape) {
	.features-scroll {
		height: 350vh;
	}

	.features-scroll__header {
		padding-top: var(--space-sm);
	}

	.features-scroll__visual {
		width: 180px;
		height: 180px;
	}

	.features-scroll__titles {
		gap: 4px;
		padding-top: var(--space-xl);
	}

	.features-scroll__title {
		font-size: 36px;
	}

	.features-scroll__description {
		bottom: var(--space-sm);
		width: 200px;
		line-height: 1.2;
	}

	.features-scroll__cta {
		bottom: var(--space-xs);
	}
}

/* ==========================================================================
   METRICS SECTION
   ========================================================================== */

.metrics {
	padding: 80px 0;
}

.metrics__title {
	font-size: var(--font-size-h3);
	font-weight: var(--font-weight-bold);
	line-height: var(--line-height-tight);
	letter-spacing: -0.02em;
	text-align: center;
	margin-bottom: 0;
	color: var(--color-fg);
	visibility: hidden;
}

.metrics__title span {
	color: var(--color-secondary);
}

.metrics__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-sm);
	margin-top: 20px;
}

.metric-card {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: flex-start;
	padding: 24px;
	gap: 16px;
	visibility: hidden;
}

.metric-card__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	gap: 32px;
}

.metric-card__value {
	font-family: var(--font-heading);
	font-size: var(--font-size-h2);
	font-weight: var(--font-weight-bold);
	line-height: var(--line-height-tight);
	letter-spacing: -1px;
	color: var(--color-secondary);
	flex: 1;
	min-width: 0;
	overflow-wrap: break-word;
	word-wrap: break-word;
	hyphens: auto;
}

.metric-card__visual {
	width: 64px;
	height: 64px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.metric-card__visual video {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transform: scale(1.25);
	transform-origin: center right;
}

.metric-card__label {
	font-family: var(--font-body);
	font-size: var(--font-size-body);
	line-height: var(--line-height-normal);
	color: var(--color-fg);
	text-align: left;
}

[data-theme="light"] .metric-card__label {
	color: var(--color-fg);
}

/* --- Metrics: Tablet (min-width: 768px) --- */
@media (min-width: 768px) {
	.metrics__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* --- Metrics: Desktop (min-width: 1024px) --- */
@media (min-width: 1024px) {
	.metrics__grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.metric-card__visual video {
		transform: scale(1);
	}
}

/* ==========================================================================
   LINES SECTION
   ========================================================================== */

.lines-section__wrapper {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--space-lg);
	position: relative;
	margin-top: 20px;
	margin-bottom: 100px;
}

.lines-section {
	position: relative;
	width: 100%;
	max-width: 1200px;
	aspect-ratio: 1200 / 800;
	margin: 0 auto;
}

.lines-section__svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 1;
}

.lines-section__dots {
	z-index: 50;
}

.lines-section__svg--mobile-sm,
.lines-section__svg--mobile-lg {
	display: none;
}

.lines-section__svg--tablet {
	display: none;
}

/* Mobile small (< 391px) - SVG visibility only */
@media (max-width: 390px) {
	.lines-section__svg--desktop,
	.lines-section__svg--tablet,
	.lines-section__svg--mobile-lg {
		display: none;
	}
	.lines-section__svg--mobile-sm {
		display: block;
		overflow: visible;
	}
}

@media (min-width: 391px) and (max-width: 767px) {
	.lines-section__svg--desktop,
	.lines-section__svg--tablet,
	.lines-section__svg--mobile-sm {
		display: none;
	}
	.lines-section__svg--mobile-lg {
		display: block;
		overflow: visible;
	}
}

.lines-section__path {
	fill: none;
	stroke: #fff;
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
	opacity: 1;
}

.lines-section__dot {
	fill: var(--color-fg);
}

.lines-section__content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
	z-index: 10;
	width: 100%;
	max-width: 624px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-md);
	will-change: transform, opacity;
}

.lines-section__title {
	font-family: var(--font-heading);
	font-size: var(--font-size-h2);
	font-weight: var(--font-weight-semibold);
	color: var(--color-fg);
	letter-spacing: -1px;
	line-height: var(--line-height-tight);
	margin: 0;
}

.lines-section__text {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.lines-section__subtitle {
	font-family: var(--font-body);
	font-size: var(--font-size-b1);
	color: var(--color-fg);
	line-height: 1.3;
	max-width: 453px;
	letter-spacing: -0.32px;
	font-weight: var(--font-weight-regular);
}

.lines-section__cta.btn {
	will-change: transform, opacity;
}

.lines-section__icon {
	position: absolute;
	width: 110px;
	height: 110px;
	z-index: 5;
	will-change: transform, opacity;
	transform: translate(-50%, -50%);
	backface-visibility: hidden;
}

.lines-section__icon video {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.pin-spacer,
.pin-spacer .lines-section__wrapper {
	overflow: visible !important;
}

.lines-section__icon--1 {
	left: 50%;
	top: 12.5%;
}
.lines-section__icon--2 {
	left: 10%;
	top: 42.5%;
}
.lines-section__icon--3 {
	left: 25%;
	top: 84%;
}
.lines-section__icon--4 {
	left: 90%;
	top: 42.5%;
}
.lines-section__icon--5 {
	left: 75%;
	top: 84%;
}

@media (max-width: 767px) {
	.lines-section__icon--1 {
		left: 50%;
		top: 5%;
	}
	.lines-section__icon--2 {
		left: 10%;
		top: 15%;
	}
	.lines-section__icon--3 {
		left: 15%;
		top: 85%;
	}
	.lines-section__icon--4 {
		left: 90%;
		top: 15%;
	}
	.lines-section__icon--5 {
		left: 85%;
		top: 85%;
	}
}

/* =========================================
   DESKTOP LAYOUT (1024px+)
   ========================================= */
@media (min-width: 1024px) {
	.lines-section {
		width: 1024px;
		height: 840px;
		overflow: visible;
	}
}

/* =========================================
   TABLET LAYOUT (768px - 1023px)
   ========================================= */
@media (min-width: 768px) and (max-width: 1023px) {
	.lines-section__svg--desktop {
		display: none;
	}
	.lines-section__svg--mobile-sm,
	.lines-section__svg--mobile-lg {
		display: none;
	}
	.lines-section__svg--tablet {
		display: block;
		overflow: visible;
	}

	.lines-section {
		width: 767px;
		height: 600px;
		overflow: visible;
	}

	.lines-section__icon {
		width: 85px;
		height: 85px;
	}

	/* Wider positioning to avoid content overlap */
	.lines-section__icon--1 {
		left: 50% !important;
		top: 10% !important;
	}
	.lines-section__icon--2 {
		left: 8% !important;
		top: 52% !important;
	}
	.lines-section__icon--3 {
		left: 30% !important;
		top: 85% !important;
	}
	.lines-section__icon--4 {
		left: 92% !important;
		top: 52% !important;
	}
	.lines-section__icon--5 {
		left: 70% !important;
		top: 85% !important;
	}
}

[data-theme="light"] .lines-section__path {
	stroke: var(--color-fg);
	opacity: 1;
}

[data-theme="light"] .lines-section__dot {
	opacity: 1;
}

@media (max-width: 767px) {
	.lines-section__wrapper {
		overflow: hidden;
		max-width: 100%;
	}

	.lines-section {
		width: 100%;
		max-width: 400px;
		height: 520px;
		overflow: hidden;
	}

	.lines-section__icon {
		width: 70px;
		height: 70px;
	}

	.lines-section__icon--1 {
		left: 50% !important;
		top: 5% !important;
	}
	.lines-section__icon--2 {
		left: 10% !important;
		top: 15% !important;
	}
	.lines-section__icon--3 {
		left: 15% !important;
		top: 85% !important;
	}
	.lines-section__icon--4 {
		left: 90% !important;
		top: 15% !important;
	}
	.lines-section__icon--5 {
		left: 85% !important;
		top: 85% !important;
	}

	.lines-section__path {
		stroke-width: 3px;
		opacity: 1;
	}
}

/* ==========================================================================
   CTA VIDEO SECTION
   ========================================================================== */

.cta-video {
	position: relative;
	min-height: auto;
	padding: 88px 0;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.cta-video__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
}

.cta-video__video {
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: 100vh;
	object-fit: cover;
	object-position: center center;
}

.cta-video .container {
	position: relative;
	z-index: 2;
	display: flex;
	justify-content: center;
}

.cta-video__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-md);
	max-width: 100%;
}

.cta-video__text {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-sm);
}

.cta-video__title {
	font-family: var(--font-heading);
	font-weight: var(--font-weight-semibold);
	font-size: var(--font-size-h2);
	line-height: var(--line-height-tight);
	letter-spacing: -0.02em;
	text-align: center;
	color: var(--color-fg);
	margin: 0;
}

.cta-video__description {
	font-family: var(--font-body);
	font-weight: var(--font-weight-regular);
	font-size: var(--font-size-b1);
	line-height: var(--line-height-normal);
	letter-spacing: -0.02em;
	text-align: center;
	color: var(--color-fg);
	max-width: 516px;
	margin: 0;
}

.cta-video__description p {
	margin: 0 0 var(--space-sm);
}

.cta-video__description p:last-child {
	margin-bottom: 0;
}

@media (max-width: 1023px) {
	.cta-video {
		height: 576px;
	}

	.cta-video__video {
		height: 100%;
		object-position: center 20%;
	}
}

@media (max-width: 767px) {
	.cta-video {
		padding: 90px 16px;
		min-height: 400px;
	}

	.cta-video__bg {
		overflow: hidden;
	}

	.cta-video__video {
		width: 100%;
		max-width: 100%;
		height: auto;
		min-height: 100%;
		padding: 0;
		object-fit: cover;
		object-position: center 20%;
	}
}

.form {
	display: flex;
	flex-direction: column;
	gap: var(--space-md);
}

.form__group {
	display: flex;
	flex-direction: column;
}

.form__input,
.form__textarea {
	width: 100%;
	padding: var(--space-sm) var(--space-md);
	font-family: var(--font-body);
	font-size: var(--font-size-body);
	color: var(--color-fg);
	background-color: var(--color-card-100);
	border: 1px solid var(--color-card-border);
	border-radius: var(--radius-md);
	transition:
		border-color var(--transition-fast),
		box-shadow var(--transition-fast);
}

.form__input::placeholder,
.form__textarea::placeholder {
	color: var(--color-muted);
}

.form__input:focus,
.form__textarea:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(235, 94, 92, 0.2);
}

.form__textarea {
	resize: vertical;
	min-height: 120px;
}

.form__submit {
	align-self: flex-start;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
	padding: 32px 16px 16px;
	background-color: var(--color-bg);
	border-top: 1px solid var(--color-fg);
}

[data-theme="light"] .footer {
	border-top-color: var(--color-fg);
}

.footer__container {
	display: flex;
	flex-direction: column;
	gap: 24px;
	align-items: center;
	max-width: var(--container-max);
	margin: 0 auto;
}

/* Main Row: Info + Navigation */
.footer__main {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	width: 100%;
}

.footer__info {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 560px;
	flex-shrink: 0;
}

.footer__logo {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.footer__logo-link {
	display: inline-flex;
}

.footer__logo-svg {
	width: 260px;
	height: 88.795px;
	color: var(--color-fg);
}

.footer__address {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.footer__address p {
	font-family: var(--font-body);
	font-size: var(--font-size-body);
	font-weight: var(--font-weight-regular);
	line-height: var(--line-height-normal);
	letter-spacing: -0.32px;
	text-transform: uppercase;
	color: var(--color-fg);
	margin: 0;
}

.footer__nav {
	display: flex;
	gap: 80px;
}

.footer__col {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.footer__tag {
	display: flex;
	align-items: center;
	gap: 4px;
	font-family: var(--font-body);
	font-size: var(--font-size-body-sm);
	font-weight: var(--font-weight-regular);
	line-height: 1;
	color: var(--color-muted);
	text-transform: uppercase;
	letter-spacing: 0.28px;
	margin: 0;
}

.footer__tag-text {
	color: var(--color-muted);
}

.footer__menu {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.footer__menu li {
	line-height: 1;
}

.footer__menu a {
	font-family: var(--font-body);
	font-size: var(--font-size-body);
	font-weight: var(--font-weight-regular);
	line-height: var(--line-height-normal);
	letter-spacing: -0.32px;
	color: var(--color-fg);
	text-transform: uppercase;
	transition: color var(--transition-fast);
}

@media (hover: hover) {
	.footer__menu a:hover {
		color: var(--color-primary);
	}
}

/* Bottom Row: Copyright + Language */
.footer__bottom {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
	width: 100%;
}

.footer__copyright {
	font-family: var(--font-heading);
	font-size: var(--font-size-body);
	font-weight: var(--font-weight-regular);
	line-height: 1;
	letter-spacing: -0.32px;
	text-transform: uppercase;
	color: var(--color-fg);
	margin: 0;
}

.footer__email {
	font-family: var(--font-body);
	font-size: var(--font-size-body);
	font-weight: var(--font-weight-regular);
	line-height: 1;
	letter-spacing: -0.32px;
	text-transform: uppercase;
	color: var(--color-fg);
	transition: color var(--transition-fast);
	width: fit-content;
}

@media (hover: hover) {
	.footer__email:hover {
		color: var(--color-primary);
	}
}

/* Tablet */
@media (max-width: 1023px) {
	.footer__main {
		flex-direction: column;
		gap: 32px;
	}

	.footer__info {
		width: 100%;
		align-items: center;
	}

	.footer__logo {
		justify-content: center;
		width: 100%;
	}

	.footer__logo-svg {
		width: 139px;
		height: 48px;
	}

	.footer__address {
		align-items: center;
		text-align: center;
	}

	.footer__nav {
		justify-content: flex-start;
		gap: 40px 80px;
	}

	.footer__bottom {
		justify-content: space-between;
	}
}

/* Mobile */
@media (max-width: 767px) {
	.footer__nav {
		width: 100%;
		flex-wrap: wrap;
		gap: 40px 48px;
	}
}

/* ==========================================================================
   PAGE (Generic)
   ========================================================================== */

.page__header {
	margin-bottom: var(--space-2xl);
}

.page__title {
	font-size: var(--font-size-h1);
}

.page__content {
	max-width: var(--container-narrow);
}

.page__content p {
	margin-bottom: var(--space-md);
}

.page__content h2 {
	margin-top: var(--space-xl);
	margin-bottom: var(--space-md);
}

/* ==========================================================================
   BUTTONS (Extended)
   ========================================================================== */

.btn--large {
	padding: 16px 24px;
	height: 48px;
	font-size: var(--font-size-body);
}

.btn__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.btn__icon svg {
	width: 100%;
	height: 100%;
	stroke: currentColor;
	fill: none;
}

.btn__icon svg circle {
	stroke-width: 1px;
}

.btn__icon svg path {
	stroke-width: 1.5px;
}

.btn--outline,
.btn--secondary {
	box-shadow: none;
	background-color: transparent;
}

@media (hover: hover) {
	.btn--outline:hover,
	.btn--secondary:hover {
		box-shadow: none;
	}
}

/* ==========================================================================
   CHECKBOX
   ========================================================================== */

.checkbox {
	display: flex;
	align-items: center;
}

.checkbox__label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	min-height: 44px;
	padding: 8px 0;
}

.checkbox__input {
	position: absolute;
	opacity: 0;
	width: 20px;
	height: 20px;
	margin: 0;
	cursor: pointer;
}

.checkbox__box {
	position: relative;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	border: 1px solid var(--color-muted);
	border-radius: 4px;
	background-color: var(--color-bg);
	transition:
		background-color var(--transition-fast),
		border-color var(--transition-fast);
}

.checkbox__box::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 9px;
	height: 7px;
	transform: translate(-50%, -50%);
	opacity: 0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='7' viewBox='0 0 9 7' fill='none'%3E%3Cpath d='M8.36865 0.337891L2.86865 6.33789L0.368652 3.61062' stroke='black' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	transition: opacity var(--transition-fast);
}

.checkbox__input:checked + .checkbox__box {
	background-color: var(--color-secondary);
	border-color: var(--color-secondary);
}

.checkbox__input:checked + .checkbox__box::after {
	opacity: 1;
}

.checkbox__input:focus + .checkbox__box {
	border-color: var(--color-secondary);
}

.checkbox__text {
	font-family: var(--font-body);
	font-size: var(--font-size-label);
	font-weight: var(--font-weight-regular);
	line-height: var(--line-height-normal);
	letter-spacing: -0.02em;
	color: var(--color-fg);
}

.checkbox__text a {
	color: var(--color-secondary);
	text-decoration: underline;
}

.scroll-indicator {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	color: var(--color-fg);
	transition:
		color var(--transition-fast),
		transform var(--transition-fast);
}

@media (hover: hover) {
	.scroll-indicator:hover {
		color: var(--color-primary);
		transform: translateY(2px);
	}
}

.scroll-indicator__icon {
	display: flex;
	width: 16px;
	height: 16px;
}

.scroll-indicator__icon svg {
	width: 100%;
	height: 100%;
	stroke: currentColor;
	fill: none;
}

.scroll-indicator__icon svg circle {
	stroke-width: 1px;
}

.scroll-indicator__icon svg path {
	stroke-width: 1.5px;
}

/* ==========================================================================
   BACK TO TOP
   ========================================================================== */

.back-to-top {
	position: fixed;
	bottom: 32px;
	right: 32px;
	z-index: 90;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: var(--color-bg);
	border: 1px solid var(--color-primary);
	border-radius: 50%;
	cursor: pointer;
	color: var(--color-fg);
	box-shadow: 0 0 8px 0 var(--color-primary);
	transition:
		color var(--transition-fast),
		box-shadow var(--transition-base);
	opacity: 0;
	visibility: hidden;
}

@media (hover: hover) {
	.back-to-top:hover {
		color: var(--color-primary);
		box-shadow:
			0 0 8px 0 var(--color-primary),
			inset 0 0 17.5px 0 var(--color-primary);
	}
}

.back-to-top:focus-visible {
	outline: 2px solid var(--color-secondary);
	outline-offset: 2px;
}

.back-to-top__icon {
	display: flex;
	width: 16px;
	height: 16px;
}

.back-to-top__icon svg {
	width: 100%;
	height: 100%;
	stroke: currentColor;
	fill: none;
}

.back-to-top__icon svg circle {
	stroke-width: 1px;
}

.back-to-top__icon svg path {
	stroke-width: 1.5px;
}

@media (max-width: 767px) {
	.back-to-top {
		bottom: 20px;
		right: 20px;
		width: 40px;
		height: 40px;
	}
}

/* ==========================================================================
   BACKGROUND PATTERN
   ========================================================================== */

.page-background-pattern {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	pointer-events: none;
	z-index: -1;
	overflow: hidden;
	background-color: var(--color-fg);
	-webkit-mask-image: url("../images/pattern-grid-tile.svg");
	mask-image: url("../images/pattern-grid-tile.svg");
	/* Fixed width maintains consistent pattern scale on all devices */
	-webkit-mask-size: 1920px auto;
	mask-size: 1920px auto;
	-webkit-mask-position: top center;
	mask-position: top center;
	-webkit-mask-repeat: repeat-y;
	mask-repeat: repeat-y;
	/* Force GPU layer to prevent scroll repaint of masked element */
	transform: translateZ(0);
	contain: strict;
}

.page-background-pattern__image {
	display: none;
}

/* ==========================================================================
   ACCORDION (Reusable collapsible component)
   Used by: Knowledge FAQ, Features page
   ========================================================================== */

.accordion {
	cursor: pointer;
}

/* Reset heading styles — heading is semantic-only, button handles all visuals */
.accordion__heading {
	margin: 0;
	padding: 0;
	font: inherit;
	line-height: inherit;
}

.accordion__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: var(--space-md);
	background: none;
	border: none;
	cursor: pointer;
	text-align: left;
	color: var(--color-fg);
	gap: var(--space-sm);
}

.accordion:has(:focus-visible) {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

.accordion__trigger:focus-visible {
	outline: none;
}

.accordion__title {
	font-family: var(--font-heading);
	font-size: var(--font-size-h4);
	font-weight: var(--font-weight-semibold);
	line-height: var(--line-height-tight);
	letter-spacing: -0.48px;
	flex: 1;
}

.accordion__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	color: var(--color-fg);
}

/* Collapsible content — GSAP handles height animation */
.accordion__content {
	overflow: hidden;
}

.accordion__content[hidden] {
	display: none;
}

/* Divider line (1px separator between title and body) */
.accordion__divider {
	height: 1px;
	background-color: var(--color-muted);
	margin: 20px var(--space-md);
}

.accordion__body {
	padding: 0 var(--space-md) var(--space-md);
}

.accordion__body p {
	font-size: var(--font-size-b1);
	color: var(--color-fg);
	line-height: var(--line-height-normal);
	letter-spacing: -0.32px;
	margin: 0 0 var(--space-sm);
}

.accordion__body p:last-child {
	margin-bottom: 0;
}

/* Accordion with image */
.accordion__body--has-image {
	display: flex;
	flex-direction: column;
	gap: 20px;
	align-items: center;
}

.accordion__image {
	width: 200px;
	height: 200px;
	flex-shrink: 0;
	object-fit: contain;
}

@media (min-width: 768px) {
	.accordion__body--has-image {
		flex-direction: row;
		align-items: flex-start;
	}

	.accordion__body--has-image .accordion__text {
		flex: 1 1 0%;
	}
}

/* ==========================================================================
   ANIMATIONS (Initial States)
   ========================================================================== */

[data-animate] {
	opacity: 0;
}

[data-animate="fade-up"] {
	transform: translateY(30px);
}

[data-animate="fade-in"] {
	transform: scale(0.95);
}

[data-animate].is-animated {
	opacity: 1;
	transform: translateY(0) scale(1);
}

/* ==========================================================================
   SKIP LINK
   ========================================================================== */

.skip-link:focus {
	position: fixed;
	top: var(--space-sm);
	left: var(--space-sm);
	z-index: 9999;
	padding: var(--space-sm) var(--space-md);
	background-color: var(--color-primary);
	color: var(--color-white);
	border-radius: var(--radius-md);
	clip: auto;
	width: auto;
	height: auto;
}

/* ==========================================================================
   POPUP / MODAL
   ========================================================================== */

.popup-overlay {
	--popup-blur: 0px;
	position: fixed;
	inset: 0;
	z-index: var(--z-modal);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--space-md);
	background-color: rgba(0, 0, 0, 0);
	backdrop-filter: blur(var(--popup-blur));
	-webkit-backdrop-filter: blur(var(--popup-blur));
	visibility: hidden;
}

.popup-overlay.is-active {
	visibility: visible;
}

.popup {
	max-width: 976px;
	width: 100%;
	padding: 36px;
}

.popup__close {
	position: absolute;
	top: var(--space-sm);
	right: var(--space-sm);
	width: 32px;
	height: 32px;
	padding: 0;
	border: none;
	background: transparent;
	color: var(--color-fg);
	cursor: pointer;
	opacity: 0.7;
	transition: opacity var(--transition-fast);
}

.popup__close:hover,
.popup__close:focus-visible {
	opacity: 1;
}

.popup__close svg {
	width: 100%;
	height: 100%;
}

.popup__content {
	display: flex;
	align-items: center;
	gap: 20px;
}

.popup__form-wrapper {
	flex: 0 0 auto;
	width: 538px;
	display: flex;
	flex-direction: column;
	gap: var(--space-md);
}

.popup__header {
	display: flex;
	flex-direction: column;
	gap: var(--space-sm);
}

.popup__title {
	font-family: var(--font-heading);
	font-size: var(--font-size-h2);
	font-weight: var(--font-weight-bold);
	line-height: var(--line-height-tight);
	letter-spacing: -0.02em;
	margin: 0;
}

.popup__description {
	font-family: var(--font-body);
	font-size: var(--font-size-b1);
	font-weight: var(--font-weight-regular);
	line-height: var(--line-height-normal);
	letter-spacing: -0.02em;
	color: var(--color-fg);
	margin: 0;
	text-wrap: pretty;
}

.popup__form {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.popup__form-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}

.popup__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.popup__label {
	padding-left: 8px;
	font-family: var(--font-body);
	font-size: var(--font-size-label-sm);
	font-weight: var(--font-weight-regular);
	line-height: 1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--color-fg);
}

.popup__input {
	height: 32px;
	padding: 8px;
	border: 1px solid var(--color-muted);
	border-radius: 10px;
	background-color: var(--color-bg);
	font-family: var(--font-body);
	font-size: var(--font-size-b1);
	font-weight: var(--font-weight-regular);
	line-height: var(--line-height-tight);
	letter-spacing: -0.02em;
	color: var(--color-fg);
	outline: none;
	transition: border-color var(--transition-fast);
}

.popup__input::placeholder {
	color: var(--color-muted);
}

.popup__input:focus {
	border-color: var(--color-secondary);
	box-shadow: 0 0 0 3px rgba(121, 198, 192, 0.25);
}

.popup__textarea {
	width: 100%;
	height: 64px;
	padding: 10px 8px 5px;
	border: 1px solid var(--color-muted);
	border-radius: 10px;
	background-color: var(--color-bg);
	font-family: var(--font-body);
	font-size: var(--font-size-b1);
	font-weight: var(--font-weight-regular);
	line-height: var(--line-height-normal);
	letter-spacing: -0.02em;
	color: var(--color-fg);
	outline: none;
	resize: none;
	transition: border-color var(--transition-fast);
}

.popup__textarea::placeholder {
	color: var(--color-muted);
}

.popup__textarea:focus {
	border-color: var(--color-secondary);
	box-shadow: 0 0 0 3px rgba(121, 198, 192, 0.25);
}

.popup__field--full {
	grid-column: 1 / -1;
}

.popup__select-wrapper {
	position: relative;
}

.popup__select {
	width: 100%;
	height: 32px;
	padding: 8px;
	padding-right: 32px;
	border: 1px solid var(--color-muted);
	border-radius: 10px;
	background-color: var(--color-bg);
	font-family: var(--font-body);
	font-size: var(--font-size-b1);
	font-weight: var(--font-weight-regular);
	line-height: var(--line-height-tight);
	letter-spacing: -0.02em;
	color: var(--color-fg);
	appearance: none;
	cursor: pointer;
	outline: none;
	transition: border-color var(--transition-fast);
}

.popup__select:focus {
	border-color: var(--color-secondary);
	box-shadow: 0 0 0 3px rgba(121, 198, 192, 0.25);
}

[data-theme="light"] .popup__input:focus,
[data-theme="light"] .popup__textarea:focus,
[data-theme="light"] .popup__select:focus {
	box-shadow: 0 0 0 3px rgba(121, 198, 192, 0.45);
}

.popup__select-icon {
	position: absolute;
	top: 50%;
	right: 8px;
	width: 16px;
	height: 16px;
	transform: translateY(-50%);
	color: var(--color-fg);
	pointer-events: none;
}

.popup__submit {
	align-self: flex-start;
	margin-top: 8px;
}
.popup__success {
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: var(--space-md);
	padding: var(--space-xl);
}

.popup__form-wrapper.is-success .popup__form,
.popup__form-wrapper.is-success .popup__header {
	display: none;
}

.popup__form-wrapper.is-success .popup__success {
	display: flex;
}

.popup__form-wrapper.is-success {
	width: 100%;
	flex: 1;
}

.popup__content:has(.popup__form-wrapper.is-success) {
	justify-content: center;
}

.popup__content:has(.popup__form-wrapper.is-success) .popup__icon-wrapper {
	display: none;
}

.popup__success-icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--color-secondary);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-bg);
}

.popup__success-icon svg {
	width: 32px;
	height: 32px;
}

.popup__success-title {
	font-family: var(--font-heading);
	font-size: var(--font-size-h3);
	font-weight: var(--font-weight-bold);
	line-height: var(--line-height-tight);
	color: var(--color-fg);
}

.popup__success-text {
	font-family: var(--font-body);
	font-size: var(--font-size-body);
	line-height: 1.5;
	color: var(--color-muted);
	max-width: 400px;
}

.popup__icon-wrapper {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.popup__icon {
	width: 100%;
	max-width: 350px;
	height: auto;
	object-fit: contain;
}

/* ==========================================================================
   POPUP - RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
	.popup {
		max-width: 600px;
		padding: var(--space-md);
	}

	.popup__content {
		flex-direction: column;
	}

	.popup__form-wrapper {
		width: 100%;
	}

	.popup__icon-wrapper {
		display: none;
	}
}

@media (max-width: 768px) {
	.popup-overlay {
		padding: var(--space-sm);
	}

	.popup {
		max-width: 336px;
		padding: 20px;
		max-height: calc(100vh - var(--space-lg));
		max-height: calc(100dvh - var(--space-lg));
		overflow-y: auto;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
	}

	.popup__form-wrapper {
		gap: var(--space-md);
	}

	.popup__form-grid {
		grid-template-columns: 1fr;
	}

	.popup__submit {
		width: 100%;
		justify-content: center;
	}

	.popup__description {
		font-size: var(--font-size-b2);
	}
}

/* Content Popup variant (scrollable content / PDF embed) */
.popup--content {
	max-width: 800px;
	overflow: hidden;
}

.popup__scroll-area {
	max-height: calc(80vh - 72px);
	max-height: calc(80dvh - 72px);
	overflow-y: auto;
	overscroll-behavior: contain;
}

/* PDF Popup variant */
.popup--pdf {
	max-width: 900px;
}

.popup--pdf .popup__scroll-area {
	overflow: hidden;
}

.popup__pdf {
	width: 100%;
	height: calc(80vh - 72px);
	height: calc(80dvh - 72px);
	border: none;
	border-radius: var(--radius-md);
}

/* ==========================================================================
   PAGE HERO (Inner pages shared pattern)
   ========================================================================== */

.page-hero {
	text-align: center;
	overflow: hidden;
}

.page-hero__visual {
	display: flex;
	justify-content: center;
	align-items: center;
	max-height: 580px;
	overflow: hidden;
}

.page-hero__image {
	width: 100%;
	max-width: 520px;
	height: auto;
	object-fit: contain;
}

.page-hero__placeholder {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: var(--space-2xl) 0;
}

.page-hero__circle {
	width: 260px;
	height: 260px;
	border-radius: 50%;
	border: 1px solid var(--color-card-border-hover);
}

.page-hero__content {
	padding-bottom: var(--space-xl);
}

.page-hero__title {
	font-size: var(--font-size-h2);
	font-family: var(--font-heading);
	font-weight: var(--font-weight-bold);
	color: var(--color-fg);
	margin-bottom: var(--space-sm);
}

.page-hero__subtitle {
	font-size: var(--font-size-b1);
	color: var(--color-muted);
	max-width: 610px;
	margin: 0 auto;
	line-height: var(--line-height-normal);
}

.page-hero__cta {
	display: flex;
	justify-content: center;
	margin-top: var(--space-md);
}

@media (min-width: 768px) {
	.page-hero__placeholder {
		padding: var(--space-3xl) 0;
	}

	.page-hero__circle {
		width: 360px;
		height: 360px;
	}
}

@media (min-width: 1024px) {
	.page-hero__visual {
		max-height: 646px;
	}

	.page-hero__circle {
		width: 440px;
		height: 440px;
	}

	.page-hero__content {
		padding-bottom: var(--space-2xl);
	}
}

/* ==========================================================================
   PAGE CTA (Inner pages shared pattern)
   ========================================================================== */

.page-cta {
	padding: var(--space-3xl) 0;
	text-align: center;
}

.page-cta__inner {
	max-width: 658px;
	margin: 0 auto;
}

.page-cta__title {
	font-size: var(--font-size-h2);
	font-family: var(--font-heading);
	font-weight: var(--font-weight-bold);
	color: var(--color-fg);
	margin-bottom: var(--space-md);
}

.page-cta__desc {
	font-size: var(--font-size-body);
	color: var(--color-muted);
	line-height: var(--line-height-relaxed);
	margin-bottom: var(--space-lg);
}

.page-cta__action {
	display: flex;
	justify-content: center;
}

@media (min-width: 1024px) {
	.page-cta {
		padding: var(--space-4xl) 0;
	}
}

/* ==========================================================================
   CARD (Base reusable component)
   ========================================================================== */

.card {
	background: linear-gradient(
		180deg,
		var(--color-card) 0%,
		var(--color-card-100) 100%
	);
	border: 1px solid var(--color-card-border);
	border-radius: var(--radius-lg);
	padding: var(--space-md);
	overflow: hidden;
	transition: border-color var(--transition-base);
}

@media (hover: hover) {
	.card:hover {
		border-color: var(--color-card-border-hover);
	}
}

.card__title {
	font-family: var(--font-heading);
	font-size: var(--font-size-h4);
	font-weight: var(--font-weight-bold);
	color: var(--color-secondary);
	line-height: var(--line-height-tight);
	letter-spacing: -0.02em;
	margin-bottom: var(--space-sm);
}

.card__text {
	font-family: var(--font-body);
	font-size: var(--font-size-body);
	color: var(--color-fg);
	line-height: var(--line-height-relaxed);
}

/* ==========================================================================
   LEGAL PAGES (Privacy, Cookie Policy, Imprint, PCI Compliance)
   ========================================================================== */

.legal-page {
	padding-top: calc(72px + var(--space-3xl));
	padding-bottom: var(--space-4xl);
	min-height: 100vh;
}

.legal-page__container {
	max-width: var(--container-max);
	margin: 0 auto;
	padding-left: var(--container-padding);
	padding-right: var(--container-padding);
}

.legal-page__header {
	margin-bottom: var(--space-2xl);
	padding-bottom: var(--space-xl);
	border-bottom: 1px solid var(--color-card-border);
}

.legal-page__title {
	font-size: var(--font-size-h2);
	font-weight: var(--font-weight-bold);
	color: var(--color-fg);
	margin: 0;
}

.legal-page__logo {
	position: absolute;
	bottom: calc(100% + var(--space-sm));
	left: 0;
	width: 140px;
	height: 140px;
}

.legal-page__header--with-action {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-sm) var(--space-md);
}

.legal-page__header--with-action .legal-page__title {
	min-width: 0;
	flex: 1 1 auto;
}

.legal-page__action-icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.legal-page__content {
	color: var(--color-fg);
	font-size: var(--font-size-b1);
	line-height: 1.7;
}

.legal-page__content > h1:first-child {
	display: none;
}

.legal-page__content h2 {
	font-size: var(--font-size-h3);
	font-weight: var(--font-weight-bold);
	margin-top: var(--space-2xl);
	margin-bottom: var(--space-md);
	color: var(--color-fg);
}

.legal-page__content h3 {
	font-size: var(--font-size-h4);
	font-weight: var(--font-weight-bold);
	margin-top: var(--space-xl);
	margin-bottom: var(--space-sm);
	color: var(--color-fg);
}

.legal-page__content p {
	margin-bottom: var(--space-md);
}

.legal-page__content ul {
	margin-bottom: var(--space-md);
	padding-left: var(--space-lg);
	list-style-type: disc;
}

.legal-page__content li {
	margin-bottom: var(--space-xs);
	line-height: 1.6;
}

.legal-page__content a {
	color: var(--color-primary);
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color var(--transition-fast);
}

@media (hover: hover) {
	.legal-page__content a:hover {
		color: var(--color-secondary);
	}
}

.legal-page__content strong {
	font-weight: var(--font-weight-bold);
	color: var(--color-fg);
}

.legal-page__content p br {
	display: block;
	content: "";
	margin-bottom: 0;
}

@media (max-width: 768px) {
	.legal-page {
		padding-top: calc(72px + var(--space-xl));
		padding-bottom: var(--space-2xl);
	}

	.legal-page__logo {
		width: 120px;
		height: 120px;
		bottom: calc(100% + 4px);
	}

	.legal-page__title {
		font-size: var(--font-size-h3);
	}

	.legal-page__content h2 {
		font-size: var(--font-size-h4);
		margin-top: var(--space-xl);
	}

	.legal-page__content h3 {
		font-size: var(--font-size-b1);
		margin-top: var(--space-lg);
	}
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */

.toast-container {
	position: fixed;
	bottom: var(--space-lg);
	right: var(--space-lg);
	z-index: 10000;
	display: flex;
	flex-direction: column;
	gap: var(--space-sm);
	pointer-events: none;
}

.toast {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	padding: var(--space-md);
	border-radius: 12px;
	background: linear-gradient(
		180deg,
		var(--color-card) 0%,
		var(--color-card-100) 100%
	);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
	pointer-events: auto;
	max-width: 400px;
	opacity: 0;
	visibility: hidden;
}

.toast--error {
	border-left: 3px solid var(--color-primary);
}

.toast--success {
	border-left: 3px solid var(--color-secondary);
}

.toast__icon {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
}

.toast--error .toast__icon {
	color: var(--color-primary);
}

.toast--success .toast__icon {
	color: var(--color-secondary);
}

.toast__message {
	flex: 1;
	font-family: var(--font-body);
	font-size: var(--font-size-small);
	line-height: var(--line-height-normal);
	color: var(--color-fg);
}

.toast__close {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	padding: 0;
	border: none;
	background: transparent;
	color: var(--color-muted);
	cursor: pointer;
	opacity: 0.7;
	transition: opacity var(--transition-fast);
}

.toast__close:hover,
.toast__close:focus-visible {
	opacity: 1;
}

.toast__close svg {
	width: 100%;
	height: 100%;
}

@media (max-width: 767px) {
	.toast-container {
		left: var(--space-md);
		right: var(--space-md);
		bottom: var(--space-md);
	}

	.toast {
		max-width: none;
		margin-left: auto;
		margin-right: auto;
	}
}
