/* =========================================================================
   Case — Agent Creative
   Dark, interactive demo feel. Floating UI shards. Word rotator.
   ========================================================================= */

.case--agent-creative { background: #0B0F17; color: #F0F4FA; }
.case--agent-creative .visually-hidden {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.ac-eyebrow {
	font-family: var(--ac-mono); font-size: .78rem; letter-spacing: .14em;
	text-transform: uppercase; color: #8090A8; margin: 0 0 1em;
}
.ac-h2 {
	font-family: var(--ac-display); font-weight: 800;
	font-size: clamp(1.8rem, 4vw, 3rem);
	line-height: 1.05; text-transform: uppercase; letter-spacing: -.01em;
	margin: 0 0 .6em;
}

/* ---------- Hero ---------- */
.ac-hero {
	position: relative;
	padding: clamp(80px, 12vw, 170px) 0 clamp(80px, 12vw, 160px);
	overflow: hidden;
}
.ac-hero__glow {
	position: absolute; inset: -20%;
	background:
		radial-gradient(38% 38% at 25% 30%, rgba(77,124,240,.32), transparent 60%),
		radial-gradient(28% 50% at 80% 80%, rgba(5,147,106,.22), transparent 60%);
	filter: blur(20px);
	pointer-events: none;
	animation: ac-drift 18s ease-in-out infinite alternate;
}
@keyframes ac-drift {
	0%   { transform: translate(0,0); }
	100% { transform: translate(-3%, 2%); }
}
@media (prefers-reduced-motion: reduce) { .ac-hero__glow { animation: none; } }

.ac-hero__inner { position: relative; max-width: 880px; }

.ac-title {
	font-family: var(--ac-display); font-weight: 800;
	font-size: clamp(2.6rem, 8vw, 5.8rem);
	line-height: 1.0; text-transform: uppercase; letter-spacing: -.015em;
	margin: 0 0 .5em;
}
.ac-title__rotor {
	display: inline-block;
	position: relative;
	min-width: 9em;
	height: 1em;
	vertical-align: bottom;
	background: linear-gradient(95deg, #4D7CF0, #21C794);
	-webkit-background-clip: text; background-clip: text;
	color: transparent;
	overflow: hidden;
}
.ac-title__rotor span {
	position: absolute; inset: 0;
	opacity: 0; transform: translateY(40%);
	animation: ac-rotor 12s infinite;
}
.ac-title__rotor span:nth-child(1) { animation-delay: 0s;  }
.ac-title__rotor span:nth-child(2) { animation-delay: 3s;  }
.ac-title__rotor span:nth-child(3) { animation-delay: 6s;  }
.ac-title__rotor span:nth-child(4) { animation-delay: 9s;  }
@keyframes ac-rotor {
	0%, 24% { opacity: 0; transform: translateY(40%); }
	2%, 22% { opacity: 1; transform: translateY(0); }
	24%, 100% { opacity: 0; transform: translateY(-40%); }
}
@media (prefers-reduced-motion: reduce) {
	.ac-title__rotor span { animation: none; opacity: 1; transform: none; }
	.ac-title__rotor span:not(:first-child) { display: none; }
}
.ac-tagline {
	max-width: 58ch; color: #9FAFC4; line-height: 1.55;
	font-size: clamp(1rem, 1.45vw, 1.18rem); margin: 0;
}

/* ---------- Floating UI shards ---------- */
.ac-float {
	position: absolute; z-index: 2;
	pointer-events: none;
	will-change: transform;
}
.ac-float--1 {
	top: 22%; right: 6%;
	animation: ac-float 7s ease-in-out infinite;
}
.ac-float--2 {
	bottom: 14%; right: 18%;
	animation: ac-float 9s ease-in-out infinite reverse;
}
@keyframes ac-float {
	0%, 100% { transform: translateY(0) rotate(-3deg); }
	50%      { transform: translateY(-12px) rotate(2deg); }
}
@media (prefers-reduced-motion: reduce) { .ac-float { animation: none; } }
@media (max-width: 980px) { .ac-float { display: none; } }

.ac-mini-card {
	background: #141A26;
	border: 1px solid rgba(255,255,255,.1);
	border-radius: 12px;
	padding: 16px;
	min-width: 220px;
	box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
	backdrop-filter: blur(6px);
}
.ac-mini-card__bar { display: flex; gap: 5px; margin-bottom: 14px; }
.ac-mini-card__bar span {
	width: 9px; height: 9px; border-radius: 50%; background: #2A3140;
}
.ac-mini-card__bar span:first-child  { background: #FF5F57; }
.ac-mini-card__bar span:nth-child(2) { background: #FEBC2E; }
.ac-mini-card__bar span:nth-child(3) { background: #28C840; }
.ac-mini-card__rows { display: grid; gap: 10px; }
.ac-mini-bar {
	height: 10px; border-radius: 4px;
	background: linear-gradient(90deg, var(--c, #2255D3), transparent 100%);
	width: var(--w, 60%);
	animation: ac-mini-pulse 3s ease-in-out infinite;
}
.ac-mini-bar:nth-child(2) { animation-delay: .3s; }
.ac-mini-bar:nth-child(3) { animation-delay: .6s; }
@keyframes ac-mini-pulse { 0%,100%{opacity:.8;} 50%{opacity:.4;} }

.ac-mini-stat {
	background: #141A26;
	border: 1px solid rgba(5,147,106,.4);
	border-radius: 12px;
	padding: 18px 22px;
	min-width: 140px;
	text-align: center;
	box-shadow: 0 20px 50px -20px rgba(5,147,106,.4);
}
.ac-mini-stat small {
	font-family: var(--ac-mono); font-size: .7rem; letter-spacing: .15em;
	text-transform: uppercase; color: #6E7989;
}
.ac-mini-stat strong {
	display: block;
	font-family: var(--ac-display); font-weight: 800; font-size: 2.4rem;
	line-height: 1; margin: 6px 0 4px;
	background: linear-gradient(95deg, #4D7CF0, #21C794);
	-webkit-background-clip: text; background-clip: text;
	color: transparent;
}
.ac-mini-stat span {
	font-family: var(--ac-mono); font-size: .72rem; color: #21C794;
}

/* ---------- Sections ---------- */
.ac-section { padding: clamp(70px, 10vw, 130px) 0; border-top: 1px solid rgba(255,255,255,.05); }
.ac-section--dark { background: #06080C; }
.ac-grid {
	display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: start;
}
@media (max-width: 880px) { .ac-grid { grid-template-columns: 1fr; gap: 20px; } }
.ac-grid p { color: #9FAFC4; margin: 0 0 1em; max-width: 60ch; }
.ac-grid p:last-child { margin-bottom: 0; }

/* ---------- Features grid ---------- */
.ac-features {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px;
}
@media (max-width: 880px) { .ac-features { grid-template-columns: 1fr; } }
.ac-feature {
	background: #0B0F17;
	border: 1px solid rgba(255,255,255,.06);
	border-radius: 12px; padding: 28px;
	transition: transform .35s var(--ac-ease-out), border-color .25s;
	position: relative;
}
.ac-feature:hover {
	transform: translateY(-4px);
	border-color: rgba(77,124,240,.35);
}
.ac-feature__tag {
	display: inline-block;
	font-family: var(--ac-mono); font-size: .72rem; letter-spacing: .12em;
	color: #4D7CF0; margin-bottom: 14px;
}
.ac-feature h3 {
	font-family: var(--ac-display); font-weight: 700;
	font-size: 1.2rem; text-transform: uppercase; letter-spacing: .01em;
	margin: 0 0 10px;
}
.ac-feature p { margin: 0; color: #9FAFC4; line-height: 1.55; font-size: .94rem; }

/* ---------- Stack ---------- */
.ac-stack__row {
	margin-top: 30px;
	background: #0B0F17;
	border: 1px solid rgba(255,255,255,.06);
	border-radius: 14px;
	padding: 36px;
}
.ac-stack dl {
	display: grid; grid-template-columns: max-content 1fr;
	gap: 16px 32px; margin: 0;
}
@media (max-width: 600px) { .ac-stack dl { grid-template-columns: 1fr; gap: 4px 0; } }
.ac-stack dt {
	font-family: var(--ac-mono); font-size: .76rem; letter-spacing: .14em;
	text-transform: uppercase; color: #6E7989;
	padding-top: 4px;
}
.ac-stack dd {
	margin: 0;
	font-family: var(--ac-display); font-weight: 700;
	font-size: 1.05rem; text-transform: uppercase; letter-spacing: .01em;
}
@media (max-width: 600px) { .ac-stack dd { padding-bottom: 14px; border-bottom: 1px dashed rgba(255,255,255,.08); margin-bottom: 8px; } }
