/*
 * ELNIQ GEO — homepage hero visual: Website → AI bots → AI answers →
 * AI visits → Conversions. Built to be read in 1–2 seconds: icons, one
 * or two words, a green tick for "available". One 10-second loop; the
 * steps light up left to right while a dot travels along the line.
 * CSS only. Reduced motion: static, every step in its "on" look.
 */

.eg-flow {
	--eg-flow-cycle: 10s;
	--eg-flow-ic: 60px;
	--fl-off-bg: #fff; --fl-off-bd: #D7E3F8; --fl-off-fg: var(--eg-blue); --fl-off-sh: 0 3px 10px rgba(16, 35, 95, 0.07);
	--fl-on-bg: var(--eg-blue-gradient); --fl-ring: rgba(21, 93, 252, 0.15);
	--fl-mute: #B9CEF5; --fl-live: var(--eg-blue); --fl-line: #D7E3F8;
	background: linear-gradient(180deg, #FFFFFF 0%, #F5F9FF 100%);
	padding: 24px 22px 18px;
}
.eg-flow__title {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--eg-text-muted);
	margin: 0 0 26px;
}
.eg-flow__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
}
.eg-flow__node {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	min-height: 118px;
}
.eg-flow__icon {
	position: relative;
	z-index: 1;
	width: var(--eg-flow-ic);
	height: var(--eg-flow-ic);
	border-radius: 18px;
	background: #fff;
	border: 1.5px solid #D7E3F8;
	color: var(--eg-blue);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 3px 10px rgba(16, 35, 95, 0.07);
}
.eg-flow__tick {
	position: absolute;
	right: -6px;
	top: -6px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #16A34A;
	color: #fff;
	border: 2px solid #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}
.eg-flow__tick svg { width: 9px; height: 9px; }
.eg-flow__name {
	font-size: 14px;
	font-weight: 800;
	line-height: 1.2;
	color: var(--eg-text-heading);
	margin: 12px 0 0;
}
.eg-flow__tag {
	margin-top: 6px;
	font-size: 11px;
	font-weight: 700;
	color: var(--eg-blue);
	background: var(--eg-blue-tint-bg);
	border-radius: var(--eg-radius-pill);
	padding: 2px 9px;
}

/* Connector + travelling dot (horizontal, from icon edge to next icon edge) */
.eg-flow__line {
	position: absolute;
	top: calc(var(--eg-flow-ic) / 2 - 1px);
	left: calc(50% + var(--eg-flow-ic) / 2 + 6px);
	width: calc(100% - var(--eg-flow-ic) - 12px);
	height: 2px;
	background: var(--fl-line);
	border-radius: 2px;
}
.eg-flow__line i {
	position: absolute;
	top: -3px;
	left: 0;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--eg-blue);
	box-shadow: 0 0 0 4px rgba(21, 93, 252, 0.18);
	opacity: 0;
}

/* Little live visuals under the labels */
.eg-flow__dots,
.eg-flow__bars {
	margin-top: 8px;
	height: 22px;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 4px;
}
.eg-flow__dots { align-items: center; gap: 5px; }
.eg-flow__dots i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--fl-mute);
}
.eg-flow__bars i {
	display: block;
	width: 6px;
	border-radius: 2px 2px 0 0;
	background: var(--fl-mute);
	transform-origin: bottom;
}
.eg-flow__bars i:nth-child(1) { height: 30%; }
.eg-flow__bars i:nth-child(2) { height: 45%; }
.eg-flow__bars i:nth-child(3) { height: 60%; }
.eg-flow__bars i:nth-child(4) { height: 80%; }
.eg-flow__bars i:nth-child(5) { height: 100%; }

.eg-flow__legend {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 14px 0 0;
	padding-top: 12px;
	border-top: 1px solid #E4ECFA;
	font-size: 12px;
	line-height: 1.35;
	color: var(--eg-text-secondary);
}
.eg-flow__tick--legend {
	position: static;
	flex-shrink: 0;
	border: 0;
	width: 16px;
	height: 16px;
}

/* ------------------------------------------------------------ *
 * Motion (10s loop). Steps light at 0 / 16 / 32 / 48 / 64 %,
 * hold, then fade together at ~90 % and the loop restarts.
 * ------------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
	.eg-flow__icon,
	.eg-flow__dots i,
	.eg-flow__bars i,
	.eg-flow__line i {
		animation-duration: var(--eg-flow-cycle);
		animation-iteration-count: infinite;
		animation-timing-function: ease-in-out;
	}
	.eg-flow.is-paused *,
	.eg-flow:hover * {
		animation-play-state: paused !important;
	}
	.eg-flow__node--1 .eg-flow__icon { animation-name: eg-flow-on-1; }
	.eg-flow__node--2 .eg-flow__icon { animation-name: eg-flow-on-2; }
	.eg-flow__node--3 .eg-flow__icon { animation-name: eg-flow-on-3; }
	.eg-flow__node--4 .eg-flow__icon { animation-name: eg-flow-on-4; }
	.eg-flow__node--5 .eg-flow__icon { animation-name: eg-flow-on-5; }
	.eg-flow__node--1 .eg-flow__line i { animation-name: eg-flow-dot-1; }
	.eg-flow__node--2 .eg-flow__line i { animation-name: eg-flow-dot-2; }
	.eg-flow__node--3 .eg-flow__line i { animation-name: eg-flow-dot-3; }
	.eg-flow__node--4 .eg-flow__line i { animation-name: eg-flow-dot-4; }
	.eg-flow__dots i { animation-name: eg-flow-dot-pulse; }
	.eg-flow__dots i:nth-child(2) { animation-delay: 0.25s; }
	.eg-flow__dots i:nth-child(3) { animation-delay: 0.5s; }
	.eg-flow__bars i { animation-name: eg-flow-bar; }
	.eg-flow__bars i:nth-child(2) { animation-delay: 0.08s; }
	.eg-flow__bars i:nth-child(3) { animation-delay: 0.16s; }
	.eg-flow__bars i:nth-child(4) { animation-delay: 0.24s; }
	.eg-flow__bars i:nth-child(5) { animation-delay: 0.32s; }
}

/* Reduced motion: static, every step in its "on" look */
@media (prefers-reduced-motion: reduce) {
	.eg-flow__icon { background: var(--fl-on-bg); border-color: transparent; color: #fff; }
	.eg-flow__line { background: #9DBBF5; }
	.eg-flow__bars i, .eg-flow__dots i { background: var(--fl-live); }
}

@keyframes eg-flow-on-1 { 0% { background: var(--fl-on-bg); border-color: transparent; color: #fff; box-shadow: 0 0 0 9px var(--fl-ring); } 5% { box-shadow: 0 0 0 0 transparent; } 88% { background: var(--fl-on-bg); border-color: transparent; color: #fff; } 96%, 100% { background: var(--fl-off-bg); border-color: var(--fl-off-bd); color: var(--fl-off-fg); box-shadow: var(--fl-off-sh); } }
@keyframes eg-flow-on-2 { 0%, 15.9% { background: var(--fl-off-bg); border-color: var(--fl-off-bd); color: var(--fl-off-fg); box-shadow: var(--fl-off-sh); } 16% { background: var(--fl-on-bg); border-color: transparent; color: #fff; box-shadow: 0 0 0 9px var(--fl-ring); } 21% { box-shadow: 0 0 0 0 transparent; } 88% { background: var(--fl-on-bg); border-color: transparent; color: #fff; } 96%, 100% { background: var(--fl-off-bg); border-color: var(--fl-off-bd); color: var(--fl-off-fg); box-shadow: var(--fl-off-sh); } }
@keyframes eg-flow-on-3 { 0%, 31.9% { background: var(--fl-off-bg); border-color: var(--fl-off-bd); color: var(--fl-off-fg); box-shadow: var(--fl-off-sh); } 32% { background: var(--fl-on-bg); border-color: transparent; color: #fff; box-shadow: 0 0 0 9px var(--fl-ring); } 37% { box-shadow: 0 0 0 0 transparent; } 88% { background: var(--fl-on-bg); border-color: transparent; color: #fff; } 96%, 100% { background: var(--fl-off-bg); border-color: var(--fl-off-bd); color: var(--fl-off-fg); box-shadow: var(--fl-off-sh); } }
@keyframes eg-flow-on-4 { 0%, 47.9% { background: var(--fl-off-bg); border-color: var(--fl-off-bd); color: var(--fl-off-fg); box-shadow: var(--fl-off-sh); } 48% { background: var(--fl-on-bg); border-color: transparent; color: #fff; box-shadow: 0 0 0 9px var(--fl-ring); } 53% { box-shadow: 0 0 0 0 transparent; } 88% { background: var(--fl-on-bg); border-color: transparent; color: #fff; } 96%, 100% { background: var(--fl-off-bg); border-color: var(--fl-off-bd); color: var(--fl-off-fg); box-shadow: var(--fl-off-sh); } }
@keyframes eg-flow-on-5 { 0%, 63.9% { background: var(--fl-off-bg); border-color: var(--fl-off-bd); color: var(--fl-off-fg); box-shadow: var(--fl-off-sh); } 64% { background: var(--fl-on-bg); border-color: transparent; color: #fff; box-shadow: 0 0 0 9px var(--fl-ring); } 69% { box-shadow: 0 0 0 0 transparent; } 88% { background: var(--fl-on-bg); border-color: transparent; color: #fff; } 96%, 100% { background: var(--fl-off-bg); border-color: var(--fl-off-bd); color: var(--fl-off-fg); box-shadow: var(--fl-off-sh); } }

@keyframes eg-flow-dot-1 { 0%, 1% { left: 0; opacity: 0; } 2% { left: 0; opacity: 1; } 15% { left: calc(100% - 8px); opacity: 1; } 16%, 100% { left: calc(100% - 8px); opacity: 0; } }
@keyframes eg-flow-dot-2 { 0%, 17% { left: 0; opacity: 0; } 18% { left: 0; opacity: 1; } 31% { left: calc(100% - 8px); opacity: 1; } 32%, 100% { left: calc(100% - 8px); opacity: 0; } }
@keyframes eg-flow-dot-3 { 0%, 33% { left: 0; opacity: 0; } 34% { left: 0; opacity: 1; } 47% { left: calc(100% - 8px); opacity: 1; } 48%, 100% { left: calc(100% - 8px); opacity: 0; } }
@keyframes eg-flow-dot-4 { 0%, 49% { left: 0; opacity: 0; } 50% { left: 0; opacity: 1; } 63% { left: calc(100% - 8px); opacity: 1; } 64%, 100% { left: calc(100% - 8px); opacity: 0; } }

@keyframes eg-flow-dot-pulse { 0%, 16% { background: var(--fl-mute); transform: scale(1); } 20%, 30% { background: var(--fl-live); transform: scale(1.35); } 34%, 100% { background: var(--fl-mute); transform: scale(1); } }
@keyframes eg-flow-bar { 0%, 47.9% { transform: scaleY(0.15); background: var(--fl-mute); } 52% { transform: scaleY(1); background: var(--fl-live); } 88% { transform: scaleY(1); background: var(--fl-live); } 96%, 100% { transform: scaleY(0.15); background: var(--fl-mute); } }

@media (max-width: 480px) {
	.eg-flow { --eg-flow-ic: 46px; padding: 20px 12px 14px; }
	.eg-flow__title { margin-bottom: 22px; font-size: 12px; }
	.eg-flow__icon { border-radius: 14px; }
	.eg-flow__icon svg { width: 22px; height: 22px; }
	.eg-flow__name { font-size: 11px; margin-top: 10px; }
	.eg-flow__tag { font-size: 10px; padding: 2px 6px; }
	.eg-flow__node { min-height: 104px; }
}

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

/* ---- Dark navy variant (default in the hero) ---- */
.eg-flow--dark {
	--fl-off-bg: rgba(255, 255, 255, 0.06); --fl-off-bd: rgba(255, 255, 255, 0.2); --fl-off-fg: #9DBBF5; --fl-off-sh: none;
	--fl-on-bg: linear-gradient(135deg, #2F7BFF, #19A3F2); --fl-ring: rgba(70, 143, 255, 0.28);
	--fl-mute: rgba(255, 255, 255, 0.22); --fl-live: #6EB0FF; --fl-line: rgba(255, 255, 255, 0.18);
	background:
		radial-gradient(120% 80% at 85% 0%, rgba(70, 143, 255, 0.22) 0%, rgba(70, 143, 255, 0) 60%),
		linear-gradient(180deg, #1B3A8E 0%, #122764 50%, #0A1235 100%);
}
.eg-flow--dark .eg-flow__title { color: #9DBBF5; }
.eg-flow--dark .eg-flow__name { color: #fff; }
.eg-flow--dark .eg-flow__icon { box-shadow: none; }
.eg-flow--dark .eg-flow__tick { background: #22C55E; border-color: #122764; }
.eg-flow--dark .eg-flow__tag { background: rgba(110, 176, 255, 0.18); color: #BBD6FF; }
.eg-flow--dark .eg-flow__line i { background: #6EB0FF; box-shadow: 0 0 0 4px rgba(110, 176, 255, 0.28), 0 0 14px rgba(110, 176, 255, 0.7); }
.eg-flow--dark .eg-flow__legend { color: #B8C7EA; border-top-color: rgba(255, 255, 255, 0.12); }
@media (prefers-reduced-motion: reduce) {
	.eg-flow--dark .eg-flow__line { background: rgba(110, 176, 255, 0.5); }
}
