:root {
	color-scheme: dark;
	--bg-main: #060813;
	--bg-surface: #0c1024;
	--bg-surface-elevated: #131938;
	--bg-card: rgba(16, 22, 51, 0.65);
	--bg-card-hover: rgba(26, 35, 78, 0.8);
	--border-subtle: rgba(255, 255, 255, 0.08);
	--border-glow: rgba(139, 92, 246, 0.3);
	--border-blue-glow: rgba(56, 189, 248, 0.35);

	--accent-blue: #38bdf8;
	--accent-blue-deep: #2563eb;
	--accent-purple: #a855f7;
	--accent-purple-glow: #8b5cf6;
	--accent-pink: #ec4899;
	--accent-cyan: #06b6d4;

	--text-primary: #f8fafc;
	--text-secondary: #94a3b8;
	--text-muted: #64748b;
	--text-accent: #c084fc;

	--gradient-primary: linear-gradient(135deg, #38bdf8 0%, #8b5cf6 50%, #ec4899 100%);
	--gradient-blue-purple: linear-gradient(135deg, #38bdf8 0%, #a855f7 100%);
	--gradient-card-glow: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.15), transparent 70%);
	--gradient-ai-glow: radial-gradient(circle at center, rgba(56, 189, 248, 0.25) 0%, rgba(168, 85, 247, 0.15) 50%, transparent 80%);

	--glow-blue: 0 0 25px rgba(56, 189, 248, 0.35);
	--glow-purple: 0 0 25px rgba(168, 85, 247, 0.4);
	--glow-dual: 0 4px 25px rgba(56, 189, 248, 0.25), 0 0 40px rgba(168, 85, 247, 0.2);

	--radius-sm: 8px;
	--radius-md: 14px;
	--radius-lg: 20px;
	--radius-xl: 28px;
	--radius-full: 9999px;

	--font-sans: 'Outfit', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
	--font-mono: 'JetBrains Mono', monospace;
	--transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
	background-color: var(--bg-main);
	color: var(--text-primary);
	font-family: var(--font-sans);
}

body {
	background-color: var(--bg-main);
	background-image: 
		radial-gradient(ellipse 80% 50% at 50% -20%, rgba(120, 119, 198, 0.22), transparent),
		radial-gradient(circle at 10% 40%, rgba(56, 189, 248, 0.08), transparent 50%),
		radial-gradient(circle at 90% 60%, rgba(168, 85, 247, 0.1), transparent 50%);
	background-attachment: fixed;
	min-height: 100vh;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

/* Custom modern scrollbar */
::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}
::-webkit-scrollbar-track {
	background: #080b18;
}
::-webkit-scrollbar-thumb {
	background: #1e293b;
	border-radius: 4px;
	border: 2px solid #080b18;
}
::-webkit-scrollbar-thumb:hover {
	background: #334155;
}

/* Base shell & Layout */
.app-container {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	position: relative;
	padding-bottom: 70px; /* Space for mobile floating nav */
}

@media (min-width: 768px) {
	.app-container {
		padding-bottom: 0;
	}
}

.main-content {
	flex: 1;
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 1.25rem;
}

/* Background Glowing Orbs */
.bg-ambient-layer {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	overflow: hidden;
}

.orb-1 {
	position: absolute;
	top: 5%;
	left: 50%;
	transform: translateX(-50%);
	width: 600px;
	height: 400px;
	background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(139, 92, 246, 0.12) 40%, transparent 70%);
	filter: blur(80px);
	border-radius: 50%;
	animation: pulseGlow 8s ease-in-out infinite alternate;
}

.orb-2 {
	position: absolute;
	top: 45%;
	right: -10%;
	width: 450px;
	height: 450px;
	background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 70%);
	filter: blur(90px);
	border-radius: 50%;
}

.orb-3 {
	position: absolute;
	bottom: 10%;
	left: -10%;
	width: 400px;
	height: 400px;
	background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
	filter: blur(80px);
	border-radius: 50%;
}

@keyframes pulseGlow {
	0% {
		opacity: 0.7;
		transform: translateX(-50%) scale(0.95);
	}
	100% {
		opacity: 1;
		transform: translateX(-50%) scale(1.08);
	}
}

/* Navbar */
.navbar {
	position: sticky;
	top: 0;
	z-index: 100;
	width: 100%;
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	background: rgba(6, 8, 19, 0.82);
	border-bottom: 1px solid var(--border-subtle);
	transition: var(--transition-smooth);
}

.nav-inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0.85rem 1.25rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.brand-logo {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
	color: var(--text-primary);
	font-weight: 700;
	font-size: 1.35rem;
	letter-spacing: -0.02em;
}

.brand-icon-wrapper {
	position: relative;
	width: 38px;
	height: 38px;
	border-radius: var(--radius-md);
	background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 0 18px rgba(139, 92, 246, 0.5);
}

.brand-icon-inner {
	color: #ffffff;
}

.brand-title {
	background: var(--gradient-blue-purple);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	font-weight: 800;
}

.brand-tag {
	font-size: 0.65rem;
	font-weight: 700;
	padding: 0.15rem 0.45rem;
	border-radius: var(--radius-full);
	background: rgba(139, 92, 246, 0.18);
	color: #c084fc;
	border: 1px solid rgba(139, 92, 246, 0.35);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-left: 0.25rem;
}

.nav-links {
	display: none;
	align-items: center;
	gap: 1.5rem;
	list-style: none;
}

@media (min-width: 880px) {
	.nav-links {
		display: flex;
	}
}

.nav-link {
	color: var(--text-secondary);
	text-decoration: none;
	font-size: 0.925rem;
	font-weight: 500;
	transition: var(--transition-smooth);
	padding: 0.4rem 0.6rem;
	border-radius: var(--radius-sm);
}

.nav-link:hover,
.nav-link.active {
	color: var(--text-primary);
	background: rgba(255, 255, 255, 0.05);
}

.nav-actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

/* Mobile Nav Drawer Button */
.menu-toggle-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--border-subtle);
	color: var(--text-primary);
	width: 40px;
	height: 40px;
	border-radius: var(--radius-md);
	cursor: pointer;
}

@media (min-width: 880px) {
	.menu-toggle-btn {
		display: none;
	}
}

/* Mobile Dropdown Menu */
.mobile-nav-menu {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1rem 1.25rem 1.5rem;
	background: rgba(10, 14, 33, 0.98);
	border-bottom: 1px solid var(--border-subtle);
	backdrop-filter: blur(20px);
	animation: slideDown 0.25s ease-out;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.mobile-nav-link {
	padding: 0.75rem 1rem;
	color: var(--text-secondary);
	text-decoration: none;
	font-weight: 500;
	border-radius: var(--radius-md);
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: rgba(255, 255, 255, 0.02);
}

.mobile-nav-link:active,
.mobile-nav-link.active {
	color: #fff;
	background: rgba(139, 92, 246, 0.15);
	border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Buttons */
.btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	padding: 0.75rem 1.5rem;
	background: linear-gradient(135deg, #0284c7 0%, #7c3aed 50%, #9333ea 100%);
	color: #ffffff;
	font-family: var(--font-sans);
	font-size: 0.95rem;
	font-weight: 600;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: var(--radius-full);
	cursor: pointer;
	box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
	transition: var(--transition-smooth);
	text-decoration: none;
	white-space: nowrap;
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 28px rgba(124, 58, 237, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4);
	filter: brightness(1.08);
}

.btn-primary:active {
	transform: translateY(0);
}

.btn-secondary-glow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	padding: 0.75rem 1.4rem;
	background: rgba(16, 22, 51, 0.7);
	color: var(--text-primary);
	font-family: var(--font-sans);
	font-size: 0.95rem;
	font-weight: 600;
	border: 1px solid rgba(139, 92, 246, 0.35);
	border-radius: var(--radius-full);
	cursor: pointer;
	backdrop-filter: blur(10px);
	transition: var(--transition-smooth);
	text-decoration: none;
	white-space: nowrap;
}

.btn-secondary-glow:hover {
	background: rgba(28, 38, 86, 0.85);
	border-color: rgba(56, 189, 248, 0.6);
	transform: translateY(-2px);
	box-shadow: 0 4px 20px rgba(56, 189, 248, 0.2);
}

.btn-icon {
	width: 38px;
	height: 38px;
	border-radius: var(--radius-md);
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--border-subtle);
	color: var(--text-secondary);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: var(--transition-smooth);
}

.btn-icon:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(139, 92, 246, 0.4);
}

/* Bottom Mobile Navigation */
.mobile-bottom-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 90;
	background: rgba(8, 11, 25, 0.92);
	backdrop-filter: blur(20px);
	border-top: 1px solid var(--border-subtle);
	display: flex;
	align-items: center;
	justify-content: space-around;
	padding: 0.5rem 0.25rem;
}

@media (min-width: 768px) {
	.mobile-bottom-bar {
		display: none;
	}
}

.bottom-tab-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25rem;
	color: var(--text-muted);
	text-decoration: none;
	font-size: 0.7rem;
	font-weight: 500;
	padding: 0.35rem 0.65rem;
	border-radius: var(--radius-sm);
	transition: var(--transition-smooth);
	cursor: pointer;
	background: transparent;
	border: none;
}

.bottom-tab-item.active,
.bottom-tab-item:active {
	color: #38bdf8;
}

.bottom-tab-item.active svg {
	filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.7));
}

/* Hero Section */
.hero-section {
	padding: 3.5rem 0 3rem;
	text-align: center;
	position: relative;
}

@media (min-width: 768px) {
	.hero-section {
		padding: 5rem 0 4.5rem;
	}
}

.hero-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.4rem 1rem;
	border-radius: var(--radius-full);
	background: rgba(139, 92, 246, 0.12);
	border: 1px solid rgba(139, 92, 246, 0.3);
	color: #c084fc;
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 1.5rem;
	box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
	animation: floatPill 4s ease-in-out infinite;
}

@keyframes floatPill {
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-4px);
	}
}

.hero-pill-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #38bdf8;
	box-shadow: 0 0 8px #38bdf8;
}

.hero-title {
	font-size: clamp(2.4rem, 6.5vw, 4.2rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.03em;
	margin-bottom: 1.25rem;
}

.hero-title-gradient {
	background: linear-gradient(135deg, #ffffff 10%, #93c5fd 40%, #c084fc 80%, #f472b6 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	display: inline-block;
}

.hero-subtitle {
	font-size: clamp(1.05rem, 2.8vw, 1.35rem);
	color: var(--text-secondary);
	max-width: 680px;
	margin: 0 auto 2.25rem;
	line-height: 1.6;
}

.hero-cta-group {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 2.5rem;
}

/* Feature mini chips below Hero */
.hero-badges-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-top: 1rem;
}

.hero-chip {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.4rem 0.85rem;
	border-radius: var(--radius-full);
	background: rgba(16, 22, 51, 0.5);
	border: 1px solid var(--border-subtle);
	font-size: 0.8rem;
	color: var(--text-secondary);
}

/* Interactive AI Chat Section */
.chat-section {
	padding: 2.5rem 0 4rem;
	scroll-margin-top: 5rem;
}

.section-header {
	text-align: center;
	margin-bottom: 2rem;
}

.section-badge {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #38bdf8;
	padding: 0.25rem 0.75rem;
	border-radius: var(--radius-full);
	background: rgba(56, 189, 248, 0.1);
	border: 1px solid rgba(56, 189, 248, 0.25);
	margin-bottom: 0.5rem;
}

.section-title {
	font-size: clamp(1.8rem, 4vw, 2.5rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--text-primary);
	margin-bottom: 0.5rem;
}

.section-subtitle {
	color: var(--text-secondary);
	font-size: 1rem;
	max-width: 600px;
	margin: 0 auto;
}

/* Chat Container Glass Card */
.chat-shell {
	display: grid;
	grid-template-columns: 1fr;
	background: rgba(12, 16, 36, 0.85);
	border: 1px solid rgba(139, 92, 246, 0.25);
	border-radius: var(--radius-xl);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), var(--glow-dual);
	overflow: hidden;
	position: relative;
	min-height: 640px;
	height: auto;
}

@media (min-width: 960px) {
	.chat-shell {
		grid-template-columns: 280px 1fr;
		height: 720px;
	}
}

/* Chat Sidebar (Historial) */
.chat-sidebar {
	background: rgba(9, 12, 28, 0.95);
	border-right: 1px solid var(--border-subtle);
	display: flex;
	flex-direction: column;
	padding: 1rem;
	gap: 1rem;
}

/* Mobile toggle for sidebar */
.sidebar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.sidebar-title {
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--text-secondary);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.btn-new-chat {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	padding: 0.7rem 1rem;
	background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(168, 85, 247, 0.15));
	border: 1px solid rgba(139, 92, 246, 0.4);
	color: #ffffff;
	border-radius: var(--radius-md);
	font-weight: 600;
	font-size: 0.9rem;
	cursor: pointer;
	transition: var(--transition-smooth);
}

.btn-new-chat:hover {
	background: linear-gradient(135deg, rgba(56, 189, 248, 0.28), rgba(168, 85, 247, 0.28));
	border-color: rgba(56, 189, 248, 0.6);
	box-shadow: 0 0 16px rgba(139, 92, 246, 0.3);
}

.history-list {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	overflow-y: auto;
	flex: 1;
	max-height: 200px;
}

@media (min-width: 960px) {
	.history-list {
		max-height: 480px;
	}
}

.history-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.6rem 0.8rem;
	border-radius: var(--radius-md);
	background: transparent;
	color: var(--text-secondary);
	font-size: 0.85rem;
	cursor: pointer;
	border: 1px solid transparent;
	transition: var(--transition-smooth);
	text-align: left;
	gap: 0.5rem;
}

.history-item:hover {
	background: rgba(255, 255, 255, 0.05);
	color: var(--text-primary);
}

.history-item.active {
	background: rgba(139, 92, 246, 0.15);
	border-color: rgba(139, 92, 246, 0.35);
	color: #ffffff;
}

.history-item-content {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	flex: 1;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.history-item-title {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Chat Main Area */
.chat-main {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: rgba(12, 16, 36, 0.6);
	position: relative;
}

.chat-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.85rem 1.25rem;
	border-bottom: 1px solid var(--border-subtle);
	background: rgba(12, 16, 36, 0.9);
}

.chat-model-info {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.ai-status-indicator {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #10b981;
	box-shadow: 0 0 8px #10b981;
	position: relative;
}

.model-name {
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--text-primary);
}

.model-badge {
	font-size: 0.7rem;
	color: #38bdf8;
	background: rgba(56, 189, 248, 0.12);
	border: 1px solid rgba(56, 189, 248, 0.25);
	padding: 0.1rem 0.45rem;
	border-radius: var(--radius-full);
}

/* Mode selector chips */
.chat-modes {
	display: flex;
	gap: 0.4rem;
	align-items: center;
}

.mode-chip {
	padding: 0.3rem 0.65rem;
	font-size: 0.75rem;
	border-radius: var(--radius-full);
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--border-subtle);
	color: var(--text-secondary);
	cursor: pointer;
	transition: var(--transition-smooth);
}

.mode-chip.active {
	background: rgba(139, 92, 246, 0.2);
	border-color: rgba(139, 92, 246, 0.5);
	color: #fff;
	box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

/* Messages Scroll Container */
.messages-container {
	flex: 1;
	overflow-y: auto;
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	scroll-behavior: smooth;
	min-height: 360px;
	max-height: 480px;
}

@media (min-width: 960px) {
	.messages-container {
		max-height: 520px;
	}
}

/* Welcome empty chat state */
.chat-welcome {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 2rem 1rem;
	margin: auto 0;
}

.welcome-logo-glow {
	width: 64px;
	height: 64px;
	border-radius: 20px;
	background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--glow-dual);
	margin-bottom: 1.25rem;
	animation: floatPill 3s ease-in-out infinite;
}

.welcome-title {
	font-size: 1.4rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
	color: #fff;
}

.welcome-subtitle {
	color: var(--text-secondary);
	font-size: 0.95rem;
	max-width: 480px;
	margin-bottom: 1.75rem;
}

/* Suggestions chips */
.suggestions-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
	gap: 0.75rem;
	width: 100%;
	max-width: 620px;
}

.suggestion-card {
	padding: 0.85rem 1rem;
	background: rgba(16, 22, 51, 0.7);
	border: 1px solid rgba(139, 92, 246, 0.2);
	border-radius: var(--radius-md);
	color: var(--text-secondary);
	font-size: 0.875rem;
	text-align: left;
	cursor: pointer;
	transition: var(--transition-smooth);
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.suggestion-card:hover {
	background: rgba(28, 38, 86, 0.85);
	border-color: rgba(56, 189, 248, 0.5);
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 4px 16px rgba(56, 189, 248, 0.15);
}

.suggestion-icon {
	color: #38bdf8;
	flex-shrink: 0;
}

/* Chat Message Bubbles */
.message-row {
	display: flex;
	gap: 0.85rem;
	width: 100%;
	animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.message-row.user {
	justify-content: flex-end;
}

.message-avatar {
	width: 34px;
	height: 34px;
	border-radius: var(--radius-md);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 0.85rem;
	font-weight: 700;
}

.message-avatar.ai {
	background: linear-gradient(135deg, #0284c7, #7c3aed);
	color: #fff;
	box-shadow: 0 0 12px rgba(124, 58, 237, 0.4);
}

.message-avatar.user {
	background: #334155;
	color: #f1f5f9;
}

.message-content-wrapper {
	max-width: 85%;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

@media (min-width: 768px) {
	.message-content-wrapper {
		max-width: 78%;
	}
}

.message-bubble {
	padding: 0.9rem 1.15rem;
	border-radius: var(--radius-lg);
	font-size: 0.95rem;
	line-height: 1.6;
	word-break: break-word;
}

.message-row.user .message-bubble {
	background: linear-gradient(135deg, #1d4ed8 0%, #6d28d9 100%);
	color: #ffffff;
	border-top-right-radius: 4px;
	box-shadow: 0 4px 15px rgba(109, 40, 217, 0.25);
}

.message-row.ai .message-bubble {
	background: rgba(19, 25, 56, 0.85);
	border: 1px solid rgba(139, 92, 246, 0.25);
	color: var(--text-primary);
	border-top-left-radius: 4px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.message-meta {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 0.72rem;
	color: var(--text-muted);
	padding: 0 0.25rem;
}

.message-row.user .message-meta {
	justify-content: flex-end;
}

.message-action-btn {
	background: transparent;
	border: none;
	color: var(--text-muted);
	cursor: pointer;
	padding: 0.15rem 0.3rem;
	border-radius: var(--radius-sm);
	transition: var(--transition-smooth);
	display: flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.75rem;
}

.message-action-btn:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
}

/* Code Snippet Formatter inside AI responses */
.code-block-wrapper {
	margin: 0.75rem 0;
	border-radius: var(--radius-md);
	background: #060914;
	border: 1px solid rgba(56, 189, 248, 0.2);
	overflow: hidden;
}

.code-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.4rem 0.85rem;
	background: rgba(255, 255, 255, 0.04);
	border-bottom: 1px solid var(--border-subtle);
	font-family: var(--font-mono);
	font-size: 0.75rem;
	color: #38bdf8;
}

.code-content {
	padding: 0.85rem;
	font-family: var(--font-mono);
	font-size: 0.85rem;
	color: #e2e8f0;
	overflow-x: auto;
	white-space: pre-wrap;
	line-height: 1.5;
}

/* Typing / Generating Indicator */
.typing-indicator-box {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.5rem 0.85rem;
	background: rgba(19, 25, 56, 0.85);
	border: 1px solid rgba(139, 92, 246, 0.3);
	border-radius: var(--radius-lg);
	color: #c084fc;
	font-size: 0.85rem;
}

.typing-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #38bdf8;
	animation: bounceDot 1.4s infinite ease-in-out both;
}
.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounceDot {
	0%, 80%, 100% {
		transform: scale(0);
		opacity: 0.4;
	}
	40% {
		transform: scale(1);
		opacity: 1;
	}
}

/* Chat Input Bar */
.chat-input-area {
	padding: 1rem 1.25rem;
	background: rgba(9, 12, 28, 0.95);
	border-top: 1px solid var(--border-subtle);
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.chat-input-row {
	display: flex;
	align-items: flex-end;
	gap: 0.6rem;
	background: rgba(19, 25, 56, 0.8);
	border: 1px solid rgba(139, 92, 246, 0.35);
	border-radius: var(--radius-xl);
	padding: 0.45rem 0.6rem 0.45rem 1rem;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	transition: var(--transition-smooth);
}

.chat-input-row:focus-within {
	border-color: #38bdf8;
	box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

.chat-textarea {
	flex: 1;
	background: transparent;
	border: none;
	outline: none;
	color: #ffffff;
	font-family: var(--font-sans);
	font-size: 0.95rem;
	resize: none;
	max-height: 120px;
	padding: 0.4rem 0;
	line-height: 1.4;
}

.chat-textarea::placeholder {
	color: var(--text-muted);
}

.chat-send-btn {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: linear-gradient(135deg, #0284c7, #8b5cf6);
	border: none;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
	transition: var(--transition-smooth);
	box-shadow: 0 0 14px rgba(139, 92, 246, 0.4);
}

.chat-send-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
	box-shadow: none;
}

.chat-send-btn:not(:disabled):hover {
	transform: scale(1.06);
	filter: brightness(1.1);
	box-shadow: 0 0 20px rgba(56, 189, 248, 0.6);
}

.chat-input-hints {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 0.75rem;
	color: var(--text-muted);
	padding: 0 0.5rem;
}

.quick-prompts-scroller {
	display: flex;
	gap: 0.5rem;
	overflow-x: auto;
	padding-bottom: 0.25rem;
	scrollbar-width: none;
}
.quick-prompts-scroller::-webkit-scrollbar {
	display: none;
}

.quick-prompt-tag {
	padding: 0.25rem 0.65rem;
	border-radius: var(--radius-full);
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--border-subtle);
	color: var(--text-secondary);
	font-size: 0.75rem;
	white-space: nowrap;
	cursor: pointer;
	transition: var(--transition-smooth);
}

.quick-prompt-tag:hover {
	background: rgba(56, 189, 248, 0.12);
	border-color: rgba(56, 189, 248, 0.35);
	color: #fff;
}

/* Tools Section */
.tools-section {
	padding: 5rem 0;
	scroll-margin-top: 4rem;
}

.tools-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
	gap: 1.5rem;
}

.tool-card {
	background: var(--bg-card);
	border: 1px solid rgba(139, 92, 246, 0.18);
	border-radius: var(--radius-xl);
	padding: 1.75rem;
	backdrop-filter: blur(16px);
	transition: var(--transition-smooth);
	display: flex;
	flex-direction: column;
	gap: 1rem;
	position: relative;
	overflow: hidden;
}

.tool-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.6), rgba(168, 85, 247, 0.6), transparent);
	opacity: 0;
	transition: var(--transition-smooth);
}

.tool-card:hover {
	background: var(--bg-card-hover);
	border-color: rgba(168, 85, 247, 0.45);
	transform: translateY(-4px);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 0 25px rgba(139, 92, 246, 0.2);
}

.tool-card:hover::before {
	opacity: 1;
}

.tool-icon-wrapper {
	width: 52px;
	height: 52px;
	border-radius: var(--radius-lg);
	background: rgba(139, 92, 246, 0.12);
	border: 1px solid rgba(139, 92, 246, 0.3);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.6rem;
	box-shadow: 0 0 16px rgba(139, 92, 246, 0.15);
}

.tool-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: #fff;
}

.tool-description {
	color: var(--text-secondary);
	font-size: 0.92rem;
	line-height: 1.55;
	flex: 1;
}

.tool-action-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	color: #38bdf8;
	font-weight: 600;
	font-size: 0.875rem;
	text-decoration: none;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
	transition: var(--transition-smooth);
	margin-top: 0.5rem;
}

.tool-action-btn:hover {
	color: #c084fc;
	gap: 0.75rem;
}

/* Features Section */
.features-section {
	padding: 5rem 0;
	scroll-margin-top: 4rem;
}

.features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
	gap: 1.25rem;
}

.feature-card {
	background: rgba(14, 19, 44, 0.6);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-lg);
	padding: 1.5rem;
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	transition: var(--transition-smooth);
}

.feature-card:hover {
	border-color: rgba(56, 189, 248, 0.35);
	background: rgba(20, 27, 60, 0.75);
	transform: translateY(-2px);
}

.feature-icon-badge {
	width: 44px;
	height: 44px;
	border-radius: var(--radius-md);
	background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(139, 92, 246, 0.15));
	border: 1px solid rgba(56, 189, 248, 0.25);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.35rem;
	flex-shrink: 0;
}

.feature-info {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.feature-heading {
	font-size: 1.05rem;
	font-weight: 700;
	color: #fff;
}

.feature-desc {
	font-size: 0.875rem;
	color: var(--text-secondary);
	line-height: 1.5;
}

/* FAQ Section */
.faq-section {
	padding: 5rem 0;
	scroll-margin-top: 4rem;
}

.faq-list {
	max-width: 780px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.faq-item {
	background: rgba(14, 19, 44, 0.6);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition: var(--transition-smooth);
}

.faq-item.open {
	border-color: rgba(139, 92, 246, 0.4);
	background: rgba(18, 24, 54, 0.85);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.faq-question-btn {
	width: 100%;
	padding: 1.25rem 1.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: transparent;
	border: none;
	color: var(--text-primary);
	font-family: var(--font-sans);
	font-size: 1.05rem;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
	gap: 1rem;
}

.faq-chevron {
	color: #38bdf8;
	transition: transform 0.3s ease;
	flex-shrink: 0;
}

.faq-item.open .faq-chevron {
	transform: rotate(180deg);
}

.faq-answer {
	padding: 0 1.5rem 1.25rem;
	color: var(--text-secondary);
	font-size: 0.95rem;
	line-height: 1.6;
	animation: fadeIn 0.25s ease-out;
}

/* Contact Section */
.contact-section {
	padding: 5rem 0 6rem;
	scroll-margin-top: 4rem;
}

.contact-card {
	max-width: 680px;
	margin: 0 auto;
	background: rgba(14, 19, 44, 0.75);
	border: 1px solid rgba(139, 92, 246, 0.25);
	border-radius: var(--radius-xl);
	padding: 2.25rem 1.75rem;
	backdrop-filter: blur(16px);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35), var(--glow-purple);
}

@media (min-width: 640px) {
	.contact-card {
		padding: 3rem;
	}
}

.contact-form {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.form-label {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--text-secondary);
}

.form-input,
.form-textarea {
	width: 100%;
	padding: 0.85rem 1rem;
	background: rgba(8, 11, 26, 0.7);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-md);
	color: #fff;
	font-family: var(--font-sans);
	font-size: 0.95rem;
	transition: var(--transition-smooth);
}

.form-input:focus,
.form-textarea:focus {
	outline: none;
	border-color: #38bdf8;
	box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
}

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

.contact-success-toast {
	padding: 1.25rem;
	background: rgba(16, 185, 129, 0.15);
	border: 1px solid rgba(16, 185, 129, 0.4);
	border-radius: var(--radius-md);
	color: #6ee7b7;
	text-align: center;
	font-size: 0.95rem;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	align-items: center;
	animation: fadeIn 0.3s ease-out;
}

/* Footer */
.footer {
	background: #04060d;
	border-top: 1px solid var(--border-subtle);
	padding: 3.5rem 0 2rem;
	color: var(--text-muted);
}

.footer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
	gap: 2.5rem;
	margin-bottom: 2.5rem;
}

.footer-brand {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.footer-desc {
	font-size: 0.875rem;
	color: var(--text-secondary);
	line-height: 1.5;
	max-width: 320px;
}

.footer-heading {
	color: #fff;
	font-size: 0.95rem;
	font-weight: 700;
	margin-bottom: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.footer-nav {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	list-style: none;
}

.footer-nav a {
	color: var(--text-secondary);
	text-decoration: none;
	font-size: 0.9rem;
	transition: var(--transition-smooth);
}

.footer-nav a:hover {
	color: #38bdf8;
	padding-left: 4px;
}

.footer-bottom {
	padding-top: 2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	font-size: 0.85rem;
}

.footer-status-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.25rem 0.75rem;
	border-radius: var(--radius-full);
	background: rgba(16, 185, 129, 0.1);
	border: 1px solid rgba(16, 185, 129, 0.25);
	color: #34d399;
	font-size: 0.75rem;
}

.live-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #10b981;
	box-shadow: 0 0 6px #10b981;
}

/* Utility Animations */
.animate-pulse {
	animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: .5; }
}
