/*
 * BOT — page styles for the conversational-AI promo page.
 * Builds on css/theme.css (tokens, nav, buttons, cards, footer).
 */

/* ---------- Nav ---------- */
.nav-logo img.bot-logo { height: 44px; }

/* ---------- Chat mock ---------- */
.chat-wrap {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: var(--space-6);
	align-items: start;
}
.chat {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-card);
	overflow: hidden;
}
.chat-head {
	display: flex;
	align-items: center;
	gap: var(--space-1);
	padding: var(--space-2) var(--space-3);
	border-bottom: 1px solid var(--border);
	font-family: var(--font-mono);
	font-size: 13px;
	line-height: 18px;
	color: var(--text-secondary);
}
.dot-live {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--good);
	flex-shrink: 0;
}
.chat-head .langs { margin-left: auto; }
.chat-body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: var(--space-3);
	min-height: 380px;
}
.msg {
	max-width: 80%;
	padding: 10px 16px;
	border-radius: 16px;
	font-size: 15px;
	line-height: 22px;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.msg.show { opacity: 1; transform: translateY(0); }
.msg.bot {
	align-self: flex-start;
	background: var(--surface-raised);
	color: var(--text);
	border-bottom-left-radius: 4px;
}
.msg.user {
	align-self: flex-end;
	background: var(--text);
	color: #000;
	border-bottom-right-radius: 4px;
	font-weight: 500;
}
.msg.notice {
	align-self: center;
	max-width: 100%;
	background: none;
	padding: 0 var(--space-2);
	font-family: var(--font-mono);
	font-size: 12px;
	line-height: 16px;
	text-align: center;
	color: var(--text-secondary);
}
.typing-dots {
	display: inline-flex;
	gap: 4px;
	align-items: center;
	height: 22px;
}
.typing-dots i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--text-secondary);
	animation: bounce 1.2s infinite;
}
.typing-dots i:nth-child(2) { animation-delay: 0.15s; }
.typing-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce {
	0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
	30% { transform: translateY(-4px); opacity: 1; }
}
.chat-input {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	padding: var(--space-2) var(--space-3);
	border-top: 1px solid var(--border);
	color: var(--text-secondary);
	font-size: 15px;
	line-height: 20px;
}
.chat-input .fake-field {
	flex: 1;
	background: #000;
	border: 1px solid var(--border);
	border-radius: var(--radius-pill);
	padding: 10px 20px;
	min-height: 44px;
	display: flex;
	align-items: center;
}
.caret {
	display: inline-block;
	width: 1px;
	height: 1.1em;
	background: var(--text);
	margin-left: 2px;
	vertical-align: text-bottom;
	animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.chat-aside h2 {
	font-size: 28px;
	line-height: 34px;
	font-weight: 700;
	letter-spacing: -0.015em;
	margin-bottom: var(--space-3);
}
.chat-aside p {
	color: var(--text-secondary);
	margin-bottom: var(--space-3);
}
.mode-chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-1);
	margin-bottom: var(--space-4);
}

/* ---------- Pipeline ---------- */
.pipeline {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--space-2);
	position: relative;
	padding: var(--space-4);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-card);
}
.pipeline::before {
	content: "";
	position: absolute;
	top: calc(var(--space-4) + 22px);
	left: calc(var(--space-4) + 44px);
	right: calc(var(--space-4) + 44px);
	height: 1px;
	background: var(--border-strong);
}
.pipe-step {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	flex: 1;
	min-width: 0;
}
.pipe-step .num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #000;
	border: 1px solid var(--border-strong);
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--text);
	margin-bottom: var(--space-2);
	transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.pipe-step:hover .num { background: var(--text); color: #000; border-color: var(--text); }
.pipe-step h4 {
	font-size: 17px;
	line-height: 22px;
	font-weight: 600;
	margin-bottom: 4px;
}
.pipe-step p {
	font-family: var(--font-mono);
	font-size: 12px;
	line-height: 16px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--text-secondary);
}

/* ---------- Case study + CTA ---------- */
.case-band {
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	padding: var(--space-12) 0;
}
.case-band blockquote {
	font-size: clamp(24px, 3.4vw, 34px);
	line-height: 1.25;
	font-weight: 600;
	letter-spacing: -0.02em;
	max-width: 880px;
	margin-bottom: var(--space-6);
}
.case-band blockquote .muted { color: var(--text-secondary); }

.cta-band {
	padding: var(--space-12) 0 0;
	text-align: center;
}
.cta-band h2 {
	font-size: clamp(28px, 4vw, 40px);
	line-height: 1.25;
	font-weight: 600;
	letter-spacing: -0.02em;
	margin-bottom: var(--space-2);
}
.cta-band p {
	color: var(--text-secondary);
	max-width: 560px;
	margin: 0 auto var(--space-6);
}

/* ---------- Responsive & motion ---------- */
@media (max-width: 900px) {
	.chat-wrap { grid-template-columns: 1fr; }
	.pipeline { flex-direction: column; align-items: stretch; }
	.pipeline::before { display: none; }
	.pipe-step { flex-direction: row; text-align: left; gap: var(--space-2); align-items: center; }
	.pipe-step .num { margin-bottom: 0; flex-shrink: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.msg { transition: none; opacity: 1; transform: none; }
	.typing-dots i { animation: none; }
	.caret { animation: none; }
	.pipe-step .num { transition: none; }
}
