/* ==========================================================================
   AlphaPros — SEM page (page-sem.php)
   ========================================================================== */

@keyframes ap-shimmer { to { background-position: -200% 0; } }
.sem-hero .text-gradient,
.sem-have__title .text-gradient,
.sem-insights .text-gradient {
	background-image: linear-gradient(90deg, #b57be8, #e7c4ff, #b57be8);
	background-size: 200% 100%;
	animation: ap-shimmer 6s linear infinite;
}

/* Hero
   ========================================================================== */
.sem-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, 96px);
	overflow: hidden;
	isolation: isolate;
	background:
		radial-gradient(45% 60% at 80% 35%, rgba(150, 60, 210, .38), 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%);
}
/* Dotted texture, fading out toward the edges */
.sem-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 70% 55%, #000 10%, transparent 75%);
	-webkit-mask-image: radial-gradient(55% 65% at 70% 55%, #000 10%, transparent 75%);
	animation: ap-dots-drift 40s linear infinite;
	pointer-events: none;
}
@keyframes ap-dots-drift { to { background-position: 180px 90px; } }

.sem-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
	align-items: center;
	gap: clamp(40px, 5vw, 72px);
}
.sem-hero__title { font-size: clamp(2.6rem, 5.6vw, 4.4rem); line-height: 1.08; margin-bottom: .45em; }
.sem-hero__title .text-gradient { display: block; }
.sem-hero__text { max-width: 540px; font-size: clamp(1rem, 1.3vw, 1.125rem); line-height: 1.85; color: var(--ap-text); margin-bottom: 1em; }
.sem-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2em; }

.sem-hero__media { position: relative; }
.sem-hero__frame {
	position: relative;
	padding: 34px 10px 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: 20px;
	box-shadow: 0 40px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(175, 71, 254, .1), 0 0 80px rgba(175, 71, 254, .25);
	transform: perspective(1400px) rotateY(-8deg) rotateX(3deg);
	transition: transform .8s var(--ap-ease);
	animation: ap-frame-float 8s ease-in-out infinite;
}
.sem-hero__media:hover .sem-hero__frame { transform: perspective(1400px) rotateY(0) rotateX(0); }
@keyframes ap-frame-float {
	0%, 100% { translate: 0 0; }
	50% { translate: 0 -12px; }
}
.sem-hero__dots { position: absolute; top: 13px; left: 16px; display: flex; gap: 6px; }
.sem-hero__dots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.sem-hero__dots span:first-child { background: #ff6b81; }
.sem-hero__dots span:nth-child(2) { background: #ffc35a; }
.sem-hero__dots span:nth-child(3) { background: #4ade80; }
.sem-hero__frame img { width: 100%; border-radius: 12px; }

.sem-hero__chip {
	position: absolute;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px 10px 10px;
	font-size: .9rem;
	font-weight: 500;
	color: var(--ap-white);
	white-space: nowrap;
	background: rgba(30, 18, 34, .8);
	backdrop-filter: blur(14px);
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 14px;
	box-shadow: 0 18px 36px rgba(0, 0, 0, .45);
	animation: ap-frame-float 7s ease-in-out infinite;
}
.sem-hero__chip--top { top: -18px; right: 6%; animation-delay: -2s; }
.sem-hero__chip--bottom { bottom: -22px; left: -24px; animation-delay: -4.5s; }
.sem-hero__chip-icon {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	color: var(--ap-white);
	background: var(--ap-primary);
	border-radius: 10px;
	box-shadow: 0 6px 16px rgba(175, 71, 254, .5);
}
.sem-hero__chip-icon .icon { width: 18px; height: 18px; }

/* AI insights
   ========================================================================== */
.sem-insights { position: relative; isolation: isolate; }
.sem-insights::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 0;
	width: min(520px, 60vw);
	aspect-ratio: 1;
	z-index: -1;
	background: radial-gradient(closest-side, rgba(175, 71, 254, .22), transparent);
	transform: translate(-50%, -40%);
	pointer-events: none;
}
.sem-insights__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(40px, 5vw, 72px);
}
.sem-insights .section-title { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.3; margin-bottom: 1em; }


.sem-insights__lead { font-size: clamp(1rem, 1.3vw, 1.1rem); line-height: 1.9; margin-bottom: 1.6em; }
.sem-insights__subtitle { font: 600 1.15rem/1.4 var(--ap-font-body); margin-bottom: .9em; }

.check-list { display: grid; gap: 12px; list-style: none; margin: 0 0 1.6em; padding: 0; }
.check-list__item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 14px 18px;
	line-height: 1.7;
	background: rgba(255, 255, 255, .025);
	border: 1px solid var(--ap-border-soft);
	border-radius: 14px;
	transition: border-color .3s, background-color .3s, transform .35s var(--ap-ease);
}
.check-list__item:hover { border-color: rgba(175, 71, 254, .45); background: rgba(175, 71, 254, .07); transform: translateX(4px); }
.check-list__icon {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 26px;
	height: 26px;
	margin-top: 1px;
	color: var(--ap-white);
	background: var(--ap-primary);
	border-radius: 50%;
}
.check-list__icon .icon { width: 15px; height: 15px; stroke-width: 2.4; }

.sem-insights__callout {
	margin: 0;
	padding: 4px 0 4px 18px;
	line-height: 1.85;
	color: var(--ap-white);
	border-left: 3px solid var(--ap-primary);
}

/* What we have
   ========================================================================== */
.sem-have {
	position: relative;
	background:
		radial-gradient(50% 80% at 50% 0%, rgba(120, 40, 170, .25), transparent 70%),
		var(--ap-bg-deep);
	border-block: 1px solid var(--ap-border-soft);
}
.sem-have__title { font-size: clamp(2.4rem, 5vw, 3.6rem); text-align: center; margin-bottom: 1em; }
.sem-have__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}
.have-card {
	position: relative;
	padding: 34px 30px 32px;
	overflow: hidden;
	background: linear-gradient(180deg, rgba(175, 71, 254, .1), rgba(255, 255, 255, .015) 60%);
	border: 1px solid var(--ap-border);
	border-radius: 20px;
	transition: transform .4s var(--ap-ease), border-color .3s, box-shadow .4s var(--ap-ease);
}
.have-card::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--ap-primary), transparent);
	opacity: 0;
	transition: opacity .4s;
}
.have-card:hover { transform: translateY(-8px); border-color: rgba(175, 71, 254, .5); box-shadow: 0 24px 48px rgba(0, 0, 0, .45), 0 0 40px rgba(175, 71, 254, .15); }
.have-card:hover::after { opacity: 1; }
.have-card__num {
	position: absolute;
	top: 18px;
	right: 24px;
	font: 800 3.4rem/1 var(--ap-font-heading);
	color: transparent;
	-webkit-text-stroke: 1px rgba(255, 255, 255, .12);
}
.have-card__icon {
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	margin-bottom: 24px;
	color: var(--ap-white);
	background: linear-gradient(135deg, var(--ap-primary), #6d28d9);
	border-radius: 16px;
	box-shadow: 0 12px 28px rgba(175, 71, 254, .4);
}
.have-card__icon .icon { width: 28px; height: 28px; }
.have-card__title { font-size: 1.3rem; line-height: 1.35; margin-bottom: .55em; }
.have-card p { margin: 0; line-height: 1.85; color: var(--ap-text); }

/* What we offer
   ========================================================================== */
.sem-offer .section-title { font-size: clamp(2rem, 3.6vw, 2.85rem); margin-bottom: 1.1em; }
.sem-offer__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}
.offer-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 28px 26px 24px;
	background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .008));
	border: 1px solid var(--ap-border);
	border-radius: var(--ap-radius);
	transition: transform .4s var(--ap-ease), border-color .3s, box-shadow .4s var(--ap-ease), background-color .3s;
}
.offer-card:hover {
	transform: translateY(-6px);
	border-color: rgba(175, 71, 254, .5);
	background-color: rgba(175, 71, 254, .05);
	box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}
.offer-card__icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin-bottom: 20px;
	color: var(--ap-primary);
	border: 1px solid var(--ap-border);
	border-radius: 14px;
	transition: background-color .3s, color .3s, transform .4s var(--ap-ease);
}
.offer-card__icon .icon { width: 24px; height: 24px; }
.offer-card:hover .offer-card__icon { background: var(--ap-primary); color: var(--ap-white); transform: rotate(-6deg) scale(1.05); }
.offer-card__title { font-size: 1.2rem; margin-bottom: .5em; }
.offer-card p { flex: 1; margin: 0 0 1.2em; font-size: .9688rem; line-height: 1.8; color: var(--ap-text); }
.offer-card__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	align-self: flex-start;
	font-size: .9rem;
	font-weight: 500;
	color: var(--ap-primary-soft);
}
.offer-card__link .icon { width: 16px; height: 16px; transition: transform .3s var(--ap-ease); }
.offer-card__link:hover { color: var(--ap-white); }
.offer-card:hover .offer-card__link .icon { transform: translateX(4px); }

/* Responsive
   ========================================================================== */
@media (max-width: 1024px) {
	.sem-hero__grid { grid-template-columns: 1fr; }
	.sem-hero__media { max-width: 680px; margin: 20px auto 0; width: 100%; }
	.sem-hero__chip--bottom { left: 0; }
	.sem-insights__grid { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
	.sem-have__grid { grid-template-columns: 1fr; }
	.sem-offer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.sem-offer__grid { grid-template-columns: 1fr; }
	.sem-hero__frame { transform: none; padding-top: 28px; }
	.sem-hero__chip { font-size: .8rem; }
	.sem-hero__chip--top { right: 0; }
}
