/**
 * System landing page styles.
 * Used by templates/system_landing.html
 */

.system-landing {
  font-size: 1.125rem;
}

.navbar-system {
  padding: 0.75rem 0;
  transition: box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  font-size: 1.1rem;
  /* Default: visible over dark hero – translucent dark bar, light text */
  background: rgba(13, 13, 24, 0.92);
  backdrop-filter: blur(10px);
}

.navbar-system .navbar-brand.text-dark,
.navbar-system .nav-link,
.navbar-system .navbar-toggler,
.navbar-system .navbar-toggler i,
.navbar-system .btn.rounded-circle {
  color: rgba(241, 243, 245, 0.95);
}

.navbar-system .nav-link:hover {
  color: #fff;
}

.navbar-system .navbar-toggler {
  border-color: rgba(241, 243, 245, 0.35);
}

/* Scrolled: light mode – white bar, dark text */
.navbar-system.is-sticky {
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.navbar-system.is-sticky .navbar-brand.text-dark,
.navbar-system.is-sticky .nav-link,
.navbar-system.is-sticky .navbar-toggler,
.navbar-system.is-sticky .navbar-toggler i,
.navbar-system.is-sticky .btn.rounded-circle {
  color: #212529;
}

.navbar-system.is-sticky .nav-link:hover {
  color: #0d0d0d;
}

.navbar-system.is-sticky .navbar-toggler {
  border-color: rgba(0, 0, 0, 0.2);
  color: #212529;
}

.hero-system {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 5rem 0 4rem;
  position: relative;
  background: linear-gradient(180deg, #0d0d12 0%, #14122a 45%, #1a1838 100%);
  overflow: hidden;
}

.hero-system .bg-pattern {
  display: none;
}

/* Gradient blob – right side (soft blue/blush glow) */
.hero-gradient-blob {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translate(40%, -50%);
  width: 70%;
  max-width: 600px;
  height: 120%;
  min-height: 500px;
  background: linear-gradient(135deg, rgba(78, 115, 223, 0.2) 0%, rgba(102, 16, 242, 0.18) 50%, rgba(88, 28, 135, 0.15) 100%);
  border-radius: 50% 0 0 50%;
  filter: blur(40px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-system .hero-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: #f1f3f5;
  letter-spacing: -0.02em;
}

.hero-system .hero-lead {
  font-size: 1.15rem;
  max-width: 32em;
  color: rgba(241, 243, 245, 0.85);
}

/* Hero right: platform icons + cards */
.hero-visual {
  min-height: 380px;
  padding-left: 2rem;
}

.hero-platforms {
  position: relative;
  z-index: 2;
  margin-bottom: 1.5rem;
}

.hero-platforms-label {
  display: block;
  font-size: 0.9rem;
  color: #6ea8fe;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.hero-platform-icons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-platform-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(110, 168, 254, 0.2);
  color: #6ea8fe;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.hero-card {
  position: relative;
  z-index: 2;
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  background: rgba(42, 47, 52, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-card-main {
  max-width: 320px;
  margin-left: 0;
}

.hero-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #e9ecef;
}

.hero-card-desc {
  font-size: 0.9rem;
  color: #adb5bd !important;
}

.hero-card-overlay {
  position: absolute;
  bottom: 0;
  right: 0;
  max-width: 200px;
  padding: 1rem 1.25rem;
  margin-top: -1.5rem;
  margin-right: 1rem;
}

.hero-card-overlay-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6ea8fe;
  margin-bottom: 0.75rem;
}

.hero-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  padding: 0.25rem 0;
}

.hero-metric-label {
  color: #adb5bd;
}

.hero-metric-value {
  font-weight: 600;
  color: #e9ecef;
}

/* CTA bar below hero */
.hero-cta-bar {
  margin-top: 3rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.hero-cta-bar-text {
  font-size: 0.95rem;
  color: rgba(241, 243, 245, 0.85);
  max-width: 28em;
}

.hero-system h1 {
  font-size: 2.5rem;
}

.hero-system .lead {
  font-size: 1.35rem;
}

@media (max-width: 991.98px) {
  .hero-system {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 4rem 0 3rem;
  }
  .hero-content {
    text-align: center;
  }
  .hero-system .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-content .d-flex {
    justify-content: center;
  }
  .hero-cta-bar {
    flex-direction: column;
    text-align: center;
  }
  .hero-cta-bar-text {
    max-width: none;
  }
}

.section-system {
  padding: 4rem 0;
}

.section-system-alt {
  background: #f8f9fa;
}

.section-system h2 {
  font-size: 1.9rem;
}

/* Plans & Pricing – equal-height cards */
#plans .tab-pane .row {
  align-items: stretch;
}

#plans .card.pricing-box {
  height: 100%;
  display: flex;
  flex-direction: column;
}

#plans .card.pricing-box .card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

#plans .card.pricing-box .card-body .list-unstyled {
  flex: 1 1 auto;
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.footer-system {
  background: #212529;
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 2rem;
  font-size: 1.05rem;
}

.footer-system a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.footer-system a:hover {
  color: #fff;
}

/* Dark mode – landing page */
html[data-layout-mode="dark"] .system-landing {
  background-color: #1a1d21 !important;
}

html[data-layout-mode="dark"] .navbar-system,
html[data-layout-mode="dark"] .navbar-system.is-sticky {
  background: rgba(26, 29, 33, 0.98) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

html[data-layout-mode="dark"] .navbar-system .navbar-brand.text-dark,
html[data-layout-mode="dark"] .navbar-system.is-sticky .navbar-brand.text-dark {
  color: #e9ecef !important;
}

html[data-layout-mode="dark"] .navbar-system .nav-link,
html[data-layout-mode="dark"] .navbar-system.is-sticky .nav-link {
  color: rgba(233, 236, 239, 0.85);
}

html[data-layout-mode="dark"] .navbar-system .nav-link:hover,
html[data-layout-mode="dark"] .navbar-system.is-sticky .nav-link:hover {
  color: #fff;
}

html[data-layout-mode="dark"] .navbar-system .navbar-toggler,
html[data-layout-mode="dark"] .navbar-system.is-sticky .navbar-toggler {
  color: #e9ecef;
  border-color: rgba(233, 236, 239, 0.3);
}

html[data-layout-mode="dark"] .navbar-system .navbar-toggler i,
html[data-layout-mode="dark"] .navbar-system.is-sticky .navbar-toggler i,
html[data-layout-mode="dark"] .navbar-system .btn.rounded-circle,
html[data-layout-mode="dark"] .navbar-system.is-sticky .btn.rounded-circle {
  color: #e9ecef !important;
}

/* Hero keeps black–blush gradient in dark mode (no override) */
html[data-layout-mode="dark"] .hero-system .bg-pattern {
  display: none;
}

/* Dark: stronger blue gradient blob */
html[data-layout-mode="dark"] .hero-gradient-blob {
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.2) 0%, rgba(13, 110, 253, 0.35) 50%, rgba(102, 16, 242, 0.2) 100%);
}

html[data-layout-mode="dark"] .hero-system .hero-title {
  color: #e9ecef;
}

html[data-layout-mode="dark"] .hero-system .hero-lead {
  color: rgba(233, 236, 239, 0.8) !important;
}

html[data-layout-mode="dark"] .hero-card {
  background: rgba(42, 47, 52, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

html[data-layout-mode="dark"] .hero-card-title,
html[data-layout-mode="dark"] .hero-card-overlay-title {
  color: #e9ecef;
}

html[data-layout-mode="dark"] .hero-card-desc,
html[data-layout-mode="dark"] .hero-metric-label {
  color: #adb5bd !important;
}

html[data-layout-mode="dark"] .hero-metric-value {
  color: #e9ecef;
}

html[data-layout-mode="dark"] .hero-platform-icon {
  background: rgba(13, 110, 253, 0.2);
  color: #6ea8fe;
}

html[data-layout-mode="dark"] .hero-cta-bar {
  background: rgba(255, 255, 255, 0.06);
}

html[data-layout-mode="dark"] .hero-cta-bar-text {
  color: #adb5bd !important;
}

html[data-layout-mode="dark"] .hero-system h1 {
  color: #e9ecef;
}

html[data-layout-mode="dark"] .hero-system .lead {
  color: rgba(233, 236, 239, 0.8) !important;
}

html[data-layout-mode="dark"] .section-system {
  background-color: #1e2125 !important;
  color: #ced4da;
}

html[data-layout-mode="dark"] .section-system-alt {
  background-color: #23272b !important;
}

html[data-layout-mode="dark"] .section-system h2,
html[data-layout-mode="dark"] .section-system h4,
html[data-layout-mode="dark"] .section-system h5 {
  color: #e9ecef;
}

html[data-layout-mode="dark"] .section-system .text-muted {
  color: #adb5bd !important;
}

html[data-layout-mode="dark"] .section-system .card.pricing-box {
  background-color: #2a2f34 !important;
  border-color: #3d4349;
}

html[data-layout-mode="dark"] .section-system .card .text-muted {
  color: #adb5bd !important;
}

html[data-layout-mode="dark"] .section-system .card h5 {
  color: #e9ecef;
}

html[data-layout-mode="dark"] .section-system .nav-pills .nav-link {
  color: rgba(233, 236, 239, 0.8);
}

html[data-layout-mode="dark"] .section-system .nav-pills .nav-link.active {
  background-color: #405189;
  color: #fff;
}

html[data-layout-mode="dark"] .section-system .card .list-unstyled .flex-grow-1 {
  color: #ced4da;
}

html[data-layout-mode="dark"] body {
  background-color: #1a1d21 !important;
}
