.page {
	max-width: 1300px;
	margin: 0 auto;
	padding: 28px 18px;
}

.page-header {
	text-align: center;
	margin-bottom: 40px;
}

.page-header-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
}

.page header h1,
.page-header h1 {
	font-size: clamp(24px, 4vw, 36px);
	margin: 0;
	font-weight: 700;
	line-height: 1.4;
	color: var(--text-primary, #000);
	will-change: transform, opacity, filter;
}

.page header p {
	color: var(--muted);
	margin: 0;
	font-size: 13px;
}

.scroll-indicator {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin-top: 8px;
}

.scroll-text {
	font-size: 14px;
	color: var(--muted, #6b7280);
	font-weight: 500;
	letter-spacing: 0.5px;
}

.chevrons-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

.chevrons-container .chevron {
	color: var(--accent, #9a47ff);
	opacity: 0.7;
	animation: chevronPulse 2s ease-in-out infinite;
}

.chevrons-container .chevron:nth-child(1) {
	animation-delay: 0s;
}

.chevrons-container .chevron:nth-child(2) {
	animation-delay: 0.2s;
}

.chevrons-container .chevron:nth-child(3) {
	animation-delay: 0.4s;
}

@keyframes chevronPulse {
	0%,
	100% {
		opacity: 0.3;
		transform: translateY(0) scale(1);
	}
	50% {
		opacity: 1;
		transform: translateY(8px) scale(1.1);
	}
}

.page footer {
	margin-top: 28px;
	color: var(--muted);
	font-size: 13px;
	text-align: center;
}

.journey {
	position: relative;
	width: 100%;
	margin: 16px 0;
	height: 4200px;
	min-height: 3200px;
}

.road-wrap {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	width: var(--journey-width);
	height: 100%;
	pointer-events: none;
}

svg#roadSVG {
	width: 100%;
	height: 100%;
	display: block;
	overflow: visible;
}

.path-bg {
	stroke: #0b1822;
	stroke-width: 18;
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
	opacity: 0.85;
}

.path-fg {
	stroke: #ffffff;
	stroke-width: 10;
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
	filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.6));
	opacity: 0.98;
}

.path-glow {
	stroke: rgba(255, 255, 255, 0.06);
	stroke-width: 28;
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
	opacity: 0.6;
}

.svg-marker {
	fill: #071124;
	stroke: var(--white);
	stroke-width: 2;
	r: 8;
	transition: all 0.28s ease;
}

.svg-marker.active {
	fill: var(--white);
	transform-origin: center;
	r: 10;
}

.connector {
	stroke: rgba(255, 255, 255, 0.06);
	stroke-width: 1.2;
}

.steps-overlay {
	position: absolute;
	inset: 0;
	pointer-events: auto;
}

.step-decoration-image {
	position: absolute;
	width: 180px;
	height: auto;
	max-width: 180px;
	opacity: 0;
	pointer-events: none;
	z-index: 1;
	filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.3));
	will-change: transform, opacity;
}

/* Ensure images don't overflow viewport on smaller desktop screens */
@media (max-width: 1400px) {
	.step-decoration-image {
		max-width: 160px;
	}
}

@media (max-width: 1200px) {
	.step-decoration-image {
		max-width: 140px;
	}
}

/* Position images below cards for medium screens (991px - 1300px) */
@media (min-width: 991px) and (max-width: 1300px) {
	.step-decoration-image {
		max-width: 160px;
	}
}

@media (max-width: 768px) {
	.step-decoration-image {
		display: none !important;
	}
}

.step-card {
	position: absolute;
	width: calc(50% - 180px);
	max-width: 420px;
	background: linear-gradient(
		180deg,
		rgba(255, 255, 255, 0.02),
		rgba(255, 255, 255, 0.01)
	);
	border: 1px solid rgba(255, 255, 255, 0.04);
	border-radius: 12px;
	padding: 14px 16px;
	box-shadow: 0 12px 34px rgba(2, 6, 23, 0.6);
	transform-origin: center;
	opacity: 0;
	will-change: transform, opacity;
	cursor: pointer;
}

.step-card.right {
	left: calc(50% + 180px);
	direction: rtl;
}

.step-card.left {
	right: calc(50% + 180px);
	direction: rtl;
}

.step-card-icon {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--accent);
	opacity: 0.7;
	transition: opacity 0.2s ease;
	pointer-events: none;
}

.step-card:hover .step-card-icon {
	opacity: 1;
}

.step-card-icon svg {
	width: 100%;
	height: 100%;
}

.step-card .num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 999px;
	background: var(--accent);
	color: white;
	font-weight: 700;
	margin-bottom: 8px;
	font-size: 13px;
	box-shadow: 0 8px 20px rgba(124, 58, 237, 0.12);
}

.step-card h3 {
	margin: 0;
	font-size: 15px;
	color: black;
}

.step-card p {
	margin: 8px 0 0 0;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.6;
}

@media (max-width: 900px) {
	:root {
		--journey-width: 620px;
	}

	.journey {
		padding: 0 10px;
	}

	.step-card {
		width: calc(100% - 40px);
		max-width: 100%;
		left: 50% !important;
		right: auto !important;
		transform: translateX(-50%);
		padding: 16px 18px;
		margin: 0 20px;
	}

	.step-card.left,
	.step-card.right {
		left: 44% !important;
		right: auto !important;
		transform: translateX(-50%);
	}

	.step-card h3 {
		font-size: 15px;
		line-height: 1.4;
	}

	.step-card p {
		font-size: 13px;
		line-height: 1.5;
	}

	.step-card .num {
		width: 32px;
		height: 32px;
		font-size: 13px;
	}
}

@media (max-width: 480px) {
	.step-card {
		width: calc(100% - 20px);
		padding: 14px 16px;
	}

	.step-card h3 {
		font-size: 14px;
	}

	.step-card p {
		font-size: 12px;
	}

	.step-card .num {
		width: 28px;
		height: 28px;
		font-size: 12px;
	}
}

.modal-overlay {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 1200;
	background: rgba(2, 6, 23, 0.7);
	padding: 20px;
}

.modal-card {
	--angle: 45deg;
	background: linear-gradient(
		var(--angle),
		oklab(78.1% -0.003 -0.022),
		oklab(88.3% 0.001 -0.003),
		oklab(96.5% -0.003 -0.005),
		oklab(98.5% 0 0)
	);
	color: #000000;
	border-radius: 12px;
	max-width: 900px;
	width: 100%;
	max-height: 80vh;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.04);
	box-shadow: 0 20px 60px rgba(2, 6, 23, 0.7);
	display: flex;
	flex-direction: column;
	pointer-events: auto;
}

.modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 18px 12px 18px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.modal-header h2 {
	margin: 0;
	font-size: 18px;
}

.modal-body {
	padding: 16px 18px;
	overflow: auto;
	color: #000000 !important;
	line-height: 1.8;
	font-size: 14px;
}

.modal-footer {
	padding: 12px 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.02);
	display: flex;
	justify-content: flex-end;
	gap: 12px;
}

.modal-close {
	background: transparent;
	border: 0;
	color: var(--muted);
	font-size: 20px;
	cursor: pointer;
}
@media (max-width: 768px) {
	button.step-card {
		--angle: 45deg;
		background: linear-gradient(
			var(--angle),
			oklab(100% 0 0),
			oklab(97% 0 0),
			oklab(94.9% 0 0),
			oklab(90.7% 0 0),
			oklab(87.3% 0 0),
			oklab(84.5% 0 0),
			oklab(80.5% 0 0)
		);
	}
}

html.dark .page header h1,
html.dark .page-header h1 {
	color: var(--text-primary);
}

html.dark .page header p {
	color: var(--text-secondary);
}

html.dark .scroll-text {
	color: var(--text-secondary, #9ca3af);
}

html.dark .chevrons-container .chevron {
	color: var(--accent, #9a47ff);
}

html.dark .page footer {
	color: var(--text-secondary);
}

html.dark .path-bg {
	stroke: #1a1a2e;
	opacity: 0.9;
}

html.dark .path-fg {
	stroke: #e5e7eb;
	filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.8));
}

html.dark .path-glow {
	stroke: rgba(255, 255, 255, 0.08);
}

html.dark .svg-marker {
	fill: var(--bg-secondary);
	stroke: var(--text-primary);
}

html.dark .svg-marker.active {
	fill: var(--accent);
	stroke: var(--accent);
}

html.dark .connector {
	stroke: rgba(255, 255, 255, 0.1);
}

html.dark .step-card {
	--angle: 45deg;
	background: linear-gradient(var(--angle), oklab(18.2% 0 0), oklab(21.8% 0 0));
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 12px 34px rgba(0, 0, 0, 0.8);
}

html.dark .step-card h3 {
	color: var(--text-primary);
}

html.dark .step-card p {
	color: var(--text-secondary);
}

html.dark .step-card .num {
	background: var(--accent);
	color: white;
	box-shadow: 0 8px 20px rgba(154, 71, 255, 0.3);
}

html.dark .step-card:hover {
	border-color: rgba(255, 255, 255, 0.242);
	transform: translateY(-2px);
}

html.dark .modal-overlay {
	background: rgba(0, 0, 0, 0.85);
}

html.dark .modal-card {
	background: linear-gradient(180deg, var(--bg-secondary), var(--bg-tertiary));
	color: var(--text-primary);
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
}

html.dark .modal-header {
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

html.dark .modal-header h2 {
	color: var(--text-primary);
}

html.dark .modal-body p {
	color: white;
}

html.dark .modal-footer {
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

html.dark .modal-close {
	color: var(--text-secondary);
}

html.dark .modal-close:hover {
	color: var(--text-primary);
}

@media (max-width: 768px) {
	html.dark button.step-card {
		--angle: 45deg;
		background: linear-gradient(var(--angle), oklab(18.2% 0 0), oklab(21.8% 0 0));
		border: 1px solid rgba(255, 255, 255, 0.08);
	}
}
