/*
 * "AI Landing Page" template (landing-template.php)
 */

body.page-template-landing-template { background: var(--ai-bg, #060913); }

/* Header floats over the hero */
.page-template-landing-template .main-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	background: transparent !important;
	border-image: none !important;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}
.page-template-landing-template.tdb-scrolled .main-header,
html.tdb-scrolled .page-template-landing-template .main-header {
	background: rgba(6, 9, 19, .82) !important;
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	backdrop-filter: saturate(180%) blur(14px);
}

/* ---------- Hero ---------- */
.tdb-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-height: min(100vh, 980px);
	display: flex;
	align-items: center;
	padding: 140px 0 90px;
	color: #fff;
	background:
		radial-gradient(60% 70% at 80% 40%, rgba(16, 185, 129, .18), transparent 70%),
		radial-gradient(40% 50% at 10% 90%, rgba(62, 173, 60, .12), transparent 70%),
		radial-gradient(120% 120% at 50% 0%, #0b1424 0%, #060913 60%, #04060d 100%);
}
.tdb-hero::after {
	/* readable left side + fade into the next section */
	content: "";
	position: absolute; inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		linear-gradient(90deg, rgba(6, 9, 19, .85) 0%, rgba(6, 9, 19, .35) 45%, transparent 70%),
		linear-gradient(180deg, transparent 80%, #060913 100%);
}
.tdb-hero__visual {
	position: absolute;
	z-index: -2;
	top: 0; bottom: 0;
	right: -6%;
	width: 72%;
	pointer-events: none;
}
.tdb-hero__visual canvas,
.tdb-hero__visual img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.tdb-orb { opacity: 0; transition: opacity 1.2s ease; }
.tdb-orb.is-ready { opacity: 1; }

.tdb-hero__inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(320px, 470px);
	gap: clamp(32px, 6vw, 96px);
	align-items: center;
}
.tdb-chip {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 22px;
	padding: 7px 16px 7px 12px;
	border-radius: 999px;
	border: 1px solid rgba(134, 239, 172, .28);
	background: rgba(62, 173, 60, .10);
	color: #b7f7c9;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
.tdb-chip span {
	width: 7px; height: 7px;
	border-radius: 50%;
	background: #3ead3c;
	box-shadow: 0 0 0 4px rgba(62, 173, 60, .2), 0 0 14px #3ead3c;
	animation: tdb-pulse 2.4s ease-in-out infinite;
}
@keyframes tdb-pulse { 50% { box-shadow: 0 0 0 7px rgba(62, 173, 60, 0), 0 0 18px #3ead3c; } }

.tdb-hero__title {
	margin: 0 0 22px;
	color: #fff;
	font-family: var(--ai-display, inherit);
	font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.6rem);
	font-weight: 700;
	line-height: 1.04;
	letter-spacing: -.035em;
	text-wrap: balance;
}
.tdb-hero__intro {
	max-width: 56ch;
	margin: 0 0 26px;
	color: rgba(226, 232, 240, .86);
	font-size: clamp(1.05rem, .98rem + .35vw, 1.25rem);
	line-height: 1.65;
}
.tdb-hero__points {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.tdb-hero__points li {
	position: relative;
	padding-left: 30px;
	color: rgba(226, 232, 240, .9);
}
.tdb-hero__points li::before {
	content: "";
	position: absolute;
	left: 0; top: .35em;
	width: 18px; height: 18px;
	border-radius: 50%;
	background: rgba(62, 173, 60, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2386efac' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6L20.1 8.4 18.7 7z'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Glass form card ---------- */
.tdb-glass {
	position: relative;
	padding: clamp(26px, 3vw, 40px);
	border-radius: 22px;
	background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .05));
	border: 1px solid rgba(255, 255, 255, .18);
	box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 40px 80px -30px rgba(0, 0, 0, .7);
	-webkit-backdrop-filter: blur(22px) saturate(160%);
	backdrop-filter: blur(22px) saturate(160%);
}
.tdb-glass::before {
	/* soft green glow behind the card */
	content: "";
	position: absolute;
	inset: -30% -20% auto auto;
	width: 70%; height: 70%;
	z-index: -1;
	background: radial-gradient(closest-side, rgba(62, 173, 60, .35), transparent);
	filter: blur(30px);
}
.tdb-glass__title {
	margin: 0 0 18px;
	color: #fff !important;
	font-size: clamp(1.6rem, 1.3rem + .9vw, 2.1rem);
	font-weight: 600;
	letter-spacing: -.02em;
}
.tdb-glass__note {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 14px 0 0;
	color: rgba(226, 232, 240, .78);
	font-size: 14px;
}
.tdb-glass__note svg { color: #86efac; }

/* Contact Form 7 inside the glass card: underline inputs */
.tdb-glass .wpcf7 p { margin: 0 0 6px; color: #fff; }
.tdb-glass .wpcf7 label { display: block; width: 100%; color: #fff; font-weight: 500; font-size: 15px; }
.tdb-glass .wpcf7 br { display: none; }
.tdb-glass .wpcf7 .wpcf7-form-control-wrap { display: block; margin-top: 4px; }
.tdb-glass .wpcf7 input[type=text],
.tdb-glass .wpcf7 input[type=email],
.tdb-glass .wpcf7 input[type=tel],
.tdb-glass .wpcf7 input[type=number],
.tdb-glass .wpcf7 input[type=url],
.tdb-glass .wpcf7 select,
.tdb-glass .wpcf7 textarea,
.tdb-glass .form-control {
	width: 100%;
	padding: 12px 0 !important;
	border: 0 !important;
	border-bottom: 1px solid rgba(255, 255, 255, .35) !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #fff !important;
	font-size: 16px;
	transition: border-color .25s;
}
.tdb-glass .wpcf7 textarea { min-height: 84px; height: 84px; resize: vertical; }
.tdb-glass .wpcf7 select option { color: #0b1526; }
.tdb-glass .wpcf7 ::placeholder { color: rgba(255, 255, 255, .78); opacity: 1; }
.tdb-glass .wpcf7 input:focus,
.tdb-glass .wpcf7 textarea:focus,
.tdb-glass .wpcf7 select:focus {
	outline: none;
	border-bottom-color: #86efac !important;
	box-shadow: 0 1px 0 #86efac !important;
}
.tdb-glass .wpcf7-submit,
.tdb-glass input[type=submit] {
	margin-top: 18px;
	padding: 14px 30px !important;
	border-radius: 12px !important;
	width: auto;
}
.tdb-glass .wpcf7-not-valid-tip { color: #fca5a5; font-size: 13px; }
.tdb-glass .wpcf7-response-output { color: #fff; border-radius: 10px; }
/* The site's general form styles add boxes/padding; reset inside the card */
.tdb-glass .contact-form > div, .tdb-glass .wpcf7 .row { margin: 0; }

/* ---------- Sections below the hero ---------- */
.tdb-lp-head { max-width: 760px; margin: 0 auto clamp(32px, 4vw, 56px); text-align: center; }
.tdb-lp-head h2 { margin: 0 0 12px; }
.tdb-lp-head p { margin: 0; font-size: 17px; }

.tdb-lp-cards .row { justify-content: center; }
.tdb-lp-cards .iconbox { height: 100%; margin: 0; }
.tdb-lp-cards .iconbox h3 { font-size: 1.2rem !important; margin-bottom: 10px; }

.tdb-prose { max-width: 820px; margin: 0 auto; }

.tdb-lp-steps { background: #f7f8fc; }
.tdb-steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}
.tdb-step {
	position: relative;
	padding: 28px 24px;
	border-radius: 16px;
	background: #fff;
	border: 1px solid #e3e8ef;
	box-shadow: 0 18px 40px -28px rgba(10, 60, 35, .35);
	transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s;
}
.tdb-step:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -26px rgba(10, 60, 35, .45); }
.tdb-step__num {
	display: inline-block;
	margin-bottom: 14px;
	font-family: var(--ai-display, inherit);
	font-size: 2rem;
	font-weight: 700;
	line-height: 1;
	background: linear-gradient(110deg, #3ead3c, #10b981 50%, #22d3ee);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.tdb-step h3 { margin: 0 0 8px; font-size: 1.1rem; }
.tdb-step p { margin: 0; font-size: 15px; }

.tdb-lp-faq .faq-list { max-width: 860px; margin: 0 auto; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
	.tdb-hero { padding: 120px 0 60px; min-height: 0; }
	.tdb-hero__inner { grid-template-columns: 1fr; }
	.tdb-hero__visual { width: 120%; right: -40%; opacity: .55; }
	.tdb-hero::after { background: linear-gradient(180deg, rgba(6, 9, 19, .55), rgba(6, 9, 19, .85) 60%, #060913); }
}

@media (prefers-reduced-motion: reduce) {
	.tdb-chip span { animation: none; }
}

/* Default line icons on highlight cards */
.tdb-lp-cards .iconbox-icon-container { display: inline-flex; align-items: center; justify-content: center; }
.tdb-line-icon { color: #23873a; }

/* =====================================================================
 * Style B: minimal light streaks
 * =================================================================== */
.tdb-hero--streaks {
	align-items: flex-start;
	padding-top: clamp(130px, 14vw, 190px);
	background:
		radial-gradient(60% 70% at 85% 30%, rgba(34, 211, 238, .08), transparent 70%),
		linear-gradient(180deg, #0d1220 0%, #0a0e19 60%, #060913 100%);
}
.tdb-hero--streaks::after {
	background: linear-gradient(90deg, rgba(10, 14, 25, .7) 0%, transparent 60%), linear-gradient(180deg, transparent 85%, #060913 100%);
}
.tdb-hero--streaks .tdb-hero__visual { right: -10%; width: 80%; }
.tdb-hero--streaks .tdb-hero__copy { max-width: 900px; }
.tdb-hero--streaks .tdb-hero__title { font-size: clamp(2.6rem, 1.5rem + 4.4vw, 5.4rem); font-weight: 600; letter-spacing: -.03em; }
.tdb-caret {
	display: inline-block;
	width: .06em;
	height: .9em;
	margin-left: .12em;
	vertical-align: -.08em;
	background: #22d3ee;
	box-shadow: 0 0 12px rgba(34, 211, 238, .8);
	animation: tdb-blink 1.05s steps(1) infinite;
}
@keyframes tdb-blink { 50% { opacity: 0; } }
.tdb-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.tdb-hero__features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: clamp(24px, 4vw, 64px);
	max-width: 1100px;
	margin: clamp(56px, 8vw, 110px) 0 0;
	padding: 0;
	list-style: none;
}
.tdb-hero__features li { position: relative; padding-top: 22px; }
.tdb-hero__features li::before {
	content: "";
	position: absolute; top: 0; left: 0;
	width: 40px; height: 2px;
	background: linear-gradient(90deg, #3ead3c, #22d3ee);
}
.tdb-hero__feature-title { margin: 0 0 10px; color: #fff !important; font-size: 1.45rem; font-weight: 500; letter-spacing: -.01em; }
.tdb-hero__feature-title a { color: inherit; }
.tdb-hero__features p { margin: 0; color: rgba(226, 232, 240, .82); font-size: 16px; line-height: 1.6; }

/* =====================================================================
 * Style C: light + AI agents panel
 * =================================================================== */
body.tdb-lp-style-agents { background: #fff; }
.tdb-lp-style-agents .main-header { position: relative; background: rgba(6, 9, 19, .96) !important; }
.tdb-hero--agents {
	display: block;
	min-height: 0;
	padding: clamp(56px, 8vw, 110px) 0 clamp(56px, 7vw, 90px);
	color: var(--tdb-ink, #0b1526);
	background:
		linear-gradient(#fff, #fff) padding-box;
}
.tdb-hero--agents::after { display: none; }
.tdb-hero--agents .container {
	position: relative;
	border-left: 1px solid #eef1f5;
	border-right: 1px solid #eef1f5;
	padding-left: clamp(16px, 4vw, 56px);
	padding-right: clamp(16px, 4vw, 56px);
}
.tdb-agents-top {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
	gap: clamp(28px, 5vw, 80px);
	align-items: start;
}
.tdb-hero--agents .tdb-hero__title {
	color: var(--tdb-ink, #0b1526);
	font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.4rem);
	font-weight: 500;
	letter-spacing: -.04em;
	line-height: 1.08;
}
.tdb-hl {
	background: linear-gradient(100deg, #2f9e3a, #0ea5a4);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.tdb-hero--agents .tdb-chip { color: #23873a; background: #effaf1; border-color: #cdeed4; -webkit-backdrop-filter: none; backdrop-filter: none; }
.tdb-agents-side { padding-top: 10px; }
.tdb-hero--agents .tdb-hero__intro { color: #6b7690; font-size: clamp(1.05rem, .95rem + .45vw, 1.3rem); }
.tdb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 26px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 16px;
	text-decoration: none;
	transition: transform .2s, box-shadow .2s, background-color .2s, border-color .2s;
}
.tdb-btn--primary { background: #3ead3c; color: #fff !important; box-shadow: 0 10px 26px -10px rgba(62, 173, 60, .7); }
.tdb-btn--primary:hover { background: #2f8f2d; transform: translateY(-1px); }
.tdb-btn--ghost { border: 1px solid #dfe4ec; color: var(--tdb-ink, #0b1526) !important; background: #fff; }
.tdb-btn--ghost:hover { border-color: #3ead3c; transform: translateY(-1px); }

.tdb-agents-panel {
	position: relative;
	overflow: hidden;
	margin-top: clamp(40px, 6vw, 72px);
	padding: clamp(40px, 6vw, 90px) clamp(16px, 4vw, 48px) clamp(48px, 6vw, 96px);
	border-radius: 20px;
	background:
		radial-gradient(40% 60% at 15% 10%, rgba(62, 173, 60, .30), transparent 70%),
		radial-gradient(45% 60% at 90% 20%, rgba(34, 211, 238, .30), transparent 70%),
		radial-gradient(50% 60% at 60% 100%, rgba(16, 185, 129, .25), transparent 70%),
		linear-gradient(135deg, #e9f8ee, #e3f6f8);
}
.tdb-prompt {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 4px;
	width: min(560px, 100%);
	min-height: 58px;
	margin: 0 auto;
	padding: 10px 10px 10px 22px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .92);
	box-shadow: 0 12px 34px -14px rgba(10, 60, 35, .35), 0 0 0 1px rgba(255, 255, 255, .8) inset;
	color: #1f2a3c;
	font-size: 16px;
}
.tdb-prompt__text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tdb-prompt__caret { width: 2px; height: 20px; background: #3ead3c; animation: tdb-blink 1s steps(1) infinite; flex: none; }
.tdb-prompt__send {
	display: inline-flex; align-items: center; justify-content: center;
	flex: none;
	width: 38px; height: 38px;
	margin-left: auto;
	border-radius: 50%;
	background: #3ead3c;
	color: #fff;
}
.tdb-agents-lines {
	display: block;
	width: min(900px, 100%);
	height: 110px;
	margin: 0 auto;
	overflow: visible;
}
.tdb-agents-lines path {
	fill: none;
	stroke: #2f9e3a;
	stroke-width: 1.6;
	stroke-dasharray: 5 6;
	vector-effect: non-scaling-stroke;
	opacity: .7;
	animation: tdb-dash 1.2s linear infinite;
}
@keyframes tdb-dash { to { stroke-dashoffset: -22; } }
.tdb-agents {
	display: grid;
	grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr));
	width: min(900px, 100%);
	margin: 0 auto;
	padding: 0;
	list-style: none;
}
.tdb-agent {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	opacity: 0;
	transform: translateY(14px);
	animation: tdb-agent-in .8s cubic-bezier(.16, 1, .3, 1) forwards;
	animation-delay: calc(.6s + var(--i, 0) * .25s);
}
@keyframes tdb-agent-in { to { opacity: 1; transform: none; } }
.tdb-agent__avatar {
	position: relative;
	display: inline-flex; align-items: center; justify-content: center;
	width: 72px; height: 72px;
	border-radius: 50%;
	background: #fff;
	color: #23873a;
	box-shadow: 0 10px 30px -12px rgba(10, 60, 35, .45), 0 0 0 6px rgba(255, 255, 255, .55);
}
.tdb-agent__avatar i {
	position: absolute; right: 2px; bottom: 4px;
	width: 14px; height: 14px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: #10b981;
	animation: tdb-pulse 2.4s ease-in-out infinite;
}
.tdb-agent__name {
	padding: 10px 18px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .92);
	box-shadow: 0 8px 22px -12px rgba(10, 60, 35, .35);
	color: #1f2a3c;
	font-weight: 600;
	font-size: 15px;
	white-space: nowrap;
}

/* =====================================================================
 * Form band (streaks + agents styles)
 * =================================================================== */
.tdb-form-band {
	position: relative;
	overflow: hidden;
	padding: clamp(64px, 8vw, 110px) 0;
	color: #fff;
	background:
		radial-gradient(45% 70% at 90% 10%, rgba(16, 185, 129, .25), transparent 70%),
		radial-gradient(40% 60% at 0% 100%, rgba(34, 211, 238, .14), transparent 70%),
		#060913;
}
.tdb-form-band__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
	gap: clamp(32px, 6vw, 96px);
	align-items: center;
}
.tdb-form-band__copy h2 { color: #fff !important; font-size: clamp(2rem, 1.4rem + 2vw, 3.2rem); margin: 0 0 16px; }
.tdb-form-band__copy p { color: rgba(226, 232, 240, .82); font-size: 18px; max-width: 46ch; margin: 0; }

@media (max-width: 991px) {
	.tdb-agents-top, .tdb-form-band__inner { grid-template-columns: 1fr; }
	.tdb-hero--streaks .tdb-hero__visual { width: 140%; right: -50%; opacity: .7; }
}
@media (max-width: 640px) {
	.tdb-agents { grid-template-columns: 1fr; gap: 18px; }
	.tdb-agents-lines { display: none; }
	.tdb-agent { flex-direction: row; justify-content: center; }
	.tdb-agent__avatar { width: 52px; height: 52px; }
	.tdb-hero__actions .tdb-btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
	.tdb-caret, .tdb-prompt__caret, .tdb-agents-lines path, .tdb-agent__avatar i { animation: none; }
	.tdb-agent { opacity: 1; transform: none; animation: none; }
}

/* Card titles that link to service pages */
.tdb-lp-cards .iconbox h3 a { color: #fff !important; }
.tdb-lp-cards .iconbox h3 a::after { content: " \2192"; color: #86efac; transition: margin-left .25s; }
.tdb-lp-cards .iconbox:hover h3 a::after { margin-left: 4px; }

/* Related AI services (internal links) */
.tdb-related { background: #fff; }
.tdb-related__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.tdb-related__list a {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	height: 100%;
	padding: 24px 56px 24px 24px;
	border: 1px solid #e3e8ef;
	border-radius: 16px;
	background: #fff;
	color: inherit;
	transition: border-color .25s, box-shadow .25s, transform .25s;
}
.tdb-related__list a:hover { border-color: #3ead3c; box-shadow: 0 18px 40px -26px rgba(10, 60, 35, .45); transform: translateY(-3px); }
.tdb-related__title { color: var(--tdb-ink, #0b1526); font-weight: 700; font-size: 1.05rem; }
.tdb-related__text { color: #6b7690; font-size: 14.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tdb-related__arrow {
	position: absolute; top: 22px; right: 22px;
	display: inline-flex; align-items: center; justify-content: center;
	width: 30px; height: 30px; border-radius: 50%;
	background: #effaf1; color: #23873a; font-weight: 700;
	transition: transform .25s;
}
.tdb-related__list a:hover .tdb-related__arrow { transform: translateX(3px); background: #3ead3c; color: #fff; }

/* =====================================================================
 * Dashboard showcase (tabs + KPI cards + task table)
 * =================================================================== */
.tdb-dash-section { background: #fff; }
.tdb-dash { max-width: 1180px; margin: 0 auto; }
.tdb-dash__tabs {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-bottom: 26px;
	padding: 6px;
	border: 1px solid #e6eaf0;
	border-radius: 14px;
	background: #fff;
	max-width: 100%;
}
.tdb-dash__tabs button {
	padding: 11px 20px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: #44506a;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	transition: background-color .2s, color .2s;
}
.tdb-dash__tabs button:hover { color: var(--tdb-ink, #0b1526); }
.tdb-dash__tabs button[aria-selected="true"] { background: #f1f4f8; color: var(--tdb-ink, #0b1526); box-shadow: 0 0 0 1px #e3e8ef inset; }
.tdb-dash__panel {
	overflow: hidden;
	border: 1px solid #e6eaf0;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 30px 70px -45px rgba(10, 30, 60, .35);
	animation: tdb-fade .45s cubic-bezier(.16, 1, .3, 1);
}
@keyframes tdb-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tdb-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid #edf0f4; }
.tdb-kpi { padding: 26px 26px 18px; border-right: 1px solid #edf0f4; }
.tdb-kpi:last-child { border-right: 0; }
.tdb-kpi__label { margin: 0 0 6px; color: #7a8399; font-size: 15px; }
.tdb-kpi__value { margin: 0; color: var(--tdb-ink, #0b1526); font-family: var(--ai-display, inherit); font-size: clamp(1.8rem, 1.4rem + 1vw, 2.4rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }
.tdb-kpi__note { margin: 4px 0 0; font-size: 15px; font-weight: 500; }
.tdb-kpi--up .tdb-kpi__note { color: #2f9e3a; }
.tdb-kpi--down .tdb-kpi__note { color: #0e9488; }
.tdb-kpi__spark { display: block; width: 100%; height: 64px; margin-top: 14px; overflow: visible; }
.tdb-kpi__line { fill: none; stroke-width: 2.2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.tdb-kpi--up .tdb-kpi__line { stroke: #3ead3c; }
.tdb-kpi--down .tdb-kpi__line { stroke: #0ea5a4; }
.tdb-kpi--up .tdb-kpi__area { fill: rgba(62, 173, 60, .12); }
.tdb-kpi--down .tdb-kpi__area { fill: rgba(14, 165, 164, .10); }
.tdb-kpi--up circle { fill: #3ead3c; }
.tdb-kpi--down circle { fill: #0ea5a4; }
.tdb-kpi__line { stroke-dasharray: 400; stroke-dashoffset: 400; animation: tdb-draw 1.6s .2s cubic-bezier(.16, 1, .3, 1) forwards; }
@keyframes tdb-draw { to { stroke-dashoffset: 0; } }

.tdb-dash__table-wrap { overflow-x: auto; padding: 8px 26px 18px; }
.tdb-dash__table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 16px; }
.tdb-dash__table th { padding: 16px 12px; color: #7a8399; font-weight: 500; text-align: left; border-bottom: 1px solid #edf0f4; }
.tdb-dash__table td { padding: 18px 12px; color: var(--tdb-ink, #0b1526); border-bottom: 1px solid #f0f2f6; white-space: nowrap; }
.tdb-dash__table tr:last-child td { border-bottom: 0; }
.tdb-dash__table tr.is-running td { background: #f3fbf5; }
.tdb-dash__muted { color: #7a8399 !important; }
.tdb-dash__agent { display: inline-flex; align-items: center; gap: 10px; }
.tdb-dash__avatar {
	display: inline-flex; align-items: center; justify-content: center;
	width: 30px; height: 30px; border-radius: 8px;
	background: linear-gradient(135deg, #d9f5e0, #d5f3f5);
	color: #23873a; font-weight: 700; font-size: 13px;
}
.tdb-dash__status { color: #2f9e3a; font-weight: 600; }
.tdb-dash__status.is-running { color: #0e9488; }
.tdb-dash__status.is-running::after { content: ""; display: inline-block; width: 1.2em; text-align: left; animation: tdb-dots 1.4s steps(4) infinite; }
@keyframes tdb-dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.tdb-dash__note { margin: 14px 0 0; color: #8b93ad; font-size: 13px; text-align: right; }

@media (max-width: 991px) {
	.tdb-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tdb-kpi:nth-child(2n) { border-right: 0; }
	.tdb-kpi:nth-child(-n+2) { border-bottom: 1px solid #edf0f4; }
}
@media (max-width: 480px) {
	.tdb-dash__tabs { display: flex; overflow-x: auto; flex-wrap: nowrap; }
	.tdb-dash__tabs button { white-space: nowrap; padding: 10px 14px; }
	.tdb-kpi { padding: 18px 16px 12px; }
}
@media (prefers-reduced-motion: reduce) {
	.tdb-kpi__line { animation: none; stroke-dashoffset: 0; }
	.tdb-dash__panel { animation: none; }
}

/* =====================================================================
 * Homepage AI hero
 * =================================================================== */
.tdb-hero--home { min-height: min(100vh, 920px); }
.tdb-hero--home .tdb-hero__inner { grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); }
.tdb-hero--home .tdb-hero__title { font-size: clamp(2.4rem, 1.5rem + 3.4vw, 4.4rem); }
.tdb-hl--dark {
	background: linear-gradient(100deg, #6ee77a, #2dd4bf 60%, #22d3ee);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.tdb-btn--glass {
	gap: 8px;
	border: 1px solid rgba(255, 255, 255, .22);
	background: rgba(255, 255, 255, .06);
	color: #fff !important;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}
.tdb-btn--glass:hover { border-color: #86efac; background: rgba(255, 255, 255, .1); transform: translateY(-1px); }
.tdb-proof {
	position: relative;
	display: grid;
	gap: 16px;
	justify-items: end;
	margin: 0;
	padding: 0;
	list-style: none;
}
.tdb-proof__card {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 240px;
	padding: 18px 22px;
	border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, .18);
	background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
	box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 24px 50px -28px rgba(0, 0, 0, .8);
	-webkit-backdrop-filter: blur(18px) saturate(160%);
	backdrop-filter: blur(18px) saturate(160%);
	animation: tdb-float 7s ease-in-out infinite;
	animation-delay: calc(var(--i, 0) * -2.3s);
}
.tdb-proof__card:nth-child(2) { margin-right: 60px; }
.tdb-proof__card strong {
	font-family: var(--ai-display, inherit);
	font-size: 1.9rem;
	font-weight: 700;
	line-height: 1.1;
	background: linear-gradient(100deg, #86efac, #5eead4);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.tdb-proof__card span { color: rgba(226, 232, 240, .85); font-size: 15px; }
@keyframes tdb-float { 50% { transform: translateY(-10px); } }

.tdb-home-ai__more { margin: 10px 0 0; text-align: center; }

@media (max-width: 991px) {
	.tdb-hero--home .tdb-hero__inner { grid-template-columns: 1fr; }
	.tdb-proof { justify-items: stretch; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
	.tdb-proof__card { min-width: 0; animation: none; }
	.tdb-proof__card:nth-child(2) { margin-right: 0; }
}
@media (prefers-reduced-motion: reduce) { .tdb-proof__card { animation: none; } }
@media (max-width: 575px) {
	.tdb-proof { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
	.tdb-proof__card { padding: 12px 10px; border-radius: 12px; text-align: center; }
	.tdb-proof__card strong { font-size: 1.1rem; }
	.tdb-proof__card span { font-size: 11.5px; line-height: 1.35; }
}

/* =====================================================================
 * AI & Python technology stack (inc/ai-tech-stack.php)
 * =================================================================== */
.tdb-stack {
	padding: clamp(64px, 8vw, 110px) 0;
	background:
		radial-gradient(40% 50% at 0% 0%, rgba(62, 173, 60, .07), transparent 70%),
		radial-gradient(40% 50% at 100% 100%, rgba(34, 211, 238, .07), transparent 70%),
		#f7f8fc;
}
.tdb-stack__wrap {
	display: grid;
	grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
	gap: clamp(20px, 3vw, 40px);
	max-width: 1180px;
	margin: 0 auto;
}
.tdb-stack__tabs { display: flex; flex-direction: column; gap: 4px; }
.tdb-stack__tabs button {
	padding: 12px 16px;
	border: 0;
	border-radius: 12px;
	background: transparent;
	color: #44506a;
	font-size: 15.5px;
	font-weight: 500;
	text-align: left;
	cursor: pointer;
	transition: background-color .2s, color .2s, box-shadow .2s;
}
.tdb-stack__tabs button:hover { background: rgba(255, 255, 255, .7); color: var(--tdb-ink, #0b1526); }
.tdb-stack__tabs button[aria-selected="true"] {
	background: #fff;
	color: var(--tdb-ink, #0b1526);
	font-weight: 600;
	box-shadow: 0 0 0 1px #e3e8ef, 0 10px 24px -16px rgba(10, 60, 35, .4);
}
.tdb-stack__tabs button[aria-selected="true"]::before {
	content: "";
	display: inline-block;
	width: 7px; height: 7px;
	margin-right: 10px;
	border-radius: 50%;
	background: #3ead3c;
	vertical-align: 2px;
}
.tdb-stack__panel {
	padding: clamp(22px, 3vw, 34px);
	border: 1px solid #e3e8ef;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 30px 60px -45px rgba(10, 30, 60, .35);
	animation: tdb-fade .4s cubic-bezier(.16, 1, .3, 1);
}
.tdb-stack__title { margin: 0 0 6px; font-size: 1.35rem; }
.tdb-stack__intro { margin: 0 0 22px; color: #6b7690; }
.tdb-stack__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.tdb-stack__list li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid #edf0f4;
	border-radius: 12px;
	color: var(--tdb-ink, #0b1526);
	font-weight: 500;
	font-size: 15px;
	transition: border-color .2s, transform .2s, box-shadow .2s;
}
.tdb-stack__list li::marker { content: none; }
.tdb-stack__list li:hover { border-color: #b9e6c3; transform: translateY(-2px); box-shadow: 0 12px 26px -18px rgba(10, 60, 35, .45); }
.tdb-stack__mono {
	display: inline-flex; align-items: center; justify-content: center;
	flex: none;
	width: 32px; height: 32px;
	border-radius: 9px;
	background: linear-gradient(135deg, #e3f7e8, #dcf5f7);
	color: #23873a;
	font-weight: 700;
	font-size: 14px;
}
@media (max-width: 860px) {
	.tdb-stack__wrap { grid-template-columns: 1fr; }
	.tdb-stack__tabs { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
	.tdb-stack__tabs button { white-space: nowrap; }
}
@media (max-width: 575px) {
	.tdb-stack__list { grid-template-columns: 1fr 1fr; gap: 8px; }
	.tdb-stack__list li { padding: 10px; gap: 8px; font-size: 13.5px; }
	.tdb-stack__mono { width: 26px; height: 26px; font-size: 12px; }
}

/* =====================================================================
 * Animated AI agent workflow (inc/ai-agent-loop.php)
 * =================================================================== */
.tdb-loop {
	position: relative;
	overflow: hidden;
	padding: clamp(64px, 8vw, 110px) 0 clamp(56px, 7vw, 96px);
	color: #fff;
	background:
		radial-gradient(50% 60% at 50% 0%, rgba(62, 173, 60, .16), transparent 70%),
		radial-gradient(40% 50% at 100% 100%, rgba(34, 211, 238, .10), transparent 70%),
		#060913;
}
.tdb-loop .tdb-lp-head h2 { color: #fff !important; }
.tdb-loop .tdb-lp-head p { color: rgba(226, 232, 240, .8); }
.tdb-loop .tdb-lp-head h6 { color: #86efac; border-color: rgba(134, 239, 172, .3); background: rgba(62, 173, 60, .1); }

.tdb-loop__flow {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}
.tdb-loop__step {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 0 10px;
	text-align: center;
	list-style: none;
}
.tdb-loop__step::marker { content: none; }
.tdb-loop__node {
	position: relative;
	z-index: 2;
	display: inline-flex; align-items: center; justify-content: center;
	width: 76px; height: 76px;
	border-radius: 22px;
	color: #86efac;
	background: linear-gradient(160deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .03));
	border: 1px solid rgba(134, 239, 172, .22);
	box-shadow: 0 1px 0 rgba(255, 255, 255, .15) inset, 0 20px 40px -24px rgba(0, 0, 0, .9);
	transition: transform .5s cubic-bezier(.16, 1, .3, 1), box-shadow .5s, border-color .5s, color .5s, background .5s;
}
.tdb-loop__step.is-agent .tdb-loop__node {
	color: #fff;
	background: linear-gradient(140deg, #3ead3c, #0ea5a4);
	border-color: transparent;
	box-shadow: 0 0 0 6px rgba(62, 173, 60, .15), 0 18px 40px -12px rgba(62, 173, 60, .7);
}
.tdb-loop__step.is-active .tdb-loop__node {
	transform: translateY(-6px) scale(1.06);
	color: #fff;
	border-color: rgba(134, 239, 172, .8);
	box-shadow: 0 0 0 6px rgba(62, 173, 60, .18), 0 0 34px rgba(62, 173, 60, .55);
}
.tdb-loop__name { font-family: var(--ai-display, inherit); font-weight: 700; font-size: 1.1rem; color: #fff; }
.tdb-loop__text { max-width: 180px; color: rgba(203, 213, 225, .78); font-size: 14px; line-height: 1.5; transition: color .4s; }
.tdb-loop__step.is-active .tdb-loop__text { color: #e2e8f0; }

/* connectors with a travelling pulse */
.tdb-loop__link {
	position: absolute;
	z-index: 1;
	top: 38px;
	left: calc(50% + 46px);
	right: calc(-50% + 46px);
	height: 2px;
	border-radius: 2px;
	background: rgba(134, 239, 172, .18);
	overflow: hidden;
}
.tdb-loop__link i {
	position: absolute;
	top: 0; left: -40%;
	width: 40%; height: 100%;
	background: linear-gradient(90deg, transparent, #86efac, #22d3ee);
	animation: tdb-pulse-run 2.4s linear infinite;
	animation-delay: calc(var(--i, 0) * .4s);
}
.tdb-loop__link::after {
	content: "";
	position: absolute;
	right: 0; top: -3px;
	border: 4px solid transparent;
	border-left-color: rgba(134, 239, 172, .55);
}
@keyframes tdb-pulse-run { to { left: 100%; } }

/* return path: Learn -> back to Understand */
.tdb-loop__return {
	position: relative;
	height: 54px;
	margin: 18px calc(100% / 12) 0 calc(100% * 3 / 12);
	border: 2px dashed rgba(134, 239, 172, .28);
	border-top: 0;
	border-radius: 0 0 28px 28px;
}
.tdb-loop__return::before {
	content: "";
	position: absolute;
	left: -7px; top: -6px;
	border: 6px solid transparent;
	border-bottom-color: rgba(134, 239, 172, .6);
}
.tdb-loop__return span {
	position: absolute;
	left: 50%; bottom: -12px;
	transform: translateX(-50%);
	padding: 2px 14px;
	border-radius: 999px;
	background: #0a1222;
	border: 1px solid rgba(134, 239, 172, .25);
	color: #86efac;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	white-space: nowrap;
}

@media (max-width: 991px) {
	.tdb-loop__flow { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
	.tdb-loop__step:nth-child(3) .tdb-loop__link { display: none; }
	.tdb-loop__return { display: none; }
}
@media (max-width: 575px) {
	.tdb-loop__flow { grid-template-columns: 1fr; row-gap: 0; max-width: 420px; margin: 0 auto; }
	.tdb-loop__step {
		display: grid;
		grid-template-columns: 64px 1fr;
		grid-template-rows: auto auto;
		column-gap: 16px;
		align-items: center;
		padding: 0 0 30px;
		text-align: left;
	}
	.tdb-loop__node { grid-row: span 2; width: 64px; height: 64px; border-radius: 18px; }
	.tdb-loop__text { max-width: none; }
	.tdb-loop__step:nth-child(3) .tdb-loop__link { display: block; }
	.tdb-loop__link { top: 66px; bottom: 2px; left: 31px; right: auto; width: 2px; height: auto; }
	.tdb-loop__link i { width: 100%; height: 40%; top: -40%; left: 0; background: linear-gradient(180deg, transparent, #86efac, #22d3ee); animation-name: tdb-pulse-down; }
	.tdb-loop__link::after { display: none; }
}
@keyframes tdb-pulse-down { to { top: 100%; } }
@media (prefers-reduced-motion: reduce) {
	.tdb-loop__link i { animation: none; display: none; }
	.tdb-loop__node { transition: none; }
}

/* =====================================================================
 * Homepage: animated AI agent console + proof row
 * =================================================================== */
.tdb-hero--home { flex-direction: column; justify-content: center; align-items: stretch; }
.tdb-hero--home .tdb-hero__visual { opacity: .55; right: -12%; }
.tdb-console {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 480px;
	margin-left: auto;
	border-radius: 18px;
	background: rgba(255, 255, 255, .92);
	border: 1px solid #e3e8ef;
	box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 40px 80px -40px rgba(11, 21, 38, .45);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
	overflow: hidden;
	font-size: 14.5px;
	color: #1f2a3c;
}
.tdb-console__bar {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	border-bottom: 1px solid #eef1f5;
	background: #fbfcfd;
}
.tdb-console__dots { display: inline-flex; gap: 6px; }
.tdb-console__dots i { width: 10px; height: 10px; border-radius: 50%; background: #e2e6ec; }
.tdb-console__title { font-weight: 700; color: #0b1526; }
.tdb-console__live {
	margin-left: auto;
	display: inline-flex; align-items: center; gap: 6px;
	padding: 3px 10px;
	border-radius: 999px;
	background: #effaf1;
	color: #23873a;
	font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.tdb-console__live i { width: 7px; height: 7px; border-radius: 50%; background: #3ead3c; animation: tdb-pulse 1.8s ease-in-out infinite; }
.tdb-console__body { padding: 18px; display: grid; gap: 14px; }
.tdb-console__msg {
	display: flex; align-items: flex-start; gap: 10px;
	padding: 12px 14px;
	border-radius: 12px;
	background: #f4f6f9;
	min-height: 46px;
}
.tdb-console__you {
	flex: none;
	padding: 2px 8px;
	border-radius: 6px;
	background: #0b1526;
	color: #fff;
	font-size: 11.5px; font-weight: 700;
}
.tdb-console__typed::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: #3ead3c; animation: tdb-blink 1s steps(1) infinite; }
.tdb-console__steps { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tdb-console__steps li {
	display: flex; align-items: center; gap: 10px;
	padding: 9px 12px;
	border: 1px solid #eef1f5;
	border-radius: 10px;
	color: #8b93a7;
	opacity: .45;
	transform: translateY(4px);
	transition: opacity .35s, transform .35s, color .35s, border-color .35s, background .35s;
	list-style: none;
}
.tdb-console__steps li::marker { content: none; }
.tdb-console__state {
	flex: none;
	width: 18px; height: 18px;
	border-radius: 50%;
	border: 2px solid #d5dbe3;
}
.tdb-console__steps li.is-running { opacity: 1; transform: none; color: #0b1526; border-color: #cdeed4; background: #f6fcf8; }
.tdb-console__steps li.is-running .tdb-console__state { border-color: #3ead3c; border-right-color: transparent; animation: tdb-spin .8s linear infinite; }
.tdb-console__steps li.is-done { opacity: 1; transform: none; color: #1f2a3c; }
.tdb-console__steps li.is-done .tdb-console__state {
	border-color: #3ead3c;
	background: #3ead3c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6L20.1 8.4 18.7 7z'/%3E%3C/svg%3E") center / 12px no-repeat;
}
@keyframes tdb-spin { to { transform: rotate(360deg); } }
.tdb-console__tools { display: flex; flex-wrap: wrap; gap: 8px; }
.tdb-console__tools span {
	padding: 5px 11px;
	border-radius: 999px;
	border: 1px solid #e6eaf0;
	color: #6b7690;
	font-size: 12.5px; font-weight: 600;
	transition: all .3s;
}
.tdb-console__tools span.is-on { border-color: #3ead3c; background: #effaf1; color: #23873a; box-shadow: 0 0 0 4px rgba(62, 173, 60, .12); }
.tdb-console__done {
	padding: 10px 14px;
	border-radius: 10px;
	background: linear-gradient(110deg, #effaf1, #e9f8f9);
	color: #2f3a4f;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity .4s, transform .4s;
}
.tdb-console__done b { color: #23873a; }
.tdb-console.is-complete .tdb-console__done { opacity: 1; transform: none; }

.tdb-proof-row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
	margin: clamp(40px, 5vw, 64px) 0 0;
	padding: 22px 0 0;
	border-top: 1px solid #e6eaf0;
	list-style: none;
	position: relative;
	z-index: 2;
}
.tdb-proof-row li { display: flex; flex-direction: column; gap: 2px; padding-right: 24px; list-style: none; }
.tdb-proof-row li::marker { content: none; }
.tdb-proof-row li + li { padding-left: 24px; border-left: 1px solid #e6eaf0; }
.tdb-proof-row strong {
	font-family: var(--ai-display, inherit);
	font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem);
	line-height: 1.15;
	background: linear-gradient(100deg, #23873a, #0e9488);
	-webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.tdb-proof-row span { color: #6b7690; font-size: 15px; }
@media (max-width: 991px) {
	.tdb-console { margin: 8px auto 0; }
}
@media (max-width: 575px) {
	.tdb-proof-row { grid-template-columns: 1fr; gap: 14px; }
	.tdb-proof-row li + li { padding-left: 0; border-left: 0; }
	.tdb-console { font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
	.tdb-console__steps li { opacity: 1; transform: none; }
}

/* =====================================================================
 * Integrations orbit (inc/ai-integrations.php)
 * =================================================================== */
.tdb-orbit-section {
	overflow: hidden;
	padding: var(--section-y, 100px) 0;
	background:
		radial-gradient(45% 60% at 80% 50%, rgba(16, 185, 129, .10), transparent 70%),
		#fff;
}
.tdb-orbit-section__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(32px, 6vw, 96px);
	align-items: center;
}
.tdb-orbit-section__copy h2 { margin: 0 0 16px; }
.tdb-orbit-section__copy > p:not(.tdb-chip) { max-width: 52ch; font-size: var(--fs-lead, 1.15rem); color: #44506a; }
.tdb-orbit-section__list { display: grid; gap: 10px; margin: 22px 0 30px; padding: 0; list-style: none; }
.tdb-orbit-section__list li { position: relative; padding-left: 30px; color: #2f3a4f; list-style: none; }
.tdb-orbit-section__list li::marker { content: none; }
.tdb-orbit-section__list li::before {
	content: "";
	position: absolute; left: 0; top: .3em;
	width: 18px; height: 18px; border-radius: 50%;
	background: #e3f7e8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2323873a' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6L20.1 8.4 18.7 7z'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.tdb-orbit {
	position: relative;
	width: min(520px, 100%);
	aspect-ratio: 1;
	margin: 0 auto;
}
.tdb-orbit__ring {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 1.5px dashed rgba(62, 173, 60, .3);
	animation: tdb-orbit-spin 60s linear infinite;
}
.tdb-orbit__ring--inner { inset: 22%; border-color: rgba(14, 148, 136, .3); animation-duration: 40s; animation-direction: reverse; }
.tdb-orbit__item {
	position: absolute;
	top: 50%; left: 50%;
	width: 0; height: 0;
	transform: rotate(calc(360deg / var(--n) * var(--i))) translateY(-260px);
}
.tdb-orbit__ring--inner .tdb-orbit__item { transform: rotate(calc(360deg / var(--n) * var(--i) + 45deg)) translateY(-145px); }
.tdb-orbit__item b {
	position: absolute;
	left: 50%; top: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	padding: 9px 15px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid #e3e8ef;
	box-shadow: 0 12px 28px -16px rgba(11, 21, 38, .35);
	color: #1f2a3c;
	font-size: 14px; font-weight: 600;
	white-space: nowrap;
	/* undo the ring + item rotation so labels stay upright */
	transform: translate(-50%, -50%) rotate(calc(-360deg / var(--n) * var(--i)));
	animation: tdb-orbit-counter 60s linear infinite;
}
.tdb-orbit__ring--inner .tdb-orbit__item b {
	transform: translate(-50%, -50%) rotate(calc(-360deg / var(--n) * var(--i) - 45deg));
	animation: tdb-orbit-counter-inner 40s linear infinite;
	border-color: #cdeed4;
	color: #23873a;
}
@keyframes tdb-orbit-spin { to { transform: rotate(360deg); } }
@keyframes tdb-orbit-counter { from { rotate: 0deg; } to { rotate: -360deg; } }
@keyframes tdb-orbit-counter-inner { from { rotate: 0deg; } to { rotate: 360deg; } }
.tdb-orbit__core {
	position: absolute;
	inset: 39%;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
	border-radius: 50%;
	background: linear-gradient(140deg, #3ead3c, #0ea5a4);
	color: #fff;
	font-weight: 700; font-size: 14px;
	box-shadow: 0 0 0 10px rgba(62, 173, 60, .12), 0 0 0 22px rgba(62, 173, 60, .06), 0 24px 50px -18px rgba(14, 148, 136, .7);
	animation: tdb-core 3.2s ease-in-out infinite;
}
@keyframes tdb-core { 50% { box-shadow: 0 0 0 14px rgba(62, 173, 60, .14), 0 0 0 30px rgba(62, 173, 60, .05), 0 24px 50px -18px rgba(14, 148, 136, .7); } }

@media (max-width: 991px) {
	.tdb-orbit-section__inner { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
	.tdb-orbit { width: 340px; }
	.tdb-orbit__item { transform: rotate(calc(360deg / var(--n) * var(--i))) translateY(-170px); }
	.tdb-orbit__ring--inner .tdb-orbit__item { transform: rotate(calc(360deg / var(--n) * var(--i) + 45deg)) translateY(-95px); }
	.tdb-orbit__item b { padding: 6px 10px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
	.tdb-orbit__ring, .tdb-orbit__item b, .tdb-orbit__core { animation: none; }
}
.tdb-hero--home .tdb-hero__visual {
	opacity: .5;
	-webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 85%);
	mask-image: linear-gradient(180deg, #000 55%, transparent 85%);
}

/* =====================================================================
 * How AI agents work (inc/ai-agent-loop.php) — light, 3-column pipeline
 * =================================================================== */
.tdb-how {
	position: relative;
	padding: var(--section-y, 100px) 0;
	background:
		radial-gradient(50% 50% at 50% 0%, rgba(62, 173, 60, .08), transparent 70%),
		linear-gradient(180deg, #fff, #f7faf9);
	border-bottom: 1px solid #e6eaf0;
}
.tdb-how__grid {
	display: grid;
	grid-template-columns: minmax(170px, 1fr) minmax(0, 2.4fr) minmax(170px, 1fr);
	gap: clamp(20px, 3vw, 40px);
	align-items: center;
}
.tdb-how__side-title { margin: 0 0 14px; font-size: 13px !important; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #6b7690 !important; }
.tdb-how__side ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tdb-how__side li {
	position: relative;
	display: flex; align-items: center; gap: 10px;
	padding: 10px 14px;
	border: 1px solid #e3e8ef;
	border-radius: 12px;
	background: #fff;
	color: #1f2a3c;
	font-weight: 600; font-size: 14.5px;
	box-shadow: 0 8px 20px -16px rgba(11, 21, 38, .35);
	list-style: none;
	transition: border-color .35s, background .35s, color .35s, box-shadow .35s;
}
.tdb-how__side li::marker { content: none; }
.tdb-how__side li span { flex: 1; }
/* data flowing in (left) / out (right) */
.tdb-how__side li i {
	position: absolute;
	top: 50%;
	width: clamp(20px, 3vw, 40px);
	height: 2px;
	background: linear-gradient(90deg, rgba(62, 173, 60, .15), rgba(62, 173, 60, .5));
	overflow: hidden;
}
.tdb-how__side--in li i { left: 100%; }
.tdb-how__side--out li i { right: 100%; transform: scaleX(-1); }
.tdb-how__side li i::after {
	content: "";
	position: absolute; top: -2px; left: -8px;
	width: 6px; height: 6px; border-radius: 50%;
	background: #3ead3c;
	box-shadow: 0 0 8px #3ead3c;
	animation: tdb-flow 1.8s linear infinite;
	animation-delay: calc(var(--i, 0) * .3s);
}
@keyframes tdb-flow { to { left: 100%; } }
.tdb-how__side--out.is-live li { border-color: #3ead3c; background: #f3fbf5; color: #1b6e2f; box-shadow: 0 0 0 4px rgba(62, 173, 60, .1); }

.tdb-how__steps {
	position: relative;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 22px;
	border-radius: 24px;
	border: 1px solid #e3e8ef;
	background: rgba(255, 255, 255, .8);
	box-shadow: 0 40px 80px -50px rgba(11, 21, 38, .35);
	list-style: none;
}
.tdb-how__step {
	position: relative;
	display: flex; flex-direction: column; gap: 6px;
	padding: 20px 18px 18px;
	border: 1px solid #edf0f4;
	border-radius: 16px;
	background: #fff;
	list-style: none;
	transition: border-color .45s, box-shadow .45s, transform .45s cubic-bezier(.16, 1, .3, 1);
}
.tdb-how__step::marker, .tdb-how__loop::marker { content: none; }
.tdb-how__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px;
	border-radius: 12px;
	background: #effaf1;
	color: #23873a;
	transition: background .45s, color .45s;
}
.tdb-how__num { position: absolute; top: 18px; right: 18px; font-family: var(--ai-display, inherit); font-weight: 700; font-size: 13px; color: #b6bfcc; }
.tdb-how__name { margin: 8px 0 0 !important; font-size: 1.15rem !important; color: #0b1526 !important; }
.tdb-how__text { margin: 0 !important; font-size: 14.5px !important; line-height: 1.55 !important; color: #5b6576 !important; }
.tdb-how__step.is-active {
	border-color: #3ead3c;
	transform: translateY(-4px);
	box-shadow: 0 0 0 5px rgba(62, 173, 60, .12), 0 22px 40px -24px rgba(10, 60, 35, .45);
}
.tdb-how__step.is-active .tdb-how__icon { background: linear-gradient(140deg, #3ead3c, #0ea5a4); color: #fff; }
.tdb-how__step.is-active .tdb-how__num { color: #3ead3c; }
/* arrows between steps (row-wise) */
.tdb-how__step:not(:nth-child(3n))::after {
	content: "";
	position: absolute;
	right: -13px; top: 40px;
	width: 10px; height: 10px;
	border-top: 2px solid #b9e6c3;
	border-right: 2px solid #b9e6c3;
	transform: rotate(45deg);
}
.tdb-how__loop {
	grid-column: 1 / -1;
	position: relative;
	height: 34px;
	margin-top: -4px;
	border: 2px dashed rgba(62, 173, 60, .35);
	border-top: 0;
	border-radius: 0 0 22px 22px;
	list-style: none;
}
.tdb-how__loop span {
	position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%);
	padding: 2px 12px; border-radius: 999px;
	background: #fff; border: 1px solid #cdeed4;
	color: #23873a; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}

@media (max-width: 1100px) {
	.tdb-how__grid { grid-template-columns: 1fr; }
	.tdb-how__side ul { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
	.tdb-how__side li i { display: none; }
}
@media (max-width: 767px) {
	.tdb-how__steps { grid-template-columns: 1fr; padding: 14px; }
	.tdb-how__step::after { display: none; }
	.tdb-how__step:not(:last-of-type)::before {
		content: "";
		position: absolute; left: 39px; bottom: -17px;
		width: 2px; height: 16px; background: #b9e6c3;
	}
	.tdb-how__loop { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.tdb-how__side li i::after { animation: none; display: none; }
}
@media (min-width: 1101px) {
	.tdb-how__grid { grid-template-columns: 190px minmax(0, 1fr) 190px; gap: 28px; }
	.tdb-how__side li i { width: 28px; }
}

/* =====================================================================
 * What we build (agent categories) + Agent Library
 * =================================================================== */
.tdb-build, .tdb-library { padding: var(--section-y, 100px) 0; background: #fff; }
.tdb-build__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.tdb-build__card {
	display: flex; flex-direction: column;
	padding: clamp(24px, 3vw, 34px);
	border: 1px solid #e6eaf0;
	border-radius: 20px;
	background: linear-gradient(180deg, #fff, #fbfdfc);
	box-shadow: 0 30px 60px -48px rgba(11, 21, 38, .4);
	transition: border-color .3s, box-shadow .3s, transform .3s;
}
.tdb-build__card:hover { border-color: #b9e6c3; transform: translateY(-3px); box-shadow: 0 34px 60px -40px rgba(10, 60, 35, .45); }
.tdb-build__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; flex: none;
	border-radius: 14px;
	background: linear-gradient(140deg, #3ead3c, #0ea5a4);
	color: #fff;
	box-shadow: 0 12px 24px -12px rgba(14, 148, 136, .7);
}
.tdb-build__card h3 { margin: 18px 0 8px !important; font-size: 1.4rem !important; }
.tdb-build__card > p { margin: 0 0 18px !important; color: #5b6576; font-size: 15.5px; }
.tdb-build__agents { display: grid; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.tdb-build__agents li { display: grid; gap: 1px; padding: 0 0 10px 18px; border-bottom: 1px dashed #e6eaf0; position: relative; list-style: none; }
.tdb-build__agents li::marker { content: none; }
.tdb-build__agents li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: #3ead3c; }
.tdb-build__agents b { color: #0b1526; font-size: 15.5px; }
.tdb-build__agents span { color: #6b7690; font-size: 14px; }
.tdb-build__more { margin-top: auto; color: #23873a; font-weight: 700; font-size: 15px; }
.tdb-build__more:hover { color: #1b6e2f; }

/* Animated process flow chips: Sales -> Production -> ... */
.tdb-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 18px; }
.tdb-flow span {
	position: relative;
	padding: 6px 12px;
	border-radius: 999px;
	border: 1px solid #cdeed4;
	background: #f3fbf5;
	color: #23873a;
	font-size: 13px; font-weight: 700;
	animation: tdb-flow-chip 6s ease-in-out infinite;
	animation-delay: calc(var(--i, 0) * .8s);
}
.tdb-flow span:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 50%; transform: translateY(-50%); color: #9bd6a8; font-weight: 700; }
.tdb-flow span:not(:last-child) { margin-right: 10px; }
@keyframes tdb-flow-chip {
	0%, 10% { background: #3ead3c; color: #fff; border-color: #3ead3c; box-shadow: 0 6px 16px -8px rgba(62, 173, 60, .8); }
	20%, 100% { background: #f3fbf5; color: #23873a; border-color: #cdeed4; box-shadow: none; }
}

.tdb-library__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 clamp(36px, 5vw, 56px); }
.tdb-library__nav a {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 10px 18px; border-radius: 999px;
	border: 1px solid #e3e8ef; background: #fff;
	color: #1f2a3c; font-weight: 600; font-size: 15px;
}
.tdb-library__nav a span { padding: 1px 8px; border-radius: 999px; background: #effaf1; color: #23873a; font-size: 12.5px; }
.tdb-library__nav a:hover { border-color: #3ead3c; }
.tdb-library__cat { padding-top: 24px; margin-bottom: clamp(40px, 5vw, 64px); scroll-margin-top: 110px; }
.tdb-library__cat-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.tdb-library__cat-head h3 { margin: 0 0 4px !important; font-size: 1.6rem !important; }
.tdb-library__cat-head p { margin: 0 !important; color: #5b6576; max-width: 70ch; }
.tdb-library__industry { margin: 0 0 22px; padding: 16px 18px; border-radius: 14px; background: #f6fbf8; border: 1px solid #e3f2e7; }
.tdb-library__industry .tdb-flow { margin: 0 0 10px; }
.tdb-library__industries { margin: 0 !important; color: #44506a; font-size: 15px; }
.tdb-library__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.tdb-agent-card {
	padding: 22px;
	border: 1px solid #e6eaf0;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 20px 40px -36px rgba(11, 21, 38, .45);
	transition: border-color .3s, transform .3s, box-shadow .3s;
}
.tdb-agent-card:hover { border-color: #b9e6c3; transform: translateY(-3px); box-shadow: 0 26px 44px -30px rgba(10, 60, 35, .45); }
.tdb-agent-card header { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.tdb-agent-card__avatar {
	display: inline-flex; align-items: center; justify-content: center; flex: none;
	width: 40px; height: 40px; border-radius: 12px;
	background: linear-gradient(135deg, #e3f7e8, #dcf5f7); color: #23873a; font-weight: 800;
}
.tdb-agent-card h4 { margin: 0 0 2px !important; font-size: 1.08rem !important; color: #0b1526; }
.tdb-agent-card header p { margin: 0 !important; color: #23873a; font-size: 14px; font-weight: 600; }
.tdb-agent-card ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.tdb-agent-card li { position: relative; padding-left: 24px; color: #44506a; font-size: 14.5px; line-height: 1.5; list-style: none; }
.tdb-agent-card li::marker { content: none; }
.tdb-agent-card li::before {
	content: ""; position: absolute; left: 0; top: .25em;
	width: 16px; height: 16px; border-radius: 50%;
	background: #e3f7e8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2323873a' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6L20.1 8.4 18.7 7z'/%3E%3C/svg%3E") center / 11px no-repeat;
}
@media (max-width: 767px) { .tdb-build__grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .tdb-flow span { animation: none; } }

/* =====================================================================
 * Hero background animations (per page)
 * =================================================================== */
.tdb-hero__visual--full { left: 0; right: 0; width: auto; opacity: .7; }
.tdb-net-host { position: absolute; inset: 0; display: block; }
.tdb-net-host .tdb-neural { opacity: 1; }

/* Aurora: soft drifting colour fields */
.tdb-aurora { position: absolute; inset: 0; display: block; overflow: hidden; filter: blur(40px); }
.tdb-aurora i {
	position: absolute;
	width: 46%; aspect-ratio: 1;
	border-radius: 50%;
	opacity: .55;
	animation: tdb-aurora-move 16s ease-in-out infinite alternate;
}
.tdb-aurora i:nth-child(1) { left: 30%; top: 5%; background: radial-gradient(closest-side, rgba(62, 173, 60, .55), transparent); }
.tdb-aurora i:nth-child(2) { left: 52%; top: 35%; background: radial-gradient(closest-side, rgba(34, 211, 238, .5), transparent); animation-duration: 20s; animation-delay: -6s; }
.tdb-aurora i:nth-child(3) { left: 40%; top: 55%; background: radial-gradient(closest-side, rgba(16, 185, 129, .45), transparent); animation-duration: 24s; animation-delay: -12s; }
@keyframes tdb-aurora-move {
	0% { transform: translate(0, 0) scale(1); }
	50% { transform: translate(-12%, 8%) scale(1.2); }
	100% { transform: translate(10%, -6%) scale(.9); }
}

/* Pulsing grid: dots with a highlight wave sweeping across */
.tdb-gridfx {
	position: absolute; inset: 0; display: block;
	background-image: radial-gradient(rgba(35, 135, 58, .35) 1.4px, transparent 1.6px);
	background-size: 28px 28px;
	-webkit-mask-image: linear-gradient(100deg, transparent 0%, #000 25%, #000 75%, transparent 100%);
	mask-image: linear-gradient(100deg, transparent 0%, #000 25%, #000 75%, transparent 100%);
}
.tdb-gridfx::after {
	content: "";
	position: absolute; inset: 0;
	background-image: radial-gradient(rgba(14, 148, 136, .9) 1.8px, transparent 2px);
	background-size: 28px 28px;
	-webkit-mask-image: radial-gradient(circle 220px at var(--gx, 60%) 50%, #000, transparent 70%);
	mask-image: radial-gradient(circle 220px at var(--gx, 60%) 50%, #000, transparent 70%);
	animation: tdb-grid-sweep 7s ease-in-out infinite alternate;
}
@property --gx { syntax: '<percentage>'; inherits: false; initial-value: 60%; }
@keyframes tdb-grid-sweep { from { --gx: 35%; } to { --gx: 95%; } }
@media (prefers-reduced-motion: reduce) {
	.tdb-aurora i, .tdb-gridfx::after { animation: none; }
}
