/**
 * Continuous Security Assurance — .imea-csa
 * Target: IMEA/assets/css/security-assurance.css
 * Glassmorphism cards + glow background to match the Figma (Variant_10).
 * Scoped, additive; consumes theme custom properties with safe fallbacks.
 */

.imea-csa {
	--csa-lime:   var(--secondary-color, #ccfc00);
	--csa-green:  var(--primary-color, #21a55e);
	--csa-stat:   #4bdc8e;
	--csa-check:  #2fbf6f;
	--csa-text:   var(--text-light, #eaf6ef);
	--csa-muted:  var(--text-muted, #8fab9d);
	--csa-bg:     var(--bg-deep, #041109);
	--csa-border: rgba(255, 255, 255, 0.08);
	--csa-border-strong: rgba(255, 255, 255, 0.14);
	--csa-radius: 18px;

	/* glass surface used by every card */
	--csa-glass: linear-gradient(160deg, rgba(255, 255, 255, 0.055) 0%, rgba(6, 26, 18, 0.28) 100%);
	--csa-glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 30px 70px -34px rgba(0, 0, 0, 0.65);
	position: relative;
	padding: clamp(44px, 5.5vw, 90px) 0;
	background: var(--csa-bg);
	color: var(--csa-text);
	overflow: hidden;
	isolation: isolate;
	background-image: url(https://stg-gruveai-staging.kinsta.cloud/en-in/wp-content/uploads/sites/3/2026/07/Line-6.svg);
	background-repeat: no-repeat;
	background-size: 100%;
	background-position: center;
}

/* layered glow background: soft green pool behind the stack + faint vertical lift */
.imea-csa::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(60% 55% at 42% 42%, rgba(33, 165, 94, 0.18) 0%, rgba(33, 165, 94, 0) 60%),
		radial-gradient(40% 40% at 50% 8%, rgba(204, 252, 0, 0.06) 0%, rgba(204, 252, 0, 0) 70%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(0, 0, 0, 0) 30%);
	pointer-events: none;
}

.imea-csa__inner { position: relative; z-index: 1; }

/* ---------- Header ---------- */
.imea-csa__head { margin-bottom: clamp(28px, 4vw, 54px); }

.imea-csa__eyebrow {
	margin: 0 0 14px;
	color: var(--csa-green);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.imea-csa__heading {
	margin: 0;
	max-width: 22ch;
	font-size: 48px;
	line-height: 1.05;
	font-weight: 400;
	color: #fff;
	letter-spacing: -0.01em;
}

/* ---------- Grid ---------- */
.imea-csa__grid {align-items: flex-start;row-gap: 28px;align-items: center;}

/* ---------- Left: discipline tabs ---------- */
.imea-csa__disciplines { display: flex; flex-direction: column; gap: 12px; }

.imea-csa__tab {
	display: flex;
	align-items: center;
	gap: 6px;
	width: 100%;
	padding: 15px 20px;
	border: 1px solid var(--csa-border);
	border-radius: 12px;
	background: linear-gradient(160deg, rgba(255, 255, 255, 0.04) 0%, rgba(6, 26, 18, 0.20) 100%);
	color: var(--csa-text);
	font-size: 15px;
	font-weight: 500;
	text-align: left;
	cursor: pointer;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.12s ease;
}

.imea-csa__tab:hover { border-color: var(--csa-border-strong); transform: translateY(-1px); }
.imea-csa__tab:focus-visible { outline: 2px solid var(--csa-lime); outline-offset: 2px; }

.imea-csa__tab-code { font-weight: 700; }
.imea-csa__tab-sep { color: var(--csa-muted); }

.imea-csa__tab.is-active {
	color: #fff;
	background: linear-gradient(177.33deg, #CCFC00 -9.23%, #21A55E 39.07%, #177241 87.36%);
	box-shadow: 0px 0px 38.1px 0px rgba(74, 255, 77, 0.44);
	font-size: 16px;
}
.imea-csa__tab.is-active .imea-csa__tab-sep { color: rgba(255, 255, 255, 0.7); }

/* ---------- Center: graphic ---------- */
.imea-csa__stage { display: flex; justify-content: center; }
.imea-csa__graphic {width: 100%;/* max-width: 320px; */}
.imea-csa__graphic svg,
.imea-csa__graphic-img {display: block;width: 100%;object-fit: cover;}

/* ---------- Right: panels + shared cards ---------- */
.imea-csa__panels { position: relative; }

.imea-csa__panel {display: none;flex-direction: column;gap: 10px;}
.imea-csa__panel.is-active { display: flex; }
.imea-csa__panel[hidden] { display: none; }

.imea-csa__card {
	padding: 20px;
	border-radius: var(--csa-radius);
	box-shadow: var(--csa-glass-shadow);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border: 0.34px solid rgba(46, 49, 50, 1);
	background: rgba(16, 17, 19, 0.79);
	backdrop-filter: blur(16.566652297973633px);
}

.imea-csa__card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	/* margin-bottom: 14px; */
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.00999999) 100%);
	padding: 10px 15px;
	border-radius: 10px 10px 0px 0px;
}

.imea-csa__card-eyebrow { color: var(--csa-green); font-size: 14px; font-weight: 600; }

/* status dots */
.imea-csa__dots { display: inline-flex; gap: 6px; flex: none; }
.imea-csa__dot { width: 8px; height: 8px; border-radius: 50%; display: block; }
.imea-csa__dot--g { background: #3ecf7a; }
.imea-csa__dot--a { background: #e8a33d; }

.imea-csa__panel-title {
	margin: 0 0 18px;
	font-size: 18px;
	font-weight: 400;
	color: #fff;
	line-height: 1.4;
}

/* service chips */
.imea-csa__chips { display: flex; flex-wrap: wrap; gap: 9px; }
.imea-csa__chip {
	padding: 9px 15px;
	border-radius: 10px;
	color: #fff;
	font-size: 13.5px;
	white-space: nowrap;
	background: linear-gradient(149.37deg, rgba(177, 177, 177, 0.02) 0%, rgba(32, 164, 93, 0.12) 70.23%);
	border: 0.95px solid;
	border-image-source: linear-gradient(213.6deg, rgba(221, 255, 202, 0.21) 18.12%, rgba(255, 255, 255, 0) 80.04%);
	box-shadow: 0px 3.81px 15.24px 0px rgba(32, 164, 93, 0.3) inset;
}
.imea-csa__chip--soft { border-color: var(--csa-border); color: var(--csa-muted); background: transparent; }

/* stats — each stat is its own bordered box */
.imea-csa__stats {display: flex;gap: 14px;margin-bottom: 20px;}
.imea-csa__stat {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 18px 20px;
	/* border: 1px solid var(--csa-border); */
	border-radius: 12px;
	min-width: 0;
	background: linear-gradient(90deg, rgba(33, 165, 94, 0.14) 0%, rgba(33, 165, 94, 0.02) 100%);
}
.imea-csa__stat-value {font-size: 24px;font-weight: 400;color: var(--csa-stat);line-height: 1;letter-spacing: -0.01em;}
.imea-csa__stat-label {font-size: 14px;color: #fff;line-height: 1.35;}

/* columns — three columns inside a single nested box, split by dividers */
.imea-csa__cols {
	display: flex;
	gap: 0;
	padding: 20px 10px;
	border: 1px solid var(--csa-border);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.025);
	box-shadow: 0px 3.81px 15.24px 0px rgba(32, 164, 93, 0.3) inset;
	background: linear-gradient(149.37deg, rgba(177, 177, 177, 0.02) 0%, rgba(32, 164, 93, 0.23) 70.23%);
	border: 0.95px solid;
	border-image-source: linear-gradient(213.6deg, rgba(221, 255, 202, 0.21) 18.12%, rgba(255, 255, 255, 0) 80.04%);
}
.imea-csa__col {flex: 1 1 0;min-width: 0;background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.00999999) 100%);padding: 20px !important;margin: 0px 10px;border-radius: 10px;border-top: 0.55px solid rgba(255, 255, 255, 0.07);}
.imea-csa__col:first-child { padding-left: 0; }
.imea-csa__col:last-child { padding-right: 0; }
.imea-csa__col-title {margin: 0 0 16px;font-size: 18px;font-weight: 400;color: #fff;line-height: 1.3;}

/* checklist */
.imea-csa__checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.imea-csa__check {display: flex;align-items: flex-start;gap: 10px;font-size: 13.5px;color: var(--base-color);line-height: 1.4;}
.imea-csa__check-icon {
	flex: none;
	width: 18px;
	height: 18px;
	margin-top: 1px;
	border-radius: 50%;
	background:
		var(--csa-check)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%23041a0e' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
		center / 11px 11px no-repeat;
}

/* badges */
.imea-csa__badges { display: flex; flex-wrap: wrap; gap: 9px; }
.imea-csa__badge {
	padding: 8px 14px;
	border: 1px solid var(--csa-border-strong);
	border-radius: 9px;
	font-size: 13px;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(149.37deg, rgba(177, 177, 177, 0.02) 0%, rgba(32, 164, 93, 0.12) 70.23%);
	border: 0.95px solid;
	border-image-source: linear-gradient(213.6deg, rgba(221, 255, 202, 0.21) 18.12%, rgba(255, 255, 255, 0) 80.04%);
	box-shadow: 0px 3.81px 15.24px 0px rgba(32, 164, 93, 0.3) inset;
}

/* ---------- Footer bar ---------- */
.imea-csa__footer {/* margin-top: 22px; */}
.imea-csa__footer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}
.imea-csa__footer-title {font-size: 16px;font-weight: 400;color: #fff;}
.imea-csa__footer-body {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	padding: 10px 15px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.00999999) 100%);
	border-top: 0.55px solid rgba(255, 255, 255, 0.07);
}
.imea-csa__footer-info { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.imea-csa__footer-summary {margin: 0;color: var(--csa-muted);font-size: 16px;line-height: 1.5;}
.imea-csa__footer-tags { display: flex; gap: 8px; flex-wrap: wrap; }

.imea-csa__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 16px 32px;
	border-radius: 12px;
	background: var(--csa-lime);
	color: #08210f;
	font-size: 18px;
	font-weight: 400;
	text-decoration: none;
	white-space: nowrap;
	transition: filter 0.2s ease, transform 0.12s ease, box-shadow 0.2s ease;
}
.imea-csa__cta:hover { filter: brightness(1.06); box-shadow: 0 14px 34px -12px rgba(204, 252, 0, 0.6); transform: translateY(-1px); }
.imea-csa__cta:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.imea-csa__card-inner {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.00999999) 100%);
    border-top: 0.55px solid rgba(255, 255, 255, 0.07);
    padding: 10px 15px 15px;
    border-radius: 0px 0px 10px 10px;
}

/* ============================================================
 * APPEND THIS to the end of IMEA/assets/css/security-assurance.css
 * Cube drop-in — CSS-driven, plays when the section scrolls into
 * view (JS adds .is-in-view to .imea-csa). Replaces the old SMIL.
 * Requires isostack.svg to keep its #cube_1 … #cube_5 ids.
 * ============================================================ */

/* Clip the cubes to the SVG frame so they enter from its top edge.
 * (This overrides the earlier `.imea-csa__graphic svg { overflow: visible }`.) */
.imea-csa__graphic svg { overflow: hidden; }

@keyframes csa-cube-drop {
	from { transform: translateY(var(--csa-drop, -320px)); opacity: 0; }
	60%  { opacity: 1; }
	to   { transform: translateY(0); opacity: 1; }
}

/* per-cube travel distance — each starts just above the SVG's top edge */
.imea-csa__graphic svg #cube_1 { --csa-drop: -150px; }
.imea-csa__graphic svg #cube_2 { --csa-drop: -220px; }
.imea-csa__graphic svg #cube_3 { --csa-drop: -292px; }
.imea-csa__graphic svg #cube_4 { --csa-drop: -300px; }
.imea-csa__graphic svg #cube_5 { --csa-drop: -393px; }

/* play on scroll-in, staggered (~2s total, gentle ease-out) */
.imea-csa.is-in-view .imea-csa__graphic svg #cube_1,
.imea-csa.is-in-view .imea-csa__graphic svg #cube_2,
.imea-csa.is-in-view .imea-csa__graphic svg #cube_3,
.imea-csa.is-in-view .imea-csa__graphic svg #cube_4,
.imea-csa.is-in-view .imea-csa__graphic svg #cube_5 {
	animation: csa-cube-drop 1.3s cubic-bezier(0.33, 1, 0.68, 1) both;
}
.imea-csa.is-in-view .imea-csa__graphic svg #cube_1 { animation-delay: 0s; }
.imea-csa.is-in-view .imea-csa__graphic svg #cube_2 { animation-delay: 0.15s; }
.imea-csa.is-in-view .imea-csa__graphic svg #cube_3 { animation-delay: 0.30s; }
.imea-csa.is-in-view .imea-csa__graphic svg #cube_4 { animation-delay: 0.45s; }
.imea-csa.is-in-view .imea-csa__graphic svg #cube_5 { animation-delay: 0.60s; }

/* accessibility: no motion for users who ask for none */
@media (prefers-reduced-motion: reduce) {
	.imea-csa.is-in-view .imea-csa__graphic svg #cube_1,
	.imea-csa.is-in-view .imea-csa__graphic svg #cube_2,
	.imea-csa.is-in-view .imea-csa__graphic svg #cube_3,
	.imea-csa.is-in-view .imea-csa__graphic svg #cube_4,
	.imea-csa.is-in-view .imea-csa__graphic svg #cube_5 { animation: none; }
}

@media(max-width:768px){
	.imea-csa__heading {
	    font-size: 28px;
	}
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
	.imea-csa__disciplines { flex-direction: row; flex-wrap: wrap; }
	.imea-csa__tab { width: auto; flex: 1 1 auto; }
	.imea-csa__graphic { max-width: 260px; margin: 8px auto 20px; }
}

@media (max-width: 575.98px) {
	.imea-csa__card { padding: 18px; }
	.imea-csa__stats { flex-direction: column; }
	.imea-csa__cols { flex-direction: column; gap: 18px; padding: 18px; }
	.imea-csa__col { padding: 0; }
	.imea-csa__col + .imea-csa__col { border-left: 0; border-top: 1px solid var(--csa-border); padding-top: 18px; }
	.imea-csa__footer-body { flex-direction: column; align-items: stretch; }
	.imea-csa__cta { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.imea-csa__tab,
	.imea-csa__cta { transition: none; }
}