/* Visual identity layer. Tokens live in main.css :root. */

body {
	font-size: 17px;
	line-height: 1.65;
	color: var(--color-text);
}

h1, h2, h3 {
	font-weight: 700;
}

:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 3px;
}

.btn--accent {
	background: var(--appforge-orange-strong);
	color: #fff;
	box-shadow: 0 8px 20px rgba(194, 65, 12, 0.22);
}

.btn--accent:hover {
	background: var(--appforge-orange-hover);
	color: #fff;
	transform: translateY(-2px);
}

.btn--accent:focus-visible,
.contact-form .wpcf7-submit:focus-visible,
.contact-form input[type="submit"]:focus-visible,
.contact-form button[type="submit"]:focus-visible,
.lead-form .btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
	box-shadow: 0 0 0 4px var(--appforge-navy);
}

.contact-form .wpcf7-submit,
.contact-form input[type="submit"],
.contact-form button[type="submit"],
.lead-form .btn {
	appearance: none;
	width: 100%;
	margin-top: 4px;
	padding: 16px 24px;
	border: 0;
	border-radius: var(--radius-md);
	background: var(--appforge-orange-strong);
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(194, 65, 12, 0.22);
	transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.contact-form .wpcf7-submit:hover,
.contact-form input[type="submit"]:hover,
.contact-form button[type="submit"]:hover,
.lead-form .btn:hover {
	background: var(--appforge-orange-hover);
	color: #fff;
	transform: translateY(-2px);
}

.site-header.is-scrolled {
	height: 76px;
}

.site-header.is-scrolled .site-brand__image,
.site-header.is-scrolled .custom-logo-link img {
	height: 56px;
	max-height: 56px;
}

.primary-nav__item--emphasis > a,
.primary-nav__item--emphasis .primary-nav__link {
	color: var(--color-accent);
	font-weight: 700;
}

.hero {
	min-height: auto;
	background:
		radial-gradient(ellipse at 85% 10%, rgba(249, 115, 22, 0.16), transparent 32%),
		radial-gradient(ellipse at 10% 80%, rgba(59, 130, 246, 0.22), transparent 36%),
		linear-gradient(160deg, var(--appforge-navy) 0%, var(--appforge-blue-deep) 72%, var(--appforge-blue) 140%);
	color: #fff;
}

.hero__grid {
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

.hero__glow--1 {
	background: rgba(249, 115, 22, 0.2);
}

.hero__glow--2 {
	background: rgba(59, 130, 246, 0.28);
}

.hero__badge {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.16);
	color: #e2e8f0;
	box-shadow: none;
}

.hero__badge-dot {
	background: var(--appforge-orange);
}

.hero__title,
.hero__subtitle {
	color: #fff;
}

.hero__subtitle {
	color: #cbd5e1;
}

.hero .btn--ghost {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.4);
	box-shadow: none;
}

.hero .btn--ghost:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	border-color: #fff;
}

.hero__products {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hero__product {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 16px 18px;
	background: var(--appforge-white);
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: var(--radius-lg);
	border-top: 3px solid var(--app-from, var(--color-accent));
	box-shadow: var(--shadow-md);
	color: var(--color-navy);
	text-decoration: none;
}

.hero__product:hover {
	color: var(--color-navy);
	transform: translateY(-2px);
}

.hero__product svg {
	width: 28px;
	height: 28px;
	flex: 0 0 auto;
	color: var(--app-from, var(--color-accent));
}

.hero__product strong,
.hero__product span {
	display: block;
}

.hero__product strong {
	font-size: 16px;
}

.hero__product span {
	margin-top: 4px;
	font-weight: 500;
	font-size: 14px;
	line-height: 1.45;
	color: var(--color-text-muted);
}

.section--tint {
	background: var(--appforge-light-blue);
}

.section--dark {
	background:
		radial-gradient(ellipse at 100% 0%, rgba(37, 99, 235, 0.28), transparent 42%),
		var(--appforge-navy);
	color: #e2e8f0;
}

.section--dark .section__title,
.section--dark .about__content p,
.section--dark .about__features li,
.section--dark .about__card-item strong {
	color: #fff;
}

.section--dark .section__label {
	color: #fdba74;
}

.section--dark .section__desc,
.section--dark .about__card-item p,
.section--dark .about__features {
	color: #cbd5e1;
}

.section--dark .about__card {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: none;
}

.apps-suite__grid--lead {
	margin-bottom: 20px;
}

.apps-suite__card--lead {
	border-top: 3px solid var(--app-accent, var(--color-accent));
}

.apps-suite__card--lead .apps-suite__name {
	font-size: 1.35rem;
}

.apps-suite__grid--rest {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.apps-suite__card,
.delivery__card,
.problems__card {
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
}

.apps-suite__card:hover,
.delivery__card:hover,
.problems__card:hover {
	transform: translateY(-2px);
}

.delivery .delivery__grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.delivery__card--saas {
	border-top: 3px solid var(--appforge-blue);
}

.delivery__card--onprem {
	border-top: 3px solid var(--appforge-orange);
}

.delivery__card ul {
	list-style: none;
	padding: 0;
}

.delivery__card li {
	position: relative;
	padding-left: 18px;
}

.delivery__card li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--appforge-blue);
}

.delivery__card--onprem li::before {
	background: var(--appforge-orange);
}

.cta-banner {
	padding: 80px 0;
	background:
		radial-gradient(ellipse at 0% 100%, rgba(249, 115, 22, 0.16), transparent 34%),
		linear-gradient(145deg, var(--appforge-navy), var(--appforge-blue-deep));
}

.cta-banner__inner {
	background: transparent;
	border: 0;
	color: #fff;
	box-shadow: none;
	padding: 0;
}

.cta-banner__inner h2,
.cta-banner__inner p {
	color: #fff;
}

.cta-banner__inner p {
	color: #cbd5e1;
}

.cta-banner .btn--ghost {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.4);
}

.cta-banner .btn--ghost:hover {
	color: #fff;
	border-color: #fff;
	background: rgba(255, 255, 255, 0.08);
}

.site-footer {
	background: var(--appforge-navy);
	border-top: 0;
	color: #cbd5e1;
}

.site-footer__grid {
	grid-template-columns: 1.3fr 1.1fr 0.9fr 0.8fr 0.8fr;
}

.site-footer__tagline {
	color: #fdba74;
}

.site-footer__desc,
.site-footer h4,
.footer-group__title,
.footer-menu a,
.footer-contact a,
.site-footer__bottom,
.site-footer__legal {
	color: #94a3b8;
}

.footer-menu a:hover,
.footer-contact a:hover {
	color: #fff;
}

.site-brand--footer {
	display: inline-flex;
	padding: 8px 12px;
	background: #fff;
	border-radius: 12px;
}

.site-footer__newsletter {
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(255, 255, 255, 0.08);
}

.site-footer__newsletter-text h4,
.site-footer__newsletter-text p {
	color: #e2e8f0;
}

.site-header {
	transition: height var(--transition), background var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.site-header.is-scrolled {
	--header-height: 76px;
}

body {
	overflow-x: hidden;
}

@media (max-width: 1024px) {
	.hero__visual {
		height: auto;
		order: 0;
	}

	.site-footer__grid,
	.delivery .delivery__grid,
	.apps-suite__grid--rest {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 768px) {
	.site-header,
	.site-header.is-scrolled {
		--header-height: 72px;
		height: 72px;
	}

	.site-brand__image,
	.site-brand .custom-logo-link img,
	.site-header.is-scrolled .site-brand__image,
	.site-header.is-scrolled .custom-logo-link img {
		height: 48px;
		max-height: 48px;
	}

	.apps-suite__grid--lead,
	.apps-suite__grid--rest,
	.site-footer__grid,
	.delivery .delivery__grid {
		grid-template-columns: 1fr;
	}

	.hero {
		padding-bottom: 48px;
	}

	.cta-banner__inner {
		padding: 36px 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation: none !important;
		transition: none !important;
	}
}
