/* ==========================================================================
   HRMS365 – Modern Workforce & HR Management Platform Stylesheet
   Pure CSS with Bootstrap 5.3 Extension & Dark Mode Theme
   ========================================================================== */

:root {
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Brand Palette - Exact match to HRMS365 Logo */
  --brand-teal: #00A59B;
  --brand-teal-dark: #00847B;
  --brand-teal-light: #E6FAF8;
  --brand-teal-soft: #F0FDFA;
  --brand-navy: #34475B;
  --brand-navy-dark: #243242;
  --primary-color: #00A59B;

  /* Theme variables - Light Mode Default (High Contrast) */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --bg-tertiary: #F1F5F9;
  --bg-card: #FFFFFF;
  --border-color: #E2E8F0;
  --border-light: #F1F5F9;
  --text-main: #1E293B;         /* Deep slate/navy for crystal-clear readability */
  --text-muted: #475569;        /* Slate 600 - AAA contrast on white */
  --text-subtle: #64748B;
  --header-bg: rgba(255, 255, 255, 0.96);
  --header-border: #E2E8F0;
  --modal-bg: #FFFFFF;
  --modal-header: #F8FAFC;
  --card-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
  --card-shadow-hover: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --site-header-height: 60px;
}

@media (max-width: 991.98px) {
  :root {
    --site-header-height: 56px;
  }
}

/* Dark Mode Theme Variables (High Contrast) */
html.dark {
  --brand-teal: #00A59B;
  --brand-teal-dark: #00847B;
  --brand-teal-light: rgba(0, 165, 155, 0.18);
  --brand-teal-soft: rgba(0, 165, 155, 0.09);
  --bg-primary: #070B11;
  --bg-secondary: #0D131F;
  --bg-tertiary: #172033;
  --bg-card: #0F172A;
  --border-color: #23314B;
  --border-light: #1E293B;
  --text-main: #F8FAFC;         /* Crisp white/slate 50 */
  --text-muted: #94A3B8;        /* Light slate 400 - high contrast on dark */
  --text-subtle: #CBD5E1;       /* Slate 300 */
  --header-bg: rgba(7, 11, 17, 0.96);
  --header-border: #23314B;
  --modal-bg: #0F172A;
  --modal-header: #070B11;
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.4);
  --card-shadow-hover: 0 14px 28px -5px rgba(0, 0, 0, 0.7), 0 10px 10px -5px rgba(0, 0, 0, 0.5);
}

/* Global Reset & Base Typography */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.2s ease, color 0.2s ease;
  margin: 0;
  padding-top: var(--site-header-height) !important;
}

main {
  min-height: calc(100vh - var(--site-header-height));
  position: relative;
}

/* Scroll Offset for In-page Navigation Anchors */
[id], section[id] {
  scroll-margin-top: calc(var(--site-header-height) + 14px);
}

/* Breadcrumb Navigation - Sleek & High-Contrast */
.breadcrumb-container {
  padding: 0.65rem 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  width: 100%;
}

.breadcrumb-container .breadcrumb {
  margin-bottom: 0;
  font-size: 0.8125rem;
}

.breadcrumb-container .breadcrumb-item a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.breadcrumb-container .breadcrumb-item a:hover {
  color: var(--brand-teal);
}

.breadcrumb-container .breadcrumb-item.active {
  color: var(--text-main);
  font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--text-subtle);
}

/* Force High-Contrast Text across Bootstrap Elements */
.text-main {
  color: var(--text-main) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  color: var(--text-main);
  font-weight: 700;
}

html.dark h1, html.dark h2, html.dark h3, html.dark h4, html.dark h5, html.dark h6 {
  color: #FFFFFF !important;
}

html.dark .text-main {
  color: #F8FAFC !important;
}

html.dark .text-muted {
  color: #94A3B8 !important;
}

html.dark p {
  color: #CBD5E1;
}

html.dark .section-description {
  color: #CBD5E1 !important;
}

html:not(.dark) h1, html:not(.dark) h2, html:not(.dark) h3, html:not(.dark) h4, html:not(.dark) h5, html:not(.dark) h6 {
  color: #0F172A !important;
}

html:not(.dark) .text-main {
  color: #0F172A !important;
}

html:not(.dark) .text-muted {
  color: #475569 !important;
}

html:not(.dark) p {
  color: #334155;
}

html:not(.dark) .section-description {
  color: #475569 !important;
}

/* Ensure .text-white and .text-light are ALWAYS crisp and visible in both light and dark mode */
.text-white,
html:not(.dark) .text-white,
html.dark .text-white,
h1.text-white, h2.text-white, h3.text-white, h4.text-white, h5.text-white, h6.text-white,
html:not(.dark) h1.text-white, html:not(.dark) h2.text-white, html:not(.dark) h3.text-white,
html:not(.dark) h4.text-white, html:not(.dark) h5.text-white, html:not(.dark) h6.text-white {
  color: #FFFFFF !important;
}

.text-light,
html:not(.dark) .text-light,
html.dark .text-light,
h1.text-light, h2.text-light, h3.text-light, h4.text-light, h5.text-light, h6.text-light,
html:not(.dark) h1.text-light, html:not(.dark) h2.text-light, html:not(.dark) h3.text-light,
html:not(.dark) h4.text-light, html:not(.dark) h5.text-light, html:not(.dark) h6.text-light {
  color: #F8FAFC !important;
}

/* ALL PERMANENTLY DARK BOXES & PANELS (CTA Banner, Hero simulator, Security, Footer, Dark preview mockups)
   Ensures text inside permanently dark containers is ALWAYS bright white/slate */
.dark-panel,
.dashboard-simulator,
footer,
.cta-banner,
.roadmap-spotlight-card,
.ecosystem-matrix-card,
.calc-result-box,
.bg-dark,
[style*="#0B0F17"],
[style*="#06090F"],
[style*="#070B11"],
[style*="#131B2B"] {
  color: #F8FAFC !important;
}

.dark-panel h1, .dark-panel h2, .dark-panel h3, .dark-panel h4, .dark-panel h5, .dark-panel h6,
.dashboard-simulator h1, .dashboard-simulator h2, .dashboard-simulator h3, .dashboard-simulator h4, .dashboard-simulator h5, .dashboard-simulator h6,
footer h1, footer h2, footer h3, footer h4, footer h5, footer h6,
.cta-banner h1, .cta-banner h2, .cta-banner h3, .cta-banner h4, .cta-banner h5, .cta-banner h6,
.roadmap-spotlight-card h1, .roadmap-spotlight-card h2, .roadmap-spotlight-card h3, .roadmap-spotlight-card h4, .roadmap-spotlight-card h5, .roadmap-spotlight-card h6,
.ecosystem-matrix-card h1, .ecosystem-matrix-card h2, .ecosystem-matrix-card h3, .ecosystem-matrix-card h4, .ecosystem-matrix-card h5, .ecosystem-matrix-card h6,
.calc-result-box h1, .calc-result-box h2, .calc-result-box h3, .calc-result-box h4,
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6,
html:not(.dark) .cta-banner h1, html:not(.dark) .cta-banner h2, html:not(.dark) .cta-banner h3, html:not(.dark) .cta-banner h4, html:not(.dark) .cta-banner h5, html:not(.dark) .cta-banner h6,
html:not(.dark) .dashboard-simulator h1, html:not(.dark) .dashboard-simulator h2, html:not(.dark) .dashboard-simulator h3, html:not(.dark) .dashboard-simulator h4, html:not(.dark) .dashboard-simulator h5, html:not(.dark) .dashboard-simulator h6,
html:not(.dark) footer h1, html:not(.dark) footer h2, html:not(.dark) footer h3, html:not(.dark) footer h4, html:not(.dark) footer h5, html:not(.dark) footer h6,
html:not(.dark) .roadmap-spotlight-card h1, html:not(.dark) .roadmap-spotlight-card h2, html:not(.dark) .roadmap-spotlight-card h3,
html:not(.dark) .ecosystem-matrix-card h1, html:not(.dark) .ecosystem-matrix-card h2, html:not(.dark) .ecosystem-matrix-card h3,
html:not(.dark) .calc-result-box h1, html:not(.dark) .calc-result-box h2, html:not(.dark) .calc-result-box h3,
html:not(.dark) .bg-dark h1, html:not(.dark) .bg-dark h2, html:not(.dark) .bg-dark h3, html:not(.dark) .bg-dark h4, html:not(.dark) .bg-dark h5, html:not(.dark) .bg-dark h6,
[style*="#0B0F17"] h1, [style*="#0B0F17"] h2, [style*="#0B0F17"] h3, [style*="#0B0F17"] h4, [style*="#0B0F17"] h5, [style*="#0B0F17"] h6,
[style*="#06090F"] h1, [style*="#06090F"] h2, [style*="#06090F"] h3, [style*="#06090F"] h4, [style*="#06090F"] h5, [style*="#06090F"] h6,
[style*="#131B2B"] h1, [style*="#131B2B"] h2, [style*="#131B2B"] h3, [style*="#131B2B"] h4, [style*="#131B2B"] h5, [style*="#131B2B"] h6 {
  color: #FFFFFF !important;
}

.dark-panel .text-main,
.dashboard-simulator .text-main,
footer .text-main,
.cta-banner .text-main,
.roadmap-spotlight-card .text-main,
.ecosystem-matrix-card .text-main,
.calc-result-box .text-main,
html:not(.dark) .cta-banner .text-main,
html:not(.dark) .dashboard-simulator .text-main,
html:not(.dark) footer .text-main,
[style*="#0B0F17"] .text-main,
[style*="#06090F"] .text-main,
[style*="#070B11"] .text-main,
[style*="#131B2B"] .text-main {
  color: #F8FAFC !important;
}

.dark-panel .text-muted,
.dashboard-simulator .text-muted,
footer .text-muted,
.cta-banner .text-muted,
.roadmap-spotlight-card .text-muted,
.ecosystem-matrix-card .text-muted,
.calc-result-box .text-muted,
html:not(.dark) .cta-banner .text-muted,
html:not(.dark) .dashboard-simulator .text-muted,
html:not(.dark) footer .text-muted,
[style*="#0B0F17"] .text-muted,
[style*="#06090F"] .text-muted,
[style*="#070B11"] .text-muted,
[style*="#131B2B"] .text-muted {
  color: #94A3B8 !important;
}

.dark-panel p,
.dashboard-simulator p,
footer p,
.cta-banner p,
.roadmap-spotlight-card p,
.ecosystem-matrix-card p,
.calc-result-box p,
.bg-dark p,
html:not(.dark) .cta-banner p,
html:not(.dark) .dashboard-simulator p,
html:not(.dark) footer p,
html:not(.dark) .roadmap-spotlight-card p,
html:not(.dark) .ecosystem-matrix-card p,
html:not(.dark) .calc-result-box p,
html:not(.dark) .bg-dark p,
[style*="#0B0F17"] p,
[style*="#06090F"] p,
[style*="#070B11"] p,
[style*="#131B2B"] p {
  color: #CBD5E1 !important;
}

.dark-panel .text-light,
.dashboard-simulator .text-light,
footer .text-light,
.cta-banner .text-light,
.cta-banner .opacity-75,
html:not(.dark) .cta-banner .text-light,
html:not(.dark) .cta-banner .opacity-75,
html:not(.dark) .dashboard-simulator .text-light,
html:not(.dark) footer .text-light,
html:not(.dark) .calc-result-box .text-light,
html:not(.dark) .bg-dark .text-light,
[style*="#0B0F17"] .text-light,
[style*="#06090F"] .text-light,
[style*="#070B11"] .text-light,
[style*="#131B2B"] .text-light {
  color: #FFFFFF !important;
}

/* Tables inside dashboard-simulator */
.dashboard-simulator .table,
.dashboard-simulator .table th,
.dashboard-simulator .table td,
html:not(.dark) .dashboard-simulator .table,
html:not(.dark) .dashboard-simulator .table th,
html:not(.dark) .dashboard-simulator .table td {
  color: #F8FAFC !important;
  background-color: transparent !important;
}

/* Footer links visibility */
footer a.footer-link,
html:not(.dark) footer a.footer-link,
html.dark footer a.footer-link {
  color: #94A3B8 !important;
  text-decoration: none;
  transition: color 0.15s ease;
}

footer a.footer-link:hover,
html:not(.dark) footer a.footer-link:hover,
html.dark footer a.footer-link:hover {
  color: #2DD4BF !important;
}

footer a.text-teal-brand,
html:not(.dark) footer a.text-teal-brand {
  color: #2DD4BF !important;
}

/* Selection Highlight */
::selection {
  background-color: rgba(0, 163, 137, 0.25);
  color: #0A7D73;
}

html.dark ::selection {
  background-color: rgba(0, 163, 137, 0.4);
  color: #2DD4BF;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
html.dark ::-webkit-scrollbar-thumb {
  background: #334155;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}
html.dark ::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Typography Utilities */
.font-mono {
  font-family: var(--font-mono);
}

.text-teal-brand {
  color: var(--brand-teal) !important;
}

.text-navy-brand {
  color: var(--brand-navy) !important;
}

html.dark .text-navy-brand {
  color: #F8FAFC !important;
}

.bg-teal-brand {
  background-color: var(--brand-teal) !important;
}

.bg-teal-hover:hover {
  background-color: var(--brand-teal-dark) !important;
}

/* Perfect Centering Utility (fixes any justify-center vs justify-content-center mismatch) */
.justify-center {
  justify-content: center !important;
}

/* Primary Color Overrides - Strictly mapped to Logo Brand Teal & Slate (no generic blue) */
.btn-primary,
.btn-brand-primary {
  background-color: var(--brand-teal) !important;
  border-color: var(--brand-teal) !important;
  color: #FFFFFF !important;
  transition: all 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-brand-primary:hover,
.btn-brand-primary:focus {
  background-color: var(--brand-teal-dark) !important;
  border-color: var(--brand-teal-dark) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(0, 165, 155, 0.35) !important;
}

.text-primary {
  color: var(--brand-teal) !important;
}

.bg-primary {
  background-color: var(--brand-teal) !important;
  color: #FFFFFF !important;
}

.border-primary {
  border-color: var(--brand-teal) !important;
}

.badge.bg-primary {
  background-color: var(--brand-teal) !important;
  color: #FFFFFF !important;
}

.badge.bg-primary.bg-opacity-10 {
  background-color: var(--brand-teal-light) !important;
  color: var(--brand-teal) !important;
}

/* Footer Navigation Links */
.footer-nav-link {
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.footer-nav-link:hover {
  color: var(--brand-teal) !important;
}

/* Comprehensive Dark Mode Overrides for Solutions, About, Modules, and Contact Pages */
html.dark .bg-white,
html.dark .bg-subtle,
html.dark .section-subtle {
  background-color: var(--bg-card) !important;
  color: var(--text-main) !important;
}

html.dark .bg-light {
  background-color: var(--bg-secondary) !important;
  color: var(--text-main) !important;
}

html.dark .persona-card .bg-light,
html.dark .custom-card .bg-light,
html.dark .module-card .bg-light {
  background-color: var(--bg-secondary) !important;
  border-color: var(--border-color) !important;
}

html.dark .text-dark,
html.dark .text-black {
  color: var(--text-main) !important;
}

html.dark .text-secondary {
  color: var(--text-muted) !important;
}

html.dark .badge.bg-dark {
  background-color: var(--bg-secondary) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border-color) !important;
}

html.dark .badge.bg-light,
html.dark .badge.border {
  background-color: rgba(255, 255, 255, 0.06) !important;
  color: var(--text-main) !important;
  border-color: var(--border-color) !important;
}

html.dark .table,
html.dark .table-custom {
  color: var(--text-main) !important;
}

html.dark .table th,
html.dark .table td {
  border-color: var(--border-color) !important;
  color: var(--text-main) !important;
  background-color: transparent !important;
}

html.dark .form-control,
html.dark .form-select {
  background-color: var(--bg-secondary) !important;
  border-color: var(--border-color) !important;
  color: var(--text-main) !important;
}

html.dark .form-control::placeholder {
  color: var(--text-subtle) !important;
  opacity: 0.7;
}

html.dark .form-control:focus,
html.dark .form-select:focus {
  background-color: var(--bg-secondary) !important;
  border-color: var(--brand-teal) !important;
  color: var(--text-main) !important;
  box-shadow: 0 0 0 0.25rem rgba(0, 165, 155, 0.25) !important;
}

html.dark .form-check-input {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
}

html.dark .form-check-input:checked {
  background-color: var(--brand-teal);
  border-color: var(--brand-teal);
}

html.dark .accordion-item {
  background-color: var(--bg-card) !important;
  border-color: var(--border-color) !important;
}

html.dark .accordion-button {
  background-color: var(--bg-card) !important;
  color: var(--text-main) !important;
}

html.dark .accordion-button:not(.collapsed) {
  background-color: rgba(0, 165, 155, 0.12) !important;
  color: var(--brand-teal) !important;
}

html.dark .accordion-body {
  background-color: var(--bg-card) !important;
  color: var(--text-muted) !important;
}

html.dark .custom-table-card {
  background: var(--bg-card) !important;
  border-color: var(--border-color) !important;
}

/* Perfect centering for The Six Tenets icons */
.tenet-icon-box {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 0.75rem auto !important;
  background: var(--brand-teal-light);
  color: var(--brand-teal);
  flex-shrink: 0;
}

.tenet-icon-box svg,
.tenet-icon-box i {
  display: block !important;
  margin: auto !important;
  width: 1.2rem !important;
  height: 1.2rem !important;
}

html.dark .tenet-icon-box {
  background: rgba(0, 165, 155, 0.18) !important;
  color: #2DD4BF !important;
}

/* Architectural Background Grid */
.hero-grid-pattern {
  background-image: linear-gradient(to right, rgba(226, 232, 240, 0.8) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(226, 232, 240, 0.8) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 70%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 70%, transparent 100%);
  opacity: 0.5;
  pointer-events: none;
}

html.dark .hero-grid-pattern {
  background-image: linear-gradient(to right, rgba(35, 49, 75, 0.6) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(35, 49, 75, 0.6) 1px, transparent 1px);
  opacity: 0.35;
}

/* HRMS365 Brand Logo System (Light & Dark Variants) */
.hrms-brand-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hrms-brand-logo-link:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.hrms-logo-theme {
  display: inline-block;
  height: 38px;
  width: auto;
  max-width: 195px;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

/* Light mode: show logo.svg (dark text), hide logo-light.svg */
html:not(.dark) .hrms-logo-light {
  display: none !important;
}
html:not(.dark) .hrms-logo-dark {
  display: inline-block !important;
}

/* Dark mode: show logo-light.svg (white text), hide logo.svg */
html.dark .hrms-logo-dark {
  display: none !important;
}
html.dark .hrms-logo-light {
  display: inline-block !important;
}

.dark-panel .hrms-logo-light {
  display: inline-block !important;
}
.dark-panel .hrms-logo-dark {
  display: none !important;
}

/* Fractional padding & spacing utilities (Bootstrap extension) */
.p-2\.5, .p-2-5 { padding: 0.75rem !important; }
.px-2\.5, .px-2-5 { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
.py-2\.5, .py-2-5 { padding-top: 0.65rem !important; padding-bottom: 0.65rem !important; }
.p-3\.5, .p-3-5 { padding: 1.15rem !important; }
.px-3\.5, .px-3-5 { padding-left: 1.15rem !important; padding-right: 1.15rem !important; }
.py-3\.5, .py-3-5 { padding-top: 0.85rem !important; padding-bottom: 0.85rem !important; }
.gap-1\.5 { gap: 0.375rem !important; }
.gap-2\.5 { gap: 0.75rem !important; }

/* Header & Navigation */
header.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--site-header-height);
  z-index: 1050;
  transition: all 0.2s ease;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--header-border);
  display: flex;
  align-items: center;
  padding: 0;
}

header.site-header.scrolled {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

html.dark header.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Nav links - Sleek, Compact & Clear Active States */
.nav-link-custom {
  padding: 0.32rem 0.62rem;
  border-radius: 0.375rem;
  color: var(--text-main);
  font-weight: 550;
  font-size: 0.8125rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.nav-link-custom:hover {
  color: var(--brand-teal);
  background: var(--brand-teal-light);
}

html.dark .nav-link-custom:hover {
  color: #2DD4BF;
  background: rgba(0, 163, 137, 0.12);
}

.nav-link-custom.active {
  color: var(--brand-teal);
  font-weight: 650;
  background: var(--brand-teal-light);
}

html.dark .nav-link-custom.active {
  color: #2DD4BF;
  background: rgba(0, 163, 137, 0.2);
}

/* Chevron Rotation */
#megaChevron, #downloadChevron, #mobileDownloadChevron {
  transition: transform 0.2s ease;
}

#megaChevron.rotate, #downloadChevron.rotate, #mobileDownloadChevron.rotate {
  transform: rotate(180deg);
}

/* Header container & nav full height alignment */
.site-header .container-xl,
.site-header .container-xl > div,
.site-header nav {
  height: 100%;
}

/* Mega Menu Dropdown - Positioned directly below dropdown option */
.mega-menu-container {
  position: static;
  display: inline-flex;
  align-items: center;
  height: 100%;
}

.mega-dropdown-menu {
  position: fixed;
  top: var(--site-header-height);
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100vw - 32px));
  max-width: 1180px;
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-top: 1px solid var(--border-color);
  border-radius: 0 0 1rem 1rem;
  box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.35);
  padding: 1.5rem;
  z-index: 1090;
  display: none;
  max-height: calc(88vh - var(--site-header-height));
  overflow-y: auto;
}

.mega-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

/* Downloads Dropdown Menu (Desktop & Tablet) */
.download-dropdown-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
}

.download-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 330px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.22);
  padding: 0.5rem;
  z-index: 1090;
  display: none;
}

/* Visual pointer arrow pointing directly to the Downloads dropdown option */
.download-dropdown-menu::after {
  content: '';
  position: absolute;
  top: -5px;
  left: 24px;
  width: 9px;
  height: 9px;
  background: var(--bg-card);
  border-left: 1px solid var(--border-color);
  border-top: 1px solid var(--border-color);
  transform: rotate(45deg);
  z-index: 2;
}

@media (max-width: 1200px) and (min-width: 992px) {
  .download-dropdown-menu {
    left: auto;
    right: 0;
  }
  .download-dropdown-menu::after {
    left: auto;
    right: 28px;
  }
}

.download-dropdown-menu.show {
  display: block;
  animation: dropdownFadeIn 0.15s ease-out forwards;
}

.download-dropdown-item {
  padding: 0.55rem 0.75rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.12s ease;
  font-size: 0.8125rem;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

.download-dropdown-item:hover {
  background: var(--brand-teal-light);
  color: var(--brand-teal-dark);
}

html.dark .download-dropdown-item:hover {
  background: rgba(0, 163, 137, 0.15);
  color: #2DD4BF;
}

/* Bridge to prevent accidental mouseleave when hovering down into menu */
.mega-dropdown-menu::before,
.download-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}

.mega-dropdown-menu.show {
  display: block;
  animation: megaFadeIn 0.18s ease-out forwards;
}

@keyframes megaFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -6px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mega-menu-item {
  width: 100%;
  text-align: left;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: transparent;
  border: none;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
  color: var(--text-main);
}

.mega-menu-item:hover {
  background-color: var(--brand-teal-light);
}

html.dark .mega-menu-item:hover {
  background-color: rgba(30, 41, 59, 0.8);
}

.mega-icon-wrapper {
  padding: 0.35rem;
  border-radius: 0.375rem;
  background: var(--bg-tertiary);
  color: var(--brand-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.mega-menu-item:hover .mega-icon-wrapper {
  background: var(--brand-teal);
  color: #FFFFFF;
}

/* Custom Button Styles */
.btn-brand-primary {
  background-color: var(--brand-teal);
  color: #FFFFFF !important;
  font-weight: 700;
  border-radius: 0.75rem;
  padding: 0.75rem 1.5rem;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 163, 137, 0.25);
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-brand-primary:hover {
  background-color: var(--brand-teal-dark);
  box-shadow: 0 10px 15px -3px rgba(0, 163, 137, 0.35);
  transform: translateY(-1px);
}

.btn-brand-primary:active {
  transform: scale(0.98);
}

.btn-brand-secondary {
  background-color: var(--bg-card);
  color: var(--text-main) !important;
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--border-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: var(--card-shadow);
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-brand-secondary:hover {
  background-color: var(--bg-secondary);
  border-color: #CBD5E1;
}

html.dark .btn-brand-secondary:hover {
  border-color: #475569;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  background: var(--brand-teal-light);
  color: var(--brand-teal);
  border-color: rgba(0, 163, 137, 0.4);
  transform: scale(1.05);
}

html.dark .theme-toggle-btn:hover {
  background: rgba(0, 163, 137, 0.2);
  color: #2DD4BF;
  border-color: rgba(0, 163, 137, 0.5);
}

.btn-nav-demo {
  background-color: var(--brand-teal);
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 0.38rem 0.85rem;
  border-radius: 0.5rem;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 163, 137, 0.2);
  cursor: pointer;
  text-decoration: none;
}

.btn-nav-demo:hover {
  background-color: var(--brand-teal-dark);
  box-shadow: 0 4px 12px rgba(0, 163, 137, 0.35);
  transform: translateY(-1px);
}

/* Dashboard Simulator Window */
.dashboard-simulator {
  background-color: rgba(15, 23, 42, 0.98);
  border-radius: 1rem;
  border: 1px solid #1E293B;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  color: #F8FAFC;
}

.simulator-topbar {
  background-color: #0B0F17;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #1E293B;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.simulator-tabs-bar {
  background-color: #0F172A;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #1E293B;
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.simulator-tabs-bar::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* Enterprise Console Uniform Height Across All Options (STRICTLY NO SCROLL) */
.simulator-tab-content-area {
  min-height: 480px;
  background: rgba(15, 23, 42, 0.75);
  overflow: hidden !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

@media (min-width: 992px) {
  .simulator-tab-content-area {
    height: 480px;
    min-height: 480px;
    max-height: 480px;
    overflow: hidden !important;
  }
}

.simulator-tab-content-area::-webkit-scrollbar,
.dashboard-simulator::-webkit-scrollbar,
.sim-tab-content::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.sim-tab-content {
  overflow: hidden !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.simulator-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  background: transparent;
  color: #94A3B8;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.simulator-tab-btn:hover {
  color: #F8FAFC;
  background: rgba(30, 41, 59, 0.6);
}

.simulator-tab-btn.active {
  background: var(--brand-teal);
  color: #FFFFFF;
}

.sim-metric-card {
  padding: 1rem 1.15rem;
  background: #131B2B;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  transition: all 0.2s ease;
}

.sim-metric-card:hover {
  border-color: rgba(0, 163, 137, 0.35);
  background: #172238;
}

/* Simulator Panels & Lists - Pixel-Perfect Alignment */
.sim-panel {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.875rem;
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
}

.sim-panel:last-child {
  margin-bottom: 0;
}

.sim-panel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sim-panel-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #FFFFFF !important;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sim-panel-subtitle {
  font-size: 0.75rem;
  color: #94A3B8 !important;
  margin: 0;
  font-weight: 500;
}

.sim-list-row {
  background: rgba(11, 15, 23, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.2s ease;
}

@media (min-width: 576px) {
  .sim-list-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.sim-list-row:last-child {
  margin-bottom: 0;
}

.sim-list-row:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(0, 163, 137, 0.35);
}

.sim-list-main {
  flex: 1;
  min-width: 0;
}

.sim-list-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #FFFFFF !important;
  margin-bottom: 0.35rem;
  line-height: 1.4;
}

.sim-list-desc {
  font-size: 0.75rem;
  color: #94A3B8 !important;
  line-height: 1.45;
  margin: 0;
}

.sim-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
}

.sim-status-approved {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #34D399 !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
}

.sim-status-rejected {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #F87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
}

.sim-status-blue,
.sim-status-teal {
  background: var(--brand-teal-light) !important;
  color: var(--brand-teal) !important;
  border: 1px solid rgba(0, 165, 155, 0.4) !important;
}

html.dark .sim-status-blue,
html.dark .sim-status-teal {
  background: rgba(0, 165, 155, 0.18) !important;
  color: #2DD4BF !important;
  border: 1px solid rgba(0, 165, 155, 0.4) !important;
}

.sim-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 0.375rem;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(0, 163, 137, 0.18);
  color: #2DD4BF;
  border: 1px solid rgba(0, 163, 137, 0.35);
  margin-right: 0.5rem;
  white-space: nowrap;
}

.sim-approval-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.sim-btn-reject {
  background: rgba(239, 68, 68, 0.12);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 0.4rem 0.95rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.sim-btn-reject:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #FFFFFF;
  border-color: rgba(239, 68, 68, 0.6);
}

.sim-btn-approve {
  background: var(--brand-teal);
  color: #FFFFFF;
  border: 1px solid var(--brand-teal);
  padding: 0.4rem 1.05rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.sim-btn-approve:hover {
  background: var(--brand-teal-dark);
  border-color: var(--brand-teal-dark);
  transform: translateY(-1px);
}

.sim-info-box {
  background: rgba(11, 15, 23, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  padding: 1.15rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 576px) {
  .sim-info-box {
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
  }
}

.sim-step-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .sim-step-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.sim-step-card {
  background: rgba(11, 15, 23, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  padding: 1.15rem 0.75rem;
  text-align: center;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.sim-step-card.active {
  background: rgba(0, 163, 137, 0.15);
  border-color: rgba(0, 163, 137, 0.5);
  box-shadow: 0 0 15px rgba(0, 163, 137, 0.15);
}

.sim-step-number {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: #94A3B8;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.sim-step-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.25rem;
}

.sim-step-card.active .sim-step-title {
  color: #2DD4BF;
}

.sim-step-desc {
  font-size: 0.7rem;
  color: #94A3B8;
  line-height: 1.35;
  margin: 0;
}

/* Section styling */
section {
  position: relative;
}

.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-teal);
  margin-bottom: 0.5rem;
}

.section-heading {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-main);
  line-height: 1.25;
}

@media (min-width: 768px) {
  .section-heading {
    font-size: 2.5rem;
  }
}

.section-description {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
}

/* Feature & Module Cards */
.custom-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  transition: all 0.2s ease;
}

.custom-card:hover {
  border-color: rgba(0, 163, 137, 0.6);
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}

.card-icon-box {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: var(--bg-tertiary);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.custom-card:hover .card-icon-box {
  background: var(--brand-teal);
  color: #FFFFFF;
}

/* Category Filter Pills */
.filter-pill {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  background: var(--bg-tertiary);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-pill:hover {
  background: #E2E8F0;
  color: var(--text-main);
}

html.dark .filter-pill:hover {
  background: #334155;
  color: #FFFFFF;
}

.filter-pill.active {
  background: var(--brand-navy);
  color: #FFFFFF;
}

html.dark .filter-pill.active {
  background: var(--brand-teal);
  color: #FFFFFF;
}

/* Platform 4-Pillar Tabs */
.platform-tab-btn {
  padding: 0.55rem 1.15rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.platform-tab-btn:hover {
  background: var(--bg-secondary);
  color: var(--text-main);
  border-color: rgba(0, 163, 137, 0.4);
}

.platform-tab-btn.active {
  background: var(--brand-teal);
  color: #FFFFFF !important;
  border-color: var(--brand-teal);
  box-shadow: 0 4px 10px rgba(0, 163, 137, 0.25);
}

/* Accordion */
.faq-item {
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 0.75rem;
  transition: border-color 0.15s ease;
}

.faq-header-btn {
  width: 100%;
  text-align: left;
  padding: 1.25rem;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
}

.faq-header-btn:hover {
  color: var(--brand-teal);
}

.faq-chevron {
  transition: transform 0.2s ease;
  color: var(--text-subtle);
}

.faq-chevron.rotate {
  transform: rotate(180deg);
  color: var(--brand-teal);
}

.faq-body-content {
  padding: 0 1.25rem 1.25rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  border-top: 1px solid var(--border-light);
  padding-top: 0.75rem;
  display: none;
}

/* Custom Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(11, 15, 23, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1060;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

.modal-dialog-custom {
  background-color: var(--modal-bg);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  width: 100%;
  max-width: 42rem;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--text-main);
}

.modal-dialog-large {
  max-width: 62rem;
}

.modal-header-custom {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--modal-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body-custom {
  padding: 1.5rem;
  overflow-y: auto;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.35rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.modal-close-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-main);
}

/* Form inputs */
.form-control,
.form-select,
.form-control-custom,
.form-select-custom {
  width: 100%;
  padding: 0.55rem 0.85rem;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color) !important;
  background-color: var(--bg-card) !important;
  color: var(--text-main) !important;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control::placeholder,
textarea.form-control::placeholder {
  color: var(--text-muted) !important;
  opacity: 0.75;
}

.form-control:focus,
.form-select:focus,
.form-control-custom:focus,
.form-select-custom:focus {
  border-color: var(--brand-teal) !important;
  box-shadow: 0 0 0 3px rgba(0, 163, 137, 0.2) !important;
  background-color: var(--bg-card) !important;
  color: var(--text-main) !important;
}

.form-select option {
  background-color: var(--bg-card);
  color: var(--text-main);
}

/* Range sliders */
input[type="range"].accent-teal {
  accent-color: var(--brand-teal);
}

/* Mobile Drawer & Backdrop Overlay */
.mobile-drawer-backdrop {
  position: fixed;
  top: var(--site-header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1042;
  display: none;
}

.mobile-drawer {
  position: fixed;
  top: var(--site-header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-card);
  z-index: 1045;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.25rem;
  border-top: 1px solid var(--border-color);
  display: none;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
}

body.drawer-open {
  overflow: hidden !important;
}

.mobile-nav-btn {
  background: var(--bg-secondary);
  color: var(--text-main) !important;
  border: 1px solid var(--border-color);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.65rem 0.85rem;
  border-radius: 0.5rem;
  transition: all 0.15s ease;
  font-size: 0.875rem;
}

.mobile-nav-btn:hover,
.mobile-nav-btn.active {
  background: var(--brand-teal);
  color: #FFFFFF !important;
  border-color: var(--brand-teal);
}

/* Mobile Downloads Dropdown Option & Submenu */
.mobile-download-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-secondary);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 44px;
}

.mobile-download-trigger:hover,
.mobile-download-trigger.active {
  background: var(--brand-teal-light);
  border-color: var(--brand-teal);
  color: var(--brand-teal-dark);
}

html.dark .mobile-download-trigger:hover,
html.dark .mobile-download-trigger.active {
  background: rgba(0, 163, 137, 0.15);
  color: #2DD4BF;
}

.mobile-download-menu {
  display: none;
  margin-top: 0.35rem;
  margin-bottom: 0.35rem;
  padding: 0.65rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
}

/* Download Toast Notification */
.download-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1100;
  background: var(--bg-card);
  border: 1px solid var(--brand-teal);
  border-radius: 0.75rem;
  padding: 0.85rem 1.15rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  display: none;
  max-width: 360px;
  animation: slideInUp 0.25s ease-out;
}

@keyframes slideInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Accordion High-Contrast Theming */
.custom-accordion .accordion-item {
  background-color: var(--bg-card) !important;
  border-color: var(--border-color) !important;
}

.custom-accordion .accordion-button {
  background-color: var(--bg-card) !important;
  color: var(--text-main) !important;
  font-weight: 600;
  box-shadow: none !important;
}

.custom-accordion .accordion-button:not(.collapsed) {
  background-color: var(--brand-teal-light) !important;
  color: var(--brand-teal-dark) !important;
}

html.dark .custom-accordion .accordion-button:not(.collapsed) {
  background-color: rgba(0, 163, 137, 0.2) !important;
  color: #2DD4BF !important;
}

.custom-accordion .accordion-body {
  background-color: var(--bg-card) !important;
  color: var(--text-muted) !important;
}

html.dark .custom-accordion .accordion-body {
  color: #CBD5E1 !important;
}

/* FAQ Category Grid & Buttons */
.faq-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.75rem;
}

@media (min-width: 992px) {
  .faq-categories-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.faq-category-btn {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
}

.faq-category-btn:hover {
  border-color: var(--brand-teal);
  background-color: rgba(0, 165, 155, 0.08);
  transform: translateY(-1px);
}

.faq-category-btn.active {
  background: var(--brand-teal) !important;
  border-color: var(--brand-teal) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(0, 165, 155, 0.35);
}

.faq-category-btn.active .faq-cat-count {
  color: rgba(255, 255, 255, 0.85) !important;
}

.faq-category-btn.active .faq-cat-icon {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #FFFFFF !important;
}

.faq-cat-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-teal-light);
  color: var(--brand-teal);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.faq-cat-icon i,
.faq-cat-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.faq-cat-title {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.25;
}

.faq-cat-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 0.15rem;
}

.faq-quick-pill {
  cursor: pointer;
  transition: all 0.15s ease;
}

.faq-quick-pill:hover {
  border-color: var(--brand-teal) !important;
  color: var(--brand-teal) !important;
}

/* Segmented & Lifecycle Buttons */
.lifecycle-tab-btn,
.solution-tab-btn {
  color: var(--text-muted);
  background: transparent;
  border: none;
  font-weight: 600;
  transition: all 0.15s ease;
}

.lifecycle-tab-btn:hover,
.solution-tab-btn:hover {
  color: var(--text-main);
}

.lifecycle-tab-btn.active,
.solution-tab-btn.active {
  background: var(--brand-teal) !important;
  color: #FFFFFF !important;
}

/* Utility Animations */
.animate-pulse-slow {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Footer Styling */
footer {
  background-color: #06090F !important;
  color: #94A3B8 !important;
  border-top: 1px solid #131B2B !important;
}

footer a,
footer button {
  color: #94A3B8 !important;
  transition: color 0.15s ease;
}

footer a:hover,
footer button:hover {
  color: var(--brand-teal) !important;
}

.footer-link:hover {
  color: var(--brand-teal) !important;
}

/* ==========================================================================
   Redesigned Enterprise UI Components
   ========================================================================== */

/* ==========================================================================
   Redesigned Enterprise UI Components (Pixel-Perfect, Zero-Pill, Dark/Light)
   ========================================================================== */

/* 1. Approval Management Orchestrator Console */
.approval-console-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1.125rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.approval-console-card:hover {
  border-color: rgba(0, 163, 137, 0.6);
  box-shadow: 0 14px 34px -10px rgba(0, 163, 137, 0.12);
}

.approval-flow-strip {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 0.65rem 0.85rem;
}

.approval-step-node {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 11px;
}

.approval-step-num {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: rgba(0, 163, 137, 0.14);
  color: var(--brand-teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 10px;
}

.approval-engine-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.approval-engine-item:hover,
.approval-engine-item.active {
  background: var(--bg-card);
  border-color: var(--brand-teal);
  box-shadow: 0 4px 16px -2px rgba(0, 163, 137, 0.14);
  transform: translateY(-1px);
}

.engine-icon-badge {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* 2. Statutory Regulatory Ledger Rows & State Switcher */
.deduction-ledger-row {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  transition: all 0.2s ease;
}

.deduction-ledger-row:hover {
  background: var(--bg-card);
  border-color: var(--brand-teal);
  transform: translateX(2px);
}

.statutory-state-tab {
  font-size: 11px;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 0.45rem;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.statutory-state-tab:hover {
  color: var(--text-main);
  border-color: var(--brand-teal);
}

.statutory-state-tab.active {
  background: var(--brand-teal);
  color: #FFFFFF !important;
  border-color: var(--brand-teal);
}

/* 3. Employee Self-Service (ESS 360) Glass Frame & Experience */
.ess-hub-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.ess-hub-container:hover {
  border-color: rgba(0, 163, 137, 0.45);
}

.ess-phone-frame {
  background: #070B11;
  border: 1px solid #1E293B;
  border-radius: 1.5rem;
  box-shadow: 0 24px 50px -15px rgba(0, 0, 0, 0.7);
  color: #F8FAFC;
  overflow: hidden;
}

.ess-app-tab-btn {
  font-size: 10px;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 0.4rem;
  border: none;
  background: transparent;
  color: #94A3B8;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ess-app-tab-btn.active {
  background: #1E293B;
  color: #2DD4BF;
}

.ess-widget-card {
  background: #0E1522;
  border: 1px solid #1E293B;
  border-radius: 0.75rem;
  padding: 0.75rem 0.9rem;
  transition: all 0.15s ease;
}

.ess-widget-card:hover {
  background: #141E30;
  border-color: rgba(0, 163, 137, 0.35);
}

/* 4. Analytics & BI Cockpit Card */
.analytics-cockpit-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1.125rem;
  padding: 1.5rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
}

.analytics-cockpit-card:hover {
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 163, 137, 0.45);
}

.metric-gauge-bar {
  height: 6px;
  background: var(--border-color);
  border-radius: 999px;
  overflow: hidden;
}

.metric-gauge-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s ease;
}

/* 5. ERP Sync Pipeline Card */
.erp-pipeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1.125rem;
  padding: 1.5rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
}

.erp-pipeline-card:hover {
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 163, 137, 0.45);
}

.erp-brand-chip {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 11px;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.erp-node-box {
  background: #0B111D;
  border: 1px solid #1E293B;
  border-radius: 0.65rem;
  padding: 0.65rem 0.75rem;
  text-align: center;
  color: #F8FAFC;
}

/* 6. Product Roadmap Spotlight Card */
.roadmap-spotlight-card {
  background: linear-gradient(135deg, #070B11 0%, #0F172A 60%, #070B11 100%);
  border: 1px solid #1E293B;
  border-radius: 1.125rem;
  box-shadow: 0 16px 36px -10px rgba(0, 163, 137, 0.14);
  position: relative;
  overflow: hidden;
  color: #F8FAFC;
}

.roadmap-spotlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-teal), #38BDF8, transparent);
}

.roadmap-feature-pill {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.65rem;
  padding: 0.75rem 0.95rem;
  transition: all 0.2s ease;
}

.roadmap-feature-pill:hover {
  background: rgba(30, 41, 59, 1);
  border-color: rgba(0, 163, 137, 0.4);
}

/* 7. Ecosystem Architecture Matrix Card */
.ecosystem-matrix-card {
  background: #070B11;
  border: 1px solid #1E293B;
  border-radius: 1.125rem;
  color: #F8FAFC;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.65);
}

.ecosystem-quadrant {
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid #1F2937;
  border-radius: 0.65rem;
  padding: 0.75rem;
}

.ecosystem-module-tag {
  background: #111827;
  border: 1px solid #1F2937;
  color: #CBD5E1;
  font-size: 11px;
  font-weight: 500;
  padding: 0.3rem 0.55rem;
  border-radius: 0.375rem;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  text-decoration: none;
}

.ecosystem-module-tag:hover {
  background: rgba(0, 163, 137, 0.22);
  border-color: var(--brand-teal);
  color: #FFFFFF !important;
  transform: translateY(-1px);
}

/* ==========================================================================
   Multipage Shared Components & Design System Tokens
   ========================================================================== */

/* Layout & Spacing */
.section-padding {
  padding: 4.5rem 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 3rem 0;
  }
}

.section-subtle {
  background-color: var(--bg-secondary);
}

.bg-subtle {
  background-color: var(--bg-secondary);
}

.text-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Eyebrow badge */
.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 9999px;
  background: var(--brand-teal-light);
  color: var(--brand-teal);
  border: 1px solid rgba(0, 163, 137, 0.2);
  margin-bottom: 0.75rem;
}

html.dark .eyebrow-badge {
  background: rgba(0, 163, 137, 0.15);
  color: #2DD4BF;
  border-color: rgba(0, 163, 137, 0.35);
}

/* Category Tab Switchers */
.category-tab-btn {
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-tab-btn:hover {
  border-color: var(--brand-teal);
  color: var(--brand-teal);
}

.category-tab-btn.active {
  background: var(--brand-teal);
  color: #FFFFFF !important;
  border-color: var(--brand-teal);
  box-shadow: 0 4px 12px rgba(0, 163, 137, 0.25);
}

/* Module Cards on features.html */
.module-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  box-shadow: var(--card-shadow);
}

.module-card:hover {
  border-color: rgba(0, 163, 137, 0.4);
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}

.module-icon-wrap {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: var(--brand-teal-light);
  color: var(--brand-teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

html.dark .module-icon-wrap {
  background: rgba(0, 163, 137, 0.2);
  color: #2DD4BF;
}

.module-category-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-teal);
  margin-bottom: 0.35rem;
}

.module-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.module-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex-grow: 1;
  margin-bottom: 1.25rem;
}

.module-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.module-view-btn {
  background: transparent;
  border: none;
  color: var(--brand-teal);
  font-weight: 700;
  font-size: 0.8125rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  transition: gap 0.2s ease, color 0.2s ease;
}

.module-view-btn:hover {
  color: var(--brand-teal-dark);
  gap: 0.5rem;
}

/* Tables for Policy Matrices */
.custom-table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.table-custom {
  margin-bottom: 0;
  color: var(--text-main);
}

.table-custom thead th {
  background: var(--bg-secondary);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.table-custom tbody td {
  padding: 1rem;
  vertical-align: middle;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-main);
}

.table-custom tbody tr:last-child td {
  border-bottom: none;
}

/* Persona Cards on solutions.html */
.persona-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 2rem;
  height: 100%;
  box-shadow: var(--card-shadow);
  transition: all 0.25s ease;
}

.persona-card:hover {
  border-color: rgba(0, 163, 137, 0.4);
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.625rem;
  line-height: 1.5;
}

.checklist-item i {
  color: var(--brand-teal);
  font-size: 1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

/* ROI Calculator on solutions.html */
.calc-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 2.25rem;
  box-shadow: var(--card-shadow);
}

.calc-result-box {
  background: #0B0F17;
  border: 1px solid #1E293B;
  border-radius: 1rem;
  padding: 1.75rem;
  color: #FFFFFF;
  text-align: center;
}

.calc-result-val {
  font-size: 2.5rem;
  font-weight: 800;
  color: #2DD4BF;
  font-family: var(--font-mono);
}

.form-range::-webkit-slider-thumb {
  background-color: var(--brand-teal);
}

.form-range::-moz-range-thumb {
  background-color: var(--brand-teal);
}

.form-range:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 1px #fff, 0 0 0 0.25rem rgba(0, 165, 155, 0.25);
}

/* Workflow Step Pill */
.workflow-step-num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: var(--brand-teal-light);
  color: var(--brand-teal);
  font-weight: 800;
  font-family: var(--font-mono);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
}

html.dark .workflow-step-num {
  background: rgba(0, 163, 137, 0.2);
  color: #2DD4BF;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, #0F172A 0%, #070B11 100%);
  border: 1px solid #1E293B;
  border-radius: 1.25rem;
  padding: 2.5rem;
  color: #FFFFFF;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-teal), transparent);
}

/* Breadcrumb Navigation */
.hrms-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.hrms-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.hrms-breadcrumb a:hover {
  color: var(--brand-teal);
}

.hrms-breadcrumb .breadcrumb-separator {
  color: var(--text-subtle);
  font-size: 0.75rem;
}

.hrms-breadcrumb .active-item {
  color: var(--brand-teal);
  font-weight: 600;
}

/* Back to Top button */
.back-to-top-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.35rem 0.65rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.back-to-top-btn:hover {
  background: var(--brand-teal);
  color: #FFFFFF;
  border-color: var(--brand-teal);
}

/* Button variants */
.btn-sm-custom {
  font-size: 0.8125rem;
  padding: 0.45rem 1rem;
  border-radius: 0.625rem;
  font-weight: 600;
}

.btn-lg-custom {
  font-size: 1rem;
  padding: 0.85rem 1.75rem;
  border-radius: 0.875rem;
  font-weight: 700;
}

/* Status pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-pill.success {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.status-pill.pending {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

/* Form Submission Confirmation Alert */
html.dark .alert-success {
  background-color: rgba(16, 185, 129, 0.12) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
  color: #D1FAE5 !important;
}

html.dark .alert-success h6,
html.dark .alert-success p {
  color: #ECFDF5 !important;
}
