/* ==========================================================================
   AlphaPros — Bells & Whistles page (page-bells-and-whistles.php)
   ========================================================================== */

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

.bw-head { max-width: 780px; margin-bottom: clamp(28px, 4vw, 40px); }
.bw-head--center { max-width: none; margin-inline: auto; text-align: center; }
.bw-title { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.18; margin: 0; }
.btn .icon { width: 18px; height: 18px; transition: transform .3s var(--ap-ease); }
.btn:hover .icon { transform: translateX(3px); }

/* Hero
   ========================================================================== */
.bw-hero {
	position: relative;
	margin-top: calc(var(--ap-header-h) * -1);
	padding: calc(var(--ap-header-h) + clamp(48px, 6vw, 88px)) 0 clamp(56px, 7vw, 100px);
	overflow: hidden;
	isolation: isolate;
	background:
		radial-gradient(45% 60% at 78% 45%, rgba(150, 60, 210, .42), 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%);
}
.bw-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(50% 65% at 72% 50%, #000 10%, transparent 75%);
	-webkit-mask-image: radial-gradient(50% 65% at 72% 50%, #000 10%, transparent 75%);
	animation: ap-dots-drift 40s linear infinite;
	pointer-events: none;
}
.bw-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(40px, 5vw, 72px); }
.bw-hero__title { font-size: clamp(2rem, 3.4vw, 2.85rem); line-height: 1.22; margin-bottom: .6em; }
.bw-hero__lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.7; color: var(--ap-white); margin-bottom: .8em; }
.bw-hero__text { max-width: 580px; line-height: 1.85; color: var(--ap-text); margin-bottom: 2em; }

/* Coming soon: glass panel with three product cards */
.bw-soon {
	position: relative;
	padding: 22px;
	background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 26px;
	box-shadow: 0 40px 80px rgba(0, 0, 0, .4), 0 0 80px rgba(175, 71, 254, .15);
	backdrop-filter: blur(6px);
}
.bw-soon__label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	padding: 6px 16px;
	font: 600 .78rem/1.4 var(--ap-font-body);
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--ap-white);
	background: rgba(175, 71, 254, .16);
	border: 1px solid rgba(175, 71, 254, .45);
	border-radius: 999px;
}
.bw-soon__dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: ap-dot-pulse 2s infinite; }
@keyframes ap-dot-pulse { 70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
.bw-soon__stack { display: grid; gap: 12px; }
.bw-soon__card {
	position: relative;
	display: grid;
	grid-template-columns: 132px minmax(0, 1fr);
	align-items: center;
	overflow: hidden;
	background: #1a1020;
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 18px;
	outline: none;
	transition: transform .5s var(--ap-ease), border-color .3s, box-shadow .5s var(--ap-ease);
}
.bw-soon__card--2 { margin-left: 24px; }
.bw-soon__card:hover,
.bw-soon__card:focus-visible { z-index: 2; transform: translateX(-6px) scale(1.02); border-color: rgba(175, 71, 254, .6); box-shadow: 0 30px 60px rgba(0, 0, 0, .55), 0 0 40px rgba(175, 71, 254, .3); }
.bw-soon__num {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 1;
	padding: 3px 9px;
	font: 700 .72rem/1.3 var(--ap-font-heading);
	letter-spacing: .08em;
	color: var(--ap-white);
	background: rgba(15, 8, 18, .7);
	backdrop-filter: blur(6px);
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 999px;
}
.bw-soon__media { position: relative; align-self: stretch; min-height: 124px; overflow: hidden; }
.bw-soon__media::after { content: ""; position: absolute; inset: 0 0 0 55%; background: linear-gradient(90deg, transparent, #1a1020); }
.bw-soon__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform .8s var(--ap-ease); }
.bw-soon__card:hover .bw-soon__media img { transform: scale(1.07); }
.bw-soon__body { padding: 16px 22px 16px 10px; }
.bw-soon__body h3 { font-size: 1.15rem; margin-bottom: .3em; }
.bw-soon__body p { margin: 0; font-size: .9rem; line-height: 1.65; color: var(--ap-muted); }

/* Alpha Advantage: sticky index + scrolling chapters (no cards)
   ========================================================================== */
.bw-adv { position: relative; background: radial-gradient(50% 30% at 50% 0%, rgba(120, 40, 170, .2), transparent 70%); }
.bw-adv__head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.bw-adv__layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }

/* Index */
.bw-index { position: sticky; top: calc(var(--ap-header-h) + 32px); display: flex; gap: 18px; }
.bw-index__progress { position: relative; flex-shrink: 0; width: 2px; background: rgba(255, 255, 255, .1); border-radius: 2px; }
.bw-index__progress span {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, var(--ap-primary-soft), var(--ap-primary));
	border-radius: 2px;
	box-shadow: 0 0 12px rgba(175, 71, 254, .8);
	transform: scaleY(0);
	transform-origin: top;
	transition: transform .15s linear;
}
.bw-index__list { display: grid; gap: 2px; list-style: none; margin: 0; padding: 0; }
.bw-index__link {
	display: flex;
	align-items: baseline;
	gap: 12px;
	padding: 6px 0;
	font-size: .9rem;
	font-weight: 500;
	line-height: 1.35;
	color: rgba(233, 227, 234, .45);
	transition: color .25s, transform .35s var(--ap-ease);
}
.bw-index__num { flex-shrink: 0; width: 22px; font: 700 .72rem/1 var(--ap-font-heading); letter-spacing: .06em; color: rgba(233, 227, 234, .35); transition: color .25s; }
.bw-index__link:hover { color: var(--ap-white); }
.bw-index__link.is-done { color: rgba(233, 227, 234, .7); }
.bw-index__link.is-active { color: var(--ap-white); transform: translateX(6px); }
.bw-index__link.is-active .bw-index__num { color: var(--ap-primary-soft); }
.bw-index__link.is-active .bw-index__label { background: linear-gradient(90deg, #ffffff, #d6a6f5); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 600; }

/* Chapters */
.bw-chapter { padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--ap-border); scroll-margin-top: calc(var(--ap-header-h) + 16px); }
.bw-chapter:first-child { padding-top: 0; border-top: 0; }
.bw-chapter__head { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 18px; row-gap: 4px; margin-bottom: clamp(24px, 3vw, 36px); }
.bw-chapter__icon {
	grid-row: span 2;
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	background: rgba(255, 255, 255, .92);
	border-radius: 18px;
	box-shadow: 0 0 0 6px rgba(175, 71, 254, .12), 0 12px 30px rgba(175, 71, 254, .35);
}
.bw-chapter__icon img { width: 36px; height: 36px; object-fit: contain; }
.bw-chapter__count { font: 700 .8rem/1 var(--ap-font-heading); letter-spacing: .12em; color: var(--ap-primary-soft); }
.bw-chapter__count em { font-style: normal; color: var(--ap-muted); }
.bw-chapter__title { margin: 0; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.2; }

.bw-chapter__items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 48px) clamp(28px, 3.5vw, 48px); }
.bw-chapter--single .bw-chapter__items { grid-template-columns: 1fr; }
.bw-chapter--single .bw-item { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 3vw, 44px); align-items: center; }
.bw-chapter--single .bw-item:not(:has(.bw-item__media)) { grid-template-columns: 1fr; max-width: 680px; }

.bw-item { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.bw-item__media { position: relative; display: block; margin: 0; border-radius: 16px; box-shadow: 0 24px 50px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08); transition: transform .5s var(--ap-ease), box-shadow .5s; }
.bw-item__media:hover { transform: translateY(-4px); box-shadow: 0 30px 60px rgba(0, 0, 0, .5), 0 0 0 1px rgba(175, 71, 254, .45), 0 0 40px rgba(175, 71, 254, .2); }
.bw-item__media--img { overflow: hidden; background: #fff; cursor: zoom-in; }
.bw-item__media--img img { width: 100%; transition: transform .8s var(--ap-ease); }
.bw-item__media--img:hover img { transform: scale(1.04); }
.bw-item__zoom {
	position: absolute;
	right: 12px;
	bottom: 12px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	color: var(--ap-white);
	background: rgba(20, 10, 22, .7);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 50%;
	opacity: 0;
	transform: scale(.8);
	transition: opacity .3s, transform .3s var(--ap-ease);
}
.bw-item__zoom .icon { width: 18px; height: 18px; }
.bw-item__media--img:hover .bw-item__zoom,
.bw-item__media--img:focus-visible .bw-item__zoom { opacity: 1; transform: none; }
.bw-item .video-facade { border-radius: 16px; }
.bw-item .video-facade__play { padding: 6px; }
.bw-item__title { position: relative; margin: 0 0 .4em; padding-left: 16px; font-size: 1.2rem; line-height: 1.35; }
.bw-item__title::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 3px; background: var(--ap-primary); border-radius: 3px; box-shadow: 0 0 10px rgba(175, 71, 254, .7); }
.bw-item__sub { margin: 0 0 .6em; font: 600 .78rem/1.4 var(--ap-font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--ap-primary-soft); }
.bw-item__body > p:last-child { margin: 0; font-size: .97rem; line-height: 1.8; color: var(--ap-text); }
.bw-chapter--single .bw-item__body > p:last-child { font-size: 1.05rem; }

/* Experience the difference
   ========================================================================== */
.bw-exp__box {
	padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 56px) 0;
	overflow: hidden;
	background:
		radial-gradient(60% 70% at 50% 100%, rgba(150, 60, 210, .5), transparent 70%),
		var(--ap-bg-deep);
	border: 1px solid var(--ap-border);
	border-radius: 28px;
}
.bw-exp__title { font-size: clamp(2.2rem, 5vw, 3.9rem); line-height: 1.1; margin-bottom: .3em; }
.bw-exp .bw-head p { font-size: clamp(1rem, 1.4vw, 1.15rem); margin-bottom: 1.6em; }
.bw-exp__frame {
	position: relative;
	max-width: 960px;
	margin: clamp(32px, 4vw, 48px) auto 0;
	padding: 34px 10px 0;
	background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
	border: 1px solid rgba(255, 255, 255, .16);
	border-bottom: 0;
	border-radius: 20px 20px 0 0;
	box-shadow: 0 -10px 80px rgba(175, 71, 254, .3);
	transition: transform .8s var(--ap-ease);
}
.bw-exp__box:hover .bw-exp__frame { transform: translateY(-8px); }
.bw-exp__frame img { width: 100%; border-radius: 12px 12px 0 0; }
.bw-exp__dots { position: absolute; top: 13px; left: 18px; display: flex; gap: 6px; }
.bw-exp__dots span { width: 9px; height: 9px; border-radius: 50%; }
.bw-exp__dots span:nth-child(1) { background: #ff6b81; }
.bw-exp__dots span:nth-child(2) { background: #ffc35a; }
.bw-exp__dots span:nth-child(3) { background: #4ade80; }

/* Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.bw-chapter--single .bw-item { grid-template-columns: 1fr; }
	.bw-adv__layout { grid-template-columns: 230px minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 960px) {
	/* Index becomes a sticky horizontal strip */
	.bw-adv__layout { grid-template-columns: 1fr; gap: 24px; }
	.bw-index { top: var(--ap-header-h); z-index: 5; margin: 0 calc(var(--ap-gutter) * -1); padding: 10px var(--ap-gutter); background: rgba(16, 9, 18, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--ap-border-soft); }
	.bw-index__progress { display: none; }
	.bw-index { min-width: 0; }
	.bw-index__list { display: flex; flex: 1; min-width: 0; gap: 8px; overflow-x: auto; scrollbar-width: none; }
	.bw-index__list::-webkit-scrollbar { display: none; }
	.bw-index__link { padding: 7px 14px; white-space: nowrap; border: 1px solid var(--ap-border); border-radius: 999px; }
	.bw-index__link.is-active { transform: none; border-color: rgba(175, 71, 254, .6); background: rgba(175, 71, 254, .16); }
	.bw-chapter { scroll-margin-top: calc(var(--ap-header-h) + 72px); }
	.bw-chapter__items { grid-template-columns: 1fr; }
	.bw-hero__grid { grid-template-columns: 1fr; }
	.bw-soon { max-width: 640px; width: 100%; margin-inline: auto; }
	.bw-soon__card--2 { margin: 0; }
}
@media (max-width: 600px) {
	.bw-soon { padding: 14px; }
	.bw-soon__card { grid-template-columns: 96px minmax(0, 1fr); }
	.bw-soon__card--2 { margin: 0; }
	.bw-soon__body { padding: 12px 14px 12px 6px; }
}
