/**
 * Application Development page (/application-development/) — page-scoped styles.
 * Enqueued from ann-child/functions.php only on this page.
 * Public pages render with body.scheme_dark, so colors assume a dark scheme.
 */

.page-application-development {
	--kad-accent: #7c6cff;
	--kad-accent-2: #3b9eff;
	--kad-card-bg: rgba(124, 108, 255, 0.06);
	--kad-card-border: rgba(124, 108, 255, 0.28);
	--kad-muted: rgba(255, 255, 255, 0.62);
}

/* ---------- Scroll reveal ---------- */
.page-application-development .kad-anim {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-application-development .kad-anim.kad-inview {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.page-application-development .kad-anim {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ---------- Hero ---------- */
.page-application-development .kad-hero {
	position: relative;
	padding: 3.2em 2.4em;
	border-radius: 20px;
	background:
		radial-gradient(1000px 400px at 85% -20%, rgba(124, 108, 255, 0.25), transparent 60%),
		radial-gradient(700px 320px at 0% 110%, rgba(59, 158, 255, 0.16), transparent 60%),
		rgba(124, 108, 255, 0.05);
	border: 1px solid var(--kad-card-border);
	overflow: hidden;
	margin-bottom: 2.5em;
}

.page-application-development .kad-kicker {
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-size: 0.8em;
	font-weight: 700;
	background: linear-gradient(90deg, var(--kad-accent), var(--kad-accent-2));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	margin-bottom: 0.6em;
}

.page-application-development .kad-hero-title {
	font-size: clamp(1.9em, 4vw, 2.9em);
	line-height: 1.12;
	margin-top: 0;
}

.page-application-development .kad-hero-sub {
	max-width: 46em;
	font-size: 1.05em;
}

.page-application-development .kad-hero-ctas {
	margin-top: 1.6em;
	gap: 0.8em;
}

/* ---------- Cards ---------- */
.page-application-development .kad-card {
	background: var(--kad-card-bg);
	border: 1px solid var(--kad-card-border);
	border-radius: 16px;
	padding: 1.6em 1.5em !important;
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.page-application-development .kad-card:hover {
	transform: translateY(-6px);
	border-color: var(--kad-accent);
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(124, 108, 255, 0.25);
}

.page-application-development .kad-card h3,
.page-application-development .kad-card h4 {
	margin-top: 0;
}

.page-application-development .kad-card-tag {
	font-weight: 700;
	background: linear-gradient(90deg, var(--kad-accent), var(--kad-accent-2));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.page-application-development .kad-model-cards,
.page-application-development .kad-studio-cards,
.page-application-development .kad-pricing {
	gap: 1.4em;
	margin-top: 1.8em;
	margin-bottom: 1.8em;
}

/* Stagger card reveals */
.page-application-development .wp-block-columns .kad-card:nth-child(2).kad-anim {
	transition-delay: 0.12s;
}

.page-application-development .wp-block-columns .kad-card:nth-child(3).kad-anim {
	transition-delay: 0.24s;
}

/* ---------- Pricing ---------- */
.page-application-development .kad-price {
	font-size: 1.9em;
	font-weight: 800;
	line-height: 1;
	margin: 0.2em 0 0.6em;
}

.page-application-development .kad-price span {
	font-size: 0.45em;
	font-weight: 500;
	color: var(--kad-muted);
}

.page-application-development .kad-price-featured {
	position: relative;
	border-color: var(--kad-accent);
	box-shadow: 0 0 0 1px rgba(124, 108, 255, 0.35), 0 14px 40px rgba(124, 108, 255, 0.18);
}

.page-application-development .kad-note {
	font-size: 0.92em;
	color: var(--kad-muted);
	border-left: 3px solid var(--kad-accent);
	padding-left: 1em;
}

/* ---------- Posit strip / final CTA ---------- */
.page-application-development .kad-posit-strip,
.page-application-development .kad-final-cta {
	border-radius: 16px;
	border: 1px solid var(--kad-card-border);
	padding: 1.8em 2em;
	margin: 2.2em 0;
	background: linear-gradient(120deg, rgba(124, 108, 255, 0.1), rgba(59, 158, 255, 0.06));
}

.page-application-development .kad-posit-strip h4,
.page-application-development .kad-final-cta h3 {
	margin-top: 0;
}

.page-application-development .kad-sep {
	margin: 3em auto;
	opacity: 0.35;
}

/* ---------- Diagrams (shared) ---------- */
.page-application-development .kad-diagram,
.page-application-development .kad-timeline {
	margin: 2.2em 0;
	padding: 1.4em;
	border-radius: 16px;
	border: 1px solid var(--kad-card-border);
	background: rgba(10, 12, 24, 0.35);
	overflow: hidden;
}

.page-application-development .kad-diagram svg,
.page-application-development .kad-timeline svg {
	width: 100%;
	height: auto;
	display: block;
}

.page-application-development .kad-diagram-caption {
	font-size: 0.88em;
	color: var(--kad-muted);
	text-align: center;
	margin: 0.9em 0 0;
}

.page-application-development .kad-d-box {
	fill: rgba(124, 108, 255, 0.08);
	stroke: rgba(124, 108, 255, 0.45);
	stroke-width: 1.5;
}

.page-application-development .kad-d-accent {
	fill: rgba(124, 108, 255, 0.16);
}

.page-application-development .kad-d-deploy {
	fill: rgba(59, 158, 255, 0.08);
	stroke: rgba(59, 158, 255, 0.45);
}

.page-application-development .kad-d-title {
	fill: #f8fafc;
	font-family: inherit;
	font-size: 17px;
	font-weight: 700;
}

.page-application-development .kad-d-sub {
	fill: rgba(248, 250, 252, 0.66);
	font-family: inherit;
	font-size: 13px;
}

/* Node pop-in, staggered once diagram is in view */
.page-application-development .kad-d-node {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-application-development .kad-inview .kad-d-1 { transition-delay: 0.05s; }
.page-application-development .kad-inview .kad-d-2 { transition-delay: 0.25s; }
.page-application-development .kad-inview .kad-d-3 { transition-delay: 0.45s; }
.page-application-development .kad-inview .kad-d-4 { transition-delay: 0.65s; }
.page-application-development .kad-inview .kad-d-5 { transition-delay: 0.85s; }

.page-application-development .kad-inview .kad-d-node {
	opacity: 1;
	transform: none;
}

/* Animated flow lines */
.page-application-development .kad-d-flow {
	fill: none;
	stroke: var(--kad-accent);
	stroke-width: 2;
	stroke-dasharray: 6 6;
	opacity: 0;
}

.page-application-development .kad-inview .kad-d-flow {
	opacity: 1;
	animation: kad-dash 1.2s linear infinite;
	transition: opacity 0.5s ease 0.9s;
}

@keyframes kad-dash {
	to { stroke-dashoffset: -24; }
}

/* Agent-layer pulse + glow */
.page-application-development .kad-d-pulse {
	fill: var(--kad-accent-2);
}

.page-application-development .kad-inview .kad-d-pulse {
	animation: kad-pulse 2s ease-in-out infinite;
}

@keyframes kad-pulse {
	0%, 100% { opacity: 0.35; }
	50% { opacity: 1; }
}

.page-application-development .kad-d-glow {
	opacity: 0;
}

.page-application-development .kad-inview .kad-d-glow {
	opacity: 1;
	transition: opacity 0.8s ease 0.6s;
	animation: kad-glow 3s ease-in-out infinite;
}

@keyframes kad-glow {
	0%, 100% { stroke-opacity: 0.35; }
	50% { stroke-opacity: 1; }
}

/* ---------- Timeline ---------- */
.page-application-development .kad-t-line {
	fill: none;
	stroke: rgba(124, 108, 255, 0.55);
	stroke-width: 3;
	stroke-linecap: round;
	stroke-dasharray: 840;
	stroke-dashoffset: 840;
}

.page-application-development .kad-inview .kad-t-line {
	animation: kad-draw 1.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes kad-draw {
	to { stroke-dashoffset: 0; }
}

.page-application-development .kad-t-dot {
	fill: var(--kad-accent);
	stroke: rgba(255, 255, 255, 0.85);
	stroke-width: 2.5;
}

.page-application-development .kad-t-step {
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-application-development .kad-inview .kad-t-s1 { transition-delay: 0.4s; }
.page-application-development .kad-inview .kad-t-s2 { transition-delay: 0.8s; }
.page-application-development .kad-inview .kad-t-s3 { transition-delay: 1.2s; }

.page-application-development .kad-inview .kad-t-step {
	opacity: 1;
	transform: none;
}

.page-application-development .kad-t-name {
	fill: #f8fafc;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
}

.page-application-development .kad-t-promise {
	fill: rgba(248, 250, 252, 0.75);
	font-family: inherit;
	font-size: 14px;
	font-style: italic;
}

@media (prefers-reduced-motion: reduce) {
	.page-application-development .kad-d-node,
	.page-application-development .kad-t-step,
	.page-application-development .kad-d-flow,
	.page-application-development .kad-d-glow {
		opacity: 1;
		transform: none;
		transition: none;
		animation: none;
	}

	.page-application-development .kad-t-line {
		stroke-dashoffset: 0;
		animation: none;
	}
}

/* ---------- Anchor offset for fixed header ---------- */
.page-application-development #ai-application-studio,
.page-application-development #dedicated-teams,
.page-application-development #delivery-models {
	scroll-margin-top: 120px;
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	.page-application-development .kad-hero {
		padding: 2em 1.3em;
	}

	.page-application-development .kad-model-cards,
	.page-application-development .kad-studio-cards,
	.page-application-development .kad-pricing {
		gap: 1em;
	}
}
