/* Default VitePress Dark Theme Variables */
:root {
	--vp-c-bg: #1b1b1f;
	--vp-c-bg-soft: #202024;
	--vp-c-bg-mute: #2e2e32;
	--vp-c-border: #2e2e32;
	--vp-c-border-hover: #3e3e44;
	
	--vp-c-text-1: #ffffff;
	--vp-c-text-2: #a1a1a5;
	--vp-c-text-3: #76767a;
	
	--vp-c-brand: #a87ffb;
	--vp-c-brand-light: #c084fc;
	--vp-c-brand-dark: #7c3aed;
	--vp-c-brand-gradient: linear-gradient(135deg, #3b82f6 0%, #a87ffb 100%);
	
	--header-bg: rgba(27, 27, 31, 0.8);
	--modal-overlay-bg: rgba(0, 0, 0, 0.6);
	
	--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
	--font-heading: 'Outfit', 'Inter', -apple-system, sans-serif;
}

/* Light Theme Variables */
html.light-mode {
	--vp-c-bg: #ffffff;
	--vp-c-bg-soft: #f6f6f9;
	--vp-c-bg-mute: #f1f1f4;
	--vp-c-border: #e2e2e5;
	--vp-c-border-hover: #ccc;
	
	--vp-c-text-1: #1e293b;
	--vp-c-text-2: #475569;
	--vp-c-text-3: #94a3b8;
	
	--vp-c-brand: #ec4899;
	--vp-c-brand-light: #f472b6;
	--vp-c-brand-dark: #db2777;
	--vp-c-brand-gradient: linear-gradient(135deg, #ec4899 0%, #a87ffb 100%);
	
	--header-bg: rgba(255, 255, 255, 0.85);
	--modal-overlay-bg: rgba(15, 23, 42, 0.4);
}

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

html, body {
	width: 100%;
	min-height: 100%;
	background-color: var(--vp-c-bg);
	font-family: var(--font-sans);
	color: var(--vp-c-text-1);
	overflow-x: hidden;
	transition: background-color 0.3s ease, color 0.3s ease;
	line-height: 1.5;
}

/* Base text selection */
::selection {
	background: rgba(168, 127, 251, 0.25);
	color: var(--vp-c-text-1);
}

/* Header */
header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 64px;
	background: var(--header-bg);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--vp-c-border);
	z-index: 100;
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Specific class selectors to override .container */
header .container {
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.container {
	width: 100%;
	max-width: 1152px;
	margin: 0 auto;
	padding: 0 24px;
	position: relative;
	z-index: 1;
}

#web_logo {
	display: flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

#web_logo:hover {
	opacity: 0.85;
}

#web_logo img {
	width: 28px;
	height: 28px;
	border-radius: 6px;
	object-fit: contain;
}

#web_logo h2 {
	font-family: var(--font-heading);
	font-size: 16px;
	font-weight: 700;
	color: var(--vp-c-text-1);
	letter-spacing: -0.2px;
}

header nav {
	display: flex;
	align-items: center;
	gap: 20px;
}

.web_header_nav_list {
	display: flex;
	align-items: center;
	gap: 20px;
	list-style: none;
}

.web_header_nav_list a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
	color: var(--vp-c-text-2);
	font-size: 13px;
	font-weight: 500;
	transition: color 0.2s ease;
}

.web_header_nav_list a:hover {
	color: var(--vp-c-brand);
}

.web_header_nav_list img {
	display: none; /* Hide default icon images on header in VitePress style */
}

/* Language Dropdown Selector */
.lang-dropdown {
	position: relative;
	display: inline-block;
}

.lang-dropdown-btn {
	background: transparent;
	border: none;
	color: var(--vp-c-text-2);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 4px 8px;
	border-radius: 6px;
	transition: color 0.2s, background-color 0.2s;
}

.lang-dropdown-btn:hover {
	color: var(--vp-c-text-1);
	background: var(--vp-c-bg-soft);
}

.lang-dropdown-btn svg {
	width: 14px;
	height: 14px;
	stroke-width: 2.5;
	transition: transform 0.2s ease;
}

.lang-dropdown-btn.active svg {
	transform: rotate(180deg);
}

.lang-dropdown-menu {
	position: absolute;
	top: 100%;
	right: 0;
	margin-top: 6px;
	background: var(--vp-c-bg-soft);
	border: 1px solid var(--vp-c-border);
	border-radius: 8px;
	padding: 6px 0;
	min-width: 140px;
	max-height: 260px;
	overflow-y: auto;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
	display: none;
	flex-direction: column;
	z-index: 1000;
	animation: slide-in 0.15s ease;
}

@keyframes slide-in {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: translateY(0); }
}

.lang-dropdown-menu.show {
	display: flex;
}

.lang-dropdown-item {
	background: transparent;
	border: none;
	padding: 6px 16px;
	text-align: left;
	font-size: 13px;
	color: var(--vp-c-text-2);
	cursor: pointer;
	width: 100%;
	transition: color 0.2s, background-color 0.2s;
}

.lang-dropdown-item:hover {
	background: var(--vp-c-bg-mute);
	color: var(--vp-c-brand);
}

.lang-dropdown-item.active {
	color: var(--vp-c-brand);
	font-weight: 600;
}

/* Theme Toggle Button */
.theme-toggle {
	background: transparent;
	border: 1px solid transparent;
	border-radius: 50%;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--vp-c-text-2);
	transition: all 0.2s ease;
}

.theme-toggle:hover {
	color: var(--vp-c-text-1);
	background: var(--vp-c-bg-soft);
}

.theme-toggle svg {
	width: 16px;
	height: 16px;
}

.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }

html.light-mode .theme-toggle .sun-icon { display: block; }
html.light-mode .theme-toggle .moon-icon { display: none; }

/* Mobile Toggle */
.mobile-menu-toggle {
	display: none;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 4px;
}

.mobile-menu-toggle svg {
	width: 22px;
	height: 22px;
	stroke: var(--vp-c-text-1);
	stroke-width: 2;
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
	position: fixed;
	top: 64px;
	left: 0;
	width: 100%;
	background: var(--vp-c-bg);
	border-bottom: 1px solid var(--vp-c-border);
	display: flex;
	flex-direction: column;
	padding: 16px 24px;
	gap: 12px;
	transform: translateY(-100%);
	opacity: 0;
	pointer-events: none;
	transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, background-color 0.25s;
	z-index: 99;
}

.mobile-nav-drawer.open {
	transform: translateY(0);
	opacity: 1;
	pointer-events: auto;
}

.mobile-nav-drawer a {
	display: flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: var(--vp-c-text-2);
	font-size: 14px;
	font-weight: 500;
	padding: 8px 12px;
	border-radius: 8px;
	transition: background 0.2s ease, color 0.2s;
}

.mobile-nav-drawer a:hover {
	background: var(--vp-c-bg-soft);
	color: var(--vp-c-brand);
}

.mobile-nav-drawer img {
	display: none;
}

/* Main */
main.container {
	padding-top: 100px;
	padding-bottom: 80px;
	transition: padding 0.3s ease;
}

/* Hero Section Split Grid */
.hero-container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
	align-items: center;
	justify-content: center;
	padding: 40px 0 60px;
}

.hero-text-col {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.hero-logo-col {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	order: -1; /* logo on top by default on mobile */
}

/* Ambient Radial Glow */
.hero-logo-glow {
	position: absolute;
	width: 280px;
	height: 280px;
	background: radial-gradient(circle, rgba(168, 127, 251, 0.2) 0%, transparent 70%);
	z-index: -1;
	pointer-events: none;
	transition: background 0.3s;
}

html.light-mode .hero-logo-glow {
	background: radial-gradient(circle, rgba(62, 141, 244, 0.12) 0%, transparent 70%);
}

/* Hero Logo */
.hero-logo-wrapper {
	width: 256px;
	height: 256px;
	background: var(--vp-c-bg-soft);
	border: 1px solid var(--vp-c-border);
	border-radius: 77.5px; /* Concentric radius: R_inner (55px) + padding (22.5px) */
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
	transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s;
}

.hero-logo-wrapper:hover {
	transform: scale(1.02) rotate(2deg);
	border-color: var(--vp-c-brand);
}

.hero-logo-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.hero-title {
	font-family: var(--font-heading);
	font-size: 40px;
	font-weight: 800;
	letter-spacing: -1px;
	line-height: 1.15;
	background: var(--vp-c-brand-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	margin-bottom: 12px;
}

.hero-description {
	font-size: 18px;
	color: var(--vp-c-text-2);
	line-height: 1.4;
	margin-bottom: 12px;
	font-weight: 500;
}

.hero-subtitle {
	font-size: 14px;
	color: var(--vp-c-text-3);
	line-height: 1.5;
	margin-bottom: 32px;
	max-width: 500px;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	width: 100%;
}

/* Pill Buttons styling */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: 20px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s ease;
}

.btn-primary {
	background: var(--vp-c-brand);
	color: #ffffff;
}

.btn-primary:hover {
	background: var(--vp-c-brand-light);
	transform: translateY(-1px);
}

.btn-primary img {
	height: 16px;
	filter: brightness(0) invert(1);
}

.btn-secondary {
	background: var(--vp-c-bg-mute);
	border: 1px solid var(--vp-c-border);
	color: var(--vp-c-text-1);
}

.btn-secondary:hover {
	background: var(--vp-c-bg-soft);
	border-color: var(--vp-c-border-hover);
	transform: translateY(-1px);
}

.btn-secondary img {
	height: 16px;
}

.btn-icon-github {
	filter: none;
}

html.light-mode .btn-icon-github {
	filter: invert(1) opacity(0.9);
}

.compat-hint {
	margin-top: 14px;
	font-size: 11px;
	color: var(--vp-c-text-3);
}

/* Split Column Desktop Media Queries */
@media (min-width: 960px) {
	main.container {
		padding-top: 120px;
	}
	.hero-container {
		grid-template-columns: 3fr 2fr;
		text-align: left;
		gap: 60px;
		padding: 60px 0 80px;
	}
	.hero-text-col {
		align-items: flex-start;
		text-align: left;
	}
	.hero-logo-col {
		order: 0; /* right column on desktop */
	}
	.hero-logo-glow {
		width: 380px;
		height: 380px;
	}
	.hero-title {
		font-size: 56px;
	}
	.hero-description {
		font-size: 22px;
	}
	.hero-actions {
		justify-content: flex-start;
	}
}

/* Showcase Desktop Frame Mockup */
.showcase-container {
	width: 100%;
	max-width: 800px;
	margin: 0 auto;
	background: var(--vp-c-bg-soft);
	border: 1px solid var(--vp-c-border);
	border-radius: 12px;
	padding: 4px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	transition: border-color 0.25s ease, background-color 0.25s ease;
}

.showcase-container:hover {
	border-color: var(--vp-c-border-hover);
}

.showcase-header {
	display: flex;
	align-items: center;
	padding: 8px 12px;
	border-bottom: 1px solid var(--vp-c-border);
	background: var(--vp-c-bg-mute);
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
	flex-wrap: wrap;
	gap: 12px;
	transition: background-color 0.25s ease, border-color 0.25s;
}

.window-dots {
	display: flex;
	gap: 5px;
}

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

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

.window-title {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	font-size: 11px;
	font-weight: 500;
	color: var(--vp-c-text-3);
	pointer-events: none;
}

.showcase-tabs {
	display: flex;
	margin-left: auto;
	background: var(--vp-c-bg-soft);
	border: 1px solid var(--vp-c-border);
	border-radius: 6px;
	padding: 2px;
	transition: background-color 0.25s, border-color 0.25s;
}

.showcase-tab {
	background: transparent;
	border: none;
	color: var(--vp-c-text-2);
	padding: 3px 10px;
	border-radius: 4px;
	font-size: 11px;
	cursor: pointer;
	font-weight: 600;
	transition: all 0.2s ease;
}

.showcase-tab.active {
	background: var(--vp-c-bg);
	color: var(--vp-c-brand);
}

.showcase-body {
	position: relative;
	background: #090a0f;
	border-bottom-left-radius: 8px;
	border-bottom-right-radius: 8px;
	width: 100%;
	overflow: hidden;
}

.showcase-img {
	display: block;
	width: 100%;
	height: auto;
	opacity: 0;
	position: absolute;
	top: 0;
	left: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.showcase-img.active {
	opacity: 1;
	position: relative;
	pointer-events: auto;
}

/* Feature Grid */
.features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
	margin-top: 60px;
}

.feature-card {
	background: var(--vp-c-bg-soft);
	border: 1px solid var(--vp-c-border);
	border-radius: 12px;
	padding: 24px;
	transition: all 0.25s ease;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.feature-card:hover {
	border-color: var(--vp-c-brand);
}

.feature-icon {
	width: 44px;
	height: 44px;
	border-radius: 8px;
	background: var(--vp-c-bg-mute);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
	transition: transform 0.2s ease;
}

.feature-card:hover .feature-icon {
	transform: scale(1.03);
}

.feature-icon img {
	width: 20px;
	height: 20px;
	transition: filter 0.3s ease;
}

/* Invert feature icons in light theme */
html.light-mode .feature-icon img {
	filter: invert(1) opacity(0.8);
}

.feature-card h3 {
	font-family: var(--vp-c-text-1);
	font-size: 15px;
	font-weight: 700;
	color: var(--vp-c-text-1);
	margin-bottom: 6px;
}

.feature-card span {
	font-size: 13px;
	color: var(--vp-c-text-2);
	line-height: 1.5;
}

/* Footer */
footer {
	margin-top: 80px;
	padding: 32px 0;
	border-top: 1px solid var(--vp-c-border);
	background: var(--vp-c-bg);
	position: relative;
	z-index: 10;
	transition: background-color 0.3s ease, border-color 0.3s;
}

.footer-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	text-align: center;
}

.footer-logo {
	display: flex;
	align-items: center;
	gap: 8px;
}

.footer-logo img {
	width: 20px;
	height: 20px;
	opacity: 0.8;
}

.footer-logo span {
	font-family: var(--font-heading);
	font-size: 14px;
	font-weight: 700;
	color: var(--vp-c-text-1);
}

.footer-disclaimer {
	font-size: 11px;
	color: var(--vp-c-text-3);
	max-width: 600px;
	line-height: 1.5;
}

/* Modal styles */
.modal-overlay {
	position: fixed;
	top: 0; left: 0; width: 100%; height: 100%;
	background: var(--modal-overlay-bg);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	display: flex; justify-content: center; align-items: center;
	z-index: 1000;
	opacity: 0; visibility: hidden;
	transition: all 0.25s ease, background-color 0.25s ease;
}

.modal-overlay.active {
	opacity: 1; visibility: visible;
}

.modal-content {
	background: var(--vp-c-bg-soft);
	border: 1px solid var(--vp-c-border);
	box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
	padding: 28px;
	border-radius: 12px;
	max-width: 480px; 
	width: 90%;
	color: var(--vp-c-text-1);
	transform: scale(0.96);
	transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s ease, border-color 0.25s;
}

.modal-overlay.active .modal-content {
	transform: scale(1);
}

.modal-content h3 {
	margin-top: 0; 
	margin-bottom: 12px; 
	font-family: var(--font-heading);
	font-size: 18px;
	font-weight: 700;
	color: var(--vp-c-text-1);
}

.modal-content p {
	font-size: 13px;
	line-height: 1.6; 
	color: var(--vp-c-text-2);
}

.modal-content p b {
	color: var(--vp-c-text-1);
	font-weight: 600;
}

.modal-actions {
	margin-top: 24px; 
	text-align: right; 
}

.modal-btn {
	background: var(--vp-c-brand); 
	color: #FFF;
	padding: 8px 20px; 
	border-radius: 16px;
	cursor: pointer; 
	font-size: 13px; 
	font-weight: 600;
	transition: all 0.2s; 
	border: none;
}

.modal-btn:hover {
	background: var(--vp-c-brand-light);
}

/* Responsive navigation toggle styling */
@media (max-width: 768px) {
	header nav {
		gap: 12px;
	}
	.web_header_nav_list {
		display: none;
	}
	.mobile-menu-toggle {
		display: block;
	}
}
