/* 
 * ALL-AI Theme - Main Stylesheet 
 * Premium Dark Cyberpunk / Sci-Fi Aesthetics
 */

:root {
	/* Color Palette */
	--bg-base: #050a15;
	--bg-surface: rgba(13, 22, 39, 0.6);
	--bg-glass: rgba(13, 22, 39, 0.4);
	
	--text-primary: #e2e8f0;
	--text-secondary: #94a3b8;
	
	--accent-primary: #00f0ff; /* Neon Cyan */
	--accent-secondary: #00ff88; /* Emerald */
	--accent-glow: rgba(0, 240, 255, 0.5);
	
	--border-color: rgba(255, 255, 255, 0.08);
	--border-highlight: rgba(0, 240, 255, 0.3);

	/* Typography */
	--font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--font-display: 'Outfit', var(--font-primary);
	
	/* Layout & Spacing */
	--container-width: 1200px;
	--section-spacing: 120px;
	--border-radius: 16px;
	
	/* Effects */
	--transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	--transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
	--glass-blur: blur(12px);
}

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

body {
	font-family: var(--font-primary);
	background-color: var(--bg-base);
	color: var(--text-primary);
	line-height: 1.6;
	overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 1rem;
	color: #fff;
}

a {
	color: var(--accent-primary);
	text-decoration: none;
	transition: all var(--transition-fast);
}

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

/* Utilities */
.container {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 24px;
	position: relative;
	z-index: 2;
}

.text-center {
	text-align: center;
}

.highlight {
	color: var(--accent-primary);
	text-shadow: 0 0 20px var(--accent-glow);
}

.highlight-alt {
	background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* Glassmorphism */
.glassmorphism {
	background: var(--bg-glass);
	backdrop-filter: var(--glass-blur);
	-webkit-backdrop-filter: var(--glass-blur);
	border: 1px solid var(--border-color);
	border-radius: var(--border-radius);
	box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 28px;
	border-radius: 8px;
	font-weight: 600;
	font-family: var(--font-display);
	cursor: pointer;
	transition: all var(--transition-fast);
	border: none;
	font-size: 1rem;
}

.btn-primary {
	background: var(--accent-primary);
	color: var(--bg-base);
}

.btn-primary:hover {
	background: #fff;
	color: var(--bg-base);
	transform: translateY(-2px);
}

.btn-secondary {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
	background: rgba(255, 255, 255, 0.2);
	transform: translateY(-2px);
}

.btn-outline {
	background: transparent;
	color: var(--text-primary);
	border: 1px solid var(--border-color);
}

.btn-outline:hover {
	border-color: var(--accent-primary);
	color: var(--accent-primary);
}

.btn-full {
	width: 100%;
}

.btn-glow {
	box-shadow: 0 0 20px var(--accent-glow);
}

.btn-glow:hover {
	box-shadow: 0 0 30px var(--accent-glow);
}

/* Header */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	border-radius: 0;
	border-top: none;
	border-left: none;
	border-right: none;
	padding: 16px 0;
	transition: padding var(--transition-smooth), background var(--transition-smooth);
}

.site-header.scrolled {
	padding: 12px 0;
	background: rgba(5, 10, 21, 0.8);
	border-bottom: 1px solid var(--border-highlight);
}

.header-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.site-branding .logo {
	font-size: 1.5rem;
	font-weight: 800;
	font-family: var(--font-display);
	letter-spacing: -0.02em;
	color: #fff;
}

.main-navigation ul {
	display: flex;
	list-style: none;
	gap: 32px;
}

.main-navigation a {
	color: var(--text-primary);
	font-weight: 500;
	font-size: 0.95rem;
}

.main-navigation a:hover {
	color: var(--accent-primary);
}

.menu-toggle {
	display: none;
	background: none;
	border: none;
	color: #fff;
	cursor: pointer;
}

/* Hero Section */
.hero-section {
	min-height: 100vh;
	display: flex;
	align-items: center;
	position: relative;
	padding-top: 80px;
}

.hero-bg-glow {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 800px;
	height: 800px;
	background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
	z-index: 1;
	pointer-events: none;
}

.hero-content {
	max-width: 800px;
}

.badge {
	display: inline-block;
	padding: 6px 16px;
	border-radius: 30px;
	background: rgba(0, 240, 255, 0.1);
	border: 1px solid rgba(0, 240, 255, 0.3);
	color: var(--accent-primary);
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 24px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.hero-title {
	font-size: clamp(3rem, 5vw, 4.5rem);
	letter-spacing: -0.03em;
	margin-bottom: 24px;
}

.hero-subtitle {
	font-size: 1.25rem;
	color: var(--text-secondary);
	margin-bottom: 40px;
	max-width: 600px;
}

.hero-cta {
	display: flex;
	gap: 16px;
}

/* Services Section */
.services-section {
	padding: var(--section-spacing) 0;
	position: relative;
}

.section-header {
	margin-bottom: 64px;
}

.section-header h2 {
	font-size: 2.5rem;
}

.section-header p {
	font-size: 1.1rem;
	color: var(--text-secondary);
}

.services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 32px;
}

@media (min-width: 769px) {
	.services-two-cols {
		grid-template-columns: repeat(2, 1fr);
		max-width: 900px;
		margin: 0 auto;
	}
}

.service-card {
	padding: 40px;
	transition: all var(--transition-smooth);
	position: relative;
	overflow: hidden;
}

.service-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 100%);
	opacity: 0;
	transition: opacity var(--transition-smooth);
}

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

.service-card.hover-lift:hover {
	transform: translateY(-10px);
	border-color: var(--border-highlight);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.icon-wrapper {
	width: 64px;
	height: 64px;
	border-radius: 12px;
	background: rgba(0, 240, 255, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 24px;
	color: var(--accent-primary);
}

.service-card h3 {
	font-size: 1.5rem;
	margin-bottom: 16px;
}

/* SaaS Landing Page Specifics */
.saas-hero {
	padding: 160px 0 80px;
	min-height: auto;
}

.saas-badge {
	background: rgba(0, 255, 136, 0.1);
	border-color: rgba(0, 255, 136, 0.3);
	color: var(--accent-secondary);
}

.hero-bg-grid {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: 
		linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
	background-size: 50px 50px;
	z-index: 1;
	mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
	-webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
}

.browser-mockup {
	margin-top: 60px;
	height: 500px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.browser-header {
	padding: 12px 16px;
	border-bottom: 1px solid var(--border-color);
	display: flex;
	gap: 8px;
}

.browser-header .dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
}

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

.browser-content {
	flex: 1;
	background: rgba(0,0,0,0.2);
	padding: 24px;
}

.mockup-skeleton {
	display: flex;
	height: 100%;
	gap: 24px;
}

.sk-sidebar {
	width: 200px;
	background: rgba(255,255,255,0.05);
	border-radius: 8px;
}

.sk-main {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.sk-header {
	height: 48px;
	background: rgba(255,255,255,0.05);
	border-radius: 8px;
}

.sk-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	height: 120px;
}

.sk-card {
	background: rgba(255,255,255,0.05);
	border-radius: 8px;
}

.sk-chart {
	flex: 1;
	background: rgba(255,255,255,0.05);
	border-radius: 8px;
}

/* Features Grid */
.features-section {
	padding: var(--section-spacing) 0;
}

.features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 40px;
	margin-top: 64px;
}

.feature-item {
	text-align: center;
}

.feature-icon {
	font-size: 3rem;
	margin-bottom: 24px;
}

/* Pricing */
.pricing-section {
	padding: var(--section-spacing) 0;
}

.pricing-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 32px;
	margin-top: 64px;
}

.pricing-card {
	padding: 48px 32px;
	position: relative;
}

.featured-card {
	transform: scale(1.05);
	border-color: var(--border-highlight);
	box-shadow: 0 0 40px rgba(0, 240, 255, 0.1);
}

.popular-badge {
	position: absolute;
	top: -16px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--accent-primary);
	color: var(--bg-base);
	padding: 4px 16px;
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: 700;
}

.pricing-header {
	text-align: center;
	margin-bottom: 32px;
	border-bottom: 1px solid var(--border-color);
	padding-bottom: 32px;
}

.price {
	font-size: 3.5rem;
	font-weight: 800;
	font-family: var(--font-display);
	color: #fff;
	margin: 16px 0;
}

.price span {
	font-size: 1.5rem;
	vertical-align: super;
}

.price .period {
	font-size: 1rem;
	color: var(--text-secondary);
	font-weight: 400;
}

.pricing-features {
	list-style: none;
	margin-bottom: 40px;
}

.pricing-features li {
	margin-bottom: 16px;
	color: var(--text-primary);
}

/* Footer */
.site-footer {
	padding: 80px 0 24px;
	margin-top: var(--section-spacing);
	border-radius: 0;
	border-bottom: none;
	border-left: none;
	border-right: none;
}

.footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1.5fr;
	gap: 48px;
	margin-bottom: 64px;
}

.footer-tagline {
	margin-top: 16px;
	color: var(--text-secondary);
	max-width: 300px;
}

.footer-heading {
	font-size: 1.1rem;
	margin-bottom: 24px;
}

.footer-links ul {
	list-style: none;
}

.footer-links li {
	margin-bottom: 12px;
}

.footer-links a {
	color: var(--text-secondary);
}

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

.newsletter-form {
	display: flex;
	gap: 8px;
}

.newsletter-form input {
	flex: 1;
	background: rgba(255,255,255,0.05);
	border: 1px solid var(--border-color);
	padding: 12px 16px;
	border-radius: 8px;
	color: #fff;
	font-family: var(--font-primary);
}

.newsletter-form input:focus {
	outline: none;
	border-color: var(--accent-primary);
}

.site-info {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 24px;
	border-top: 1px solid var(--border-color);
	color: var(--text-secondary);
	font-size: 0.9rem;
}

.legal-links {
	display: flex;
	gap: 24px;
}

.legal-links a {
	color: var(--text-secondary);
}

.legal-links a:hover {
	color: #fff;
}

/* Animations */
.fade-in-up {
	opacity: 0;
	transform: translateY(30px);
	animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Responsive */
@media (max-width: 992px) {
	.hero-title { font-size: 3rem; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.hero-cta { flex-direction: column; }
}

@media (max-width: 768px) {
	.menu-toggle { display: block; }
	.main-navigation ul {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		width: 100%;
		background: var(--bg-surface);
		backdrop-filter: var(--glass-blur);
		padding: 24px;
		flex-direction: column;
		text-align: center;
		border-bottom: 1px solid var(--border-color);
	}
	.main-navigation.toggled ul { display: flex; }
	.header-actions { display: none; }
	.footer-grid { grid-template-columns: 1fr; }
	.site-info { flex-direction: column; gap: 16px; text-align: center; }
	.featured-card { transform: scale(1); }
}
