/* Global Design System - Analytics Mantra Revamp */

:root {
	/* Color Palette - Premium, Versatile, Experienced */
	--bg-body: #0a0f1c; /* Deep, rich dark blue/slate */
	--bg-surface: #111a2d; /* Slightly lighter for cards/sections */
	--bg-surface-glass: rgba(17, 26, 45, 0.7); /* Glassmorphism base */

	--text-primary: #f1f5f9; /* Off-white for high contrast text */
	--text-secondary: #94a3b8; /* Muted blue-grey for subtext */
	--text-accent: #ff0000; /* Logo Red */

	--accent-primary: #ff0000; /* Logo Red */
	--accent-secondary: #f59e0b; /* Amber/Gold - Creativity & Warmth */
	--accent-glow: rgba(255, 0, 0, 0.5);

	--border-light: rgba(255, 255, 255, 0.1);

	/* Typography */
	--font-heading: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI",
		Roboto, Helvetica, Arial, sans-serif;
	--font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		Helvetica, Arial, sans-serif;

	/* Spacing */
	--container-width: 1200px;
	--section-spacing: 5rem;

	/* Effects */
	--sc-glass-blur: blur(12px);
	--shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
		0 2px 4px -1px rgba(0, 0, 0, 0.06);
	--shadow-glow: 0 0 20px rgba(255, 77, 77, 0.3);

	/* Transitions */
	--transition-fast: 0.2s ease;
	--transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
	font-size: 16px;
	scroll-padding-top: 100px; /* Fix for sticky header covering section titles */
}

body {
	background-color: var(--bg-body);
	color: var(--text-primary);
	font-family: var(--font-body);
	line-height: 1.6;
	overflow-x: hidden; /* Critical for mobile */
	width: 100%;
	position: relative;
	-webkit-font-smoothing: antialiased;
}

html {
	overflow-x: hidden;
	width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-heading);
	color: var(--text-primary);
	line-height: 1.2;
	margin-bottom: 1rem;
}

a {
	text-decoration: none;
	color: inherit;
	transition: var(--transition-fast);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* Utility Classes */
.container {
	width: 90%;
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 1rem;
}

.section {
	padding: var(--section-spacing) 0;
}

.text-gradient {
	background: linear-gradient(
		135deg,
		var(--text-primary) 0%,
		var(--accent-primary) 100%
	);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.5rem;
	font-weight: 600;
	border-radius: 8px;
	cursor: pointer;
	transition: var(--transition-fast);
	border: 1px solid transparent;
}

.btn-primary {
	background: var(--accent-primary);
	color: #fff;
	box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
	background: #e60000;
	transform: translateY(-2px);
}

.btn-glass {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--border-light);
	backdrop-filter: blur(5px);
}

.btn-glass:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: var(--text-primary);
}

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

.feature-card,
.testimonial-card {
	padding: 2rem;
	background: var(--bg-surface);
	border: 1px solid var(--border-light);
	border-radius: 12px;
	transition: var(--transition-smooth);
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

.feature-card:hover,
.testimonial-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-glow);
	border-color: rgba(255, 77, 77, 0.3);
}

/* Responsive Utilities */
.mobile-nav-toggle {
	display: none; /* Hidden on desktop */
	background: none;
	border: none;
	color: var(--text-primary);
	font-size: 2rem; /* Larger icon */
	padding: 0.5rem;
	cursor: pointer;
	z-index: 1002; /* higher than header */
}
@media (max-width: 768px) {
	:root {
		--section-spacing: 3rem;
	}

	html {
		font-size: 14px;
	}

	.container {
		width: 94%;
		padding: 0 1rem;
	}

	h1 {
		font-size: 2.5rem;
	}

	h2 {
		font-size: 2rem;
	}

	/* Navigation Mobile */
	.desktop-nav {
		display: none; /* Hide desktop nav on mobile */
	}

	.mobile-nav-toggle {
		display: block; /* Show hamburger on mobile */
	}

	/* Grid Stacking */
	.card-grid,
	.pill-grid {
		grid-template-columns: 1fr;
	}

	.feature-card,
	.testimonial-card {
		padding: 1.5rem; /* Revert to simpler mobile padding if needed, or keep global styles */
	}

	/* Hero Mobile */
	.hero {
		padding-top: 120px;
		padding-bottom: 60px;
		text-align: center;
	}

	.hero-content h1 {
		font-size: 2.5rem !important; /* Override potential clamp for better control */
	}

	.hero-content p {
		font-size: 1rem !important;
	}

	.hero-content .btn {
		width: 100%;
		margin-bottom: 0.5rem;
	}

	/* Footer Mobile */
	footer .container {
		text-align: center;
	}
}

/* Mobile Menu Styles - Compact Dropdown */
.mobile-menu-overlay {
	position: fixed;
	top: 90px; /* Approx header height */
	right: 1rem;
	width: 250px;
	height: auto;
	background: rgba(10, 15, 28, 0.95);
	backdrop-filter: blur(12px);
	z-index: 1001;
	border: 1px solid var(--border-light);
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);

	/* Animation State */
	opacity: 0;
	visibility: hidden;
	transform: translateY(-20px);
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-overlay.active {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.mobile-menu-links {
	list-style: none;
	text-align: left;
}

.mobile-menu-links li {
	margin: 1rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	padding-bottom: 0.5rem;
}

.mobile-menu-links li:last-child {
	border-bottom: none;
	margin-bottom: 0;
}

.mobile-menu-links a {
	font-size: 1.1rem;
	font-family: var(--font-heading);
	font-weight: 500;
	color: var(--text-primary);
	display: block;
	transition: color 0.2s;
}

.mobile-menu-links a:hover {
	color: var(--accent-primary);
	padding-left: 5px;
}

/* Logo Styling */
.logo a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.85); /* Subtle transparent white */
	backdrop-filter: blur(4px);
	padding: 0.4rem 0.8rem;
	border-radius: 6px;
	transition: transform 0.2s ease;
}

.logo a:hover {
	transform: scale(1.02);
}

/* HubSpot Form Styling Override */
.hs-form label {
	color: var(--text-primary) !important;
}
.hs-form-field {
	margin-bottom: 1rem;
}
.hs-input {
	background-color: rgba(
		255,
		255,
		255,
		0.9
	) !important; /* Make inputs distinct */
	color: #333 !important; /* Input text dark */
}

/* Footer Links */
footer a:hover {
	color: var(--accent-primary);
}
