:root {
	--font-sans: "Inter", "Plus Jakarta Sans", system-ui, -apple-system,
		BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,
		"Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif;

	/* Premium Cream & Gold Theme */
	--bg: #fdfbf7;
	--bg-alt: #ffffff;
	--bg-panel: rgba(255, 255, 255, 0.6);
	--bg-panel-solid: #ffffff;
	
	--text: #1a1a1a;
	--text-dim: #5e5e5e;
	--text-light: #888888;

	--accent: #d4af37; /* Gold */
	--accent-alt: #b76e79; /* Rose Gold */
	
	--brand-gradient: linear-gradient(
		135deg,
		#d4af37 0%,
		#e6c265 25%,
		#b76e79 75%,
		#9b5de5 100%
	);

	--radius-sm: 8px;
	--radius: 20px;
	--radius-full: 999px;

	--shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.05),
		0 1px 4px rgba(0, 0, 0, 0.03);
	--shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.08),
		0 4px 16px -4px rgba(0, 0, 0, 0.04);
	
	--gradient-text: linear-gradient(
		135deg,
		#b8860b 0%,
		#d4af37 40%,
		#c76ad8 100%
	);

	--focus: 0 0 0 3px rgba(212, 175, 55, 0.3),
		0 0 0 6px rgba(212, 175, 55, 0.1);
	
	--speed: 400ms;
	--ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Mode - Deep Luxury */
[data-theme="dark"] {
	--bg: #0f0f0f;
	--bg-alt: #1a1a1a;
	--bg-panel: rgba(30, 30, 30, 0.6);
	--bg-panel-solid: #1e1e1e;
	--text: #f4eadc;
	--text-dim: #b9b1a6;
	--text-light: #777;
	
	--shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.4),
		0 1px 4px rgba(0, 0, 0, 0.3);
	--shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.5),
		0 4px 16px -4px rgba(0, 0, 0, 0.4);
}

* {
	box-sizing: border-box;
}

html, body {
	height: 100%;
}

body {
	margin: 0;
	font-family: var(--font-sans);
	-webkit-font-smoothing: antialiased;
	background: var(--bg);
	color: var(--text);
	line-height: 1.6;
	overflow-x: hidden;
	transition: background var(--speed) var(--ease), color var(--speed) var(--ease);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
	margin: 0;
	font-weight: 700;
	color: var(--text);
	letter-spacing: -0.02em;
}

/* Logo */
.logo-img {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	object-fit: contain; /* Changed to contain to show full logo */
	/* background: var(--bg-alt); Removed background to let it blend if transparent, or keep if needed */
	background: #fdfbf7; /* Match cream bg */
}

/* Background Effects */
.noise-layer {
	position: fixed;
	inset: 0;
	pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
	z-index: 1;
	opacity: 0.6;
}

.gradient-bg {
	position: fixed;
	inset: 0;
	z-index: -2;
	background: 
		radial-gradient(circle at 15% 25%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
		radial-gradient(circle at 85% 65%, rgba(183, 110, 121, 0.08) 0%, transparent 50%);
	filter: blur(60px);
}

.orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
	opacity: 0.5;
	animation: float 20s ease-in-out infinite;
	z-index: -1;
}

.orb-1 {
	top: -10%;
	left: -5%;
	width: 600px;
	height: 600px;
	background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
	animation-duration: 25s;
}

.orb-2 {
	bottom: -10%;
	right: -5%;
	width: 500px;
	height: 500px;
	background: radial-gradient(circle, rgba(199, 106, 216, 0.15) 0%, transparent 70%);
	animation-duration: 30s;
	animation-delay: -5s;
}

.orb-3 {
	top: 40%;
	left: 40%;
	width: 300px;
	height: 300px;
	background: radial-gradient(circle, rgba(228, 104, 71, 0.1) 0%, transparent 70%);
	animation-duration: 20s;
	animation-delay: -10s;
}

@keyframes float {
	0%, 100% { transform: translate(0, 0) rotate(0deg); }
	33% { transform: translate(30px, -50px) rotate(10deg); }
	66% { transform: translate(-20px, 20px) rotate(-5deg); }
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	backdrop-filter: blur(20px) saturate(1.8);
	-webkit-backdrop-filter: blur(20px) saturate(1.8);
	border-bottom: 1px solid rgba(0,0,0,0.03);
	background: rgba(253, 251, 247, 0.7);
}

[data-theme="dark"] .site-header {
	background: rgba(15, 15, 15, 0.7);
	border-bottom: 1px solid rgba(255,255,255,0.03);
}

.site-header .inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1rem 1.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
	color: var(--text);
}

.wordmark {
	font-family: "Plus Jakarta Sans", var(--font-sans);
	font-weight: 800;
	font-size: 1.25rem;
	letter-spacing: -0.03em;
	background: var(--gradient-text);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent; /* Gradient text for brand */
}

/* Main Layout */
.main {
	max-width: 1200px;
	margin: 0 auto;
	padding: 6rem 1.5rem 4rem;
}

.hero {
	max-width: 900px;
	margin: 0 auto 6rem;
	text-align: center;
}

.headline {
	font-family: "Plus Jakarta Sans", var(--font-sans);
	font-size: clamp(3rem, 6vw, 5rem);
	line-height: 1.1;
	margin-bottom: 1.5rem;
	letter-spacing: -0.04em;
}

.accent-gradient {
	background: var(--brand-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.tagline {
	font-size: clamp(1.1rem, 2vw, 1.35rem);
	color: var(--text-dim);
	max-width: 680px;
	margin: 0 auto 3rem;
	font-weight: 400;
}

/* Feature Highlight (Hero Card) */
.feature-highlight {
	background: var(--bg-panel);
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: var(--radius);
	padding: 2rem;
	text-align: left;
	box-shadow: var(--shadow);
	backdrop-filter: blur(12px);
	margin: 0 auto 3rem;
	max-width: 800px;
	position: relative;
	overflow: hidden;
}

[data-theme="dark"] .feature-highlight {
	border-color: rgba(255,255,255,0.08);
}

.feature-highlight::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0; height: 4px;
	background: var(--brand-gradient);
}

.fh-title {
	font-size: 1.25rem;
	margin-bottom: 0.75rem;
	color: var(--text);
}

.fh-text {
	color: var(--text-dim);
	margin-bottom: 1.5rem;
	font-size: 1.05rem;
}

.fh-meta {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.fh-chip {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 0.5rem 1rem;
	border-radius: var(--radius-full);
	background: rgba(212, 175, 55, 0.1);
	color: #9a7d2e;
	border: 1px solid rgba(212, 175, 55, 0.2);
}

[data-theme="dark"] .fh-chip {
	color: #d4af37;
}

/* Feature Pills */
.feature-pills {
	list-style: none;
	padding: 0;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 4rem;
}

.feature-pills li {
	padding: 0.6rem 1.2rem;
	border-radius: var(--radius-full);
	background: var(--bg-alt);
	border: 1px solid rgba(0,0,0,0.06);
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--text-dim);
	box-shadow: var(--shadow-sm);
	transition: transform 0.2s, box-shadow 0.2s;
}

.feature-pills li:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow);
	color: var(--accent);
}

/* Cards Section */
.panel {
	margin-bottom: 6rem;
}

.trio {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
}

.card {
	background: var(--bg-panel);
	border: 1px solid rgba(0,0,0,0.04);
	border-radius: var(--radius);
	padding: 2rem;
	box-shadow: var(--shadow-sm);
	transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
	position: relative;
	overflow: hidden;
}

[data-theme="dark"] .card {
	border-color: rgba(255,255,255,0.05);
}

.card:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow);
}

.card h2 {
	font-size: 1.35rem;
	margin-bottom: 1rem;
	background: linear-gradient(to right, var(--text), var(--text-dim));
	-webkit-background-clip: text;
	background-clip: text;
}

.card p {
	color: var(--text-dim);
	font-size: 1rem;
	margin: 0;
}

/* Interactive Demo */
.demo-section {
	max-width: 800px;
	margin: 0 auto 6rem;
}

.demo-container {
	background: var(--bg-panel);
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	backdrop-filter: blur(12px);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

[data-theme="dark"] .demo-container {
	border-color: rgba(255,255,255,0.08);
}

.demo-header {
	padding: 1rem 1.5rem;
	background: rgba(0,0,0,0.03);
	border-bottom: 1px solid rgba(0,0,0,0.05);
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.demo-title {
	margin-left: 0.5rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--text-dim);
	opacity: 0.8;
}

.chat-interface {
	padding: 2rem;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	min-height: 300px;
}

.chat-message {
	max-width: 85%;
	padding: 1rem 1.25rem;
	border-radius: 18px;
	font-size: 0.95rem;
	line-height: 1.5;
	position: relative;
	opacity: 0;
	transform: scale(0.9) translateY(10px);
}

.demo-container.active .chat-message {
	animation: messagePop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.chat-message.user {
	align-self: flex-end;
	background: var(--text);
	color: var(--bg);
	border-bottom-right-radius: 4px;
}

.demo-container.active .chat-message.user {
	animation-delay: 0.2s;
}

.chat-message.ai {
	align-self: flex-start;
	background: var(--bg-alt);
	color: var(--text);
	border: 1px solid rgba(0,0,0,0.05);
	border-bottom-left-radius: 4px;
	box-shadow: var(--shadow-sm);
}

.demo-container.active .chat-message.ai {
	animation-delay: 1.5s;
}

.typing-indicator {
	display: flex;
	gap: 4px;
	padding: 0.5rem 0;
	position: absolute;
	top: 50%;
	left: 1.25rem;
	transform: translateY(-50%);
	opacity: 0; 
}

.demo-container.active .typing-indicator {
	opacity: 1;
	animation: fadeOut 0.3s forwards;
	animation-delay: 1.4s;
}

.typing-indicator span {
	width: 6px;
	height: 6px;
	background: var(--text-light);
	border-radius: 50%;
}

.demo-container.active .typing-indicator span {
	animation: bounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

.ai-content {
	opacity: 0;
}

.demo-container.active .ai-content {
	animation: fadeIn 0.5s forwards;
	animation-delay: 1.6s;
}

.product-suggestions {
	display: flex;
	gap: 1rem;
	margin-top: 1rem;
	overflow-x: auto;
	padding-bottom: 0.5rem;
}

.product-card-mini {
	flex: 0 0 140px;
	background: var(--bg);
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid rgba(0,0,0,0.05);
	transition: transform 0.2s;
	cursor: pointer;
}

.product-card-mini:hover {
	transform: translateY(-3px);
	border-color: var(--accent);
}

.pc-img {
	height: 100px;
	width: 100%;
	background-size: cover;
	background-position: center;
	position: relative;
	overflow: hidden;
}

.pc-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pc-info {
	padding: 0.75rem;
}

.pc-title {
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	margin-bottom: 0.25rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pc-price {
	font-size: 0.8rem;
	color: var(--text-dim);
}

.demo-input {
	padding: 1rem 1.5rem;
	border-top: 1px solid rgba(0,0,0,0.05);
	background: rgba(255,255,255,0.3);
	display: flex;
	align-items: center;
	justify-content: space-between;
	color: var(--text-light);
	font-size: 0.9rem;
}

.send-btn {
	color: var(--accent);
	cursor: pointer;
	opacity: 0.8;
	transition: opacity 0.2s;
}

.send-btn:hover { opacity: 1; }

@keyframes messagePop {
	to { opacity: 1; transform: scale(1) translateY(0); }
}

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

@keyframes fadeOut {
	to { opacity: 0; visibility: hidden; }
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.8rem 1.5rem;
	border-radius: var(--radius-sm);
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s;
	cursor: pointer;
}

.btn-ghost {
	background: transparent;
	color: var(--text);
	border: 1px solid rgba(0,0,0,0.1);
}

.btn-ghost:hover {
	background: rgba(0,0,0,0.05);
	border-color: rgba(0,0,0,0.2);
}

/* Footer */
.site-footer {
	border-top: 1px solid rgba(0,0,0,0.05);
	padding: 3rem 0;
	text-align: center;
	color: var(--text-dim);
	font-size: 0.9rem;
}

.site-footer .inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.5rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.site-footer a {
	color: var(--text-dim);
	text-decoration: none;
	margin-left: 1.5rem;
	transition: color 0.2s;
}

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

/* Responsive */
@media (max-width: 768px) {
	.headline {
		font-size: 2.5rem;
	}
	.main {
		padding-top: 4rem;
	}
	.site-footer .inner {
		flex-direction: column;
		gap: 1rem;
	}
	.site-footer a {
		margin: 0 0.75rem;
	}
}

/* Entrance Animations */
@keyframes fadeIn {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}

.hero, .panel, .roadmap, .site-footer {
	animation: fadeIn 0.8s ease-out forwards;
}

.hero { animation-delay: 0.1s; }
.panel { animation-delay: 0.3s; }
.roadmap { animation-delay: 0.5s; }
.site-footer { animation-delay: 0.7s; }
