/* ========================================================================
   CXOkit Consolidated CSS - Production Ready
   ======================================================================== */

:root {
    --primary-color: #17B6FA;
    --secondary-color: #020F47;
    --dark-bg: #020F47;
    --light-bg: #f8fafc;
    --gradient-1: linear-gradient(135deg, #020F47 0%, #0d5ba8 55%, #17B6FA 100%);
    --gradient-2: linear-gradient(135deg, #17B6FA 0%, #7ee0ff 100%);

    --body-bg: #ffffff;
    --body-text: #1e293b;
    --surface-bg: #ffffff;
    --surface-border: #e2e8f0;
    --muted-text: #64748b;
}

[data-theme="dark"] {
    --body-bg: #060b1f;
    --body-text: #e2e8f0;
    --surface-bg: #0f1730;
    --surface-border: #1f2b4d;
    --muted-text: #94a3b8;
    --light-bg: #0a1229;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    background: var(--body-bg);
    color: var(--body-text);
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* ========================================================================
   NAVIGATION BAR
   ======================================================================== */
.navbar {
  background: color-mix(in srgb, var(--surface-bg) 98%, transparent) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s, background-color 0.2s;
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.navbar > .container {
  align-items: center;
}

.navbar-brand {
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
}

.navbar-nav {
  align-items: center;
}

.nav-link {
  color: var(--body-text) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s;
  display: flex;
  align-items: center;
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

.theme-toggle {
  border: 1px solid var(--surface-border);
  background: var(--surface-bg);
  color: var(--body-text);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.theme-toggle:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.nav-cta-group {
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Collapsed mobile menu: the desktop rule below centers nav-items on the
   horizontal navbar, but in the collapsed (column-direction) menu that same
   align-items:center shrink-wraps and centers every link instead of letting
   it read as a normal left-aligned list - override it below lg. */
@media (max-width: 991.98px) {
  .navbar-nav {
    align-items: stretch;
    padding: 0.5rem 0;
  }
  .navbar-nav .nav-item {
    border-bottom: 1px solid var(--surface-border);
  }
  .navbar-nav .nav-item:last-child {
    border-bottom: none;
  }
  .nav-link {
    justify-content: flex-start;
    padding: 0.85rem 0.25rem !important;
  }
  .navbar-nav .dropdown-menu {
    box-shadow: none;
    border: none;
    background: transparent;
    padding-left: 1rem;
    min-width: 0;
    width: 100%;
  }
  .nav-cta-group {
    justify-content: center;
    padding: 1rem 0.25rem 0.5rem;
    border-bottom: none !important;
  }
}

@media (min-width: 992px) {
  .nav-cta-group {
    margin-left: 0.75rem;
    padding-left: 1rem;
    border-left: 1px solid var(--surface-border);
  }
}

.nav-cta-outline {
  border: 1.5px solid var(--primary-color);
  color: var(--primary-color) !important;
  font-weight: 600;
  padding: 0.5rem 1.1rem !important;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.nav-cta-outline:hover {
  background: var(--primary-color);
  color: #fff !important;
}

.nav-cta-solid {
  padding: 0.5rem 1.1rem !important;
  font-size: 0.95rem;
  white-space: nowrap;
}

[data-theme="dark"] .theme-toggle .fa-moon,
.theme-toggle .fa-sun { display: none; }
[data-theme="dark"] .theme-toggle .fa-sun { display: inline-block; }

.btn-primary {
  background: var(--gradient-1);
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(23, 182, 250, 0.3);
}


/* ========================================================================
   DROPDOWN & MULTI-LEVEL SUBMENUS
   ======================================================================== */
/* Ensure any shown dropdown is positioned and animated.
   Absolute positioning is desktop-only (matches navbar-expand-lg) - below
   that, Bootstrap's own collapsed-navbar behavior needs dropdowns to expand
   inline (position: static) instead of floating over the stacked menu. */
.dropdown-menu.show {
  display: block !important;
  opacity: 1 !important;
  transform: scale(1) !important;
}

@media (min-width: 992px) {
  .dropdown-menu.show {
    position: absolute;
    z-index: 1050;
  }
}
/* Remove submenu arrow indicator */
.dropdown-submenu > .dropdown-item::after {
    content: none;
}
/* Base dropdown styling */
.dropdown-menu {
  min-width: 280px;
  max-height: 60vh;
  background-color: var(--surface-bg);
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
  display: none;
  opacity: 0;
  transform: scale(0.9);
}

/* Custom scrollbar */
.dropdown-menu::-webkit-scrollbar {
  width: 6px;
}
.dropdown-menu::-webkit-scrollbar-thumb {
  background-color: #a1aab8;
  border-radius: 3px;
}
.dropdown-menu::-webkit-scrollbar-track {
  background-color: #f1f3f5;
  border-radius: 3px;
}

/* Dropdown items */
.dropdown-item {
  position: relative;
  padding: 0.6rem 1rem;
  color: var(--body-text);
  background: transparent;
  transition: all 0.2s ease;
}
.dropdown-item:hover,
.dropdown-item:focus {
  background-color: color-mix(in srgb, var(--primary-color) 10%, transparent);
  color: var(--body-text);
  transform: translateX(4px);
}

/* Subtitle text within items */
.dropdown-menu .dropdown-item small {
  font-size: 0.75rem;
  line-height: 1.2;
  color: #6b7280;
  display: block;
  margin-top: 2px;
}

/* Small secondary "already a customer" link under a platform's primary
   (demo) link - kept visually subordinate so the demo click stays the
   one-click default action. */
.dropdown-login-link {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted-text);
  text-decoration: none;
  padding: 0 1rem 0.75rem;
  margin-top: -0.35rem;
}

.dropdown-login-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Multi-level submenu positioning */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu .dropdown-menu {
  position: absolute !important;
  top: 0 !important;
  left: 100% !important;
  margin-top: -1px !important;
  display: none !important;
  opacity: 0 !important;
  transform: scale(0.9) !important;
  z-index: 1051 !important;
}

.dropdown-submenu.dropstart .dropdown-menu {
  left: auto !important;
  right: 100% !important;
}

/* Arrow indicators */
.dropdown-submenu > .dropdown-item::after {
  border: solid #6b7280;
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 4px;
  transform: rotate(-45deg);
  float: right;
  margin-top: 6px;
}

/* Hover reveal for submenus */
.dropdown-submenu:hover > .dropdown-menu {
  display: block !important;
  opacity: 1 !important;
  transform: scale(1) !important;
}

/* Show class for submenus */
.dropdown-submenu .dropdown-menu.show {
  display: block !important;
  opacity: 1 !important;
  transform: scale(1) !important;
}

/* Mobile adjustments */
@media (max-width: 991px) {
  .dropdown-submenu .dropdown-menu {
    position: relative !important;
    left: 0 !important;
    right: auto !important;
    top: auto !important;
    margin: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    transform: none !important;
  }
  
  .dropdown-submenu .dropdown-menu.show {
    position: relative !important;
    left: 0 !important;
    right: auto !important;
    transform: none !important;
  }
}


/* ======================================================================== 
   HERO SECTION 
   ======================================================================== */
.hero-section {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #020F47 0%, #0a2570 45%, #0d5ba8 75%, #17B6FA 100%);
    color: white;
    position: relative;
    overflow: hidden;
    /* Fluid, content-driven vertical rhythm instead of min-height:100vh -
       100vh renders wildly differently across a tall phone, a short
       landscape tablet and an ultrawide desktop; sizing to content with
       clamp() keeps the same proportions everywhere. */
    padding-top: clamp(96px, 8vw + 64px, 152px);
    padding-bottom: clamp(56px, 6vw + 24px, 96px);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(23, 182, 250, 0.35) 0%, transparent 50%),
                radial-gradient(circle at 85% 75%, rgba(23, 182, 250, 0.2) 0%, transparent 45%);
    animation: pulse 10s ease-in-out infinite;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 3vw, 2rem);
}

/* Spread the copy/CTA/stats groups across the full column height only once
   the hero becomes a real two-column layout (lg+) and there's a taller
   sibling column to match; on mobile the groups just stack with a flat gap. */
@media (min-width: 992px) {
  .hero-content {
    justify-content: space-between;
    height: 100%;
  }
}

.hero-copy > *:last-child {
    margin-bottom: 0;
}

.hero-title {
    font-size: clamp(1.85rem, 4vw + 1rem, 3.5rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: clamp(1.05rem, 1vw + 0.85rem, 1.5rem);
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-description {
    font-size: clamp(0.95rem, 0.3vw + 0.85rem, 1.125rem);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.btn-hero-primary {
    background: white;
    color: #020F47;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-hero-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    color: #020F47;
}

.btn-hero-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.3);
    border-color: white;
    color: white;
}

/* ======================================================================== 
   SECTIONS 
   ======================================================================== */
.section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--muted-text);
    text-align: center;
    margin: 0 auto 4rem;
}

.section-dark {
    background: var(--dark-bg);
    color: white;
}

.section-dark .section-subtitle {
    color: rgba(255,255,255,0.7);
}

/* ======================================================================== 
   FEATURE CARDS 
   ======================================================================== */
.feature-card {
    background: var(--surface-bg);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s;
    height: 100%;
    border-top: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-top-color: #020F47;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: white;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--muted-text);
    line-height: 1.7;
}

/* ======================================================================== 
   FORMS 
   ======================================================================== */
.form-control {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 2px solid var(--surface-border);
    background: var(--surface-bg);
    color: var(--body-text);
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(23, 182, 250, 0.25);
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--body-text);
}

/* ========================================================================
   PRICING
   ======================================================================== */
.btn-outline-primary {
  border: 1.5px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  background: transparent !important;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: all 0.2s;
}

.btn-outline-primary:hover {
  background: var(--primary-color) !important;
  color: #fff !important;
}

.pricing-card {
  background: var(--surface-bg);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.pricing-card--featured {
  border: 2px solid var(--primary-color);
  box-shadow: 0 20px 40px rgba(23, 182, 250, 0.15);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-1);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  color: var(--body-text);
}

.pricing-tagline {
  color: var(--muted-text);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  min-height: 2.7rem;
}

.pricing-amount {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--body-text);
  margin-bottom: 0.25rem;
  line-height: 1;
}

.pricing-currency {
  font-size: 1.5rem;
  font-weight: 700;
  vertical-align: top;
}

.pricing-period {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted-text);
}

.pricing-annual-note {
  font-size: 0.85rem;
  color: var(--muted-text);
  margin-bottom: 1.5rem;
  min-height: 1.2rem;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  flex: 1;
}

.pricing-features li {
  padding: 0.6rem 0 0.6rem 1.6rem;
  position: relative;
  font-size: 0.92rem;
  color: var(--body-text);
  border-bottom: 1px solid var(--surface-border);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--primary-color);
  position: absolute;
  left: 0;
  top: 0.7rem;
  font-size: 0.75rem;
}

.pricing-note {
  text-align: center;
  color: var(--muted-text);
  font-size: 0.95rem;
  margin-top: 2.5rem;
}

.pricing-note a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
}

.pricing-note a:hover {
  text-decoration: underline;
}

/* ========================================================================
   CTA SECTION
   ======================================================================== */
.cta-section {
    background: var(--gradient-1);
    color: white;
    text-align: center;
    padding: 6rem 0;
}

.cta-section h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

/* ======================================================================== 
   FOOTER 
   ======================================================================== */
.footer {
    background: var(--dark-bg);
    color: white;
    padding: 4rem 0 2rem;
}

.footer h5 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

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

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    margin-top: 3rem;
    text-align: center;
    color: rgba(255,255,255,0.6);
}


/* ======================================================================== 
   HERO STATS PLACEHOLDERS 
   ======================================================================== */

.hero-stats {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 1.25rem;
  color: #fff;
  text-align: center;
  border-radius: 20px;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  padding: 1.25rem 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  overflow: hidden;
}

.hero-stat::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2), transparent 70%);
  transform: scale(0);
  transition: transform 0.4s ease;
}

.hero-stat:hover::before {
  transform: scale(1);
}

.hero-stat:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.2);
}

.hero-stat-number {
  display: block;
  font-size: 2.25rem;
  font-weight: 800;
  color: #17B6FA;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px rgba(0, 234, 255, 0.6);
  transition: color 0.3s ease;
}

.hero-stat:hover .hero-stat-number {
  color: #ffea00;
  text-shadow: 0 0 15px rgba(255, 234, 0, 0.8);
}

.hero-stat-label {
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  color: #dcdcdc;
  font-weight: 500;
  transition: color 0.3s ease;
}

.hero-stat:hover .hero-stat-label {
  color: #ffffff;
}

@media (max-width: 576px) {
  .hero-stats {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  .hero-stat {
    flex: 1 1 calc(50% - 0.5rem);
  }
}


/* ======================================================================== 
   IMAGE PLACEHOLDERS 
   ======================================================================== */
.img-placeholder {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-text);
    font-weight: 600;
    border-radius: 8px;
}

/* ======================================================================== 
   RESPONSIVE 
   ======================================================================== */
@media (max-width: 768px) {
    /* hero-title/hero-subtitle now scale continuously via clamp() above */
    .section-title {
        font-size: 2rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }
}

/* ======================================================================== 
   UTILITIES 
   ======================================================================== */
.text-gradient {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

/* ========================================================================
   SCROLL REVEAL (used across kit/feature pages - see JS.php for the
   IntersectionObserver that toggles .is-visible)
   ======================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-stagger.is-visible > * {
    opacity: 1;
    transform: translateY(0);
}
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-stagger > * {
        transition: none;
        opacity: 1;
        transform: none;
    }
}

/* ========================================================================
   KIT SHOWCASE - "how it works" step timeline + animated app-preview mockup
   used on every assessment/compliance/monitoring kit page
   ======================================================================== */
.kit-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
}
@media (max-width: 991px) {
    .kit-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .kit-steps { grid-template-columns: 1fr; }
}
.kit-step {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.75rem 1.25rem;
    text-align: left;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.kit-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.12);
}
.kit-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-1);
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
}
.kit-step h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.kit-step p {
    color: var(--muted-text);
    font-size: 0.92rem;
    margin-bottom: 0;
}

/* Fake app-preview window: browser chrome + sidebar + animated main panel */
.mock-app-window {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}
.mock-app-window__bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.7rem 1rem;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}
.mock-app-window__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
}
.mock-app-window__dot:nth-child(1) { background: #f87171; }
.mock-app-window__dot:nth-child(2) { background: #fbbf24; }
.mock-app-window__dot:nth-child(3) { background: #34d399; }
.mock-app-window__title {
    margin-left: 0.75rem;
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 500;
}
.mock-app-window__body {
    display: flex;
    min-height: 320px;
}
.mock-app-window__sidebar {
    width: 160px;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    padding: 1rem 0.75rem;
    flex-shrink: 0;
}
.mock-nav-item {
    padding: 0.5rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--muted-text);
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.mock-nav-item.active {
    background: #e0e7ff;
    color: var(--primary-color);
    font-weight: 600;
}
.mock-app-window__main {
    flex: 1;
    padding: 1.5rem;
    min-width: 0;
}

@media (max-width: 575.98px) {
    .mock-app-window__sidebar {
        display: none;
    }
    .mock-app-window__main {
        padding: 1rem;
    }
    .mock-app-window__body {
        min-height: 0;
    }
}
.mock-metric-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.mock-metric {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.85rem 1.1rem;
    flex: 1;
    min-width: 110px;
}
.mock-metric-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
}
.mock-metric-label {
    font-size: 0.72rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mock-progress-row {
    margin-bottom: 1rem;
}
.mock-progress-row .label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #475569;
    margin-bottom: 0.35rem;
}
.mock-progress-track {
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}
.mock-progress-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: var(--gradient-1);
    transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.is-visible .mock-progress-fill {
    width: var(--pct, 60%);
}

.mock-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mock-check-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: #334155;
    padding: 0.4rem 0;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.is-visible .mock-check-item {
    opacity: 1;
    transform: translateX(0);
}
.is-visible .mock-check-item:nth-child(1) { transition-delay: 0.1s; }
.is-visible .mock-check-item:nth-child(2) { transition-delay: 0.3s; }
.is-visible .mock-check-item:nth-child(3) { transition-delay: 0.5s; }
.is-visible .mock-check-item:nth-child(4) { transition-delay: 0.7s; }
.mock-check-item .badge-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    flex-shrink: 0;
}

/* ========================================================================
   DARK THEME - overrides for Bootstrap components this site relies on
   (cards, forms, tables) that don't otherwise read the CSS variables above,
   plus the mock-app-window preview panel's own hardcoded light colors.
   ======================================================================== */
[data-theme="dark"] .card,
[data-theme="dark"] .dropdown-menu {
    background-color: var(--surface-bg);
    border-color: var(--surface-border);
    color: var(--body-text);
}
[data-theme="dark"] .card .text-muted,
[data-theme="dark"] .text-muted {
    color: var(--muted-text) !important;
}
[data-theme="dark"] .form-select {
    background-color: var(--surface-bg);
    border-color: var(--surface-border);
    color: var(--body-text);
}
[data-theme="dark"] .bg-light {
    background-color: var(--light-bg) !important;
}
[data-theme="dark"] .alert-danger {
    background-color: #3a1220;
    border-color: #6b1f36;
    color: #fecdd3;
}
[data-theme="dark"] .mock-app-window {
    border-color: var(--surface-border);
    box-shadow: 0 20px 45px rgba(0,0,0,0.4);
}
[data-theme="dark"] .mock-app-window__bar,
[data-theme="dark"] .mock-app-window__sidebar {
    background: var(--light-bg);
    border-color: var(--surface-border);
}
[data-theme="dark"] .mock-metric {
    background: var(--light-bg);
    border-color: var(--surface-border);
}
[data-theme="dark"] .mock-metric-value {
    color: var(--body-text);
}
[data-theme="dark"] .mock-progress-track {
    background: var(--surface-border);
}
[data-theme="dark"] .mock-check-item {
    color: var(--body-text);
}
[data-theme="dark"] .mock-nav-item.active {
    background: color-mix(in srgb, var(--primary-color) 20%, transparent);
}
