:root {
  --bg-primary: #0b0f19;
  --bg-sidebar: rgba(15, 22, 38, 0.7);
  --bg-card: rgba(22, 31, 54, 0.45);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(255, 255, 255, 0.15);
  
  /* Palette Colors */
  --color-cyan: #00f0ff;
  --color-cyan-dim: rgba(0, 240, 255, 0.15);
  --color-purple: #bd00ff;
  --color-purple-dim: rgba(189, 0, 255, 0.1);
  --color-green: #39d353;
  --color-green-dim: rgba(57, 211, 83, 0.12);
  --color-warning: #ffaa00;
  --color-warning-dim: rgba(255, 170, 0, 0.12);
  --color-danger: #ff3366;
  --color-danger-dim: rgba(255, 51, 102, 0.15);
  
  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html, body {
  background-color: var(--bg-primary);
  color: #e2e8f0;
  font-family: var(--font-body);
  overflow: hidden;
  height: 100vh;
  max-height: 100vh;
  position: relative;
  scroll-behavior: smooth;
  overscroll-behavior: none;
}

/* Background Ambient Glow Elements */
.bg-glow-1 {
  position: absolute;
  top: -10%;
  left: 20%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(189, 0, 255, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

.bg-glow-2 {
  position: absolute;
  bottom: -10%;
  right: 10%;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

/* Color Classes helper */
.text-cyan { color: var(--color-cyan) !important; }
.text-green { color: var(--color-green) !important; }
.text-warning { color: var(--color-warning) !important; }
.text-danger { color: var(--color-danger) !important; }
.text-muted { color: #64748b; }
.bg-cyan-dim { background-color: var(--color-cyan-dim); }
.bg-danger-dim { background-color: var(--color-danger-dim); }
.bg-warning-dim { background-color: var(--color-warning-dim); }
.bg-success-dim { background-color: var(--color-green-dim); }

/* Main layout framework */
.app-container {
  display: flex;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

/* Sidebar Styling */
.sidebar {
  width: 260px;
  background: rgba(10, 15, 30, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 100%;
  box-shadow: inset -1px 0 0 0 rgba(255, 255, 255, 0.03);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-purple));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.25);
}

.logo-icon svg {
  width: 22px;
  height: 22px;
}

.logo-text h1 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #fff;
  line-height: 1.1;
}

.logo-text h1 span {
  background: linear-gradient(90deg, var(--color-cyan), var(--color-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text .subtitle {
  font-size: 0.65rem;
  font-weight: 700;
  color: #475569;
  letter-spacing: 2px;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: auto;
}

.nav-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  transition: var(--transition-fast);
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.03);
}

.nav-btn.active {
  background: rgba(0, 240, 255, 0.06);
  color: var(--color-cyan);
  border: 1px solid rgba(0, 240, 255, 0.15);
  box-shadow: inset 0 0 12px rgba(0, 240, 255, 0.05);
}

.nav-btn .icon {
  width: 18px;
  height: 18px;
}

.badge {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: auto;
}

.badge-alert {
  background: var(--color-danger-dim);
  color: var(--color-danger);
  border: 1px solid rgba(255, 51, 102, 0.2);
}

.system-status {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 16px;
  font-size: 0.8rem;
}

.status-header {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 1px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 6px;
}

.status-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

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

.status-label {
  color: #64748b;
}

.status-val {
  font-weight: 600;
  color: #e2e8f0;
}

/* Main Dashboard content container */
.main-content {
  flex-grow: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
  width: calc(100% - 260px);
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

/* Header design */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-header h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: -0.5px;
}

.main-header p {
  font-size: 0.9rem;
  margin-top: 4px;
}

.btn {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
}

.btn-primary {
  background: var(--color-cyan);
  border: 1px solid var(--color-cyan);
  color: #0b0f19;
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.25);
}

.btn-primary:hover {
  background: #00d2df;
  border-color: #00d2df;
  box-shadow: 0 6px 25px rgba(0, 240, 255, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: #e2e8f0;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-danger {
  background: var(--color-danger);
  border: 1px solid var(--color-danger);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 51, 102, 0.2);
}

.btn-danger:hover {
  background: #ff1a53;
  box-shadow: 0 6px 20px rgba(255, 51, 102, 0.35);
  transform: translateY(-1px);
}

.btn-icon {
  width: 16px;
  height: 16px;
}

/* Grid layout for analytics statistics cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stat-card {
  background: linear-gradient(135deg, rgba(22, 31, 54, 0.55) 0%, rgba(15, 22, 38, 0.35) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px 0 rgba(0, 0, 0, 0.25), inset 0 1px 1px 0 rgba(255, 255, 255, 0.08);
  transition: var(--transition-normal);
}

.stat-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 1px 0 rgba(255, 255, 255, 0.12);
}

.stat-card.border-danger {
  border-left: 3px solid var(--color-danger);
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon svg {
  width: 20px;
  height: 20px;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 2px;
}

/* Card details styling */
.card {
  background: linear-gradient(135deg, rgba(22, 31, 54, 0.55) 0%, rgba(15, 22, 38, 0.35) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.35), inset 0 1px 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.audit-card {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.card-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.card-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-header-left h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.card-header-right {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Filters & Search box */
.search-box {
  position: relative;
  width: 280px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #64748b;
  pointer-events: none;
}

.search-box input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: #fff;
  border-radius: 8px;
  padding: 9px 12px 9px 38px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition-fast);
}

.search-box input:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.05);
}

.filter-dropdown {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: #e2e8f0;
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 9px 16px;
  border-radius: 8px;
  outline: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-dropdown:focus {
  border-color: rgba(0, 240, 255, 0.3);
}

/* Table Design */
.table-container {
  overflow-y: auto;
  overflow-x: auto;
  flex-grow: 1;
}

.table-container::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.table-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.01);
  border-radius: 3px;
}

.table-container::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.15);
  border-radius: 3px;
}

.table-container::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 240, 255, 0.3);
}

.audit-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.audit-table th {
  background: rgba(255, 255, 255, 0.02);
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
}

.audit-table td {
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
  vertical-align: middle;
}

.audit-table tbody tr {
  transition: var(--transition-fast);
}

.audit-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.015);
}

.actions-col {
  text-align: right;
}

/* Action button inside tables */
.btn-table-action {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: #94a3b8;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  margin-left: 6px;
  transition: var(--transition-fast);
}

.btn-table-action:hover {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.btn-table-action.action-kill {
  color: var(--color-danger);
  border-color: rgba(255, 51, 102, 0.15);
  background: var(--color-danger-dim);
}

.btn-table-action.action-kill:hover {
  background: rgba(255, 51, 102, 0.25);
  color: white;
}

.btn-table-action.action-trust {
  color: var(--color-green);
  border-color: rgba(57, 211, 83, 0.15);
  background: var(--color-green-dim);
}

.btn-table-action.action-trust:hover {
  background: rgba(57, 211, 83, 0.25);
  color: white;
}

/* Process details layout */
.process-cell {
  display: flex;
  flex-direction: column;
}

.process-name {
  font-weight: 600;
  color: #fff;
}

.process-pid {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 2px;
}

/* Port label styling */
.port-badge {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
  display: inline-block;
}

/* Risk Pill Indicator */
.risk-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
}

.risk-pill.risk-high {
  background: var(--color-danger-dim);
  color: var(--color-danger);
  border: 1px solid rgba(255, 51, 102, 0.2);
}

.risk-pill.risk-medium {
  background: var(--color-warning-dim);
  color: var(--color-warning);
  border: 1px solid rgba(255, 170, 0, 0.2);
}

.risk-pill.risk-low {
  background: rgba(189, 0, 255, 0.08);
  color: #ca5fff;
  border: 1px solid rgba(189, 0, 255, 0.2);
}

.risk-pill.risk-info {
  background: var(--color-cyan-dim);
  color: var(--color-cyan);
  border: 1px solid rgba(0, 240, 255, 0.2);
}

/* Table Placeholder */
.table-placeholder {
  padding: 60px 24px !important;
  text-align: center;
}

.placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #64748b;
}

.placeholder-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  opacity: 0.4;
  color: var(--color-cyan);
}

.placeholder-content p {
  max-width: 420px;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Anomaly messages area inside port record */
.anomaly-details-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.anomaly-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.anomaly-item-text {
  font-size: 0.78rem;
  color: #e2e8f0;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-weight: 500;
}

.anomaly-bullet {
  color: var(--color-cyan);
}

.anomaly-item-text.warn .anomaly-bullet { color: var(--color-warning); }
.anomaly-item-text.crit .anomaly-bullet { color: var(--color-danger); }

.anomaly-suggestion {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-left: 14px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.02);
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 2px 6px 6px 2px;
  line-height: 1.4;
}

.anomaly-item.crit .anomaly-suggestion {
  border-left-color: var(--color-danger);
  background: rgba(255, 51, 102, 0.04);
  color: #fca5a5;
}

.anomaly-item.warn .anomaly-suggestion {
  border-left-color: var(--color-warning);
  background: rgba(255, 170, 0, 0.04);
  color: #fed7aa;
}

.anomaly-item.info .anomaly-suggestion {
  border-left-color: var(--color-cyan);
  background: rgba(0, 240, 255, 0.04);
  color: #99f6e4;
}

/* Progress bar container and loaders */
.scan-loading-panel {
  background: var(--bg-card);
  border: 1px solid rgba(0, 240, 255, 0.15);
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
}

.progress-details {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.progress-title {
  font-weight: 500;
  color: #94a3b8;
}

.progress-percent {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-cyan);
}

.progress-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-purple));
  border-radius: 3px;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px var(--color-cyan);
}

/* Modal Windows Layout */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(7, 10, 19, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-card {
  background: #111827;
  border: 1px solid rgba(255, 51, 102, 0.3);
  box-shadow: 0 10px 40px rgba(255, 51, 102, 0.15);
  width: 500px;
  border-radius: 16px;
  overflow: hidden;
  animation: modalScaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 51, 102, 0.03);
}

.modal-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-danger);
  letter-spacing: 0.5px;
  font-size: 0.95rem;
}

.modal-close-btn {
  background: none;
  border: none;
  color: #64748b;
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-close-btn:hover {
  color: white;
}

.modal-body {
  padding: 24px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #94a3b8;
}

.target-process-detail {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  margin: 20px 0;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

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

.detail-lbl {
  color: #64748b;
}

.detail-val {
  color: white;
}

.text-note {
  font-size: 0.78rem;
  border-left: 2px solid var(--color-warning);
  padding-left: 8px;
}

.modal-footer {
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.01);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Toast Alerts System */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #111827;
  border-left: 4px solid var(--color-cyan);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 16px;
  border-radius: 6px;
  width: 320px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #e2e8f0;
  font-size: 0.85rem;
  animation: slideIn 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  transition: opacity 0.3s;
}

@keyframes slideIn {
  from { transform: translateX(120%); }
  to { transform: translateX(0); }
}

.toast.toast-success { border-left-color: var(--color-green); }
.toast.toast-danger { border-left-color: var(--color-danger); }
.toast.toast-warning { border-left-color: var(--color-warning); }

.toast-msg-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toast-title {
  font-weight: 700;
  color: white;
}

.toast-desc {
  color: #94a3b8;
}

.app-footer {
  text-align: center;
  padding: 6px 0;
  border-top: 1px solid var(--border-color);
  margin-top: 4px;
}

.app-footer p {
  font-size: 0.72rem;
  color: #475569;
}


/* Responsive UI styling rules */
@media(max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width: 850px) {
  .app-container {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  .main-content {
    width: 100%;
    padding: 20px;
  }
}

@media(max-width: 650px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .card-header {
    flex-direction: column;
    align-items: stretch;
  }
  .search-box {
    width: 100%;
  }
}

/* ========================================================
   LANDING PAGE STYLING
   ======================================================== */
.landing-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  height: 100vh;
  scroll-behavior: smooth;
}

.landing-wrapper::-webkit-scrollbar {
  width: 8px;
}
.landing-wrapper::-webkit-scrollbar-track {
  background: rgba(11, 15, 25, 0.8);
}
.landing-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}
.landing-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 240, 255, 0.2);
}

.landing-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.landing-nav .logo-area {
  margin-bottom: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link-item {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.nav-link-item:hover {
  color: var(--color-cyan);
}

.btn-launch-nav {
  height: 38px;
  padding: 0 16px;
}

/* Hero Section */
.hero-section {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 40px 0;
  flex-shrink: 0;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.cyber-badge {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--color-cyan);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 4px 10px;
  border-radius: 4px;
}

.cyber-badge-dim {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--color-purple);
  background: rgba(189, 0, 255, 0.08);
  border: 1px solid rgba(189, 0, 255, 0.2);
  padding: 4px 10px;
  border-radius: 4px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  letter-spacing: -0.5px;
}

.hero-desc {
  font-size: 0.98rem;
  line-height: 1.6;
  color: #94a3b8;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

.btn-hero-cta {
  height: 44px;
  padding: 0 20px;
  font-size: 0.9rem;
}

.btn-hero-explore {
  height: 44px;
  padding: 0 20px;
  font-size: 0.9rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-frame {
  position: relative;
  background: rgba(22, 31, 54, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  max-width: 440px;
}

.hero-img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.frame-accent-1 {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 20px;
  height: 20px;
  border-top: 2px solid var(--color-cyan);
  border-left: 2px solid var(--color-cyan);
  pointer-events: none;
}

.frame-accent-2 {
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-bottom: 2px solid var(--color-purple);
  border-right: 2px solid var(--color-purple);
  pointer-events: none;
}

/* Features */
.features-section {
  padding: 60px 0;
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
}

.section-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}

.section-header p {
  max-width: 500px;
  line-height: 1.5;
  font-size: 0.85rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: linear-gradient(135deg, rgba(22, 31, 54, 0.55) 0%, rgba(15, 22, 38, 0.35) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 24px 0 rgba(0, 0, 0, 0.25), inset 0 1px 1px 0 rgba(255, 255, 255, 0.08);
  transition: var(--transition-normal);
}

.feature-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), inset 0 1px 1px 0 rgba(255, 255, 255, 0.12);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
}

.feature-card p {
  color: #94a3b8;
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Baseline Engine */
.baseline-highlight-section {
  padding: 40px 0 60px 0;
  flex-shrink: 0;
}

.baseline-card {
  background: linear-gradient(135deg, rgba(22, 31, 54, 0.65) 0%, rgba(15, 22, 38, 0.45) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 32px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 32px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35), inset 0 1px 1px 0 rgba(255, 255, 255, 0.08);
}

.baseline-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.baseline-content h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}

.baseline-content p {
  color: #94a3b8;
  line-height: 1.6;
  font-size: 0.9rem;
}

.baseline-action {
  margin-top: 8px;
}

.baseline-code-visual {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  color: #e2e8f0;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5);
}

.baseline-code-visual pre {
  margin: 0;
}

.baseline-code-visual .key { color: #f43f5e; }
.baseline-code-visual .num { color: #38bdf8; }
.baseline-code-visual .val { color: #34d399; }

/* Footer */
.landing-footer {
  margin-top: auto;
  padding: 20px 0 30px 0;
  flex-shrink: 0;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: var(--border-color);
  margin-bottom: 20px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.72rem;
}

/* Landing Page Media Queries */
@media(max-width: 950px) {
  .landing-wrapper {
    overflow-y: auto;
    height: auto;
  }
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 30px 0;
    gap: 30px;
  }
  .hero-content {
    align-items: center;
  }
  .hero-desc {
    max-width: 100%;
  }
  .baseline-card {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 24px;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .nav-links {
    gap: 16px;
  }
  .nav-link-item {
    display: none; /* Hide textual links in mobile view */
  }
}

/* ========================================================
   CUSTOM CURSOR & FLUID MOUSE GLOW
   ======================================================== */
/* Hide default cursor on desktop environments */
@media (pointer: fine) {
  html, body, a, button, input, select, option, tr, td, .nav-btn, .btn, .btn-table-action, .search-box input {
    cursor: none !important;
  }
}

.custom-cursor {
  position: fixed;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--color-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: width 0.25s cubic-bezier(0.25, 1, 0.5, 1),
              height 0.25s cubic-bezier(0.25, 1, 0.5, 1),
              border-color 0.2s,
              background-color 0.2s,
              opacity 0.3s;
}

.custom-cursor.hover {
  width: 40px;
  height: 40px;
  border-color: var(--color-purple);
  background: rgba(189, 0, 255, 0.04);
}

.custom-cursor.click {
  width: 16px;
  height: 16px;
  border-color: var(--color-cyan);
  background: rgba(0, 240, 255, 0.2);
}

.custom-cursor-dot {
  position: fixed;
  width: 5px;
  height: 5px;
  background-color: var(--color-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: width 0.2s, height 0.2s, background-color 0.2s, opacity 0.3s;
}

.custom-cursor-dot.hover {
  width: 3px;
  height: 3px;
  background-color: var(--color-purple);
}

.custom-cursor-dot.click {
  width: 7px;
  height: 7px;
}

.mouse-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.12) 0%, rgba(189, 0, 255, 0.05) 45%, rgba(0, 0, 0, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -2; /* Ensure it floats behind all glass components */
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.4s ease, width 0.3s, height 0.3s;
}

.mouse-glow.hover {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(189, 0, 255, 0.15) 0%, rgba(0, 240, 255, 0.06) 50%, rgba(0, 0, 0, 0) 70%);
}

/* ========================================================
   LIVE BG CANVAS & SLIDESHOW CAROUSEL
   ======================================================== */
.live-bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -3; /* Placed behind mouse-glow (-2) and glass panels */
  pointer-events: none;
  opacity: 0.6;
}

/* Carousel Container */
.carousel-container {
  width: 100%;
  max-width: 440px;
  position: relative;
  overflow: hidden;
}

.carousel-track-wrapper {
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(22, 31, 54, 0.35);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), inset 0 1px 1px 0 rgba(255, 255, 255, 0.08);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

.carousel-slide {
  min-width: 100%;
  box-sizing: border-box;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0.3;
  transition: opacity 0.5s ease;
}

.carousel-slide.active {
  opacity: 1;
}

.slide-visual {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.visual-mockup {
  width: 90%;
  font-family: var(--font-body);
}

/* Terminal Mockup */
.terminal-mockup {
  text-align: left;
}

.terminal-header {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 6px 6px 0 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-header .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.terminal-header .dot.red { background: #ff5f56; }
.terminal-header .dot.yellow { background: #ffbd2e; }
.terminal-header .dot.green { background: #27c93f; }

.terminal-title {
  color: #475569;
  font-size: 0.65rem;
  font-family: var(--font-body);
  font-weight: 700;
  margin-left: 10px;
}

.terminal-body {
  padding: 12px;
  background: rgba(10, 15, 30, 0.7);
  border-radius: 0 0 6px 6px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.75rem;
  line-height: 1.4;
  height: 120px;
}

.terminal-body .cmd {
  color: #94a3b8;
  margin-bottom: 8px;
}

.terminal-body .res {
  color: #39d353;
  margin-bottom: 4px;
}

.terminal-body .res.warning {
  color: #ff3366;
}

.lbl-proto {
  background: rgba(57, 211, 83, 0.15);
  color: #39d353;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 700;
  margin-right: 6px;
}

.res.warning .lbl-proto {
  background: rgba(255, 51, 102, 0.15);
  color: #ff3366;
}

.lbl-state {
  color: #475569;
  font-size: 0.65rem;
  margin-left: 6px;
}

.lbl-pid {
  color: #64748b;
  font-size: 0.65rem;
  margin-left: 6px;
}

/* Alert Mockup */
.alert-mockup {
  border: 1px solid rgba(255, 51, 102, 0.2);
  border-radius: 8px;
  background: rgba(255, 51, 102, 0.02);
  overflow: hidden;
  text-align: left;
}

.alert-header {
  background: rgba(255, 51, 102, 0.1);
  color: #ff3366;
  padding: 8px 12px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  font-family: var(--font-display);
  border-bottom: 1px solid rgba(255, 51, 102, 0.1);
}

.alert-details {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.72rem;
}

.alert-row {
  display: flex;
  justify-content: space-between;
  color: #64748b;
}

.alert-row span:last-child {
  color: #fff;
}

.risk-badge {
  font-size: 0.6rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 3px;
}

.risk-badge.high {
  background: rgba(255, 51, 102, 0.15);
  color: #ff3366;
  border: 1px solid rgba(255, 51, 102, 0.25);
}

.alert-desc {
  color: #ff85a2;
  font-size: 0.68rem;
  border-top: 1px solid rgba(255, 51, 102, 0.1);
  padding-top: 6px;
  margin-top: 4px;
  line-height: 1.35;
}

/* Baseline Mockup */
.baseline-mockup {
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 8px;
  background: rgba(0, 240, 255, 0.02);
  overflow: hidden;
  text-align: left;
}

.baseline-header {
  background: rgba(0, 240, 255, 0.08);
  color: var(--color-cyan);
  padding: 8px 12px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  font-family: var(--font-display);
  border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

.rules-list {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.72rem;
}

.rule-item {
  display: flex;
  justify-content: space-between;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.01);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  color: #94a3b8;
}

.rule-item.drift {
  border-color: rgba(255, 170, 0, 0.15);
  background: rgba(255, 170, 0, 0.02);
  color: #fff;
}

.status-trusted {
  color: #39d353;
  font-weight: 700;
  font-size: 0.65rem;
}

.status-drift {
  color: #ffaa00;
  font-weight: 700;
  font-size: 0.65rem;
}

/* Slide Info text block */
.slide-info {
  text-align: left;
}

.slide-info h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.slide-info p {
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 4px;
  line-height: 1.4;
}

/* Carousel Controls buttons */
.carousel-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding: 0 4px;
}

.carousel-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #64748b;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.carousel-btn:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: var(--color-cyan);
  color: #fff;
}

.carousel-dots {
  display: flex;
  gap: 6px;
}

.carousel-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: var(--transition-fast);
}

.carousel-dot.active {
  background: var(--color-cyan);
  width: 12px;
  border-radius: 3px;
}
