/* ==========================================================================
   Advanced AI Marketing — Operator Widgets (AAIO)
   All selectors are namespaced under .aaio- to avoid theme/Elementor bleed.
   ========================================================================== */

:root {
	--aaio-primary: #023c96;
	--aaio-secondary: #8e8f94;
	--aaio-white: #ffffff;
	--aaio-bg-light: #f5f8fc;
	--aaio-accent: #0f52b8;
	--aaio-text: #333333;
	--aaio-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.aaio-operator-hero,
.aaio-section,
.aaio-section-alt,
.aaio-image-divider {
	font-family: var(--aaio-font);
	color: var(--aaio-text);
	-webkit-font-smoothing: antialiased;
	box-sizing: border-box;
}

.aaio-operator-hero *,
.aaio-section *,
.aaio-section-alt *,
.aaio-image-divider * { box-sizing: border-box; }

.aaio-operator-hero h1,
.aaio-operator-hero h2,
.aaio-operator-hero h3,
.aaio-section h1,
.aaio-section h2,
.aaio-section h3,
.aaio-section h4,
.aaio-section-alt h1,
.aaio-section-alt h2,
.aaio-section-alt h3,
.aaio-section-alt h4 {
	color: var(--aaio-primary);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
	margin: 0 0 0.5rem;
}

.aaio-section p,
.aaio-section-alt p {
	color: var(--aaio-secondary);
	margin: 0 0 1.25rem;
	font-size: 1.125rem;
	font-weight: 400;
	line-height: 1.6;
}

/* ============================ Hero ============================ */

.aaio-operator-hero {
	position: relative;
	height: clamp(600px, 80vh, 1000px);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: linear-gradient(180deg, var(--aaio-bg-light) 0%, var(--aaio-white) 100%);
	perspective: 1000px;
}

.aaio-hero-3d-grid {
	position: absolute;
	bottom: -20%;
	left: -50%;
	width: 200%;
	height: 100%;
	background-image:
		linear-gradient(rgba(2, 60, 150, 0.1) 2px, transparent 2px),
		linear-gradient(90deg, rgba(2, 60, 150, 0.1) 2px, transparent 2px);
	background-size: 60px 60px;
	transform-origin: bottom center;
	transform: perspective(600px) rotateX(75deg);
	z-index: 0;
	-webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
	mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
	animation: aaio-gridMove 10s linear infinite;
	pointer-events: none;
}

@keyframes aaio-gridMove {
	0%   { transform: perspective(600px) rotateX(75deg) translateY(0); }
	100% { transform: perspective(600px) rotateX(75deg) translateY(60px); }
}

.aaio-ai-network-canvas {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	opacity: 0.5;
	pointer-events: none;
}

.aaio-hero-glow {
	position: absolute;
	width: 800px;
	height: 800px;
	max-width: 120%;
	background: radial-gradient(circle, rgba(2, 60, 150, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 1;
	pointer-events: none;
}

.aaio-hero-content {
	position: relative;
	z-index: 2;
	text-align: center;
	max-width: 900px;
	padding: 2rem;
	transform-style: preserve-3d;
	transition: transform 0.2s ease-out;
}

.aaio-ai-badge {
	display: inline-block;
	padding: 8px 24px;
	background: rgba(2, 60, 150, 0.05);
	border: 1px solid rgba(2, 60, 150, 0.15);
	border-radius: 50px;
	color: var(--aaio-primary);
	font-weight: 600;
	font-size: 0.9rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-bottom: 2rem;
	transform: translateZ(20px);
	animation: aaio-heroIn 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
	opacity: 0;
	box-shadow: 0 4px 15px rgba(2, 60, 150, 0.05);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.aaio-hero-title {
	font-size: clamp(3.5rem, 8vw, 6rem);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	background: linear-gradient(135deg, var(--aaio-primary), var(--aaio-accent));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
	margin-bottom: 1rem;
	transform: translateZ(50px);
	animation: aaio-heroIn 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
	opacity: 0;
}

.aaio-hero-subtitle {
	font-size: clamp(1.25rem, 3vw, 2rem);
	color: var(--aaio-secondary);
	font-weight: 500;
	margin: 0;
	transform: translateZ(30px);
	animation: aaio-heroIn 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s forwards;
	opacity: 0;
}

.aaio-scroll-indicator {
	position: absolute;
	bottom: 40px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	color: var(--aaio-secondary);
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	opacity: 0;
	animation: aaio-heroIn 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) 1s forwards;
	pointer-events: none;
}

.aaio-mouse {
	width: 26px;
	height: 42px;
	border: 2px solid rgba(142, 143, 148, 0.6);
	border-radius: 15px;
	margin-bottom: 8px;
	position: relative;
}

.aaio-wheel {
	width: 4px;
	height: 8px;
	background: var(--aaio-primary);
	border-radius: 2px;
	position: absolute;
	top: 6px;
	left: 50%;
	transform: translateX(-50%);
	animation: aaio-scrollWheel 2s infinite;
}

@keyframes aaio-scrollWheel {
	0%   { top: 6px;  opacity: 1; }
	100% { top: 22px; opacity: 0; }
}

@keyframes aaio-heroIn {
	0%   { opacity: 0; transform: translateY(40px) translateZ(0px); }
	100% { opacity: 1; transform: translateY(0)     translateZ(30px); }
}

/* ============================ Layout ============================ */

.aaio-container {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 5rem 2rem;
}

.aaio-section-alt {
	background-color: var(--aaio-bg-light);
	border-top: 1px solid rgba(142, 143, 148, 0.1);
	border-bottom: 1px solid rgba(142, 143, 148, 0.1);
}

.aaio-section-title {
	font-size: clamp(2rem, 4vw, 3rem);
	margin: 0 0 1rem;
	text-align: center;
}

.aaio-section-title-narrow {
	max-width: 900px;
	margin: 0 auto 3rem;
}

.aaio-text-left   { text-align: left !important; }
.aaio-text-center { text-align: center !important; }
.aaio-align-center { align-items: center; }

.aaio-section-subtitle {
	text-align: center;
	max-width: 800px;
	margin: 0 auto 4rem;
	font-size: 1.25rem !important;
}

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

.aaio-mt-md { margin-top: 1.5rem; }
.aaio-mt-xl { margin-top: 2.5rem; }
.aaio-mt-0  { margin-top: 0; }

.aaio-content-padding { padding-right: 2rem; }

/* ============================ Cards ============================ */

.aaio-card-3d {
	position: relative;
	background: var(--aaio-white);
	border-radius: 24px;
	padding: 3rem 2rem;
	box-shadow:
		0 15px 35px rgba(2, 60, 150, 0.05),
		0 5px 15px rgba(142, 143, 148, 0.05),
		inset 0 0 0 1px rgba(255, 255, 255, 0.8),
		inset 0 0 0 2px rgba(142, 143, 148, 0.05);
	transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
	transform-style: preserve-3d;
	height: 100%;
}

.aaio-card-3d::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 24px;
	background: linear-gradient(135deg, rgba(2, 60, 150, 0.03), transparent);
	z-index: 0;
	pointer-events: none;
	transition: opacity 0.4s ease;
}

.aaio-card-inner {
	position: relative;
	z-index: 1;
	transform: translateZ(40px);
	transform-style: preserve-3d;
}

.aaio-card-3d:hover {
	box-shadow:
		0 30px 60px rgba(2, 60, 150, 0.1),
		0 10px 20px rgba(142, 143, 148, 0.05);
}

.aaio-card-3d h2 {
	font-size: 1.8rem;
	margin-bottom: 0.75rem;
}

.aaio-card-3d h3 {
	margin: 0 0 1rem;
	font-size: 1.5rem;
}

.aaio-card-3d p {
	color: var(--aaio-secondary);
	margin: 0 0 1.25rem;
	font-size: 1.125rem;
	font-weight: 400;
	line-height: 1.6;
}

.aaio-card-3d ul,
.aaio-card-3d ol { margin: 0 0 1.25rem; }

/* Blue gradient card */
.aaio-card-blue {
	background: linear-gradient(135deg, var(--aaio-primary), var(--aaio-accent));
	color: var(--aaio-white);
	box-shadow: 0 20px 40px rgba(2, 60, 150, 0.2);
}
.aaio-card-blue::before { display: none; }
.aaio-card-blue h2,
.aaio-card-blue h3,
.aaio-card-blue strong { color: var(--aaio-white); }
.aaio-card-blue p      { color: rgba(255, 255, 255, 0.9); }
.aaio-on-blue          { color: var(--aaio-white) !important; }

.aaio-blue-h3 { margin: 1.5rem 0 0.5rem; font-size: 2rem; }
.aaio-bold-line { margin: 0 !important; font-weight: 600 !important; }
.aaio-blue-punch { font-size: 1.3rem !important; font-weight: 600 !important; margin-top: 1rem !important; }

/* Numeric badge for numbered cards */
.aaio-card-icon-number {
	font-size: 4rem;
	font-weight: 800;
	color: var(--aaio-primary);
	opacity: 0.1;
	position: absolute;
	top: 1rem;
	right: 2rem;
	transform: translateZ(20px);
	z-index: 1;
	line-height: 1;
}

/* Card image header */
.aaio-card-img {
	width: 100%;
	height: auto;
	border-radius: 12px;
	margin-bottom: 1.5rem;
	object-fit: cover;
	max-height: 350px;
	box-shadow: 0 10px 20px rgba(2, 60, 150, 0.1);
	transform: translateZ(20px);
	transition: transform 0.4s ease;
	display: block;
}

.aaio-card-img:hover {
	transform: translateZ(30px) scale(1.02);
}

.aaio-card-img-tall { max-height: 450px; }

.aaio-card-img-bordered {
	margin-bottom: 0;
	border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Split row (image + text inside a card) */
.aaio-split-row {
	display: flex;
	gap: 2rem;
	align-items: center;
	flex-wrap: wrap;
}

.aaio-split-row-reverse { flex-direction: row-reverse; }

.aaio-split-image { flex: 1; min-width: 300px; }
.aaio-split-text  { flex: 1.5; min-width: 300px; text-align: left; }

/* In-card helpers */
.aaio-kicker {
	font-weight: 600 !important;
	font-size: 1.25rem !important;
	color: var(--aaio-primary) !important;
	margin: 0 0 1.25rem !important;
}

.aaio-closer {
	font-weight: 600 !important;
	color: var(--aaio-primary) !important;
	margin-top: 1.5rem !important;
}

.aaio-punch {
	font-size: 1.5rem !important;
	font-weight: 600 !important;
	color: var(--aaio-primary) !important;
}

.aaio-large { font-size: 1.25rem !important; }

.aaio-h3-lg { font-size: 2rem !important; }
.aaio-h3-xl { font-size: 2.5rem !important; margin-bottom: 0.5rem !important; }

.aaio-card-divider {
	border: none;
	border-top: 1px solid rgba(142, 143, 148, 0.2);
	margin: 2rem 0;
}

/* Accent box */
.aaio-accent-box {
	background: rgba(2, 60, 150, 0.03);
	border-left: 4px solid var(--aaio-primary);
	padding: 1.5rem 2rem;
	margin: 2rem 0;
	border-radius: 0 16px 16px 0;
}

.aaio-accent-box p {
	margin: 0 !important;
	color: var(--aaio-primary) !important;
	font-weight: 600 !important;
	font-size: 1.2rem !important;
}

/* Flat accent (no bg, top-border only) */
.aaio-flat-accent {
	margin-bottom: 0;
	background: transparent;
	border-left: none;
	padding-left: 0;
	border-top: 2px solid var(--aaio-primary);
	border-radius: 0;
	margin-top: 2rem;
	padding-top: 1.5rem;
}

.aaio-flat-accent h3 {
	margin: 0 !important;
	font-size: 1.75rem !important;
	color: var(--aaio-primary) !important;
}

/* Tech bullet list */
.aaio-tech-list {
	list-style: none;
	padding: 0;
	margin-top: 1.5rem;
}

.aaio-tech-list li {
	position: relative;
	padding-left: 1.5rem;
	margin-bottom: 0.75rem;
	color: var(--aaio-secondary);
	font-size: 1.1rem;
}

.aaio-tech-list li::before {
	content: '\2192'; /* → */
	position: absolute;
	left: 0;
	color: var(--aaio-primary);
	font-weight: 800;
}

/* ============================ Image Divider ============================ */

.aaio-image-divider                 { padding: 4rem 0; }
.aaio-image-divider.aaio-bg-light   { background: var(--aaio-bg-light); }
.aaio-image-divider.aaio-bg-white   { background: var(--aaio-white); }
.aaio-image-divider.aaio-bg-gradient{ background: linear-gradient(135deg, var(--aaio-primary), var(--aaio-accent)); }
.aaio-image-divider.aaio-bg-none    { padding: 0; background: transparent; }

.aaio-image-divider-inner {
	margin: 0 auto;
	padding: 0 2rem;
}

.aaio-image-divider.aaio-layout-contained .aaio-image-divider-inner { max-width: 1280px; }
.aaio-image-divider.aaio-layout-full-width .aaio-image-divider-inner { max-width: 100%; padding: 0; }

.aaio-image-figure {
	margin: 0;
	border-radius: 18px;
	overflow: hidden;
}

.aaio-image-figure img {
	display: block;
	width: 100%;
	height: auto;
}

.aaio-image-caption {
	margin-top: 0.75rem;
	font-size: 0.95rem;
	color: var(--aaio-secondary);
	text-align: center;
}

/* ============================ Responsive ============================ */

@media (max-width: 992px) {
	.aaio-grid-3 { grid-template-columns: repeat(2, 1fr); }
	.aaio-grid-2 { grid-template-columns: 1fr; }
	.aaio-card-3d { padding: 2.5rem 1.5rem; }
	.aaio-content-padding { padding-right: 0; margin-bottom: 2rem; }
	.aaio-split-row { gap: 1.5rem; }
}

@media (max-width: 768px) {
	.aaio-hero-title    { font-size: clamp(2.5rem, 8vw, 3.5rem); }
	.aaio-hero-subtitle { font-size: clamp(1.1rem, 3vw, 1.25rem); }
	.aaio-section-title { font-size: clamp(1.75rem, 6vw, 2.5rem); }
	.aaio-operator-hero { height: 70vh; min-height: 500px; }
	.aaio-grid-3        { grid-template-columns: 1fr; }
	.aaio-container     { padding: 4rem 1.25rem; }
	.aaio-accent-box    { padding: 1.25rem; }
	.aaio-section p,
	.aaio-section-alt p,
	.aaio-card-3d p     { font-size: 1.05rem; }
	.aaio-card-icon-number { font-size: 3rem; right: 1rem; }
	.aaio-split-row, .aaio-split-row-reverse { flex-direction: column; }
}

@media (max-width: 480px) {
	.aaio-hero-title    { font-size: clamp(2rem, 10vw, 2.5rem); }
	.aaio-section-title { font-size: clamp(1.5rem, 8vw, 1.75rem); }
	.aaio-operator-hero { min-height: 450px; height: 60vh; }
	.aaio-hero-content  { padding: 1.5rem 1rem; }
	.aaio-ai-badge      { padding: 6px 16px; font-size: 0.8rem; margin-bottom: 1.5rem; }
	.aaio-card-3d       { padding: 2rem 1.25rem; }
	.aaio-card-3d h3    { font-size: 1.35rem; }
	.aaio-accent-box p  { font-size: 1.1rem !important; }
}
