:root {
  --primary-color: #4f46e5;       /* Indigo 600 */
  --primary-hover: #4338ca;       /* Indigo 700 */
  --primary-light: #e0e7ff;       /* Indigo 100 */
  --text-main: #0f172a;           /* Slate 900 */
  --text-muted: #475569;          /* Slate 600 */
  --bg-main: #f8fafc;             /* Slate 50 */
  --bg-card: #ffffff;
  --border-color: #e2e8f0;        /* Slate 200 */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* Force Light Mode & Prevent dark-theme inherits */
html, body {
  background-color: var(--bg-main) !important;
  color: var(--text-main) !important;
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

/* Selection Highlight */
::selection {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

/* Global Typography overrides */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.025em;
}

p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Premium Sticky Navbar Styling */
.custom-navbar {
  background-color: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.nav-brand-container {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-main);
  text-decoration: none;
}

.brand-dot {
  width: 10px;
  height: 10px;
  background-color: var(--primary-color);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.6);
}

.docs-label {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 1rem;
}

.nav-link-custom {
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-link-custom:hover, .nav-link-custom.active {
  color: var(--primary-color) !important;
  background-color: var(--primary-light);
}

/* Ecosystem dropdown */
.dropdown-menu-custom {
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
  background-color: #ffffff;
  min-width: 200px;
}

.dropdown-menu-2col {
  display: none; /* hidden by default, shown by Bootstrap */
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  min-width: 340px;
}

.dropdown-menu-2col.show {
  display: grid !important;
}

@media (max-width: 991.98px) {
  .dropdown-menu-2col.show {
    grid-template-columns: 1fr !important;
    min-width: 100%;
  }
}

.dropdown-item-custom {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  padding: 9px 12px;
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-item-custom:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.dropdown-item-custom i {
  color: var(--primary-color);
  opacity: 0.75;
}

.dropdown-item-custom:hover i {
  opacity: 1;
}


/* Hero Badges & Accent Gradients */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary-light);
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Premium Modern Buttons */
.btn-indigo {
  background-color: var(--primary-color);
  color: #ffffff;
  font-weight: 600;
  border-radius: 10px;
  padding: 12px 24px;
  border: 1px solid var(--primary-color);
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.15);
}

.btn-indigo:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.25);
}

.btn-light-custom {
  background-color: #ffffff;
  color: var(--text-main);
  font-weight: 600;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 24px;
  transition: all 0.2s ease;
}

.btn-light-custom:hover {
  background-color: var(--bg-main);
  color: var(--primary-color);
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

/* Terminal Simulation Components */
.terminal-window {
  background-color: #0f172a; 
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
  border: 1px solid #334155;
}

.terminal-titlebar {
  background-color: #1e293b;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #334155;
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.td-red { background-color: #ef4444; }
.td-yellow { background-color: #eab308; }
.td-green { background-color: #22c55e; }

.terminal-title-text {
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
}

.terminal-btn-run {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  transition: all 0.2s;
}

.terminal-btn-run:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.terminal-screen-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #cbd5e1;
  min-height: 280px;
  max-height: 380px;
  overflow-y: auto;
}

.terminal-prompt-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background-color: #1e293b;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #334155;
  margin-bottom: 15px;
}

.terminal-prompt {
  color: #38bdf8;
  user-select: none;
}

.terminal-cmd {
  color: #f1f5f9;
  word-break: break-all;
}

.btn-terminal-copy {
  background: none;
  border: none;
  color: #94a3b8;
  transition: color 0.15s;
}

.btn-terminal-copy:hover {
  color: #f8fafc;
}

.terminal-log-output {
  color: #a7f3d0; 
  white-space: pre-line;
  line-height: 1.6;
}

/* Trust/Metrics Grid Badge */
.metrics-section {
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 2.5rem 0;
}

.metric-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--text-main);
  font-size: 1.05rem;
}

.metric-badge i {
  font-size: 1.4rem;
  color: var(--primary-color);
}

/* Modular Services Ecosystem Section */
.section-title-wrap {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem auto;
}

.section-title-wrap h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.ecosystem-container {
  background-color: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  padding: 30px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.service-cards-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 600px;
  overflow-y: auto;
  padding-right: 10px;
}

.service-cards-column::-webkit-scrollbar {
  width: 6px;
}
.service-cards-column::-webkit-scrollbar-track {
  background: var(--bg-main);
  border-radius: 8px;
}
.service-cards-column::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 8px;
}

.service-item-card {
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.service-item-card:hover {
  transform: translateX(4px);
  border-color: #cbd5e1;
}

.service-item-card.active-service {
  background-color: var(--primary-light);
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.08);
}

.service-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.service-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.1rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.active-service .service-icon-box {
  background-color: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

.status-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #16a34a; 
  background-color: #dcfce7; 
  padding: 2px 8px;
  border-radius: 50px;
}

.status-pulse-dot {
  width: 6px;
  height: 6px;
  background-color: #22c55e;
  border-radius: 50%;
  animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.5; }
}

.service-item-card h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  font-weight: 700;
}

.service-item-card p {
  font-size: 0.85rem;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.active-service .service-footer-meta {
  color: var(--primary-color);
}

/* Right Details Display Widget */
.details-widget-card {
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.widget-meta-table {
  margin: 1.5rem 0;
  border-top: 1px solid var(--border-color);
}

.widget-meta-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.widget-meta-key {
  font-weight: 600;
  color: var(--text-muted);
}

.widget-meta-val {
  font-weight: 500;
  color: var(--text-main);
}

.widget-meta-val.port-highlight {
  font-family: var(--font-mono);
  background-color: var(--primary-light);
  color: var(--primary-color);
  padding: 2px 8px;
  border-radius: 6px;
}

.feature-check-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.feature-check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.feature-check-list i {
  color: #10b981; 
  font-size: 1.1rem;
}

/* Core Features Grid Cards */
.feature-card-wrapper {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 30px;
  transition: all 0.3s ease;
  height: 100%;
}

.feature-card-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
  border-color: #cbd5e1;
}

.feature-card-icon {
  width: 48px;
  height: 48px;
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Comparison Matrix Table */
.comparison-container {
  background-color: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
}

.comparison-table th {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-weight: 700;
  padding: 16px;
}

.comparison-table td {
  padding: 16px;
  vertical-align: middle;
  color: var(--text-muted);
}

.comp-vector {
  font-weight: 600;
  color: var(--text-main);
}

.onifast-cell {
  background-color: rgba(245, 243, 255, 0.4);
}

.badge-check-onifast {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-color);
  background-color: var(--primary-light);
  padding: 4px 10px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
}

.badge-legacy-cpanel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #d97706; 
  background-color: #fef3c7; 
  padding: 4px 10px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.85rem;
}

/* Bootstrap Accordion Custom Overrides */
.accordion-custom .accordion-item {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  margin-bottom: 12px;
  border-radius: 12px !important;
  overflow: hidden;
}

.accordion-custom .accordion-button {
  background-color: #ffffff;
  color: var(--text-main);
  font-weight: 600;
  padding: 18px 24px;
  box-shadow: none;
}

.accordion-custom .accordion-button:not(.collapsed) {
  background-color: var(--bg-main);
  color: var(--primary-color);
  border-bottom: 1px solid var(--border-color);
}

.accordion-custom .accordion-body {
  padding: 20px 24px;
  color: var(--text-muted);
  line-height: 1.6;
  background-color: #ffffff;
}

/* Standalone Inner Content Page */
.standalone-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  margin-bottom: 4rem;
}

.standalone-icon-span {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--text-main);
  color: #ffffff;
  border-radius: 12px;
  padding: 14px 24px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1050;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.toast-notification.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Footer styling */
footer {
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  padding-top: 5rem;
  padding-bottom: 2.5rem;
}

.footer-col-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

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

.footer-links-list li {
  margin-bottom: 10px;
}

.footer-links-list a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links-list a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  margin-top: 4rem;
  padding-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 15px;
}

.footer-bottom-links a:hover {
  color: var(--primary-color);
}