:root {
	--bg: #edf1f7;
	--bg-accent: #d5e2f7;
	--card: #ffffff;
	--card-border: #e1e5ec;
	--text: #0f172a;
	--muted: #5b6475;
	--accent: #0f766e;
	--accent-2: #0ea5e9;
	--shadow: 0 22px 60px rgba(17, 24, 39, 0.14);
	font-family: 'Space Grotesk', 'Soehne', 'Aktiv Grotesk', system-ui, -apple-system, sans-serif;
	color: var(--text);
	background:
		radial-gradient(40% 60% at 18% 12%, rgba(14, 165, 233, 0.14), transparent),
		radial-gradient(40% 50% at 80% 4%, rgba(15, 118, 110, 0.12), transparent),
		radial-gradient(40% 35% at 82% 85%, rgba(17, 24, 39, 0.06), transparent),
		var(--bg);
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	min-height: 100vh;
	background: transparent;
	color: var(--text);
}

a {
	color: inherit;
	text-decoration: none;
}

a:hover {
	color: var(--accent);
}

.page {
	width: min(1200px, calc(100% - clamp(24px, 5vw, 72px)));
	margin: 0 auto;
	padding: clamp(12px, 2vw, 18px) 0 clamp(24px, 3vw, 36px);
}

.topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
	opacity: 0.95;
}

.brand {
	font-weight: 700;
	letter-spacing: -0.01em;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.status-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--accent), #22c55e);
	box-shadow: 0 0 0 8px rgba(15, 118, 110, 0.12);
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 16px;
	font-size: 0.95rem;
	flex-wrap: wrap;
}

.hero {
	padding: clamp(10px, 4vw, 28px) 0 14px;
	min-height: calc(100vh - 60px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 16px;
}

.chat-shell {
	width: 100%;
	background: var(--card);
	border: 1px solid var(--card-border);
	border-radius: 20px;
	box-shadow: var(--shadow);
	padding: clamp(14px, 3vw, 18px);
	position: relative;
	overflow: hidden;
	min-height: clamp(520px, 78vh, 860px);
	max-width: 1040px;
}

.chat-shell::before {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(35% 35% at 20% 20%, rgba(15, 118, 110, 0.12), transparent),
		radial-gradient(40% 40% at 80% 0%, rgba(17, 24, 39, 0.08), transparent);
	opacity: 0.7;
}

.chat-shell::after {
	content: '';
	position: absolute;
	inset: 1px;
	border-radius: 20px;
	border: 1px solid rgba(255, 255, 255, 0.8);
	pointer-events: none;
}

.chat-inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 14px;
	height: 100%;
}

.chat-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
}

.chat-heading h2 {
	margin: 0;
	font-size: clamp(1.2rem, 2vw, 1.35rem);
	letter-spacing: -0.01em;
}

.badge {
	padding: 6px 12px;
	background: rgba(15, 118, 110, 0.1);
	color: var(--accent);
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.9rem;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.chat-window {
	border: 1px solid var(--card-border);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.96);
	flex: 1;
	min-height: 320px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.message-list {
	flex: 1;
	min-height: 0;
	padding: 12px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.message {
	max-width: 86%;
	padding: 10px 12px;
	border-radius: 12px;
	line-height: 1.5;
	font-size: 0.98rem;
	border: 1px solid rgba(17, 24, 39, 0.06);
	box-shadow: 0 8px 20px rgba(17, 24, 39, 0.06);
}

.message.agent {
	align-self: flex-start;
	background: rgba(15, 118, 110, 0.08);
	border-color: rgba(15, 118, 110, 0.2);
}

.message.visitor {
	align-self: flex-end;
	background: #111827;
	color: #f7f7fb;
	border-color: rgba(17, 24, 39, 0.8);
}

.message .meta {
	display: block;
	font-size: 0.78rem;
	color: var(--muted);
	margin-bottom: 4px;
}

.message.typing .body {
	letter-spacing: 3px;
	opacity: 0.7;
}

.composer {
	margin-top: 8px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.input-row {
	display: flex;
	align-items: center;
	gap: 10px;
	border: 1px solid rgba(17, 24, 39, 0.12);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.96);
	padding: 8px 8px 8px 12px;
}

.composer textarea {
	flex: 1;
	resize: none;
	min-height: 56px;
	max-height: 140px;
	padding: 8px 6px;
	border: none;
	font-size: 1rem;
	line-height: 1.45;
	background: transparent;
	overflow-y: hidden;
}

.composer textarea:focus {
	outline: none;
}

.send-btn {
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	color: #f9fafb;
	border: none;
	border-radius: 12px;
	padding: 0 14px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 10px 20px rgba(15, 118, 110, 0.2);
	transition: transform 0.08s ease, box-shadow 0.16s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 100%;
	min-height: 56px;
	padding-left: 16px;
	padding-right: 16px;
}

.send-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 26px rgba(15, 118, 110, 0.26);
}

.send-hint {
	font-size: 0.75rem;
	color: rgba(249, 250, 251, 0.8);
	font-weight: 600;
}

.composer-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 0.9rem;
	color: var(--muted);
	padding: 0 2px;
}

.status {
	font-size: 0.9rem;
	color: var(--muted);
}

.quick-prompts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 4px;
}

.prompt-chip {
	padding: 8px 12px;
	background: rgba(14, 165, 233, 0.1);
	border: 1px solid rgba(14, 165, 233, 0.3);
	border-radius: 999px;
	font-size: 0.9rem;
	color: var(--accent);
	cursor: pointer;
	transition: all 0.16s ease;
}

.prompt-chip:hover {
	background: rgba(14, 165, 233, 0.18);
	border-color: rgba(14, 165, 233, 0.5);
	color: var(--text);
}

.footer-note {
	text-align: center;
	margin-top: 8px;
	color: var(--muted);
	font-size: 0.95rem;
}

@media (max-width: 900px) {
	.page { width: min(1080px, calc(100% - 28px)); }
	.topbar { flex-wrap: wrap; }
	.hero { min-height: unset; }
	.chat-shell { min-height: clamp(360px, 70vh, 520px); }
}

@media (max-width: 620px) {
	.page { width: calc(100% - 20px); }
	.topbar { align-items: flex-start; }
	.nav-links { gap: 10px; }
	.brand { gap: 6px; }
	.chat-shell { padding: 12px; }
	.chat-window { min-height: 220px; }
	.footer-note { font-size: 0.9rem; }
}
