/* ==========================================================================
   AdsMart Theme - Main Stylesheet
   ========================================================================== */

/* === CSS Variables === */
:root {
	--color-teal-50: #f0fdf4;
	--color-teal-100: #dcfce7;
	--color-teal-200: #bbf7d0;
	--color-teal-300: #86efac;
	--color-teal-400: #4ade80;
	--color-teal-500: #22c55e;
	--color-teal-600: #16a34a;
	--color-teal-700: #15803d;
	--color-cyan-400: #34d399;
	--color-cyan-500: #10b981;
	--color-cyan-600: #059669;
	--color-gray-50: #f9fafb;
	--color-gray-100: #f3f4f6;
	--color-gray-200: #e5e7eb;
	--color-gray-300: #d1d5db;
	--color-gray-400: #9ca3af;
	--color-gray-500: #6b7280;
	--color-gray-600: #4b5563;
	--color-gray-700: #374151;
	--color-gray-800: #1f2937;
	--color-gray-900: #111827;
	--color-gray-950: #030712;
	--color-green-400: #4ade80;
	--color-green-500: #22c55e;
	--color-orange-400: #fb923c;
	--color-orange-500: #f97316;
	--color-white: #ffffff;
	--font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--container-max: 1200px;
	--header-height: 80px;
	--transition: 0.3s ease;
}

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

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	font-family: var(--font-family);
	font-size: 16px;
	line-height: 1.6;
	color: var(--color-gray-700);
	background-color: var(--color-white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
	list-style: none;
}

button {
	cursor: pointer;
	border: none;
	background: none;
	font-family: inherit;
}

/* === Container === */
.container {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 1rem;
}

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

@media (min-width: 1024px) {
	.container {
		padding: 0 2rem;
	}
}

/* === Gradient Utilities === */
.gradient-text {
	background: linear-gradient(135deg, var(--color-teal-500), var(--color-cyan-600));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.gradient-bg {
	background: linear-gradient(135deg, var(--color-teal-500), var(--color-cyan-600));
}

.gradient-bg-hover:hover {
	background: linear-gradient(135deg, var(--color-teal-600), var(--color-cyan-600));
}

/* === Buttons === */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	font-size: 0.875rem;
	font-weight: 500;
	border-radius: 9999px;
	transition: all var(--transition);
	line-height: 1.5;
}

.btn-primary {
	background: linear-gradient(135deg, var(--color-teal-500), var(--color-cyan-600));
	color: var(--color-white);
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
	background: linear-gradient(135deg, var(--color-teal-600), var(--color-cyan-600));
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
	transform: scale(1.05);
	color: var(--color-white);
}

.btn-outline {
	border: 1px solid var(--color-gray-300);
	color: var(--color-gray-700);
}

.btn-outline:hover {
	background-color: var(--color-gray-100);
	color: var(--color-gray-900);
}

.btn-lg {
	padding: 1rem 2rem;
	font-size: 1.125rem;
}

@media (max-width: 767px) {
	.btn-lg {
		padding: 0.75rem 1.5rem;
		font-size: 0.875rem;
	}
}

/* === Header === */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 50;
	transition: all 0.5s ease;
}

.site-header.scrolled {
	background-color: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(12px);
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Auto-hide header on scroll down, show on scroll up. */
.site-header.header-hidden {
	transform: translateY(-100%);
	pointer-events: none;
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--header-height);
}

.site-logo {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.site-logo .logo-wrap {
	position: relative;
}

.site-logo .logo-glow {
	display: none;
}

.site-logo .logo-img-wrap {
	position: relative;
	transition: transform var(--transition);
}

.site-logo:hover .logo-img-wrap {
	transform: scale(1.1);
}

.site-logo .logo-img-wrap img {
	width: 48px;
	height: 48px;
	object-fit: contain;
}

@media (min-width: 768px) {
	.site-logo .logo-img-wrap img {
		width: 56px;
		height: 56px;
	}
}

.site-logo .logo-text {
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: -0.025em;
}

@media (min-width: 768px) {
	.site-logo .logo-text {
		font-size: 1.875rem;
	}
}

/* === Navigation === */
.main-nav {
	display: none;
}

@media (min-width: 768px) {
	.main-nav {
		display: flex;
		align-items: center;
		gap: 2rem;
	}
}

.main-nav a {
	position: relative;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--color-gray-700);
	transition: color var(--transition);
}

.main-nav a:hover,
.main-nav a.current {
	color: var(--color-teal-500);
}

.main-nav a::after {
	content: '';
	position: absolute;
	bottom: -4px;
	left: 0;
	width: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--color-teal-400), var(--color-cyan-500));
	transition: width var(--transition);
}

.main-nav a:hover::after {
	width: 100%;
}

/* Header Actions */
.header-actions {
	display: none;
}

@media (min-width: 768px) {
	.header-actions {
		display: flex;
		align-items: center;
		gap: 1rem;
	}
}

/* Mobile Header Right (toggle + hamburger wrapper). */
.mobile-header-right {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

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

.theme-toggle-sm {
	width: 34px;
	height: 34px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
	display: flex;
	align-items: center;
	padding: 0.5rem;
	border-radius: 0.5rem;
	transition: background var(--transition);
}

.mobile-menu-toggle:hover {
	background: var(--color-gray-100);
}

.mobile-menu-toggle svg {
	width: 24px;
	height: 24px;
	color: var(--color-gray-700);
}

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

/* Mobile Menu */
.mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 60;
	display: none;
}

.mobile-menu.active {
	display: block;
}

.mobile-menu-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.2);
	backdrop-filter: blur(4px);
}

.mobile-menu-panel {
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	max-width: 320px;
	height: 100%;
	background: rgba(255, 255, 255, 0.98);
	backdrop-filter: blur(12px);
	box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
	padding: 2rem 1.5rem;
	transform: translateX(100%);
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	border-left: 1px solid var(--color-gray-200);
}

.mobile-menu.active .mobile-menu-panel {
	transform: translateX(0);
}

.mobile-menu-close {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 2rem;
}

.mobile-menu-close button {
	padding: 0.5rem;
	border-radius: 0.5rem;
}

.mobile-menu-close button:hover {
	background: var(--color-gray-100);
}

.mobile-menu-nav {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.mobile-menu-nav a {
	font-size: 1.125rem;
	font-weight: 500;
	color: var(--color-gray-800);
	padding: 0.5rem 0;
	transition: color var(--transition);
}

.mobile-menu-nav a:hover {
	color: var(--color-teal-500);
}

/* === Hero Section === */
.hero-section {
	position: relative;
	min-height: 100vh;
	display: block;
	overflow: hidden;
	padding-top: var(--header-height);
	background: var(--color-white);
}

.hero-canvas {
	display: none;
}

.hero-content {
	position: relative;
	z-index: 10;
	width: 100%;
	height: 100%;
}

/* Stage: contains the two-column hero grid. */
.hero-stage {
	position: relative;
	padding-top: 2.5rem;
	padding-bottom: 2rem;
}

@media (min-width: 768px) {
	.hero-stage {
		padding-top: 3rem;
	}
}

@media (min-width: 1024px) {
	.hero-stage {
		min-height: calc(100vh - var(--header-height));
		padding-top: clamp(3rem, 8vh, 6rem);
	}
}

/* Two-column equal grid — headline+banner left, trust+CTA right. */
.hero-grid {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

@media (min-width: 1024px) {
	.hero-grid {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 2.5rem;
		align-items: stretch; /* Both cols fill row height for bottom-aligned CTA. */
		min-height: calc(100vh - var(--header-height) - clamp(3rem, 8vh, 6rem));
	}
}

@media (min-width: 1280px) {
	.hero-grid {
		gap: 3rem;
	}
}

/* Col 1: headline + banner. */
.hero-col-text {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	position: relative;
	z-index: 10;
}

@media (min-width: 1024px) {
	.hero-col-text {
		gap: 2rem;
		overflow: visible; /* Allow banner to extend beyond column on scroll. */
		/* Push col 1 down so banner sits lower on the page. */
		padding-top: clamp(4rem, 10vh, 8rem);
		/* Remove stacking context so children (banner) share z-index
		   space with panel in col 2 — prevents banner covering panel. */
		z-index: auto;
	}
}

/* Col 2: trust panel (CTA + hint now in hero-stage). */
.hero-col-media {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	position: relative;
	z-index: 5;
}

@media (min-width: 1024px) {
	.hero-col-media {
		gap: 1.5rem;
		/* padding-top set dynamically by JS (alignPanelToBanner). */
		/* Remove stacking context — same reason as col-text. */
		z-index: auto;
	}
}

.hero-text {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	max-width: 40rem;
}

@media (min-width: 768px) {
	.hero-text {
		gap: 1.5rem;
	}
}

@media (min-width: 1024px) {
	.hero-text {
		max-width: 100%;
	}
}

/* Brand name above badge. */
.hero-brand {
	display: block;
	font-size: 2.25rem;
	font-weight: 800;
	letter-spacing: 0.25em;
	color: var(--color-gray-400);
	margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
	.hero-brand {
		font-size: 2.4375rem;
	}
}

@media (min-width: 1024px) {
	.hero-brand {
		font-size: 2.625rem;
	}
}

.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.05em;
	color: var(--color-teal-600);
	padding-bottom: 0.75rem;
	border-bottom: 2px solid var(--color-teal-500);
	width: fit-content;
}

@media (min-width: 768px) {
	.hero-badge {
		font-size: 0.875rem;
	}
}

.hero-title {
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.15;
	color: var(--color-gray-900);
	letter-spacing: -0.02em;
}

.hero-title-main {
	display: block;
	white-space: nowrap;
}

.hero-title-accent {
	display: block;
	background: linear-gradient(135deg, var(--color-teal-500), var(--color-cyan-600));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

@media (min-width: 768px) {
	.hero-title {
		font-size: 2.5rem;
	}
}

@media (min-width: 1024px) {
	.hero-title {
		font-size: 3rem;
	}
}

@media (min-width: 1280px) {
	.hero-title {
		font-size: 3.5rem;
	}
}

/* Hero CTA button — in col 2, below trust panel. */
.hero-cta {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 2rem;
	font-size: 1rem;
	font-weight: 600;
	color: var(--color-white);
	background: linear-gradient(135deg, var(--color-teal-500), var(--color-cyan-600));
	border: none;
	border-radius: 0.75rem;
	cursor: pointer;
	text-decoration: none;
	transition: transform var(--transition), box-shadow var(--transition);
	width: fit-content;
	margin-top: 2rem;
}

.hero-cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px -5px rgba(20, 184, 166, 0.4);
}

.hero-cta svg {
	transition: transform var(--transition);
}

.hero-cta:hover svg {
	transform: translateX(4px);
}

@media (min-width: 768px) {
	.hero-cta {
		font-size: 1rem;
		padding: 0.875rem 1.75rem;
	}
}

@media (min-width: 1024px) {
	.hero-cta {
		/* Now a direct child of hero-stage (position: relative),
		   so absolute positioning anchors correctly. */
		position: absolute;
		bottom: 2.5rem;
		right: 0;
		z-index: 30;
	}
}

@media (min-width: 1024px) {
	.hero-hint {
		/* Below CTA, absolute at very bottom of hero-stage. */
		position: absolute;
		bottom: 0.75rem;
		right: 0;
		z-index: 30;
	}
}

/* Hero Image — in col 1, below headline.
   On scroll: scales up to fill container width, centered on screen. */
.hero-image-wrap {
	position: relative;
}

@media (min-width: 1024px) {
	.hero-image-wrap {
		/* Banner = ~75% of container width. Col 1 = 50%, so 150% of col = 75% of container. */
		width: 150%;
	}
}

/* iPad device frame — z-index lower than panel (25) so banner
   never covers trust logos during scroll animation. */
.hero-device--ipad {
	position: relative;
	z-index: 15;
}

.hero-device__frame {
	position: relative;
	background: #1a1a1e;
	border-radius: 1.2rem;
	padding: 1rem 0.75rem;
	box-shadow:
		0 20px 50px -12px rgba(0, 0, 0, 0.25),
		inset 0 1px 0 rgba(255, 255, 255, 0.08),
		inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
	.hero-device__frame {
		border-radius: 1.6rem;
		padding: 1.25rem 1rem;
	}
}

@media (min-width: 1024px) {
	.hero-device__frame {
		border-radius: 2rem;
		padding: 1.5rem 1.1rem;
	}
}

/* Front camera — centered on top bezel. */
.hero-device__camera {
	position: absolute;
	top: 0.45rem;
	left: 50%;
	transform: translateX(-50%);
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #2a2a2e;
	box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.06);
}

@media (min-width: 768px) {
	.hero-device__camera {
		top: 0.55rem;
		width: 7px;
		height: 7px;
	}
}

@media (min-width: 1024px) {
	.hero-device__camera {
		top: 0.65rem;
		width: 8px;
		height: 8px;
	}
}

/* Screen area — the banner image fills this. */
.hero-device__screen {
	position: relative;
	border-radius: 0.35rem;
	overflow: hidden;
	background: #000;
}

@media (min-width: 768px) {
	.hero-device__screen {
		border-radius: 0.5rem;
	}
}

@media (min-width: 1024px) {
	.hero-device__screen {
		border-radius: 0.6rem;
	}
}

.hero-device__screen img {
	width: 100%;
	height: 260px;
	object-fit: cover;
	display: block;
}

@media (min-width: 768px) {
	.hero-device__screen img {
		height: 360px;
	}
}

@media (min-width: 1024px) {
	.hero-device__screen img {
		height: 400px;
	}
}

/* Subtle top-edge shine on bezel. */
.hero-device__frame::before {
	content: '';
	position: absolute;
	top: 0;
	left: 10%;
	right: 10%;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
	border-radius: 1px;
}

/* Hero Trust — flows inside col 2.
   z-index 25 keeps panel ABOVE banner (z-index 15) during scroll.
   Both now share the same stacking context (col z-index: auto on desktop). */
.hero-trust {
	position: relative;
	z-index: 25;
	padding: 1.5rem;
	border: 1px solid var(--color-gray-200);
	border-radius: 0.75rem;
	background: rgba(255, 255, 255, 0.6);
	backdrop-filter: blur(8px);
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

@media (min-width: 1024px) {
	.hero-trust {
		/* Tall panel (2× SMIT proportions) — gives banner room to
		   "touch" the panel bottom before sliding it right. */
		padding: 1.75rem 1.5rem;
		max-width: 22rem;
		gap: 1rem;
	}
}

.hero-trust-label {
	font-size: 0.75rem;
	color: var(--color-gray-500);
	white-space: nowrap;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-weight: 500;
}

@media (min-width: 768px) {
	.hero-trust-label {
		font-size: 0.8125rem;
	}
}

.hero-trust-logos {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem 1.5rem;
	align-items: center;
}

@media (min-width: 1024px) {
	.hero-trust-logos {
		grid-template-columns: repeat(2, 1fr);
		gap: 1rem 1.5rem;
	}
}

.hero-trust-logos .logo-item {
	height: 28px;
	opacity: 1;
	transition: opacity var(--transition), transform var(--transition);
	color: var(--color-gray-800);
	display: flex;
	align-items: center;
}

.hero-trust-logos .logo-item:hover {
	opacity: 1;
	transform: scale(1.05);
}

@media (min-width: 768px) {
	.hero-trust-logos .logo-item {
		height: 32px;
	}
}

@media (min-width: 1024px) {
	.hero-trust-logos .logo-item {
		height: 28px;
	}
}

.hero-trust-logos .logo-item svg {
	height: 100%;
	width: auto;
	display: block;
}

.hero-trust-logos .logo-item img {
	height: 100%;
	width: auto;
	object-fit: contain;
}

/* Scroll hint — pushed to bottom of col-text on desktop. */
.hero-hint {
	display: none;
}

@media (min-width: 1024px) {
	.hero-hint {
		display: flex;
		align-items: center;
		gap: 0.5rem;
		color: var(--color-gray-400);
		font-size: 0.8125rem;
		letter-spacing: 0.02em;
		padding-top: 1rem;
	}

	.hero-hint-arrow {
		animation: hero-hint-bounce 1.5s ease-in-out infinite;
	}

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

/* Unused hero elements */
.hero-deco-1,
.hero-deco-2 {
	display: none;
}

/* === Banner Slider === */
.banner-slider-section {
	position: relative;
	padding: 2rem 0 calc(3rem + 100px);
	background: var(--color-white);
}

/* Fade bottom of banner-slider into black (meets multidevice). */
.banner-slider-section::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 100px;
	background: linear-gradient(180deg, transparent, #000);
	pointer-events: none;
}

.banner-slider {
	position: relative;
	border-radius: 0.75rem;
	overflow: hidden;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.banner-slider-track {
	position: relative;
	height: auto;
	aspect-ratio: 16 / 7;
	overflow: hidden;
}

@media (min-width: 640px) {
	.banner-slider-track {
		aspect-ratio: 16 / 6;
	}
}

@media (min-width: 768px) {
	.banner-slider-track {
		aspect-ratio: 16 / 5.5;
	}
}

@media (min-width: 1024px) {
	.banner-slider-track {
		aspect-ratio: 16 / 5;
	}
}

.banner-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.5s ease;
}

.banner-slide.active {
	opacity: 1;
}

.banner-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.banner-slide a {
	display: block;
	width: 100%;
	height: 100%;
}

/* Slider Navigation */
.banner-nav-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, 0.3);
	color: var(--color-white);
	border-radius: 9999px;
	padding: 0.5rem;
	backdrop-filter: blur(4px);
	transition: background var(--transition);
	z-index: 5;
}

.banner-nav-btn:hover {
	background: rgba(0, 0, 0, 0.5);
}

.banner-nav-btn.prev {
	left: 0.5rem;
}

.banner-nav-btn.next {
	right: 0.5rem;
}

.banner-dots {
	position: absolute;
	bottom: 1rem;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 0.5rem;
	z-index: 5;
}

.banner-dot {
	width: 8px;
	height: 8px;
	border-radius: 9999px;
	background: rgba(255, 255, 255, 0.5);
	transition: background var(--transition);
}

.banner-dot.active {
	background: var(--color-white);
}

/* Partner Logos */
.partner-logos {
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	gap: 1.5rem;
	margin-top: 2rem;
	align-items: center;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	padding: 0.5rem 0;
}

@media (min-width: 768px) {
	.partner-logos {
		gap: 3rem;
		overflow-x: visible;
	}
}

.partner-logos .partner-item {
	flex-shrink: 0;
	padding: 0.5rem;
	border-radius: 0.5rem;
	background: var(--color-white);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.partner-logos .partner-item img {
	height: 32px;
	width: auto;
	display: block;
}

@media (min-width: 768px) {
	.partner-logos .partner-item img {
		height: 40px;
	}
}

/* === Section Common === */
.section {
	padding: 4rem 0;
}

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

@media (min-width: 1024px) {
	.section {
		padding: 8rem 0;
	}
}

.section-header {
	text-align: center;
	max-width: 48rem;
	margin: 0 auto 3rem;
}

@media (min-width: 768px) {
	.section-header {
		margin-bottom: 4rem;
	}
}

.section-badge {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	border-radius: 0.5rem;
	background: linear-gradient(135deg, var(--color-teal-100), rgba(16, 185, 129, 0.1));
	color: var(--color-teal-600);
	font-size: 0.875rem;
	font-weight: 500;
	margin-bottom: 1rem;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.section-title {
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: 1rem;
	color: var(--color-gray-900);
}

@media (min-width: 768px) {
	.section-title {
		font-size: 2rem;
	}
}

@media (min-width: 1024px) {
	.section-title {
		font-size: 2.5rem;
	}
}

.section-subtitle {
	font-size: 1rem;
	color: var(--color-gray-500);
}

@media (min-width: 768px) {
	.section-subtitle {
		font-size: 1.125rem;
	}
}

/* === Services Section === */
.services-section {
	background: linear-gradient(180deg, var(--color-gray-50), var(--color-white));
}

.services-tabs {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.75rem;
	margin-bottom: 2rem;
}

@media (min-width: 768px) {
	.services-tabs {
		grid-template-columns: repeat(3, 1fr);
		gap: 1rem;
	}
}

@media (min-width: 1024px) {
	.services-tabs {
		grid-template-columns: repeat(6, 1fr);
	}
}

.service-tab {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	padding: 1rem;
	border-radius: 0.75rem;
	border: 1px solid var(--color-gray-200);
	background: var(--color-white);
	text-align: center;
	transition: all var(--transition);
	cursor: pointer;
}

.service-tab:hover {
	border-color: var(--color-teal-300);
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.service-tab.active {
	border-color: var(--color-teal-500);
	background: linear-gradient(135deg, rgba(34, 197, 94, 0.05), rgba(16, 185, 129, 0.05));
	box-shadow: 0 4px 6px -1px rgba(34, 197, 94, 0.15);
}

.service-tab .tab-icon {
	color: var(--color-teal-500);
}

.service-tab .tab-title {
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--color-gray-700);
}

.service-tab.active .tab-title {
	color: var(--color-teal-600);
}

/* Service Detail Panel */
.service-detail {
	display: none;
	background: var(--color-white);
	border-radius: 1rem;
	overflow: hidden;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
	border: 1px solid var(--color-gray-100);
}

.service-detail.active {
	display: grid;
	grid-template-columns: 1fr;
}

@media (min-width: 768px) {
	.service-detail.active {
		grid-template-columns: 1fr 1fr;
	}
}

.service-detail-image {
	height: 250px;
	overflow: hidden;
	perspective: 1200px;
}

@media (min-width: 768px) {
	.service-detail-image {
		height: 100%;
		min-height: 350px;
	}
}

.service-detail-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform-origin: left center;
	transition: none;
}

/* Service image — no 3D flip. */
.service-detail-image img {
	transition: none;
}

/* Content slide-in to pair with image flip. */
.service-detail-content.content-enter {
	animation: serviceContentIn 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0.1s both;
}

@keyframes serviceContentIn {
	0% {
		opacity: 0;
		transform: translateX(20px);
	}
	100% {
		opacity: 1;
		transform: translateX(0);
	}
}

.service-detail-content {
	padding: 1.5rem;
}

@media (min-width: 768px) {
	.service-detail-content {
		padding: 2rem;
	}
}

.service-detail-content h3 {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--color-gray-900);
	margin-bottom: 1rem;
}

.service-detail-content p {
	color: var(--color-gray-600);
	margin-bottom: 1.5rem;
	line-height: 1.7;
}

.service-features-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}

.service-features-list li {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	font-size: 0.875rem;
	color: var(--color-gray-700);
}

.service-features-list li svg {
	flex-shrink: 0;
	color: var(--color-green-500);
	margin-top: 2px;
}

/* === Projects Section === */
.projects-section {
	background: var(--color-white);
}

.project-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin-bottom: 2rem;
}

.project-filter-btn {
	padding: 0.5rem 1.25rem;
	border-radius: 9999px;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--color-gray-600);
	border: 1px solid var(--color-gray-200);
	transition: all var(--transition);
}

.project-filter-btn:hover,
.project-filter-btn.active {
	background: linear-gradient(135deg, var(--color-teal-500), var(--color-cyan-600));
	color: var(--color-white);
	border-color: transparent;
}

.projects-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 640px) {
	.projects-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.projects-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 1280px) {
	.projects-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* Project Card */
.project-card {
	position: relative;
	border-radius: 0.75rem;
	overflow: hidden;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
	transition: all var(--transition);
	background: var(--color-white);
	border: 1px solid var(--color-gray-100);
}

.project-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.project-card-image {
	position: relative;
	height: 200px;
	overflow: hidden;
}

.project-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--transition);
}

.project-card:hover .project-card-image img {
	transform: scale(1.05);
}

.project-card-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
	opacity: 0;
	transition: opacity var(--transition);
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 1rem;
}

.project-card:hover .project-card-overlay {
	opacity: 1;
}

.project-card-overlay .btn {
	font-size: 0.8125rem;
	padding: 0.5rem 1rem;
}

.project-card-body {
	padding: 1rem;
}

.project-card-category {
	display: inline-block;
	font-size: 0.75rem;
	color: var(--color-teal-600);
	background: var(--color-teal-50);
	padding: 0.125rem 0.5rem;
	border-radius: 9999px;
	margin-bottom: 0.5rem;
}

.project-card-title {
	font-size: 1rem;
	font-weight: 600;
	color: var(--color-gray-900);
	margin-bottom: 0.5rem;
	line-height: 1.4;
}

.project-card-desc {
	font-size: 0.8125rem;
	color: var(--color-gray-500);
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* === Features Section === */
.features-section {
	background: linear-gradient(180deg, var(--color-white), var(--color-gray-50));
}

.features-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
}

@media (min-width: 768px) {
	.features-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 1.25rem;
	}
}

@media (min-width: 1024px) {
	.features-grid {
		grid-template-columns: repeat(4, 1fr);
		gap: 1.5rem;
	}
}

.feature-card {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1.25rem;
	background: var(--color-white);
	border-radius: 0.75rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
	border: 1px solid var(--color-gray-100);
	transition: box-shadow var(--transition), border-color var(--transition);
}

.feature-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	border-color: var(--color-teal-200);
}

.feature-card svg {
	flex-shrink: 0;
	color: var(--color-teal-500);
	width: 22px;
	height: 22px;
}

.feature-card h3 {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--color-gray-900);
	line-height: 1.3;
}

.feature-card p {
	font-size: 0.8125rem;
	color: var(--color-gray-500);
	line-height: 1.5;
}

/* === FAQ Section === */
.faq-section {
	position: relative;
	background: linear-gradient(135deg, var(--color-white), rgba(240, 253, 250, 0.2), rgba(207, 250, 254, 0.2));
}

.faq-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: linear-gradient(90deg, transparent, var(--color-teal-400), transparent);
}

.faq-list {
	max-width: 56rem;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.faq-item {
	border: 1px solid rgba(34, 197, 94, 0.2);
	border-radius: 0.5rem;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.5);
	backdrop-filter: blur(4px);
	transition: box-shadow var(--transition);
}

.faq-item:hover {
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.faq-question {
	width: 100%;
	padding: 1rem 1.5rem;
	text-align: left;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-weight: 600;
	color: var(--color-gray-900);
	transition: background var(--transition), color var(--transition);
}

.faq-question:hover {
	background: rgba(240, 253, 250, 0.5);
	color: var(--color-teal-600);
}

.faq-question svg {
	flex-shrink: 0;
	color: var(--color-teal-600);
	transition: transform var(--transition);
	width: 20px;
	height: 20px;
}

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

.faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.faq-answer-inner {
	padding: 0 1.5rem 1rem;
	color: var(--color-gray-600);
	line-height: 1.7;
}

/* === News Section === */
.news-section {
	background: var(--color-white);
}

.news-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 768px) {
	.news-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.news-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.news-card {
	border-radius: 0.75rem;
	overflow: hidden;
	background: var(--color-white);
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
	border: 1px solid var(--color-gray-100);
	transition: all var(--transition);
}

.news-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.news-card-image {
	height: 200px;
	overflow: hidden;
}

.news-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--transition);
}

.news-card:hover .news-card-image img {
	transform: scale(1.05);
}

.news-card-body {
	padding: 1.25rem;
}

.news-card-meta {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}

.news-card-date {
	font-size: 0.75rem;
	color: var(--color-gray-500);
}

.news-card-category {
	font-size: 0.75rem;
	color: var(--color-teal-600);
	background: var(--color-teal-50);
	padding: 0.125rem 0.5rem;
	border-radius: 9999px;
}

.news-card-title {
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--color-gray-900);
	margin-bottom: 0.5rem;
	line-height: 1.4;
}

.news-card-excerpt {
	font-size: 0.875rem;
	color: var(--color-gray-500);
	line-height: 1.6;
	margin-bottom: 1rem;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.news-card-link {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--color-teal-500);
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	transition: color var(--transition);
}

.news-card-link:hover {
	color: var(--color-teal-600);
}

/* === About Section === */
.about-section {
	background: var(--color-gray-50);
}

.about-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	align-items: center;
}

@media (min-width: 1024px) {
	.about-grid {
		grid-template-columns: 1fr 1fr;
	}
}

.about-image {
	border-radius: 1rem;
	overflow: hidden;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.about-image img {
	width: 100%;
	height: auto;
	object-fit: cover;
}

.about-content h2 {
	font-size: 1.875rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
	color: var(--color-gray-900);
}

@media (min-width: 768px) {
	.about-content h2 {
		font-size: 2.25rem;
	}
}

.about-content p {
	color: var(--color-gray-600);
	margin-bottom: 1rem;
	line-height: 1.7;
}

.about-stats {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
	margin-top: 2rem;
}

@media (min-width: 640px) {
	.about-stats {
		grid-template-columns: repeat(4, 1fr);
	}
}

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

.about-stat .stat-number {
	font-size: 2rem;
	font-weight: 700;
}

.about-stat .stat-label {
	font-size: 0.8125rem;
	color: var(--color-gray-500);
	margin-top: 0.25rem;
}

/* === Contact Section === */
.contact-section {
	background: var(--color-white);
}

.contact-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

@media (min-width: 1024px) {
	.contact-grid {
		grid-template-columns: 1fr 1fr;
	}
}

.contact-info-list {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin-bottom: 2rem;
}

.contact-info-item {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.contact-info-item svg {
	flex-shrink: 0;
	color: var(--color-teal-500);
	margin-top: 2px;
}

.contact-info-item .label {
	font-weight: 600;
	color: var(--color-gray-900);
	font-size: 0.875rem;
}

.contact-info-item .value {
	color: var(--color-gray-600);
	font-size: 0.875rem;
}

/* Contact Form */
.contact-form {
	background: var(--color-gray-50);
	border-radius: 1rem;
	padding: 2rem;
	border: 1px solid var(--color-gray-100);
}

.form-group {
	margin-bottom: 1.25rem;
}

.form-label {
	display: block;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--color-gray-700);
	margin-bottom: 0.375rem;
}

.form-input,
.form-select,
.form-textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid var(--color-gray-300);
	border-radius: 0.5rem;
	font-size: 0.875rem;
	font-family: inherit;
	color: var(--color-gray-700);
	background: var(--color-white);
	transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
	outline: none;
	border-color: var(--color-teal-500);
	box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

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

.form-message {
	padding: 0.75rem 1rem;
	border-radius: 0.5rem;
	font-size: 0.875rem;
	margin-top: 1rem;
	display: none;
}

.form-message.success {
	display: block;
	background: var(--color-teal-50);
	color: var(--color-teal-700);
	border: 1px solid var(--color-teal-200);
}

.form-message.error {
	display: block;
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}

/* === Footer === */
.site-footer {
	position: relative;
	background: linear-gradient(135deg, var(--color-gray-900), var(--color-gray-950));
	color: var(--color-white);
	overflow: hidden;
}

.site-footer::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: linear-gradient(90deg, var(--color-teal-400), var(--color-cyan-500));
}

/* Footer Newsletter */
.footer-newsletter {
	padding: 2.5rem 0 4rem;
	border-bottom: 1px solid var(--color-gray-800);
}

.footer-newsletter-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	align-items: center;
}

@media (min-width: 1024px) {
	.footer-newsletter-grid {
		grid-template-columns: 1fr 1fr;
		gap: 2.5rem;
	}
}

.footer-newsletter h3 {
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
	.footer-newsletter h3 {
		font-size: 1.5rem;
	}
}

.footer-newsletter p {
	color: var(--color-gray-400);
	font-size: 0.875rem;
}

.newsletter-form {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

@media (min-width: 640px) {
	.newsletter-form {
		flex-direction: row;
	}
}

.newsletter-form input {
	flex: 1;
	padding: 0.75rem 1rem;
	background: var(--color-gray-800);
	border: 1px solid var(--color-gray-700);
	border-radius: 0.5rem;
	color: var(--color-white);
	font-size: 0.875rem;
	font-family: inherit;
}

.newsletter-form input::placeholder {
	color: var(--color-gray-500);
}

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

/* Footer Content */
.footer-content {
	padding: 2.5rem 0 4rem;
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

@media (min-width: 768px) {
	.footer-content {
		grid-template-columns: repeat(2, 1fr);
		gap: 2.5rem;
	}
}

@media (min-width: 1024px) {
	.footer-content {
		grid-template-columns: repeat(4, 1fr);
	}
}

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

.footer-logo {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.footer-logo .logo-icon {
	position: relative;
}

.footer-logo .logo-glow {
	display: none;
}

.footer-logo .logo-circle {
	position: relative;
	background: var(--color-gray-900);
	border-radius: 9999px;
	padding: 0.5rem;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.footer-logo .logo-circle img {
	width: 28px;
	height: 28px;
	object-fit: contain;
}

.footer-logo .logo-name {
	font-size: 1.25rem;
	font-weight: 700;
}

.footer-about p {
	color: var(--color-gray-400);
	font-size: 0.875rem;
	line-height: 1.6;
}

.footer-social {
	display: flex;
	gap: 1rem;
}

.footer-social a {
	color: var(--color-gray-400);
	transition: color var(--transition);
}

.footer-social a:hover {
	color: var(--color-teal-500);
}

.footer-social a svg {
	width: 20px;
	height: 20px;
}

/* Footer Columns */
.footer-column h4 {
	font-size: 1.125rem;
	font-weight: 600;
	margin-bottom: 1.5rem;
}

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

.footer-column ul li a {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--color-gray-400);
	font-size: 0.875rem;
	transition: color var(--transition);
}

.footer-column ul li a:hover {
	color: var(--color-teal-500);
}

.footer-column ul li a svg {
	width: 12px;
	height: 12px;
}

/* Footer Contact */
.footer-contact-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.footer-contact-item {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.footer-contact-item svg {
	flex-shrink: 0;
	color: var(--color-teal-500);
	width: 20px;
	height: 20px;
	margin-top: 2px;
}

.footer-contact-item span {
	color: var(--color-gray-400);
	font-size: 0.875rem;
}

/* Footer Copyright */
.footer-copyright {
	padding: 2rem 0;
	border-top: 1px solid var(--color-gray-800);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	text-align: center;
}

@media (min-width: 768px) {
	.footer-copyright {
		flex-direction: row;
		justify-content: space-between;
		text-align: left;
	}
}

.footer-copyright p {
	color: var(--color-gray-500);
	font-size: 0.875rem;
}

.footer-copyright-links {
	display: flex;
	gap: 1.5rem;
}

.footer-copyright-links a {
	color: var(--color-gray-500);
	font-size: 0.875rem;
	transition: color var(--transition);
}

.footer-copyright-links a:hover {
	color: var(--color-teal-500);
}

/* === Breadcrumb === */
.adsmart-breadcrumb {
	background: var(--color-gray-50);
	padding: 1rem 0;
	border-bottom: 1px solid var(--color-gray-100);
}

.adsmart-breadcrumb ol {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
}

.adsmart-breadcrumb ol li {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.adsmart-breadcrumb ol li::before {
	content: '/';
	color: var(--color-gray-400);
}

.adsmart-breadcrumb ol li:first-child::before {
	display: none;
}

.adsmart-breadcrumb ol li a {
	color: var(--color-teal-500);
}

.adsmart-breadcrumb ol li a:hover {
	color: var(--color-teal-600);
}

.adsmart-breadcrumb ol li.current {
	color: var(--color-gray-500);
}

/* === Single Post / Page === */
.single-content {
	padding-top: calc(var(--header-height) + 2rem);
}

.single-hero {
	padding: 2rem 0;
}

.single-hero h1 {
	font-size: 2rem;
	font-weight: 700;
	color: var(--color-gray-900);
	margin-bottom: 1rem;
	line-height: 1.3;
}

@media (min-width: 768px) {
	.single-hero h1 {
		font-size: 2.5rem;
	}
}

.single-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	font-size: 0.875rem;
	color: var(--color-gray-500);
	margin-bottom: 1.5rem;
}

.single-featured-image {
	border-radius: 1rem;
	overflow: hidden;
	margin-bottom: 2rem;
}

.single-featured-image img {
	width: 100%;
	height: auto;
}

.single-body {
	max-width: 48rem;
	margin: 0 auto;
}

.single-body h2 {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--color-gray-900);
	margin: 2rem 0 1rem;
}

.single-body h3 {
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--color-gray-800);
	margin: 1.5rem 0 0.75rem;
}

.single-body p {
	color: var(--color-gray-600);
	line-height: 1.8;
	margin-bottom: 1rem;
}

.single-body ul,
.single-body ol {
	margin: 1rem 0;
	padding-left: 1.5rem;
}

.single-body ul li {
	list-style: disc;
	color: var(--color-gray-600);
	margin-bottom: 0.5rem;
}

.single-body ol li {
	list-style: decimal;
	color: var(--color-gray-600);
	margin-bottom: 0.5rem;
}

.single-body img {
	border-radius: 0.5rem;
	margin: 1.5rem 0;
}

.single-body blockquote {
	border-left: 4px solid var(--color-teal-500);
	padding: 1rem 1.5rem;
	margin: 1.5rem 0;
	background: var(--color-gray-50);
	border-radius: 0 0.5rem 0.5rem 0;
}

.single-body blockquote p {
	color: var(--color-gray-700);
	font-style: italic;
}

/* Tags */
.post-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 2rem 0;
}

.post-tags a {
	font-size: 0.75rem;
	padding: 0.25rem 0.75rem;
	border-radius: 9999px;
	background: var(--color-gray-100);
	color: var(--color-gray-600);
	transition: all var(--transition);
}

.post-tags a:hover {
	background: var(--color-teal-500);
	color: var(--color-white);
}

/* === Single Service / Project Detail === */
.detail-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

@media (min-width: 1024px) {
	.detail-layout {
		grid-template-columns: 2fr 1fr;
		gap: 3rem;
	}
}

.detail-sidebar {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.sidebar-widget {
	background: var(--color-gray-50);
	border-radius: 0.75rem;
	padding: 1.5rem;
	border: 1px solid var(--color-gray-100);
}

.sidebar-widget h3 {
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--color-gray-900);
	margin-bottom: 1rem;
}

.sidebar-widget ul {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.sidebar-widget ul li a {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	color: var(--color-gray-600);
	padding: 0.5rem;
	border-radius: 0.375rem;
	transition: all var(--transition);
}

.sidebar-widget ul li a:hover,
.sidebar-widget ul li a.current {
	background: var(--color-teal-50);
	color: var(--color-teal-600);
}

.sidebar-cta {
	background: linear-gradient(135deg, var(--color-teal-500), var(--color-cyan-600));
	border-radius: 0.75rem;
	padding: 1.5rem;
	text-align: center;
	color: var(--color-white);
}

.sidebar-cta h3 {
	font-size: 1.125rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
	color: var(--color-white);
}

.sidebar-cta p {
	font-size: 0.875rem;
	opacity: 0.9;
	margin-bottom: 1rem;
}

.sidebar-cta .btn {
	background: var(--color-white);
	color: var(--color-teal-600);
}

.sidebar-cta .btn:hover {
	background: var(--color-gray-100);
}

/* Feature Detail List */
.feature-detail-list {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	margin-top: 2rem;
}

.feature-detail-item {
	background: var(--color-gray-50);
	border-radius: 0.75rem;
	padding: 1.5rem;
	border: 1px solid var(--color-gray-100);
}

.feature-detail-item h3 {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--color-gray-900);
	margin-bottom: 0.75rem;
}

.feature-detail-item h3 .emoji {
	font-size: 1.25rem;
}

.feature-detail-item ul {
	padding-left: 1rem;
}

.feature-detail-item ul li {
	list-style: disc;
	color: var(--color-gray-600);
	font-size: 0.875rem;
	line-height: 1.6;
	margin-bottom: 0.5rem;
}

/* === Archive Pages === */
.archive-header {
	padding-top: calc(var(--header-height) + 2rem);
	padding-bottom: 2rem;
	background: var(--color-gray-50);
	border-bottom: 1px solid var(--color-gray-100);
}

.archive-header h1 {
	font-size: 2rem;
	font-weight: 700;
	color: var(--color-gray-900);
}

/* Pagination */
.pagination {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 3rem;
}

.pagination a,
.pagination span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 0.5rem;
	font-size: 0.875rem;
	font-weight: 500;
	border: 1px solid var(--color-gray-200);
	color: var(--color-gray-600);
	transition: all var(--transition);
}

.pagination a:hover {
	border-color: var(--color-teal-500);
	color: var(--color-teal-500);
}

.pagination span.current {
	background: linear-gradient(135deg, var(--color-teal-500), var(--color-cyan-600));
	color: var(--color-white);
	border-color: transparent;
}

/* === 404 Page === */
.page-404 {
	padding-top: calc(var(--header-height) + 4rem);
	padding-bottom: 4rem;
	text-align: center;
	min-height: 60vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.page-404 h1 {
	font-size: 6rem;
	font-weight: 800;
}

.page-404 p {
	font-size: 1.25rem;
	color: var(--color-gray-500);
	margin: 1rem 0 2rem;
}

/* === Theme Toggle Button === */
.theme-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 0.5rem;
	cursor: pointer;
	transition: background var(--transition);
	color: var(--color-gray-600);
	position: relative;
}

.theme-toggle:hover {
	background: var(--color-gray-100);
	color: var(--color-gray-900);
}

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

.theme-toggle .theme-icon-sun {
	display: flex;
}

[data-theme="dark"] .theme-toggle .theme-icon-sun {
	display: none;
}

[data-theme="dark"] .theme-toggle .theme-icon-moon {
	display: flex;
}

[data-theme="dark"] .theme-toggle:hover {
	background: var(--color-gray-700);
}

/* Mobile theme toggle. */
.theme-toggle-mobile {
	width: 100%;
	justify-content: flex-start;
	gap: 0.75rem;
	padding: 0.75rem;
	border-radius: 0.5rem;
	border: 1px solid var(--color-gray-200);
	margin-bottom: 1rem;
}

.theme-toggle-mobile:hover {
	border-color: var(--color-teal-300);
}

.theme-toggle-label {
	font-size: 0.875rem;
	font-weight: 500;
}

.mobile-menu-footer {
	margin-top: 2rem;
	display: flex;
	flex-direction: column;
	gap: 0;
}

/* === Dark Mode === */
[data-theme="dark"] {
	color-scheme: dark;
}

[data-theme="dark"] body {
	background-color: #050a05;
	color: var(--color-gray-200);
}

/* Aurora light rays — Canvas + Bezier curves, rendered in main.js. */
.aurora-wrap {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 0;
	overflow: hidden;
}

/* Ensure content sits above aurora. */
[data-theme="dark"] .site-header {
	z-index: 50;
}

[data-theme="dark"] .site-main,
[data-theme="dark"] .site-footer {
	position: relative;
	z-index: 1;
}

/* Hero content above aurora. */
[data-theme="dark"] .hero-content {
	position: relative;
	z-index: 1;
}

/* Header — dark. */
[data-theme="dark"] .site-header.scrolled {
	background-color: rgba(3, 7, 18, 0.92);
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .main-nav a {
	color: var(--color-gray-300);
}

[data-theme="dark"] .main-nav a:hover,
[data-theme="dark"] .main-nav a.current {
	color: var(--color-teal-400);
}

[data-theme="dark"] .mobile-menu-toggle:hover {
	background: var(--color-gray-800);
}

[data-theme="dark"] .mobile-menu-toggle svg {
	color: var(--color-gray-300);
}

/* Mobile menu — dark. */
[data-theme="dark"] .mobile-menu-overlay {
	background: rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .mobile-menu-panel {
	background: rgba(17, 24, 39, 0.98);
	border-left-color: var(--color-gray-700);
	box-shadow: -10px 0 30px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .mobile-menu-close button:hover {
	background: var(--color-gray-800);
}

[data-theme="dark"] .mobile-menu-close button svg {
	color: var(--color-gray-300);
}

[data-theme="dark"] .mobile-menu-nav a {
	color: var(--color-gray-200);
}

[data-theme="dark"] .mobile-menu-nav a:hover {
	color: var(--color-teal-400);
}

[data-theme="dark"] .theme-toggle-mobile {
	border-color: var(--color-gray-700);
	color: var(--color-gray-300);
}

[data-theme="dark"] .theme-toggle-mobile:hover {
	border-color: var(--color-teal-500);
	background: var(--color-gray-800);
}

/* Hero section — dark. */
[data-theme="dark"] .hero-section {
	background: transparent;
}

[data-theme="dark"] .hero-brand {
	color: var(--color-gray-500);
}

[data-theme="dark"] .hero-badge {
	color: var(--color-teal-400);
	border-bottom-color: var(--color-teal-600);
}

[data-theme="dark"] .hero-title {
	color: var(--color-gray-100);
}

[data-theme="dark"] .hero-description {
	color: var(--color-gray-300);
}

[data-theme="dark"] .hero-device__frame {
	background: #111114;
	box-shadow:
		0 20px 50px -12px rgba(0, 0, 0, 0.6),
		inset 0 1px 0 rgba(255, 255, 255, 0.05),
		inset 0 -1px 0 rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .hero-trust {
	border-color: var(--color-gray-700);
	background: rgba(17, 24, 39, 0.6);
}

[data-theme="dark"] .hero-hint {
	color: var(--color-gray-500);
}

[data-theme="dark"] .hero-trust-label {
	color: var(--color-gray-400);
}

[data-theme="dark"] .hero-trust-logos .logo-item {
	opacity: 0.85;
	color: var(--color-gray-200);
}

[data-theme="dark"] .hero-trust-logos .logo-item:hover {
	opacity: 1;
}

/* Buttons — dark. */
[data-theme="dark"] .btn-outline {
	color: var(--color-gray-200);
	border-color: var(--color-gray-600);
}

[data-theme="dark"] .btn-outline:hover {
	background: var(--color-gray-800);
	border-color: var(--color-teal-500);
	color: var(--color-teal-400);
}

/* Banner slider — dark. */
[data-theme="dark"] .banner-slider-section {
	background: transparent;
}

/* Dark mode: body is already dark, so hide the white→black gradient. */
/* Dark mode: body is dark → banner-slider fades into black naturally. */
[data-theme="dark"] .banner-slider-section::after {
	background: linear-gradient(180deg, transparent, #050a05);
}


[data-theme="dark"] .partner-logos .partner-item {
	background: var(--color-gray-800);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .partner-logos .partner-item img {
	filter: brightness(1.2);
}

/* Section headers — dark. */
[data-theme="dark"] .section-badge {
	color: var(--color-teal-400);
	background: rgba(34, 197, 94, 0.12);
	border: 1px solid rgba(34, 197, 94, 0.2);
}

[data-theme="dark"] .section-title {
	color: var(--color-gray-100);
}

[data-theme="dark"] .section-subtitle {
	color: var(--color-gray-300);
}

/* Features section — dark. */
[data-theme="dark"] .features-section {
	background: transparent;
}

[data-theme="dark"] .feature-card {
	background: var(--color-gray-800);
	border-color: var(--color-gray-700);
}

[data-theme="dark"] .feature-card:hover {
	border-color: var(--color-teal-600);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .feature-card h3 {
	color: var(--color-gray-100);
}

[data-theme="dark"] .feature-card p {
	color: var(--color-gray-400);
}

/* About section — dark. */
[data-theme="dark"] .about-section {
	background: transparent;
}

[data-theme="dark"] .about-content p {
	color: var(--color-gray-400);
}

[data-theme="dark"] .about-stat-card {
	background: var(--color-gray-800);
	border-color: var(--color-gray-700);
}

[data-theme="dark"] .about-stat-label {
	color: var(--color-gray-300);
}

/* Services section — dark. */
[data-theme="dark"] .services-section {
	background: transparent;
}

[data-theme="dark"] .service-tab {
	background: var(--color-gray-800);
	color: var(--color-gray-200);
	border-color: var(--color-gray-700);
}

[data-theme="dark"] .service-tab .tab-title {
	color: var(--color-gray-200);
}

[data-theme="dark"] .service-tab .tab-icon {
	color: var(--color-teal-400);
}

[data-theme="dark"] .service-tab:hover {
	border-color: var(--color-teal-500);
	background: rgba(34, 197, 94, 0.08);
}

[data-theme="dark"] .service-tab.active {
	border-color: var(--color-teal-400);
	background: rgba(34, 197, 94, 0.12);
}

[data-theme="dark"] .service-tab.active .tab-title {
	color: var(--color-teal-400);
}

[data-theme="dark"] .service-tab.active .tab-icon {
	color: var(--color-teal-300);
}

[data-theme="dark"] .service-detail {
	background: var(--color-gray-800);
	border-color: var(--color-gray-700);
}

[data-theme="dark"] .service-detail h3 {
	color: var(--color-gray-100);
}

[data-theme="dark"] .service-detail p,
[data-theme="dark"] .service-detail li {
	color: var(--color-gray-300);
}

/* Projects section — dark. */
[data-theme="dark"] .projects-section {
	background: transparent;
}

[data-theme="dark"] .project-filter-btn {
	color: var(--color-gray-400);
	border-color: var(--color-gray-700);
}

[data-theme="dark"] .project-filter-btn:hover,
[data-theme="dark"] .project-filter-btn.active {
	color: var(--color-white);
	border-color: var(--color-teal-500);
}

[data-theme="dark"] .project-card {
	background: var(--color-gray-800);
	border-color: var(--color-gray-700);
}

[data-theme="dark"] .project-card:hover {
	border-color: var(--color-teal-600);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .project-card-title {
	color: var(--color-gray-100);
}

[data-theme="dark"] .project-card-title a {
	color: var(--color-gray-100);
}

[data-theme="dark"] .project-card-desc {
	color: var(--color-gray-300);
}

[data-theme="dark"] .project-card-category {
	color: var(--color-teal-400);
	background: rgba(34, 197, 94, 0.15);
}

[data-theme="dark"] .project-filter-btn {
	color: var(--color-gray-400);
	border-color: var(--color-gray-700);
}

[data-theme="dark"] .project-filter-btn:hover,
[data-theme="dark"] .project-filter-btn.active {
	color: var(--color-white);
	border-color: var(--color-teal-500);
}

/* Pricing section — dark. */
[data-theme="dark"] .pricing-section {
	background: transparent;
}

[data-theme="dark"] .pricing-card {
	background: var(--color-gray-800);
	border-color: var(--color-gray-700);
}

[data-theme="dark"] .pricing-card:hover {
	border-color: var(--color-teal-600);
}

[data-theme="dark"] .pricing-card h3 {
	color: var(--color-gray-100);
}

[data-theme="dark"] .pricing-card .price {
	color: var(--color-gray-100);
}

[data-theme="dark"] .pricing-features li {
	color: var(--color-gray-400);
	border-bottom-color: var(--color-gray-700);
}

/* Testimonials — dark. */
[data-theme="dark"] .testimonials-section {
	background: transparent;
}

[data-theme="dark"] .testimonial-card {
	background: var(--color-gray-800);
	border-color: var(--color-gray-700);
}

[data-theme="dark"] .testimonial-text {
	color: var(--color-gray-300);
}

[data-theme="dark"] .testimonial-name {
	color: var(--color-gray-100);
}

[data-theme="dark"] .testimonial-role {
	color: var(--color-gray-500);
}

/* FAQ section — dark. */
[data-theme="dark"] .faq-section {
	background: transparent;
}

[data-theme="dark"] .faq-item {
	background: var(--color-gray-800);
	border-color: var(--color-gray-700);
}

[data-theme="dark"] .faq-question {
	color: var(--color-gray-100);
}

[data-theme="dark"] .faq-question:hover {
	color: var(--color-teal-400);
}

[data-theme="dark"] .faq-answer-inner {
	color: var(--color-gray-300);
}

/* News section — dark. */
[data-theme="dark"] .news-section {
	background: transparent;
}

[data-theme="dark"] .news-card {
	background: var(--color-gray-800);
	border-color: var(--color-gray-700);
}

[data-theme="dark"] .news-card:hover {
	border-color: var(--color-teal-600);
}

[data-theme="dark"] .news-title,
[data-theme="dark"] .news-card-title {
	color: var(--color-gray-100);
}

[data-theme="dark"] .news-excerpt {
	color: var(--color-gray-300);
}

[data-theme="dark"] .news-meta {
	color: var(--color-gray-500);
}

/* Contact section — dark. */
[data-theme="dark"] .contact-section {
	background: transparent;
}

[data-theme="dark"] .contact-card {
	background: var(--color-gray-800);
	border-color: var(--color-gray-700);
}

[data-theme="dark"] .contact-info h3 {
	color: var(--color-gray-100);
}

[data-theme="dark"] .contact-info p {
	color: var(--color-gray-300);
}

[data-theme="dark"] .contact-detail-item span {
	color: var(--color-gray-300);
}

/* Contact info items — dark. */
[data-theme="dark"] .contact-info-item .label {
	color: var(--color-gray-300);
}

[data-theme="dark"] .contact-info-item .value {
	color: var(--color-gray-300);
}

[data-theme="dark"] .contact-info-item .value:hover {
	color: var(--color-teal-400);
}

[data-theme="dark"] .contact-info-item svg {
	color: var(--color-teal-400);
}

/* Contact form wrapper — dark. */
[data-theme="dark"] .contact-form {
	background: rgba(17, 24, 39, 0.85);
	border-color: var(--color-gray-700);
	backdrop-filter: blur(10px);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .form-group select {
	background: var(--color-gray-900);
	border-color: var(--color-gray-600);
	color: var(--color-gray-200);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus,
[data-theme="dark"] .form-group select:focus {
	border-color: var(--color-teal-500);
	box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

[data-theme="dark"] .form-group input::placeholder,
[data-theme="dark"] .form-group textarea::placeholder {
	color: var(--color-gray-500);
}

[data-theme="dark"] .form-group label,
[data-theme="dark"] .form-label {
	color: var(--color-gray-300);
}

[data-theme="dark"] .form-label .required {
	color: var(--color-teal-400);
}

/* Footer — dark mode adjustments for already-dark footer. */
[data-theme="dark"] .site-footer {
	background: linear-gradient(135deg, #030712, #0a0f1a);
}

[data-theme="dark"] .footer-newsletter {
	background: var(--color-gray-900);
}

[data-theme="dark"] .newsletter-input {
	background: var(--color-gray-800);
	border-color: var(--color-gray-700);
	color: var(--color-gray-200);
}

/* CTA section — dark. */
[data-theme="dark"] .cta-section {
	background: transparent;
}

/* Logo overrides for dark mode. */

[data-theme="dark"] .site-logo .logo-text {
	-webkit-text-fill-color: var(--color-teal-400);
	background: none;
}

/* Breadcrumb — dark. */
[data-theme="dark"] .adsmart-breadcrumb {
	background: var(--color-gray-900);
	border-bottom-color: var(--color-gray-800);
}

[data-theme="dark"] .adsmart-breadcrumb a {
	color: var(--color-gray-400);
}

[data-theme="dark"] .adsmart-breadcrumb span {
	color: var(--color-gray-300);
}

/* Misc card/bg overrides — dark. */
[data-theme="dark"] .process-card {
	background: var(--color-gray-800);
	border-color: var(--color-gray-700);
}

[data-theme="dark"] .process-card h3 {
	color: var(--color-gray-100);
}

[data-theme="dark"] .process-card p {
	color: var(--color-gray-400);
}

[data-theme="dark"] .banner-nav-btn {
	background: rgba(0, 0, 0, 0.5);
	color: var(--color-gray-200);
}

/* Archive / single pages — dark. */
[data-theme="dark"] .archive-header {
	background: var(--color-gray-900);
}

[data-theme="dark"] .archive-title {
	color: var(--color-gray-100);
}

[data-theme="dark"] .archive-description {
	color: var(--color-gray-400);
}

[data-theme="dark"] .entry-content {
	color: var(--color-gray-300);
}

[data-theme="dark"] .entry-content h2,
[data-theme="dark"] .entry-content h3,
[data-theme="dark"] .entry-content h4 {
	color: var(--color-gray-100);
}

/* Single post/page — dark. */
[data-theme="dark"] .single-hero h1 {
	color: var(--color-gray-100);
}

[data-theme="dark"] .single-meta {
	color: var(--color-gray-500);
}

[data-theme="dark"] .single-body h2 {
	color: var(--color-gray-100);
}

[data-theme="dark"] .single-body h3 {
	color: var(--color-gray-200);
}

[data-theme="dark"] .single-body p,
[data-theme="dark"] .single-body ul li,
[data-theme="dark"] .single-body ol li {
	color: var(--color-gray-300);
}

[data-theme="dark"] .single-body blockquote {
	background: rgba(17, 24, 39, 0.6);
	border-left-color: var(--color-teal-400);
}

[data-theme="dark"] .single-body blockquote p {
	color: var(--color-gray-300);
}

[data-theme="dark"] .post-tags a {
	background: var(--color-gray-800);
	color: var(--color-gray-300);
}

[data-theme="dark"] .post-tags a:hover {
	background: var(--color-teal-500);
	color: var(--color-white);
}

/* Sidebar — dark. */
[data-theme="dark"] .sidebar-widget {
	background: rgba(17, 24, 39, 0.7);
	border-color: var(--color-gray-700);
}

[data-theme="dark"] .sidebar-widget h3 {
	color: var(--color-gray-100);
}

[data-theme="dark"] .sidebar-widget ul li a {
	color: var(--color-gray-400);
}

[data-theme="dark"] .sidebar-widget ul li a:hover,
[data-theme="dark"] .sidebar-widget ul li a.current {
	background: rgba(34, 197, 94, 0.1);
	color: var(--color-teal-400);
}

/* Feature detail — dark. */
[data-theme="dark"] .feature-detail-item {
	border-color: var(--color-gray-700);
}

/* Hide scrollbar globally — prevent layout shift. */
html {
	scrollbar-width: none; /* Firefox */
}

::-webkit-scrollbar {
	display: none; /* Chrome, Safari, Edge */
}

/* Selection — dark. */
[data-theme="dark"] ::selection {
	background: var(--color-teal-600);
	color: var(--color-white);
}

/* === Utility === */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

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

/* Smooth scrolling for anchor links */
html {
	scroll-padding-top: var(--header-height);
}


/* ===================================================================
   MULTI-DEVICE SECTION
   Scroll-driven WebGL2 beam + GSAP ScrollTrigger + 3D device flip.
   Faithfully ported from smit.vn.
   Desktop: sticky canvas + scroll track.  Mobile: card fallback.
   =================================================================== */

/* ── Section root ─────────────────────────────────────────── */
.md-section {
	--block1-h: calc(352px + 100lvh);
	--device-zone: calc(100lvh / 1);
	position: relative;
	width: 100%;
	overflow: clip;
	background: #000;
}


/* ── Desktop-only / mobile-only toggles ───────────────────── */
.hidden-mobile {
	display: none;
}

@media (min-width: 1025px) {
	.hidden-mobile {
		display: block;
	}
	.md-mobile-fallback {
		display: none !important;
	}
}

/* ── Sticky WebGL canvas (desktop) ────────────────────────── */
.md-beam-sticky {
	pointer-events: none;
	position: sticky;
	top: 0;
	z-index: 0;
	height: 100vh;
	width: 100%;
	overflow: hidden;
}

.md-beam-canvas {
	position: absolute;
	inset: 0;
	height: 100%;
	width: 100%;
}

/* ── Scroll content overlay (desktop) ─────────────────────── */
.md-scroll-content {
	position: relative;
	margin-top: -100vh;
	z-index: 10;
}

/* ── Dark gradient top ────────────────────────────────────── */
.md-gradient-top {
	pointer-events: none;
	position: absolute;
	inset: 0 0 auto 0;
	z-index: 1;
	height: 20lvh;
	background-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0) 100%);
}

/* ── Dark gradient bottom (fade multidevice → next section) ── */
.md-gradient-bottom {
	pointer-events: none;
	position: absolute;
	inset: auto 0 0 0;
	z-index: 20;
	height: 20lvh;
	background-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, var(--color-gray-50) 100%);
}

[data-theme="dark"] .md-gradient-bottom {
	background-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #050a05 100%);
}

/* ── Block 1: header + device zone ────────────────────────── */
.md-block1 {
	position: relative;
	z-index: 10;
	width: 100%;
	height: var(--block1-h);
}

/* ── 1920px wrapper — JS scales via Math.min(innerWidth/1920, vh/1080) ── */
.md-inner {
	position: absolute;
	left: 50%;
	top: 0;
	width: 1920px;
	transform: translateX(-50%) scale(1);
	transform-origin: top center;
}

/* ── 1380px centered column (header + device zone — matches smit.vn) ── */
.md-inner-col {
	display: flex;
	flex-direction: column;
	gap: 80px;
	margin: 0 auto;
	width: 1380px;
	padding: 120px 40px 0;
}

/* ── Header row: title left + desc right (matches smit.vn desktop) ── */
.md-header-row {
	display: flex;
	width: 100%;
	align-items: flex-end;
	gap: 16px;
}

.md-header-left {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 16px;
}

/* ── Badge (green dot + label) ────────────────────────────── */
.md-badge {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 6px;
	padding: 4px 8px;
	border: 1px solid #14ff89;
	background: rgba(132, 255, 153, 0.1);
}

.md-badge__dot {
	width: 6px;
	height: 6px;
	background: linear-gradient(to bottom, #14ff89, #8eff77);
}

.md-badge__text {
	white-space: nowrap;
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	letter-spacing: 0.01em;
	color: #fff;
}

/* ── Title + description ──────────────────────────────────── */
.md-title {
	width: 560px;
	font-size: 44px;
	font-weight: 500;
	line-height: 54px;
	letter-spacing: -0.22px;
	color: #fff;
	margin: 0;
}

.md-desc {
	width: 470px;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: -0.18px;
	color: rgba(255, 255, 255, 0.6);
	margin: 0;
}

/* ── Device zone ──────────────────────────────────────────── */
.md-device-zone {
	position: relative;
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: center;
	height: var(--device-zone);
}

/* ── Hand image (fixed px — matches smit.vn stage:block) ───── */
.md-hand {
	pointer-events: none;
	position: absolute;
	left: 50%;
	z-index: 0;
	transform: translateX(-50%);
	width: 815px;
	height: 904px;
	bottom: calc(var(--device-zone) / 2 - 535.5px);
}

.md-hand img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	clip-path: inset(0.5% 0 0 0);
}

/* ── Landing text overlay ─────────────────────────────────── */
.md-landing-text {
	position: absolute;
	inset: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 40px;
	opacity: 0;
	visibility: hidden;
}

.md-landing-title {
	width: 319px;
	font-size: 44px;
	font-weight: 500;
	line-height: 54px;
	letter-spacing: -0.22px;
	color: #fff;
	margin: 0;
}

.md-landing-desc {
	width: 266px;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: -0.18px;
	color: rgba(255, 255, 255, 0.6);
	margin: 0;
}

/* ── Milestone captions (inside perspective — matches smit.vn) ── */
.md-milestones {
	pointer-events: none;
	position: absolute;
	inset: 0 0 0 0;
	z-index: 10;
	opacity: 0;
	visibility: hidden;
}

.md-milestone {
	position: absolute;
	inset: 0 0 auto 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100%;
}

.md-milestone[data-milestone="0"] { top: 0; }
.md-milestone[data-milestone="1"] { top: 1200px; }
.md-milestone[data-milestone="2"] { top: 2400px; }

.md-milestone__title {
	width: 360px;
	font-size: 44px;
	font-weight: 500;
	line-height: 54px;
	letter-spacing: -0.22px;
	color: #fff;
	margin: 0;
}

.md-milestone__desc {
	width: 266px;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: -0.18px;
	color: rgba(255, 255, 255, 0.6);
	margin: 0;
}

/* ── 3D Perspective container (w-full of 1300px content — matches smit.vn stage:block) ── */
.md-perspective {
	position: relative;
	z-index: 10;
	width: 100%;
	perspective: 2400px;
}

/* ── Flip container (preserve-3d) ─────────────────────────── */
.md-flip {
	position: relative;
	width: 100%;
	transform-style: preserve-3d;
}

/* ── Laptop frame (front face) ────────────────────────────── */
.md-laptop-frame {
	width: 100%;
	border-radius: 34px;
	padding: 18px;
	backface-visibility: hidden;
	background: linear-gradient(160deg, #2a2c30 0%, #0e0f11 45%, #050506 100%);
	box-shadow:
		0 40px 120px -20px rgba(0, 0, 0, 0.7),
		inset 0 0 0 1px rgba(255, 255, 255, 0.08),
		inset 0 1px 2px rgba(255, 255, 255, 0.18);
}

.md-laptop-screen {
	position: relative;
	aspect-ratio: 3840 / 2160;
	width: 100%;
	overflow: hidden;
	border-radius: 18px;
	background: #000;
	box-shadow:
		inset 0 0 0 1px rgba(0, 0, 0, 0.9),
		inset 0 2px 12px rgba(0, 0, 0, 0.6);
}

.md-img-fill {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ── Slide reveal (clipPath animated by GSAP) ─────────────── */
.md-slide-reveal {
	position: absolute;
	inset: 0;
	overflow: hidden;
	clip-path: inset(0 100% 0 0);
}

/* ── Phone frame (back face, rotated 180deg) ──────────────── */
.md-phone-back {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	backface-visibility: hidden;
	transform: rotateY(180deg);
}

.md-phone-frame {
	height: 100%;
	aspect-ratio: 360 / 772;
	border-radius: 40px;
	padding: 12px;
	background: linear-gradient(160deg, #2a2c30 0%, #0e0f11 45%, #050506 100%);
	box-shadow:
		0 40px 120px -20px rgba(0, 0, 0, 0.7),
		inset 0 0 0 1px rgba(255, 255, 255, 0.08),
		inset 0 1px 2px rgba(255, 255, 255, 0.18);
}

.md-phone-screen {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	border-radius: 30px;
	background: #000;
}

/* ── Phone slides (vertical stack, animated by GSAP) ──────── */
.md-phone-slides {
	position: absolute;
	inset: 0;
}

.md-phone-slide {
	position: absolute;
	inset: 0 0 auto 0;
	height: 100%;
}

.md-phone-slide:nth-child(1) { top: 0; }
.md-phone-slide:nth-child(2) { top: 100%; }
.md-phone-slide:nth-child(3) { top: 200%; }
.md-phone-slide:nth-child(4) { top: 300%; }

/* ── Phone flash overlay ──────────────────────────────────── */
.md-phone-flash {
	pointer-events: none;
	position: absolute;
	inset: 0;
	background: #000;
	opacity: 0;
}

/* ── Mobile fallback ──────────────────────────────────────── */
.md-mobile-fallback {
	display: block;
	padding: 4rem 0 3rem;
	background: #000;
}

.md-mobile-fallback .section-title {
	color: #f0fdf4;
	font-size: clamp(1.5rem, 4vw, 2rem);
	margin: 1rem 0;
}

.md-mobile-fallback .md-desc {
	width: auto;
	max-width: 560px;
	margin-bottom: 2rem;
}

.md-mobile-fallback .md-badge {
	margin-bottom: 1rem;
}

/* Mobile header for CRM section */
.md-mobile-header {
	margin-bottom: 2rem;
}

.md-mobile-title {
	color: #f0fdf4;
	font-size: clamp(1.5rem, 4vw, 2rem);
	font-weight: 700;
	line-height: 1.3;
	margin: 1rem 0 0.75rem;
}

.md-mobile-desc {
	font-size: 0.875rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.6);
	margin: 0;
}

/* Vertical card stack */
.md-benefit-cards {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

/* Individual benefit card */
.md-benefit-card {
	position: relative;
	border-radius: 1rem;
	overflow: hidden;
	min-height: 420px;
	opacity: 0;
	transform: translateY(50px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.md-benefit-card:nth-child(2) {
	transition-delay: 0.12s;
}
.md-benefit-card:nth-child(3) {
	transition-delay: 0.24s;
}

.md-benefit-card.md-benefit-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Background image */
.md-benefit-card__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
}

/* Content overlay */
.md-benefit-card__content {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 420px;
	padding: 2rem 1.5rem;
	z-index: 1;
}

/* Description — pushed to bottom */
.md-benefit-card__text {
	margin-top: auto;
}

.md-benefit-card__text p {
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.7);
	margin: 0 0 1rem;
}

/* Decorative gradient line */
.md-benefit-card__line {
	width: 2rem;
	height: 2px;
	border-radius: 9999px;
	background: linear-gradient(to right, #22d3ee, #34d399);
}

.md-mobile-cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	margin-top: 1.5rem;
}

@media (min-width: 640px) {
	.md-mobile-cards {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 768px) {
	.md-mobile-cards {
		grid-template-columns: repeat(3, 1fr);
	}
}

.md-mobile-card {
	padding: 1.5rem;
	background: rgba(16, 24, 40, 0.7);
	border: 1px solid rgba(20, 184, 166, 0.2);
	border-radius: 0.75rem;
	transition: border-color 0.3s;
}

.md-mobile-card:hover {
	border-color: rgba(20, 184, 166, 0.5);
}

.md-mobile-card__icon {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background: rgba(20, 184, 166, 0.12);
	color: #14b8a6;
	margin-bottom: 1rem;
}

.md-mobile-card h3 {
	font-size: 1.1rem;
	font-weight: 600;
	color: #f0fdf4;
	margin: 0 0 0.5rem;
}

.md-mobile-card p {
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.5);
	line-height: 1.7;
	margin: 0;
}