/* ==========================================================================
   AlphaPros — AI Agents & Search Visibility page (page-ai-agents-search-visibility.php)
   ========================================================================== */

@keyframes ap-shimmer { to { background-position: -200% 0; } }
@keyframes ap-float-y {
	0%, 100% { translate: 0 0; }
	50% { translate: 0 -12px; }
}
.aiv-hero .text-gradient,
.aiv-platform__title .text-gradient {
	background-image: linear-gradient(90deg, #b57be8, #e7c4ff, #b57be8);
	background-size: 200% 100%;
	animation: ap-shimmer 6s linear infinite;
}

/* Shared bits
   ========================================================================== */
.aiv-head { margin-bottom: clamp(32px, 4vw, 48px); }
.aiv-head--center { max-width: 860px; margin-inline: auto; text-align: center; }
.aiv-head--center .section-title { margin-inline: auto; }
.aiv-head__lead { margin: 0 auto 1.2em; font-size: clamp(1rem, 1.3vw, 1.1rem); line-height: 1.9; }
.aiv-head__lead strong { color: var(--ap-white); font-weight: 600; }

.aiv-subtitle { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.3; margin-bottom: .55em; }
.aiv-label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 1.6em 0 1em;
	font: 600 .8125rem/1.4 var(--ap-font-body);
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--ap-primary-soft);
}
.aiv-label::before { content: ""; width: 28px; height: 2px; background: var(--ap-primary); border-radius: 2px; }
.aiv-label--center { display: flex; justify-content: center; margin-bottom: 0; }
.aiv-label--center::after { content: ""; width: 28px; height: 2px; background: var(--ap-primary); border-radius: 2px; }

.aiv-card {
	position: relative;
	background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .008));
	border: 1px solid var(--ap-border);
	border-radius: 20px;
	transition: transform .4s var(--ap-ease), border-color .3s, box-shadow .4s var(--ap-ease);
}
.aiv-card:hover {
	transform: translateY(-6px);
	border-color: rgba(175, 71, 254, .5);
	box-shadow: 0 22px 44px rgba(0, 0, 0, .4), 0 0 40px rgba(175, 71, 254, .12);
}
.aiv-card__title { font-size: 1.2rem; line-height: 1.35; margin-bottom: .55em; }
.aiv-card p { margin: 0; line-height: 1.8; color: var(--ap-text); }

/* Glowing icon orbs (cut from the live site's icon art) */
.aiv-orb {
	width: 120px;
	height: 120px;
	margin: -6px auto 14px;
	transition: transform .6s var(--ap-ease), filter .6s;
}
.aiv-card:hover .aiv-orb { transform: translateY(-6px) scale(1.06); filter: drop-shadow(0 0 18px rgba(175, 71, 254, .55)); }

.aiv-frame {
	position: relative;
	padding: 10px;
	background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 22px;
	box-shadow: 0 40px 80px rgba(0, 0, 0, .5), 0 0 80px rgba(175, 71, 254, .2);
}
.aiv-frame img { width: 100%; border-radius: 14px; }
.aiv-frame--wide { padding-top: 34px; margin: clamp(36px, 5vw, 56px) 0; }
.aiv-frame__dots { position: absolute; top: 13px; left: 18px; display: flex; gap: 6px; }
.aiv-frame__dots span { width: 9px; height: 9px; border-radius: 50%; }
.aiv-frame__dots span:nth-child(1) { background: #ff6b81; }
.aiv-frame__dots span:nth-child(2) { background: #ffc35a; }
.aiv-frame__dots span:nth-child(3) { background: #4ade80; }

.aiv-callout {
	max-width: 900px;
	margin: clamp(32px, 4vw, 48px) auto 0;
	padding: 22px 28px;
	font-size: clamp(1rem, 1.3vw, 1.1rem);
	line-height: 1.85;
	text-align: center;
	color: var(--ap-white);
	background: linear-gradient(90deg, rgba(175, 71, 254, .14), rgba(175, 71, 254, .04));
	border: 1px solid rgba(175, 71, 254, .3);
	border-radius: 18px;
}
.aiv-callout strong { color: var(--ap-primary-soft); font-weight: 600; }

.btn .icon { width: 18px; height: 18px; transition: transform .3s var(--ap-ease); }
.btn:hover .icon { transform: translateX(3px); }

/* Hero
   ========================================================================== */
.aiv-hero {
	position: relative;
	margin-top: calc(var(--ap-header-h) * -1);
	padding: calc(var(--ap-header-h) + clamp(40px, 6vw, 88px)) 0 clamp(56px, 7vw, 100px);
	overflow: hidden;
	isolation: isolate;
	background:
		radial-gradient(45% 60% at 78% 40%, rgba(150, 60, 210, .4), transparent 70%),
		radial-gradient(35% 45% at 5% 10%, rgba(110, 40, 160, .3), transparent 70%),
		linear-gradient(180deg, #170d1c 0%, #1f1226 65%, var(--ap-bg) 100%);
}
.aiv-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: radial-gradient(rgba(220, 180, 255, .16) 1px, transparent 1.4px);
	background-size: 18px 18px;
	mask-image: radial-gradient(55% 65% at 72% 55%, #000 10%, transparent 75%);
	-webkit-mask-image: radial-gradient(55% 65% at 72% 55%, #000 10%, transparent 75%);
	animation: ap-dots-drift 40s linear infinite;
	pointer-events: none;
}
@keyframes ap-dots-drift { to { background-position: 180px 90px; } }

.aiv-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(40px, 5vw, 64px);
}
.aiv-hero__title { font-size: clamp(2.4rem, 4.4vw, 3.6rem); line-height: 1.12; margin-bottom: .5em; }
.aiv-hero__title .text-gradient { display: block; }
.aiv-hero__question { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.7; color: var(--ap-white); margin-bottom: .8em; }
.aiv-hero__answer {
	display: inline-block;
	margin-bottom: 1.1em;
	padding: 6px 14px;
	font-weight: 600;
	color: var(--ap-white);
	background: rgba(175, 71, 254, .16);
	border: 1px solid rgba(175, 71, 254, .4);
	border-radius: 10px;
}
.aiv-hero__text { max-width: 560px; line-height: 1.85; color: var(--ap-text); }
.aiv-hero__actions { margin-top: 2em; }

.aiv-hero__media { position: relative; padding: 28px 0; }
.aiv-frame--hero {
	transform: perspective(1400px) rotateY(-7deg) rotateX(3deg);
	transition: transform .8s var(--ap-ease);
	animation: ap-float-y 8s ease-in-out infinite;
}
.aiv-hero__media:hover .aiv-frame--hero { transform: none; }

/* AI platforms float around the dashboard */
.aiv-hero__orbit { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.aiv-hero__platform {
	position: absolute;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px 9px 10px;
	font-size: .875rem;
	font-weight: 600;
	color: var(--ap-white);
	background: rgba(30, 18, 34, .82);
	backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 999px;
	box-shadow: 0 14px 30px rgba(0, 0, 0, .45);
	animation: ap-float-y 6s ease-in-out infinite;
}
.aiv-hero__platform .icon { width: 22px; height: 22px; padding: 4px; color: var(--ap-white); background: var(--ap-primary); border-radius: 50%; }
.aiv-hero__platform--1 { top: 0; left: 8%; animation-delay: -1s; }
.aiv-hero__platform--2 { top: 14%; right: -14px; animation-delay: -3s; }
.aiv-hero__platform--3 { bottom: 10%; left: -22px; animation-delay: -2s; }
.aiv-hero__platform--4 { bottom: 0; right: 12%; animation-delay: -4.5s; }

/* Why
   ========================================================================== */
.aiv-why .section-title,
.aiv-agencies .section-title,
.aiv-optimize .section-title,
.aiv-matters .section-title { font-size: clamp(2rem, 3.6vw, 2.85rem); line-height: 1.25; }
.aiv-why__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.aiv-card--why { padding: 30px 28px 32px; text-align: center; }
.aiv-card--why p { font-size: 1.05rem; color: var(--ap-white); }

/* Platform
   ========================================================================== */
.aiv-platform {
	position: relative;
	background:
		radial-gradient(60% 40% at 50% 0%, rgba(120, 40, 170, .28), transparent 70%),
		var(--ap-bg-deep);
	border-block: 1px solid var(--ap-border-soft);
}
.aiv-platform__title { font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 1.15; margin-bottom: .45em; }
.aiv-platform__intro { font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.85; max-width: 720px; margin: 0 auto; }

.aiv-dashboard {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	align-items: start;
	gap: clamp(40px, 5vw, 72px);
	margin-top: clamp(48px, 6vw, 80px);
}
.aiv-dashboard__content > p { line-height: 1.85; }
.aiv-dashboard__media { position: sticky; top: calc(var(--ap-header-h) + 24px); }
.aiv-dashboard__example {
	display: flex;
	gap: 10px;
	margin: 18px 4px 0;
	font-size: .9rem;
	font-style: italic;
	line-height: 1.7;
	color: var(--ap-muted);
}
.aiv-dashboard__example .icon { flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px; color: var(--ap-primary-soft); }

.aiv-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.aiv-feature {
	display: flex;
	gap: 18px;
	padding: 18px 20px;
	background: rgba(255, 255, 255, .025);
	border: 1px solid var(--ap-border-soft);
	border-radius: 16px;
	transition: border-color .3s, background-color .3s, transform .35s var(--ap-ease);
}
.aiv-feature:hover { border-color: rgba(175, 71, 254, .45); background: rgba(175, 71, 254, .07); transform: translateX(6px); }
.aiv-feature__num {
	flex-shrink: 0;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	font: 700 .9rem/1 var(--ap-font-heading);
	color: var(--ap-white);
	background: linear-gradient(135deg, var(--ap-primary), #6d28d9);
	border-radius: 12px;
	box-shadow: 0 8px 18px rgba(175, 71, 254, .35);
}
.aiv-feature__title { font-size: 1.05rem; margin: 2px 0 .3em; }
.aiv-feature p { margin: 0; font-size: .9375rem; line-height: 1.75; color: var(--ap-text); }

.aiv-agent { margin-top: clamp(72px, 9vw, 120px); }
.aiv-agent__intro { line-height: 1.85; margin: 0 auto 1.6em; max-width: 680px; }

.aiv-agent__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.aiv-card--agent { padding: 28px 26px; }
.aiv-card__icon {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin-bottom: 18px;
	color: var(--ap-primary);
	border: 1px solid var(--ap-border);
	border-radius: 14px;
	transition: background-color .3s, color .3s;
}
.aiv-card__icon .icon { width: 22px; height: 22px; }
.aiv-card:hover .aiv-card__icon { background: var(--ap-primary); color: var(--ap-white); }

/* Example questions shown as chat bubbles */
.aiv-chat { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.aiv-chat__bubble {
	justify-self: start;
	padding: 10px 16px;
	font-size: .9375rem;
	line-height: 1.5;
	color: var(--ap-white);
	background: rgba(175, 71, 254, .16);
	border: 1px solid rgba(175, 71, 254, .32);
	border-radius: 16px 16px 16px 4px;
}
.aiv-chat__bubble:nth-child(2) { justify-self: end; border-radius: 16px 16px 4px 16px; background: rgba(255, 255, 255, .06); border-color: var(--ap-border); }

.aiv-ticks { display: grid; gap: 8px; list-style: none; margin: 14px 0 0; padding: 0; }
.aiv-ticks li { display: flex; gap: 10px; font-size: .9375rem; line-height: 1.6; }
.aiv-ticks .icon { flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px; padding: 3px; color: var(--ap-white); background: var(--ap-primary); border-radius: 50%; stroke-width: 3; }

.aiv-card--impact {
	background:
		radial-gradient(80% 60% at 100% 0%, rgba(175, 71, 254, .3), transparent 70%),
		linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .008));
}
.aiv-card--impact p { font-size: 1.05rem; color: var(--ap-white); }

/* Agencies + optimization
   ========================================================================== */
.aiv-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 8px; }
.aiv-card--benefit { padding: 30px 28px 32px; text-align: center; }

.aiv-optimize {
	background:
		radial-gradient(50% 50% at 50% 100%, rgba(110, 40, 160, .22), transparent 70%);
}
.aiv-focus { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; margin-top: 8px; }
.aiv-card--focus { padding: 26px 20px 26px; text-align: center; }
.aiv-card--focus .aiv-orb { width: 96px; height: 96px; }
.aiv-card--focus .aiv-card__title { font-size: 1.05rem; }
.aiv-card--focus p { font-size: .9rem; line-height: 1.7; }
.aiv-card--focus.is-soon { border-style: dashed; }
.aiv-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	padding: 3px 10px;
	font-size: .7rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #1d131b;
	background: linear-gradient(90deg, #e3b8ff, var(--ap-primary-soft));
	border-radius: 999px;
}

/* Why this matters
   ========================================================================== */
.aiv-matters__box {
	padding: clamp(36px, 5vw, 64px) clamp(20px, 4vw, 56px);
	background:
		radial-gradient(60% 80% at 50% 0%, rgba(140, 50, 200, .35), transparent 70%),
		rgba(255, 255, 255, .015);
	border: 1px solid var(--ap-border);
	border-radius: 24px;
}
.aiv-matters__box .aiv-head { margin-bottom: 32px; }
.aiv-compare {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: 20px;
	max-width: 860px;
	margin: 0 auto;
}
.aiv-compare__item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 22px 24px;
	background: rgba(255, 255, 255, .03);
	border: 1px solid var(--ap-border);
	border-radius: 18px;
}
.aiv-compare__item p { margin: 0; font: 600 clamp(1.05rem, 1.6vw, 1.25rem)/1.4 var(--ap-font-heading); color: var(--ap-white); }
.aiv-compare__icon { display: grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; color: var(--ap-muted); border: 1px solid var(--ap-border); border-radius: 14px; }
.aiv-compare__icon .icon { width: 22px; height: 22px; }
.aiv-compare__item--ai { background: linear-gradient(135deg, rgba(175, 71, 254, .22), rgba(175, 71, 254, .06)); border-color: rgba(175, 71, 254, .45); box-shadow: 0 0 40px rgba(175, 71, 254, .18); }
.aiv-compare__item--ai .aiv-compare__icon { color: var(--ap-white); background: var(--ap-primary); border-color: var(--ap-primary); }
.aiv-compare__arrow { display: grid; place-items: center; width: 40px; height: 40px; color: var(--ap-primary-soft); }
.aiv-compare__arrow .icon { width: 26px; height: 26px; }
.aiv-matters__text { max-width: 820px; margin: 32px auto 0; text-align: center; font-size: clamp(1rem, 1.3vw, 1.1rem); line-height: 1.9; }

/* Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.aiv-focus { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
	.aiv-hero__grid { grid-template-columns: 1fr; }
	.aiv-hero__media { max-width: 680px; width: 100%; margin: 12px auto 0; }
	.aiv-dashboard { grid-template-columns: 1fr; }
	.aiv-dashboard__media { position: static; }
}
@media (max-width: 960px) {
	.aiv-why__grid,
	.aiv-benefits,
	.aiv-agent__grid { grid-template-columns: 1fr; }
	.aiv-focus { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.aiv-compare { grid-template-columns: 1fr; }
	.aiv-compare__arrow { justify-self: center; transform: rotate(90deg); }
}
@media (max-width: 600px) {
	.aiv-focus { grid-template-columns: 1fr; }
	.aiv-frame--hero { transform: none; }
	.aiv-hero__platform { font-size: .75rem; padding: 6px 12px 6px 7px; }
	.aiv-hero__platform--2 { right: 0; }
	.aiv-hero__platform--3 { left: 0; }
}
