/* ==================================================
   CATALYST ERP - Premium Landing Page Styles
   Deep Navy Dark Theme | Indigo/Cyan Accents
   Typography: Space Grotesk + Plus Jakarta Sans
   ================================================== */

/* --- Custom Properties --- */
:root {
  --ct-bg: #0a0e27;
  --ct-bg-alt: #0d1230;
  --ct-surface: #111640;
  --ct-surface-hover: #1a2055;
  --ct-primary: #6366f1;
  --ct-primary-hover: #4f46e5;
  --ct-accent: #06b6d4;
  --ct-accent-light: #22d3ee;
  --ct-gradient: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  --ct-text: #e2e8f0;
  --ct-text-muted: #94a3b8;
  --ct-heading: #f8fafc;
  --ct-border: rgba(99, 102, 241, 0.15);
  --ct-glow: 0 0 60px rgba(99, 102, 241, 0.1);
  --ct-radius: 16px;
  --ct-radius-sm: 10px;
  --ct-radius-lg: 24px;
  --ct-font-display: 'Space Grotesk', sans-serif;
  --ct-font-body: 'Plus Jakarta Sans', sans-serif;
}

/* --- Base Overrides --- */
body {
  font-family: var(--ct-font-body) !important;
  color: var(--ct-text);
  background: var(--ct-bg) !important;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ct-font-display) !important;
  color: var(--ct-heading);
  font-weight: 700;
}
p { color: var(--ct-text-muted); line-height: 1.7; }
a { transition: all 0.3s ease; }
.container { max-width: 1280px; }
.section-gap { padding: 100px 0; }

/* --- BG Class Overrides --- */
.bg-dark { background: var(--ct-bg-alt) !important; color: var(--ct-text) !important; }
.bg-primary { background: var(--ct-bg) !important; }
.bg-gray-100 { background: var(--ct-surface) !important; }
.theme-alt-bg { background: var(--ct-surface) !important; }
.text-white { color: var(--ct-heading) !important; }

/* --- Announcement Bar --- */
.announcement {
  background: var(--ct-gradient) !important;
  padding: 10px 0 !important;
  border: none !important;
}
.announcement p { color: #fff; font-size: 14px; font-weight: 500; }
.announcement a { color: #fff; text-decoration: underline; }

/* --- Header / Navbar --- */
.main-header { position: relative; z-index: 1000; }
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1050;
  padding: 16px 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
}
.navbar.default {
  background: rgba(10, 14, 39, 0.9);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--ct-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
.navbar.top-nav-collapse { transform: translateY(-100%); }
.navbar.top-nav-collapse.default { transform: translateY(0); }
.header-left { width: 150px; }
.header-left img { max-height: 40px; width: auto; }
.navbar-brand { background: transparent !important; }
.navbar-nav { gap: 4px; }
.navbar-nav .nav-link {
  color: var(--ct-text-muted) !important; font-weight: 500; font-size: 15px;
  padding: 8px 18px !important; border-radius: 8px; transition: all 0.3s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: #fff !important; background: rgba(99, 102, 241, 0.12); }
.ms-auto .btn {
  font-weight: 600; font-size: 14px; padding: 8px 20px;
  border-radius: 10px !important; transition: all 0.3s ease;
}
.ms-auto .btn-outline-dark {
  color: var(--ct-text) !important; border-color: var(--ct-border) !important; background: transparent;
}
.ms-auto .btn-outline-dark:hover {
  background: var(--ct-primary) !important; border-color: var(--ct-primary) !important;
  color: #fff !important; box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

/* --- Hero / Banner --- */
#home {
  padding: 180px 0 120px; position: relative; overflow: hidden;
  background: var(--ct-bg) !important;
}
#home::before {
  content: ''; position: absolute; top: -50%; left: -20%;
  width: 80%; height: 200%;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
#home::after {
  content: ''; position: absolute; bottom: -30%; right: -15%;
  width: 60%; height: 150%;
  background: radial-gradient(ellipse, rgba(6, 182, 212, 0.06) 0%, transparent 60%);
  pointer-events: none;
}
.container-offset { position: relative; z-index: 2; }
#home .badge, #home span.bg-primary.rounded-pill {
  background: rgba(99, 102, 241, 0.15) !important;
  color: var(--ct-accent-light) !important;
  font-weight: 600; font-size: 13px; padding: 8px 20px;
  border: 1px solid var(--ct-border); border-radius: 100px; letter-spacing: 0.5px;
}
#home h1, #home h2 {
  font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800;
  line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 20px;
}
#home p { font-size: 18px; line-height: 1.8; max-width: 540px; }
#home .btn-outline-dark {
  color: var(--ct-text) !important; border: 2px solid var(--ct-border) !important;
  padding: 12px 28px; font-weight: 600; font-size: 15px;
  border-radius: 12px !important; transition: all 0.3s ease;
}
#home .btn-outline-dark:first-of-type {
  background: var(--ct-gradient) !important; border: none !important; color: #fff !important;
}
#home .btn-outline-dark:first-of-type:hover {
  transform: translateY(-2px); box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}
#home .btn-outline-dark:hover {
  border-color: var(--ct-primary) !important; color: #fff !important;
}
.dash-preview {
  position: relative; padding-top: 56.4%;
  border-radius: var(--ct-radius-lg); overflow: hidden;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.4), var(--ct-glow);
  border: 1px solid var(--ct-border);
}
.dash-preview img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.landing_logo {
  max-width: 100px !important; height: auto;
  filter: brightness(0) invert(0.5); opacity: 0.5; transition: all 0.3s ease;
}
.landing_logo:hover { opacity: 0.9; filter: brightness(0) invert(0.8); }

/* --- Features Section --- */
#features { position: relative; }
.title span {
  color: var(--ct-accent) !important; font-size: 13px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
}
.title h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -0.02em; }
.title p { font-size: 16px; max-width: 520px; }
.btn-primary.rounded-pill,
a.btn-primary.rounded-pill {
  background: var(--ct-gradient) !important; border: none !important;
  padding: 12px 28px; font-weight: 600; font-size: 15px;
  border-radius: 100px !important; color: #fff !important;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3); transition: all 0.3s ease;
}
.btn-primary.rounded-pill:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5); }
.feature-card {
  background: var(--ct-surface) !important;
  border: 1px solid var(--ct-border); border-radius: var(--ct-radius) !important;
  padding: 28px; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); height: 100%;
}
.feature-card:hover {
  transform: translateY(-4px); border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(99, 102, 241, 0.08);
}
.feature-card.bg-primary {
  background: var(--ct-gradient) !important; border-color: transparent;
}
.feature-card.bg-primary:hover { box-shadow: 0 12px 40px rgba(99, 102, 241, 0.4); }
.feature-card .avtar-xl, .avtar-xl {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(99, 102, 241, 0.1); margin-bottom: 16px;
}
.feature-card.bg-primary .avtar-xl { background: rgba(255, 255, 255, 0.2); }
.feature-card h3, .feature-card h6 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feature-card.bg-primary h3, .feature-card.bg-primary h6,
.feature-card.bg-primary p { color: rgba(255, 255, 255, 0.9) !important; }
.feature-card p { font-size: 14px; line-height: 1.6; margin-bottom: 0; }
.features-section { margin-top: -350px; position: relative; z-index: 2; }
.features-preview {
  border-radius: var(--ct-radius-lg); overflow: hidden;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.4); border: 1px solid var(--ct-border);
  width: 82%; margin: 0 auto;
}
.features-preview img { width: 100%; display: block; }

/* --- Other Features --- */
.img-wrapper {
  position: relative; padding-top: 52%;
  border-radius: var(--ct-radius); overflow: hidden;
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.3); border: 1px solid var(--ct-border);
}
.img-wrapper img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }

/* --- Discover Section --- */
.discover .card {
  background: var(--ct-surface) !important;
  border: 1px solid var(--ct-border) !important;
  border-radius: var(--ct-radius) !important; transition: all 0.4s ease; overflow: hidden;
}
.discover .card:hover {
  transform: translateY(-4px); border-color: rgba(99, 102, 241, 0.3) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.discover .card.bg-primary {
  background: var(--ct-gradient) !important; border-color: transparent !important;
}
.discover .card.bg-transparent { background: var(--ct-surface) !important; }
.discover .card.bg-primary .avtar-xl { background: rgba(255, 255, 255, 0.2); }
.discover .card.bg-primary h3, .discover .card.bg-primary h6,
.discover .card.bg-primary p { color: rgba(255, 255, 255, 0.9) !important; }
.btn-outline-light.rounded-pill {
  color: var(--ct-text) !important; border-color: var(--ct-border) !important;
  padding: 12px 28px; font-weight: 600; border-radius: 100px !important; transition: all 0.3s ease;
}
.btn-outline-light.rounded-pill:hover {
  background: rgba(255, 255, 255, 0.05) !important; border-color: var(--ct-primary) !important;
}

/* --- Screenshots --- */
.screenshot-card {
  position: relative; padding-top: 62%;
  border-radius: var(--ct-radius); overflow: hidden;
  border: 1px solid var(--ct-border); transition: all 0.4s ease;
}
.screenshot-card:hover {
  transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(99, 102, 241, 0.3);
}
.screenshot-card img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }

/* --- Pricing --- */
#plan { position: relative; overflow: hidden; }
#plan::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 60%; height: 1px; background: var(--ct-gradient); opacity: 0.3;
}
.price-card {
  background: var(--ct-surface); border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius-lg) !important; padding: 36px 28px;
  position: relative; transition: all 0.4s ease;
  height: 100%; display: flex; flex-direction: column;
}
.price-card:hover {
  transform: translateY(-6px); border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), var(--ct-glow);
}
.price-card.bg-dark {
  background: var(--ct-gradient) !important; border-color: transparent !important;
}
.price-card.bg-dark:hover { box-shadow: 0 20px 60px rgba(99, 102, 241, 0.4); }
.price-badge {
  display: inline-block; padding: 6px 16px; border-radius: 100px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 16px;
}
.price-badge.bg-dark {
  background: rgba(99, 102, 241, 0.15) !important; color: var(--ct-accent-light) !important;
}
.price-card.bg-dark .price-badge.bg-dark {
  background: rgba(255, 255, 255, 0.2) !important; color: #fff !important;
}
.p-price {
  font-family: var(--ct-font-display); font-size: 42px; font-weight: 800;
  color: var(--ct-heading); margin: 12px 0 20px;
}
.p-price span { font-size: 16px; font-weight: 500; color: var(--ct-text-muted); }
.price-card.bg-dark .p-price, .price-card.bg-dark .p-price span { color: #fff; }
.p-list { list-style: none; padding: 0; margin: 0 0 24px; flex-grow: 1; }
.p-list li {
  padding: 8px 0; font-size: 14px; color: var(--ct-text-muted);
  display: flex; align-items: center; gap: 10px;
}
.p-list li i, .p-list li svg { color: var(--ct-accent); width: 18px; }
.price-card.bg-dark .p-list li { color: rgba(255, 255, 255, 0.8); }
.price-card .btn { width: 100%; }
.price-card.bg-dark .btn-primary.rounded-pill {
  background: #fff !important; color: var(--ct-primary) !important;
}

/* --- FAQ --- */
.faqs .accordion-item {
  background: transparent !important; border: none !important;
  border-bottom: 1px solid var(--ct-border) !important;
}
.faqs .accordion-button {
  background: transparent !important; color: var(--ct-heading) !important;
  font-family: var(--ct-font-display); font-size: 16px;
  padding: 20px 0; box-shadow: none !important;
}
.faqs .accordion-button::after { filter: invert(0.7); }
.faqs .accordion-button:not(.collapsed) { color: var(--ct-accent) !important; }
.faqs .accordion-body { color: var(--ct-text-muted); padding: 0 0 20px; font-size: 15px; line-height: 1.7; }

/* --- Testimonials --- */
.testimonial .card.bg-dark {
  background: var(--ct-surface) !important; border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius) !important; transition: all 0.3s ease;
}
.testimonial .card.bg-dark:hover { border-color: rgba(99, 102, 241, 0.3); transform: translateY(-2px); }
.testimonial .card h3 { font-size: 16px; margin-bottom: 8px; }
.testimonial .card .hljs-comment { color: var(--ct-text-muted) !important; font-size: 14px; line-height: 1.6; }
.testimonial .card svg.feather-star, .testimonial .card i[data-feather="star"] { color: #fbbf24; }
.testimonial .card .wid-40 {
  width: 40px; height: 40px; object-fit: cover; border: 2px solid var(--ct-border);
}
.testimonial .theme-avtar { background: rgba(99, 102, 241, 0.15) !important; }

/* --- Footer --- */
.site-footer { background: var(--ct-bg-alt) !important; padding-top: 80px; }
.footer-row {
  display: flex; flex-wrap: wrap; gap: 40px; padding-bottom: 40px;
}
.ftr-col { flex: 1; min-width: 150px; }
.cmp-detail { max-width: 300px; flex: 0 0 300px; }
.footer-logo img { max-width: 160px; height: auto; }
.ftr-col ul { padding: 0; }
.ftr-col ul li { margin-bottom: 10px; }
.ftr-col ul li a {
  color: var(--ct-text-muted); font-size: 14px; text-decoration: none; transition: all 0.3s ease;
}
.ftr-col ul li a:hover { color: var(--ct-accent); padding-left: 4px; }
.ftr-subscribe { max-width: 420px; flex: 0 0 420px; }
.ftr-subscribe h2 { font-size: 22px; margin-bottom: 10px; color: var(--ct-heading); }
.input-wrapper {
  display: flex; border-radius: 100px !important; overflow: hidden;
  background: var(--ct-surface); border: 1px solid var(--ct-border) !important; padding: 4px;
}
.input-wrapper input {
  flex: 1; border: none; background: transparent;
  padding: 12px 20px; color: var(--ct-text); font-size: 14px; outline: none;
}
.input-wrapper input::placeholder { color: var(--ct-text-muted); }
.input-wrapper .btn {
  border-radius: 100px !important; padding: 10px 24px; font-weight: 600; font-size: 14px;
  background: var(--ct-gradient) !important; color: #fff !important;
  border: none !important; white-space: nowrap;
}
.site-footer .border-top { border-color: var(--ct-border) !important; }
.site-footer .border-top p { font-size: 13px; color: var(--ct-text-muted); padding: 16px 0; }

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.1); }
  50% { box-shadow: 0 0 40px rgba(99, 102, 241, 0.25); }
}
.animate-in { animation: fadeInUp 0.6s ease-out forwards; }

/* --- Mobile Sidebar --- */
.navbar-toggler {
  background: var(--ct-gradient) !important; border: none !important;
  padding: 8px 12px; border-radius: 8px;
}
.navbar-toggler-icon { filter: brightness(10); }

/* --- Responsive --- */
@media (max-width: 1400px) { .container { max-width: 1140px; } }
@media (max-width: 1260px) {
  .features-section { margin-top: -250px; }
  .features-preview { width: 90%; }
}
@media (max-width: 991px) {
  .section-gap { padding: 70px 0; }
  #home { padding: 140px 0 80px; }
  .features-section { margin-top: -150px; }
  .features-preview { width: 95%; }
  .container-offset { padding: 0 15px; }
  .navbar-collapse {
    position: fixed; top: 0; left: -280px; width: 270px; height: 100vh;
    background: var(--ct-bg); border-right: 1px solid var(--ct-border);
    padding: 24px; transition: left 0.3s ease; z-index: 1060; overflow-y: auto;
  }
  .navbar-collapse.show { left: 0; }
  .navbar-nav { flex-direction: column; gap: 2px; }
  .navbar-nav .nav-link { padding: 12px 16px !important; }
  .footer-row { flex-direction: column; }
  .cmp-detail, .ftr-subscribe { max-width: 100%; flex: 1; }
}
@media (max-width: 767px) {
  .section-gap { padding: 60px 0; }
  #home { padding: 120px 0 60px; }
  #home h1, #home h2 { font-size: 2rem; }
  .features-section { margin-top: -80px; }
  .p-price { font-size: 32px; }
  .dash-preview { border-radius: var(--ct-radius); }
  .ms-auto .btn .hide-mob { display: none; }
  .landing_logo { max-width: 70px !important; }
}
@media (max-width: 480px) {
  .section-gap { padding: 50px 0; }
  #home { padding: 100px 0 50px; }
  #home h1, #home h2 { font-size: 1.75rem; }
  .title h2 { font-size: 1.5rem; }
  .features-section { margin-top: -40px; }
  .input-wrapper { flex-direction: column; border-radius: var(--ct-radius) !important; }
  .input-wrapper .btn { border-radius: 0 0 var(--ct-radius) var(--ct-radius) !important; width: 100%; }
}

/* --- Dark Mode --- */
.landing-dark { background: var(--ct-bg) !important; }
.landing-dark .bg-gray-100 { background: var(--ct-surface) !important; }

/* --- RTL --- */
[dir="rtl"] .ftr-col ul li a:hover { padding-left: 0; padding-right: 4px; }
[dir="rtl"] .navbar-collapse { left: auto; right: -280px; border-right: none; border-left: 1px solid var(--ct-border); }
[dir="rtl"] .navbar-collapse.show { right: 0; left: auto; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--ct-bg); }
::-webkit-scrollbar-thumb { background: var(--ct-surface); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--ct-primary); }
html { scroll-behavior: smooth; }
