/* ============================================================================
   MODERN LAYER (v4) — classic site + modernisation
   Loaded after the full classic stylesheet stack; everything is scoped to
   body.modern so the classic site is untouched. Brand anchors kept: navy
   #131239, teal #28D3B4, Nova Square display type, same layout + content.
   v4: buttons, page titles, timeline, FAQs, pricing boxes and the try-now
   forms revert to the classic design (user preference); CTA cards stay.
   ========================================================================= */

body.modern {
	--m-teal: #28d3b4;
	--m-blue: #4a63e7;
	--m-grad: linear-gradient(135deg, #28d3b4, #4a63e7);
	--m-surface: #191745;
	--m-surface-2: #151238;
	--m-line: rgba(126, 138, 255, .16);
	--m-line-teal: rgba(40, 211, 180, .45);
	--m-ink-2: #b9c0e4;
	--m-radius: 16px;
	--m-shadow: 0 18px 44px rgba(3, 2, 26, .5);
	text-rendering: optimizeLegibility;
}

/* --------------------------------------------------------------- header */
body.modern .header-area {
	transition: background .3s ease, padding .3s ease, box-shadow .3s ease;
}
body.modern .header-area.scrolled {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	padding: 12px 0;
	background: rgba(15, 14, 48, .84);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	box-shadow: 0 8px 30px rgba(3, 2, 26, .38);
	border-bottom: 1px solid var(--m-line);
	z-index: 1090;
	animation: mv-header-in .35s ease;
}
@keyframes mv-header-in {
	from { transform: translateY(-100%); }
	to   { transform: translateY(0); }
}
body.modern .header-area.scrolled .logo img { max-height: 44px; width: auto; }
body.modern .mainmenu ul li a { transition: color .2s ease; }
body.modern .mainmenu ul li > a:hover { color: var(--m-teal); }
body.modern .mainmenu .sub-menu {
	border: 1px solid var(--m-line);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: var(--m-shadow);
}
/* the theme draws its own dropdown arrow as an ::after on top of the inline
   caret icon — one arrow is enough */
body.modern .mainmenu ul li.menu-item-has-children > a::after { display: none !important; }

/* mobile drawer */
body.modern .sidebar-menu-wrapper {
	border-left: 1px solid var(--m-line);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
}

/* ------------------------------------------------------------ cards etc. */
body.modern .single-chooise-item {
	background: rgba(23, 21, 64, .55);
	border: none;
	border-radius: var(--m-radius);
	padding: 28px 20px;
	height: 100%;
	transition: transform .25s ease;
}
body.modern .single-chooise-item:hover { transform: translateY(-4px); }

body.modern .feature-img img,
body.modern .about-logo img {
	border-radius: 14px;
	border: 1px solid var(--m-line);
	box-shadow: 0 14px 40px rgba(3, 2, 26, .35);
}
body.modern .software-single-item {
	border: 1px solid var(--m-line);
	border-radius: var(--m-radius);
	transition: transform .25s ease, border-color .25s ease;
}
body.modern .software-single-item:hover { transform: translateY(-4px); border-color: var(--m-line-teal); }

/* home: heading moved above the feature cards; give the section below air */
body.modern .feauture-area { padding-top: 40px; }

/* carousel dots/arrows */
body.modern .slick-dots li button { border-radius: 999px; transition: background .2s ease, width .2s ease; }
body.modern .slick-dots li.slick-active button { background: var(--m-teal); width: 26px; }
body.modern .slick-arrow {
	border: none;
	border-radius: 999px;
	background: rgba(23, 21, 64, .7);
	transition: background .2s ease;
}
body.modern .slick-arrow:hover { background: var(--m-surface); }

/* ------------------------------------------------------------- CTA cards */
body.modern .cta-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
	height: 100%;
	padding: 34px 30px 30px;
	background: linear-gradient(180deg, var(--m-surface), var(--m-surface-2));
	border: 1px solid var(--m-line);
	border-radius: var(--m-radius);
	text-align: left;
	transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
body.modern .cta-card:hover,
body.modern .cta-card:focus-visible {
	transform: translateY(-6px);
	border-color: var(--m-line-teal);
	box-shadow: var(--m-shadow);
}
body.modern .cta-card:focus-visible { outline: 2px solid var(--m-teal); outline-offset: 3px; }
body.modern .cta-featured {
	border-color: var(--m-line-teal);
	box-shadow: 0 0 0 1px rgba(40, 211, 180, .22), 0 14px 40px rgba(3, 2, 26, .4);
}
body.modern .cta-chip {
	position: absolute;
	top: 18px;
	right: 18px;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--m-grad);
	color: #0c0b2a;
	font-weight: 800;
	font-size: 12px;
	letter-spacing: .06em;
	text-transform: uppercase;
}
body.modern .cta-icon {
	width: 64px;
	height: 64px;
	border-radius: 14px;
	background: rgba(40, 211, 180, .1);
	border: 1px solid rgba(40, 211, 180, .25);
	display: flex;
	align-items: center;
	justify-content: center;
}
body.modern .cta-icon img { width: 36px; height: 36px; }
body.modern .cta-title { font-family: 'Nova Square', cursive; font-size: 24px; color: #fff; }
body.modern .cta-sub { color: var(--m-ink-2); font-size: 16px; line-height: 1.55; flex-grow: 1; }
body.modern .cta-go {
	color: var(--m-teal);
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
body.modern .cta-go i { transition: transform .2s ease; }
body.modern .cta-card:hover .cta-go i { transform: translateX(6px); }

/* ---------------------------------------------------------------- footer */
body.modern .footer { border-top: 1px solid var(--m-line); }
body.modern .footer-widget-item ul li a { transition: color .2s ease; }
body.modern .footer-widget-item ul li a:hover { color: var(--m-teal); }

/* ---------------------------------------------------------------- reveals */
body.modern .mv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
body.modern .mv-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	body.modern .mv { opacity: 1; transform: none; transition: none; }
}

/* ================================================================ INNER PAGES */

/* the banner heading is an h1 on the modern build (SEO); mirror the classic
   h2 sizing so it looks identical to the classic design */
body.modern .page-title-area h1 { font-size: 45px; color: #fff; margin: 0; }
@media (max-width: 991px) {
	body.modern .page-title-area h1 { font-size: 30px; }
}

/* ---- "Under Development" ribbons -> clean badges (also neutralises the
        rotation main.js applies inline) ---- */
body.modern .underDev-benner,
body.modern .DevBanner {
	transform: none !important;
	position: absolute;
	top: 14px;
	right: 14px;
	left: auto;
	bottom: auto;
	width: auto !important;
	padding: 6px 14px;
	border-radius: 999px;
	background: linear-gradient(135deg, #f6b73c, #f08a3c);
	color: #211a04;
	font-weight: 800;
	font-size: 12px;
	letter-spacing: .05em;
	text-transform: uppercase;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
	pointer-events: none;
}
body.modern .underDev-benner p,
body.modern .DevBanner span {
	margin: 0;
	font: inherit;
	color: inherit;
	transform: none !important;
}
body.modern .underDev,
body.modern .software-single-item { position: relative; }

/* ---- comparison / spec tables (overview, product pages) ---- */
body.modern .productivity-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
body.modern .productivity-table table,
body.modern .software-comparison-table {
	border: 1px solid var(--m-line);
	border-radius: var(--m-radius);
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
}
body.modern .productivity-table th,
body.modern .software-comparison-table th {
	background: var(--m-surface);
	font-family: 'Nova Square', cursive;
	letter-spacing: .02em;
}
body.modern .productivity-table td,
body.modern .productivity-table th,
body.modern .software-comparison-table td,
body.modern .software-comparison-table th {
	border-color: var(--m-line) !important;
}
body.modern .productivity-table tbody tr:hover td,
body.modern .software-comparison-table tbody tr:hover td { background: rgba(40, 211, 180, .045); }
body.modern .pro-complete-icon i { color: var(--m-teal); }

/* ---- pricing: keep the classic design, just tighter ---- */
body.modern.page-template-pricing .dynamico-software-area { padding-top: 40px; padding-bottom: 10px; }
body.modern.page-template-pricing .buy-with-confidence { margin-bottom: 20px; }
body.modern.page-template-pricing .buy-with-confidence ul li { margin-bottom: 4px; }
body.modern.page-template-pricing .product-box { margin-top: 20px; }
body.modern.page-template-pricing .product-image { height: 100px; }
body.modern.page-template-pricing .product-image img { max-height: 90px; width: auto; }
body.modern.page-template-pricing .product-meta h3 { font-size: 22px; margin-bottom: 6px; }
body.modern.page-template-pricing .taxonomy p { margin-bottom: 2px; font-size: 15px; }
body.modern.page-template-pricing .product-features p { margin-bottom: 6px; font-size: 16px; }
body.modern.page-template-pricing .edition-prices p { margin-bottom: 4px; }
body.modern.page-template-pricing .pricing-bottom-content p { margin-bottom: 10px; }
body.modern.page-template-pricing .cta-faqs .section-title h2 { font-size: 26px; }

/* ---- forms: modern fields on the contact page only (try-now is classic) ---- */
body.modern.page-template-contact-us .bordered-input-box input,
body.modern.page-template-contact-us .bordered-input-box textarea,
body.modern.page-template-contact-us .bordered-select-box select {
	background: var(--m-surface) !important;
	border: 1px solid var(--m-line) !important;
	border-radius: 12px !important;
	color: #fff;
	transition: border-color .2s ease, box-shadow .2s ease;
}
body.modern.page-template-contact-us .bordered-input-box input:focus,
body.modern.page-template-contact-us .bordered-input-box textarea:focus,
body.modern.page-template-contact-us .bordered-select-box select:focus {
	border-color: var(--m-line-teal) !important;
	box-shadow: 0 0 0 3px rgba(40, 211, 180, .18);
	outline: none;
}
body.modern.page-template-contact-us .contact-info-item {
	background: rgba(23, 21, 64, .55);
	border: 1px solid var(--m-line);
	border-radius: var(--m-radius);
	padding: 22px 18px;
	height: 100%;
	transition: transform .2s ease, border-color .2s ease;
}
body.modern.page-template-contact-us .contact-info-item:hover { transform: translateY(-3px); border-color: var(--m-line-teal); }
body.modern.page-template-contact-us .contact-info-item i {
	color: var(--m-teal);
	background: rgba(40, 211, 180, .1);
	border: 1px solid rgba(40, 211, 180, .25);
	width: 48px;
	height: 48px;
	line-height: 46px;
	border-radius: 999px;
}
body.modern .form-status { min-height: 24px; }

/* ---- legal pages: left menu (theme card look + clear active state) ---- */
body.modern .licensing-menu {
	border: 1px solid var(--m-line);
	border-radius: 12px;
	overflow: hidden;
}
body.modern .licensing-menu ul li + li { border-top: 1px solid var(--m-line); }
body.modern .licensing-menu ul li a {
	border-left: 3px solid transparent;
	transition: color .2s ease, background .2s ease, border-color .2s ease;
}
body.modern .licensing-menu ul li a:hover { color: var(--m-teal); }
body.modern .licensing-menu ul li a.active { border-left-color: var(--m-teal); }

/* ---- product pages (SED / DV / bolt-ons) ---- */
body.modern .modules-item {
	background: rgba(23, 21, 64, .5);
	border: 1px solid var(--m-line);
	border-radius: var(--m-radius);
	padding: 22px;
	height: 100%;
	transition: transform .2s ease, border-color .2s ease;
}
body.modern .modules-item:hover { transform: translateY(-4px); border-color: var(--m-line-teal); }
body.modern .section-content img,
body.modern .about-mission-area .row img,
body.modern .about-team-content img,
body.modern .dynamco-right-thumb img {
	border-radius: 14px;
}

/* legal / long-text readability */
body.modern .main ul li { line-height: 1.6; }

/* ============================================================ MOBILE PASS
   The classic site is extremely tall on phones. Compress type, spacing and
   the pinned-animation track; two-up the footer link columns. */
@media (max-width: 767px) {
	body.modern { font-size: 17px; }
	body.modern p { font-size: 16px; line-height: 1.6; }

	body.modern .hero-area { padding-top: 130px; padding-bottom: 60px; }
	body.modern .hero-content h1 { font-size: 32px; line-height: 1.25; }
	body.modern .hero-content h2 { font-size: 19px; }
	body.modern .hero-btn .site-btn { margin-bottom: 10px; }
	body.modern .hero-video-btn { margin-top: 24px; }

	body.modern .scrolly-track { height: 185vh; }

	body.modern .section-title h3 { font-size: 25px; line-height: 1.3; }
	body.modern .section-title p { font-size: 16px; }
	body.modern .section-list-links { margin-bottom: 40px; }
	body.modern .feature-content { padding-bottom: 16px; }
	body.modern .feature-content .mb-30 { margin-bottom: 18px; }

	body.modern .cta-card { padding: 26px 22px 22px; }
	body.modern .cta-title { font-size: 21px; }

	body.modern .footer { padding-top: 40px; padding-bottom: 24px; }
	body.modern .footer .widget { width: 50%; }
	body.modern .footer-widget-item { margin-bottom: 22px; }
	body.modern .footer-logo { margin-bottom: 24px; }
	body.modern .footer-copyright h4 { font-size: 13px; }
	body.modern .footer-copyright p { font-size: 12px; }

	/* inner pages */
	body.modern .productivity-table table,
	body.modern .software-comparison-table { min-width: 540px; }
	body.modern.page-template-contact-us .contact-info-item { padding: 16px 14px; }
}

/* tablet nudge */
@media (min-width: 768px) and (max-width: 991px) {
	body.modern .hero-area { padding-top: 170px; padding-bottom: 90px; }
	body.modern .scrolly-track { height: 220vh; }
}
